/* ==========================================================================
   Desk layer (v3.8): one shell for every signed-in page. A sticky sidebar grouped by role,
   a compact one-line page header, at-a-glance strips, stage filters, jump bars and
   stacked sections. Loaded after theme-wiley.css so it wins over the older band navigation.
   ========================================================================== */

/* ---- Shell ---- */
.workspace { padding: 18px 0 64px; min-height: 0; }
.workspace__layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.workspace-main { min-width: 0; }
.workspace__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin: 0 0 18px; padding: 4px 0 12px; border-bottom: 1px solid var(--rule); }
.workspace__header h1 { margin: 4px 0 0; font: 600 clamp(20px, 2vw, 26px)/1.2 var(--display); letter-spacing: -.01em; color: var(--navy); }
.workspace__header h1 i { font-style: normal; color: var(--ballpoint); }
.workspace__header .eyebrow { margin: 0; font-size: 10.5px; }
.workspace-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.workspace-actions .button { padding: 10px 16px; font-size: 13.5px; white-space: nowrap; }
.workspace-actions .text-button, .workspace-actions .text-action { font-size: 13.5px; }
.workspace-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 14px; }
.workspace-title h2 { margin: 4px 0 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; }
.workspace-title .field-note { font-size: 13px; font-weight: 400; color: var(--muted); }

/* ---- Sidebar navigation ---- */
.workspace-nav { position: sticky; top: 86px; display: block; align-self: start; max-height: calc(100vh - 96px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 4px; background: #fff; box-shadow: var(--shadow-sheet); }
.workspace-nav__toggle { display: none; }
.workspace-nav__toggle span { color: #fff; font: inherit; min-width: 0; padding: 0; background: none; }
.workspace-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px 14px; margin: -6px 0 14px; }
.workspace-toolbar .toolbar { margin: 0; }
.workspace-toolbar .actions { margin: 0; }
.workspace__header h1 .field-note { margin-left: 8px; font: 400 13px/1.4 var(--text); color: var(--muted); letter-spacing: 0; }
.workspace__header h1 .status-chip { margin-left: 8px; vertical-align: middle; }
.workspace-nav__list { display: block; padding: 6px 0 8px; }
.nav-section { padding: 6px 0 4px; border-top: 1px solid var(--rule); }
.nav-section:first-child { border-top: 0; }
.workspace-nav .nav-group { display: block; margin: 6px 14px 4px; color: var(--muted); font: 600 10.5px/1.4 var(--text); letter-spacing: .1em; text-transform: uppercase; }
.workspace-nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 6px; padding: 7px 10px 7px 12px; border: 0; border-left: 3px solid transparent; border-radius: 3px; color: var(--ink-soft); font: 500 14px/1.3 var(--text); text-decoration: none; }
.workspace-nav a:hover { background: var(--panel); color: var(--navy); }
.workspace-nav a.is-active { background: var(--scrub-pale); color: var(--navy); font-weight: 600; border-left-color: var(--ballpoint); box-shadow: none; }
.workspace-nav a span { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--navy); color: #fff; font: 600 11px/1.5 var(--text); text-align: center; margin: 0; }
.workspace-nav a.is-active span { background: var(--ballpoint); }

/* ---- At-a-glance strip ---- */
.glance-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; margin: 0 0 16px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; overflow: hidden; }
.glance-strip > div { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: -1px; }
.glance-strip > div:last-child { border-right: 0; }
.glance-strip span { display: block; color: var(--muted); font: 600 10.5px/1.4 var(--text); letter-spacing: .08em; text-transform: uppercase; }
.glance-strip b { display: block; margin-top: 4px; font: 600 15.5px/1.3 var(--display); color: var(--navy); overflow-wrap: anywhere; }
.glance-strip b .status-chip { font-size: 10px; vertical-align: middle; }
.glance-strip small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.glance-strip .is-alert b { color: var(--stamp); }
.glance-strip .is-ok b { color: var(--ok); }
.glance-strip .is-next { background: var(--scrub-pale); }
.glance-strip .is-next b { color: var(--ballpoint); }

/* ---- Stage filter strip (editorial queue) ---- */
.stage-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; }
.stage-strip a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; background: #fff; color: var(--ink-soft); font: 500 13px/1.2 var(--text); text-decoration: none; }
.stage-strip a:hover { border-color: var(--ballpoint); color: var(--navy); }
.stage-strip a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.stage-strip a b { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--panel); color: var(--navy); font: 600 11px/1.5 var(--text); text-align: center; }
.stage-strip a.is-active b { background: rgba(255, 255, 255, .2); color: #fff; }
.stage-strip a.is-empty { color: var(--muted); }

/* ---- Queue rows (editorial office) ---- */
.queue-row { display: grid; grid-template-columns: minmax(260px, 2.2fr) 130px 150px 150px 170px 34px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.queue-row:last-child { border-bottom: 0; }
.queue-row:hover { background: var(--panel); }
.queue-row.table-head { padding: 10px 18px; }
.queue-row > * { min-width: 0; }
.queue-row .ref { color: var(--ballpoint); font: 600 11.5px/1.4 var(--mono); letter-spacing: .04em; }
.queue-row strong { display: block; margin: 2px 0 2px; font: 600 15.5px/1.3 var(--display); color: var(--ink); }
.queue-row small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.queue-row .qmeta { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.queue-row .qmeta small { font-size: 12px; }
.queue-row .qnext { font: 600 13px/1.35 var(--text); color: var(--navy); }
.queue-row .qnext.is-alert { color: var(--stamp); }
.queue-row .qnext.is-wait { color: var(--muted); font-weight: 500; }
.queue-row .qnext small { font-weight: 400; }
.queue-row b.arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; font-weight: 400; }
.queue-row:hover b.arrow { background: var(--ink); color: #fff; }
.meter { display: block; height: 6px; margin: 6px 0 0; border-radius: 3px; background: var(--paper-deep); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ballpoint); }
.meter.is-alert i { background: var(--stamp); }
.meter.is-ok i { background: var(--ok); }

/* ---- Jump bar and stacked sections ---- */
.jump-bar { position: sticky; top: 74px; z-index: 5; display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 16px; padding: 6px 6px; border: 1px solid var(--rule); border-radius: 4px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); }
.jump-bar a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 3px; color: var(--ink-soft); font: 600 13px/1.2 var(--text); text-decoration: none; }
.jump-bar a:hover { background: var(--panel); color: var(--navy); }
.jump-bar a span { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--scrub-pale); color: var(--ballpoint); font-size: 11px; line-height: 1.6; text-align: center; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 26px 0 10px; padding: 0 0 8px; border-bottom: 2px solid var(--navy); scroll-margin-top: 130px; }
.section-head:first-child { margin-top: 0; }
.section-head h3 { margin: 0; font: 600 17px/1.3 var(--display); color: var(--navy); }
.section-head__extra { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.desk-section { scroll-margin-top: 130px; }
.desk-section .sheet:last-child { margin-bottom: 0; }
.rail-next { border-left: 3px solid var(--ballpoint); }
.rail-next .label { color: var(--ballpoint); }
.rail-next p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; }
.rail-next .actions { margin-top: 10px; }
details.collapsed-sheet > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 15px/1.3 var(--display); color: var(--navy); }
details.collapsed-sheet > summary::-webkit-details-marker { display: none; }
details.collapsed-sheet > summary::after { content: '+'; font-weight: 400; color: var(--muted); }
details.collapsed-sheet[open] > summary::after { content: '–'; }
details.collapsed-sheet > summary small { font-weight: 400; color: var(--muted); }
details.collapsed-sheet > summary + * { margin-top: 12px; }

/* ---- Author manuscript rows ---- */
.ms-row { display: grid; grid-template-columns: minmax(240px, 2fr) 130px minmax(140px, 1fr) 110px 34px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.ms-row:last-child { border-bottom: 0; }
.ms-row:hover { background: var(--panel); }
.ms-row > * { min-width: 0; }
.ms-row .ref { color: var(--ballpoint); font: 600 11.5px/1.4 var(--mono); letter-spacing: .04em; }
.ms-row strong { display: block; margin: 2px 0; font: 600 15.5px/1.3 var(--display); color: var(--ink); }
.ms-row small { display: block; color: var(--muted); font-size: 12.5px; }
.ms-row .stage small { font-size: 12px; color: var(--ink-soft); }
.ms-row b.arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; font-weight: 400; }
.ms-row:hover b.arrow { background: var(--ink); color: #fff; }
.ms-row b.arrow.is-flat { border: 0; width: auto; }
.ms-row .text-button--danger { white-space: nowrap; }

/* ---- Reviewer rows ---- */
.review-row { display: grid; grid-template-columns: minmax(240px, 2fr) 120px 170px 130px 34px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.review-row:last-child { border-bottom: 0; }
.review-row:hover { background: var(--panel); }
.review-row > * { min-width: 0; }
.review-row .ref { color: var(--ballpoint); font: 600 11.5px/1.4 var(--mono); letter-spacing: .04em; }
.review-row strong { display: block; margin: 2px 0; font: 600 15.5px/1.3 var(--display); }
.review-row strong a { color: var(--ink); text-decoration: none; }
.review-row strong a:hover { color: var(--ballpoint); text-decoration: underline; }
.review-row small { display: block; color: var(--muted); font-size: 12.5px; }
.review-row .qmeta { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.review-row a.arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); text-decoration: none; }
.review-row a.arrow:hover { background: var(--ink); color: #fff; }

/* ---- Lists share the same head ---- */
.table-list .table-head { padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); color: var(--muted); font: 600 10.5px/1.4 var(--text); letter-spacing: .1em; text-transform: uppercase; }
.table-list .table-head span { font: inherit; }
.metric-grid.stat-row article { padding: 12px 14px; }
.metric-grid.stat-row strong { font-size: 28px; margin: 6px 0 2px; }
.metric-grid.stat-row span { font: 600 10.5px/1.4 var(--text); letter-spacing: .08em; }
.desk-list { margin-top: 12px; }

/* ---- Right rail ---- */
.split > aside .sheet { padding: 14px 16px; margin-bottom: 12px; }
.split > aside .sheet .label { margin-bottom: 4px; }
.split > aside .kv div { grid-template-columns: 104px minmax(0, 1fr); padding: 7px 0; font-size: 13.5px; }
.split > aside .file-list li { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 7px 0; font-size: 13.5px; }
.split > aside .file-list li > span:empty { display: none; }

/* ---- Narrow viewports ---- */
@media (max-width: 1100px) {
  .queue-row { grid-template-columns: minmax(200px, 2fr) 120px 150px 34px; }
  .queue-row > :nth-child(3), .queue-row > :nth-child(4) { display: none; }
  .ms-row { grid-template-columns: minmax(200px, 2fr) 120px 34px; }
  .ms-row > :nth-child(3), .ms-row > :nth-child(4) { display: none; }
  .review-row { grid-template-columns: minmax(200px, 2fr) 110px 34px; }
  .review-row > :nth-child(3), .review-row > :nth-child(4) { display: none; }
}
@media (max-width: 900px) {
  .workspace__layout { display: block; }
  .workspace-nav { position: relative; top: auto; max-height: none; overflow: visible; margin: 0 0 16px; }
  .workspace__header { flex-direction: column; align-items: flex-start; }
  .workspace-toolbar { justify-content: flex-start; }
  .workspace-nav__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 0; background: var(--navy); color: #fff; font: 600 14px/1.2 var(--text); text-align: left; border-radius: 3px; cursor: pointer; }
  .workspace-nav__toggle i { font-style: normal; font-size: 16px; }
  .workspace-nav__list { display: none; }
  .workspace-nav.is-open .workspace-nav__list { display: block; }
  .workspace-nav.is-open .workspace-nav__toggle { border-radius: 3px 3px 0 0; }
  .workspace-nav.is-open { position: relative; z-index: 20; box-shadow: 0 12px 30px -10px rgba(16, 24, 40, .35); }
  .workspace-nav.is-open .workspace-nav__list { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 4px 4px; max-height: 70vh; overflow: auto; }
  .jump-bar { top: 72px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
  .jump-bar a { white-space: nowrap; }
  .glance-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance-strip > div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 600px) {
  .queue-row { grid-template-columns: minmax(0, 1fr) 34px; grid-template-rows: auto auto; row-gap: 6px; }
  .queue-row > :nth-child(2), .queue-row > :nth-child(3), .queue-row > :nth-child(4) { display: none; }
  .queue-row > :first-child { grid-column: 1; grid-row: 1; }
  .queue-row > .arrow { grid-column: 2; grid-row: 1; }
  .queue-row > :nth-child(5) { grid-column: 1 / -1; grid-row: 2; }
  .queue-row.table-head > :nth-child(5) { display: none; }
  .ms-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .ms-row > :nth-child(2) { display: none; }
  .review-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .review-row > :nth-child(2) { display: none; }
  .stage-strip { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .stage-strip a { white-space: nowrap; flex: 0 0 auto; }
}
@media print { .workspace-nav, .jump-bar, .workspace-actions { display: none !important; } .workspace__layout { display: block; } }

/* Long emails and file names never push a phone page sideways. */
.file-list li > *, .events li > *, .kv dd, .review-card__head > *, .thread li { min-width: 0; overflow-wrap: anywhere; }
.file-list small, .events small, .qmeta small { overflow-wrap: anywhere; }
.jump-bar { max-width: 100%; }

/* ---- Density pass (2026-09-20): the desk uses the whole window and every gap is tighter. ---- */
.workspace { padding: 12px 0 44px; }
.workspace > .shell.workspace__layout { width: min(1840px, calc(100% - 32px)); grid-template-columns: 208px minmax(0, 1fr); gap: 20px; }
.workspace__header { margin: 0 0 12px; padding: 0 0 10px; gap: 8px 16px; }
.workspace__header h1 { font-size: clamp(19px, 1.7vw, 24px); }
.workspace-toolbar { margin: -2px 0 10px; }
.workspace-title { margin: 0 0 10px; }
.workspace-nav { top: 82px; max-height: calc(100vh - 92px); }
.workspace-nav__list { padding: 4px 0 6px; }
.nav-section { padding: 4px 0 3px; }
.workspace-nav .nav-group { margin: 4px 12px 2px; font-size: 10px; }
.workspace-nav a { margin: 0 5px; padding: 6px 8px 6px 10px; font-size: 13.5px; }
.workspace .sheet { padding: 14px 16px; margin-bottom: 12px; }
.workspace .sheet h3 { font-size: 19px; margin-bottom: 8px; }
.workspace .sheet h2 { font-size: 23px; }
.workspace .split { gap: 14px; grid-template-columns: minmax(0, 1fr) 300px; }
.workspace .split--wide { grid-template-columns: minmax(0, 1fr) 340px; }
.workspace .split > aside .sheet { padding: 12px 14px; margin-bottom: 10px; }
.workspace .two-col { gap: 12px; }
.glance-strip { margin: 0 0 12px; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.glance-strip > div { padding: 10px 12px; }
.glance-strip b { font-size: 15px; }
.stage-strip { margin: 0 0 10px; gap: 5px; }
.stage-strip a { padding: 5px 9px 5px 11px; font-size: 12.5px; }
.jump-bar { margin: 0 0 12px; padding: 4px; }
.jump-bar a { padding: 5px 9px; }
.section-head { margin: 18px 0 8px; padding-bottom: 6px; }
.queue-row, .ms-row, .review-row { padding: 11px 14px; gap: 12px; }
.queue-row.table-head, .ms-row.table-head, .review-row.table-head { padding: 8px 14px; }
.table-list .table-row { padding: 11px 14px; }
.metric-grid.stat-row { gap: 10px; margin-bottom: 12px; }
.metric-grid.stat-row article { padding: 10px 12px; }
.metric-grid.stat-row strong { font-size: 26px; margin: 4px 0 2px; }
.desk-list { margin-top: 10px; padding: 12px 14px; }
.task-row { padding: 8px 0; }
.list-heading { margin-bottom: 6px; }
.list-heading h3 { font-size: 19px; }
.workspace .file-list li { padding: 7px 0; }
.workspace .kv div { padding: 7px 0; }
.workspace .notice-box { padding: 11px 13px; }
.workspace .ai-panel { padding: 14px 16px; margin: 10px 0; }
.workspace .review-card { padding: 14px 16px; margin-bottom: 10px; }
.workspace .form label { margin-top: 10px; }
.workspace .tabs { margin-bottom: 10px; }
.workspace .wizard--2 { gap: 14px; }
.workspace .stepper { margin-bottom: 12px; }
/* Right rail stacks under the main column sooner, because the sidebar already takes width. */
@media (max-width: 1240px) { .workspace .split, .workspace .split--wide { grid-template-columns: minmax(0, 1fr); } .workspace .split > aside { position: static; max-height: none; overflow: visible; } .workspace .split > aside .sheet { margin-bottom: 10px; } }
@media (max-width: 1240px) and (min-width: 901px) { .workspace .split > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; align-items: start; } .workspace .split > aside .rail-next { grid-column: 1 / -1; } }
@media (max-width: 900px) { .workspace > .shell.workspace__layout { width: calc(100% - 24px); } .glance-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .glance-strip > div:nth-child(2n) { border-right: 1px solid var(--rule); } .glance-strip > div:nth-child(3n) { border-right: 0; } }
@media (max-width: 560px) { .glance-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .glance-strip > div:nth-child(3n) { border-right: 1px solid var(--rule); } .glance-strip > div:nth-child(2n) { border-right: 0; } .workspace > .shell.workspace__layout { width: calc(100% - 20px); } .workspace .sheet { padding: 12px 12px; } }

/* File check panel on the Files and Submit steps. */
.file-check { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--rule); border-left: 3px solid var(--muted); border-radius: 4px; background: #fff; }
.file-check.is-ok { border-left-color: var(--ok); }
.file-check.is-bad { border-left-color: var(--stamp); background: #fdf6f5; }
.file-check .checks { margin-top: 6px; }

/* Remove-file button in the desk file list. */
.file-del { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.file-del:hover { color: var(--stamp); }
.split > aside .file-list li { grid-template-columns: 76px minmax(0, 1fr) auto; }

/* Production check panel. */
.prodcheck { margin: 0 0 12px; }
.prodcheck > summary { cursor: pointer; list-style: none; }
.prodcheck.is-bad { border-left: 3px solid var(--stamp); }
.pc-sugg { list-style: none; margin: 10px 0 0; padding: 0; }
.pc-sugg li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.pc-sugg del { color: var(--stamp); } .pc-sugg ins { color: var(--ok); text-decoration: none; font-weight: 600; }
.pc-sugg small { display: block; color: var(--muted); }
.pc-sugg li.is-done { opacity: .55; }

/* --------------------------------------------------------------------------
   Spacing pass (2026-10-02): one tighter vertical scale for every public page.
   -------------------------------------------------------------------------- */
.section { padding: clamp(24px, 3vw, 40px) 0; }
.section-heading { margin-bottom: 18px; padding-bottom: 10px; }
.news-strip .shell { padding: 9px 0; }
.metrics-band { margin-top: 18px; gap: 12px; }
.metrics-band div { padding: 12px 16px; }
.ai-band { margin-top: 16px; gap: 22px; }
.ai-band h3 { margin-bottom: 6px; }
.jbanner { padding: 28px 0 26px; }
.contents-band { margin-top: 24px; }
.page-hero { padding: clamp(22px, 3vw, 36px) 0 clamp(18px, 2.4vw, 28px); }
.content { padding: clamp(20px, 3vw, 32px) 0 clamp(32px, 4vw, 52px); }
.issue-header { padding: clamp(28px, 4vw, 52px) 0; }
.issue-callout { padding: clamp(28px, 3.5vw, 44px) 0; }
.subscribe { padding: clamp(26px, 3.5vw, 40px) 0; }
.footer { padding: 36px 0 18px; }
.footer__bottom { margin-top: 28px; }
.article-header { padding: 24px 0 28px; }
.running-head { margin-bottom: 24px; }
.article-layout { padding: 32px 0 56px; }
.art-static { padding: 28px 0 56px; }
.art-section { margin-top: 32px; }
.prose h2, .policy-copy h2 { margin: 28px 0 10px; }
.submit-page { padding: clamp(20px, 2.5vw, 32px) 0 clamp(36px, 4vw, 56px); }
.auth-page { padding: 28px 16px; }
.not-found { padding: clamp(40px, 6vw, 80px) 0; min-height: 0; }
.no-results { padding: 24px 0; }
@media (max-width: 560px) {
  .section { padding: 22px 0; }
  .section-heading { margin-bottom: 14px; }
  .jbanner { padding: 22px 0 20px; }
  .page-hero { padding: 20px 0 16px; }
}

/* --------------------------------------------------------------------------
   Editor desk v4 (2026-10-02): role switcher, To do queue, manuscript tabs.
   -------------------------------------------------------------------------- */
.role-switch { display: block; margin: 4px 8px 8px; padding: 8px 8px 10px; border-bottom: 1px solid var(--rule); }
.role-switch span { display: block; margin-bottom: 4px; color: var(--muted); font: 600 10.5px/1.4 var(--text); letter-spacing: .1em; text-transform: uppercase; }
.role-switch select { width: 100%; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; color: var(--navy); font: 600 14px/1.2 var(--text); }
.nav-section--account { margin-top: 6px; }

/* Toolbars above lists */
.desk-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.desk-toolbar .check { margin: 0 0 6px; }
.desk-toolbar p { margin: 0; }
.desk-toolbar__field { display: grid; gap: 4px; margin: 0; font-size: 12px; color: var(--muted); }
.desk-toolbar__field select, .desk-toolbar__field input { margin: 0; min-width: 200px; padding: 7px 10px; font-size: 14px; }
.desk-toolbar__grow { flex: 1 1 260px; }
.desk-toolbar__grow input { width: 100%; }
.desk-toolbar__count { margin-left: auto !important; font-size: 13.5px; color: var(--ink-soft); }
.desk-toolbar > .desk-toolbar__count:first-child { margin-left: 0 !important; flex: 1; }

/* To do groups */
.todo-group { margin: 0 0 16px; border: 1px solid var(--rule); border-left: 4px solid var(--muted); border-radius: 4px; background: #fff; }
.todo-group--assign, .todo-group--chase { border-left-color: var(--stamp); }
.todo-group--check, .todo-group--decide, .todo-group--invite { border-left-color: var(--ballpoint); }
.todo-group header { padding: 10px 16px 8px; border-bottom: 1px solid var(--rule); }
.todo-group h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 16px/1.3 var(--text); color: var(--navy); }
.todo-group h3 span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; text-align: center; }
.todo-group--wait h3 span { background: var(--muted); }
.todo-group header p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.todo-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px 150px; gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.todo-group header + .todo-row { border-top: 0; }
.todo-row:hover { background: var(--panel); }
.todo-row__main strong { display: block; margin: 2px 0; font-size: 15px; line-height: 1.35; color: var(--navy); }
.todo-row__main small, .todo-row__state small { display: block; font-size: 12.5px; color: var(--muted); }
.todo-row__state small { margin-top: 4px; }
.todo-row .ref { font: 500 11.5px/1.4 var(--mono); color: var(--ballpoint); }
.is-alert { color: var(--stamp); }
.todo-row__cta { justify-self: end; padding: 7px 12px; border: 1px solid var(--navy); border-radius: 3px; color: var(--navy); font: 600 13px/1.2 var(--text); text-align: center; white-space: nowrap; }
.todo-row__cta.is-primary { background: var(--navy); color: #fff; }
.todo-row:hover .todo-row__cta { background: var(--ballpoint); border-color: var(--ballpoint); color: #fff; }

/* Manuscript page: smaller title, meta line, tabs */
.workspace--ms .workspace__header h1 { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; max-width: 60ch; }
.workspace--ms .workspace__header .workspace-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ms-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -6px 0 8px; font-size: 13.5px; color: var(--ink-soft); }
.ms-meta a { color: var(--ballpoint); font-weight: 600; text-decoration: none; }
.ms-next { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--muted); background: var(--panel); font-size: 14px; }
.ms-next b { margin-right: 6px; color: var(--muted); font: 600 10.5px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; }
.ms-next small { color: var(--muted); font-size: 13px; }
.ms-next--act { border-left-color: var(--ballpoint); }
.ms-next--alert { border-left-color: var(--stamp); background: #fdf6f5; }
.ms-next--ok { border-left-color: var(--ok); }
.ms-tabs { position: sticky; top: 72px; z-index: 5; display: flex; gap: 2px; margin: 0 0 16px; border-bottom: 2px solid var(--navy); background: #fff; overflow-x: auto; scrollbar-width: none; }
.ms-tabs a { display: flex; align-items: center; gap: 6px; padding: 10px 14px 9px; border-radius: 3px 3px 0 0; color: var(--ink-soft); font: 600 14px/1.2 var(--text); text-decoration: none; white-space: nowrap; }
.ms-tabs a:hover { background: var(--panel); color: var(--navy); }
.ms-tabs a.is-active { background: var(--navy); color: #fff; }
.ms-tabs a span { padding: 1px 6px; border-radius: 999px; background: var(--scrub-pale); color: var(--navy); font-size: 11px; }
.ms-tabs a.is-active span { background: rgba(255,255,255,.2); color: #fff; }
.ms-tab .notice-box { margin-bottom: 12px; }
.tab-summary { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sheet-head h3 { margin: 0; }
.author-list { list-style: none; margin: 0; padding: 0; columns: 2 280px; column-gap: 24px; }
.author-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.author-list small { display: block; color: var(--muted); font-size: 12.5px; }
.file-table { list-style: none; margin: 0; padding: 0; }
.file-table li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 90px 28px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.file-table .kind { color: var(--muted); font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.file-table a { overflow-wrap: anywhere; }
.file-table small { color: var(--muted); text-align: right; }
.rec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rec-table td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--rule); }
.workspace .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.workspace .split--even > aside { position: static; max-height: none; overflow: visible; display: block; }
.ms-tab .actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1240px) { .workspace .split--even { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .ms-tabs { top: 0; }
  .todo-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .todo-row__cta { justify-self: start; }
  .file-table li { grid-template-columns: 90px minmax(0, 1fr) 28px; }
  .file-table small { display: none; }
  .desk-toolbar__field select, .desk-toolbar__field input { min-width: 0; width: 100%; }
  .desk-toolbar__field { flex: 1 1 100%; }
  .desk-toolbar__count { margin-left: 0 !important; }
}
.workspace--ms .workspace__header { flex-direction: column; align-items: flex-start; gap: 8px; }
.workspace--ms .workspace__header .workspace-actions { justify-content: flex-start; }
.split > aside select, .split > aside input { width: 100%; max-width: 100%; box-sizing: border-box; }
.ms-tab .empty-inline { padding: 16px; border: 1px dashed var(--rule); border-radius: 4px; background: #fff; }
.workspace .split > aside .invite-panel .file-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.workspace .split > aside .invite-panel .file-list li .kind { grid-column: 1 / -1; }
.invite-panel .file-list li > span:empty { display: none; }
.invite-panel .file-list small { font-family: var(--text); }
@media (max-width: 900px) {
  .workspace-nav { top: auto; }
  .ms-tabs { position: static; flex-wrap: wrap; border-bottom: 0; gap: 4px; }
  .ms-tabs a { border: 1px solid var(--rule); border-radius: 3px; padding: 7px 10px; font-size: 13px; }
}

/* Audit fixes (2026-10-02): headings promoted from h3 to h2 keep their old size; mobile overflow; contrast. */
.empty-panel h2, .news-list h2, .issue-card h2, .ai-card h2 { font-size: 20px; line-height: 1.25; }
.empty-panel h2 { margin: 12px 0 6px; }
.news-list h2 { margin: 4px 0 6px; }
.issue-card h2 { margin: 4px 0 6px; font-size: 22px; }
.ai-card h2 { margin: 6px 0 10px; font-size: 24px; }
.page-hero.page-hero--band p:not(.eyebrow):not(.label) { color: rgba(239, 233, 220, .88); }
.issue-cards { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }
.kv dd, .policy-copy, .prose { overflow-wrap: anywhere; }
.kv dd code, .policy-copy code { word-break: break-all; }
@media (max-width: 850px) {
  .policy-grid, .prose-grid, .contact-grid, .community-grid { grid-template-columns: minmax(0, 1fr); }
  .policy-copy table, .prose table { display: block; max-width: 100%; overflow-x: auto; }
}
@media (max-width: 420px) { .notice__inner span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 700px) {
  .policy-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
  .policy-nav a { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; }
  .policy-nav a.is-active, .policy-nav a:hover { box-shadow: none; padding-left: 10px; background: var(--scrub-pale); }
}
