.title-ar {
  margin-inline-start: .35rem;
  color: var(--ink-700);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: .72em;
  font-weight: 700;
  letter-spacing: 0;
}

.intake-heading { margin-bottom: 17px; }
.intake-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.summary-stat {
  position: relative;
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 2px 8px;
  padding: 12px 17px;
  color: var(--ink-700);
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line);
  text-align: left;
}
.summary-stat:last-child { border-right: 0; }
.summary-stat::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: transparent; }
.summary-stat.active::after { background: var(--emerald-600); }
.summary-stat:hover { background: #f8fafb; }
.summary-stat span { font-size: .72rem; font-weight: 800; }
.summary-stat strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; min-width: 27px; padding: 4px 7px; color: var(--navy-900); background: #edf2f5; border-radius: 999px; font-size: .7rem; text-align: center; }
.summary-stat.active span, .summary-stat.active strong { color: var(--emerald-700); }
.summary-stat small { color: var(--ink-500); font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .63rem; }

.intake-workspace {
  display: grid;
  grid-template-columns: minmax(310px, 350px) minmax(440px, 1fr) minmax(230px, 270px);
  gap: 12px;
  align-items: start;
}
.intake-queue, .intake-preview { min-width: 0; overflow: hidden; }
.intake-queue { max-height: 757px; }
.queue-toolbar { padding: 13px 14px; }
.queue-filters { display: grid; gap: 8px; padding: 10px; background: #f8fafb; border-bottom: 1px solid var(--line); }
.queue-search .app-input { min-height: 36px; font-size: .7rem; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.filter-row .app-select { min-height: 34px; padding: 6px 9px; font-size: .66rem; }
.story-queue { max-height: 558px; overflow-y: auto; scrollbar-width: thin; }
.queue-story {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 11px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
}
.queue-story:hover { background: #f8fbfa; }
.queue-story.active { position: relative; z-index: 1; background: #f2faf7; box-shadow: inset 3px 0 var(--emerald-600); }
.queue-story > img { width: 64px; height: 64px; align-self: center; object-fit: cover; border-radius: 8px; }
.queue-story:nth-of-type(2) > img { object-position: 13% center; }
.queue-story:nth-of-type(3) > img { object-position: 50% center; }
.queue-story:nth-of-type(4) > img { object-position: 78% center; }
.queue-story-copy { min-width: 0; }
.story-source, .story-row { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.story-source { color: var(--ink-500); font-size: .58rem; }
.story-source span { color: var(--ink-700); font-weight: 800; }
.queue-story h3 { margin: 4px 0 2px; color: var(--navy-950); font-size: .7rem; font-weight: 800; line-height: 1.38; }
.queue-story p { margin: 0 0 6px; overflow: hidden; color: var(--ink-500); font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .58rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.priority { padding: 3px 6px; border-radius: 999px; font-size: .54rem; font-weight: 800; }
.priority.high { color: #a83b3b; background: #fbe5e5; }
.priority.medium { color: #a3680a; background: #fff0d2; }
.priority.low { color: var(--emerald-700); background: var(--emerald-100); }
.confidence { color: var(--emerald-700); font-size: .63rem; }
.confidence i { margin-right: 2px; }
.queue-footer { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; color: var(--ink-500); background: #fff; font-size: .62rem; }
.queue-footer div { display: flex; gap: 4px; }
.queue-footer button { width: 27px; height: 27px; display: grid; place-items: center; color: var(--ink-700); background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: .62rem; }
.queue-footer button.active { color: #fff; background: var(--emerald-600); border-color: var(--emerald-600); }

.preview-kicker { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px 0; color: var(--ink-500); font-size: .62rem; }
.preview-body { padding: 15px 16px 10px; }
.preview-body h2 { max-width: 680px; margin: 0; color: var(--navy-950); font-size: clamp(1.18rem, 1.6vw, 1.62rem); font-weight: 800; line-height: 1.18; letter-spacing: -.025em; }
.preview-body > h3 { margin: 5px 0 10px; color: var(--ink-700); font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .92rem; font-weight: 700; }
.preview-byline { display: flex; align-items: center; gap: 7px; color: var(--ink-500); font-size: .61rem; }
.preview-byline img { width: 22px; height: 22px; object-fit: cover; border-radius: 50%; }
.preview-byline strong { color: var(--ink-700); }
.preview-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.preview-tags span { padding: 4px 8px; color: var(--ink-700); background: #eef3f6; border-radius: 7px; font-size: .58rem; font-weight: 700; }
.preview-hero { width: 100%; aspect-ratio: 16 / 8.4; object-fit: cover; border-radius: 11px; }
.preview-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 9px; border-bottom: 1px solid var(--line); }
.preview-tabs button { min-height: 49px; display: grid; place-items: center; align-content: center; color: var(--ink-500); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: .64rem; font-weight: 800; }
.preview-tabs button small { margin-top: 1px; font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 500; }
.preview-tabs button.active { color: var(--emerald-700); border-bottom-color: var(--emerald-600); }
.story-copy { min-height: 150px; padding: 12px 2px 2px; color: var(--ink-700); font-size: .69rem; line-height: 1.72; }
.story-copy p { margin: 0 0 10px; }
.story-copy p[lang="ar"] { color: var(--ink-500); font-family: "IBM Plex Sans Arabic", sans-serif; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; }
.detail-list div { padding: 8px; background: #f6f8fa; border-radius: 7px; }
.detail-list dt { color: var(--ink-500); font-size: .58rem; }
.detail-list dd { margin: 2px 0 0; color: var(--navy-900); font-weight: 800; }
.preview-footer { min-height: 53px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 15px; border-top: 1px solid var(--line); }
.preview-footer > span { display: flex; align-items: center; gap: 6px; color: var(--ink-500); font-size: .59rem; }
.preview-footer img { width: 23px; height: 23px; object-fit: cover; border-radius: 50%; }

.intake-sidebar { display: grid; gap: 12px; min-width: 0; }
.intake-sidebar .surface-header { padding: 13px 14px; }
.verification-icon { color: var(--emerald-600); font-size: 1.15rem; }
.verification-score { display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 11px; padding: 14px; }
.score-ring { width: 66px; height: 66px; display: grid; place-items: center; color: var(--emerald-700); background: #fff; border: 7px solid var(--emerald-600); border-right-color: #d9eee8; border-radius: 50%; font-size: .88rem; font-weight: 800; }
.verification-score > div { display: grid; }
.verification-score strong { color: var(--navy-900); font-size: .75rem; }
.verification-score small { color: var(--emerald-700); font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .67rem; }
.verification-score button { width: max-content; margin-top: 4px; padding: 0; color: #1c65a1; background: transparent; border: 0; font-size: .58rem; font-weight: 700; }
.verification-list, .source-checks { display: grid; gap: 0; margin: 0; padding: 0 14px 13px; list-style: none; }
.verification-list li, .source-checks li { display: grid; grid-template-columns: 17px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid #edf1f4; }
.verification-list i, .source-checks i { color: var(--emerald-600); font-size: .8rem; }
.verification-list span, .source-checks span { display: grid; }
.verification-list strong, .source-checks strong { color: var(--ink-700); font-size: .61rem; }
.verification-list small, .source-checks small { margin-top: 2px; color: var(--ink-500); font-size: .55rem; }
.assignment-form { display: grid; gap: 11px; padding: 13px 14px 15px; }
.assignment-form label { min-width: 0; }
.assignee { min-height: 40px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 7px; padding: 5px 7px; background: #fff; border: 1px solid #cfdbe3; border-radius: 8px; }
.assignee img { width: 28px; height: 28px; object-fit: cover; border-radius: 7px; }
.assignee strong { overflow: hidden; color: var(--ink-700); font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.assignee button { color: var(--ink-500); background: transparent; border: 0; }
.priority-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 0; border: 0; }
.priority-choice legend { grid-column: 1 / -1; }
.priority-choice input { position: absolute; opacity: 0; pointer-events: none; }
.priority-choice span { min-height: 38px; display: grid; place-items: center; align-content: center; gap: 1px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: .58rem; font-weight: 800; cursor: pointer; }
.priority-choice span.high { color: #b74040; }
.priority-choice span.medium { color: #ae6f0b; }
.priority-choice span.low { color: var(--emerald-700); }
.priority-choice input:checked + span { border-color: currentColor; box-shadow: 0 0 0 2px currentColor inset; }
.assignment-submit { width: 100%; }
.assignment-note { display: flex; gap: 6px; margin: 0; color: var(--ink-500); font-size: .55rem; line-height: 1.45; }

.editor-page { width: min(100%, 1700px); padding-top: 18px; }
.editor-commandbar { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.save-status { display: inline-flex; align-items: center; gap: 6px; color: var(--emerald-700); font-size: .65rem; font-weight: 700; }
.editor-actions { display: flex; gap: 7px; margin-left: auto; }
.editor-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.editor-titlebar h1 { margin: 0; color: var(--navy-900); font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }
.editor-workspace {
  display: grid;
  grid-template-columns: minmax(160px, .72fr) minmax(440px, 2.2fr) minmax(220px, 1fr) minmax(215px, .92fr);
  gap: 10px;
  align-items: start;
}
.editor-workspace > * { min-width: 0; }
.workflow-panel, .story-editor, .story-settings { overflow: hidden; }
.workflow-panel .surface-header, .story-editor .surface-header, .story-settings .surface-header, .editor-collaboration .surface-header { padding: 13px 14px; }
.workflow-rail { margin: 0; padding: 10px 11px 11px; list-style: none; }
.workflow-rail li { position: relative; display: grid; grid-template-columns: 25px 1fr auto; gap: 7px; min-height: 64px; color: var(--ink-500); }
.workflow-rail li:not(:last-child)::after { content: ""; position: absolute; top: 24px; bottom: 0; left: 11px; width: 1px; background: #cdd9e1; }
.workflow-index { position: relative; z-index: 1; width: 23px; height: 23px; display: grid; place-items: center; color: var(--ink-500); background: #fff; border: 1px solid #bdcbd5; border-radius: 50%; font-size: .55rem; font-weight: 800; }
.workflow-rail .active .workflow-index { color: #fff; background: var(--navy-900); border-color: var(--navy-900); }
.workflow-rail div { display: grid; align-content: start; }
.workflow-rail strong { color: var(--ink-700); font-size: .64rem; }
.workflow-rail small, .workflow-rail em { margin-top: 3px; color: var(--ink-500); font-size: .53rem; font-style: normal; }
.workflow-rail .active em { color: #366ca1; }
.workflow-rail i { font-size: .55rem; }
.approval-timeline { padding: 13px; background: #f8fafb; border-top: 1px solid var(--line); }
.approval-timeline h3, .media-attachments h3 { margin: 0; color: var(--navy-900); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.approval-timeline h3 span, .media-attachments h3 span { margin-left: 4px; color: var(--ink-500); font-family: "IBM Plex Sans Arabic", sans-serif; text-transform: none; }
.approval-timeline ul { display: grid; gap: 12px; margin: 11px 0 0; padding: 0; list-style: none; }
.approval-timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 7px; }
.approval-timeline i { color: var(--ink-300); font-size: .67rem; }
.approval-timeline li.complete i { color: #8bad6c; }
.approval-timeline span { display: grid; }
.approval-timeline strong { color: var(--ink-700); font-size: .54rem; }
.approval-timeline time { margin-top: 2px; color: var(--ink-500); font-size: .49rem; }

.story-editor-form { padding: 14px; }
.editor-field { display: block; margin-bottom: 12px; }
.editor-field .field-label { display: flex; align-items: center; gap: 5px; }
.editor-field .field-label small { margin-left: auto; color: var(--ink-500); font-weight: 500; }
.editor-field .app-input { min-height: 39px; font-size: .68rem; }
.headline-input { font-weight: 700; }
.summary-input { min-height: 58px; font-size: .67rem; line-height: 1.5; }
.content-editor { border: 1px solid #cfdbe3; border-radius: 9px; overflow: hidden; }
.content-editor-head { min-height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 11px; background: #f8fafb; border-bottom: 1px solid var(--line); }
.content-editor-head .field-label { margin: 0; }
.write-mode { display: flex; gap: 2px; }
.write-mode button { padding: 4px 8px; color: var(--ink-500); background: transparent; border: 0; border-radius: 5px; font-size: .55rem; font-weight: 700; }
.write-mode button.active { color: var(--emerald-700); background: #fff; border: 1px solid var(--line); }
.editor-toolbar { min-height: 38px; display: flex; align-items: center; gap: 1px; padding: 4px 6px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.editor-toolbar button { min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--ink-700); background: transparent; border: 0; border-radius: 5px; font-size: .65rem; }
.editor-toolbar button:hover { background: #edf2f5; }
.editor-toolbar button:first-child { min-width: 81px; justify-content: space-between; padding: 0 7px; border-right: 1px solid var(--line); font-size: .54rem; }
.editor-document { width: 100%; min-height: 298px; padding: 14px; color: var(--ink-900); background: #fff; border: 0; outline: 0; resize: vertical; font: .7rem/1.75 "Manrope", sans-serif; }
.document-status { min-height: 31px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; color: var(--ink-500); background: #f8fafb; border-top: 1px solid var(--line); font-size: .52rem; }
.document-status span:first-child { color: var(--emerald-700); }
.media-attachments { margin-top: 15px; }
.media-attachments > div:first-child { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.media-attachments > div:first-child > span { color: var(--ink-500); font-size: .55rem; }
.media-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.media-strip button { position: relative; min-width: 0; aspect-ratio: 1.2 / 1; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.media-strip img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.media-strip button:nth-child(2) img { object-position: 18% center; }
.media-strip button:nth-child(4) img { object-position: 82% center; }
.media-strip button > i { position: absolute; right: 3px; bottom: 3px; color: var(--emerald-600); background: #fff; border-radius: 50%; }
.media-strip .add-media { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--ink-500); border-style: dashed; font-size: .55rem; }
.media-strip .add-media i { position: static; color: var(--ink-500); background: transparent; font-size: .8rem; }

.editor-collaboration { display: grid; gap: 10px; }
.source-panel, .comments-panel { overflow: hidden; }
.verification-count { color: var(--emerald-700); font-size: .55rem; font-weight: 800; }
.source-checks { padding-top: 6px; }
.source-manage { width: calc(100% - 26px); margin: 0 13px 13px; }
.comment-filter { padding: 9px 12px; }
.comment-filter .app-select { min-height: 35px; font-size: .57rem; }
.comment-list { padding: 0 12px; }
.comment { display: grid; grid-template-columns: 26px 1fr; gap: 7px; padding: 10px 0; border-top: 1px solid var(--line); }
.comment > img { width: 26px; height: 26px; object-fit: cover; border-radius: 50%; }
.comment header { display: flex; justify-content: space-between; gap: 6px; }
.comment strong { color: var(--ink-700); font-size: .56rem; }
.comment time { color: var(--ink-500); font-size: .49rem; }
.comment p { margin: 5px 0; color: var(--ink-700); font-size: .56rem; line-height: 1.55; }
.comment button { padding: 0; color: #1d64a0; background: transparent; border: 0; font-size: .52rem; font-weight: 700; }
.comment-compose { display: grid; grid-template-columns: 1fr 34px; gap: 5px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.comment-compose .app-input { min-height: 34px; padding: 7px 9px; font-size: .56rem; }
.comment-compose button { color: #fff; background: var(--navy-900); border: 0; border-radius: 7px; }

.story-settings .surface-header button { color: var(--ink-500); background: transparent; border: 0; }
.settings-form { display: grid; gap: 12px; padding: 14px; }
.settings-form .app-input, .settings-form .app-select { min-height: 37px; font-size: .6rem; }
.settings-tags > div { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.settings-tags > div button { padding: 4px 6px; color: var(--ink-700); background: #edf2f5; border: 0; border-radius: 6px; font-size: .52rem; }
.publish-date { display: grid; grid-template-columns: 1.25fr .85fr; gap: 5px; padding: 0; border: 0; }
.publish-date legend { grid-column: 1 / -1; }
.settings-actions { display: grid; grid-template-columns: .7fr 1.3fr; gap: 7px; margin-top: 24px; }
.mobile-editor-actions { display: none; }

@media (max-width: 1450px) {
  .intake-workspace { grid-template-columns: minmax(300px, 330px) minmax(420px, 1fr) minmax(220px, 245px); }
  .editor-workspace { grid-template-columns: minmax(155px, .75fr) minmax(420px, 2.3fr) minmax(215px, 1fr); }
  .story-settings { grid-column: 2 / -1; }
  .settings-form { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  .settings-tags, .settings-actions { grid-column: span 2; }
  .settings-actions { margin-top: 0; }
}

@media (max-width: 1120px) {
  .intake-workspace { grid-template-columns: minmax(300px, .8fr) minmax(430px, 1.4fr); }
  .intake-sidebar { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .editor-workspace { grid-template-columns: minmax(150px, .55fr) minmax(430px, 1.65fr); }
  .editor-collaboration { grid-column: 1; }
  .story-settings { grid-column: 2; }
  .settings-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-tags, .settings-actions { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .intake-page, .editor-page { padding-top: 16px; }
  .intake-heading .page-subtitle span { display: block; }
  .intake-summary { grid-template-columns: repeat(5, minmax(102px, 1fr)); overflow-x: auto; }
  .summary-stat { min-height: 62px; padding: 10px 12px; }
  .intake-workspace { display: block; }
  .intake-queue { max-height: none; margin-bottom: 12px; }
  .story-queue { max-height: none; }
  .queue-story { grid-template-columns: 72px 1fr; padding: 13px 11px; }
  .queue-story > img { width: 72px; height: 72px; }
  .queue-story h3 { font-size: .75rem; }
  .intake-preview { margin-bottom: 12px; }
  .intake-sidebar { display: grid; grid-template-columns: 1fr; }
  .editor-commandbar { flex-wrap: wrap; }
  .editor-commandbar > .editor-actions { display: none; }
  .editor-titlebar { align-items: center; }
  .editor-workspace { display: flex; flex-direction: column; }
  .story-editor { order: 1; width: 100%; }
  .editor-collaboration { order: 2; width: 100%; grid-template-columns: 1fr; }
  .workflow-panel { order: 3; width: 100%; }
  .story-settings { order: 4; width: 100%; }
  .settings-form { grid-template-columns: 1fr; }
  .settings-tags, .settings-actions { grid-column: auto; }
  .mobile-editor-actions { position: fixed; z-index: 1010; right: 10px; bottom: 84px; left: 10px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 7px; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-md); }
  .editor-page { padding-bottom: 154px; }
}

@media (max-width: 540px) {
  .intake-heading h1 { line-height: 1.2; }
  .title-ar { display: block; margin: 5px 0 0; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .preview-body { padding: 13px 12px 9px; }
  .preview-kicker { align-items: flex-start; padding: 12px 12px 0; }
  .preview-byline { flex-wrap: wrap; }
  .preview-tabs button { min-width: 0; padding: 3px; font-size: .56rem; }
  .story-copy { min-height: 0; font-size: .66rem; }
  .preview-footer { align-items: stretch; flex-direction: column; }
  .preview-footer .btn-app { width: 100%; }
  .story-editor-form { padding: 11px; }
  .editor-document { min-height: 370px; }
  .media-strip { grid-template-columns: repeat(3, 1fr); }
  .workflow-rail li { min-height: 58px; }
  .editor-titlebar .status-chip { display: none; }
  .editor-collaboration { display: grid; }
  .publish-date { grid-template-columns: 1fr 1fr; }
}
