/* Representative-only editorial overrides: no card shells in the lower page.
   Loaded after all shared styles so it can flatten the delegate library,
   academic panels and seat query without touching other pages.

   The lower page is built from type, whitespace and 1px rules only. Every
   override is scoped to body.editorial-delegate (set by inner-editorial.js)
   and one of the two real regions, so shared pages never see these rules. */

/* ── Library heading ───────────────────────────────────────────────── */
body.editorial-delegate #background-files .delegate-library-heading {
  align-items: flex-end;
  margin-bottom: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

body.editorial-delegate #background-files .delegate-library-heading .eyebrow {
  margin: 0 0 12px;
  color: var(--fx-accent);
  font: 700 9px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: .2em;
}

body.editorial-delegate #background-files .delegate-library-heading h2 {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(32px, 3.6vw, 48px)/1.22 "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  letter-spacing: -.025em;
}

body.editorial-delegate #background-files .delegate-library-tag {
  align-self: flex-end;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font: 600 9px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: .16em;
}

/* ── Login gate: a ruled typographic row, not a card ───────────────── */
body.editorial-delegate #background-files .delegate-auth-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  text-align: start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
}

body.editorial-delegate #background-files .delegate-auth-entry-copy {
  gap: 5px;
}

body.editorial-delegate #background-files .delegate-auth-entry-kicker {
  color: var(--fx-accent);
  font: 700 9px/1.4 Georgia, "Times New Roman", serif;
  letter-spacing: .22em;
}

body.editorial-delegate #background-files .delegate-auth-entry-title {
  color: var(--ink);
  font: 400 clamp(22px, 2.5vw, 30px)/1.2 "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  letter-spacing: -.015em;
  text-wrap: balance;
}

body.editorial-delegate #background-files .delegate-auth-entry-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

body.editorial-delegate #background-files .delegate-auth-entry-button,
body.editorial-delegate #background-files .delegate-auth-entry[data-state="authed"] .delegate-auth-entry-button {
  position: relative;
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: var(--fx-accent);
  font: 600 11px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: .12em;
  cursor: pointer;
  transform: none;
  transition: color .2s ease;
}

body.editorial-delegate #background-files .delegate-auth-entry-button::before {
  position: absolute;
  inset: -10px -12px;
  content: "";
}

body.editorial-delegate #background-files .delegate-auth-entry-button:hover,
body.editorial-delegate #background-files .delegate-auth-entry-button:focus-visible,
body.editorial-delegate #background-files .delegate-auth-entry[data-state="authed"] .delegate-auth-entry-button:hover,
body.editorial-delegate #background-files .delegate-auth-entry[data-state="authed"] .delegate-auth-entry-button:focus-visible {
  background: none;
  color: var(--ink);
  transform: none;
}

body.editorial-delegate #background-files .delegate-auth-entry-button:focus-visible {
  outline: 2px solid var(--fx-accent);
  outline-offset: 5px;
}

body.editorial-delegate #background-files .delegate-auth-entry[data-state="authed"] .delegate-auth-entry-kicker {
  color: var(--fx-accent);
}

/* ── Large delegate sign-in guide ─────────────────────────────────── */
body.editorial-delegate #background-files .delegate-login-guide {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(210px, auto);
  align-items: center;
  gap: clamp(26px, 4vw, 58px);
  min-height: 360px;
  padding: 36px 0 42px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 8% 50%, rgba(167, 37, 48, .09), transparent 58%);
}

body.editorial-delegate #background-files .delegate-login-guide-lock {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--fx-accent) 55%, transparent);
  border-radius: 50%;
  color: var(--fx-accent);
  background: color-mix(in srgb, var(--fx-accent) 6%, transparent);
}

body.editorial-delegate #background-files .delegate-login-guide-lock svg {
  width: 40px;
  height: 40px;
}

body.editorial-delegate #background-files .delegate-login-guide-copy {
  min-width: 0;
}

body.editorial-delegate #background-files .delegate-login-guide-copy .eyebrow {
  margin: 0 0 14px;
  color: var(--fx-accent);
  font: 700 9px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: .2em;
}

body.editorial-delegate #background-files .delegate-login-guide-copy h1,
body.editorial-delegate #background-files .delegate-login-guide-copy h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font: 400 clamp(48px, 6.4vw, 84px)/1.02 "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}

body.editorial-delegate #background-files .delegate-login-guide-body {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

body.editorial-delegate #background-files .delegate-login-guide-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  opacity: .8;
}

body.editorial-delegate #background-files .delegate-login-guide-actions {
  display: flex;
  min-width: 210px;
  flex-direction: column;
  align-items: stretch;
  gap: 15px;
}

body.editorial-delegate #background-files .delegate-login-guide-button {
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid #a72530;
  border-radius: 2px;
  color: #fff7f1;
  background: #a72530;
  font: 600 12px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

body.editorial-delegate #background-files .delegate-login-guide-button:hover {
  background: #781923;
  border-color: #781923;
  transform: translateY(-1px);
}

body.editorial-delegate #background-files .delegate-login-guide-button:focus-visible {
  outline: 2px solid var(--fx-accent);
  outline-offset: 4px;
}

body.editorial-delegate #background-files .delegate-login-guide[data-state="authed"] .delegate-login-guide-button {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

body.editorial-delegate #background-files .delegate-login-guide[data-state="authed"] .delegate-login-guide-button:hover {
  border-color: var(--fx-accent);
  background: color-mix(in srgb, var(--fx-accent) 8%, transparent);
  transform: none;
}

body.editorial-delegate #background-files .delegate-login-guide-jump {
  align-self: center;
  padding-bottom: 3px;
  border-bottom: 1px solid color-mix(in srgb, var(--fx-accent) 55%, transparent);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-decoration: none;
}

body.editorial-delegate #background-files .delegate-login-guide-jump:hover {
  color: var(--fx-accent);
}

body.editorial-delegate #background-files .delegate-login-guide-footnote {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 14px 0 0;
  color: var(--muted);
  font: 600 9px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: .16em;
  opacity: .65;
}

@media (max-width: 900px) {
  body.editorial-delegate #background-files .delegate-login-guide {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
    padding: 30px 0 34px;
  }

  body.editorial-delegate #background-files .delegate-login-guide-lock {
    width: 72px;
    height: 72px;
  }

  body.editorial-delegate #background-files .delegate-login-guide-lock svg {
    width: 30px;
    height: 30px;
  }

  body.editorial-delegate #background-files .delegate-login-guide-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  body.editorial-delegate #background-files .delegate-login-guide-button {
    flex: 1;
  }
}

@media (max-width: 600px) {
  body.editorial-delegate #background-files .delegate-login-guide {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0 28px;
  }

  body.editorial-delegate #background-files .delegate-login-guide-lock {
    width: 58px;
    height: 58px;
  }

  body.editorial-delegate #background-files .delegate-login-guide-lock svg {
    width: 24px;
    height: 24px;
  }

  body.editorial-delegate #background-files .delegate-login-guide-copy h1,
  body.editorial-delegate #background-files .delegate-login-guide-copy h2 {
    font-size: clamp(42px, 12vw, 62px);
  }

  body.editorial-delegate #background-files .delegate-login-guide-body {
    font-size: 14px;
    line-height: 1.9;
  }

  body.editorial-delegate #background-files .delegate-login-guide-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }

  body.editorial-delegate #background-files .delegate-login-guide-button {
    width: 100%;
  }

  body.editorial-delegate #background-files .delegate-login-guide-footnote {
    justify-content: flex-start;
  }
}

/* ── Academic resources heading: no old MEMBER ACCESS bar ─────────── */
body.editorial-delegate #background-files .delegate-resources {
  margin-top: 30px;
}

body.editorial-delegate #background-files .delegate-resources-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 18px;
}

body.editorial-delegate #background-files .delegate-resources-heading .eyebrow {
  margin: 0 0 10px;
  color: var(--fx-accent);
  font: 700 9px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: .2em;
}

body.editorial-delegate #background-files .delegate-resources-heading h2 {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(28px, 3.2vw, 42px)/1.2 "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  letter-spacing: -.025em;
}

body.editorial-delegate #background-files .delegate-resources-heading > p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: end;
}

/* ── 1912 academic training video ────────────────────────────────── */
body.editorial-delegate #panel-london .academic-video {
  margin: 18px 0 28px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

body.editorial-delegate #panel-london .academic-video-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

body.editorial-delegate #panel-london .academic-video-heading span {
  color: var(--fx-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

body.editorial-delegate #panel-london .academic-video-heading small {
  color: var(--muted);
  font-size: 10px;
}

body.editorial-delegate #panel-london .academic-video video {
  display: block;
  width: 100%;
  max-height: 540px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #090407;
  object-fit: contain;
}

body.editorial-delegate #panel-london .academic-video video a {
  display: block;
  padding: 12px;
  color: var(--fx-accent);
  font-size: 12px;
}

@media (max-width: 720px) {
  body.editorial-delegate #background-files .delegate-resources-heading {
    display: block;
  }

  body.editorial-delegate #background-files .delegate-resources-heading > p {
    margin-top: 12px;
    text-align: start;
  }

  body.editorial-delegate #panel-london .academic-video video {
    max-height: none;
  }
}

/* ── Four committee rows: number / title / topic / plus ────────────── */
body.editorial-delegate #background-files .delegate-choices {
  display: block;
  margin: 0;
  border: 0;
}

body.editorial-delegate #background-files .delegate-choice {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 40px;
  grid-template-areas:
    "number title plus"
    "number topic plus";
  column-gap: 24px;
  row-gap: 7px;
  align-items: start;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 25px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  text-align: start;
  font: inherit;
  cursor: pointer;
  transform: none;
  transition: border-color .25s ease;
}

body.editorial-delegate #background-files .delegate-choice:hover {
  border-bottom-color: var(--fx-accent);
  background: none;
  box-shadow: none;
  transform: none;
}

body.editorial-delegate #background-files .delegate-choice[aria-expanded="true"] {
  outline: 0;
  border-bottom-color: var(--fx-accent);
  background: none;
}

body.editorial-delegate #background-files .delegate-choice:focus-visible {
  outline: 2px solid var(--fx-accent);
  outline-offset: 4px;
}

body.editorial-delegate #background-files .delegate-choice .choice-number {
  grid-area: number;
  align-self: start;
  padding-top: 8px;
  color: var(--muted);
  font: 600 10px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: .16em;
}

body.editorial-delegate #background-files .delegate-choice .choice-title {
  grid-area: title;
  padding: 0;
  color: var(--ink);
  font: 400 clamp(22px, 2.1vw, 30px)/1.3 "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  transition: color .25s ease;
}

body.editorial-delegate #background-files .delegate-choice .choice-topic {
  grid-area: topic;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.editorial-delegate #background-files .delegate-choice .choice-plus {
  position: static;
  inset: auto;
  grid-area: plus;
  align-self: center;
  justify-self: center;
  color: var(--muted);
  font: 300 30px/1 Georgia, "Times New Roman", serif;
  transition: color .25s ease, transform .3s ease;
}

body.editorial-delegate #background-files .delegate-choice:hover .choice-title,
body.editorial-delegate #background-files .delegate-choice[aria-expanded="true"] .choice-title,
body.editorial-delegate #background-files .delegate-choice:hover .choice-plus,
body.editorial-delegate #background-files .delegate-choice[aria-expanded="true"] .choice-plus {
  color: var(--fx-accent);
}

body.editorial-delegate #background-files .delegate-choice[aria-expanded="true"] .choice-plus {
  transform: rotate(45deg) scale(.72);
}

body.editorial-delegate #background-files .delegate-choice .choice-action {
  display: none;
}

/* ── Expanded academic panel: one top rule, no document card ───────── */
body.editorial-delegate #background-files .delegate-panel.delegate-document {
  display: block;
  min-height: 0;
  margin: 24px 0 0;
  padding: 28px 0 30px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  scroll-margin-top: 140px;
}

body.editorial-delegate #background-files .delegate-panel-heading {
  align-items: center;
  gap: 20px;
  margin: 0 0 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

body.editorial-delegate #background-files .delegate-panel .delegate-panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(24px, 2.6vw, 32px)/1.35 "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  letter-spacing: -.015em;
  text-wrap: balance;
}

body.editorial-delegate #background-files .delegate-panel-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font: 300 30px/1 Georgia, "Times New Roman", serif;
  cursor: pointer;
  transition: color .2s ease;
}

body.editorial-delegate #background-files .delegate-panel-close:hover,
body.editorial-delegate #background-files .delegate-panel-close:focus-visible {
  border: 0;
  background: none;
  color: var(--ink);
}

body.editorial-delegate #background-files .delegate-panel-close:focus-visible {
  outline: 2px solid var(--fx-accent);
  outline-offset: 2px;
}

/* Lock / status note: a ruled line, never a pill. */
body.editorial-delegate #background-files .delegate-access-note[hidden] {
  display: none !important;
}

body.editorial-delegate #background-files .delegate-access-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--ink);
}

body.editorial-delegate #background-files .delegate-access-icon {
  display: inline-flex;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--fx-accent);
}

body.editorial-delegate #background-files .delegate-access-icon svg {
  width: 16px;
  height: 16px;
}

body.editorial-delegate #background-files .delegate-access-copy strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

body.editorial-delegate #background-files .delegate-access-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

body.editorial-delegate #background-files .delegate-access-action {
  position: relative;
  min-height: 0;
  margin-inline-start: 0;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: var(--fx-accent);
  font: 600 10px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
}

body.editorial-delegate #background-files .delegate-access-action::before {
  position: absolute;
  inset: -8px -9px;
  content: "";
}

body.editorial-delegate #background-files .delegate-access-action:hover,
body.editorial-delegate #background-files .delegate-access-action:focus-visible {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--ink);
}

body.editorial-delegate #background-files .delegate-access-action:focus-visible {
  outline: 2px solid var(--fx-accent);
  outline-offset: 4px;
}

/* Real procedure artwork stays, without a decorative card around it. */
body.editorial-delegate #background-files .procedure-frame {
  margin: 22px 0 0;
  padding: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

body.editorial-delegate #background-files .procedure-frame img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

body.editorial-delegate #background-files .procedure-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

body.editorial-delegate #background-files .procedure-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 12px 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

body.editorial-delegate #background-files .procedure-files a {
  color: var(--fx-accent);
  text-underline-offset: 4px;
}

body.editorial-delegate #background-files .procedure-files a:hover {
  color: var(--ink);
}

body.editorial-delegate #background-files .procedure-files a.is-locked {
  color: var(--muted);
  opacity: 1;
}

/* ── Academic files: a ruled download list ────────────────────────── */
body.editorial-delegate #background-files .academic-download-grid {
  display: block;
  margin: 0;
}

body.editorial-delegate #background-files .academic-download {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 20px;
  gap: 18px;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  text-decoration: none;
  transform: none;
  transition: border-color .2s ease;
}

body.editorial-delegate #background-files .academic-download:hover {
  border-bottom-color: var(--fx-accent);
  background: none;
  box-shadow: none;
  transform: none;
}

body.editorial-delegate #background-files .academic-download:focus-visible {
  outline: 2px solid var(--fx-accent);
  outline-offset: 2px;
}

body.editorial-delegate #background-files .academic-download .academic-file-type {
  grid-column: 1;
  color: var(--muted);
  font: 600 9px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: .16em;
  opacity: .8;
}

body.editorial-delegate #background-files .academic-download strong {
  grid-column: 2;
  min-width: 0;
  color: var(--ink);
  font: 500 16px/1.5 "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  overflow-wrap: anywhere;
}

body.editorial-delegate #background-files .academic-download .academic-file-download {
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--fx-accent);
  font: 500 10px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
  white-space: nowrap;
}

body.editorial-delegate #background-files .academic-download:hover strong {
  color: var(--fx-accent);
}

body.editorial-delegate #background-files .academic-download:hover .academic-file-download {
  color: var(--ink);
}

body.editorial-delegate #background-files .academic-download.is-locked {
  cursor: not-allowed;
  opacity: 1;
}

body.editorial-delegate #background-files .academic-download.is-locked strong,
body.editorial-delegate #background-files .academic-download.is-locked .academic-file-download {
  color: var(--muted);
}

body.editorial-delegate #background-files .academic-download .delegate-file-lock {
  position: static;
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  grid-column: 4;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
}

body.editorial-delegate #background-files .academic-download .delegate-file-lock svg {
  width: 14px;
  height: 14px;
}

body.editorial-delegate #background-files .delegate-library-footnote {
  margin: 20px 0 0;
  color: var(--muted);
}

/* ── Seat query: form and result as two typographic columns ────────── */
body.editorial-delegate #seat-allocation .seat-query-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: stretch;
  gap: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

body.editorial-delegate #seat-allocation .seat-card {
  position: relative;
  isolation: auto;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  background-image: none;
  box-shadow: none;
}

body.editorial-delegate #seat-allocation .seat-card::before,
body.editorial-delegate #seat-allocation .seat-card:hover::before,
body.editorial-delegate #seat-allocation .seat-card:focus-within::before {
  content: none;
  display: none;
}

body.editorial-delegate #seat-allocation .seat-card-glow,
body.editorial-delegate #seat-allocation .seat-sheen {
  display: none;
}

body.editorial-delegate #seat-allocation .seat-form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  padding-block: 30px 34px;
  padding-inline: 0 64px;
}

body.editorial-delegate #seat-allocation .seat-form-head {
  margin: 0 0 26px;
}

body.editorial-delegate #seat-allocation .seat-form-index {
  color: var(--fx-accent);
  font-size: 10px;
  letter-spacing: .2em;
}

body.editorial-delegate #seat-allocation .seat-form-rule {
  height: 1px;
  background: var(--line);
}

body.editorial-delegate #seat-allocation .seat-form-code {
  color: var(--muted);
  opacity: .7;
}

/* Logged-out gate: a ruled line above the fields. */
body.editorial-delegate #seat-allocation .seat-auth-gate[hidden] {
  display: none !important;
}

body.editorial-delegate #seat-allocation .seat-auth-gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 26px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
}

body.editorial-delegate #seat-allocation .seat-auth-lock {
  display: inline-flex;
  width: auto;
  height: auto;
  flex: none;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--fx-accent);
  opacity: 1;
}

body.editorial-delegate #seat-allocation .seat-auth-lock svg {
  width: 16px;
  height: 16px;
}

body.editorial-delegate #seat-allocation .seat-auth-copy strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

body.editorial-delegate #seat-allocation .seat-auth-copy small {
  color: var(--muted);
  font-size: 10px;
}

body.editorial-delegate #seat-allocation .seat-auth-login {
  position: relative;
  min-height: 0;
  margin-inline-start: auto;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: var(--fx-accent);
  font: 600 10px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
}

body.editorial-delegate #seat-allocation .seat-auth-login::before {
  position: absolute;
  inset: -10px -10px;
  content: "";
}

body.editorial-delegate #seat-allocation .seat-auth-login:hover,
body.editorial-delegate #seat-allocation .seat-auth-login:focus-visible {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--ink);
}

body.editorial-delegate #seat-allocation .seat-auth-login:focus-visible {
  outline: 2px solid var(--fx-accent);
  outline-offset: 4px;
}

/* Underline fields: label above, input on the rule. */
body.editorial-delegate #seat-allocation .seat-form.is-locked .seat-field {
  opacity: 1;
}

body.editorial-delegate #seat-allocation .seat-field {
  position: relative;
  display: block;
  margin: 0 0 24px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  transition: border-color .25s ease;
}

body.editorial-delegate #seat-allocation .seat-field:hover {
  border-color: var(--line);
}

body.editorial-delegate #seat-allocation .seat-field:focus-within {
  border-bottom-color: var(--fx-accent);
  background: none;
  box-shadow: none;
}

body.editorial-delegate #seat-allocation .seat-field-icon,
body.editorial-delegate #seat-allocation .seat-field-line {
  display: none;
}

body.editorial-delegate #seat-allocation .seat-field-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

body.editorial-delegate #seat-allocation .seat-field label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .85;
}

body.editorial-delegate #seat-allocation .seat-field:focus-within label {
  color: var(--fx-accent);
  opacity: 1;
}

body.editorial-delegate #seat-allocation .seat-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: 400 19px/1.4 "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
}

body.editorial-delegate #seat-allocation .seat-field input::placeholder {
  color: var(--muted);
  opacity: .45;
  font-weight: 400;
}

body.editorial-delegate #seat-allocation .seat-form.is-locked .seat-field input:disabled {
  color: var(--muted);
  opacity: .6;
  -webkit-text-fill-color: var(--muted);
  cursor: not-allowed;
}

/* Text action rather than a red slab. */
body.editorial-delegate #seat-allocation .seat-submit {
  position: relative;
  display: inline-flex;
  width: auto;
  align-self: flex-start;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 4px 0 0;
  padding: 8px 0 6px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: var(--fx-accent);
  font: 600 11px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: .22em;
  text-indent: 0;
  cursor: pointer;
  transform: none;
  transition: color .2s ease;
}

body.editorial-delegate #seat-allocation .seat-submit::before {
  position: absolute;
  inset: -6px -10px;
  content: "";
}

body.editorial-delegate #seat-allocation .seat-submit::after {
  content: none;
  display: none;
}

body.editorial-delegate #seat-allocation .seat-submit:hover {
  background: none;
  color: var(--ink);
  box-shadow: none;
  filter: none;
  transform: none;
}

body.editorial-delegate #seat-allocation .seat-submit:active {
  transform: none;
}

body.editorial-delegate #seat-allocation .seat-submit:focus-visible {
  outline: 2px solid var(--fx-accent);
  outline-offset: 5px;
}

body.editorial-delegate #seat-allocation .seat-submit[disabled] {
  opacity: .35;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

body.editorial-delegate #seat-allocation .seat-submit-arrow {
  transition: transform .2s ease;
}

body.editorial-delegate #seat-allocation .seat-submit:hover .seat-submit-arrow {
  transform: translateX(4px);
}

body.editorial-delegate #seat-allocation .seat-submit-spinner {
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
}

/* Errors and notices: plain text after a hairline. */
body.editorial-delegate #seat-allocation .seat-notice {
  display: none;
  margin: 18px 0 0;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--fx-accent);
  font-size: 12px;
  line-height: 1.6;
}

body.editorial-delegate #seat-allocation .seat-notice::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  vertical-align: middle;
}

body.editorial-delegate #seat-allocation .seat-notice.show {
  display: block;
}

/* Result: right-hand column behind one hairline; idle is type only. */
body.editorial-delegate #seat-allocation .seat-result {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding-block: 30px 34px;
  padding-inline: 64px 0;
  border: 0;
  border-inline-start: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

body.editorial-delegate #seat-allocation .seat-result-idle,
body.editorial-delegate #seat-allocation .seat-result-body {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
}

body.editorial-delegate #seat-allocation .seat-result-idle {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  text-align: start;
}

body.editorial-delegate #seat-allocation .seat-seal {
  position: static;
  display: block;
  width: auto;
  height: auto;
}

body.editorial-delegate #seat-allocation .seat-seal-ring {
  display: none;
}

body.editorial-delegate #seat-allocation .seat-seal-core {
  color: var(--muted);
  font: 400 clamp(64px, 8vw, 108px)/.9 Georgia, "Times New Roman", serif;
  letter-spacing: .02em;
  text-indent: 0;
  opacity: .24;
}

body.editorial-delegate #seat-allocation .seat-idle-code {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .32em;
  opacity: .6;
}

body.editorial-delegate #seat-allocation .seat-result[data-state="revealed"] .seat-result-idle {
  opacity: 0;
  transform: none;
  pointer-events: none;
}

body.editorial-delegate #seat-allocation .seat-result-body {
  position: relative;
  z-index: 1;
}

body.editorial-delegate #seat-allocation .seat-result-top {
  gap: 12px;
  margin: 0 0 22px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

body.editorial-delegate #seat-allocation .seat-result-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .22em;
  opacity: .8;
}

body.editorial-delegate #seat-allocation .seat-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--fx-accent);
  font-size: 9px;
  letter-spacing: .16em;
  text-indent: 0;
}

body.editorial-delegate #seat-allocation .seat-confirmed::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
}

body.editorial-delegate #seat-allocation .seat-committee {
  color: var(--fx-accent);
  font-size: 12px;
  letter-spacing: .18em;
  opacity: .95;
}

body.editorial-delegate #seat-allocation .seat-name-big {
  margin: 10px 0 8px;
  background: none;
  color: var(--ink);
  font: 400 clamp(56px, 7vw, 88px)/1 "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  letter-spacing: .02em;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

body.editorial-delegate #seat-allocation .seat-role {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

body.editorial-delegate #seat-allocation .seat-status {
  border-color: var(--line);
}

body.editorial-delegate #seat-allocation .seat-status-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .18em;
  opacity: .8;
}

body.editorial-delegate #seat-allocation .seat-meta {
  gap: 24px;
}

body.editorial-delegate #seat-allocation .seat-meta div {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

body.editorial-delegate #seat-allocation .seat-meta span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .18em;
  opacity: .8;
}

body.editorial-delegate #seat-allocation .seat-meta strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ── Mobile: same hierarchy, stacked on hairlines ──────────────────── */
@media (max-width: 960px) {
  body.editorial-delegate #seat-allocation .seat-query-layout {
    grid-template-columns: 1fr;
  }

  body.editorial-delegate #seat-allocation .seat-form {
    padding: 26px 0 30px;
  }

  body.editorial-delegate #seat-allocation .seat-result {
    min-height: 240px;
    padding: 30px 0 36px;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  body.editorial-delegate #background-files .delegate-auth-entry {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0 18px;
  }

  body.editorial-delegate #background-files .delegate-auth-entry-button {
    justify-self: start;
  }

  body.editorial-delegate #background-files .delegate-choice {
    grid-template-columns: 64px minmax(0, 1fr) 30px;
    column-gap: 14px;
    row-gap: 5px;
    padding: 20px 0;
  }

  body.editorial-delegate #background-files .delegate-choice .choice-number {
    padding-top: 5px;
    font-size: 10px;
    letter-spacing: .1em;
    white-space: nowrap;
  }

  body.editorial-delegate #background-files .delegate-choice .choice-title {
    font-size: 21px;
  }

  body.editorial-delegate #background-files .delegate-choice .choice-topic {
    font-size: 11px;
  }

  body.editorial-delegate #background-files .delegate-choice .choice-plus {
    font-size: 24px;
  }

  body.editorial-delegate #background-files .delegate-panel.delegate-document {
    margin-top: 20px;
    padding: 22px 0 26px;
  }

  body.editorial-delegate #background-files .delegate-panel .delegate-panel-heading h2 {
    font-size: 22px;
  }

  body.editorial-delegate #background-files .delegate-access-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body.editorial-delegate #background-files .procedure-frame {
    margin-top: 16px;
  }

  body.editorial-delegate #background-files .academic-download {
    grid-template-columns: 38px minmax(0, 1fr) auto 16px;
    gap: 4px 10px;
    padding: 15px 0;
  }

  body.editorial-delegate #background-files .academic-download strong {
    font-size: 15px;
  }

  body.editorial-delegate #background-files .academic-download .academic-file-download {
    font-size: 10px;
    letter-spacing: 0;
    line-height: 1.5;
    text-align: end;
    white-space: normal;
  }

  body.editorial-delegate #seat-allocation .seat-form {
    padding: 22px 0 26px;
  }

  body.editorial-delegate #seat-allocation .seat-result {
    min-height: 220px;
    padding: 26px 0 30px;
  }

  body.editorial-delegate #seat-allocation .seat-seal-core {
    font-size: 64px;
  }

  body.editorial-delegate #seat-allocation .seat-name-big {
    font-size: 48px;
  }

  body.editorial-delegate #seat-allocation .seat-meta {
    gap: 16px;
  }

  body.editorial-delegate #seat-allocation .seat-meta strong {
    font-size: 14px;
  }

  body.editorial-delegate #seat-allocation .seat-field input {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.editorial-delegate #background-files .delegate-choice,
  body.editorial-delegate #background-files .delegate-choice .choice-title,
  body.editorial-delegate #background-files .delegate-choice .choice-plus,
  body.editorial-delegate #seat-allocation .seat-field,
  body.editorial-delegate #seat-allocation .seat-submit,
  body.editorial-delegate #seat-allocation .seat-submit-arrow {
    transition: none;
  }
}

/* The PDF file blocks are the one intentional card exception. They remain
   compact blocks because a download target benefits from a clear hit area. */
body.editorial-delegate #background-files .academic-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}

body.editorial-delegate #background-files .academic-download {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 18px 18px 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  color: var(--ink);
  text-align: start;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}

body.editorial-delegate #background-files .academic-download:hover {
  border-color: var(--fx-accent);
  background: var(--card);
  box-shadow: none;
  transform: none;
}

body.editorial-delegate #background-files .academic-download .academic-file-type {
  grid-column: auto;
  align-self: stretch;
  padding: 0;
  color: var(--muted);
  font: 600 9px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: .16em;
  text-align: start;
  opacity: .8;
}

body.editorial-delegate #background-files .academic-download strong {
  grid-column: auto;
  align-self: stretch;
  color: var(--ink);
  font: 500 17px/1.5 "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  text-align: start;
  overflow-wrap: anywhere;
}

body.editorial-delegate #background-files .academic-download:hover strong {
  color: var(--fx-accent);
}

body.editorial-delegate #background-files .academic-download .academic-file-download {
  grid-column: auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--fx-accent);
  font: 500 10px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
  white-space: nowrap;
}

body.editorial-delegate #background-files .academic-download .delegate-file-lock {
  position: absolute;
  top: 15px;
  right: 15px;
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
}

body.editorial-delegate #background-files .academic-download.is-locked strong,
body.editorial-delegate #background-files .academic-download.is-locked .academic-file-download {
  color: var(--muted);
}

/* The session's own committee stays visibly current without forcing its panel
   open on login; aria-current is kept in sync by delegate-library.js. */
body.editorial-delegate #background-files .delegate-choice.is-own-committee::before {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 0;
  width: 2px;
  background: var(--committee-accent);
}

body.editorial-delegate #background-files .delegate-choice.is-own-committee .choice-number,
body.editorial-delegate #background-files .delegate-choice.is-own-committee .choice-title,
body.editorial-delegate #background-files .delegate-choice.is-own-committee .choice-plus {
  color: var(--committee-accent);
}

body.editorial-delegate #background-files .delegate-choice.is-own-committee .choice-number::after {
  display: inline-block;
  margin-inline-start: 5px;
  color: var(--committee-accent);
  content: "●";
  font-size: 6px;
  vertical-align: middle;
}

@media (max-width: 720px) {
  body.editorial-delegate #background-files .academic-download-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.editorial-delegate #background-files .academic-download {
    padding: 16px 16px 0;
  }

  body.editorial-delegate #background-files .academic-download .academic-file-download {
    white-space: normal;
  }

  body.editorial-delegate #background-files .delegate-choice.is-own-committee::before {
    top: 20px;
    bottom: 20px;
  }
}
