:root {
  color-scheme: light;
  font: 15px/1.55 Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #18363c;
  background: #f4f8f7;
  --ink: #17363b;
  --muted: #52696e;
  --accent: #0e7067;
  --wash: #e9f4f0;
  --line: #cdded9;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.wrap { width: min(calc(100% - 3rem), 1330px); margin-inline: auto; }
.masthead { background: white; border-bottom: 1px solid var(--line); }
.bar, .queue-heading, .pager, .paper-meta, .references, .decision-bar {
  display: flex; align-items: center; gap: .55rem 1rem; flex-wrap: wrap;
}
.bar { min-height: 61px; font-size: .9rem; }
.brand { font-weight: 800; font-size: 1.22rem; letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
#language { margin-inline-start: auto; }
main.wrap { padding-block: 1.65rem 4rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 2rem; letter-spacing: -.025em; margin-bottom: 1.05rem; }
h2 { font-size: 1.2rem; line-height: 1.3; }
h3 { font-size: 1.1rem; }
.layout { display: grid; grid-template-columns: minmax(265px, 340px) minmax(0, 1fr); gap: 1.15rem; align-items: start; }
aside, .detail { background: white; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
aside { padding: .95rem; }
.detail { padding: clamp(1rem, 3vw, 2rem); }
.login { max-width: 470px; margin-inline: auto; }
.login form { display: grid; gap: .9rem; }
.login button { justify-self: start; }
#login-feedback:empty { display: none; }
.login:has(#login-feedback:not(:empty)) #login-feedback { color: #854322; }
.queue-heading, .pager { justify-content: space-between; }
label { display: grid; gap: .22rem; color: var(--ink); font-size: .86rem; font-weight: 650; }
aside > label, .filters, #counts { margin-top: .65rem; }
.filters, .fields { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.muted { color: var(--muted); font-size: .86rem; }
input:not([type="checkbox"]), select, textarea, button { font: inherit; min-height: 44px; border: 1px solid #acc6c0; border-radius: 8px; }
input:not([type="checkbox"]), select, textarea { padding: .45rem .62rem; background: white; color: var(--ink); width: 100%; }
textarea { resize: vertical; }
input[type="checkbox"] { accent-color: var(--accent); }
button { cursor: pointer; background: var(--accent); color: white; padding: .42rem .8rem; font-weight: 650; }
button:not(.secondary):hover { background: #095b53; }
button.secondary { background: white; color: var(--accent); }
button.secondary:hover { background: var(--wash); }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid #0f6f80; outline-offset: 3px; }
::selection { background: #bee9dc; color: var(--ink); }
.queue { margin-top: .65rem; max-height: min(66vh, 620px); overflow: auto; scrollbar-color: #8caea5 #eff6f3; }
.queue button { width: 100%; white-space: normal; padding: .7rem .65rem; margin-bottom: .25rem; border-color: transparent; text-align: start; }
.queue button[aria-current="true"] { background: var(--wash); border-color: #b2d1c8; }
.queue button span { display: block; }
.queue .entry-title { font-weight: 690; color: var(--ink); line-height: 1.38; }
.queue .entry-meta { margin-top: .25rem; color: var(--muted); font-size: .78rem; font-weight: 500; }
.pager { border-top: 1px solid var(--line); padding-top: .7rem; font-variant-numeric: tabular-nums; font-size: .84rem; }
.state { background: var(--wash); color: #17574d; padding: .18rem .52rem; border-radius: 6px; font-weight: 700; font-size: .8rem; }
.state[data-state="identifier_conflict"], .notice { background: #fbf1df; color: #694918; }
.notice { padding: .62rem .8rem; border-radius: 7px; font-size: .86rem; overflow-wrap: anywhere; }
#paper-title { margin-block: .55rem; font-size: 1.56rem; letter-spacing: -.018em; }
.references a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 650; }
.facts { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; column-gap: .8rem; row-gap: .25rem; font-size: .88rem; }
.facts dt { font-weight: 650; }
.facts dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
details { margin-top: .75rem; border-block-start: 1px solid var(--line); }
summary { cursor: pointer; min-height: 44px; padding-block: .58rem; font-weight: 700; }
.abstract { max-width: 76ch; }
.abstract p + p { margin-top: .65rem; }
#decision { margin-top: 1.35rem; border-top: 1px solid var(--line); padding-top: 1rem; display: grid; gap: .68rem; }
#decision details { margin: 0; }
#decision details > label + label { margin-top: .55rem; }
.check { display: flex; align-items: center; gap: .5rem; cursor: pointer; min-height: 32px; }
fieldset { min-width: 0; padding: .5rem .72rem; margin: 0; border: 1px solid var(--line); border-radius: 8px; }
legend { padding-inline: .25rem; font-size: .86rem; font-weight: 700; }
.decision-bar { margin-top: .35rem; }
#feedback:empty { display: none; }
#feedback[data-error="true"] { color: #8a321d; }
#feedback { color: #115e51; }
@media (max-width: 820px) {
  .wrap { width: calc(100% - 1.5rem); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .queue { max-height: 14rem; }
  h1 { font-size: 1.7rem; }
}
@media (max-width: 490px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(6.3rem, auto) minmax(0, 1fr); }
}
