/*
Theme Name: News Cutting Desk
Theme URI: https://example.com/news-cutting-desk
Author: News Cutting Desk
Description: A mobile-friendly newsroom workflow for employees to digitize newspaper cuttings and editors to verify them.
Version: 1.3.2
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: news-cutting-desk
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ncd-ink: #17211c;
  --ncd-paper: #f6f2e7;
  --ncd-surface: #fffdf8;
  --ncd-primary: #0f6b4f;
  --ncd-primary-dark: #084d39;
  --ncd-accent: #d64a2f;
  --ncd-line: #d8d1c3;
  --ncd-muted: #637069;
  --ncd-success: #20734d;
  --ncd-danger: #a62f25;
  --ncd-shadow: 0 12px 36px rgba(23, 33, 28, .1);
  --ncd-radius: 8px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--ncd-ink);
  background: var(--ncd-paper);
  font-family: "Noto Sans Oriya", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: var(--ncd-primary); }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ncd-site-header { background: var(--ncd-ink); color: var(--ncd-surface); border-bottom: 4px solid var(--ncd-accent); }
.ncd-header-inner { max-width: 1120px; margin: 0 auto; min-height: 72px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ncd-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-family: Georgia, serif; font-size: clamp(1.25rem, 3vw, 1.65rem); font-weight: 700; }
.ncd-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid currentColor; font-family: inherit; font-size: 1.1rem; }
.ncd-header-actions { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.ncd-header-actions a { color: inherit; }
.ncd-user { color: #dce4df; }

.ncd-main { min-height: calc(100vh - 132px); }
.ncd-shell { width: min(100% - 32px, 1040px); margin: 0 auto; padding: 42px 0 64px; }
.ncd-shell--narrow { max-width: 760px; }
.ncd-kicker { margin: 0 0 6px; color: var(--ncd-accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ncd-title { margin: 0; max-width: 780px; font-family: Georgia, "Noto Serif Oriya", serif; font-size: clamp(2rem, 7vw, 4.75rem); line-height: 1.02; letter-spacing: 0; }
.ncd-lede { max-width: 700px; margin: 18px 0 0; color: var(--ncd-muted); font-size: 1.1rem; }
.ncd-section-head { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.ncd-section-head h1 { margin: 0; font-family: Georgia, "Noto Serif Oriya", serif; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; }
.ncd-section-head p { margin: 8px 0 0; color: var(--ncd-muted); }

.ncd-title-row, .ncd-heading-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ncd-section-head--task .ncd-kicker { margin-bottom: 6px; }
.ncd-section-head--task { margin-bottom: 24px; }
.ncd-section-head--task h1 { flex: 1 1 auto; min-width: 0; }
.ncd-section-head--verify { margin-bottom: 22px; }
.ncd-section-head--verify h1 { margin-top: 6px; }
.ncd-button--micro { min-height: 32px; padding: 5px 10px; border-radius: 4px; font-size: .72rem; line-height: 1; white-space: nowrap; }
.ncd-filter-panel { padding: 16px 18px; }
.ncd-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
.ncd-filter .ncd-field { min-width: 0; }
.ncd-filter .ncd-field label { margin-bottom: 4px; font-size: .72rem; }
.ncd-filter .ncd-field input { min-height: 38px; height: 38px; padding: 6px 9px; font-size: .82rem; }
.ncd-button--filter { min-height: 38px; padding: 6px 12px; font-size: .78rem; white-space: nowrap; }

.ncd-role-grid { margin-top: 42px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ncd-role { padding: clamp(24px, 5vw, 40px); background: var(--ncd-surface); border: 1px solid var(--ncd-line); border-top: 6px solid var(--ncd-primary); border-radius: var(--ncd-radius); box-shadow: var(--ncd-shadow); }
.ncd-role--editor { border-top-color: var(--ncd-accent); }
.ncd-role-number { color: var(--ncd-muted); font-family: Georgia, serif; font-size: 1.1rem; }
.ncd-role h2 { margin: 10px 0 4px; font-family: Georgia, serif; font-size: 2rem; }
.ncd-role p { margin: 0 0 22px; color: var(--ncd-muted); }
.ncd-login-form p { margin: 0 0 14px; }
.ncd-login-form label, .ncd-field label { display: block; margin-bottom: 7px; font-weight: 700; }
.ncd-login-form input[type=text], .ncd-login-form input[type=password], .ncd-field input[type=text], .ncd-field input[type=date], .ncd-field input[type=file], .ncd-field textarea, .ncd-field select {
  width: 100%; min-height: 50px; padding: 11px 13px; color: var(--ncd-ink); background: var(--ncd-surface); border: 1px solid var(--ncd-line); border-radius: 5px;
}
.ncd-field textarea { min-height: 270px; resize: vertical; line-height: 1.75; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(15,107,79,.24); outline-offset: 2px; border-color: var(--ncd-primary); }
.ncd-remember { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.ncd-remember input { width: 18px; height: 18px; }

.ncd-button, .ncd-login-form input[type=submit] {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid transparent; border-radius: 5px; color: var(--ncd-surface); background: var(--ncd-primary); font-weight: 800; text-decoration: none; cursor: pointer; transition: background .18s ease, transform .18s ease;
}
.ncd-button:hover, .ncd-login-form input[type=submit]:hover { background: var(--ncd-primary-dark); transform: translateY(-1px); }
.ncd-button--secondary { color: var(--ncd-ink); background: transparent; border-color: var(--ncd-line); }
.ncd-button--secondary:hover { color: var(--ncd-surface); background: var(--ncd-ink); }
.ncd-button--danger { background: var(--ncd-accent); }
.ncd-button--danger:hover { background: #ad3622; }
.ncd-button--danger-outline { color: var(--ncd-danger); background: transparent; border-color: #e0b4ae; }
.ncd-button--danger-outline:hover { color: var(--ncd-surface); background: var(--ncd-danger); border-color: var(--ncd-danger); }
.ncd-button--icon { min-width: 46px; padding: 10px; font-size: 1.25rem; }
.ncd-button[disabled] { opacity: .6; cursor: wait; transform: none; }
.ncd-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ncd-panel { padding: clamp(20px, 5vw, 36px); background: var(--ncd-surface); border: 1px solid var(--ncd-line); border-radius: var(--ncd-radius); box-shadow: var(--ncd-shadow); }
.ncd-form { display: grid; gap: 22px; }
.ncd-required { color: var(--ncd-danger); }
.ncd-help { display: block; margin-top: 7px; color: var(--ncd-muted); font-size: .85rem; }
.ncd-image-preview { display: none; margin-top: 14px; padding: 10px; background: var(--ncd-paper); border: 1px solid var(--ncd-line); }
.ncd-image-preview.is-visible { display: block; }
.ncd-image-preview img { display: block; max-height: 420px; margin: 0 auto; object-fit: contain; }
.ncd-notice { margin: 0 0 22px; padding: 14px 16px; border-left: 5px solid var(--ncd-success); background: #e7f4ec; }
.ncd-notice--error { border-color: var(--ncd-danger); background: #fae8e5; }

.ncd-filter { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.ncd-results-meta { margin: 24px 0 12px; color: var(--ncd-muted); font-size: .9rem; }
.ncd-story-list { display: grid; gap: 12px; }
.ncd-story-card { display: block; padding: 20px; color: inherit; background: var(--ncd-surface); border: 1px solid var(--ncd-line); border-left: 5px solid var(--ncd-primary); border-radius: 5px; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.ncd-story-card:hover { border-color: var(--ncd-primary); transform: translateX(3px); }
.ncd-story-card--task:hover { transform: none; }
.ncd-story-card--task { padding: 22px; }
.ncd-story-card h2 { margin: 0 0 7px; font-family: Georgia, "Noto Serif Oriya", serif; font-size: 1.3rem; line-height: 1.3; }
.ncd-story-card p { margin: 0; color: var(--ncd-muted); }
.ncd-task-history { margin-top: 42px; }
.ncd-section-head--compact { margin-bottom: 18px; }
.ncd-section-head--compact h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1; }
.ncd-section-head--compact p { margin-bottom: 0; }
.ncd-existing-image { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 10px; background: var(--ncd-paper); border: 1px solid var(--ncd-line); }
.ncd-existing-image img { width: 150px; height: 90px; object-fit: cover; }
.ncd-existing-image span { color: var(--ncd-muted); font-size: .85rem; font-weight: 700; }
.ncd-task-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ncd-line); }
.ncd-task-row form { margin: 0; }
.ncd-feedback { margin-top: 16px; padding: 13px 15px; border-left: 4px solid var(--ncd-accent); background: #faf0ec; }
.ncd-feedback strong { display: block; margin-bottom: 3px; }
.ncd-feedback p { margin: 0; color: var(--ncd-ink); white-space: pre-wrap; }
.ncd-lock-note { color: var(--ncd-muted); font-size: .85rem; font-weight: 700; }
.ncd-card-feedback { display: block; margin-top: 10px; color: var(--ncd-accent); font-weight: 700; }
.ncd-review-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 6px; }
.ncd-review-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.8rem; }
.ncd-help--wide { max-width: 760px; }
.ncd-article-title-ref { margin: 10px 0 12px; font-family: Georgia, "Noto Serif Oriya", serif; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.08; }
.ncd-article-body--reference { padding-bottom: 28px; }
.ncd-story-meta { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--ncd-muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.ncd-status { display: inline-flex; padding: 2px 8px; border-radius: 999px; color: var(--ncd-primary-dark); background: #e1f1e8; }
.ncd-status--needs-correction { color: var(--ncd-danger); background: #fae8e5; }
.ncd-empty { padding: 32px; text-align: center; color: var(--ncd-muted); background: var(--ncd-surface); border: 1px dashed var(--ncd-line); }

.ncd-detail-nav { margin-bottom: 22px; }
.ncd-article { max-width: 820px; margin: 0 auto; }
.ncd-article h1 { margin: 8px 0 22px; font-family: Georgia, "Noto Serif Oriya", serif; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.08; }
.ncd-article-body { padding: 26px 0 40px; border-top: 1px solid var(--ncd-line); font-size: 1.08rem; white-space: pre-wrap; }
.ncd-cutting-heading { margin: 0 0 12px; font-family: Georgia, serif; font-size: 1.5rem; }
.ncd-viewer { position: relative; height: min(72vh, 760px); min-height: 420px; overflow: hidden; background: #111612; border: 1px solid #111612; border-radius: var(--ncd-radius); touch-action: none; user-select: none; }
.ncd-viewer img { position: absolute; top: 50%; left: 50%; max-width: none; transform-origin: center; cursor: grab; will-change: transform; }
.ncd-viewer.is-dragging img { cursor: grabbing; }
.ncd-viewer-controls { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.ncd-viewer-controls .ncd-button { color: #fffdf8; background: rgba(23,33,28,.92); border-color: rgba(255,255,255,.2); }
.ncd-detail-nav--split { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.ncd-image-page { max-width: 1180px; margin: 0 auto; }
.ncd-image-page-nav { margin-bottom: 14px; }
.ncd-full-image-stage { display: flex; justify-content: center; padding: 4px; background: var(--ncd-ink); border-radius: var(--ncd-radius); }
.ncd-full-image { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.ncd-review { margin-top: 28px; }
.ncd-review-grid { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }

.ncd-site-footer { min-height: 60px; display: grid; place-items: center; padding: 16px; color: #dce4df; background: var(--ncd-ink); font-size: .82rem; text-align: center; }

/* Editing record */
.ncd-audit-wrap { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ncd-line); }
.ncd-audit-summary { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; color: var(--ncd-muted); font-size: .78rem; font-weight: 800; }
.ncd-audit-toggle { min-height: 30px; padding: 4px 9px; font-size: .7rem; }
.ncd-audit-panel { margin-top: 10px; padding: 14px; background: var(--ncd-paper); border: 1px solid var(--ncd-line); border-radius: 5px; }
.ncd-audit-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: .82rem; }
.ncd-audit-heading span { color: var(--ncd-muted); font-size: .75rem; font-weight: 700; }
.ncd-audit-list { display: grid; gap: 10px; }
.ncd-audit-entry { padding: 12px; background: var(--ncd-surface); border: 1px solid var(--ncd-line); border-radius: 5px; }
.ncd-audit-entry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ncd-audit-entry-head strong { display: block; font-size: .88rem; }
.ncd-audit-entry-head span, .ncd-audit-entry-head time { color: var(--ncd-muted); font-size: .72rem; }
.ncd-audit-entry-head time { white-space: nowrap; }
.ncd-audit-summary-text { margin: 8px 0 0; color: var(--ncd-muted); font-size: .78rem; }
.ncd-audit-changes { display: grid; gap: 8px; margin-top: 10px; }
.ncd-audit-change { padding-top: 9px; border-top: 1px dashed var(--ncd-line); }
.ncd-audit-change > strong { display: block; margin-bottom: 6px; font-size: .78rem; }
.ncd-audit-before, .ncd-audit-after, .ncd-audit-single-value { padding: 8px 9px; border-radius: 4px; font-size: .76rem; line-height: 1.55; overflow-wrap: anywhere; }
.ncd-audit-before { margin-bottom: 5px; background: #f3ece6; }
.ncd-audit-after { background: #e7f4ec; }
.ncd-audit-before span, .ncd-audit-after span { display: block; margin-bottom: 3px; color: var(--ncd-muted); font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ncd-audit-single-value { background: #f1eee6; color: var(--ncd-ink); }
.ncd-audit-empty { margin: 0; color: var(--ncd-muted); font-size: .8rem; }
.ncd-audit-section-title { margin: 16px 0 8px; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--ncd-ink); }
.ncd-audit-section-title--verification { padding-top: 12px; border-top: 1px solid var(--ncd-line); }
.ncd-verification-history { display: grid; gap: 7px; }
.ncd-verification-entry { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 14px; padding: 9px 10px; background: var(--ncd-surface); border: 1px solid var(--ncd-line); border-radius: 5px; font-size: .76rem; }
.ncd-verification-entry strong { font-size: .78rem; }
.ncd-verification-entry span { color: var(--ncd-muted); }



@media (max-width: 720px) {
  .ncd-header-inner { min-height: 64px; }
  .ncd-user { display: none; }
  .ncd-shell { width: min(100% - 24px, 1040px); padding-top: 28px; }
  .ncd-role-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .ncd-role { padding: 24px; }
  .ncd-section-head { display: block; }
  .ncd-title-row, .ncd-heading-line { gap: 8px; }
  .ncd-section-head--task h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .ncd-filter-panel { padding: 12px 10px; }
  .ncd-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 5px; }
  .ncd-filter .ncd-button { width: auto; }
  .ncd-filter .ncd-field label { font-size: .66rem; }
  .ncd-filter .ncd-field input { min-height: 34px; height: 34px; padding: 4px 6px; font-size: .72rem; }
  .ncd-button--filter { min-height: 34px; padding: 4px 8px; font-size: .7rem; }
  .ncd-review-grid { grid-template-columns: 1fr; }
  .ncd-shell--workflow .ncd-actions { display: flex; flex-wrap: wrap; grid-template-columns: none; }
  .ncd-shell--workflow .ncd-actions .ncd-button { width: auto; }
  .ncd-task-row { align-items: stretch; flex-direction: column; }
  .ncd-task-row .ncd-actions { width: 100%; }
  .ncd-existing-image { width: 100%; }
  .ncd-existing-image img { width: 120px; height: 72px; }
  .ncd-button--micro { flex: 0 0 auto; }
  .ncd-section-head--verify .ncd-heading-line { align-items: center; }
  .ncd-review-heading { display: block; }
  .ncd-audit-entry-head { display: block; }
  .ncd-audit-entry-head time { display: block; margin-top: 4px; }
  .ncd-audit-panel { padding: 10px; }
  .ncd-review-heading .ncd-status { margin-top: 10px; }
  .ncd-viewer { min-height: 360px; height: 60vh; }
}

/* Compact spacing is limited to Task/Verify workflow pages. */
.ncd-shell--workflow { padding-top: 16px; }
.ncd-shell--workflow .ncd-section-head--task { margin-bottom: 14px; }
.ncd-shell--workflow .ncd-section-head--verify { margin-bottom: 12px; }
.ncd-shell--workflow .ncd-detail-nav--split { margin-bottom: 12px; }
.ncd-shell--workflow .ncd-panel { padding: 22px; }
.ncd-shell--workflow .ncd-form { gap: 14px; }
.ncd-shell--workflow .ncd-actions { gap: 8px; }
.ncd-shell--workflow .ncd-button { min-height: 38px; padding: 8px 12px; font-size: .82rem; }
.ncd-shell--workflow .ncd-button--micro { min-height: 30px; padding: 5px 9px; font-size: .7rem; }
.ncd-shell--workflow .ncd-review { margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* Unified BlackVideo landing page: the site header/footer remain the active theme chrome. */
.ncd-landing-shell { padding-top: 44px; }
.ncd-section-head--landing { justify-content: center; text-align: center; margin-bottom: 42px; }
.ncd-section-head--landing h1 { font-size: clamp(3rem, 7vw, 5rem); }
.ncd-role-grid--landing { margin-top: 0; }
.ncd-role-grid--landing .ncd-role { min-height: 290px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.ncd-role-grid--landing .ncd-role h2 { margin-top: 10px; }
.ncd-role-grid--landing .ncd-role p { max-width: 420px; margin-bottom: 24px; }
.ncd-role-grid--landing .ncd-button { margin-top: auto; }
@media(max-width:720px){
  .ncd-landing-shell { padding-top: 30px; }
  .ncd-section-head--landing { margin-bottom: 28px; }
  .ncd-section-head--landing h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .ncd-role-grid--landing { margin-top: 0; }
  .ncd-role-grid--landing .ncd-role { min-height: 0; }
}

/* BlackVideo integration: keep the public newsroom chrome from the main theme. */
.site-header a, #site-bottom a, .site-branding a, .header-menu a { color: inherit; }
.ncd-shell { max-width: 1200px; }
.ncd-panel, .ncd-role, .ncd-story-card { color: var(--ncd-ink); }
.ncd-shell a { color: var(--ncd-primary); }
/* BlackVideo integration: explicit secondary-button colors prevent the main theme
 * from making outlined action buttons unreadably light on white backgrounds. */
.ncd-shell .ncd-button { color: var(--ncd-surface); }
.ncd-shell .ncd-button.ncd-button--secondary {
  color: var(--ncd-ink);
  background: var(--ncd-surface);
  border-color: var(--ncd-line);
}
.ncd-shell .ncd-button.ncd-button--secondary:hover,
.ncd-shell .ncd-button.ncd-button--secondary:focus-visible {
  color: var(--ncd-surface);
  background: var(--ncd-ink);
  border-color: var(--ncd-ink);
}

.ncd-login-shell { max-width: 640px; }
.ncd-login-logo { margin: 0 0 18px; }
.ncd-login-logo img { display: block; width: auto; max-width: min(240px, 70vw); max-height: 86px; height: auto; object-fit: contain; }
.ncd-login-panel { padding: clamp(22px, 5vw, 40px); }
.ncd-login-form .ncd-remember { margin: 0 0 18px; }
.ncd-login-form .ncd-remember label { margin: 0; font-weight: 500; }
.ncd-login-form .ncd-button { width: 100%; }
@media (max-width: 767px) {
  .ncd-login-shell { width: min(100% - 24px, 640px); padding-top: 28px; }
  .ncd-login-panel { padding: 20px; }
}


.ncd-source-link-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--ncd-line); border-radius: 6px; background: #fffdf8; }
.ncd-source-link-row a { overflow-wrap: anywhere; }
.ncd-review-actions { justify-content: flex-start; margin-top: 4px; }
.ncd-source-modal[hidden] { display: none; }
.ncd-source-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 22px; }
.ncd-source-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.ncd-source-modal__dialog { position: relative; z-index: 1; width: min(1100px, 100%); max-height: min(88vh, 900px); overflow: hidden; background: var(--ncd-surface); border: 1px solid var(--ncd-line); border-radius: var(--ncd-radius); box-shadow: 0 24px 70px rgba(0,0,0,.28); display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.ncd-source-modal__head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; border-bottom:1px solid var(--ncd-line); }
.ncd-source-modal__close { border:0; background:transparent; font-size:28px; line-height:1; cursor:pointer; color:var(--ncd-ink); }
.ncd-source-modal__body { min-height: 420px; background:#101412; display:flex; align-items:center; justify-content:center; }
.ncd-source-modal__body iframe, .ncd-source-modal__body video { width:100%; height:100%; min-height:420px; border:0; display:block; }
.ncd-source-modal__body video { object-fit:contain; }
.ncd-source-modal__foot { padding:10px 16px; border-top:1px solid var(--ncd-line); display:flex; justify-content:flex-end; }
.ncd-source-modal-open { overflow:hidden; }
.ncd-field textarea#story-body, .ncd-field textarea#review-story-body { width:100%; box-sizing:border-box; min-height:55vh; max-height:72vh; }

.ncd-seo-entry-field textarea#story-seo-data {
  width:100%; box-sizing:border-box; min-height:180px; max-height:360px; resize:vertical;
  font-family:ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; line-height:1.5; background:#fbfcfd;
}
.ncd-seo-entry-field .ncd-help { display:block; margin-top:7px; }
.ncd-seo-modal[hidden]{display:none;}
.ncd-seo-modal{position:fixed;inset:0;z-index:100004;display:grid;place-items:center;padding:18px;box-sizing:border-box;}
.ncd-seo-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.76);}
.ncd-seo-modal__dialog{position:relative;z-index:1;width:min(900px,96vw);max-height:min(88vh,760px);overflow:hidden;background:#fff;color:#111;border:1px solid #d8dde3;border-radius:12px;box-shadow:0 26px 90px rgba(0,0,0,.35);display:flex;flex-direction:column;}
.ncd-seo-modal__head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid #e4e8ec;}
.ncd-seo-modal__head>div{display:grid;gap:3px}.ncd-seo-modal__head strong{font-size:1rem}.ncd-seo-modal__head span{color:#68727d;font-size:.75rem;}
.ncd-seo-modal__close{flex:0 0 auto;width:40px;height:40px;border:1px solid #aeb7c1;border-radius:50%;background:#111;color:#fff;font-size:25px;line-height:1;font-weight:700;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.2);}
.ncd-seo-modal__close:hover{background:#2a2a2a;}
.ncd-seo-modal__body{min-height:0;padding:14px 16px;background:#f7f9fb;}
.ncd-seo-modal__body textarea{display:block;width:100%;min-height:380px;max-height:58vh;box-sizing:border-box;resize:vertical;border:1px solid #bcc5ce;border-radius:8px;background:#fff;color:#14171a;padding:13px;font:500 .9rem/1.55 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;outline:none;}
.ncd-seo-modal__body textarea:focus{border-color:#16745a;box-shadow:0 0 0 3px rgba(22,116,90,.14);}
.ncd-seo-modal__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 16px;border-top:1px solid #e4e8ec;background:#fff;}
.ncd-seo-modal__status{color:#5d6975;font-size:.76rem}.ncd-seo-modal__actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.ncd-seo-modal-open{overflow:hidden;}
@media(max-width:720px){
 .ncd-seo-entry-field textarea#story-seo-data{min-height:220px}.ncd-seo-modal{padding:8px}.ncd-seo-modal__dialog{width:100%;max-height:94vh;border-radius:10px}.ncd-seo-modal__head{padding:11px 12px}.ncd-seo-modal__head span{max-width:70vw}.ncd-seo-modal__body{padding:10px 12px}.ncd-seo-modal__body textarea{min-height:52vh;max-height:none;font-size:.84rem}.ncd-seo-modal__foot{align-items:stretch;flex-direction:column;padding:10px 12px}.ncd-seo-modal__actions{width:100%}.ncd-seo-modal__actions .ncd-button{flex:1 1 0;min-width:0}
}
@media (max-width: 767px) {
  .ncd-source-modal { padding: 10px; }
  .ncd-source-modal__dialog { max-height: 94vh; }
  .ncd-source-modal__body, .ncd-source-modal__body iframe, .ncd-source-modal__body video { min-height: 60vh; }
  .ncd-field textarea#story-body, .ncd-field textarea#review-story-body { min-height: 52vh; max-height: none; }
  .ncd-review-actions { display:grid; grid-template-columns: 1fr; }
  .ncd-review-actions .ncd-button { width:100%; }
}

/* Compact newsroom workflow heading rows. Keep only Task/Verify headings affected. */
.ncd-section-head--task .ncd-heading-line,
.ncd-section-head--verify .ncd-heading-line {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.ncd-section-head--task .ncd-kicker,
.ncd-section-head--verify .ncd-kicker,
.ncd-section-head--task h1,
.ncd-section-head--verify h1,
.ncd-section-head--task .ncd-button--micro,
.ncd-section-head--verify .ncd-button--micro {
  margin: 0;
  font-family: "Noto Sans Oriya", "Noto Sans", system-ui, sans-serif;
  font-size: .82rem;
  line-height: 1.2;
  font-weight: 700;
}
.ncd-section-head--task .ncd-kicker,
.ncd-section-head--verify .ncd-kicker {
  letter-spacing: .04em;
}
.ncd-section-head--task h1,
.ncd-section-head--verify h1 {
  flex: 0 0 auto;
}
.ncd-section-head--task .ncd-button--micro,
.ncd-section-head--verify .ncd-button--micro {
  min-height: 28px;
  padding: 4px 8px;
  white-space: nowrap;
}
.ncd-section-head--task,
.ncd-section-head--verify {
  margin-top: -24px;
}

@media (max-width:720px) {
  .ncd-section-head--task,
  .ncd-section-head--verify {
    margin-top: -18px;
    margin-bottom: 14px;
  }
  .ncd-section-head--task .ncd-heading-line,
  .ncd-section-head--verify .ncd-heading-line {
    gap: 7px;
    flex-wrap: nowrap;
    width: 100%;
  }
  .ncd-section-head--task .ncd-kicker,
  .ncd-section-head--verify .ncd-kicker,
  .ncd-section-head--task h1,
  .ncd-section-head--verify h1,
  .ncd-section-head--task .ncd-button--micro,
  .ncd-section-head--verify .ncd-button--micro {
    font-size: .74rem;
  }
  .ncd-section-head--task .ncd-button--micro,
  .ncd-section-head--verify .ncd-button--micro {
    min-height: 26px;
    padding: 3px 7px;
  }
}


/* Verify story detail: place the read-only story reference on the left and the editing/verification panel on the right. */
.ncd-shell--verify-detail {
  width: min(100% - 32px, 1400px);
}
.ncd-verify-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(560px, 1.05fr);
  gap: 30px;
  align-items: start;
}
.ncd-verify-reference-content {
  max-width: none;
  margin: 0;
  min-width: 0;
  position: sticky;
  top: 16px;
}
.ncd-verify-editor {
  min-width: 0;
}
.ncd-verify-editor .ncd-review {
  margin-top: 0;
}
@media (max-width: 1100px) {
  .ncd-shell--verify-detail {
    width: min(100% - 32px, 1040px);
  }
  .ncd-verify-workspace {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Verify story detail: compact the area below the site header without affecting other workflow screens. */
.ncd-shell--verify-detail { padding-top: 6px; }
.ncd-shell--verify-detail .ncd-detail-nav--split { margin-bottom: 8px; }
.ncd-shell--verify-detail .ncd-story-meta {
  margin-bottom: 6px;
  gap: 4px 12px;
  font-size: .72rem;
  line-height: 1.2;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.ncd-shell--verify-detail .ncd-article-title-ref { margin-top: 6px; }
@media (max-width:720px) {
  .ncd-shell--verify-detail { padding-top: 6px; }
  .ncd-shell--verify-detail .ncd-story-meta { font-size: .68rem; gap: 3px 8px; }
}


/* Keep Verify Story top actions grouped in the requested sequence. */
.ncd-detail-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:nowrap; }
.ncd-detail-actions .ncd-button { margin:0; white-space:nowrap; }
@media (max-width:720px){ .ncd-detail-actions{gap:5px;} .ncd-detail-actions .ncd-button--micro{padding-left:6px;padding-right:6px;} }

/* Comment field: full available row, single-line height only. */
#review-comment {
  display: block;
  width: 100%;
  min-height: 42px;
  height: 42px;
  max-height: 42px;
  resize: none;
  box-sizing: border-box;
}


.ncd-existing-cuttings,.ncd-image-preview{display:flex;flex-wrap:nowrap;gap:12px;overflow-x:auto;overflow-y:hidden;padding:10px;margin-top:14px;background:var(--ncd-paper);border:1px solid var(--ncd-line);border-radius:6px;scroll-snap-type:x proximity;}
.ncd-existing-cuttings:empty,.ncd-image-preview:empty{display:none;}
.ncd-image-preview{display:none;}
.ncd-image-preview.is-visible{display:flex;}
.ncd-file-card{flex:0 0 190px;min-width:190px;background:var(--ncd-surface);border:1px solid var(--ncd-line);border-radius:6px;overflow:hidden;scroll-snap-align:start;}
.ncd-file-card__media{display:block;width:100%;height:140px;object-fit:contain;background:#f7f3e9;}
.ncd-file-card__media img{display:block;width:100%;height:140px;object-fit:contain;}
.ncd-file-card__media--pdf{height:140px;background:#fff;}
.ncd-file-card__media--pdf iframe{display:block;width:100%;height:140px;border:0;background:#fff;}
.ncd-file-card__media--file{display:grid;place-items:center;height:140px;background:#f4eee0;color:var(--ncd-muted);font-weight:900;letter-spacing:.08em;}
.ncd-file-card__name{padding:8px 9px;font-size:.78rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media(min-width:900px){.ncd-file-card{flex-basis:210px;min-width:210px}.ncd-file-card__media,.ncd-file-card__media img,.ncd-file-card__media--pdf,.ncd-file-card__media--pdf iframe,.ncd-file-card__media--file{height:150px;}}

.ncd-image-modal[hidden]{display:none;}
.ncd-image-modal{position:fixed;inset:0;z-index:100001;display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;}
.ncd-image-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.82);}
.ncd-image-modal__dialog{position:relative;z-index:1;width:min(1220px,96vw);height:min(92vh,900px);padding:14px;background:#111;border-radius:12px;box-shadow:0 24px 80px rgba(0,0,0,.45);display:flex;flex-direction:column;overflow:hidden;}
.ncd-image-modal__viewport{position:relative;flex:1 1 auto;min-height:0;overflow:hidden;background:#070907;border-radius:8px;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;}
.ncd-image-modal__viewport img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transform-origin:center center;will-change:transform;cursor:grab;image-rendering:auto;}
.ncd-image-modal__viewport.is-dragging img{cursor:grabbing;}
.ncd-image-modal__close{position:absolute;top:8px;right:8px;width:40px;height:40px;border:1px solid rgba(255,255,255,.65);border-radius:50%;background:#fff;color:#111;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.3);z-index:5;}
.ncd-image-modal-open{overflow:hidden;}
.ncd-image-modal__nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(255,255,255,.96);color:#111;font-size:23px;line-height:1;cursor:pointer;z-index:5;box-shadow:0 4px 16px rgba(0,0,0,.25)}
.ncd-image-modal__nav--prev{left:22px}.ncd-image-modal__nav--next{right:22px}.ncd-image-modal__nav[hidden]{display:none}.ncd-image-modal__count{position:absolute;left:50%;bottom:60px;transform:translateX(-50%);color:#fff;font-size:13px;white-space:nowrap;background:rgba(0,0,0,.58);padding:4px 9px;border-radius:12px;z-index:5}
.ncd-image-modal__toolbar{display:flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;padding-top:10px;}
.ncd-image-modal__toolbar button{min-width:42px;height:38px;padding:6px 10px;border:1px solid rgba(255,255,255,.32);border-radius:6px;background:#fff;color:#111;font-weight:800;cursor:pointer;}
.ncd-image-modal__toolbar button:disabled{opacity:.5;cursor:default;}
.ncd-image-modal__toolbar .ncd-image-zoom-reset{min-width:70px;}
@media(max-width:767px){
  .ncd-image-modal{padding:8px;}
  .ncd-image-modal__dialog{width:100%;height:94vh;padding:8px;border-radius:10px;}
  .ncd-image-modal__viewport{border-radius:6px;}
  .ncd-image-modal__close{top:7px;right:7px;width:38px;height:38px;font-size:25px;}
  .ncd-image-modal__nav{width:40px;height:40px;font-size:20px;}
  .ncd-image-modal__nav--prev{left:8px}.ncd-image-modal__nav--next{right:8px}
  .ncd-image-modal__count{bottom:58px;font-size:12px;}
  .ncd-image-modal__toolbar{padding-top:7px;gap:6px;}
  .ncd-image-modal__toolbar button{min-width:46px;height:40px;font-size:20px;padding:5px 9px;}
  .ncd-image-modal__toolbar .ncd-image-zoom-reset{min-width:66px;font-size:13px;}
}


.ncd-inline-delete-form { display:inline-flex; margin:0; }
.ncd-verify-card-actions { display:flex; flex-direction:column; align-items:flex-end; justify-content:flex-start; gap:8px; margin-top:8px; }\n.ncd-verify-card-post-other { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; white-space:nowrap; }
.ncd-review-actions { align-items:center; }
.ncd-review-actions .ncd-inline-delete-form { align-items:center; }
@media (max-width:720px) {
  .ncd-verify-card-actions { align-items:flex-start; justify-content:flex-start; }
}

/* Optional field reporter attribution row. Kept compact and placed above the story title. */
.ncd-reporter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.ncd-reporter-row .ncd-field { min-width: 0; }
.ncd-reporter-row .ncd-field label { margin-bottom: 5px; }
.ncd-reporter-row .ncd-help { display: block; margin-top: 5px; }
@media (max-width: 1050px) {
  .ncd-reporter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ncd-reporter-row { grid-template-columns: 1fr; gap: 0; }
}

/* 2026-09-29 workflow refinement: compact four-field rows and safe review actions. */
.ncd-task-meta-grid {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(220px, 1.25fr) minmax(180px, 1fr) minmax(150px, .85fr);
  gap: 12px;
  align-items: start;
  width: 100%;
}
.ncd-task-meta-grid .ncd-field { min-width: 0; }
.ncd-task-meta-grid .ncd-task-category-field { max-width: none; margin-top: 0; }
.ncd-task-meta-grid .ncd-category-dropdown { width: 100%; }
.ncd-task-cutting-row {
  width: 100%;
  min-width: 0;
}
.ncd-task-cutting-field { width: 100%; min-width: 0; }
.ncd-cutting-pickers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}
.ncd-cutting-picker-slot { min-width: 0; }
.ncd-cutting-picker-slot .ncd-file-picker { height: auto; }
.ncd-picker-preview {
  min-height: 0;
  margin-top: 8px;
  padding: 6px;
  background: var(--ncd-paper);
  border: 1px solid var(--ncd-line);
  border-radius: 6px;
}
.ncd-picker-preview:empty { display: none; }
.ncd-picker-preview .ncd-file-card { width: 100%; min-width: 0; }
.ncd-picker-preview .ncd-file-card__media,
.ncd-picker-preview .ncd-file-card__media img,
.ncd-picker-preview .ncd-file-card__media--pdf,
.ncd-picker-preview .ncd-file-card__media--pdf iframe,
.ncd-picker-preview .ncd-file-card__media--file { height: clamp(110px, 16vw, 220px); }

.ncd-task-source-grid,
.ncd-review-four-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.ncd-task-source-grid .ncd-field,
.ncd-review-four-grid .ncd-field {
  min-width: 0;
}
.ncd-task-category-field { max-width: 360px; margin-top: 10px; }
.ncd-task-category-field select { width: 100%; }
.ncd-task-category-field .ncd-category-dropdown { width: 100%; }
.ncd-cutting-pickers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.ncd-file-picker {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--ncd-line);
  border-radius: 8px;
  background: var(--ncd-paper);
}
.ncd-file-picker__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--ncd-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.ncd-file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ncd-file-picker:focus-within { outline: 2px solid rgba(8,120,93,.28); outline-offset: 1px; }
.ncd-file-picker__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ncd-muted);
  font-size: .68rem;
}

.ncd-task-source-grid .ncd-field input[type="file"] { min-width: 0; padding: 9px; }
.ncd-task-source-grid .ncd-help { display: none; }
.ncd-post-site-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.ncd-post-site-button {
  min-height: 42px;
  padding: 9px 16px;
}
.ncd-post-site-note {
  color: var(--ncd-muted);
  font-size: .84rem;
}
.ncd-review-comment-field {
  width: 100%;
}
#review-comment {
  width: 100%;
  min-height: 110px;
  height: 110px;
  max-height: 260px;
  resize: vertical;
}
.ncd-review-delete-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ncd-line);
}
.ncd-review-delete-row .ncd-inline-delete-form {
  margin: 0;
}
.ncd-review-delete-row .ncd-button--danger {
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
@media (max-width: 1050px) {
  .ncd-task-source-grid,
  .ncd-review-four-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ncd-cutting-pickers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .ncd-file-picker { padding: 5px; }
  .ncd-file-picker__button { min-height: 28px; padding: 5px 4px; font-size: .62rem; }
  .ncd-file-picker__name { font-size: .58rem; }
}
@media (max-width: 767px) {
  .ncd-task-source-grid,
  .ncd-review-four-grid {
    grid-template-columns: 1fr;
  }
  .ncd-post-site-row {
    align-items: flex-start;
  }
  .ncd-post-site-button {
    width: 100%;
  }
  .ncd-post-site-note {
    width: 100%;
  }
  .ncd-review-delete-row {
    justify-content: stretch;
  }
  .ncd-review-delete-row .ncd-button {
    width: 100%;
  }
}


/* 2026-10-02 verify desk refinement: compact desktop split between date filters and story queue. */
.ncd-verify-index-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ncd-verify-filter-column {
  min-width: 0;
}
.ncd-verify-filter-column .ncd-filter-panel {
  position: sticky;
  top: 18px;
  padding: 12px;
}
.ncd-filter--stacked {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  align-items: start;
}
.ncd-filter--stacked .ncd-field label {
  margin-bottom: 3px;
  font-size: .68rem;
  line-height: 1.2;
}
.ncd-filter--stacked .ncd-field input {
  min-height: 34px;
  height: 34px;
  padding: 5px 7px;
  font-size: .72rem;
}
.ncd-filter--stacked .ncd-button--filter {
  width: 100%;
  min-height: 34px;
  height: 34px;
  padding: 4px 8px;
  font-size: .72rem;
}
.ncd-verify-results-column {
  min-width: 0;
}
.ncd-verify-results-column .ncd-results-meta {
  margin: 0 0 8px;
  font-size: .75rem;
  line-height: 1.25;
}
.ncd-verify-results-column .ncd-story-list {
  gap: 7px;
}
.ncd-story-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
}
.ncd-story-row .ncd-story-card {
  padding: 12px 14px;
}
.ncd-story-row .ncd-story-card h2 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  line-height: 1.25;
}
.ncd-story-row .ncd-story-card p {
  font-size: .82rem;
  line-height: 1.4;
}
.ncd-story-row .ncd-story-meta {
  margin-bottom: 4px;
  gap: 5px 9px;
  font-size: .67rem;
  line-height: 1.2;
}
.ncd-story-row .ncd-card-feedback {
  margin-top: 6px;
  font-size: .72rem;
}
.ncd-story-row .ncd-verify-card-actions {
  margin: 0 0 4px;
  justify-content: flex-end;
}
.ncd-story-row .ncd-button--micro {
  min-height: 26px;
  padding: 4px 7px;
  font-size: .67rem;
}

@media (max-width: 900px) {
  .ncd-verify-index-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ncd-verify-filter-column .ncd-filter-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .ncd-story-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .ncd-story-row .ncd-verify-card-actions {
    margin: 0;
    justify-content: flex-start;
  }
}


/* Detected video preview inside Task / Verify news text workflows. */
.ncd-video-live-wrap { display: none; margin-top: 10px; }
.ncd-video-live-wrap.is-visible { display: block; }
.ncd-video-preview { margin-top: 10px; padding: 10px; background: var(--ncd-paper); border: 1px solid var(--ncd-line); border-radius: 6px; }
.ncd-video-preview__label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: .78rem; }
.ncd-video-preview__label strong { color: var(--ncd-ink); }
.ncd-video-preview__label span { color: var(--ncd-primary); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ncd-video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #111; margin-top: 8px; border-radius: 5px; }
.ncd-video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.ncd-article-body--reference .ncd-video-preview { margin-top: 14px; }
@media (max-width: 720px) {
  .ncd-video-preview { padding: 8px; }
  .ncd-video-preview__label { font-size: .72rem; }
}


/* 2026-10-02: final responsive pass for Verify Story detail across desktop, tablet and mobile. */
.ncd-shell--verify-detail {
  width: min(calc(100% - 32px), 1400px);
  max-width: 1400px;
  min-width: 0;
  overflow-x: clip;
}

.ncd-shell--verify-detail .ncd-verify-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(18px, 2.2vw, 30px);
  width: 100%;
  min-width: 0;
  align-items: start;
}

.ncd-shell--verify-detail .ncd-verify-reference-content,
.ncd-shell--verify-detail .ncd-verify-editor,
.ncd-shell--verify-detail .ncd-verify-editor .ncd-review,
.ncd-shell--verify-detail .ncd-verify-editor .ncd-form,
.ncd-shell--verify-detail .ncd-verify-editor .ncd-field,
.ncd-shell--verify-detail .ncd-verify-editor .ncd-review-four-grid,
.ncd-shell--verify-detail .ncd-verify-editor .ncd-reporter-row {
  min-width: 0;
  max-width: 100%;
}

.ncd-shell--verify-detail .ncd-verify-reference-content {
  position: sticky;
  top: 12px;
}

.ncd-shell--verify-detail .ncd-article-title-ref,
.ncd-shell--verify-detail .ncd-article-body--reference,
.ncd-shell--verify-detail .ncd-article-body--reference * {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.ncd-shell--verify-detail .ncd-article-body--reference {
  font-size: clamp(.98rem, 1.1vw, 1.08rem);
  line-height: 1.72;
}

.ncd-shell--verify-detail .ncd-review .ncd-panel {
  width: 100%;
  max-width: 100%;
}

.ncd-shell--verify-detail .ncd-form input,
.ncd-shell--verify-detail .ncd-form textarea,
.ncd-shell--verify-detail .ncd-form select,
.ncd-shell--verify-detail .ncd-form input[type="file"] {
  max-width: 100%;
  min-width: 0;
}

.ncd-shell--verify-detail .ncd-review-four-grid,
.ncd-shell--verify-detail .ncd-reporter-row {
  width: 100%;
}

.ncd-shell--verify-detail .ncd-post-site-row,
.ncd-shell--verify-detail .ncd-detail-nav--split,
.ncd-shell--verify-detail .ncd-detail-actions,
.ncd-shell--verify-detail .ncd-review-actions,
.ncd-shell--verify-detail .ncd-review-delete-row {
  min-width: 0;
}

.ncd-shell--verify-detail .ncd-post-site-note,
.ncd-shell--verify-detail .ncd-source-link-row,
.ncd-shell--verify-detail .ncd-public-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (min-width: 1200px) {
  .ncd-shell--verify-detail {
    width: min(calc(100% - 40px), 1400px);
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .ncd-shell--verify-detail {
    width: min(calc(100% - 28px), 1100px);
  }
  .ncd-shell--verify-detail .ncd-verify-workspace {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 18px;
  }
  .ncd-shell--verify-detail .ncd-verify-reference-content {
    top: 10px;
  }
  .ncd-shell--verify-detail .ncd-review,
  .ncd-shell--verify-detail .ncd-review .ncd-panel {
    padding: 18px;
  }
}

@media (max-width: 899px) {
  .ncd-shell--verify-detail {
    width: min(calc(100% - 24px), 820px);
    padding-top: 10px;
    padding-bottom: 36px;
  }

  .ncd-shell--verify-detail .ncd-verify-workspace {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ncd-shell--verify-detail .ncd-verify-reference-content {
    position: static;
    width: 100%;
    order: 1;
  }

  .ncd-shell--verify-detail .ncd-verify-editor {
    width: 100%;
    order: 2;
  }

  .ncd-shell--verify-detail .ncd-review,
  .ncd-shell--verify-detail .ncd-review .ncd-panel {
    width: 100%;
  }

  .ncd-shell--verify-detail .ncd-detail-nav--split {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ncd-shell--verify-detail .ncd-detail-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ncd-shell--verify-detail .ncd-story-meta {
    flex-wrap: wrap;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .ncd-shell--verify-detail .ncd-post-site-row {
    align-items: stretch;
  }

  .ncd-shell--verify-detail .ncd-post-site-button {
    flex: 0 0 auto;
  }

  .ncd-shell--verify-detail .ncd-review-four-grid,
  .ncd-shell--verify-detail .ncd-reporter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .ncd-shell--verify-detail {
    width: calc(100% - 16px);
    padding-top: 8px;
  }

  .ncd-shell--verify-detail .ncd-detail-nav--split {
    gap: 7px;
  }

  .ncd-shell--verify-detail .ncd-detail-actions {
    gap: 6px;
  }

  .ncd-shell--verify-detail .ncd-panel,
  .ncd-shell--verify-detail .ncd-review .ncd-panel {
    padding: 14px;
  }

  .ncd-shell--verify-detail .ncd-form {
    gap: 12px;
  }

  .ncd-shell--verify-detail .ncd-review-four-grid,
  .ncd-shell--verify-detail .ncd-reporter-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ncd-shell--verify-detail .ncd-review-four-grid .ncd-field,
  .ncd-shell--verify-detail .ncd-reporter-row .ncd-field {
    width: 100%;
  }

  .ncd-shell--verify-detail .ncd-post-site-button,
  .ncd-shell--verify-detail .ncd-post-site-note {
    width: 100%;
  }

  .ncd-shell--verify-detail .ncd-review-actions,
  .ncd-shell--verify-detail .ncd-review-actions .ncd-button {
    width: 100%;
  }

  .ncd-shell--verify-detail .ncd-review-delete-row,
  .ncd-shell--verify-detail .ncd-review-delete-row .ncd-inline-delete-form,
  .ncd-shell--verify-detail .ncd-review-delete-row .ncd-button {
    width: 100%;
  }

  .ncd-shell--verify-detail .ncd-story-meta {
    font-size: .67rem;
    gap: 4px 8px;
  }

  .ncd-shell--verify-detail .ncd-article-title-ref {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
  }

  .ncd-shell--verify-detail .ncd-article-body--reference {
    font-size: .98rem;
    line-height: 1.68;
    padding-bottom: 20px;
  }

  .ncd-shell--verify-detail #review-story-body {
    min-height: 230px;
  }
}

@media (max-width: 380px) {
  .ncd-shell--verify-detail {
    width: calc(100% - 12px);
  }

  .ncd-shell--verify-detail .ncd-review .ncd-panel {
    padding: 11px;
  }

  .ncd-shell--verify-detail .ncd-button,
  .ncd-shell--verify-detail .ncd-button--micro {
    max-width: 100%;
  }
}


/* 2026-10-02: v1.0.89 Task submissions sidebar reliability. */
@media (min-width: 821px) {
  .ncd-shell--task-entry .ncd-task-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr) !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
  }
  .ncd-shell--task-entry .ncd-task-entry-column,
  .ncd-shell--task-entry .ncd-task-history--sidebar {
    display: block !important;
    min-width: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .ncd-shell--task-entry .ncd-task-history--sidebar {
    position: sticky !important;
    top: 12px !important;
    max-height: calc(100vh - 24px) !important;
    overflow: auto !important;
  }
}
@media (max-width: 820px) {
  .ncd-shell--task-entry .ncd-task-workspace {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .ncd-shell--task-entry .ncd-task-history--sidebar {
    display: block !important;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* 2026-10-02: Employee Task split workspace. Keep the entry form wide on the left
 * and the user's submitted-story queue at roughly one-third width on the right. */
.ncd-shell--task-entry {
  width: min(calc(100% - 32px), 1400px);
  max-width: 1400px;
}
.ncd-task-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
}
.ncd-task-entry-column,
.ncd-task-entry-column .ncd-panel {
  min-width: 0;
}
.ncd-task-entry-column .ncd-panel {
  margin: 0;
}
.ncd-task-history--sidebar {
  min-width: 0;
  margin-top: 0;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding-right: 2px;
  scrollbar-gutter: stable;
}
.ncd-task-history--sidebar .ncd-section-head--compact {
  margin-bottom: 10px;
}
.ncd-task-history--sidebar .ncd-section-head--compact h2 {
  margin-bottom: 4px;
  font-size: 1.25rem;
  line-height: 1.15;
}
.ncd-task-history--sidebar .ncd-section-head--compact p {
  margin: 4px 0 0;
  font-size: .72rem;
  line-height: 1.35;
}
.ncd-task-history--sidebar .ncd-story-list {
  gap: 7px;
}
.ncd-task-history--sidebar .ncd-story-card--task {
  padding: 11px 12px;
}
.ncd-task-history--sidebar .ncd-story-card--task .ncd-story-meta {
  margin-bottom: 4px;
  gap: 4px 7px;
  font-size: .64rem;
  line-height: 1.25;
}
.ncd-task-history--sidebar .ncd-story-card--task h2 {
  margin: 0 0 4px;
  font-size: .95rem;
  line-height: 1.25;
}
.ncd-task-history--sidebar .ncd-story-card--task > p {
  font-size: .72rem;
  line-height: 1.4;
}
.ncd-task-history--sidebar .ncd-feedback {
  margin-top: 6px;
  padding: 7px 8px;
  font-size: .69rem;
  line-height: 1.35;
}
.ncd-task-history--sidebar .ncd-task-row {
  margin-top: 7px;
  padding-top: 7px;
}
.ncd-task-history--sidebar .ncd-task-row .ncd-actions {
  gap: 5px;
}
.ncd-task-history--sidebar .ncd-task-row .ncd-button {
  min-height: 26px;
  padding: 4px 7px;
  font-size: .64rem;
}
.ncd-task-history--sidebar .ncd-audit-wrap {
  margin-top: 9px;
  padding-top: 8px;
}
.ncd-task-history--sidebar .ncd-audit-summary {
  gap: 4px 8px;
  font-size: .64rem;
}

@media (max-width: 1050px) and (min-width: 821px) {
  .ncd-task-workspace {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
    gap: 16px;
  }
}

@media (max-width: 820px) {
  .ncd-shell--task-entry {
    width: min(calc(100% - 24px), 760px);
  }
  .ncd-task-workspace {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ncd-task-history--sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .ncd-task-history--sidebar .ncd-section-head--compact h2 {
    font-size: 1.35rem;
  }
  .ncd-task-history--sidebar .ncd-story-card--task {
    padding: 14px;
  }
}

@media (max-width: 520px) {
  .ncd-task-workspace {
    gap: 12px;
  }
  .ncd-task-history--sidebar .ncd-story-card--task h2 {
    font-size: .98rem;
  }
}

/* v1.0.77: reorganize task metadata row and dedicate full-width space to newspaper cuttings. */
@media (max-width: 1100px) {
  .ncd-task-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .ncd-task-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ncd-task-meta-grid .ncd-category-dropdown__summary { min-height: 40px; padding: 8px 9px; font-size: .84rem; }
  .ncd-cutting-pickers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ncd-file-picker { padding: 5px; }
  .ncd-file-picker__button { min-height: 30px; padding: 5px 4px; font-size: .62rem; }
  .ncd-file-picker__name { font-size: .58rem; }
  .ncd-picker-preview { padding: 4px; margin-top: 5px; }
  .ncd-picker-preview .ncd-file-card__media,
  .ncd-picker-preview .ncd-file-card__media img,
  .ncd-picker-preview .ncd-file-card__media--pdf,
  .ncd-picker-preview .ncd-file-card__media--pdf iframe,
  .ncd-picker-preview .ncd-file-card__media--file { height: 96px; }
}

/* v1.0.112: compact five-field production row for task + verify screens.
 * The five attribution fields stay aligned in one row at every viewport.
 */
.ncd-production-five-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(5px, 1vw, 12px);
  align-items: start;
  width: 100%;
  min-width: 0;
  margin: 0 0 4px;
}
.ncd-production-five-grid .ncd-field {
  min-width: 0;
  width: 100%;
}
.ncd-production-five-grid .ncd-field label {
  display: block;
  margin: 0 0 5px;
  min-width: 0;
  font-size: clamp(.62rem, .76vw, .78rem);
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ncd-production-five-grid .ncd-field input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  padding: 7px 8px;
  font-size: clamp(.68rem, .82vw, .82rem);
  line-height: 1.15;
}
.ncd-production-five-grid--task { margin-bottom: 2px; }
.ncd-production-five-grid--verify { margin-bottom: 8px; }
/* Editors without administrator privileges see the three fields they are allowed to edit in one aligned row. */
.ncd-production-five-grid--verify.ncd-production-five-grid--staff {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ncd-review-category-picker--above-meta {
  width: 100%;
  max-width: none;
  margin: 0 0 12px;
}
.ncd-review-category-picker--above-meta .ncd-category-dropdown { width: 100%; }
.ncd-review-category-picker--above-meta .ncd-category-options { max-height: 230px; }

.ncd-shell--verify-detail .ncd-verify-workspace {
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
}
.ncd-shell--verify-detail .ncd-production-five-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (min-width: 900px) and (max-width: 1199px) {
  .ncd-shell--verify-detail .ncd-verify-workspace {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  }
}

@media (max-width: 899px) {
  .ncd-shell--verify-detail .ncd-production-five-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .ncd-production-five-grid .ncd-field input {
    min-height: 36px;
    padding: 6px 5px;
    font-size: .67rem;
  }
  .ncd-production-five-grid .ncd-field label {
    font-size: .61rem;
  }
}

@media (max-width: 599px) {
  .ncd-production-five-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .ncd-production-five-grid .ncd-field label {
    font-size: .55rem;
    line-height: 1.1;
  }
  .ncd-production-five-grid .ncd-field input {
    min-height: 34px;
    padding: 5px 4px;
    font-size: .61rem;
    border-radius: 4px;
  }
  .ncd-review-category-picker--above-meta {
    margin-bottom: 10px;
  }
}

/* Administrator-only production attribution fields. */
.ncd-admin-production-row {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  align-items:start;
  margin-top:2px;
}
.ncd-admin-production-row .ncd-field { min-width:0; }
.ncd-admin-production-row .ncd-field input { width:100%; max-width:100%; }
@media (max-width:720px){
  .ncd-admin-production-row { grid-template-columns:1fr; gap:0; }
}


/* v1.0.73: verifier/editor multi-category dropdown. Latest Update is always selected. */
.ncd-review-category-picker {
  width: 100%;
  margin-top: 4px;
}
.ncd-category-dropdown {
  position: relative;
  margin-top: 8px;
}
.ncd-category-dropdown__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--ncd-border, #d9e1dd);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}
.ncd-category-dropdown__summary::-webkit-details-marker { display: none; }
.ncd-category-dropdown__summary::after {
  content: '⌄';
  font-size: 1.1rem;
  line-height: 1;
  transition: transform .18s ease;
}
.ncd-category-dropdown[open] > .ncd-category-dropdown__summary {
  border-color: var(--ncd-accent, #08785d);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.ncd-category-dropdown[open] > .ncd-category-dropdown__summary::after {
  transform: rotate(180deg);
}
.ncd-category-dropdown__count {
  margin-left: auto;
  color: var(--ncd-muted, #5d7068);
  font-size: .86rem;
  font-weight: 500;
}
.ncd-category-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--ncd-border, #d9e1dd);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--ncd-surface-2, #f7faf8);
  max-height: min(320px, 42vh);
  overflow-y: auto;
}
.ncd-category-option {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: .92rem;
  line-height: 1.2;
}
.ncd-category-option:hover {
  border-color: var(--ncd-border, #d9e1dd);
  background: #fff;
}
.ncd-category-option input[type="checkbox"] {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ncd-category-option__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #a8b8b1;
  border-radius: 4px;
  background: #fff;
  color: transparent;
  font-size: 13px;
  font-weight: 800;
  box-sizing: border-box;
}
.ncd-category-option input[type="checkbox"]:checked + .ncd-category-option__check {
  border-color: var(--ncd-accent, #08785d);
  background: var(--ncd-accent, #08785d);
  color: #fff;
}
.ncd-category-option:focus-within {
  outline: 2px solid rgba(8,120,93,.28);
  outline-offset: 1px;
}
.ncd-category-option--default {
  font-weight: 700;
  background: rgba(8, 120, 93, .08);
  border-color: rgba(8, 120, 93, .18);
}
.ncd-category-option--default .ncd-category-option__check {
  opacity: 1;
  border-color: var(--ncd-accent, #08785d);
  background: var(--ncd-accent, #08785d);
  color: #fff;
}

@media (max-width: 720px) {
  .ncd-category-options {
    grid-template-columns: 1fr;
  }
}

/* v1.0.75: compact, responsive Verify Story thumbnail control. Helper copy removed as requested. */
.ncd-review-four-grid .ncd-field--story-thumbnail {
  min-width: 0;
}
.ncd-review-four-grid .ncd-field--story-thumbnail input[type="file"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 7px;
  font-size: .82rem;
}
.ncd-review-four-grid .ncd-field--story-thumbnail .ncd-existing-image {
  width: 100%;
  max-width: 100%;
  margin-top: 9px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  overflow: hidden;
}
.ncd-review-four-grid .ncd-field--story-thumbnail .ncd-existing-image img {
  width: 88px;
  height: 58px;
  flex: 0 0 88px;
  object-fit: cover;
}
.ncd-review-four-grid .ncd-field--story-thumbnail .ncd-existing-image span {
  min-width: 0;
  font-size: .76rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .ncd-review-four-grid .ncd-field--story-thumbnail input[type="file"] {
    font-size: .76rem;
    padding: 6px;
  }
}


/* v1.0.78: five newspaper-cutting slots plus dedicated Story Thumbnail slot.
 * Story Thumbnail is moved out of the metadata row so all six upload/preview slots
 * have a dedicated newspaper-media area.
 */
.ncd-task-meta-grid--task-main {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(180px, .85fr);
}
.ncd-cutting-pickers {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.ncd-cutting-picker-slot {
  flex: 1 1 0;
  min-width: 145px;
  max-width: 220px;
}
.ncd-cutting-picker-slot--thumbnail {
  border-left: 1px solid var(--ncd-line);
  padding-left: 10px;
}
.ncd-cutting-picker-slot .ncd-file-picker {
  width: 100%;
}
.ncd-picker-preview {
  width: 100%;
  min-height: 0;
}
.ncd-picker-preview .ncd-file-card {
  width: 100%;
  min-width: 0;
}
.ncd-picker-preview .ncd-file-card__media,
.ncd-picker-preview .ncd-file-card__media img,
.ncd-picker-preview .ncd-file-card__media--pdf,
.ncd-picker-preview .ncd-file-card__media--pdf iframe,
.ncd-picker-preview .ncd-file-card__media--file,
.ncd-picker-preview .ncd-existing-thumbnail-slot img {
  width: 100%;
  height: clamp(110px, 13vw, 190px);
  object-fit: contain;
  display: block;
  background: #fff;
}
.ncd-existing-thumbnail-slot {
  display: block;
  overflow: hidden;
  border: 1px solid var(--ncd-line);
  border-radius: 6px;
  background: var(--ncd-paper);
}
.ncd-existing-thumbnail-slot .ncd-file-card__name {
  padding: 5px 6px;
}
@media (max-width: 1050px) {
  .ncd-task-meta-grid--task-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .ncd-task-meta-grid--task-main {
    grid-template-columns: 1fr;
  }
  .ncd-cutting-picker-slot {
    flex: 0 0 135px;
    min-width: 135px;
  }
  .ncd-cutting-picker-slot--thumbnail {
    padding-left: 8px;
  }
  .ncd-picker-preview .ncd-file-card__media,
  .ncd-picker-preview .ncd-file-card__media img,
  .ncd-picker-preview .ncd-file-card__media--pdf,
  .ncd-picker-preview .ncd-file-card__media--pdf iframe,
  .ncd-picker-preview .ncd-file-card__media--file,
  .ncd-picker-preview .ncd-existing-thumbnail-slot img {
    height: 110px;
  }
}


/* v1.0.80: final compact task metadata/media layout refinement.
 * Category, source and date stay on one compact line. The six media slots
 * remain usable at all widths, with a horizontal scroll fallback on narrow screens.
 * Story Thumbnail always has its own visible heading above its chooser.
 */
.ncd-task-meta-grid--task-main {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr) minmax(0, .9fr);
  gap: 8px;
  align-items: start;
  width: 100%;
}
.ncd-task-meta-grid--task-main .ncd-field {
  min-width: 0;
  margin: 0;
}
.ncd-task-meta-grid--task-main .ncd-field > label {
  display: block;
  margin: 0 0 3px;
  font-size: .68rem;
  line-height: 1.1;
  font-weight: 800;
}
.ncd-task-meta-grid--task-main .ncd-field input,
.ncd-task-meta-grid--task-main .ncd-category-dropdown__summary {
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
  padding: 6px 8px;
  font-size: .72rem;
  line-height: 1.1;
  border-radius: 7px;
}
.ncd-task-meta-grid--task-main .ncd-field input[type="url"] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ncd-task-meta-grid--task-main .ncd-category-dropdown {
  width: 100%;
  margin: 0;
}
.ncd-task-meta-grid--task-main .ncd-category-dropdown__summary {
  gap: 6px;
  overflow: hidden;
}
.ncd-task-meta-grid--task-main .ncd-category-dropdown__label,
.ncd-task-meta-grid--task-main .ncd-category-dropdown__count {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ncd-task-meta-grid--task-main .ncd-category-dropdown__count {
  margin-left: auto;
  font-size: .68rem;
}
.ncd-task-meta-grid--task-main .ncd-help {
  display: none !important;
}

.ncd-task-cutting-row {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
}
.ncd-task-cutting-field > label {
  display: block;
  margin: 0 0 5px;
  font-size: .78rem;
  line-height: 1.15;
}
.ncd-cutting-pickers {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 7px;
  align-items: start;
  width: 100%;
  margin-top: 6px;
  padding: 0 0 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.ncd-cutting-picker-slot {
  min-width: 0;
  width: 100%;
  max-width: none;
}
.ncd-cutting-picker-slot--thumbnail {
  border-left: 1px solid var(--ncd-line);
  padding-left: 6px;
}
.ncd-cutting-slot-heading {
  display: block;
  min-height: 26px;
  margin: 0 0 4px;
  padding: 4px 5px;
  font-size: .68rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ncd-ink, #17332b);
  background: var(--ncd-surface-2, #f7faf8);
  border: 1px solid var(--ncd-line);
  border-radius: 6px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ncd-cutting-picker-slot--thumbnail .ncd-file-picker__button {
  width: 100%;
}
.ncd-cutting-picker-slot .ncd-file-picker {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.ncd-picker-preview {
  min-width: 0;
  width: 100%;
  margin-top: 5px;
  padding: 4px;
  box-sizing: border-box;
}
.ncd-picker-preview .ncd-file-card {
  width: 100%;
  min-width: 0;
}
.ncd-picker-preview .ncd-file-card__media,
.ncd-picker-preview .ncd-file-card__media img,
.ncd-picker-preview .ncd-file-card__media--pdf,
.ncd-picker-preview .ncd-file-card__media--pdf iframe,
.ncd-picker-preview .ncd-file-card__media--file,
.ncd-picker-preview .ncd-existing-thumbnail-slot img {
  width: 100%;
  height: clamp(92px, 12vw, 160px);
  object-fit: contain;
  display: block;
  background: #fff;
}
.ncd-picker-preview .ncd-file-card__name,
.ncd-existing-thumbnail-slot .ncd-file-card__name {
  font-size: .62rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  padding: 4px 5px;
}

@media (max-width: 900px) {
  .ncd-task-meta-grid--task-main {
    gap: 6px;
  }
  .ncd-task-meta-grid--task-main .ncd-field > label { font-size: .64rem; }
  .ncd-task-meta-grid--task-main .ncd-field input,
  .ncd-task-meta-grid--task-main .ncd-category-dropdown__summary {
    height: 34px;
    min-height: 34px;
    padding: 5px 7px;
    font-size: .68rem;
  }
  .ncd-cutting-pickers { gap: 6px; }
}

@media (max-width: 620px) {
  .ncd-task-meta-grid--task-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .ncd-task-meta-grid--task-main .ncd-field > label {
    font-size: .58rem;
    line-height: 1.05;
  }
  .ncd-task-meta-grid--task-main .ncd-field input,
  .ncd-task-meta-grid--task-main .ncd-category-dropdown__summary {
    height: 32px;
    min-height: 32px;
    padding: 4px 5px;
    font-size: .61rem;
    border-radius: 5px;
  }
  .ncd-task-meta-grid--task-main .ncd-category-dropdown__count { font-size: .58rem; }
  .ncd-task-cutting-field > label { font-size: .68rem; }
  .ncd-cutting-pickers {
    grid-template-columns: repeat(6, 110px);
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 7px;
  }
  .ncd-cutting-slot-heading { font-size: .62rem; }
  .ncd-picker-preview .ncd-file-card__media,
  .ncd-picker-preview .ncd-file-card__media img,
  .ncd-picker-preview .ncd-file-card__media--pdf,
  .ncd-picker-preview .ncd-file-card__media--pdf iframe,
  .ncd-picker-preview .ncd-file-card__media--file,
  .ncd-picker-preview .ncd-existing-thumbnail-slot img {
    height: 100px;
  }
}

@media (max-width: 380px) {
  .ncd-task-meta-grid--task-main .ncd-field > label { font-size: .54rem; }
  .ncd-task-meta-grid--task-main .ncd-field input,
  .ncd-task-meta-grid--task-main .ncd-category-dropdown__summary { font-size: .57rem; }
  .ncd-cutting-pickers { grid-template-columns: repeat(6, 106px); }
}

/* v1.0.81: reusable AJAX suggestions for newsroom production fields. */
.ncd-production-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 2000;
  display: none;
  max-height: min(260px, 42vh);
  overflow-y: auto;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--ncd-line, #d7dfda);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}
.ncd-production-suggestions.is-open { display: block; }
.ncd-production-suggestion {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ncd-ink, #17332b);
  text-align: left;
  font: inherit;
  font-size: .82rem;
  line-height: 1.25;
  cursor: pointer;
}
.ncd-production-suggestion:hover,
.ncd-production-suggestion:focus-visible {
  background: var(--ncd-surface-2, #f2f7f4);
  outline: none;
}
@media (max-width: 899px) {
  .ncd-production-suggestion { font-size: .75rem; padding: 7px 8px; }
}

/* v1.0.85: administrator-managed production directory selectors. Each managed
 * person occupies one compact column; the place is read-only and auto-filled
 * from the selected directory entry. */
.ncd-managed-production-grid { 
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(6px, .8vw, 12px) !important;
}
.ncd-managed-production-grid .ncd-production-directory-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.ncd-managed-production-grid .ncd-production-directory-field label {
  font-size: clamp(.58rem, .72vw, .74rem);
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ncd-managed-production-grid .ncd-production-directory-field select,
.ncd-managed-production-grid .ncd-production-directory-field input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 6px 8px;
  font-size: clamp(.63rem, .76vw, .78rem);
  line-height: 1.15;
  box-sizing: border-box;
}
.ncd-managed-production-grid .ncd-production-directory-field input[readonly] {
  background: #f7f8f6;
  color: #5f6d66;
}
.ncd-managed-production-grid--staff {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (max-width: 1100px) {
  .ncd-managed-production-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .ncd-managed-production-grid .ncd-production-directory-field select,
  .ncd-managed-production-grid .ncd-production-directory-field input { height: 34px; min-height: 34px; font-size: .66rem; padding: 5px 6px; }
}
@media (max-width: 760px) {
  .ncd-managed-production-grid,
  .ncd-managed-production-grid--staff { grid-template-columns: repeat(4, minmax(108px, 1fr)) !important; overflow-x: auto; overflow-y: visible; padding-bottom: 4px; }
  .ncd-managed-production-grid .ncd-production-directory-field { min-width: 108px; }
  .ncd-managed-production-grid .ncd-production-directory-field select,
  .ncd-managed-production-grid .ncd-production-directory-field input { font-size: .63rem; }
}


/* v1.0.86: category dropdown options are intentionally single-column.
 * Each category occupies one full row with its tick box immediately to the left
 * of the category name. This applies to both Employee Task and Verify screens
 * at every viewport size.
 */
.ncd-category-options {
  grid-template-columns: 1fr !important;
  grid-auto-flow: row;
  overflow-x: hidden;
}
.ncd-category-option {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.ncd-category-option__check {
  flex: 0 0 20px;
}
.ncd-category-option__name {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .ncd-category-options {
    grid-template-columns: 1fr !important;
  }
  .ncd-category-option {
    min-height: 42px;
    padding: 8px 9px;
  }
}

/* v1.0.87: Keep the Newspaper Cutting Photo and Story Thumbnail headings on the same row.
 * The heading row and picker row share one horizontal scroll context so their columns stay aligned.
 */
.ncd-cutting-media-scroll {
  --ncd-cutting-slot-width: clamp(145px, 15vw, 220px);
  --ncd-cutting-gap: 10px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ncd-cutting-section-head {
  display: grid;
  grid-template-columns:
    calc((var(--ncd-cutting-slot-width) * 5) + (var(--ncd-cutting-gap) * 4))
    var(--ncd-cutting-slot-width);
  gap: var(--ncd-cutting-gap);
  min-width: max-content;
  margin: 0 0 4px;
  align-items: end;
}
.ncd-cutting-section-head__cutting,
.ncd-cutting-section-head__thumbnail {
  font-size: .76rem;
  line-height: 1.15;
  font-weight: 800;
  padding: 0 2px;
}
.ncd-cutting-section-head__thumbnail {
  padding-left: 4px;
}
.ncd-cutting-media-scroll > .ncd-cutting-pickers {
  width: max-content;
  min-width: max-content;
  overflow: visible;
  margin-top: 0;
  padding: 2px 2px 8px;
  gap: var(--ncd-cutting-gap);
}
.ncd-cutting-media-scroll .ncd-cutting-picker-slot {
  flex: 0 0 var(--ncd-cutting-slot-width);
  width: var(--ncd-cutting-slot-width);
  min-width: var(--ncd-cutting-slot-width);
  max-width: var(--ncd-cutting-slot-width);
}
.ncd-cutting-media-scroll .ncd-cutting-picker-slot--thumbnail {
  padding-left: 10px;
}
@media (max-width: 620px) {
  .ncd-cutting-media-scroll {
    --ncd-cutting-slot-width: 135px;
    --ncd-cutting-gap: 8px;
  }
  .ncd-cutting-section-head__cutting,
  .ncd-cutting-section-head__thumbnail {
    font-size: .7rem;
  }
}


/* v1.0.90 targeted fixes only: restore Verify Story mobile stacking after the
 * later production-row rules inadvertently kept the desktop split layout. */
@media (max-width: 899px) {
  .ncd-shell--verify-detail .ncd-verify-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
  }
  .ncd-shell--verify-detail .ncd-verify-reference-content,
  .ncd-shell--verify-detail .ncd-verify-editor {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .ncd-shell--verify-detail .ncd-verify-reference-content {
    position: static !important;
    order: 1 !important;
  }
  .ncd-shell--verify-detail .ncd-verify-editor {
    order: 2 !important;
  }
}

/* Keep submitted-story reminders visible in the Employee Task history. */
.ncd-shell--task-entry .ncd-task-history--sidebar .ncd-story-card--task h2,
.ncd-shell--task-entry .ncd-task-history--sidebar .ncd-story-card--task > p,
.ncd-shell--task-entry .ncd-task-history--sidebar .ncd-lock-note {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.ncd-shell--task-entry .ncd-task-history--sidebar .ncd-story-card--task > p {
  overflow-wrap: anywhere;
}


/* v1.0.92: final task-desk desktop restoration only.
 * Keep the employee entry form on the left and Submitted Tasks on the right.
 * Verified/locked task cards remain readable in the sidebar. No workflow changes.
 */
@media (min-width: 901px) {
  .ncd-shell--task-entry {
    width: calc(100% - 48px) !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .ncd-shell--task-entry .ncd-task-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    align-items: start !important;
    overflow: visible !important;
  }
  .ncd-shell--task-entry .ncd-task-entry-column {
    grid-column: 1 !important;
    min-width: 0 !important;
    width: auto !important;
  }
  .ncd-shell--task-entry .ncd-task-history--sidebar {
    grid-column: 2 !important;
    min-width: 0 !important;
    width: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: sticky !important;
    top: 12px !important;
    max-height: calc(100vh - 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    align-self: start !important;
  }
  .ncd-shell--task-entry .ncd-task-history--sidebar .ncd-story-card--task h2,
  .ncd-shell--task-entry .ncd-task-history--sidebar .ncd-story-card--task > p,
  .ncd-shell--task-entry .ncd-task-history--sidebar .ncd-lock-note {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 900px) {
  .ncd-shell--task-entry .ncd-task-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: none !important;
    gap: 14px !important;
  }
  .ncd-shell--task-entry .ncd-task-entry-column,
  .ncd-shell--task-entry .ncd-task-history--sidebar {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .ncd-shell--task-entry .ncd-task-history--sidebar {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* v1.0.93: deterministic Employee Task history panel. Keep the submission
 * queue visible in the second desktop column and make it impossible for
 * private-post capability filtering to hide an already-owned task record. */
.ncd-shell--task-entry .ncd-task-history--right-panel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 160px !important;
  box-sizing: border-box !important;
  align-self: start !important;
  background: var(--ncd-surface, #fffdf8) !important;
  color: var(--ncd-ink, #17211c) !important;
}
.ncd-shell--task-entry .ncd-task-history--right-panel .ncd-story-list {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
}
.ncd-shell--task-entry .ncd-task-history--right-panel .ncd-story-card--task {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}
.ncd-shell--task-entry .ncd-task-history--right-panel .ncd-story-card--task h2,
.ncd-shell--task-entry .ncd-task-history--right-panel .ncd-story-card--task > p,
.ncd-shell--task-entry .ncd-task-history--right-panel .ncd-lock-note {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: inherit;
}

@media (min-width: 901px) {
  .ncd-shell--task-entry .ncd-task-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    align-items: start !important;
  }
  .ncd-shell--task-entry .ncd-task-entry-column { grid-column: 1 !important; }
  .ncd-shell--task-entry .ncd-task-history--right-panel {
    grid-column: 2 !important;
    position: sticky !important;
    top: 12px !important;
    max-height: calc(100vh - 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 900px) {
  .ncd-shell--task-entry .ncd-task-history--right-panel {
    grid-column: 1 !important;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* v1.0.93: do not let the single-story edit class collapse the split task workspace. */
.ncd-shell--task-entry.ncd-shell--narrow {
  width: calc(100% - 48px) !important;
  max-width: 1400px !important;
}


/* v1.0.94: Employee Task history reliability and performance. */
.ncd-task-history-audit { margin-top: 8px; }
.ncd-task-history-audit__content { margin-top: 8px; }
@media (min-width: 901px) {
  .ncd-shell--task-entry {
    width: min(calc(100vw - 48px), 1400px) !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .ncd-shell--task-entry .ncd-task-workspace {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
  }
  .ncd-shell--task-entry .ncd-task-entry-column {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .ncd-shell--task-entry .ncd-task-history--right-panel {
    flex: 0 0 clamp(320px, 32%, 430px) !important;
    width: auto !important;
    min-width: 320px !important;
    max-width: 430px !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: sticky !important;
    top: 12px !important;
    max-height: calc(100vh - 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  .ncd-shell--task-entry .ncd-task-history--right-panel .ncd-story-card--task h2,
  .ncd-shell--task-entry .ncd-task-history--right-panel .ncd-story-card--task > p,
  .ncd-shell--task-entry .ncd-task-history--right-panel .ncd-lock-note {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
@media (max-width: 900px) {
  .ncd-shell--task-entry .ncd-task-workspace {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  .ncd-shell--task-entry .ncd-task-entry-column,
  .ncd-shell--task-entry .ncd-task-history--right-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }
  .ncd-shell--task-entry .ncd-task-history--right-panel {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* v1.0.95: definitive Employee Task desktop split.
 * Desktop: entry form 2/3, submitted tasks 1/3.
 * Mobile/tablet: single column. Scoped to Task page only. */
@media (min-width: 901px) {
  html body .ncd-main .ncd-shell.ncd-shell--task-entry {
    width: min(calc(100vw - 48px), 1400px) !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body .ncd-main .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    grid-auto-flow: row !important;
    column-gap: 20px !important;
    row-gap: 0 !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  html body .ncd-main .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-entry-column {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
  }
  html body .ncd-main .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-history--right-panel {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: sticky !important;
    top: 12px !important;
    max-height: calc(100vh - 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 900px) {
  html body .ncd-main .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: none !important;
    gap: 14px !important;
    overflow: visible !important;
  }
  html body .ncd-main .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-entry-column,
  html body .ncd-main .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-history--right-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  html body .ncd-main .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-history--right-panel {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* v1.0.96: authoritative Task workspace layout. Scoped to the Employee Task
 * page so other newsroom/report/verify layouts are not affected. */
@media (min-width: 901px) {
  html body .site-content .ncd-shell.ncd-shell--task-entry {
    width: calc(100% - 32px) !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  html body .site-content .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    align-items: start !important;
    overflow: visible !important;
  }
  html body .site-content .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-entry-column {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
  }
  html body .site-content .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-history--right-panel {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: sticky !important;
    top: 12px !important;
    max-height: calc(100vh - 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
  html body .site-content .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-history--right-panel .ncd-story-card--task h2,
  html body .site-content .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-history--right-panel .ncd-story-card--task > p,
  html body .site-content .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-history--right-panel .ncd-lock-note {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
@media (max-width: 900px) {
  html body .site-content .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  html body .site-content .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-entry-column,
  html body .site-content .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-history--right-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
  }
  html body .site-content .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-history--right-panel {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* v1.0.97: authoritative Task workspace fix.
 * This is deliberately the final rule in the stylesheet so earlier responsive
 * rules cannot collapse the desktop Task workspace. Desktop/tablet (>700px)
 * is 2/3 entry + 1/3 submitted tasks. Phones (<=700px) are one column.
 */
@media (min-width: 701px) {
  html body .site-content .ncd-shell--task-entry > .ncd-task-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: start !important;
    overflow: visible !important;
  }
  html body .site-content .ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-entry-column {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
  }
  html body .site-content .ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-history--right-panel {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: sticky !important;
    top: 12px !important;
    max-height: calc(100vh - 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 700px) {
  html body .site-content .ncd-shell--task-entry > .ncd-task-workspace {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  html body .site-content .ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-entry-column,
  html body .site-content .ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-history--right-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
  html body .site-content .ncd-shell--task-entry > .ncd-task-workspace > .ncd-task-history--right-panel {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* v1.0.99: authoritative Task workspace layout based on the working 1.0.65
 * structure. This block is intentionally limited to the Employee Task workspace.
 * Desktop/tablet: 2/3 entry + 1/3 submitted tasks. Mobile: one column. */
@media (min-width: 701px) {
  html body .ncd-shell--task-entry > .ncd-task-workspace--desktop-split {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr) !important;
    grid-template-rows: auto !important;
    grid-auto-flow: row !important;
    column-gap: 20px !important;
    row-gap: 0 !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body .ncd-shell--task-entry > .ncd-task-workspace--desktop-split > .ncd-task-entry-column {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
  }

  html body .ncd-shell--task-entry > .ncd-task-workspace--desktop-split > .ncd-task-history--right-panel {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: sticky !important;
    top: 12px !important;
    max-height: calc(100vh - 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 700px) {
  html body .ncd-shell--task-entry > .ncd-task-workspace--desktop-split {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body .ncd-shell--task-entry > .ncd-task-workspace--desktop-split > .ncd-task-entry-column,
  html body .ncd-shell--task-entry > .ncd-task-workspace--desktop-split > .ncd-task-history--right-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    flex: 0 0 auto !important;
  }

  html body .ncd-shell--task-entry > .ncd-task-workspace--desktop-split > .ncd-task-history--right-panel {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* v1.0.115: widen New Story Entry further on desktop only.
 * Submitted Tasks stays as a compact right rail. Mobile/tablet rules are untouched. */
@media (min-width: 901px) {
  html body .site-content .ncd-shell.ncd-shell--task-entry {
    width: calc(100% - 16px) !important;
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  html body .site-content .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace.ncd-task-workspace--desktop-split {
    display: grid !important;
    grid-template-columns: minmax(0, 6fr) minmax(250px, 1fr) !important;
    column-gap: 18px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: start !important;
    overflow: visible !important;
  }
  html body .site-content .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace.ncd-task-workspace--desktop-split > .ncd-task-entry-column {
    grid-column: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }
  html body .site-content .ncd-shell.ncd-shell--task-entry > .ncd-task-workspace.ncd-task-workspace--desktop-split > .ncd-task-history--right-panel {
    grid-column: 2 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }
}


/* v1.0.116: keep verification production attribution in the same five-field
 * order as Employee Task. The existing role-based visibility rules remain intact. */
@media (min-width: 901px) {
  html body .ncd-shell--verify-detail .ncd-production-five-grid--verify {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
  }
}


/* v1.0.116: verifier production fields match Employee Task for all verifier roles. */
@media (min-width: 901px) {
  html body .ncd-shell--verify-detail .ncd-production-five-grid--verify.ncd-production-five-grid--staff {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
  }
}

/* v1.0.117: On desktop, keep all five production assignment fields on one row so
 * Video Edited By remains directly beside GFX by. Tablet/mobile behavior stays as
 * previously defined. */
@media (min-width: 901px) {
  html body .ncd-shell--task-entry .ncd-managed-production-grid,
  html body .ncd-shell--verify-detail .ncd-managed-production-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
  }
}


/* NewsDesk 2.2.67: Task shell must not inherit the default 1040px cap. */
@media (min-width: 901px) {
  html body.ncd-task-entry-page .ncd-shell.ncd-shell--task-entry {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}
