/* Brand colours taken from the journal website (cjltjournal.wixsite.com/cjlt):
   navy #020C45, warm white #F9F6F4, gold #FFDE59, link blue #3D74E9 */
:root {
  --navy: #020c45;
  --gold: #ffde59;
  --paper: #f9f6f4;
  --surface: #ffffff;
  --ink: #020c45;
  --muted: #565b7c;
  --rule: #dcd7d2;
  --accent: #020c45;
  --accent-ink: #f9f6f4;
  --accent-soft: #e8eaf5;
  --link: #2a5bd7;
  --ok: #2f6b45;     --ok-soft: #e0efe5;
  --warn: #8a5a00;   --warn-soft: #f8ecd0;
  --info: #2a4fa8;   --info-soft: #e3e9f8;
  --bad: #9b2c2c;    --bad-soft: #f6dede;
  --neutral-soft: #ece8e3;
  --font: Quicksand, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: Georgia, Palatino, "Book Antiqua", "Palatino Linotype", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #070a22;
    --surface: #0f1438;
    --ink: #f4f1ee;
    --muted: #a3a8c9;
    --rule: #262c5c;
    --accent: #ffde59;
    --accent-ink: #020c45;
    --accent-soft: #1b2255;
    --link: #8fb0ff;
    --ok: #7fc59a;   --ok-soft: #1f3327;
    --warn: #e5b85c; --warn-soft: #3a2f16;
    --info: #8fb0ff; --info-soft: #1b2650;
    --bad: #e88b8b;  --bad-soft: #3b2020;
    --neutral-soft: #1a2048;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16.5px; font-weight: 500; line-height: 1.6;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: 2rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; margin-top: 1.2em; }
p { margin: 0 0 .9em; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--neutral-soft); padding: 1px 5px; border-radius: 4px; }
small, .small { font-size: .85rem; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .85rem; font-family: var(--font); }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }

/* header: navy masthead, as on the journal website */
.site-header { background: var(--navy); color: #f9f6f4; border-bottom: 4px solid var(--gold); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #f9f6f4; }
.brand img { width: 64px; height: 64px; border-radius: 6px; flex: none; }
.brand .name { display: block; font-family: var(--display); font-weight: 400; font-size: 1.55rem; line-height: 1.15; letter-spacing: .005em; }
.brand .issn { display: block; font-size: .75rem; letter-spacing: .08em; opacity: .75; margin-top: 3px; }
nav { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; font-size: .95rem; }
nav a { color: #f9f6f4; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: var(--gold); }
nav a.btn { color: #020c45; background: var(--gold); border-color: var(--gold); padding: 7px 16px; border-bottom: 1px solid var(--gold); }
nav button.link { color: #f9f6f4; }
.who { color: #f9f6f4; opacity: .85; }
/* the header, in three lines: the journal and the portal; who is signed in (quiet, on its own line) and Sign out; the menu */
.site-header .hdr { display: grid; gap: 0; padding-top: 12px; padding-bottom: 6px; }
.hdr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.brand .brand-logo { display: block; flex: none; line-height: 0; } .brand .brand-logo img { width: 48px; height: 48px; border-radius: 6px; }
.brand a.name { display: inline-block; color: #f9f6f4; text-decoration: none; font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.brand .portal-label { display: inline-block; margin: 0; padding: 3px 12px; background: var(--gold); color: #020c45; border-radius: 4px; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.nav-anon { display: flex; align-items: center; gap: 8px 22px; font-size: .95rem; }
.user-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 7px 0; border-top: 1px solid #ffffff2e; font-size: .9rem; color: #d3d7e8; }
.user-line .ul-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.user-line a.ub-name { color: #f9f6f4; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; } .user-line a.ub-name:hover { text-decoration: underline; }
.user-line .ub-role { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid #ffffff59; border-radius: 4px; padding: 1px 7px; }
.user-line .ub-email { overflow-wrap: anywhere; opacity: .85; }
.user-line .ul-actions { display: inline-flex; align-items: baseline; gap: 6px 16px; margin-left: auto; flex-wrap: wrap; }
.user-line .ul-actions a { color: #d3d7e8; font-size: .85rem; } .user-line .ul-actions form { margin: 0; display: inline; }
.user-line button.signout { background: none; border: 1px solid #ffffff73; border-radius: 4px; color: #f9f6f4; font: inherit; font-size: .85rem; font-weight: 600; padding: 2px 12px; cursor: pointer; }
.user-line button.signout:hover { background: #ffffff1f; border-color: #fff; }
.site-header nav:not(.nav-anon) { padding-top: 8px; border-top: 1px solid #ffffff2e; }
.role-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; border: 1px solid var(--gold); color: var(--gold); border-radius: 4px; padding: 1px 6px; margin-left: 4px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
form.inline { display: inline; }

main { padding-top: 28px; padding-bottom: 40px; min-height: 60vh; }
.site-footer { background: var(--navy); color: #f9f6f4; border-top: 4px solid var(--gold); margin-top: 24px; font-size: .85rem; }
.site-footer .wrap { padding-top: 20px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.site-footer a { color: var(--gold); }
.site-footer p { margin: 0; opacity: .9; }

/* flashes */
.flashes { margin-bottom: 20px; display: grid; gap: 8px; }
.flash { font-family: var(--font); font-size: .93rem; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--rule); border-left-width: 4px; background: var(--surface); }
.flash.success { border-left-color: var(--ok); background: var(--ok-soft); }
.flash.error { border-left-color: var(--bad); background: var(--bad-soft); }
.flash.info { border-left-color: var(--info); background: var(--info-soft); }
.flash.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.notice { font-family: var(--font); font-size: .9rem; background: var(--info-soft); border-left: 4px solid var(--info); padding: 10px 14px; border-radius: 6px; }

/* buttons & forms */
.btn, button.btn {
  display: inline-block; font-family: var(--font); font-size: .95rem; font-weight: 600;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  padding: 9px 18px; border-radius: 6px; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.small { padding: 6px 12px; font-size: .88rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--accent-soft); filter: none; }
button.link { background: none; border: 0; padding: 0; font: inherit; font-family: var(--font); font-size: .92rem; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
button.link.danger, .danger { color: var(--bad); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

label { display: block; font-family: var(--font); font-size: .9rem; font-weight: 600; }
label small { display: block; font-weight: 400; color: var(--muted); margin-top: 3px; }
label small[hidden] { display: none; }
label .muted { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px;
  font: inherit; font-family: var(--font); font-size: .95rem; font-weight: 400;
  color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
}
textarea { resize: vertical; font-family: var(--font); font-size: 1rem; }
input[type=file] { display: block; margin-top: 6px; font-family: var(--font); font-size: .9rem; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 5px; }
fieldset { border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; margin: 0; }
fieldset[hidden] { display: none; }
legend { font-family: var(--font); font-weight: 600; font-size: .9rem; padding: 0 6px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 8px; margin-top: 12px; }
.row select { margin-top: 0; }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.grid4 .full { grid-column: 1 / -1; }
.grid4 .hint { margin: -4px 0 0; }
.grid4 input, .grid4 select { box-sizing: border-box; height: 44px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--rule); border-radius: 8px; padding: 12px; cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 5px; }
.choice small { margin-top: 0; }

/* layout bits */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 20px 22px; margin-bottom: 20px; }
.card > :last-child { margin-bottom: 0; }
.narrow { max-width: 480px; margin: 0 auto; }
.narrow.wide { max-width: 720px; }
.center { text-align: center; }
.eyebrow { font-family: var(--font); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; font-weight: 600; }
.lede { font-size: 1.15rem; color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 4px; }
.byline { color: var(--muted); font-family: var(--font); font-size: .9rem; margin: 0; }
.crumbs { font-family: var(--font); font-size: .88rem; margin-bottom: 12px; }
.hero { padding: 36px 0 28px; max-width: 720px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: 2.8rem; line-height: 1.1; }
.hero .rule { width: 72px; height: 4px; background: var(--gold); border-radius: 2px; margin: 18px 0 20px; }
.hero .actions { margin-top: 24px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 24px; }
table.plain { border: 0; font-family: var(--font); font-size: .85rem; width: 100%; }
table.plain td { padding: 3px 0; border: 0; }
table.plain td + td { color: var(--muted); padding-left: 10px; }
.empty { text-align: center; padding: 40px 20px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.layout:not(:has(.side-col)) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.side-col .card { padding: 16px 18px; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: .9rem; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 5px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.35; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
td a { font-family: var(--font); font-size: .95rem; font-weight: 600; }
tr.dim { opacity: .55; }
td select, td input[type=text] { margin-top: 0; padding: 6px 8px; }

/* stats & filters */
.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.stat { font-family: var(--font); text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 14px; min-width: 88px; }
.stat b { display: block; font-size: 1.4rem; font-family: var(--font); line-height: 1.1; }
.stat span { font-size: .75rem; color: var(--muted); }
.stat.on { border-color: var(--accent); background: var(--accent-soft); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters input[type=search] { width: 280px; max-width: 100%; margin: 0; }
.filters select { width: auto; margin: 0; }

/* badges */
.badge, .chip { display: inline-block; font-family: var(--font); font-size: .76rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; white-space: nowrap; background: var(--neutral-soft); color: var(--ink); border: 1px solid transparent; }
.badge::before { content: "● "; font-size: .65em; vertical-align: 1px; }
.st-submitted { background: var(--info-soft); color: var(--info); }
.st-shortlisting { background: var(--warn-soft); color: var(--warn); }
.st-shortlisted { background: var(--ok-soft); color: var(--ok); }
.st-prescreened { background: var(--info-soft); color: var(--info); }
.st-under_review { background: var(--warn-soft); color: var(--warn); }
.msid { font-family: var(--font); font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.st-on_hold { background: var(--neutral-soft); color: var(--muted); }
.st-reviewer_required { background: var(--bad-soft); color: var(--bad); }
.st-revised { background: var(--info-soft); color: var(--info); }
.st-revisions_requested { background: var(--warn-soft); color: var(--warn); }
.st-accepted { background: var(--ok-soft); color: var(--ok); }
.st-rejected { background: var(--bad-soft); color: var(--bad); }
.st-withdrawn { background: var(--neutral-soft); color: var(--muted); }
.chip.ok, .rec-accept { background: var(--ok-soft); color: var(--ok); }
.chip.warn, .rec-minor { background: var(--warn-soft); color: var(--warn); }
.rec-major { background: var(--warn-soft); color: var(--warn); }
.rec-reject { background: var(--bad-soft); color: var(--bad); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.chips .chip { font-size: .68rem; padding: 1px 7px; }

/* submission detail */
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-family: var(--font); font-size: .9rem; margin: 16px 0 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.files, .plain-list, .timeline { list-style: none; margin: 0; padding: 0; font-family: var(--font); font-size: .92rem; }
.files li { padding: 4px 0; border-bottom: 1px solid var(--rule); }
.files li:last-child { border: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.timeline li { padding: 4px 0 4px 14px; border-left: 2px solid var(--rule); position: relative; }
.timeline li small { display: block; }
.msg, .note { border-left: 3px solid var(--accent); background: var(--paper); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 12px 0; }
.msg.mine { border-left-color: var(--info); }
.note.k-editorial { border-left-color: var(--warn); }
.note.k-author_response { border-left-color: var(--info); }
.msg header, .note header { font-family: var(--font); font-size: .85rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.msg p, .note p { margin: 0; }
.attach { font-family: var(--font); font-size: .9rem; margin-top: 8px !important; }
.released { margin: 10px 0; padding-left: 12px; border-left: 3px solid var(--rule, #d8d8d8); }
.released p { margin: 2px 0; }
.note-form { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }

@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .three, .grid2, .choices { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .stat { min-width: 70px; }
}
@media (max-width: 480px) {
  .grid4 { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  body { font-size: 16px; }
}
.release { margin: 4px 0 0; }
.release label.check { margin-top: 8px; }
.link-quiet { font-weight: 600; color: var(--link); text-decoration: none; }
.link-quiet:hover { text-decoration: underline; }
.hero .eyebrow { color: var(--muted); }

/* ---- make it unmistakable that this is the submission portal, not the journal site ---- */
.brand .portal-label { display: inline-block; margin-top: 0; padding: 3px 12px; background: var(--gold); color: #020c45; border-radius: 4px; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
nav a.ext { opacity: .85; font-size: .88rem; }
.looking { background: var(--accent-soft); border-style: dashed; max-width: 720px; margin-top: 8px; }
.looking h2 { margin-bottom: .3em; }
.how { margin-top: 28px; max-width: 900px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; }
.steps h3 { margin: 4px 0 .2em; font-size: 1.02rem; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .steps .n { background: var(--gold); color: #020c45; } }
label.check.mini { font-size: .78rem; margin-top: 4px; color: var(--muted); }
label.check.mini input { margin-top: 3px; }

/* manuscript files: original + reviewer copy */
.file-row { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.file-row:last-child { border-bottom: 0; }
.file-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; margin-top: 4px; }
.file-line .lbl { width: 108px; flex: none; color: var(--muted); font-size: .85rem; }
details.redact { margin-top: 10px; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 14px; background: var(--paper); }
details.redact summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
details.redact h3 { font-size: .92rem; margin: 14px 0 4px; }
ul.removed { padding-left: 18px; }
ul.removed blockquote { margin: 4px 0 10px; padding: 6px 10px; border-left: 3px solid var(--rule); background: var(--surface); color: var(--muted); font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.redact-actions { display: grid; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.notice.warn-note { background: var(--warn-soft); border-left-color: var(--warn); }
.notice.bad-note { background: var(--bad-soft); border-left-color: var(--bad); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }

.redact-upload { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 10px; }
.redact-upload label { flex: 1 1 260px; }

.stat.attn b { color: var(--warn); }
.stat.attn.on { border-color: var(--warn); background: var(--warn-soft); }

.head-actions { margin-top: 8px; text-align: right; }
.del-version { margin-top: 8px; }
.small-link { font-size: .8rem; }
.note header form.inline { margin-left: auto; }
.danger-card { border-color: var(--bad); background: var(--bad-soft); }
.btn.danger-btn { background: var(--bad); border-color: var(--bad); color: #fff; }
details.deleted-log { margin-top: 28px; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 14px; background: var(--surface); }
details.deleted-log summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted); }
details.deleted-log table { margin-top: 10px; font-size: .85rem; }

.warn-text { color: var(--warn); font-size: .8rem; }
label.check.inline-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0 4px; }
label.check.inline-check input { margin: 0; }
.hidden-note { margin: -6px 0 12px; }
label.check.inline-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0 4px; }
label.check.inline-check input { margin: 0; }
.hidden-note { margin: -6px 0 12px; }

/* editors' discussion, tasks, assigned editor */
.note.k-discussion { border-left-color: var(--navy); }
.note.thread .reply-msg { margin: 10px 0 0 18px; padding: 8px 12px; border-left: 3px solid var(--rule); background: var(--surface); border-radius: 0 8px 8px 0; }
.note.thread .reply-msg header { font-size: .82rem; }
details.reply-box { margin-top: 10px; }
details.reply-box summary, details.reassign summary, details.add-task summary { cursor: pointer; color: var(--link); font-size: .88rem; font-weight: 600; }
details.reply-box form { margin-top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tasks li { display: block; padding: 6px 0; }
.tasks li.done strong { text-decoration: line-through; color: var(--muted); }
.task-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.task-actions .row { margin-top: 6px; }
details.add-task { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
details.add-task form { margin-top: 10px; }
form.inline-form { margin-top: 8px; }
nav .count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #020c45; font-size: .75rem; font-weight: 700; text-align: center; }

/* ---- the submissions list: compact, one line per row, resizable columns ---- */
.list-wrap { position: relative; left: 50%; transform: translateX(-50%); width: min(98vw, 1500px); overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
table.list { table-layout: fixed; border-collapse: collapse; font-size: .84rem; max-width: none; }
table.list th, table.list td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 8px; line-height: 1.25; vertical-align: middle; }
table.list th { position: relative; text-align: left; padding-right: 12px; user-select: none; }
table.list tbody tr:hover { background: var(--hover, rgba(0, 0, 0, .035)); }
table.list .chip, table.list .badge { margin: 0; padding-top: 1px; padding-bottom: 1px; vertical-align: middle; }
table.list .grip { position: absolute; top: 0; right: 0; bottom: 0; width: 8px; cursor: col-resize; touch-action: none; }
table.list .grip:hover, table.list .grip:focus { background: rgba(120, 120, 120, .35); outline: none; }
.list-tools { margin: 0 0 6px; }
table.list th a.sortlink { color: inherit; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; }
table.list th a.sortlink:hover { text-decoration: underline; }
table.list th .arrow { font-size: .7em; opacity: .8; }

.bio-count { display: block; margin-top: 2px; }
.bio-count.over { color: var(--warn); font-weight: 600; }

.contributor { margin: 0; }
details.more > summary { cursor: pointer; font-weight: 600; margin: 4px 0 8px; }

.list-tools { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: flex-start; }
details.colpicker { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 4px 10px; }
details.colpicker > summary { cursor: pointer; font-weight: 600; font-size: .88rem; }
ul.colpick { list-style: none; margin: 6px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 14px; font-size: .88rem; }
ul.colpick li { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
ul.colpick .lbl { flex: 1; }
ul.colpick .link { padding: 0 3px; }

table.list th { padding-left: 16px; }
table.list th .move { position: absolute; left: 2px; top: 50%; transform: translateY(-50%); cursor: grab; opacity: .45; font-size: .8em; letter-spacing: -2px; user-select: none; }
table.list th .move:hover { opacity: 1; }
table.list th.drop-before { box-shadow: inset 3px 0 0 var(--link); }
table.list th.drop-after { box-shadow: inset -3px 0 0 var(--link); }
ul.colpick li { cursor: grab; }
ul.colpick li.drop-before { box-shadow: 0 -2px 0 var(--link); }
ul.colpick li.drop-after { box-shadow: 0 2px 0 var(--link); }

.st-enquiry { background: var(--info-soft); color: var(--info); font-style: italic; }
.msg.from-staff { border-left: 3px solid var(--link); padding-left: 10px; }

details.ask-first > summary { cursor: pointer; font-weight: 600; }
details.ask-first[open] > summary { margin-bottom: 8px; }

dialog.email-preview { max-width: min(760px, 94vw); max-height: 86vh; overflow: auto; border: 1px solid var(--rule); border-radius: 12px; padding: 18px 22px; background: var(--surface); color: var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
dialog.email-preview::backdrop { background: rgba(2, 12, 69, .45); }
dialog.email-preview .close-x { position: absolute; right: 10px; top: 8px; margin: 0; }
dialog.email-preview .close-x button { background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: var(--muted); }
.email-list { display: grid; gap: 12px; margin: 10px 0 14px; }
article.email { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; }
article.email dl { margin: 0 0 6px; display: grid; grid-template-columns: 60px 1fr; gap: 2px 8px; font-size: .9rem; }
article.email dt { color: var(--muted); }
article.email dd { margin: 0; }
article.email pre, pre.email-body { white-space: pre-wrap; word-wrap: break-word; font-family: inherit; font-size: .9rem; margin: 0; background: var(--paper); padding: 8px 10px; border-radius: 6px; }

/* shortlisting grid and the administrator's criteria page */
table.grid-scores abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
/* the score box and the drop-down of a criterion look alike: same height, border, padding, font and alignment */
table.grid-scores input.score, table.grid-scores select.cat {
  display: inline-block; box-sizing: border-box; height: 2.4rem; margin: 0; padding: 0 10px; vertical-align: middle;
  font: inherit; font-family: var(--font); font-size: .95rem; font-weight: 400; line-height: 1.2;
  color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
}
table.grid-scores input.score { width: 4.4rem; }
table.grid-scores select.cat { width: auto; min-width: 4.4rem; max-width: 10rem; }
table.grid-scores td { vertical-align: middle; }
table.grid-scores th, table.grid-scores td { padding-left: 9px; padding-right: 9px; }
dl.criteria-key { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 10px 0; font-size: .88rem; }
dl.criteria-key dt { font-weight: 700; }
dl.criteria-key dd { margin: 0; color: var(--muted); }
ol.crit-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
li.crit-row { display: grid; grid-template-columns: auto minmax(150px, 1.4fr) minmax(100px, .8fr) minmax(150px, 1fr) minmax(110px, .6fr) auto; gap: 8px 12px; align-items: start;
  border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; background: var(--paper); }
li.crit-row label { display: grid; gap: 3px; font-size: .85rem; font-weight: 700; }
li.crit-row label small { font-weight: 500; color: var(--muted); }
li.crit-row .crit-notes { grid-column: 2 / 6; }
li.crit-row .crit-opts { grid-column: 2 / 6; display: grid; gap: 6px; }
li.crit-row .crit-opts .opts-title { font-size: .85rem; font-weight: 700; }
li.crit-row .opt-list { display: grid; gap: 6px; }
li.crit-row .opt { display: flex; gap: 6px; align-items: center; }
li.crit-row .opt input { margin: 0; flex: 1 1 auto; max-width: 18rem; }
li.crit-row .crit-opts .js-opt-add { justify-self: start; }
li.crit-row .crit-order { display: flex; flex-direction: column; gap: 4px; align-items: center; }
li.crit-row .crit-num { font-weight: 700; color: var(--muted); }
li.crit-row .crit-remove { grid-row: 1; grid-column: 6; }
li.crit-row [hidden], li.crit-row .crit-opts[hidden] { display: none; }
@media (max-width: 760px) {
  li.crit-row { grid-template-columns: 1fr 1fr; }
  li.crit-row .crit-order { flex-direction: row; grid-column: 1 / 3; }
  li.crit-row .crit-notes, li.crit-row .crit-opts { grid-column: 1 / 3; }
  li.crit-row .crit-remove { grid-row: auto; grid-column: 1 / 3; }
}
tr.grid-summary td { background: var(--neutral-soft); }

/* languages */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; }
.lang-grid label.check { align-items: center; }

/* the compact language list */
ul.lang-list { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 0 18px; }
ul.lang-list li { display: flex; align-items: center; gap: 8px; padding: 3px 2px; border-bottom: 1px solid var(--rule); min-height: 30px; }
ul.lang-list .lang-name { flex: 1 1 auto; font-weight: 600; font-size: .93rem; }
ul.lang-list .lang-counts { font-size: .75rem; white-space: nowrap; }
ul.lang-list details.mini { position: relative; font-size: .8rem; }
ul.lang-list details.mini summary { cursor: pointer; color: var(--link); list-style: none; }
ul.lang-list details.mini summary::-webkit-details-marker { display: none; }
ul.lang-list details.mini[open] form { position: absolute; right: 0; top: 1.6em; z-index: 5; display: flex; gap: 6px; padding: 8px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
ul.lang-list details.mini input { margin: 0; padding: 5px 8px; width: 12rem; }
ul.lang-list button.x { background: none; border: 0; color: var(--bad); cursor: pointer; font-size: .85rem; padding: 2px 4px; line-height: 1; }

.who-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }

/* things done on someone else's behalf are rare: they stay as one quiet line until asked for */
details.behalf { margin: 8px 0; font-size: .88rem; }
details.behalf > summary { cursor: pointer; color: var(--muted); font-weight: 600; list-style: none; padding: 3px 0; }
details.behalf > summary::-webkit-details-marker { display: none; }
details.behalf > summary::before { content: "▸ "; }
details.behalf[open] > summary::before { content: "▾ "; }
details.behalf > summary:hover { color: var(--ink); }
details.behalf[open] { padding: 8px 12px 10px; border: 1px dashed var(--rule); border-radius: 8px; background: var(--surface); }
details.behalf[open] > summary { margin-bottom: 6px; }

/* the shortlist tables (the Shortlist page, and the grids on a submission): compact rows */
table.grid-scores th { padding-top: 6px; padding-bottom: 6px; }
table.grid-scores td { padding-top: 4px; padding-bottom: 4px; line-height: 1.3; font-size: .88rem; }
table.grid-scores td a { font-size: .9rem; font-weight: 600; }
table.grid-scores td .chip, table.grid-scores td .badge, table.grid-scores td .status { font-size: .74rem; padding-top: 0; padding-bottom: 0; }
table.grid-scores td strong { font-size: .9rem; }

/* the criteria editor: the extra settings of a row, and a step heading */
li.crit-row .crit-extra { grid-column: 2 / 6; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 12px; align-items: end; }
li.crit-row .crit-extra[hidden] { display: none; }
li.crit-row label.chk { display: flex; gap: 8px; align-items: center; font-weight: 500; }
li.crit-row.is-section { background: #eef0fa; border-left: 4px solid var(--navy); padding-left: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 14px; align-items: end; }

/* the shortlister's form: steps, tick boxes, scores with notes, and the outcome */
.sl-step { border: 1px solid var(--line, #dcd7d2); border-radius: 10px; padding: 4px 16px 10px; margin: 12px 0; background: #fff; }
.sl-step h3 { margin: .8em 0 .2em; font-size: 1.05rem; }
details.sl-step > summary { cursor: pointer; list-style: none; display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; padding: 10px 0 8px; font-weight: 700; font-size: 1.05rem; }
details.sl-step > summary::-webkit-details-marker { display: none; }
details.sl-step > summary::before { content: "▸"; color: var(--navy); font-size: .95em; }
details.sl-step[open] > summary::before { content: "▾"; }
.sl-status { font-weight: 500; font-size: .9rem; color: var(--muted); } .sl-status.ok { color: #2f6b45; font-weight: 700; } .sl-status.warn { color: #9b2c2c; font-weight: 700; }
.sl-toggles { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.sl-bad { outline: 3px solid #c0392b; outline-offset: 3px; background: #fdecea; border-radius: 6px; }
.sl-msg { background: #fdecea; border-left: 5px solid #c0392b; border-radius: 4px; padding: 9px 14px; margin: 10px 0; font-weight: 700; color: #7b241c; }
.sl-msg[hidden] { display: none; }
.sl-items { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.sl-item label.chk, label.chk { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.sl-score { display: grid; grid-template-columns: minmax(180px, 1fr) 5.5em auto; gap: 8px; align-items: center; font-weight: 600; }
.sl-score .sl-name small { display: block; font-weight: 400; }
.sl-score input.score, input.num { width: 5.5em; }
.sl-note { width: 100%; max-width: 40rem; margin-top: 4px; }
.sl-note-read { color: var(--muted); font-size: .9rem; margin-left: 1.2em; }
.sl-mark { display: inline-block; min-width: 1.4em; font-weight: 700; } .sl-mark.ok { color: #2f6b45; } .sl-mark.bad { color: #9b2c2c; }
.sl-result { margin: 8px 0 4px; padding: 8px 10px; background: #f4f1ee; border-radius: 8px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
label.radio { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; margin: 4px 0; }
.sl-mean { margin: 10px 0 2px; } .sl-band { margin-left: .5em; color: var(--navy); font-weight: 600; }
.sl-outcome { border: 2px solid var(--gold, #ffde59); border-radius: 10px; padding: 8px 16px 12px; margin: 14px 0; }
.sl-outcome legend { font-weight: 700; padding: 0 6px; }
.sl-suggest { background: #fff8d6; padding: 6px 10px; border-radius: 6px; margin: 4px 0 8px; }
.sl-reasons { margin: 8px 0 8px 1.4em; display: grid; gap: 2px; } .sl-comment { display: block; margin-top: 8px; font-weight: 600; }
.sl-comment textarea, .sl-comment input { width: 100%; }
@media (max-width: 620px) { .sl-score { grid-template-columns: 1fr 5.5em; } .sl-score small:last-child { display: none; } }

/* quiet folds on the author's pages: optional fields on the submission form, and "what you submitted" */
details.optional { border: 1px solid var(--rule); border-radius: 6px; padding: 8px 12px; }
details.optional > summary, details.fold > summary { cursor: pointer; font-weight: 600; }
details.optional[open] > summary { margin-bottom: 8px; }
details.fold { padding: 12px 16px; } details.fold[open] > summary { margin-bottom: 10px; }

/* the submission page as a row of step boxes (Submission, Prescreening, Shortlisting, Reviewing, Decision): only the current one starts open */
details.step { padding: 0; margin-bottom: 14px; }
details.step > summary { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; padding: 12px 16px; cursor: pointer; list-style: none; }
details.step > summary::-webkit-details-marker { display: none; }
details.step > summary::before { content: "\25B8"; color: var(--muted); font-size: .9rem; }
details.step[open] > summary::before { content: "\25BE"; }
details.step > summary h2 { margin: 0; font-size: 1.15rem; }
details.step > summary .step-line { color: var(--muted); font-size: .9rem; flex: 1 1 14rem; }
details.step > summary .step-dl { font-size: .85rem; margin-left: auto; }
details.step[open] > summary { border-bottom: 1px solid var(--rule); }
details.step > .step-body { padding: 14px 16px 16px; }
details.step .sub + .sub { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
details.step .sub > h3 { margin: 0 0 8px; font-size: 1rem; }
details.fold > summary .chip { margin-left: 6px; }
form.withdraw { margin-top: 18px; }

/* My tasks: the rows waiting for me stand out, the rest is muted */
table.mytasks tr.turn td:first-child { border-left: 4px solid var(--gold); }
table.mytasks tr.wait td { color: var(--muted); }
table.mytasks tr.wait a { color: var(--muted); }

/* "Log in as": a red bar on every page while an administrator is logged in as an author or a reviewer */
.impersonation-bar { position: sticky; top: 0; z-index: 100; background: #9b2c2c; color: #fff; font-size: .95rem; }
.impersonation-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding-top: 8px; padding-bottom: 8px; }
.impersonation-bar form { margin: 0; }
.impersonation-bar .btn { background: #fff; color: #9b2c2c; border-color: #fff; font-weight: 700; }

/* banner above every page (Settings > Website), and the note administrators see while the portal is switched off */
.site-banner { background: #f6d84c; color: #3a3000; font-size: .98rem; text-align: center; white-space: pre-line; }
.site-banner .wrap { padding-top: 9px; padding-bottom: 9px; }
.portal-off-bar { background: #fff3c4; color: #5c4500; font-size: .92rem; text-align: center; border-bottom: 1px solid #e3cf80; }
.portal-off-bar .wrap { padding-top: 6px; padding-bottom: 6px; }
.portal-closed { padding: 48px 0; font-size: 1.15rem; }

/* the file box and its "x Remove file" button, on one line */
.file-pick { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; margin-top: 6px; }
.file-pick input[type=file] { margin-top: 0; min-width: 0; flex: 0 1 auto; }
.file-pick .file-clear { flex: none; white-space: nowrap; }
.file-clear { font-family: var(--font); font-size: .8rem; font-weight: 600; line-height: 1; padding: 4px 9px; color: #9b2c2c; background: #fff; border: 1px solid #c9a0a0; border-radius: 4px; cursor: pointer; }
.file-clear:hover, .file-clear:focus { background: #9b2c2c; color: #fff; border-color: #9b2c2c; }
.file-clear[hidden] { display: none; }

/* People | Roles tabs, and the roles grid */
.subtabs { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--rule, #d8d8d8); }
.subtabs a { color: #020c45; padding: 8px 16px; text-decoration: none; font-weight: 600; font-size: .95rem; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; margin-bottom: -1px; }
.subtabs a:hover { background: #fff; }
.subtabs a[aria-current=page] { background: #fff; border-color: var(--rule, #d8d8d8); }
.roles-grid, .roles-names { width: 100%; border-collapse: collapse; }
.roles-grid th, .roles-grid td, .roles-names th, .roles-names td { padding: 8px 10px; border-bottom: 1px solid var(--rule, #e3e3e3); vertical-align: top; text-align: left; }
.roles-grid thead th { font-size: .8rem; text-align: center; }
.roles-grid thead th:first-child { text-align: left; }
.roles-grid tbody th, .roles-names tbody th { font-weight: 600; font-size: .95rem; text-transform: none; letter-spacing: 0; white-space: normal; min-width: 230px; }
.roles-grid tbody th small { display: block; font-weight: 400; margin-top: 2px; font-size: .82rem; text-transform: none; letter-spacing: 0; white-space: normal; }
.roles-grid thead th, .roles-names thead th { white-space: normal; }
.roles-grid td.c { text-align: center; }
.roles-names input { width: 100%; max-width: 280px; }

/* what an editor is about to send to the author: shown under the ticked reviewer feedback */
.release-preview { margin: 2px 0 12px 26px; padding: 8px 12px; border-left: 3px solid #c9b458; background: #fbf8ea; }
.release-preview[hidden] { display: none; }
.release-preview p { margin: 4px 0; }

.release-item { margin: 6px 0 10px; }

/* the reviewer's evaluation form (mirrors the journal's Word form) */
.review-form { max-width: 62rem; }
.review-form h3.rf-title { margin: 0 0 6px; }
.review-form h4 { margin: 22px 0 6px; padding-top: 10px; border-top: 2px solid var(--rule, #d8d8d8); }
.review-form h5 { margin: 16px 0 4px; font-size: 1rem; }
.rf-prompt { color: var(--muted, #666); margin: 2px 0 6px; font-size: .92rem; }
.rf-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 18px; margin: 4px 0; }
.rf-info > div { display: flex; flex-direction: column; }
.rf-info dt { font-size: .82rem; font-weight: 600; }
.rf-info dd { margin: 2px 0 0; padding: 6px 9px; background: #f1efea; border: 1px solid var(--rule, #d8d8d8); border-radius: 4px; color: #555; }
.rf-recs { display: grid; gap: 4px; margin: 4px 0 8px; }
.rf-more { display: block; margin-top: 6px; }
.review-form textarea { width: 100%; }
.rf-table { width: 100%; border-collapse: collapse; }
.rf-table th, .rf-table td { border: 1px solid var(--rule, #d8d8d8); padding: 6px 8px; vertical-align: top; text-align: left; text-transform: none; letter-spacing: 0; }
.rf-table thead th { background: #f1efea; font-size: .85rem; }
.rf-table tbody th { font-weight: 500; width: 34%; font-size: .93rem; }
.rf-table td.c { text-align: center; }
.rf-table td select { min-width: 4.5rem; }
.rf-table td textarea { min-height: 3.2rem; }

/* a review is a fold: just the reviewer and their recommendation until opened */
.review-card details > summary { cursor: pointer; padding: 6px 0; list-style-position: inside; }
.review-card details[open] > summary { border-bottom: 1px solid var(--rule, #d8d8d8); margin-bottom: 8px; }
.author-note { margin: 4px 0 10px; padding: 6px 12px; border-left: 3px solid #c9b458; background: #fbf8ea; }

/* emails waiting for the CJLT person to edit and send */
.draft-banner { background: #fff3c4; color: #5c4500; border-bottom: 1px solid #e3cf80; font-size: .95rem; }
.draft-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 7px; padding-bottom: 7px; }
.email-drafts { width: min(52rem, 94vw); }
.email-drafts textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }
.email-drafts input[name=subject] { width: 100%; }
