/* The organizer application shell and its screens, plus the reviewer console,
   the author wizard and the public event page — direction D.

   Two columns: a white 240px sidebar with a right rule, and a fluid content
   column on the band, where the work sits in white cards with a soft shadow.
   Headlines and large figures in Newsreader; everything else in Public Sans. */

.shell { display: flex; min-height: 100vh; background: var(--band); }

/* Pages without the shell that read as a card on the band. */
body:has(.submit-card), body:has(.verify-page), body:has(.moderate-page) { background: var(--band); }

/* --- sidebar ------------------------------------------------------------- */

.sidebar {
  width: var(--sidebar-width);
  flex: none;
  border-right: 1px solid var(--rule);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
}
.sidebar-wordmark { margin: 0 22px; }

.event-card {
  margin: 0 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: var(--band);
}
.event-card-name { font: 500 19px/1.2 var(--serif); color: var(--ink); }
.event-card-meta { font: 400 12px/1.5 var(--sans); color: var(--faint); margin-top: 3px; }
.event-card-meta + .event-card-meta { margin-top: 0; }

.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 14px; }
.nav a {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  font: 500 14px var(--sans);
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.nav a:hover { background: var(--band); color: var(--ink); }
.nav a.is-active {
  background: var(--petrol-50);
  color: var(--petrol);
  font-weight: 600;
}
.nav a.is-active:hover { background: var(--petrol-50); color: var(--petrol); }

.sidebar-user {
  margin-top: auto;
  padding: 0 14px;
}
.sidebar-user-inner {
  border-top: 1px solid var(--rule);
  padding: 14px 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user-name { font: 600 13.5px var(--sans); color: var(--ink); }
.sidebar-user-roles { font: 400 12px var(--sans); color: var(--faint); }

/* The account menu: opens upward from the sidebar's foot, a white card. */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; border-radius: var(--r-sm); }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover .sidebar-user-name { color: var(--link); }
.user-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.user-menu-panel a, .user-menu-panel button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  text-align: left;
  font: 500 13.5px var(--sans);
  color: var(--muted);
  cursor: pointer;
}
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--band); color: var(--ink); }
.user-menu-panel form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--hairline); }

/* A long jury scrolls inside its own panel. */
.jury-scroll {
  max-height: 440px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.jury-scroll > .jury-row:last-child { border-bottom: 0; }

/* A deadline: what it is and what it does, beside its day. */
.deadline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.deadline-row:first-child { padding-top: 0; }
/* The public list's rows: a name, and a day wide enough for a date field. */
.dated .rubric-head, .dated .rubric-row { grid-template-columns: minmax(0, 1fr) 190px; }
.deadline-name { font: 500 14.5px var(--sans); color: var(--ink); }
.deadline-hint { font: 400 13px/1.5 var(--sans); color: var(--soft); margin-top: 2px; }
.issue-row.is-past .issue-name, .issue-row.is-past .issue-state { color: var(--soft); }

/* Granting a role: each extra field shows for the role it belongs to. */
/* Scoped to the form so `.check-row`'s own display, later in the file, cannot win. */
.grant-form .grant-session, .grant-form .grant-finance, .grant-form .grant-jury-note { display: none; }
.grant-form:has(input[value="jury"]:checked) .grant-session,
.grant-form:has(input[value="moderator"]:checked) .grant-session,
.grant-form:has(input[value="jury"]:checked) .grant-jury-note { display: block; }
.grant-form:has(input[value="committee"]:checked) .grant-finance { display: flex; }
.grant-form .grant-name { max-width: 420px; }

/* The moderator's page: full width, no sidebar, like the reviewer console. */
.moderate-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* The overall score's range shows once it is switched on. */
.overall-range { display: none; margin-top: 14px; }
.overall:has(input[value="beside"]:checked) .overall-range,
.overall:has(input[value="final"]:checked) .overall-range { display: block; }
.range-row { display: grid; grid-template-columns: 120px 120px; gap: 12px; }

/* --- content ------------------------------------------------------------- */

.content {
  flex: 1;
  min-width: 0;
  max-width: 1320px;
  padding: 30px 40px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content.is-flush { padding: 0; gap: 0; max-width: none; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.page-title {
  font: 400 42px/1.08 var(--serif);
  color: var(--ink);
  letter-spacing: -.02em;
  margin: 0 0 8px;
  text-wrap: balance;
}
.page-subtitle { font: 400 14.5px/1.55 var(--sans); color: var(--soft); max-width: 760px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.page-actions .select { width: auto; padding: 9px 12px; font-size: 13.5px; }

.section-head { font: 500 23px/1.2 var(--serif); color: var(--ink); margin: 0 0 12px; letter-spacing: -.005em; }
.section-head-22 { font: 500 24px/1.2 var(--serif); color: var(--ink); margin: 0 0 4px; letter-spacing: -.005em; }
.section-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head-row .section-head { margin: 0; }

/* Two-column bodies: each column is a white card on the band. */
.two-col { display: grid; gap: 24px; flex: 1; align-items: start; }
.two-col > * {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.two-col > *:empty { display: none; }
.two-col-14 { grid-template-columns: 1.4fr 1fr; }
.two-col-115 { grid-template-columns: 1.15fr 1fr; }
.two-col-125 { grid-template-columns: 1.25fr 1fr; }
.two-col-105 { grid-template-columns: 1.05fr 1fr; }
.two-col-equal { grid-template-columns: 1fr 1fr; }
/* Inside a card, a table needs no second card. */
.two-col .tbl, .card .tbl { box-shadow: none; }

/* A right-hand column: already a card inside .two-col. */
.rail { border-left: 0; }

/* A section inside a card, under a rule. */
.card-section { border-top: 1px solid var(--rule); padding-top: 20px; margin-top: 4px; }

/* Tabs — 2px petrol underline on the active tab. */
.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  flex-wrap: wrap;
}
.tabs a {
  padding: 0 0 11px;
  font: 500 14px var(--sans);
  color: var(--soft);
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--ink); }
.tabs a.is-active {
  border-bottom-color: var(--petrol);
  font-weight: 600;
  color: var(--ink);
}
.tabs a.is-attention { color: var(--attention-text); }

/* Session rows — rows inside one card. */
.session-row {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1.4fr .8fr;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
  color: var(--muted);
  font: 400 14px/1.6 var(--sans);
  background: #fff;
}
.session-row:first-of-type { border-top-left-radius: var(--r-lg); border-top-right-radius: var(--r-lg); }
.session-row:hover { background: var(--paper-alt); }
.session-row.needs-attention { background: var(--row-highlight); }
.session-name { font: 500 22px/1.25 var(--serif); color: var(--ink); }
.session-slot { font: 400 13.5px var(--sans); color: var(--faint); margin-top: 4px; }

/* The jury list on the assignment screen: a bordered table inside the card. */
.jury-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 16px;
  background: var(--band);
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  font: 500 12.5px var(--sans);
  color: var(--soft);
}
.jury-head + .jury-row, .jury-head + .jury-scroll { border-top: 1px solid var(--rule); }
.jury-head ~ .jury-row, .jury-head + .jury-scroll {
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.jury-head + .jury-scroll, .jury-head ~ .jury-row:last-child {
  border-bottom: 1px solid var(--rule);
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.jury-row { padding: 12px 16px; border-bottom: 1px solid var(--hairline); transition: background-color 140ms var(--ease); }
.jury-row:hover { background: var(--paper-alt); }
.jury-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.jury-name { font: 600 14px var(--sans); color: var(--ink); }
.jury-load { font: 400 20px/1.2 var(--serif); color: var(--ink); white-space: nowrap; }
.jury-load.is-idle { color: var(--disabled); }
.jury-state { font: 400 12.5px var(--sans); color: var(--faint); margin-top: 2px; }
.jury-state.is-attention { color: var(--attention-text); }
/* The rubric list beside the jury reads lighter. */
.rubric-list > .jury-row { padding: 10px 0; }
.rubric-list > .jury-row:hover { background: none; }
.rubric-list .jury-name { font-weight: 500; }
.rubric-list .jury-load { font: 500 14px var(--sans); }

/* Papers with nobody left — each one an amber card with its reasons. */
.blocked-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blocked-list > * {
  padding: 13px 16px;
  border: 1px solid var(--attention-line);
  background: var(--attention-25);
  border-radius: var(--r-md);
  transition: box-shadow 140ms var(--ease);
}
.blocked-list > *:hover { box-shadow: var(--shadow); }
.blocked-title { font: 600 14.5px var(--sans); color: var(--ink); }
a.blocked-title:hover { color: var(--petrol); }
.blocked-number {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--attention-50);
  color: var(--attention-deep);
  font: 600 12px/1.6 var(--sans);
}
.blocked-reason { font: 400 13.5px/1.6 var(--sans); color: var(--muted); margin-top: 4px; }

/* A form that opens in place: on the band, inside one 1px line. */
.inline-panel {
  padding: 18px 20px;
  background: var(--band);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: end;
}
.bare-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bare-fieldset > legend { padding: 0; }

/* Radios drawn as pills: the native input stays, so the arrow keys and a form
   without JavaScript both still work. */
.option-row { display: flex; gap: 8px; flex-wrap: wrap; }
.option-pill {
  position: relative;
  padding: 9px 15px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  background: #fff;
  color: var(--muted);
  font: 500 13.5px var(--sans);
  cursor: pointer;
  transition: background-color 140ms var(--ease);
}
.option-pill:hover { background: var(--band); }
.option-pill input { position: absolute; opacity: 0; pointer-events: none; }
.option-pill:has(input:checked) {
  background: var(--petrol);
  border-color: var(--petrol);
  color: #fff;
  font-weight: 600;
}
.option-pill:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.when-day { display: none; margin-top: 12px; max-width: 280px; }
.when:has(input[value="day"]:checked) .when-day { display: block; }

/* How papers are judged — each step a question on the left and its answers
   on the right, the answers as cards over native radios. */
.setup { display: flex; flex-direction: column; }
.setup-step {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.setup-step-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 500 22px/1.25 var(--serif);
  color: var(--ink);
  margin: 0 0 8px;
}
.setup-step-number { font: 600 13px var(--sans); color: var(--petrol); }
.setup-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; }

/* The rubric editor — criterion rows with their weights, and a running total. */
.rubric-head, .rubric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 12px;
  align-items: center;
}
.rubric-head { font: 500 12.5px var(--sans); color: var(--soft); padding-bottom: 8px; }
.rubric-rows { display: flex; flex-direction: column; gap: 8px; }
.weight-field { position: relative; display: block; }
.weight-field input { padding-right: 30px; text-align: right; }
.weight-field span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font: 400 13.5px var(--sans);
  color: var(--faint);
}
.rubric-total { margin-top: 14px; font: 500 13.5px var(--sans); color: var(--muted); }
.rubric-total.is-off { color: var(--attention-text); }
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font: 500 14.5px/1.5 var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.check-row input { accent-color: var(--petrol); width: 16px; height: 16px; margin: 3px 0 0; flex: none; }
fieldset[disabled] .check-row { cursor: default; }

.choice-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group { font: 600 14px var(--sans); color: var(--ink); margin: 0 0 10px; }
.choice-grid + .choice-group { margin-top: 22px; }
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px 18px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.choice:hover { box-shadow: var(--shadow); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: 600 14.5px/1.4 var(--sans);
  color: var(--ink);
}
.choice-mark {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid var(--field-border);
  border-radius: 50%;
  background: #fff;
}
.choice-hint { font: 400 13.5px/1.55 var(--sans); color: var(--soft); padding-left: 26px; text-wrap: pretty; }
/* Chosen: a petrol line doubled from inside, on the petrol tint. */
.choice:has(input:checked) {
  border-color: var(--petrol);
  box-shadow: inset 0 0 0 1px var(--petrol);
  background: var(--petrol-50);
}
.choice:has(input:checked) .choice-mark {
  border-color: var(--petrol);
  background: radial-gradient(circle, var(--petrol) 0 4px, #fff 4.5px);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.choice-set[disabled] .choice { cursor: default; box-shadow: none; }
.choice-set[disabled] .choice:hover { background: #fff; }
.choice-set[disabled] .choice:has(input:checked) { background: var(--petrol-50); }
.choice-set[disabled] .choice:not(:has(input:checked)) { opacity: .55; }

/* The trail: plain sentences on a thread of sea-green rings. */
.trail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font: 400 13.5px/1.55 var(--sans);
  color: var(--muted);
}
.trail > div { position: relative; padding-left: 24px; }
.trail > div::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal-50);
  border: 2px solid var(--signal);
}
.trail > div.quiet { padding-left: 0; }
.trail > div.quiet::before { display: none; }

/* People and roles — the selected person's role blocks. */
.role-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--rule);
}
.role-block-name { font: 600 14.5px var(--sans); color: var(--ink); }
.role-block-scope { font: 400 13px/1.55 var(--sans); color: var(--soft); margin-top: 3px; }
.role-block-action {
  font: 500 13px var(--sans);
  color: var(--soft);
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
}
.role-block-action.is-revoke { color: var(--danger-text); cursor: pointer; }

.objection-panel {
  background: var(--band);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-top: 22px;
}
.objection-q { font: 600 14px var(--sans); color: var(--ink); margin-bottom: 6px; }
.objection-a { font: 400 13.5px/1.65 var(--sans); color: var(--muted); text-wrap: pretty; }

/* Certificates — the live preview, a sheet with a soft shadow. */
.certificate {
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 42px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.certificate-congress { font: 400 13.5px var(--sans); color: var(--faint); letter-spacing: .02em; }
.certificate-hairline { width: 44px; height: 2px; border-radius: 2px; background: var(--gradient); }
.certificate-preamble { font: 400 15px var(--sans); color: var(--muted); }
.certificate-name { font: 400 34px var(--serif); color: var(--ink); }
.certificate-citation {
  font: 400 15px/1.7 var(--sans);
  color: var(--muted);
  max-width: 340px;
  text-wrap: pretty;
}
.certificate-place { font: 400 14px var(--sans); color: var(--soft); margin-top: 6px; }
.certificate-signatures {
  display: flex;
  gap: 44px;
  margin-top: 22px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}
.signature-rule { width: 130px; height: 1px; background: var(--field-border); margin-bottom: 7px; }
.signature-label { font: 400 12.5px var(--sans); color: var(--soft); }

.issue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.issue-name { font: 600 14.5px var(--sans); color: var(--ink); }
.issue-meta { font: 400 13px var(--sans); color: var(--faint); margin-top: 2px; }
.issue-state { font: 400 14px var(--sans); color: var(--muted); }
.issue-state.is-held { color: var(--attention-text); }

/* --- public page editor -------------------------------------------------- */

.editor-grid { flex: 1; display: grid; grid-template-columns: 340px 1fr; }
.editor-rail {
  border-right: 1px solid var(--rule);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
}
.editor-preview {
  padding: 24px;
  background: var(--band);
  display: flex;
  flex-direction: column;
}
.preview-page {
  flex: 1;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- the public event page ----------------------------------------------- */

.public-hero { padding: 40px 40px 34px; border-bottom: 1px solid var(--rule); }
.public-dateline { font: 500 13.5px var(--sans); color: var(--petrol); margin-bottom: 12px; }
.public-headline {
  font: 400 44px/1.08 var(--serif);
  color: var(--ink);
  letter-spacing: -.02em;
  max-width: 620px;
  margin: 0 0 18px;
  text-wrap: balance;
}
.public-cols { display: grid; grid-template-columns: 1fr 1fr; flex: 1; }
.public-cols > * + * { border-left: 1px solid var(--rule); }
.public-col { padding: 28px 32px; }
.public-col-head { font: 500 21px var(--serif); color: var(--ink); margin-bottom: 14px; }
.date-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
  font: 400 13.5px var(--sans);
  color: var(--muted);
}
.date-row:last-child { border-bottom: 0; }
.speaker-name { font: 600 14px var(--sans); color: var(--ink); }
.speaker-affiliation { font: 400 13px var(--sans); color: var(--faint); }

/* --- reviewer console ---------------------------------------------------- */
/* Full width, no sidebar. The blind is stated in words, not shown as a badge. */

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--rule);
  background: #fff;
  flex-wrap: wrap;
}
.console-blind { font: 500 13.5px var(--sans); color: var(--muted); }
.console-progress { font: 400 13.5px var(--sans); color: var(--soft); }

.console-body { display: flex; min-height: calc(100vh - 58px); align-items: stretch; }
.reading {
  flex: 1.3;
  min-width: 0;
  background: var(--band);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.reading-number { font: 500 13.5px var(--sans); color: var(--soft); margin-bottom: 4px; }
.reading-title { font: 400 30px/1.2 var(--serif); color: var(--ink); max-width: 680px; letter-spacing: -.01em; }
.document {
  flex: 1;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: repeating-linear-gradient(135deg, #fff 0 12px, var(--paper-alt) 12px 24px);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 20px;
}
.document-card {
  text-align: center;
  background: #fff;
  padding: 18px 26px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.document-card-title { font: 500 20px var(--serif); color: var(--ink); }
.document-card-meta { font: 400 13px var(--sans); color: var(--faint); margin-top: 4px; }

.assessment {
  width: 440px;
  flex: none;
  background: #fff;
  border-left: 1px solid var(--rule);
  padding: 26px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.assessment-head { font: 400 30px/1.15 var(--serif); color: var(--ink); margin: 0 0 3px; letter-spacing: -.01em; }
.criterion-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 9px;
}
.criterion-name { font: 600 14.5px var(--sans); color: var(--ink); }
.criterion-weight { font: 400 13px var(--sans); color: var(--faint); }

/* Segments joined inside one 1px line, radius 10. Radio-group semantics. */
.scale {
  display: flex;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.scale button {
  flex: 1;
  min-width: 0;   /* the segments share the line evenly, whatever they say */
  text-align: center;
  padding: 10px 0;
  font: 500 12.5px var(--sans);
  color: var(--soft);
  background: #fff;
  border: 0;
  border-right: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color 140ms var(--ease);
}
.scale button:last-child { border-right: 0; }
.scale button:hover { background: var(--band); color: var(--ink); }
.scale button[aria-checked="true"] {
  background: var(--petrol);
  border-right-color: var(--petrol);
  color: #fff;
  font-weight: 600;
}
.scale button:focus-visible { outline-offset: -3px; }

/* --- author submission wizard -------------------------------------------- */

.submit-card {
  width: 800px;
  max-width: 100%;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.submit-head { padding: 28px 36px 22px; border-bottom: 1px solid var(--rule); }
.submit-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font: 400 13.5px var(--sans);
  color: var(--soft);
}
.submit-title {
  font: 400 36px/1.12 var(--serif);
  color: var(--ink);
  letter-spacing: -.015em;
  margin: 0;
}
.step-rule { display: flex; gap: 6px; margin-top: 18px; }
.step-rule > span { flex: 1; height: 5px; border-radius: 99px; background: var(--deep-band); }
.step-rule > span.is-done { background: var(--gradient); }

.submit-body {
  padding: 28px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: #fff;
}
.submit-section { border-top: 1px solid var(--rule); padding-top: 24px; }
.submit-section:first-child { border-top: 0; padding-top: 0; }
.submit-section-head { font: 500 23px/1.2 var(--serif); color: var(--ink); margin: 0 0 6px; }

.coauthor-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}
.coauthor-status { font: 400 13px var(--sans); color: var(--soft); padding: 0 4px; }

/* A declared conflict: what kind, and who or which institute. */
.declaration-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 10px;
  align-items: center;
}
.coauthor-add {
  border: 1px dashed var(--field-border);
  border-radius: var(--r);
  padding: 11px 13px;
  font: 500 13.5px var(--sans);
  color: var(--soft);
  text-align: center;
  background: none;
  width: 100%;
  cursor: pointer;
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}
.coauthor-add:hover { border-color: var(--petrol); color: var(--petrol); }

/* The anonymity finding: headed by the finding itself, never by a status.
   Amber, because the author has to act on it. */
.finding {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--attention-25);
  border: 1px solid var(--attention-line);
  border-radius: var(--r-md);
  padding: 13px 16px;
}
.finding-quote { font-family: var(--serif); font-style: italic; font-size: 16px; }
.finding-text { font: 400 14px/1.6 var(--sans); color: var(--ink); }
.finding-action {
  font: 600 13.5px var(--sans);
  color: var(--attention-deep);
  margin-top: 7px;
  display: inline-block;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.check-passed { display: flex; gap: 12px; align-items: flex-start; }
.check-passed .dot { background: var(--signal); margin-top: 8px; }
.check-passed span { font: 400 14px/1.6 var(--sans); color: var(--muted); }

.submit-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  flex-wrap: wrap;
}

/* The page the "open page twelve" link deep-links to. */
.page-view {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px 34px;
  font: 400 15px/1.8 var(--sans);
  color: var(--body);
  text-wrap: pretty;
}
.page-view mark { background: #fbe3bd; color: var(--ink); padding: 1px 2px; border-radius: 3px; }

/* --- verification -------------------------------------------------------- */

.verify-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* --- responsive ---------------------------------------------------------- */
/* Below about 1000 the sidebar collapses to a top bar and two-column bodies
   stack. */

@media (max-width: 1000px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 14px 0;
    gap: 12px;
  }
  .nav { flex-direction: row; overflow-x: auto; padding: 0 14px 2px; gap: 4px; }
  .nav a { white-space: nowrap; }
  .sidebar-user { margin-top: 0; }
  /* The sidebar is a top bar here, so the menu opens downward. */
  .user-menu-panel { bottom: auto; top: calc(100% + 8px); right: auto; min-width: 240px; }
  .sidebar-user-inner { border-top: 0; padding-top: 0; }
  .content { padding: 22px 16px 32px; gap: 18px; }
  .page-title { font-size: 34px; }
  /* The title keeps its width; the actions drop beneath it. */
  .page-head { flex-wrap: wrap; align-items: flex-start; }
  /* The console's top bar: wordmark, session, the blind sentence and the
     progress wrap onto a second line rather than run off the screen. */
  .console-bar { flex-wrap: wrap; padding: 14px 16px; gap: 8px 22px; }
  .console-bar > .row { flex-wrap: wrap; }
  .two-col, .two-col-14, .two-col-115, .two-col-125, .two-col-105, .two-col-equal,
  .editor-grid, .public-cols { grid-template-columns: 1fr; }
  .two-col > * { padding: 18px 16px; }
  .editor-rail { border-right: 0; border-bottom: 1px solid var(--rule); }
  .public-cols > * + * { border-left: 0; border-top: 1px solid var(--rule); }
  .console-body { flex-direction: column; min-height: 0; }
  .reading { padding: 22px 16px; }
  .assessment { width: auto; border-left: 0; border-top: 1px solid var(--rule); padding: 22px 16px; }
  .session-row { grid-template-columns: 1fr; gap: 6px; padding: 16px; }
  .setup-step { grid-template-columns: 1fr; gap: 16px; }
  .choice-grid.is-three { grid-template-columns: 1fr; }
  .public-hero { padding: 28px 18px 24px; }
  .public-headline { font-size: 34px; }
  .public-col { padding: 22px 18px; }
}

@media (max-width: 720px) {
  .form-row, .choice-grid, .deadline-row { grid-template-columns: 1fr; }
}

/* The submission card is 800px wide, so it keeps its layout well below the
   point at which the two-column app screens have to stack. */
@media (max-width: 820px) {
  .submit-card { margin: 0; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .submit-head, .submit-body { padding-left: 18px; padding-right: 18px; }
  .submit-title { font-size: 30px; }
}

@media (max-width: 640px) {
  .coauthor-row, .declaration-row { grid-template-columns: 1fr; }
  .coauthor-status { padding-bottom: 6px; }
}

/* --- setting up an event (steps two to five) and the fee editor ----------- */

/* The sidebar's way back into an unfinished setup: a line, not a card. */
.setup-link {
  display: block;
  margin: 0 14px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px dashed var(--petrol-100);
  font: 600 13px var(--sans);
  color: var(--petrol);
  transition: background-color 140ms var(--ease);
}
.setup-link:hover { background: var(--petrol-50); }
.setup-link span { display: block; font-weight: 400; color: var(--faint); margin-top: 2px; }

.lead-note {
  font: 400 15.5px/1.65 var(--sans);
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 640px;
  text-wrap: pretty;
}
a.wizard-step { color: inherit; border-radius: var(--r-sm); margin: -4px -8px; padding: 4px 8px;
                transition: background-color 140ms var(--ease); }
a.wizard-step:hover { background: var(--petrol-50); }

.fee-table { display: flex; flex-direction: column; }
.fee-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .8fr)) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
}
.fee-head {
  align-items: end;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--rule);
  font: 500 12.5px var(--sans);
  color: var(--soft);
}
.fee-until { display: block; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.fee-amount { text-align: right; font-variant-numeric: tabular-nums; }
.fee-name { font: 600 14px var(--sans); color: var(--ink); padding-top: 8px; }
.fee-fixed { font: 400 14px var(--sans); color: var(--body); padding-top: 8px;
             font-variant-numeric: tabular-nums; }
.fee-meta { font: 400 12.5px var(--sans); color: var(--faint); margin-top: 2px; }
.fee-table .coauthor-add { margin-top: 10px; }
.fee-notes { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; max-width: 760px; }
.fee-notes .field-hint { margin: 0; }

@media (max-width: 720px) {
  .fee-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .fee-head { display: none; }
  .fee-row > [data-label]::before {
    content: attr(data-label);
    display: block;
    font: 500 12.5px var(--sans);
    color: var(--faint);
    margin-bottom: 2px;
  }
  .fee-amount { text-align: left; }
}

/* --- overview and assignment (D) ----------------------------------------- */
.overview-note { margin-top: 16px; }
.overview-actions { margin-top: 20px; }
.blocked-actions { margin-top: 16px; flex-wrap: wrap; }
.blocked-actions .select { width: auto; padding: 9px 12px; font-size: 13.5px; }
.note.is-tight { margin: 0 0 14px; }
.note.is-flush { margin: 0; }
.note.is-small { font-size: 13px; }
.witness-panel { margin-top: 4px; padding: 20px; background: var(--band); border-radius: var(--r-md); }
.witness-panel .jury-head { background: #fff; }
.witness-panel .jury-row { background: #fff; }
.mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; } .mt-22 { margin-top: 22px; } .mb-22 { margin-bottom: 22px; }

.invite-fields { flex-wrap: wrap; align-items: flex-end; }
.invite-fields > .field { flex: 1 1 180px; }
.two-col > .stack > .card-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.page-head > div:first-child { flex: 1 1 380px; min-width: 0; }
.page-head > .page-actions { flex: 0 1 auto; justify-content: flex-end; }
@media (max-width: 1000px) { .page-head > .page-actions { justify-content: flex-start; } }

/* The public event page: one white sheet on the band. */
body:has(.public-page) { background: var(--band); }
.public-page {
  max-width: var(--page-width);
  margin: 24px auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.public-page .public-hero { padding: 56px 44px 40px; }
.public-page .public-headline { font-size: 52px; max-width: 800px; }
.public-intro { max-width: 620px; margin-bottom: 22px; }
.public-page .public-col { padding: 32px 44px; }
.public-section { padding: 32px 44px; border-top: 1px solid var(--rule); }
.public-section .session-row { padding-left: 0; padding-right: 0; }
.session-row.is-static { grid-template-columns: 1.5fr 1fr; cursor: default; }
.session-row.is-static:hover { background: #fff; }
.public-foot {
  border-top: 1px solid var(--rule);
  padding: 22px 44px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font: 400 13px var(--sans);
  color: var(--faint);
}
@media (max-width: 1000px) {
  .public-page { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .public-page .public-hero { padding: 32px 18px 26px; }
  .public-page .public-headline { font-size: 36px; }
  .public-page .public-col, .public-section { padding: 24px 18px; }
  .public-foot { padding: 20px 18px; }
}

/* --- narrow pages on the band: co-authors' links ---------------------------- */
.verify-page.is-narrow { max-width: 560px; }
.page-title.is-30 { font-size: 30px; }
.lead.is-flush { margin: 0; }
.row.is-wrap { flex-wrap: wrap; }
.is-spaced { margin-top: 16px; }
.coauthor-correct { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

/* The chair's mail (app/mail.html): a message's text, as written. */
.mail-body { white-space: pre-wrap; font: 400 14px/1.6 var(--sans); color: var(--ink); }
.mail-check { margin-top: 10px; }
.mail-check > summary { cursor: pointer; color: var(--petrol); font: 500 14px/1.5 var(--sans); }
.mail-check > .mail-body { margin-top: 8px; }

/* People and roles: where replies to the event's mail go. */
.contact-panel .section-head { margin-bottom: 4px; }
.contact-panel .note.is-flush { max-width: 640px; }
.contact-panel .invite-fields > .field { flex: 0 1 420px; }

/* --- the platform's bar over standalone pages ---------------------------- */
/* templates/_brand_bar.html: the logo over an invitation, a declaration, the
   submission wizard, an error — the console bar's ground, without its words. */

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--rule);
  background: #fff;
}
.brand-bar-link { font: 500 13.5px var(--sans); color: var(--petrol); text-decoration: none; }
.brand-bar-link:hover { text-decoration: underline; }
.brand-bar + .verify-page { padding-top: 56px; }

@media (max-width: 820px) {
  .brand-bar { padding: 12px 18px; }
  .brand-bar + .verify-page { padding-top: 36px; }
}
