/* ===========================================================================
   Olivora — editorial workbench
   Screens used by editors, not by readers. These deliberately do NOT use the
   .jc-* classes: those resolve --j-primary from the journal being viewed, and
   an editor's queue spans several journals at once, so the chrome has to stay
   on the platform palette while each row carries its own journal colour.
   =========================================================================== */

/* --- queue ---------------------------------------------------------------- */
.e-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--ol-rule); margin-bottom: var(--ol-m); }
.e-tabs a {
  padding: 12px 16px; font-size: 13.5px; font-weight: 500; color: var(--ol-ink-muted);
  text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.e-tabs a.on, .e-tabs a:hover { color: var(--ol-navy-800); border-bottom-color: var(--ol-gold-500); }
.e-tabs a .n {
  font-family: var(--ol-font-mono); font-size: 11px; padding: 2px 7px; border-radius: 999px;
  background: var(--ol-navy-100); color: var(--ol-navy-800);
}
.e-tabs a.on .n { background: var(--ol-gold-100); color: var(--ol-gold-700); }

.e-queue { display: grid; gap: 10px; }
.e-row {
  background: var(--ol-white); border: 1px solid var(--ol-rule); border-radius: var(--ol-radius);
  padding: 16px 18px; display: grid; grid-template-columns: 4px 1fr auto; gap: 16px;
  align-items: center; transition: var(--ol-transition);
}
.e-row:hover { border-color: var(--ol-gold-300); box-shadow: var(--ol-shadow-sm); }
.e-row .stripe { align-self: stretch; border-radius: 999px; background: var(--ol-rule-strong); }
.e-row .ref { font-family: var(--ol-font-mono); font-size: 11.5px; color: var(--ol-ink-faint); }
.e-row h3 { font-family: var(--ol-font-display); font-size: 1.05rem; font-weight: 600; margin: 4px 0 5px; line-height: 1.35; }
.e-row h3 a { color: var(--ol-navy-800); text-decoration: none; }
.e-row h3 a:hover { color: var(--ol-gold-700); }
.e-row .meta { font-size: 12.5px; color: var(--ol-ink-muted); margin: 0; }
.e-row .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.e-row .clock { text-align: right; display: grid; gap: 2px; min-width: 92px; }
.e-row .clock b { font-family: var(--ol-font-display); font-size: 1.25rem; line-height: 1; color: var(--ol-navy-800); }
.e-row .clock span { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ol-ink-faint); }
.e-row.late .clock b { color: #A33A3A; }
.e-row.late { border-left-color: #A33A3A; }
@media (max-width: 760px) {
  .e-row { grid-template-columns: 4px 1fr; }
  .e-row .clock { grid-column: 2; text-align: left; padding-top: 10px; border-top: 1px solid var(--ol-rule); }
}

/* --- status / flag pills -------------------------------------------------- */
.e-pill {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--ol-navy-100); color: var(--ol-navy-800);
}
.e-pill.warn  { background: var(--ol-gold-100); color: var(--ol-gold-700); }
.e-pill.stop  { background: #F6E7E6; color: #A33A3A; }
.e-pill.quiet { background: var(--ol-surface-2, #FAF8F5); color: var(--ol-ink-muted); }
.e-flags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }

/* --- workbench ------------------------------------------------------------ */
.e-work { display: grid; grid-template-columns: 1fr 320px; gap: var(--ol-l); align-items: start; }
.e-card {
  background: var(--ol-white); border: 1px solid var(--ol-rule);
  border-radius: var(--ol-radius); padding: 22px; margin-bottom: 16px;
}
.e-card > h2 {
  font-family: var(--ol-font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--ol-navy-800); margin: 0 0 14px;
}
.e-card > h2 .sub { font-family: var(--ol-font-body); font-size: 12.5px; font-weight: 400; color: var(--ol-ink-muted); margin-left: 8px; }
.e-side { position: sticky; top: 16px; }
@media (max-width: 1040px) { .e-work { grid-template-columns: 1fr; } .e-side { position: static; } }

.e-kv { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--ol-rule); }
.e-kv:last-child { border-bottom: 0; }
.e-kv span { color: var(--ol-ink-muted); }
.e-kv b { color: var(--ol-navy-800); font-weight: 600; text-align: right; }

/* --- reviewer candidates -------------------------------------------------- */
.e-cand { display: grid; gap: 10px; }
.e-c {
  border: 1px solid var(--ol-rule); border-radius: var(--ol-radius-xs); padding: 14px 16px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
}
.e-c.blocked { background: #F6E7E6; border-color: #E3C9C7; }
.e-c.blocked .name { color: var(--ol-ink-muted); }
.e-c .name { font-weight: 600; color: var(--ol-navy-800); font-size: 14.5px; }
.e-c .aff { font-size: 12.5px; color: var(--ol-ink-muted); margin-top: 2px; }
.e-c .stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: var(--ol-ink-faint); }
.e-c .stats b { font-family: var(--ol-font-mono); color: var(--ol-navy-800); font-weight: 500; }
.e-c .score { text-align: center; min-width: 54px; }
.e-c .score b { display: block; font-family: var(--ol-font-display); font-size: 1.2rem; color: var(--ol-navy-800); line-height: 1; }
.e-c .score span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ol-ink-faint); }
@media (max-width: 680px) { .e-c { grid-template-columns: 1fr; } }

/* --- the elected panel ----------------------------------------------------
   A name the system drew, with a tick to keep it and a record to read first.
   Everything offered starts ticked, so "picked" is the resting state and the
   styling marks what has been TAKEN OUT rather than what is in. */
.e-c.picked { border-color: var(--ol-gold-500); background: var(--ol-gold-100); }
.e-c:not(.picked) .name { color: var(--ol-ink-muted); }

.e-tick { display: flex; align-items: flex-start; padding-top: 2px; cursor: pointer; }
.e-tick input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--ol-gold-700); }

/* The record, folded away. A hover title serves a mouse; this serves
   everybody else, and holds more than a tooltip reasonably can. */
.e-hist { margin-top: 9px; }
.e-hist summary {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ol-gold-700); cursor: pointer; list-style: none;
}
.e-hist summary::-webkit-details-marker { display: none; }
.e-hist summary::before { content: "▸ "; }
.e-hist[open] summary::before { content: "▾ "; }
.e-hist summary:hover { text-decoration: underline; }
.e-hist-body {
  margin-top: 8px; padding: 10px 12px; font-size: 12.5px; line-height: 1.6;
  background: var(--ol-surface-2, #FAF8F5); border-radius: var(--ol-radius-xs);
  color: var(--ol-ink);
}
.e-hist-body p { margin: 0 0 6px; }
.e-hist-body p:last-child { margin-bottom: 0; }
.e-hist-body b { color: var(--ol-navy-800); }
.e-hist-body a { color: var(--ol-gold-700); }

/* Visible to a screen reader, not to the eye. The tick beside a name needs a
   label saying whose it is; printing it would repeat the name twice. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- forms ---------------------------------------------------------------- */
.e-field { display: grid; gap: 6px; margin-bottom: 16px; }
.e-field label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ol-ink-muted); }
/* EVERY TEXT-LIKE INPUT, not just type="text".

   This selector read input[type="text"] until 21 Nov 2026, which meant that
   37 fields across the platform — every email, number, date, password, search
   and url box — inherited nothing at all and rendered at the browser's
   default size. On the mailing-list page the email box sat next to a
   full-width name box at about a third of the width, which is how it was
   spotted; the other 36 were the same bug nobody had looked at yet.

   Written as an exclusion rather than a list, so the next input type somebody
   reaches for is styled on the day they use it. Checkboxes and radios are
   excluded because a 100%-wide tick box is not a tick box, and file inputs
   because the browser draws its own control. */
.e-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.e-field textarea,
.e-field select {
  font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--ol-btn-edge);
  border-radius: var(--ol-radius-xs); background: var(--ol-white); color: var(--ol-ink); width: 100%;
}
.e-field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.e-field input:focus, .e-field textarea:focus, .e-field select:focus {
  outline: 2px solid var(--ol-gold-500); outline-offset: 1px; border-color: var(--ol-gold-500);
}
.e-field .hint { font-size: 12.5px; color: var(--ol-ink-muted); }

.e-choices { display: grid; gap: 8px; margin-bottom: 16px; }
.e-choice {
  display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start;
  border: 1px solid var(--ol-rule); border-radius: var(--ol-radius-xs);
  padding: 13px 15px; cursor: pointer; transition: var(--ol-transition);
}
.e-choice:hover { border-color: var(--ol-gold-300); background: var(--ol-gold-100); }
.e-choice.on { border-color: var(--ol-gold-500); background: var(--ol-gold-100); }
.e-choice b { display: block; font-size: 14px; color: var(--ol-navy-800); }
.e-choice .d { display: block; font-size: 12.5px; color: var(--ol-ink-muted); margin-top: 2px; }

/* --- messages ------------------------------------------------------------- */
.e-note { border-radius: 0 var(--ol-radius-xs) var(--ol-radius-xs) 0; padding: 13px 16px; font-size: 13.5px; margin-bottom: 16px; }
.e-note.ok   { background: var(--ol-gold-100, #F7F1E5); border-left: 3px solid #866528; color: #866528; }
.e-note.bad  { background: #F6E7E6; border-left: 3px solid #A33A3A; color: #8A2F2A; }
.e-note.info { background: var(--ol-navy-100); border-left: 3px solid var(--ol-navy-800); color: var(--ol-navy-800); }
/* A fourth tone was needed once the restriction register arrived: "this
   person is being watched" is neither a confirmation nor an error, and
   dressing it as either made the screen say the wrong thing. */
.e-note.warn { background: var(--ol-gold-100, #F7F1E5); border-left: 3px solid var(--ol-gold-700); color: var(--ol-gold-700); }

/* --- timeline ------------------------------------------------------------- */
.e-time { display: grid; gap: 0; }
.e-t { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ol-rule); font-size: 13.5px; }
.e-t:last-child { border-bottom: 0; }
.e-t .when { font-family: var(--ol-font-mono); font-size: 11.5px; color: var(--ol-ink-faint); padding-top: 2px; }
.e-t b { color: var(--ol-navy-800); font-weight: 600; }
.e-t .who { color: var(--ol-ink-muted); font-size: 12.5px; }

/* A similarity figure at or above the journal's threshold. Red because the
   editor is being asked to look, not because the paper is condemned. */
.e-kv b.sim-over { color: #A33A3A; }

/* The exact text that would go out, shown so it can be copied and posted by
   hand — which is the only way it goes out until a network app is registered. */
.soc-body {
  margin-top: 8px; padding: 10px 12px; font-size: 13.5px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
  background: var(--ol-surface-2, #FAF8F5); border-radius: var(--ol-radius-xs);
  color: var(--ol-ink);
}

/* --- small row actions and queue notes ------------------------------------
   Shared by the indexing, charges and social queues. They were duplicated in
   three page-level <style> blocks, which meant a class existed only on the
   page that happened to define it — the social queue rendered its buttons
   unstyled for exactly that reason. */
.r-act, .r-del {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  background: none; border: 1px solid var(--ol-rule); border-radius: var(--ol-radius-xs);
  padding: 4px 10px; color: var(--ol-ink-muted); text-decoration: none;
  display: inline-block;
}
.r-act:hover:not(:disabled) { border-color: var(--ol-gold-500); color: var(--ol-gold-700); background: var(--ol-gold-100); }
.r-del:hover:not(:disabled) { border-color: #A33A3A; color: #A33A3A; background: #F6E7E6; }
.r-act:disabled, .r-del:disabled { opacity: .5; cursor: default; }

.idx-next { margin-top: 7px; font-size: 13px; color: var(--ol-navy-800); font-weight: 500; }
.idx-note {
  margin-top: 7px; padding: 8px 11px; font-size: 12.5px; line-height: 1.5;
  background: var(--ol-surface-2, #FAF8F5); border-radius: var(--ol-radius-xs);
  color: var(--ol-ink-muted);
}
.idx-err {
  margin-top: 7px; padding: 8px 11px; font-size: 12.5px; line-height: 1.5;
  background: #F6E7E6; border-left: 3px solid #A33A3A; color: #8A2F2A;
}

/* --- cover upload ---------------------------------------------------------
   Sits inside the issue row it belongs to, so there is no doubt which issue
   is being given a cover. */
.cov-box {
  margin: 10px 0 16px; padding: 16px 18px;
  border: 1px solid var(--ol-rule); border-left: 3px solid var(--ol-gold-500);
  border-radius: var(--ol-radius-xs); background: var(--ol-white);
}
.cov-box > b { display: block; font-size: 14px; color: var(--ol-navy-800); }
.cov-rules {
  display: block; margin-top: 3px; font-size: 12.5px;
  color: var(--ol-ink-muted); font-family: var(--ol-font-mono);
}
.cov-now { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; }
.cov-now img {
  width: 72px; height: 96px; object-fit: cover;
  border: 1px solid var(--ol-rule); border-radius: var(--ol-radius-xs); background: var(--ol-surface-2, #FAF8F5);
}
.cov-now span { font-size: 12.5px; color: var(--ol-ink-muted); line-height: 1.5; max-width: 42ch; }

/* --- settings rows ---------------------------------------------------------
   The controls used to be a flex item sized by its own contents, so every row
   put its button wherever that row's pill and label happened to end. Three
   rows meant three right edges, and a long stored value shoved the whole
   control group onto a line of its own.

   A two-column grid fixes the geometry instead of the symptom: the text takes
   whatever is left, the controls occupy a column of their own width, and the
   action button has a floor wide enough for the longest label it carries
   ("Turn off"), so the edges line up down the card whatever each row says. */
.set-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px; align-items: start;
  padding: 12px 0; border-top: 1px solid var(--ol-rule);
}
.set-main { min-width: 0; }
.set-ctl {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; min-width: 184px;
}
.set-ctl .e-pill { display: inline-flex; justify-content: center; min-width: 46px; }
.set-ctl .btn { padding: 5px 11px; font-size: 12px; white-space: nowrap; }
.set-ctl .btn-act { min-width: 84px; justify-content: center; }
.set-ctl input[type="text"] { max-width: 180px; font-size: 12.5px; padding: 5px 8px; }

/* A stored value can be a sentence. It is shown on one line and clipped, with
   the whole of it on the element's title, so one long value cannot rearrange
   the column every other row is aligned to. */
.set-val {
  font-family: var(--ol-font-mono); font-size: 12px; color: var(--ol-ink-muted);
  max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.set-note { margin-top: 7px; font-size: 11.5px; color: var(--ol-gold-700); }

@media (max-width: 720px) {
  .set-row { grid-template-columns: 1fr; }
  .set-ctl { justify-content: flex-start; min-width: 0; flex-wrap: wrap; }
  .set-val { flex: 1 0 100%; max-width: 100%; }
}

/* --- dashboards -----------------------------------------------------------
   Shared by /admin/dashboard and /editor/dashboard, which render the same
   component. Information design rather than decoration: figures carry tabular
   numerals so columns of digits line up, and the only colour that means
   anything is the one on money owed and on a subscription running out. */

.dash-head {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  align-items: flex-start; justify-content: space-between;
  margin-bottom: var(--ol-m);
}
.dash-head h2 {
  font-family: var(--ol-font-display); font-size: 2rem; font-weight: 600;
  color: var(--ol-navy-800); margin: 0; line-height: 1.15;
}
.dash-sub { margin: 4px 0 0; font-size: 13px; color: var(--ol-ink-muted); }

.dash-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.dash-pick { display: grid; gap: 4px; }
.dash-pick > span {
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ol-ink-faint);
}
.dash-pick select {
  font: inherit; font-size: 13px; padding: 6px 9px;
  border: 1px solid var(--ol-btn-edge); border-radius: var(--ol-radius-xs);
  background: var(--ol-white); color: var(--ol-ink); max-width: 240px;
}
.dash-one { font-size: 14px; font-weight: 600; color: var(--ol-navy-800); padding-bottom: 7px; }
.dash-actions { display: flex; gap: 7px; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* The headline figures. auto-fit rather than a fixed six, so the row reflows
   instead of scrolling sideways on a laptop. */
.dash-figures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.dash-fig {
  background: var(--ol-white); border: 1px solid var(--ol-rule);
  border-top: 3px solid var(--ol-gold-500);
  border-radius: var(--ol-radius); padding: 14px 16px 15px;
}
.dash-fig b {
  display: block; font-family: var(--ol-font-mono); font-size: 1.7rem;
  font-weight: 500; color: var(--ol-navy-800); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.dash-fig span {
  display: block; margin-top: 5px; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ol-ink-muted);
}
.dash-fig i {
  display: block; margin-top: 4px; font-style: normal;
  font-size: 11.5px; color: var(--ol-ink-faint); line-height: 1.4;
}

.dash-card {
  background: var(--ol-white); border: 1px solid var(--ol-rule);
  border-radius: var(--ol-radius); padding: 18px 20px 20px; margin-bottom: 16px;
}
.dash-card > h3 {
  font-family: var(--ol-font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--ol-navy-800); margin: 0 0 14px;
}
.dash-card > h3 .sub {
  font-family: var(--ol-font-body); font-size: 12.5px; font-weight: 400;
  color: var(--ol-ink-muted); margin-left: 8px;
}
.dash-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-pair > .dash-card { margin-bottom: 0; }
.dash-pair + .dash-pair, .dash-pair + .dash-card { margin-top: 16px; }

.dash-none, .dash-empty {
  margin: 0; font-size: 13px; color: var(--ol-ink-muted); line-height: 1.6; max-width: 62ch;
}
.dash-foot {
  margin: 11px 0 0; font-size: 11.5px; color: var(--ol-ink-faint); line-height: 1.5;
}

/* Where the manuscripts are, grouped by whose move it is. */
.dash-stages {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 12px;
}
.dash-stage {
  border: 1px solid var(--ol-rule); border-radius: var(--ol-radius-xs);
  padding: 12px 13px; background: var(--ol-surface-2, #FAF8F5);
}
.dash-stage.closed { opacity: .82; }
.dash-stage h4 {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 0 0 9px; padding-bottom: 8px; border-bottom: 1px solid var(--ol-rule);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ol-gold-700);
}
.dash-stage h4 b {
  font-family: var(--ol-font-mono); font-size: 15px; font-weight: 600;
  color: var(--ol-navy-800); letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.dash-stage ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.dash-stage li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--ol-ink);
}
.dash-stage li b {
  font-family: var(--ol-font-mono); font-weight: 600; font-variant-numeric: tabular-nums;
}

.dash-scroll { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 460px; }
.dash-table th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ol-ink-faint);
  padding: 0 10px 7px 0; border-bottom: 1px solid var(--ol-rule);
}
.dash-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--ol-rule); vertical-align: top; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table .num {
  text-align: right; font-family: var(--ol-font-mono);
  font-variant-numeric: tabular-nums; padding-right: 0;
  /* A gutter BEFORE a numeric column. Without it the people dashboard ran
     "100%Nov 2026" together: .num zeroes its right padding so the last
     column sits flush with the table edge, and the cell after it opens with
     no left padding of its own. */
  padding-left: 14px;
}
/* ...and the flush right edge is only wanted on the last column. An interior
   numeric column with no right padding is what butted "RATE" against
   "LAST SEEN" in the header. */
.dash-table .num:not(:last-child) { padding-right: 12px; }

/* A sortable column heading. NOT .dash-pick, which is already the labelled
   select in the dashboard toolbar — reusing it gave the header row a set of
   bordered grid boxes that read as form controls sitting in a table head.
   This is a heading that happens to be clickable, so it looks like the
   headings beside it and announces itself only on hover and focus. */
.dash-table th .dash-sort {
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; border-bottom: 1px dotted var(--ol-rule-strong);
}
.dash-table th .dash-sort:hover { color: var(--ol-gold-700); border-bottom-color: var(--ol-gold-700); }
.dash-table th .dash-sort:focus-visible {
  outline: 2px solid var(--ol-gold-500); outline-offset: 2px; border-radius: 2px;
}
.dash-table th.num .dash-sort { text-align: right; }
.dash-table .owed { color: var(--ol-state-attention); font-weight: 600; }
.dash-table .quiet, .dash-table .code { color: var(--ol-ink-faint); }
.dash-table .code { display: block; font-family: var(--ol-font-mono); font-size: 11px; margin-top: 2px; }
.dash-table b { color: var(--ol-navy-800); }
.dash-table .urgent { color: var(--ol-state-attention); }
.dash-table .soon   { color: var(--ol-gold-700); }

.dash-dl { margin: 0; display: grid; gap: 9px; }
.dash-dl > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--ol-rule);
}
.dash-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-dl dt { font-size: 13px; color: var(--ol-ink); }
.dash-dl dd {
  margin: 0; text-align: right; font-family: var(--ol-font-mono); font-size: 14px;
  font-weight: 600; color: var(--ol-navy-800); font-variant-numeric: tabular-nums;
}
.dash-dl dd i {
  display: block; font-family: var(--ol-font-body); font-style: normal;
  font-size: 11px; font-weight: 400; color: var(--ol-ink-faint); margin-top: 2px;
}

.dash-subs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.dash-subs li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 12px; border: 1px solid var(--ol-rule);
  border-left: 3px solid var(--ol-rule-strong); border-radius: var(--ol-radius-xs);
}
.dash-subs li.soon   { border-left-color: var(--ol-gold-500); }
.dash-subs li.urgent { border-left-color: var(--ol-state-attention); }
.dash-subs b { display: block; font-size: 13.5px; color: var(--ol-navy-800); }
.dash-subs span { display: block; font-size: 11.5px; color: var(--ol-ink-muted); margin-top: 2px; }
.dash-subs .right { text-align: right; white-space: nowrap; }
.dash-subs .right b { font-family: var(--ol-font-mono); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .dash-pair { grid-template-columns: 1fr; }
  .dash-head { flex-direction: column; }
}

/* --- printing -------------------------------------------------------------
   "Printable" is not a separate rendering: it is this page with the parts
   that cannot be printed taken away. Navigation, the controls and the footer
   go; the figures stay. Borders are forced on because a printer set to drop
   background colours would otherwise leave every panel indistinguishable
   from the page it sits on. */
@media print {
  .c-util, .c-nav, .ol-foot, .no-print, .dash-tools { display: none !important; }

  body { background: #fff; color: #000; }
  .band { padding: 0; }
  .p-page { padding-block: 0; }
  .wrap { max-width: none; padding-inline: 0; }

  .dash-card, .dash-fig, .dash-stage, .dash-subs li {
    border: 1px solid #999 !important; background: #fff !important;
    break-inside: avoid; page-break-inside: avoid;
  }
  .dash-figures { grid-template-columns: repeat(3, 1fr); }
  .dash-pair { grid-template-columns: 1fr 1fr; }
  .dash-scroll { overflow: visible; }
  .dash-table { min-width: 0; }

  .dash-head h2 { font-size: 20pt; }
  .dash-fig b { font-size: 16pt; }
  .dash-card > h3 { font-size: 13pt; }
}

/* A grid item's min-width is auto, which means "never narrower than my
   content". The tables below carry a min-width so their columns stay
   readable, so without this the card refuses to shrink, the track grows to
   match, and the PAGE scrolls sideways instead of the table — the one thing
   .dash-scroll exists to prevent. Found at 390px, where it widened the
   document to 526. */
.dash-card, .dash-pair > *, .dash-stage { min-width: 0; }

/* --- discount requests ----------------------------------------------------
   One card per request. Deliberately not a table: the reason an editor wrote
   is the whole point of the screen, and a reason squeezed into a table cell
   is a reason nobody reads before deciding. */
.dq-head { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; }
.dq-head h3 {
  font-family: var(--ol-font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--ol-navy-800); margin: 0 0 3px;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.dq-who { margin: 0; font-size: 12.5px; color: var(--ol-ink-muted); }
.dq-who b { color: var(--ol-ink); font-weight: 600; }
.dq-age {
  display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ol-state-attention);
}
.dq-reason {
  margin: 13px 0 0; padding: 11px 15px;
  border-left: 3px solid var(--ol-gold-500);
  background: var(--ol-surface-2, #FAF8F5);
  border-radius: 0 var(--ol-radius-xs) var(--ol-radius-xs) 0;
  font-size: 14px; line-height: 1.6; color: var(--ol-ink);
}
.dq .btn-row { margin-top: 14px; }
.dq-form {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ol-rule);
  display: grid; gap: 12px;
}

/* --- dashboard charts -----------------------------------------------------
   Three series, drawn from the house palette rather than from a library's
   default rainbow. Navy for what arrives, gold for what is decided, and a
   muted slate for what is published, so the chart reads in the same voice as
   the rest of the platform. Shape as well as colour carries the outcomes
   doughnut, via the key beside it, because a reader who cannot separate two
   hues still has the labels and the numbers. */

.chartset { display: grid; gap: 16px; margin-bottom: 16px; }
.chart h3 { margin-bottom: 10px; }

.chart-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.chart-key {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ol-ink-muted);
  background: transparent; border: 1px solid var(--ol-rule);
  border-radius: 999px; padding: 4px 11px; cursor: pointer;
  transition: var(--ol-transition);
}
.chart-key:hover { border-color: var(--ol-btn-edge); color: var(--ol-ink); }
.chart-key .swatch { width: 10px; height: 10px; border-radius: 2px; }
.chart-key.submitted .swatch { background: var(--ol-navy-600); }
.chart-key.decided   .swatch { background: var(--ol-gold-500); }
.chart-key.published .swatch { background: #7E8CA0; }
/* Switched off reads as switched off: the swatch empties rather than the
   label merely dimming, so the state is visible without comparing buttons. */
.chart-key.off { opacity: .55; text-decoration: line-through; }
.chart-key.off .swatch { background: transparent; box-shadow: inset 0 0 0 1px var(--ol-btn-edge); }

.chart-scroll { overflow-x: auto; }
.chart-svg { width: 100%; min-width: 520px; height: auto; display: block; }

.chart-svg .grid { stroke: var(--ol-rule); stroke-width: 1; }
.chart-svg .axis {
  font-family: var(--ol-font-mono); font-size: 9px; fill: var(--ol-ink-faint);
}
.chart-svg .axis.mid { text-anchor: middle; }

.chart-svg .col-hit { fill: transparent; cursor: pointer; }
.chart-svg .col:hover .col-hit { fill: var(--ol-gold-100); }
.chart-svg .col.on .col-hit { fill: var(--ol-gold-100); }
.chart-svg .col-hit:focus-visible { outline: 2px solid var(--ol-gold-500); outline-offset: -2px; }
/* --ol-navy-600, NOT --ol-surface-navy. The surface tokens are fixed in both
   themes because the bands they paint are meant to stay dark; a bar sits ON a
   card and has to flip with it. Measured at 1.03:1 against the dark card
   before this — an invisible series — and 8.4:1 after. */

.chart-svg .bar.submitted { fill: var(--ol-navy-600); }
.chart-svg .bar.decided   { fill: var(--ol-gold-500); }
.chart-svg .bar.published { fill: #7E8CA0; }
/* The unselected columns recede rather than the selected one shouting, which
   keeps the chart readable when a month is picked. */
.chartset:has(.col.on) .col:not(.on) .bar { opacity: .38; }

.chart-clear {
  font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
  background: transparent; border: 1px solid var(--ol-btn-edge);
  border-radius: 999px; padding: 2px 10px; margin-left: 8px;
  color: var(--ol-navy-800);
}
.chart-clear:hover { background: var(--ol-gold-100); }

/* The readout. Fixed, because it is appended to the body and must not be
   clipped by a card's overflow. */
.chart-tip {
  position: fixed; z-index: 2000; pointer-events: none;
  background: var(--ol-surface-navy-deep); color: #fff;
  font-size: 12px; line-height: 1.45; padding: 7px 11px;
  border-radius: var(--ol-radius-xs); max-width: 280px;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.6);
}

/* --- horizontal bars ------------------------------------------------------ */
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hbars.inner { margin: 7px 0 10px 12px; padding-left: 11px; border-left: 2px solid var(--ol-rule); }
.hbar {
  width: 100%; display: grid; grid-template-columns: minmax(96px, 34%) 1fr auto;
  gap: 11px; align-items: center; text-align: left;
  font: inherit; font-size: 12.8px; color: var(--ol-ink);
  background: transparent; border: 1px solid transparent;
  border-radius: var(--ol-radius-xs); padding: 5px 7px; cursor: pointer;
}
.hbar.as-row { cursor: default; }
.hbar:hover:not(.as-row) { background: var(--ol-surface-2, #FAF8F5); border-color: var(--ol-rule); }
.hbar.on { background: var(--ol-gold-100); border-color: var(--ol-gold-500); }
.hbar-label { min-width: 0; overflow-wrap: anywhere; }
.hbar-track {
  height: 15px; background: var(--ol-surface-2, #FAF8F5);
  border-radius: 3px; overflow: hidden; min-width: 40px;
}
.hbar-fill { display: block; height: 100%; background: var(--ol-navy-600); border-radius: 3px; }
.hbar-fill.quiet { background: #7E8CA0; }
.hbar-n {
  font-family: var(--ol-font-mono); font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--ol-navy-800); min-width: 2.4ch; text-align: right;
}

/* --- doughnut -------------------------------------------------------------
   The five terminal states, in the four house roles plus the one red. */
.donut-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.donut { width: 150px; height: 150px; flex: none; }
.donut .slice { cursor: default; transition: opacity .12s ease; }
.donut .slice:hover, .donut .slice:focus-visible { opacity: .78; outline: none; }
.donut .slice.published     { fill: var(--ol-gold-500); }
.donut .slice.rejected      { fill: var(--ol-state-attention); }
.donut .slice.desk-rejected { fill: #C98080; }
.donut .slice.withdrawn     { fill: #9AA4B2; }
.donut .slice.retracted     { fill: var(--ol-navy-600); }
.donut-n {
  text-anchor: middle; font-family: var(--ol-font-mono); font-size: 19px;
  font-weight: 600; fill: var(--ol-navy-800);
}
.donut-c {
  text-anchor: middle; font-size: 8px; letter-spacing: .1em;
  text-transform: uppercase; fill: var(--ol-ink-faint);
}
.donut-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; min-width: 0; flex: 1 1 180px; }
.donut-key li {
  display: grid; grid-template-columns: 11px 1fr auto auto; gap: 9px;
  align-items: baseline; font-size: 12.5px;
}
.donut-key .swatch { width: 11px; height: 11px; border-radius: 2px; align-self: center; }
.donut-key .swatch.published     { background: var(--ol-gold-500); }
.donut-key .swatch.rejected      { background: var(--ol-state-attention); }
.donut-key .swatch.desk-rejected { background: #C98080; }
.donut-key .swatch.withdrawn     { background: #9AA4B2; }
.donut-key .swatch.retracted     { background: var(--ol-navy-600); }
.donut-key .k { min-width: 0; overflow-wrap: anywhere; color: var(--ol-ink); }
.donut-key b { font-family: var(--ol-font-mono); font-variant-numeric: tabular-nums; color: var(--ol-navy-800); }
.donut-key i { font-style: normal; font-size: 11.5px; color: var(--ol-ink-faint); min-width: 3.5ch; text-align: right; }

@media print {
  .chart-legend, .chart-clear, .chart-tip { display: none !important; }
  .chart-scroll { overflow: visible; }
  .chart-svg { min-width: 0; }
  .chart { break-inside: avoid; page-break-inside: avoid; }
}

/* The academic gold is 2.07:1 against a white card — below the 3:1 WCAG
   1.4.11 asks of a graphical object you have to see to read the chart. The
   fill stays gold, because it is the house accent and the chart should look
   like the platform; the shape is given a darker edge instead, and a boundary
   at 5:1 is what makes it discernible. Only the gold needs it: navy measures
   15.8, the slate 3.4, the reds 6.5 and 3.0. */
.chart-svg .bar.decided,
.donut .slice.published {
  stroke: var(--ol-gold-700);
  stroke-width: 1;
}
.chart-key.decided .swatch,
.donut-key .swatch.published {
  box-shadow: inset 0 0 0 1px var(--ol-gold-700);
}

/* --- the people dashboard's three series ----------------------------------
   Submitted / accepted / rejected, reusing the colours whose contrast was
   already measured above rather than introducing a fourth palette:
   --ol-navy-600 at 15.8:1, the gold at 2.07:1 and therefore given the same
   --ol-gold-700 edge the "decided" series gets, and --ol-state-attention at
   6.5:1. A new hue here would have to be measured again, and would make
   "accepted" one colour on this page and another on the next. */
.chart-svg .bar.accepted { fill: var(--ol-gold-500); stroke: var(--ol-gold-700); stroke-width: 1; }
.chart-svg .bar.rejected { fill: var(--ol-state-attention); }
.chart-key.accepted .swatch { background: var(--ol-gold-500); box-shadow: inset 0 0 0 1px var(--ol-gold-700); }
.chart-key.rejected .swatch { background: var(--ol-state-attention); }

/* Reviewer recommendations, ordered from accept to reject. Deliberately a
   RAMP rather than five unrelated hues: the five codes are an ordered scale
   (rev.Recommendation.Weight, 1 to 5), and colouring an ordered scale
   categorically throws away the one thing the reader needs to see. */
.hbar-fill.accept           { background: var(--ol-navy-600); }
.hbar-fill.minor-revision   { background: #4D6A8F; }
.hbar-fill.major-revision   { background: #8E8396; }
.hbar-fill.reject-resubmit  { background: #C98080; }
.hbar-fill.reject           { background: var(--ol-state-attention); }

/* --- the filter bar -------------------------------------------------------
   Visible whenever a selection is on, and absent the rest of the time. A
   dashboard showing narrowed figures with no sign that it is narrowed is the
   commonest way somebody reads the wrong number off a correct screen. */
.dash-filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 16px; padding: 9px 13px;
  background: var(--ol-gold-100); border: 1px solid var(--ol-gold-500);
  border-radius: var(--ol-radius);
}
.dash-filters-lead {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ol-gold-700);
}
.dash-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ol-white); border: 1px solid var(--ol-rule);
  border-radius: 999px; padding: 3px 5px 3px 11px; font-size: 13px;
  color: var(--ol-ink);
}
.dash-chip .k {
  font-size: 10px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ol-ink-faint);
}
.dash-chip .x {
  font: inherit; font-size: 15px; line-height: 1; cursor: pointer;
  background: transparent; border: 0; color: var(--ol-ink-muted);
  padding: 0 5px; border-radius: 999px;
}
.dash-chip .x:hover { background: var(--ol-rule); color: var(--ol-ink); }
.dash-clear-all {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  background: transparent; border: 1px solid var(--ol-btn-edge);
  border-radius: 999px; padding: 3px 11px; color: var(--ol-navy-800);
}
.dash-clear-all:hover { background: var(--ol-white); }

/* A panel that cannot narrow says so where the reader is looking. */
.dash-card > h3 .sub.unfiltered { color: var(--ol-gold-700); font-weight: 600; }

/* A table row that is itself a filter. The button carries the semantics so
   the keyboard reaches it; the row carries the click target so the pointer
   does not have to find a word. */
.dash-table tr.pickable { cursor: pointer; }
.dash-table tr.pickable:hover { background: var(--ol-surface-2, #FAF8F5); }
.dash-table tr.pickable.on { background: var(--ol-gold-100); }
.cell-pick {
  font: inherit; font-weight: 600; color: var(--ol-navy-800);
  background: transparent; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.dash-table tr.pickable.on .cell-pick { text-decoration: none; }

/* The chosen doughnut slice steps forward; the rest recede. */
.donut .slice { cursor: pointer; }
.donut:has(.slice.on) .slice:not(.on) { opacity: .34; }
.donut .slice.on { stroke: var(--ol-navy-800); stroke-width: 1.5; }

/* --- a reviewer's thank-you codes -----------------------------------------
   The code itself leads, because it is the thing somebody came to the page
   for. Spent and expired codes stay on the list, dimmed: a reviewer who was
   written to about a code and then cannot find it assumes the platform lost
   it, and "used on 3 March" is a better answer than silence. */
.tyc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tyc-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 18px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--ol-rule);
  border-left: 3px solid var(--ol-gold-500);
  border-radius: var(--ol-radius-xs); background: var(--ol-white);
}
.tyc-row.used, .tyc-row.expired { border-left-color: var(--ol-rule-strong); opacity: .72; }
.tyc-row.withdrawn { border-left-color: var(--ol-state-attention); opacity: .85; }

.tyc-code { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tyc-code code {
  font-family: var(--ol-font-mono); font-size: 15px; font-weight: 600;
  letter-spacing: .09em; color: var(--ol-navy-800);
  background: var(--ol-surface-2, #FAF8F5); border: 1px solid var(--ol-rule);
  border-radius: var(--ol-radius-xs); padding: 7px 12px;
  /* So a long code wraps inside its box instead of widening the row. */
  overflow-wrap: anywhere;
}
.tyc-row.used code, .tyc-row.expired code { text-decoration: line-through; color: var(--ol-ink-muted); }

.tyc-copy {
  font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
  background: transparent; border: 1px solid var(--ol-btn-edge);
  border-radius: 999px; padding: 3px 11px; color: var(--ol-navy-800);
  transition: var(--ol-transition);
}
.tyc-copy:hover { background: var(--ol-gold-100); }
.tyc-copy.copied { background: var(--ol-gold-100); border-color: var(--ol-gold-500); }

.tyc-what { min-width: 0; font-size: 13px; color: var(--ol-ink-muted); }
.tyc-what b { display: block; font-size: 14.5px; color: var(--ol-navy-800); font-weight: 600; }
.tyc-what span { display: block; margin-top: 2px; overflow-wrap: anywhere; }

.tyc-state { text-align: right; white-space: nowrap; }
.tyc-when {
  display: block; margin-top: 4px; font-size: 11.5px; color: var(--ol-ink-faint);
}
.tyc-when.soon { color: var(--ol-gold-700); font-weight: 600; }

@media (max-width: 620px) {
  .tyc-row { grid-template-columns: 1fr; }
  .tyc-state { text-align: left; }
}

/* --- managing a subscription ---------------------------------------------
   Opens under the row it belongs to, so there is no doubt which journal is
   being changed — the same arrangement as the issue cover uploader. */
.sub-edit {
  margin: -6px 0 16px; padding: 16px 18px;
  border: 1px solid var(--ol-gold-500); border-top: 0;
  border-radius: 0 0 var(--ol-radius) var(--ol-radius);
  background: var(--ol-surface-2, #FAF8F5);
}
.sub-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 16px;
}
.sub-grid .e-field { margin-bottom: 0; }
.sub-renew {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  margin-top: 14px; padding: 11px 13px;
  border: 1px solid var(--ol-rule); border-radius: var(--ol-radius-xs);
  background: var(--ol-white);
}
.sub-renew input { width: auto; margin-top: 3px; flex: none; }
.sub-renew b { display: block; font-size: 13.5px; color: var(--ol-navy-800); }
.sub-renew small {
  display: block; margin-top: 3px; font-size: 12.5px;
  color: var(--ol-ink-muted); line-height: 1.5; max-width: 72ch;
}
.sub-edit .btn-row { margin-top: 14px; }

/* The handling editor's own deadline, in the side panel. Reuses the queue's
   red rather than introducing a third shade of "late": one colour for an
   overdue thing across the platform is one thing to learn. */
.e-kv b.late { color: #A33A3A; }
.e-kv b.soon { color: var(--ol-gold-700); }
