/* Everything one step larger (text, buttons, boxes, spacing) for easier reading. Change this one number to adjust
   the whole site; 1 is the original size. */
html { zoom: 1.125; }

:root { --ink:#1d2330; --muted:#5d6675; --line:#d9dde4; --bg:#fafaf8; --accent:#1f4e8c; --warn:#9a5b00; --bad:#a12a2a; --ok:#246b3a; }
* { box-sizing: border-box; }
body { margin:0; font: 16px/1.55 Georgia, "Times New Roman", serif; color:var(--ink); background:var(--bg); }
header.top { border-bottom:1px solid var(--line); background:#fff; }
header.top .wrap { display:flex; align-items:center; gap:1.5rem; padding:.8rem 1.2rem; }
header.top .brand { font-weight:bold; font-size:1.25rem; color:var(--ink); text-decoration:none; letter-spacing:.04em; }
header.top .waiting { font: 15px system-ui, sans-serif; color:var(--accent); text-decoration:none; }
header.top nav { display:flex; gap:1rem; flex:1; font: 15px system-ui, sans-serif; }
header.top nav a { color:var(--accent); text-decoration:none; }
header.top .who { font: 14px system-ui, sans-serif; color:var(--muted); display:flex; gap:.6rem; align-items:center; margin-left:auto; }
/* Page width: at least 12 inches on screen (a narrower window scrolls sideways); in a wider window, each extra inch
   goes half to the page and half to the margins: width = 12in + (window - 12in) / 2 = 6in + window / 2.
   Lengths here are before the zoom above, so 12 inches on screen is 12in / 1.125 = 1024px, 6 inches 512px;
   50% is half the window (also before zoom). Phones (640px or less) keep the full window width. */
body { min-width: 1024px; }
.wrap { width: max(1024px, calc(512px + 50%)); margin: 0 auto; }
@media (max-width: 640px) { body { min-width: 0; } .wrap { width: auto; } }
main.wrap { padding: 1.5rem 1.2rem 4rem; }
h1 { font-size:1.7rem; margin:.2rem 0 1rem; } h2 { font-size:1.25rem; margin-top:2rem; }
/* The editors' "Your own papers" note on the front page: only a reminder, two sizes smaller. */
.home-reminder { font-size: .8rem; color: var(--muted, #555); }
.home-reminder h1 { font-size: 1.1rem; margin-bottom: .4rem; }
a { color:var(--accent); }
.muted { color:var(--muted); } .small { font-size:.9rem; }
.msg { padding:.6rem .9rem; border-radius:4px; margin-bottom:1rem; font-family:system-ui, sans-serif; font-size:.95rem; background:#eef3fa; }
.msg.error { background:#fbecec; color:var(--bad); } .msg.warning { background:#fdf4e5; color:var(--warn); } .msg.success { background:#eaf5ee; color:var(--ok); }
table { width:100%; border-collapse:collapse; font-family:system-ui, sans-serif; font-size:.93rem; }
th, td { text-align:left; padding:.5rem .4rem; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); font-weight:600; }
form p { margin: 0 0 1rem; }
label { display:block; font: 600 .92rem system-ui, sans-serif; margin-bottom:.25rem; }
input[type=text], input[type=email], textarea, select { width:100%; padding:.5rem; font: 15px/1.4 system-ui, sans-serif; border:1px solid #b9c0cc; border-radius:4px; background:#fff; }
input[type=checkbox] + label, label:has(input[type=checkbox]) { display:inline; }
.helptext { display:block; color:var(--muted); font: .85rem system-ui, sans-serif; }
.errorlist { color:var(--bad); font: .9rem system-ui, sans-serif; padding-left:1rem; }
/* "hidden" always hides, even buttons and other elements given a display here (e.g. "Remove the file"). */
[hidden] { display: none !important; }
button, .button { display:inline-block; padding:.55rem 1.1rem; font: 600 15px system-ui, sans-serif; border-radius:4px; border:1px solid var(--accent); background:var(--accent); color:#fff; cursor:pointer; text-decoration:none; }
button.secondary, .button.secondary { background:#fff; color:var(--accent); }
button.danger { background:#fff; color:var(--bad); border-color:var(--bad); }
button.link { background:none; border:none; color:var(--accent); padding:0; font-weight:normal; }
.card { background:#fff; border:1px solid var(--line); border-radius:6px; padding:1rem 1.2rem; margin-bottom:1.2rem; }
.status { display:inline-block; padding:.15rem .55rem; border-radius:999px; font: 600 .82rem system-ui, sans-serif; background:#eef1f5; }
.status.decided { background:#eaf5ee; color:var(--ok); } .status.draft { background:#fdf4e5; color:var(--warn); }
.token { font-family: ui-monospace, monospace; word-break: break-all; background:#f1f3f6; padding:.4rem .6rem; border-radius:4px; display:block; }
.copy-link { display:flex; gap:.5rem; align-items:center; }
.copy-link .token { flex:1; }
.private-link-label { margin: 2.5rem 0 .3rem; }
.copy-button { display:inline-flex; gap:.3rem; align-items:center; white-space:nowrap; }
.copy-button.icon-only { padding:0 .15rem; margin-left:.2rem; background:none; border:none; color:var(--muted);
  cursor:pointer; vertical-align:-2px; line-height:1; }
.copy-button.icon-only:hover { color:var(--accent); }
.copy-button.copied { color:green; }
.copy-button.icon-only.copied::after { content:" copied"; font-size:12px; }
.providers { display:flex; gap:1rem; flex-wrap:wrap; margin:1rem 0; }
.letter { white-space: pre-wrap; background:#fff; border:1px solid var(--line); padding:1.2rem; border-radius:6px; }
.inline { display:inline; }

/* Submit page: everything 2px larger than the rest of the site */
body.page-upload main { font-size: 18px; }
body.page-upload main button { font-size: 17px; }
.dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.3rem;
  min-height: 190px; margin-bottom: 1rem; padding: 1.5rem; text-align:center; cursor:pointer;
  border: 2px dashed #9aa6b8; border-radius: 8px; background:#f7f9fc; font-weight:normal;
  font-family: system-ui, sans-serif; transition: background .15s, border-color .15s; position:relative; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background:#eaf1fb; }
.dropzone.has-file { border-style: solid; border-color: var(--ok); background:#eef7f1; }
.dropzone input[type=file] { position:absolute; width:1px; height:1px; opacity:0; }
.dropzone:focus-within { outline: 3px solid #9fc0ec; outline-offset: 2px; }
.dz-main { font-size: 1.15em; font-weight: 600; color: var(--ink); word-break: break-all; }
.dz-sub { font-size: .9em; color: var(--muted); }
.dz-error { color: var(--bad); font-family: system-ui, sans-serif; margin-top: -.4rem; }

.site-footer { padding: 1rem 1.2rem 2.5rem; border-top: 1px solid var(--line); font: 14px system-ui, sans-serif; color: var(--muted); }
.site-footer a { color: var(--muted); }
.legal h2 { font-size: 1.15rem; margin-top: 1.8rem; }
.legal li { margin-bottom: .35rem; }
.legal table.services { margin: .6rem 0 1rem; }
.legal table.services td { font-size: .9rem; }

/* Author rows on the review page */
.authors-block { margin-bottom: 1.2rem; }
table.authors { margin: .4rem 0 .6rem; }
table.authors th { font-size: .85rem; padding: .3rem .3rem; }
table.authors td { padding: .25rem .3rem; border-bottom: none; }
table.authors td:nth-child(1) { width: 28%; } table.authors td:nth-child(2) { width: 38%; }
table.authors .row-tools { white-space: nowrap; width: 1%; }
table.authors .row-tools button { padding: 0 .25rem; font-size: 1rem; }
.danger-link { color: var(--bad) !important; }
.small-button { padding: .3rem .8rem; font-size: 14px; }
/* The referee page: "Due by …" with its "Extend by 1 week" button on the same line. */
.due-line { margin: 1rem 0; }
.due-line button, .due-line .small { margin-left: .6rem; }
@media (max-width: 640px) {
  table.authors thead { display: none; }
  table.authors tr.author-row { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); padding: .4rem 0; }
  table.authors td { width: auto !important; }
}

/* Declarations on the review page */
h2.form-section { font-size: 1.1rem; margin: 1.8rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.tiny { display: block; font: .75rem/1.35 system-ui, sans-serif; color: var(--muted); margin-top: .15rem; }
fieldset.declaration { border: 0; padding: 0; margin: 0 0 1.1rem; }
fieldset.declaration legend { font: 600 .92rem system-ui, sans-serif; margin-bottom: .3rem; padding: 0; }
label.choice { display: flex; gap: .5rem; align-items: baseline; font-weight: normal; margin: .25rem 0; cursor: pointer; }
label.choice input { flex: none; }
.explain { margin: .5rem 0 0 1.6rem; }
.card.files p { margin: 0 0 .5rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .3rem 0; font: 15px system-ui, sans-serif; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inline-form select { width: auto; max-width: 100%; }
.inline-form label { display: inline; margin: 0; }

/* Editor dashboard tabs */
nav.tabs { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--line); margin: 0 0 1rem;
  font: 15px system-ui, sans-serif; align-items: flex-end; }
nav.tabs a { padding: .45rem .8rem; text-decoration: none; color: var(--muted); border: 1px solid transparent;
  border-bottom: none; border-radius: 6px 6px 0 0; margin-bottom: -1px; }
nav.tabs a.active { color: var(--ink); background: #fff; border-color: var(--line); font-weight: 600; }
nav.tabs a.side { margin-left: auto; font-size: 13px; }
/* The row of handling editors under the tabs: one link each, wrapping onto more lines when there are many. */
nav.ae-tabs { display: flex; flex-wrap: wrap; gap: .25rem .4rem; align-items: center; margin: -.5rem 0 1rem;
  font: 13px system-ui, sans-serif; }
nav.ae-tabs a { padding: .15rem .55rem; text-decoration: none; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; white-space: nowrap; }
nav.ae-tabs + nav.ae-tabs { margin-top: -.6rem; }
nav.overview-tabs a { font-size: 14px; }
nav.ae-tabs a.active { color: var(--ink); background: #fff; font-weight: 600; border-color: var(--ink); }
nav.ae-tabs .count, nav.tabs .count { display: inline-block; min-width: 1.3em; padding: 0 .35em; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: 12px; text-align: center; }

/* Problems after a failed save or submit: impossible to miss */
/* The yellow edge is an inset shadow, not a border: a question's heading (a fieldset legend)
   would otherwise sit on the border line. */
.has-error { background: #fff3b0; box-shadow: inset 0 0 0 2px #e0b000; border-radius: 6px; padding: .6rem .8rem !important; }
.has-error input[type=text], .has-error input[type=email], .has-error textarea, .has-error select { background: #fff; }
.has-error .errorlist { color: #8a1c1c; font-weight: 600; list-style: none; padding-left: 0; margin: .4rem 0 0; }
.error-summary { background: #fff3b0; border: 2px solid #e0b000; border-left-width: 8px; border-radius: 6px;
  padding: .8rem 1rem; margin-bottom: 1.2rem; font-family: system-ui, sans-serif; }
.error-summary:focus { outline: 3px solid #9fc0ec; outline-offset: 2px; }
[id^="f-"] { scroll-margin-top: 1rem; }
/* Keep each question's heading inside its box: float it across the full width,
   and start every line after it below (answers are flex rows, which would otherwise sit beside it). */
fieldset.declaration > legend { float: left; width: 100%; }
fieldset.declaration > legend ~ * { clear: both; }

/* Live checking on the review page */
[id^="f-"] { transition: background-color .2s, box-shadow .2s; }
.live-msg { display: block; color: #8a1c1c; font: 600 .88rem system-ui, sans-serif; margin-top: .35rem; clear: both; }
.live-status { font: 600 .92rem system-ui, sans-serif; padding: .45rem .7rem; border-radius: 6px; margin: 1rem 0 .6rem; }
.live-status:empty { display: none; }
.live-status.todo { background: #fff3b0; color: #6b4a00; }
.live-status.done { background: #eaf5ee; color: var(--ok); }
.error-summary.resolved { background: #eaf5ee; border-color: #8cc6a0; }

/* Upload progress */
.progress { margin: .9rem 0 .3rem; }
.progress-label { display:flex; justify-content:space-between; font-size:.95em; margin-bottom:.3rem; }
.progress-track { height: 14px; border-radius: 7px; background: #e4e9f0; overflow: hidden; }
.progress-bar { height: 100%; width: 0; border-radius: 7px; background: var(--accent); transition: width .2s linear; }
.progress-bar.reading { background-color: var(--ok);
  background-image: linear-gradient(45deg, rgba(255,255,255,.25) 25%, transparent 25%, transparent 50%,
    rgba(255,255,255,.25) 50%, rgba(255,255,255,.25) 75%, transparent 75%, transparent);
  background-size: 28px 28px; animation: progress-stripes 1s linear infinite; }
@keyframes progress-stripes { from { background-position: 28px 0; } to { background-position: 0 0; } }
.dropzone.busy { pointer-events: none; opacity: .75; }

/* Editor: one paper */
.paper-state { color: var(--muted, #555); margin-top: -.4rem; }
.action-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.4rem; }
.action-bar .button, .action-bar button { margin: 0; }
.assign-panel h2 { margin-top: 0; }
.assign-panel[hidden] { display: none; }
.action-bar .button, .action-bar button { padding: .45rem .9rem; font-size: 14px; }
.action-bar .zip { margin-left: auto; }
form.card > h2:first-of-type, div.card > h2:first-child { margin-top: 0; }
.paper-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ref-sym { display: inline-block; min-width: 1.2em; text-align: center; font-size: 1.5em; line-height: 1; vertical-align: -0.1em; }
.ref-sym.late, .late-mark { color: #c62828; font-weight: 700; }
/* The referee legend's second line (late referees), set in by about 3em under the first. */
.legend-indent { display: inline-block; margin-left: 3em; }
/* A late referee's "!" blinks (the old <blink>); not for people who asked their system for less motion. */
.ref-sym.late, .late-icon { animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .ref-sym.late, .late-icon { animation: none; } }
.ed-status .refs { white-space: nowrap; }
/* Basic Analysis on the editor's paper page: open by default, the heading folds it. */
.analysis-fold > summary { cursor: pointer; }
.analysis-fold > summary h3 { display: inline; }
.mail summary { cursor: pointer; } .mail .letter { margin-top: .6rem; }

/* Editor dashboard: compact lists */
.page-editor table th, .page-editor table td { padding: .28rem .45rem; }
.page-editor table td:nth-child(1), .page-editor table th:nth-child(1) { width: 1%; padding-left: .2rem; color: var(--muted); }
.page-editor table td:nth-child(2), .page-editor table th:nth-child(2) { width: 1%; white-space: nowrap; }
.page-editor table td { line-height: 1.35; }
/* "All late" under More Choices: the Late page's tables, whose first column is the paper, not a "#". */
.page-editor .more-list .late-lists table td:nth-child(1), .page-editor .more-list .late-lists table th:nth-child(1) {
  width: auto; color: inherit; padding-left: .45rem; }
.page-editor h2 { margin: 1.4rem 0 .4rem; }
.page-editor main.wrap > p.small, .page-editor .ref-legend { max-width: 920px; }

/* Person type-ahead (transplanted from peers.science) */
.ta-wrap { position: relative; }
.ta-list { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12);
  font: 15px system-ui, sans-serif; }
.ta-list li { padding: 6px 10px; cursor: pointer; }
.ta-list li.active, .ta-list li:hover { background: #eaf1fb; }
.ta-list li.invited { color: var(--muted); }
.ta-list .aff { display: block; color: var(--muted); font-size: 13px; }
.ta-list .num { float: right; color: var(--muted); font-size: 13px; }
.ta-list li.more { color: var(--muted); font-size: 13px; cursor: default; background: none; }
.ta-note { margin: .3rem 0 0; }
@media (max-width: 640px) { .ta-list .num { display: none; } }

/* Home page: Submissions, Editorial Tasks, Admin */
.home-section + .home-section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
ul.plain { list-style: none; padding: 0; }
ul.plain li { margin: .25rem 0; }

/* Basic Analysis under the abstract (journal/_analysis.html) */
.analysis { border-left: 3px solid var(--line); padding: .2rem 0 .2rem 1rem; margin: 1rem 0; }
.analysis h3 { margin: .2rem 0 .4rem; font-size: 1.1rem; }
.analysis-warning { font: 600 .9rem system-ui, sans-serif; color: var(--warn); }
.analysis-wait { font-weight: bold; }
.status.ok { background:#eaf5ee; color:var(--ok); } .status.bad { background:#fbecec; color:var(--bad); }

/* Editor notes (journal/_notes.html) */
.card h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
.note-add { display: flex; gap: .5rem; }
.note-add input[type=text], .note-edit input[type=text] { flex: 1; min-width: 0; font: inherit; padding: .3rem .5rem; }
.note-edit { display: flex; gap: .5rem; align-items: center; }
.note-edit[hidden] { display: none; }
ul.notes { list-style: none; padding: 0; margin: 1rem 0 0; }
.note { display: flex; gap: 1rem; align-items: flex-start; padding: .5rem 0; border-top: 1px solid var(--line); }
.note-body { flex: 1; min-width: 0; }
.note-meta { display: block; font: .82rem system-ui, sans-serif; color: var(--muted); }
.note-text { overflow-wrap: anywhere; }
.note-actions { display: flex; gap: .4rem; white-space: nowrap; }
.note-actions form { display: inline; margin: 0; }
.note-actions button { font-size: 1.05rem; }

/* Decision form and preview */
.revise-by[hidden] { display: none; }
.decision-form textarea { width: 100%; box-sizing: border-box; }
.card.preview { border: 2px dashed var(--line); }
.card.preview h3 { margin-top: 0; }

/* Abstract limit: a too-long abstract blocks submitting (review.html) */
.showstopper { background: #fbecec; color: var(--bad); border: 2px solid var(--bad); border-radius: 6px;
  padding: .8rem 1rem; margin: 1rem 0; font: 1rem/1.45 system-ui, sans-serif; }
.showstopper a { color: var(--bad); }
.abstract-count { display: block; font: .85rem system-ui, sans-serif; color: var(--muted); }
.abstract-count.over { color: var(--bad); font-weight: 700; }
textarea.over { border: 2px solid var(--bad); background: #fff7f7; }
.abstract-block-note { color: var(--bad); font: 700 .95rem system-ui, sans-serif; }
.ok-mark { color: var(--ok); font: .85rem system-ui, sans-serif; }

/* Markdown texts (letters, reports) rendered on pages, and the editor (EasyMDE, no icon font) */
.letter.md { white-space: normal; }
.letter.md > :first-child { margin-top: 0; } .letter.md > :last-child { margin-bottom: 0; }
.letter.md p, .letter.md ul, .letter.md ol, .letter.md blockquote, .letter.md pre { margin: 0 0 .8em; }
.letter.md h1, .letter.md h2, .letter.md h3, .letter.md h4 { font-size: 1.05em; margin: 1em 0 .4em; }
.letter.md blockquote { border-left: 3px solid var(--line); padding-left: .8em; color: #555; }
.letter.md table { border-collapse: collapse; } .letter.md th, .letter.md td { border: 1px solid var(--line); padding: .2em .5em; }
/* The formatting bar above a letter box: dark text on light buttons (the site's own blue buttons would make them
   white on white). */
.EasyMDEContainer .editor-toolbar { background: #f3f4f6; border-color: var(--line); }
.EasyMDEContainer .editor-toolbar button.md-btn, .EasyMDEContainer .editor-toolbar a.md-btn {
  width: auto; min-width: 30px; height: 30px; padding: 0 .5em; font: 14px system-ui, sans-serif;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 3px; margin: 0 2px; }
.EasyMDEContainer .editor-toolbar button.md-btn:hover, .EasyMDEContainer .editor-toolbar button.md-btn.active {
  background: #e4e9f2; border-color: var(--accent); }
.EasyMDEContainer .editor-toolbar button.md-bold { font-weight: 700; } .EasyMDEContainer .editor-toolbar button.md-italic { font-style: italic; }
.EasyMDEContainer .CodeMirror { font: inherit; }
/* The editor grows with its text (no scroll bar inside); two empty lines always stay below the text. */
.EasyMDEContainer .CodeMirror { height: auto; }
.EasyMDEContainer .CodeMirror-scroll { max-height: none; }
.EasyMDEContainer .CodeMirror-lines { padding-bottom: 3em; }

/* Rounds (original, revision 1, ...) on the editor's paper page; "Invite again" on the referees page */
.round-tabs { margin-bottom: .8rem; }
.reinvite summary { list-style: none; display: inline-block; cursor: pointer; }
.reinvite summary::-webkit-details-marker { display: none; }
.reinvite details[open] { min-width: 16rem; } .reinvite textarea { width: 100%; }

/* Messages */
.thread { border-left: 3px solid var(--line); padding-left: .8rem; margin: .8rem 0; }
.message { margin: .5rem 0; } .message-head { margin: 0; } .message-text { margin: .15rem 0 .3rem; white-space: pre-wrap; }
.message.open .message-text, .message.pending .message-text { font-weight: 500; }
.message.pending { opacity: .85; }
.message-reply textarea, .message-compose textarea { width: 100%; }
.message-compose { margin-bottom: .8rem; }
.waiting-messages h2 { font-size: 1.1rem; margin-top: 0; }
.waiting-messages li { margin: .3rem 0; }
.test-banner { background:#ffe0c2; border-bottom:1px solid #f0a868;  /* light orange: yellow is used on the real site */ padding:.45rem 1rem; text-align:center; font-family:system-ui, sans-serif; font-size:.9rem; }
.site-notice p:last-child { margin-bottom:0; } .site-notice p:first-child { margin-top:0; }
.text-preview { white-space:pre-wrap; font-family:ui-monospace, monospace; font-size:.85rem; background:#f7f7f4; padding:.6rem .8rem; border-radius:4px; }
.test-mails ul { margin:.3rem 0; }
.mail-window .mail-head { margin:1rem 0; } .mail-window .mail-head th { text-align:left; padding-right:1rem; color:#666; font-weight:normal; }
.ta-new { margin: .3rem 0 0; }
.ta-list li.ta-new-item { border-top: 1px solid var(--line); color: var(--accent, #1a5fb4); }
/* Locked papers (journal/lockbox.py): a placeholder row; click LOCKED for the explanation. */
details.locked summary { cursor: pointer; list-style: none; }
details.locked summary::-webkit-details-marker { display: none; }
.locked-tag { color: #8a1c1c; letter-spacing: .05em; margin-right: .3rem; }
details.locked[open] p { max-width: 46rem; margin: .4rem 0 .2rem; }

/* Home page: Admin tiles, as many per row as fit the window */
.tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(13rem, 1fr)); gap:.8rem; margin:1rem 0; }
.tile { display:block; background:#fff; border:1px solid var(--line); border-radius:6px; padding:.7rem .9rem; text-decoration:none; color:var(--ink); font-family:system-ui, sans-serif; }
.tile:hover, .tile:focus { border-color:var(--accent); }
.tile strong { display:block; color:var(--accent); margin-bottom:.2rem; }
.tile span { display:block; font-size:.88rem; color:var(--muted); line-height:1.35; }

/* Unanswered messages: the reply box opens under each one */
.waiting-reply { margin:.2rem 0 .6rem 1rem; } .waiting-reply summary { cursor:pointer; color:var(--accent); }
.waiting-reply form { margin-top:.4rem; }

/* Message search */
.search-form { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin:1rem 0 .3rem; }
.search-form input[type=search] { flex:1 1 16rem; padding:.5rem; font:15px system-ui, sans-serif; border:1px solid #b9c0cc; border-radius:4px; }
.search-form select { width:auto; }
.message-results td { word-break:break-word; } .nowrap { white-space:nowrap; }

/* Home page, Editorial Tasks: To Do alone on its line, then the lists, a gap, and the messages */
.button-row { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.todo-row { margin-bottom:1.4rem; }
.button-gap { width:2rem; }

/* Lockbox: the number of locked papers opens their titles */
.locked-titles summary { cursor:pointer; color:var(--accent); font-weight:600; }
.locked-titles ul { margin:.3rem 0 0; padding-left:1.1rem; }

/* SMTP Log */
.mail-status { font-family:system-ui, sans-serif; font-weight:600; }
.mail-status.sent { color:var(--ok); } .mail-status.failed { color:var(--bad); } .mail-status.kept { color:var(--warn); }

/* Unanswered messages: "▸ Reply" and "▸ Mute Sender" side by side; an opened one takes a line of its own */
.waiting-choices { display:flex; flex-wrap:wrap; column-gap:1.5rem; margin-left:1rem; }
.waiting-choices .waiting-reply { margin-left:0; }
.waiting-choices .waiting-reply[open] { flex-basis:100%; }

/* Dates like 2026-11-03: fixed-width digits, like paper IDs, so they line up; never broken across lines */
.date { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space:nowrap; }

/* JEL codes: their meaning shows on hover */
abbr.jel { text-decoration: underline dotted; cursor: help; }
.ref-sym.late.still { animation: none; }  /* the legend's "!" does not blink */

/* A paper back from its associate editor, waiting for the main editor's decision (editor_paper.html). */
.card.decision-due { border-left: 5px solid var(--accent); }
.card.decision-due h2 { margin-top: 0; }
.nowrap { white-space: nowrap; }

/* The journal's icon beside the welcome notice (home.html, editor_icon.html; journal/siteicon.py). */
.site-icon { float: left; max-width: 160px; max-height: 160px; margin: 0 1.2rem .8rem 0; }
.site-notice::after { content: ""; display: block; clear: both; }
.site-notice ul, .site-notice ol { display: flow-root; }  /* bullets stay clear of the icon on the left */
.icon-now { display: flex; align-items: center; gap: 1.5rem; }
.icon-now .site-icon { float: none; margin: 0; }

/* Author Suggestions on the editor's paper page: routine answers only after "Show all". */
.suggestions:not(.show-all) .usual { display: none; }
.suggestions.show-all .only-usual { display: none; }
.suggestions-toggle { margin-left: .5em; font-weight: normal; }

/* The control site (super.reviews.peers.science). */
.run-log { white-space: pre-wrap; font-size: .85rem; background: #f6f6f6; padding: .75rem; border: 1px solid #ddd; }
.inline-details { display: inline-block; margin-left: .5em; }

/* The handling editor's "Days left" column (editor_dashboard.html): negative means late. */
td.days-left { text-align: right; font-variant-numeric: tabular-nums; }
details.more-section { margin: .3rem 0; }
details.more-section > summary { cursor: pointer; font-weight: 600; padding: .2rem 0; }
details.more-section.out-with { margin-left: 1.4rem; }
details.more-section[open] > summary { margin-bottom: .4rem; }
details.more-section .more-list { margin: 0 0 1.2rem 1.2rem; }
.more-out-with { margin: .6rem 0 .1rem; }

/* Breadcrumbs under the header, on every page (_breadcrumbs.html, journal/breadcrumbs.py). */
/* Every step back is a small button (it is clickable); the page itself is plain text at the end. */
nav.crumbs { font: 14px system-ui, sans-serif; color: var(--muted); padding: .6rem 1.2rem 0; line-height: 2; }
nav.crumbs a { display: inline-block; padding: .1rem .65rem; line-height: 1.5; border: 1px solid var(--accent);
               border-radius: 4px; background: #fff; color: var(--accent); text-decoration: none; font-weight: 600; }
nav.crumbs a:hover, nav.crumbs a:focus { background: var(--accent); color: #fff; }
nav.crumbs .sep { margin: 0 .3rem; }
nav.crumbs span:last-child { color: var(--ink); }

/* "▸ Sleep" (a button) lines up with and looks like the "▸ Reply" and "▸ Mute Sender" disclosures beside it. */
.waiting-choices .waiting-sleep { margin: .2rem 0 .6rem; }
.waiting-choices .waiting-sleep button { color: var(--accent); }
/* The same triangle as the <summary> choices beside it: a button cannot take the browser's marker, so draw it. */
.waiting-choices .waiting-sleep button::before { content: "\25B6\FE0E"; font-size: .7em; margin-right: .45em;
  vertical-align: .1em; }

/* A notice that can be closed with × for this view (static/journal/dismiss.js). */
.msg.dismissable { position: relative; padding-right: 2.2rem; }
.msg-close { position: absolute; top: .25rem; right: .4rem; background: none; border: none; font-size: 1.2rem;
  line-height: 1; cursor: pointer; color: inherit; opacity: .6; padding: .2rem .3rem; }
.msg-close:hover { opacity: 1; }

/* A collapsed list whose heading is the summary (the handling editor's "Rec sent, …"). */
details.ae-waiting { margin-top: 1.4rem; }  /* the space an h2 has above it (.page-editor h2) */
details.ae-waiting > summary { cursor: pointer; margin-bottom: .4rem; }
details.ae-waiting > summary h2 { display: inline; }

/* Acting as someone else ("Rare and Undesirable", journal/acting.py): a strip under the header on every page. */
.acting-banner { background: #fde2e1; border: 2px solid #b3261e; color: #5c0f0b; padding: .5em 1em; margin: .5em 0; }
.acting-banner button { margin-left: .5em; }
.rare-undesirable { border-left: 4px solid #b3261e; }
table.acting-log { width: auto; }
table.acting-log td, table.acting-log th { padding: .2em .8em .2em 0; }

/* The paper's message switches (editor_paper.html): a checkbox each, saved when clicked. */
.message-switch { margin: .2rem 0; } .message-switch label { cursor: pointer; }

/* The handling editor's "Refuse/Send Back to Exec Editor": last in the action bar, set apart from the usual ones. */
.action-bar .send-back-button { margin-left: 2rem; }

/* A break between the messages and the editor's tabs (editor_dashboard.html). */
hr.section-break { border: none; border-top: 1px solid var(--line); margin: 1.6rem 0 1.4rem; }
.messages-section { position: relative; }
.messages-section > .msg-close { top: 1.1rem; right: 0; }  /* just under the top line, at the right */

/* Basic Analysis: the estimated length, folded (_length.html). */
details.paper-length { margin: .5em 0; }
details.paper-length summary { cursor: pointer; }
table.length-table { width: auto; margin: .4em 0 .2em 1.2em; }
table.length-table td { padding: .1em 1.2em .1em 0; }
table.length-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.limits-table { width: auto; }
table.limits-table td { padding: .2em 1em .2em 0; }
table.length-table tr.sub td:first-child { padding-left: 2em; }

/* A link with the same small triangle in front (the referee page's "Paper" and "Correspondence"). */
.tri-link::before { content: "\25B6\FE0E"; font-size: .7em; margin-right: .4em; vertical-align: .1em;
  display: inline-block; text-decoration: none; }

/* Admin › Journal report */
table.report-table { width: auto; margin-bottom: 1em; }
table.report-table td, table.report-table th { padding: .15em 1.2em .15em 0; }
table.report-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Invite check: is this referee suitable? (journal/conflicts.py) */
p.conflict { font-weight: 700; margin: .2em 0; }
p.conflict-bad { color: var(--bad); }
p.conflict-maybe { color: #8a4b00; }

/* Papers page (views.editor_papers): group buttons and the filter box */
.group-buttons .chip { border-radius: 1em; padding: .15em .8em; margin: 0 .3em .3em 0; background: #fff; color: inherit; border: 1px solid #bbb; }
.group-buttons .chip.on { background: var(--accent, #234); color: #fff; border-color: transparent; }
.group-buttons .chip .count { opacity: .7; margin-left: .3em; }
table.papers-table td.late { color: var(--bad); }

/* The editors' Help button in the header (base.html): easy to spot on every page */
.top .who a.help-button { display: inline-block; margin-right: 1em; padding: .2em .9em; border-radius: 1em;
  background: #f5c518; color: #222; font-weight: 600; text-decoration: none; border: 1px solid #d9a800; }
.top .who a.help-button:hover { background: #ffd84a; }

/* Present for the browser (a form's default button, review.html), never seen. */
.offscreen { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Test sites: text messages shown in the middle of the page (base.html, test-text.js) */
.test-texts { position:fixed; inset:0; z-index:1000; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:.8rem; background:rgba(0,0,0,.35); }
.test-texts[hidden] { display:none; }
.test-text { width:22rem; max-width:90vw; background:#fff; border-radius:1.2rem; padding:.9rem 1.1rem;
  box-shadow:0 8px 30px rgba(0,0,0,.35); }
.test-text-head { font-size:.8rem; margin-bottom:.4rem; }
.test-text-body { background:#e9e9eb; border-radius:1rem; padding:.6rem .8rem; white-space:pre-wrap; }
.test-texts-close { min-width:6rem; }
