:root {
  --office-bg: #e5e7e5;
  --office-paper: #f8f8f4;
  --office-paper-2: #eff1ee;
  --office-ink: #202728;
  --office-muted: #586366;
  --office-line: #aeb6b6;
  --office-line-dark: #778386;
  --office-blue: #31535c;
  --office-blue-dark: #223e46;
  --office-red: #9b5047;
  --office-green: #4c6c5d;
  --office-amber: #896b36;
  --office-width: 1180px;
}

html {
  background: var(--office-bg);
}

body.official-site {
  min-height: 100vh;
  overflow-x: hidden !important;
  background:
    linear-gradient(rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 260px),
    var(--office-bg);
  color: var(--office-ink);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.75;
  letter-spacing: .015em;
}

body.official-site *,
body.official-site *::before,
body.official-site *::after {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.official-site a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

body.official-site button,
body.official-site input,
body.official-site select,
body.official-site textarea {
  color: var(--office-ink);
}

body.official-site button,
body.official-site select,
body.official-site input,
body.official-site textarea {
  border-color: var(--office-line-dark) !important;
}

body.official-site button {
  cursor: pointer;
}

body.official-site button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

body.official-site .skip-link,
body.official-site .arena-skip {
  background: var(--office-blue-dark);
  color: #fff;
}

.official-header {
  position: relative !important;
  z-index: 50;
  display: grid !important;
  grid-template-columns: minmax(330px, .9fr) minmax(600px, 1.45fr);
  align-items: stretch;
  width: 100%;
  min-height: 112px;
  padding: 0 max(24px, calc((100vw - var(--office-width)) / 2));
  border: 0 !important;
  border-bottom: 4px solid var(--office-blue-dark) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.official-header .authority {
  position: relative;
  display: grid !important;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 16px;
  align-content: center;
  min-width: 0;
  padding: 14px 22px 13px 0 !important;
  border: 0 !important;
  text-decoration: none;
}

.official-header .authority::before {
  grid-row: 1 / 4;
  width: 54px;
  height: 54px;
  align-self: center;
  background: url("./committee-mark.svg") center / contain no-repeat;
  content: "";
}

.official-header .authority mark {
  display: inline-block;
  width: max-content;
  margin: 0 0 3px !important;
  padding: 1px 7px !important;
  background: var(--office-blue) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .12em;
}

.official-header .authority span {
  overflow: hidden;
  color: var(--office-muted) !important;
  font: 700 8px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
  letter-spacing: .08em !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.official-header .authority strong {
  color: var(--office-ink) !important;
  font-size: clamp(16px, 1.5vw, 22px) !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
}

.official-header > nav {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(86px, 1fr));
  align-self: stretch;
  border-left: 1px solid var(--office-line) !important;
}

.official-header > nav a {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 12px 9px !important;
  border: 0 !important;
  border-right: 1px solid var(--office-line) !important;
  background: transparent !important;
  color: var(--office-ink) !important;
  text-align: left !important;
  text-decoration: none;
}

.official-header > nav a:hover,
.official-header > nav a:focus-visible {
  background: var(--office-paper-2) !important;
}

.official-header > nav a[aria-current="page"] {
  background: var(--office-blue) !important;
  color: #fff !important;
}

.official-header > nav small {
  color: inherit !important;
  font: 700 10px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
  letter-spacing: .14em !important;
  opacity: .72;
}

.official-header > nav b {
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .035em !important;
  white-space: nowrap;
}

body.official-site > main,
body.official-site main.official-main,
body.official-site main.entry-shell,
body.official-site main.equipment-shell,
body.official-site main.calls-shell {
  width: min(var(--office-width), calc(100% - 48px)) !important;
  max-width: var(--office-width) !important;
  margin: 32px auto 80px !important;
  padding: 0 !important;
  background: transparent !important;
}

.eyebrow,
.entry-kicker,
.equipment-kicker,
.calls-kicker,
.arena-kicker,
.section-heading p:first-child,
.document-masthead .document-id,
.rules-document-head > div > p:first-child {
  color: var(--office-blue) !important;
  font: 700 11px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}

.document-masthead,
.operations-head,
.rules-document-head,
.result-hero,
.entry-heading,
.equipment-intro,
.calls-intro,
.arena-intro {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 126px minmax(0, 1.25fr) minmax(290px, .75fr) !important;
  gap: 0 !important;
  min-height: 0 !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 1px solid var(--office-line) !important;
  border-top: 6px solid var(--office-blue-dark) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.rules-document-head {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr) !important;
}

.document-id {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 18px;
  border-right: 1px solid var(--office-line);
  background: var(--office-paper-2);
}

.document-id span,
.document-id small {
  color: var(--office-muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.document-id b {
  overflow-wrap: anywhere;
  color: var(--office-blue-dark);
  font: 700 15px/1.35 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.operations-head__copy,
.result-hero__copy,
.entry-heading__copy,
.equipment-intro__copy,
.calls-intro__copy,
.arena-intro__copy,
.rules-document-head > div:first-child {
  padding: clamp(26px, 4vw, 48px) !important;
  background: transparent !important;
  color: var(--office-ink) !important;
}

.document-masthead h1,
.operations-head h1,
.rules-document-head h1,
.result-hero h1,
.entry-heading h1,
.equipment-intro h1,
.calls-intro h1,
.arena-intro h1 {
  margin: 7px 0 14px !important;
  color: var(--office-ink) !important;
  font-family: inherit !important;
  font-size: clamp(30px, 4.6vw, 58px) !important;
  font-weight: 650 !important;
  line-height: 1.18 !important;
  letter-spacing: .025em !important;
  text-shadow: none !important;
}

.document-masthead h1 span,
.entry-heading h1 span,
.equipment-intro h1 span,
.calls-intro h1 span,
.arena-intro h1 span {
  display: block;
  margin-bottom: 3px;
  color: var(--office-muted) !important;
  font-size: .36em !important;
  font-weight: 650 !important;
  letter-spacing: .08em !important;
}

.operations-head__copy > p:last-child,
.result-hero__copy > p,
.entry-heading__copy > p:last-child,
.equipment-intro__copy > p:last-of-type,
.calls-intro__copy > p:last-of-type,
.arena-intro__lead,
.rules-document-head > div:first-child > p:last-child {
  max-width: 62ch;
  margin: 0 !important;
  color: var(--office-muted) !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
}

.operations-state,
.result-hero__facts,
.equipment-intro__copy > dl,
.calls-intro__copy > dl,
.arena-intro__facts,
.rules-document-head > dl {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: stretch;
  margin: 0 !important;
  border: 0 !important;
  border-left: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
}

.operations-state > div,
.result-hero__facts > div,
.equipment-intro__copy > dl > div,
.calls-intro__copy > dl > div,
.arena-intro__facts > div,
.rules-document-head > dl > div {
  display: grid !important;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 12px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--office-line) !important;
  background: transparent !important;
}

.operations-state dt,
.result-hero__facts dt,
.equipment-intro__copy dt,
.calls-intro__copy dt,
.arena-intro__facts dt,
.rules-document-head dt {
  color: var(--office-muted) !important;
  font: 700 10px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
  letter-spacing: .08em !important;
}

.operations-state dd,
.result-hero__facts dd,
.equipment-intro__copy dd,
.calls-intro__copy dd,
.arena-intro__facts dd,
.rules-document-head dd {
  margin: 0 !important;
  color: var(--office-ink) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.state-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--office-green);
}

.document-updated {
  grid-column: 1 / -1;
  margin: 0 !important;
  padding: 8px 16px !important;
  border-top: 1px solid var(--office-line) !important;
  background: #eceeea !important;
  color: var(--office-muted) !important;
  font: 600 10px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
  letter-spacing: .06em;
}

.section-heading,
.service-counter > header,
.notice-board > header,
.registry > header,
.equipment-ledger > header,
.equipment-registration-head,
.equipment-quick-guide > header,
.arena-workbench__head,
.call-rules > header {
  display: grid !important;
  grid-template-columns: minmax(240px, .85fr) minmax(320px, 1.15fr);
  gap: 28px !important;
  align-items: end;
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 2px solid var(--office-line-dark) !important;
  background: transparent !important;
  color: var(--office-ink) !important;
}

.section-heading h2,
.service-counter h2,
.notice-board h2,
.registry h2,
.equipment-ledger h2,
.equipment-registration-head h2,
.equipment-quick-guide h2,
.arena-workbench__head h2,
.call-rules h2 {
  margin: 2px 0 0 !important;
  color: var(--office-ink) !important;
  font-family: inherit !important;
  font-size: clamp(23px, 3vw, 35px) !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  letter-spacing: .025em !important;
}

.section-heading > p,
.service-counter > header > span,
.notice-board > header > p,
.registry > header > p,
.equipment-ledger > header > p,
.equipment-registration-head > p:last-child,
.equipment-quick-guide > header > p,
.arena-workbench__head > p,
.call-rules > header > p:last-child {
  margin: 0 !important;
  color: var(--office-muted) !important;
  font-size: 13px !important;
}

.service-counter,
.notice-board,
.registry,
.record-section,
.authority-boundary,
.authority-note,
.regulation,
.equipment-ledger,
.equipment-registration-head,
.standard-supply,
.equipment-quick-guide,
.equipment-registry,
.safety-registry,
.equipment-finish,
.call-notice,
.call-registry,
.call-rules,
.calls-finish,
.arena-workbench,
.arena-routes,
.arena-composition,
.entry-archive,
.entry-layout,
.rules-layout,
.revision-register {
  margin-top: 40px !important;
}

.service-counter__grid,
.priority-actions,
.registry-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1px !important;
  padding: 1px !important;
  border: 0 !important;
  background: var(--office-line) !important;
}

.service-counter__grid a,
.priority-actions a,
.registry-grid a {
  display: flex !important;
  flex-direction: column;
  min-height: 138px;
  padding: 20px !important;
  border: 0 !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
  text-decoration: none !important;
}

.service-counter__grid a:hover,
.service-counter__grid a:focus-visible,
.priority-actions a:hover,
.priority-actions a:focus-visible,
.registry-grid a:hover,
.registry-grid a:focus-visible {
  background: #eef1ef !important;
}

.service-counter__grid .route-cue__action,
.priority-actions .route-cue__action,
.registry-grid .route-cue__action {
  margin-top: 9px;
  color: var(--office-blue) !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.service-counter__grid span,
.priority-actions span,
.registry-grid span {
  color: var(--office-blue) !important;
  font: 700 10px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
  letter-spacing: .08em !important;
}

.service-counter__grid b,
.priority-actions strong,
.registry-grid strong {
  margin: 10px 0 7px !important;
  color: var(--office-ink) !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.service-counter__grid small,
.priority-actions small,
.registry-grid small {
  margin-top: auto;
  color: var(--office-muted) !important;
  font-size: 11px !important;
}

.service-counter__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  color: var(--office-blue);
}

.procedure-demo {
  display: grid;
  grid-template-columns: 52px minmax(300px, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--office-line-dark);
  border-left: 5px solid var(--office-blue);
  background: #eef2f0;
}

.procedure-demo > svg {
  width: 44px;
  height: 44px;
  color: var(--office-blue);
}

.procedure-demo p,
.procedure-demo h2 { margin: 0; }
.procedure-demo p { color: var(--office-blue); font: 700 10px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .09em; }
.procedure-demo h2 { margin-top: 3px; font-size: 17px; line-height: 1.45; }
.procedure-demo span { display: block; margin-top: 3px; color: var(--office-muted); font-size: 11px; line-height: 1.7; }
.procedure-demo > a { padding: 10px 13px; border: 1px solid var(--office-blue); color: var(--office-blue-dark); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }

.notice-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}

.notice-list article {
  display: flex !important;
  flex-direction: column;
  min-height: 290px;
  padding: 22px !important;
  border: 1px solid var(--office-line) !important;
  border-top: 4px solid var(--office-blue) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.notice-list article > header {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 10px !important;
  border-bottom: 1px solid var(--office-line) !important;
  background: transparent !important;
}

.notice-list article > header span,
.notice-list time {
  color: var(--office-muted) !important;
  font: 600 10px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
}

.notice-list time {
  margin-top: 11px;
}

.status {
  display: inline-block !important;
  padding: 2px 7px !important;
  border: 1px solid var(--office-line-dark) !important;
  background: transparent !important;
  color: var(--office-muted) !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

.status--current {
  border-color: var(--office-green) !important;
  color: var(--office-green) !important;
}

.notice-list h3 {
  margin: 12px 0 7px !important;
  color: var(--office-ink) !important;
  font-size: 18px !important;
  line-height: 1.55 !important;
}

.notice-list article > p {
  color: var(--office-muted) !important;
  font-size: 13px !important;
}

.notice-list article > a {
  margin-top: auto;
  color: var(--office-blue) !important;
  font-size: 12px !important;
  font-weight: 700;
}

.authority-boundary,
.boundary,
.authority-note {
  display: grid !important;
  grid-template-columns: minmax(220px, .7fr) minmax(380px, 1.4fr) minmax(190px, .6fr) !important;
  gap: 24px !important;
  align-items: center;
  padding: 24px !important;
  border: 1px solid var(--office-line) !important;
  border-left: 6px solid var(--office-blue-dark) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.authority-boundary h2,
.boundary h2,
.authority-note h2 {
  margin: 3px 0 0 !important;
  color: var(--office-ink) !important;
  font-size: 22px !important;
}

.authority-boundary p,
.boundary p,
.authority-note > p {
  margin: 0 !important;
  color: var(--office-muted) !important;
  font-size: 13px !important;
}

.authority-boundary > a,
.boundary > a,
.authority-note__media {
  display: flex !important;
  flex-direction: column;
  padding: 14px !important;
  border: 1px solid var(--office-line-dark) !important;
  background: transparent !important;
  color: var(--office-blue) !important;
  text-decoration: none !important;
}

/* Rules */
.rules-main {
  counter-reset: clause;
}

.rules-alert,
.entry-privacy,
.entry-closed,
.call-notice,
.official-note,
.equipment-ledger__note {
  display: grid !important;
  grid-template-columns: minmax(150px, .35fr) minmax(0, 1.65fr);
  gap: 22px !important;
  align-items: center;
  margin: 16px 0 !important;
  padding: 17px 20px !important;
  border: 1px solid var(--office-line) !important;
  border-left: 5px solid var(--office-blue) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.entry-closed {
  border-left-color: var(--office-red) !important;
}

.rules-alert strong,
.entry-privacy b,
.entry-closed b,
.call-notice > p,
.official-note > span,
.equipment-ledger__note > span {
  color: var(--office-blue-dark) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.rules-alert p,
.entry-privacy p,
.entry-closed p,
.call-notice p,
.official-note p,
.equipment-ledger__note {
  margin: 0 !important;
  color: var(--office-muted) !important;
  font-size: 13px !important;
}

.rules-index,
.equipment-document-nav {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 1px !important;
  margin: 18px 0 28px !important;
  padding: 1px !important;
  border: 0 !important;
  background: var(--office-line) !important;
}

.rules-index a,
.equipment-document-nav a {
  display: flex !important;
  flex-direction: column;
  min-height: 76px;
  padding: 12px !important;
  border: 0 !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
  font-size: 12px !important;
  text-decoration: none !important;
}

.rules-index a span,
.equipment-document-nav a span {
  color: var(--office-blue) !important;
  font: 700 10px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
}

.rules-layout {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px !important;
}

.rules-clause {
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.rules-clause > header {
  display: grid !important;
  grid-template-columns: 82px 1fr;
  align-items: center;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
}

.rules-clause > header span {
  align-self: stretch;
  padding: 16px 12px;
  border-right: 1px solid var(--office-line);
  color: var(--office-blue);
  font: 700 11px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.rules-clause h2 {
  margin: 0 !important;
  padding: 13px 17px !important;
  color: var(--office-ink) !important;
  font-size: 19px !important;
  font-weight: 650 !important;
}

.rules-clause ol {
  margin: 0 !important;
  padding: 18px 22px 20px 52px !important;
}

.rules-clause li {
  padding: 6px 0 !important;
  color: var(--office-muted) !important;
  font-size: 13px !important;
}

.rules-revision {
  margin-top: 40px !important;
  padding: 22px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.rules-revision > header {
  display: grid !important;
  grid-template-columns: 180px 1fr !important;
  align-items: end !important;
  margin-bottom: 12px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--office-line-dark) !important;
}

.rules-revision > header p {
  margin: 0 !important;
  color: var(--office-blue) !important;
  font: 700 10px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
  letter-spacing: .1em !important;
}

.rules-revision h2 {
  margin: 0 !important;
  color: var(--office-ink) !important;
  font-size: 24px !important;
}

.rules-revision [role="table"] {
  border: 1px solid var(--office-line) !important;
}

.rules-revision [role="row"] {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1.3fr) minmax(150px, .7fr) 90px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--office-line) !important;
}

.rules-revision [role="row"]:last-child {
  border-bottom: 0 !important;
}

.rules-revision [role="cell"] {
  padding: 9px 10px !important;
  border-right: 1px solid var(--office-line) !important;
  color: var(--office-muted) !important;
  font-size: 11px !important;
  font-style: normal !important;
}

.rules-revision [role="cell"]:first-child {
  color: var(--office-blue-dark) !important;
}

.rules-revision [role="cell"]:last-child {
  border-right: 0 !important;
  color: var(--office-green) !important;
  font-weight: 700 !important;
}

/* Tournament records */
.result-hero > img,
.result-hero__shade {
  display: none !important;
}

.result-hero__actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  margin-top: 22px !important;
}

.result-hero__actions a,
.match-filters button,
.catalog-next,
.equipment-finish button,
.calls-finish button,
.entry-controls button,
.export-actions button,
.call-summary button,
.build-summary button {
  min-height: 42px;
  padding: 9px 14px !important;
  border: 1px solid var(--office-line-dark) !important;
  background: var(--office-paper) !important;
  color: var(--office-blue-dark) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.result-hero__actions a:first-child,
.match-filters button.is-active,
.catalog-next,
.submit-primary:not(:disabled) {
  background: var(--office-blue) !important;
  color: #fff !important;
}

.status-strip {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0 !important;
  margin: 0 0 40px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
}

.status-strip p {
  display: flex !important;
  align-items: baseline;
  gap: 9px;
  margin: 0 !important;
  padding: 14px !important;
  border-right: 1px solid var(--office-line) !important;
  color: var(--office-muted) !important;
  font-size: 11px !important;
}

.status-strip p:last-child {
  border-right: 0 !important;
}

.status-strip span {
  color: var(--office-blue-dark) !important;
  font: 700 22px/1 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
}

.bracket-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
}

.bracket-round {
  padding: 0 !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
}

.bracket-round > h3 {
  margin: 0 !important;
  padding: 12px 15px !important;
  border-bottom: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-muted) !important;
  font: 700 11px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
}

.bracket-match {
  position: relative !important;
  margin: 0 !important;
  padding: 15px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--office-line) !important;
  background: transparent !important;
  color: var(--office-ink) !important;
}

.bracket-match:last-child {
  border-bottom: 0 !important;
}

.bracket-match__id,
.bracket-match__method,
.entry-class-badge {
  color: var(--office-muted) !important;
  font-size: 10px !important;
}

.bracket-match__pair {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 !important;
  font-size: 13px !important;
}

.bracket-match__winner {
  color: var(--office-blue-dark) !important;
  font-size: 14px !important;
}

.commitment {
  display: flex !important;
  gap: 12px;
  margin: 12px 0 0 !important;
  padding: 10px 14px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-muted) !important;
  font-size: 11px !important;
}

.roster-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px !important;
}

.roster-card {
  display: grid !important;
  grid-template-columns: 145px 1fr !important;
  min-width: 0;
  overflow: hidden !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.roster-card__visual {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  width: auto !important;
  min-width: 0 !important;
  min-height: 100% !important;
  aspect-ratio: auto !important;
  padding: 18px !important;
  border-right: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-blue-dark) !important;
}

.roster-card__visual img {
  display: none !important;
}

.roster-card__record-code {
  overflow-wrap: anywhere;
  font: 700 13px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.roster-card__rank {
  position: static !important;
  display: inline-block !important;
  width: max-content;
  padding: 3px 7px !important;
  border: 1px solid var(--office-line-dark) !important;
  background: transparent !important;
  color: var(--office-muted) !important;
  font-size: 11px !important;
}

.roster-card__rank.is-champion {
  border-color: var(--office-red) !important;
  color: var(--office-red) !important;
}

.roster-card__copy {
  min-width: 0;
  padding: 18px !important;
  background: transparent !important;
  color: var(--office-ink) !important;
}

.roster-card__code,
.roster-card__partner,
.roster-card__style {
  margin: 4px 0 !important;
  color: var(--office-muted) !important;
  font-size: 11px !important;
}

.roster-card__title h3 {
  margin: 3px 0 8px !important;
  color: var(--office-ink) !important;
  font-size: 21px !important;
}

.roster-card__facts {
  margin: 14px 0 0 !important;
  border-top: 1px solid var(--office-line) !important;
}

.roster-card__facts > div {
  display: grid !important;
  grid-template-columns: 85px 1fr;
  gap: 10px;
  padding: 7px 0 !important;
  border-bottom: 1px dotted var(--office-line) !important;
  font-size: 11px !important;
}

.roster-card__facts dt {
  color: var(--office-muted) !important;
}

.roster-card__facts dd {
  margin: 0 !important;
  color: var(--office-ink) !important;
}

.roster-card__loadout {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px !important;
  margin: 13px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}

.roster-card__loadout li {
  padding: 3px 7px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  font-size: 10px !important;
}

.roster-card__loadout li b {
  color: var(--office-blue-dark) !important;
}

.roster-card__loadout li span {
  color: var(--office-muted) !important;
}

.record-section {
  padding: 40px 0 !important;
  border-bottom: 1px solid var(--office-line) !important;
  scroll-margin-top: 92px;
}

.regulation > p,
.authority-note > p {
  color: var(--office-muted) !important;
  opacity: 1 !important;
}

.match-filters {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px !important;
}

.match-list {
  display: grid !important;
  gap: 10px !important;
}

.match-card {
  display: grid !important;
  grid-template-columns: 170px minmax(230px, 1fr) minmax(250px, .8fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--office-line) !important;
  border-left: 5px solid var(--office-blue) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.match-card > * {
  min-width: 0;
  padding: 15px !important;
  border-right: 1px solid var(--office-line) !important;
}

.match-card > *:last-child {
  border-right: 0 !important;
}

.match-card__meta {
  display: flex !important;
  flex-direction: column;
  gap: 7px;
  background: var(--office-paper-2) !important;
  color: var(--office-muted) !important;
  font: 600 10px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
}

.match-card__versus {
  display: grid !important;
  gap: 8px;
  margin: 0 !important;
}

.match-card__versus > span {
  display: flex !important;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0 !important;
  border-bottom: 1px dotted var(--office-line) !important;
  font-size: 13px !important;
}

.match-card__versus .is-winner {
  color: var(--office-blue-dark) !important;
  font-weight: 700;
}

.match-card__official-record h3 {
  margin: 0 0 8px !important;
  color: var(--office-ink) !important;
  font-size: 17px !important;
}

.match-card__official-record dl,
.regulation dl {
  margin: 0 !important;
}

.match-card__official-record dl > div,
.regulation dl > div {
  display: grid !important;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  padding: 4px 0 !important;
  font-size: 10px !important;
}

.match-card__official-record dd,
.regulation dd {
  margin: 0 !important;
}

.regulation {
  display: grid !important;
  grid-template-columns: 1.4fr .8fr;
  gap: 24px !important;
  padding: 24px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

/* Entry form */
.entry-archive {
  padding: 24px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.entry-archive > header {
  display: grid !important;
  grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--office-line-dark);
}

.entry-archive > header p:first-child {
  margin: 0;
  color: var(--office-blue);
  font: 700 10px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .1em;
}

.entry-archive > header h2 {
  margin: 3px 0 0;
  font-size: clamp(22px, 3vw, 32px);
}

.entry-archive > header > p {
  margin: 0;
  color: var(--office-muted);
  font-size: 12px;
}

.entry-archive__latest {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(240px, .8fr);
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--office-line);
  border-left: 5px solid var(--office-blue);
  background: var(--office-paper-2);
}

.entry-archive__latest span,
.entry-archive__latest small {
  color: var(--office-muted);
  font-size: 10px;
}

.entry-archive__latest b {
  font-size: 15px;
}

.entry-archive__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.entry-archive__actions > button,
.entry-import {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 96px;
  padding: 13px;
  border: 1px solid var(--office-line-dark) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
  text-align: left;
}

.entry-archive__actions span {
  color: var(--office-blue);
  font: 700 9px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.entry-archive__actions b {
  margin: 4px 0;
  font-size: 13px;
}

.entry-archive__actions small {
  color: var(--office-muted);
  font-size: 10px;
}

.entry-import {
  cursor: pointer;
}

.entry-import input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.entry-history {
  display: grid;
  gap: 8px;
  max-height: 480px;
  margin-top: 14px;
  overflow: auto;
}

.entry-history > p {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--office-line);
  color: var(--office-muted);
  font-size: 12px;
  text-align: center;
}

.entry-history__item {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, .7fr);
  gap: 4px 18px;
  padding: 14px;
  border: 1px solid var(--office-line);
  background: var(--office-paper-2);
}

.entry-history__item > header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px dotted var(--office-line);
  color: var(--office-muted);
  font: 600 10px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.entry-history__item h3 {
  margin: 7px 0 0;
  font-size: 15px;
}

.entry-history__item > p {
  margin: 0;
  color: var(--office-muted);
  font-size: 10px;
}

.entry-history__actions {
  grid-column: 2;
  grid-row: 2 / 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}

.entry-history__actions button {
  padding: 6px 9px !important;
  border: 1px solid var(--office-line-dark) !important;
  background: var(--office-paper) !important;
  color: var(--office-blue-dark) !important;
  font-size: 10px !important;
}

.entry-history-status {
  margin: 10px 0 0;
  color: var(--office-muted);
  font-size: 11px;
}

.entry-history-status.is-success {
  color: var(--office-green);
}

.entry-grid,
.entry-luco,
.portrait-preset__card img {
  display: none !important;
}

.entry-heading {
  grid-template-columns: 126px minmax(0, 1fr) 230px !important;
}

.entry-heading::before {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 30px;
  border-right: 1px solid var(--office-line);
  background: var(--office-paper-2) url("./committee-mark.svg") center 30px / 58px no-repeat;
  content: "";
}

.entry-stamp {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 24px !important;
  padding: 22px !important;
  border: 3px double var(--office-red) !important;
  background: transparent !important;
  color: var(--office-red) !important;
  transform: rotate(-2deg);
}

.entry-stamp b {
  color: inherit !important;
  font-size: 28px !important;
}

.entry-privacy {
  grid-template-columns: 250px 1fr 180px !important;
}

.entry-save-status {
  padding: 6px 10px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-muted) !important;
  font-size: 11px !important;
  text-align: center;
}

.entry-layout {
  display: block !important;
  margin-top: 24px !important;
}

.entry-form {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.entry-steps {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
}

.entry-steps button {
  display: grid !important;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 70px;
  padding: 10px !important;
  border: 0 !important;
  border-right: 1px solid var(--office-line) !important;
  background: transparent !important;
  color: var(--office-muted) !important;
  text-align: left !important;
}

.entry-steps button.is-active {
  background: var(--office-blue) !important;
  color: #fff !important;
}

.entry-steps button.is-complete:not(.is-active) {
  color: var(--office-green) !important;
}

.entry-steps button span {
  grid-row: 1 / 3;
  font: 700 18px/1 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
}

.entry-steps button b {
  font-size: 13px !important;
}

.entry-steps button small {
  font-size: 8px !important;
}

.entry-progress {
  height: 4px !important;
  background: var(--office-line) !important;
}

.entry-progress i {
  display: block;
  height: 100%;
  background: var(--office-blue) !important;
}

.entry-error {
  margin: 18px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--office-red) !important;
  background: #f6ece9 !important;
  color: #713a34 !important;
  font-size: 13px !important;
}

.entry-panel {
  padding: clamp(22px, 4vw, 46px) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.panel-heading {
  margin: 0 0 24px !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 2px solid var(--office-line-dark) !important;
  background: transparent !important;
}

.panel-heading p {
  margin: 0 !important;
  color: var(--office-blue) !important;
  font: 700 10px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
}

.panel-heading h2 {
  margin: 4px 0 6px !important;
  color: var(--office-ink) !important;
  font-size: clamp(23px, 3vw, 34px) !important;
  font-weight: 650 !important;
}

.panel-heading > span {
  color: var(--office-muted) !important;
  font-size: 13px !important;
}

.form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.field {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field > span,
.portrait-preset legend,
.safety-card legend,
.confirmations legend {
  color: var(--office-ink) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.field i,
.field em {
  color: var(--office-red) !important;
  font-size: 10px !important;
  font-style: normal !important;
}

.field input,
.field select,
.field textarea,
.loadout-card select,
.call-card select {
  width: 100% !important;
  min-height: 46px;
  padding: 10px 12px !important;
  border: 1px solid var(--office-line-dark) !important;
  background: #fff !important;
  color: var(--office-ink) !important;
  font-size: 14px !important;
}

.field small {
  color: var(--office-muted) !important;
  font-size: 10px !important;
}

.portrait-preset,
.safety-card,
.confirmations {
  margin: 24px 0 0 !important;
  padding: 18px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-ink) !important;
}

.portrait-preset > p,
.portrait-preset > small {
  color: var(--office-muted) !important;
  font-size: 11px !important;
}

.portrait-preset__grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  margin: 12px 0 !important;
}

.portrait-preset__card {
  display: grid !important;
  grid-template-columns: 24px 1fr;
  align-items: center;
  padding: 10px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
}

.omen-index {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)) !important;
  gap: 3px !important;
  margin-bottom: 14px !important;
}

.omen-index button {
  min-height: 36px;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-muted) !important;
}

.omen-index button.is-active {
  background: var(--office-blue) !important;
  color: #fff !important;
}

.omen-index button.is-answered:not(.is-active) {
  border-color: var(--office-green) !important;
  color: var(--office-green) !important;
}

.omen-card {
  display: grid !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
}

.omen-card__body {
  padding: clamp(18px, 3vw, 32px) !important;
}

.omen-card__body h3 {
  margin: 0 0 18px !important;
  color: var(--office-ink) !important;
  font-size: clamp(18px, 2.5vw, 25px) !important;
  line-height: 1.7 !important;
}

.omen-options {
  display: grid !important;
  gap: 8px !important;
}

.omen-option {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  align-items: center;
  padding: 12px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-ink) !important;
  font-size: 13px !important;
}

body.entry-page .omen-option:has(input:checked) {
  border: 2px solid var(--office-red) !important;
  background: #f6ece9 !important;
  box-shadow: inset 5px 0 0 var(--office-red);
}

body.entry-page .omen-option:has(input:checked) i {
  border-color: var(--office-red) !important;
  color: var(--office-red) !important;
  font-weight: 900;
}

body.entry-page .omen-option:has(input:checked) span {
  color: var(--office-ink) !important;
  font-weight: 700;
}

.omen-controls {
  display: flex !important;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px !important;
}

.omen-controls button {
  padding: 9px 14px !important;
  border: 1px solid var(--office-line-dark) !important;
  background: var(--office-paper) !important;
  color: var(--office-blue-dark) !important;
}

.loadout-difference {
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
}

.loadout-difference header {
  padding: 11px 14px !important;
  border-bottom: 1px solid var(--office-line) !important;
  background: transparent !important;
}

.loadout-difference > div,
.loadout-difference section {
  background: transparent !important;
}

body.entry-page .loadout-difference section > p {
  grid-template-columns: 54px minmax(0, 1fr) !important;
  gap: 10px !important;
  min-width: 0;
}

body.entry-page .loadout-difference section img {
  display: block !important;
  width: 54px !important;
  height: 54px !important;
  border: 1px solid var(--office-line) !important;
  background: #eef0ed !important;
  object-fit: contain !important;
}

body.entry-page .loadout-difference section p > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

body.entry-page .loadout-difference section p > span b {
  display: block;
}

.loadout-summary {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px !important;
  margin: 18px 0 !important;
  padding: 16px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
}

.loadout-summary > p {
  grid-column: 1 / -1;
  margin: 0 !important;
  color: var(--office-muted) !important;
  font-size: 11px !important;
}

.meter,
.build-summary__bar {
  height: 6px !important;
  background: var(--office-line) !important;
}

.meter i,
.build-summary__bar i {
  display: block;
  height: 100%;
  background: var(--office-blue) !important;
}

.loadout-grid,
.calls-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.loadout-card,
.call-card {
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.loadout-card__head,
.call-card__head,
.call-card__order {
  padding: 11px 14px !important;
  border-bottom: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-muted) !important;
}

.loadout-card > select,
.call-card select {
  margin: 12px !important;
  width: calc(100% - 24px) !important;
}

.loadout-card__detail,
.call-card__detail {
  padding: 14px !important;
  border-top: 1px dotted var(--office-line) !important;
  background: transparent !important;
}

body.entry-page .loadout-card__detail:not(.is-pending) {
  grid-template-columns: minmax(96px, 132px) minmax(0, 1fr) !important;
  align-items: start;
}

.loadout-card__visual {
  display: grid !important;
  place-items: center;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  background: #eef0ed !important;
}

.loadout-card__visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

body.entry-page .loadout-card__cost {
  grid-column: 2;
  justify-self: start;
  white-space: normal;
}

.safety-card__overview,
.fixed-supply {
  display: grid !important;
  grid-template-columns: 150px 1fr;
  gap: 18px !important;
  padding: 15px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
}

.safety-card__overview img,
.fixed-supply img {
  width: 150px !important;
  height: 150px !important;
  object-fit: contain !important;
  background: #eef0ed !important;
}

.safety-card__choices {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

.safety-card__choices label,
.confirmations label {
  display: flex !important;
  gap: 10px;
  padding: 12px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
  font-size: 12px !important;
}

.review-id,
.review-section {
  padding: 16px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
}

.review-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

.review-section--wide {
  grid-column: 1 / -1;
}

.export-actions {
  display: grid !important;
  grid-template-columns: 2fr repeat(3, 1fr) !important;
  gap: 8px !important;
  margin-top: 18px !important;
}

.entry-controls {
  display: grid !important;
  grid-template-columns: 140px 1fr 140px;
  align-items: center;
  padding: 14px !important;
  border-top: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
}

/* Entry contrast normalization.
   The entry form is authored from the dark promotional palette, then presented
   as an official paper document. Keep every nested state on the paper palette
   so helper text, placeholders, and generated review content remain readable. */
body.entry-page .entry-stamp.is-open {
  border-color: var(--office-green) !important;
  background: #edf4ef !important;
  color: #315846 !important;
}

body.entry-page .entry-closed.entry-open {
  border-color: var(--office-line) !important;
  border-left-color: var(--office-green) !important;
  background: #edf4ef !important;
}

body.entry-page .entry-closed.entry-open span {
  color: #315846 !important;
}

body.entry-page .entry-privacy div span {
  color: var(--office-blue-dark) !important;
}

body.entry-page :is(.entry-portrait-link, .entry-amend-link) {
  border-color: var(--office-line) !important;
  border-left-color: var(--office-blue) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
  clip-path: none !important;
}

body.entry-page .entry-amend-link {
  border-left-color: var(--office-amber) !important;
}

body.entry-page :is(.entry-portrait-link, .entry-amend-link) > div > span,
body.entry-page :is(.entry-portrait-link, .entry-amend-link) a strong {
  color: var(--office-blue-dark) !important;
}

body.entry-page .entry-amend-link > div > span,
body.entry-page .entry-amend-link a strong,
body.entry-page .entry-portrait-link__practice strong {
  color: var(--office-amber) !important;
}

body.entry-page :is(.entry-portrait-link, .entry-amend-link) > div > p,
body.entry-page :is(.entry-portrait-link, .entry-amend-link) a small {
  color: var(--office-muted) !important;
}

body.entry-page .entry-portrait-flow {
  background: var(--office-line) !important;
}

body.entry-page .entry-portrait-flow li {
  background: var(--office-paper-2) !important;
  color: var(--office-ink) !important;
}

body.entry-page .entry-portrait-flow em {
  color: var(--office-blue-dark) !important;
}

body.entry-page .entry-portrait-flow strong {
  color: var(--office-ink) !important;
}

body.entry-page .entry-portrait-flow small {
  color: var(--office-muted) !important;
}

body.entry-page :is(.entry-portrait-link, .entry-amend-link) a {
  border-color: var(--office-line-dark) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-blue-dark) !important;
}

body.entry-page .entry-portrait-link__practice {
  border-color: var(--office-amber) !important;
  background: #f5f0e5 !important;
}

body.entry-page :is(.formation-selection, .call-card--inactive) {
  border-color: var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-ink) !important;
}

body.entry-page .formation-mode {
  border-color: var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

body.entry-page .formation-mode small {
  color: var(--office-blue) !important;
}

body.entry-page :is(.formation-selection, .safety-card) legend span {
  color: var(--office-red) !important;
}

body.entry-page .formation-mode em,
body.entry-page .formation-selection > p,
body.entry-page .call-card--inactive p {
  color: var(--office-muted) !important;
}

body.entry-page .formation-mode:has(input:checked) {
  border-color: var(--office-blue) !important;
  background: #e8efef !important;
}

body.entry-page .portrait-preset legend span,
body.entry-page .field > span em {
  color: var(--office-muted) !important;
}

body.entry-page :is(.field input, .field textarea)::placeholder {
  color: var(--office-muted) !important;
  opacity: 1 !important;
}

body.entry-page .omen-option i {
  color: var(--office-blue) !important;
}

body.entry-page .omen-option span {
  color: var(--office-ink) !important;
}

body.entry-page .omen-footnote {
  color: var(--office-muted) !important;
}

body.entry-page .loadout-difference :is(h3, b) {
  color: var(--office-ink) !important;
}

body.entry-page .loadout-difference :is(p, small) {
  color: var(--office-muted) !important;
}

body.entry-page .loadout-difference :is(header span, header a),
body.entry-page .loadout-summary span,
body.entry-page :is(.loadout-card__copy, .call-card__head, .call-card__order) > span {
  color: var(--office-blue-dark) !important;
}

body.entry-page .loadout-summary b i,
body.entry-page .loadout-card__copy,
body.entry-page .loadout-card__copy > strong,
body.entry-page .call-card__detail {
  color: var(--office-ink) !important;
}

body.entry-page .loadout-card__visual.is-empty,
body.entry-page .loadout-card__copy > p,
body.entry-page .loadout-card__copy > small,
body.entry-page .call-card__detail p {
  color: var(--office-muted) !important;
}

body.entry-page :is(.loadout-card__detail, .call-card__detail) b {
  color: var(--office-red) !important;
}

body.entry-page .safety-card__overview p,
body.entry-page .safety-card label small,
body.entry-page .fixed-supply p {
  color: var(--office-muted) !important;
}

body.entry-page .safety-card__overview p b,
body.entry-page .fixed-supply :is(b, p strong) {
  color: var(--office-ink) !important;
}

body.entry-page .safety-card__overview p span,
body.entry-page .fixed-supply > div > span,
body.entry-page .call-card__order span {
  color: var(--office-blue-dark) !important;
}

body.entry-page .call-card__order b {
  color: var(--office-red) !important;
}

body.entry-page .review-id {
  background: #f6ece9 !important;
}

body.entry-page .review-id span,
body.entry-page .review-section h3 {
  color: var(--office-blue-dark) !important;
}

body.entry-page .review-id small,
body.entry-page .review-section h3 span,
body.entry-page .review-section dt,
body.entry-page .export-actions small,
body.entry-page .submission-note,
body.entry-page .export-status,
body.entry-page .entry-controls > div small {
  color: var(--office-muted) !important;
}

body.entry-page .review-section dd,
body.entry-page .review-list li,
body.entry-page .confirmations label span {
  color: var(--office-ink) !important;
}

body.entry-page .review-list li b {
  color: var(--office-red) !important;
}

body.entry-page .export-actions .submit-primary:disabled span {
  color: var(--office-muted) !important;
}

body.entry-page .export-actions span,
body.entry-page .entry-controls > div span {
  color: var(--office-blue-dark) !important;
}

body.entry-page .clear-draft {
  color: var(--office-red) !important;
}

body.entry-page .entry-steps button:not(.is-active) :is(span, b, small) {
  color: var(--office-muted) !important;
}

body.entry-page .entry-steps button.is-complete:not(.is-active) :is(span, b, small) {
  color: var(--office-green) !important;
}

body.entry-page .entry-steps button.is-active :is(span, b, small),
body.entry-page .export-actions .submit-primary:not(:disabled) :is(span, b, small) {
  color: #fff !important;
}

body.entry-page :is(.omen-controls button, .entry-controls > button, .export-actions button):disabled {
  background: #e2e5e2 !important;
  color: var(--office-muted) !important;
  opacity: 1 !important;
}

body.entry-page .export-status.is-success {
  color: #315846 !important;
}

body.entry-page .portrait-receipt {
  border-color: var(--office-blue) !important;
  background: #e8efef !important;
  color: var(--office-ink) !important;
}

body.entry-page .portrait-receipt > span,
body.entry-page .portrait-receipt a {
  border-color: var(--office-blue) !important;
  color: var(--office-blue-dark) !important;
}

body.entry-page .portrait-receipt code,
body.entry-page .portrait-receipt > b {
  color: var(--office-ink) !important;
}

body.entry-page .portrait-receipt small {
  color: var(--office-muted) !important;
}

body.entry-page .portrait-receipt .portrait-receipt__primary {
  border-color: var(--office-blue-dark) !important;
  background: var(--office-blue-dark) !important;
  color: #fff !important;
}

body.entry-page .portrait-receipt__credentials > span {
  border-color: var(--office-line) !important;
  background: var(--office-paper-2) !important;
}

body.official-site .arena-composition__layers button:not([aria-selected="true"]) span {
  color: var(--office-blue-dark) !important;
}

body.official-site .arena-composition__layers button:not([aria-selected="true"]) small,
body.official-site .equipment-item__visual.is-empty,
body.official-site .build-summary__slots dd.is-pending {
  color: var(--office-muted) !important;
}

/* Equipment register */
.equipment-intro {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr) !important;
}

.equipment-intro__copy > dl {
  border-left: 0 !important;
  border-top: 1px solid var(--office-line) !important;
}

.equipment-intro__visual {
  display: grid !important;
  grid-template-rows: 1fr auto;
  margin: 0 !important;
  padding: 18px !important;
  border-left: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
}

.equipment-intro__visual img {
  width: 100% !important;
  height: 270px !important;
  object-fit: contain !important;
}

.equipment-intro__visual::before,
.equipment-intro__visual::after,
.standard-supply__visual::before,
.standard-supply__visual::after,
.safety-registry > figure::before,
.safety-registry > figure::after {
  display: none !important;
  content: none !important;
}

.equipment-intro__visual figcaption,
.standard-supply figcaption,
.safety-registry figcaption {
  padding: 7px 0 !important;
  color: var(--office-muted) !important;
  font-size: 10px !important;
}

.equipment-document-nav {
  grid-template-columns: repeat(2, 1fr) !important;
}

.equipment-ledger {
  padding: 24px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.equipment-ledger__table {
  overflow-x: auto;
  border: 1px solid var(--office-line) !important;
}

.equipment-ledger__row {
  display: grid !important;
  grid-template-columns: 70px minmax(220px, 1.5fr) minmax(150px, 1fr) 60px 60px 70px 130px !important;
  min-width: 820px;
  border-bottom: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.equipment-ledger__row.is-head {
  background: var(--office-blue-dark) !important;
  color: #fff !important;
}

.equipment-ledger__row > * {
  padding: 9px 10px !important;
  border-right: 1px solid var(--office-line) !important;
  font-size: 11px !important;
  font-style: normal !important;
}

.equipment-ledger__row small {
  display: block;
  color: var(--office-muted) !important;
}

.equipment-ledger__row em {
  color: var(--office-green) !important;
}

.standard-supply,
.safety-registry {
  display: grid !important;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.standard-supply > header {
  grid-column: 1 / -1;
  display: flex !important;
  justify-content: space-between;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-muted) !important;
  font-size: 10px !important;
}

.standard-supply__visual,
.safety-registry > figure {
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  padding: 24px !important;
  border-right: 1px solid var(--office-line) !important;
  background: #eceeeb !important;
}

.standard-supply__visual img,
.safety-registry > figure img {
  width: 100% !important;
  height: 280px !important;
  object-fit: contain !important;
}

.standard-supply__body,
.safety-registry > article {
  padding: 24px !important;
  background: transparent !important;
  color: var(--office-ink) !important;
}

.standard-supply__body {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: start !important;
  gap: 14px !important;
}

.standard-supply__unit {
  display: grid !important;
  grid-template-columns: 70px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
}

.standard-supply__body dl {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;
  margin: 0 !important;
}

.standard-supply__body aside {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  transform: none !important;
}

.equipment-quick-guide {
  padding: 24px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
}

.equipment-quick-guide__groups {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px !important;
}

.equipment-quick-guide article {
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-ink) !important;
}

.equipment-quick-guide li img {
  content: none;
  display: none !important;
}

.equipment-page .equipment-quick-guide li {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 9px !important;
}

.equipment-page .equipment-quick-guide li img {
  display: block !important;
  width: 88px !important;
  height: 88px !important;
  object-fit: contain !important;
  background: #e9ecea !important;
}

.equipment-page .equipment-quick-guide li p {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 3px !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.equipment-registry,
.call-registry {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr) 260px !important;
  gap: 12px !important;
  align-items: start;
}

.slot-rail,
.call-slot-rail,
.equipment-catalog,
.call-catalog,
.build-summary,
.call-summary {
  overflow: hidden !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.slot-rail > header,
.call-slot-rail > header,
.equipment-catalog__head,
.call-catalog__head,
.build-summary > header,
.call-summary > header {
  padding: 13px 15px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-muted) !important;
}

.slot-button,
.call-slot-button {
  width: 100% !important;
  padding: 11px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--office-line) !important;
  background: transparent !important;
  color: var(--office-muted) !important;
  text-align: left !important;
}

.slot-button[aria-selected="true"],
.call-slot-button[aria-selected="true"] {
  background: var(--office-blue) !important;
  color: #fff !important;
}

.equipment-item,
.condition-card {
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) 94px !important;
  width: calc(100% - 24px) !important;
  margin: 12px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
  text-align: left !important;
}

.equipment-item[aria-pressed="true"],
.condition-card[aria-pressed="true"] {
  border: 3px solid var(--office-blue) !important;
}

.equipment-item__visual {
  display: grid !important;
  place-items: center;
  min-height: 180px !important;
  padding: 10px !important;
  border-right: 1px solid var(--office-line) !important;
  background: #eceeeb !important;
}

.equipment-item__visual img {
  width: 100% !important;
  height: 170px !important;
  object-fit: contain !important;
}

.equipment-item__main {
  min-width: 0;
  padding: 15px !important;
}

.equipment-item__main h3,
.condition-card h3 {
  margin: 5px 0 8px !important;
  color: var(--office-ink) !important;
  font-size: 17px !important;
}

.equipment-item__main p,
.condition-card p {
  color: var(--office-muted) !important;
  font-size: 11px !important;
}

.equipment-item__cost {
  display: grid !important;
  align-content: center;
  padding: 12px !important;
  border-left: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
}

.equipment-item__cost b {
  display: block;
  color: var(--office-blue-dark) !important;
  font-size: 22px !important;
}

.build-summary,
.call-summary {
  position: sticky !important;
  top: 12px !important;
}

.build-summary > *:not(header),
.call-summary > *:not(header) {
  margin-left: 14px !important;
  margin-right: 14px !important;
}

.safety-choice {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}

.safety-choice button {
  padding: 13px !important;
  border: 1px solid var(--office-line-dark) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-ink) !important;
  text-align: left !important;
}

.safety-choice button[aria-checked="true"] {
  background: var(--office-blue) !important;
  color: #fff !important;
}

.equipment-evolution,
.entry-luco,
.calls-luco {
  display: none !important;
}

/* Calls */
.calls-intro {
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr) !important;
}

.voice-monitor {
  margin: 0 !important;
  padding: 22px !important;
  border: 0 !important;
  border-left: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-ink) !important;
}

.voice-monitor__rings,
.voice-monitor__wave {
  display: none !important;
}

.voice-monitor__field {
  min-height: 0 !important;
  margin: 16px 0 !important;
  background: transparent !important;
}

.voice-monitor__field ol {
  position: static !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.voice-monitor__field li {
  position: static !important;
  display: grid !important;
  place-items: center;
  width: auto !important;
  height: 70px !important;
  border: 1px solid var(--office-line-dark) !important;
  background: var(--office-paper) !important;
  color: var(--office-muted) !important;
}

.voice-monitor__field li.is-ready {
  background: var(--office-green) !important;
  color: #fff !important;
}

.condition-card {
  grid-template-columns: 1fr !important;
  padding: 15px !important;
}

.condition-card__top {
  display: flex !important;
  justify-content: space-between;
  color: var(--office-blue) !important;
  font: 700 10px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
}

.call-rules {
  padding: 24px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
}

.call-rules__grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
}

.call-rules__grid article {
  padding: 17px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-ink) !important;
}

.call-rules__grid article h3 {
  color: var(--office-ink) !important;
}

.call-rules__grid article p {
  color: var(--office-muted) !important;
  opacity: 1 !important;
}

.calls-page .voice-monitor :is(header, p, span, b, small, i),
.calls-page .call-catalog__head :is(h2, p, span),
.calls-page .call-summary :is(p, span, b, dt, dd),
.calls-page .call-rules__grid :is(h3, p, span),
.calls-page .calls-finish :is(h2, p, span, b) {
  opacity: 1 !important;
}

.calls-page .voice-monitor,
.calls-page .voice-monitor :is(header, p, b),
.calls-page .call-catalog__head h2,
.calls-page .call-rules__grid h3,
.calls-page .calls-finish h2 {
  color: var(--office-ink) !important;
}

.calls-page .voice-monitor span,
.calls-page .call-catalog__head > p,
.calls-page .call-summary :is(p, span, dt, dd),
.calls-page .call-rules__grid p,
.calls-page .calls-finish > div > p {
  color: var(--office-muted) !important;
}

.calls-page .call-slot-button[aria-selected="true"] :is(span, b),
.calls-page .voice-monitor__field li.is-ready :is(span, b) {
  color: #fff !important;
}

.calls-page .condition-card__top,
.calls-page .condition-card__top :is(span, b),
.calls-page .condition-card > span,
.calls-page .calls-finish__next b {
  color: var(--office-blue-dark) !important;
}

.calls-page :is(.condition-card, .call-catalog__controls button):disabled {
  border-color: var(--office-line-dark) !important;
  background: #e2e5e2 !important;
  color: var(--office-muted) !important;
  opacity: 1 !important;
}

/* Arena */
/* The retained dark audit panels need their own foreground; the paper theme's
   body/control ink must not be inherited by their headings or facility buttons. */
body.arena-page .arena-audit {
  color: var(--arena-paper);
}

body.arena-page .facility-selector button {
  color: var(--arena-muted);
}

body.arena-page .facility-selector button:is(:hover, :focus-visible) {
  color: var(--arena-cyan-hot);
}

body.arena-page .facility-selector button.is-selected {
  color: var(--arena-paper);
}

.arena-intro {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr) !important;
}

.arena-intro::before,
.arena-intro::after {
  display: none;
}

.arena-intro__notice {
  grid-column: 1 / -1;
  margin: 0 !important;
  padding: 10px 16px !important;
  border-top: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-muted) !important;
  font-size: 11px !important;
}

.arena-photo-register {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 12px;
  margin: 18px 0 40px;
}

.arena-photo-register figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--office-line);
  background: var(--office-paper);
}

.arena-photo-register img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
  filter: saturate(.72) contrast(.96);
}

.arena-photo-register figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-top: 1px solid var(--office-line);
  color: var(--office-muted);
  font-size: 10px;
}

.arena-workbench {
  padding: 24px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
}

.arena-workbench__layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px !important;
  gap: 12px !important;
}

.arena-map-panel,
.arena-inspector {
  overflow: hidden !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-ink) !important;
}

.arena-map-panel__status,
.arena-inspector > header {
  padding: 11px 14px !important;
  border-bottom: 1px solid var(--office-line) !important;
  background: var(--office-blue-dark) !important;
  color: #fff !important;
}

.arena-layer-controls,
.arena-zone-buttons {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 4px !important;
  padding: 10px !important;
}

.arena-layer-controls button,
.arena-zone-buttons button {
  padding: 8px !important;
  border: 1px solid var(--office-line-dark) !important;
  background: var(--office-paper) !important;
  color: var(--office-muted) !important;
  font-size: 10px !important;
}

.arena-layer-controls button[aria-pressed="true"],
.arena-zone-buttons button.is-selected {
  background: var(--office-blue) !important;
  color: #fff !important;
}

.arena-map-frame {
  padding: 12px !important;
  background: #27383b !important;
}

.arena-inspector {
  padding-bottom: 14px !important;
}

.arena-inspector > h3,
.arena-inspector > p,
.arena-inspector > dl {
  margin-left: 16px !important;
  margin-right: 16px !important;
}

.arena-routes,
.arena-composition {
  padding: 24px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.arena-routes > header h2,
.arena-composition__head h2 {
  margin: 4px 0 !important;
  color: var(--office-ink) !important;
  font-size: 28px !important;
  line-height: 1.35 !important;
}

.arena-routes > div,
.arena-composition__console {
  gap: 12px !important;
}

.arena-routes article,
.arena-composition__readout,
.arena-composition__panel {
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-ink) !important;
}

/* Final route normalization: retain the source data, but present every working
   surface as a committee document rather than a broadcast interface. */
.portrait-preset__copy {
  grid-column: 2 !important;
  width: auto !important;
  padding: 0 !important;
  color: var(--office-ink) !important;
}

.portrait-preset__copy b,
.portrait-preset__copy small {
  width: auto !important;
  color: var(--office-ink) !important;
  line-height: 1.55 !important;
}

.portrait-preset__copy small {
  color: var(--office-muted) !important;
}

.equipment-ledger__table {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  overflow: visible !important;
  border: 0 !important;
}

.equipment-ledger__card {
  display: grid !important;
  grid-template-columns: 168px minmax(0, 1fr) !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-ink) !important;
}

.equipment-ledger__card figure {
  display: grid !important;
  grid-template-rows: 1fr auto !important;
  margin: 0 !important;
  padding: 10px 10px 0 !important;
  border-right: 1px solid var(--office-line) !important;
  background: #e9ecea !important;
}

.equipment-ledger__card img {
  display: block !important;
  width: 100% !important;
  height: 158px !important;
  object-fit: contain !important;
}

.equipment-ledger__card figcaption {
  padding: 7px 0 !important;
  border-top: 1px solid var(--office-line) !important;
  color: var(--office-muted) !important;
  font: 700 8px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
  letter-spacing: .08em !important;
}

.equipment-ledger__body {
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 14px !important;
}

.equipment-ledger__body header p {
  display: flex !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 !important;
}

.equipment-ledger__body header span,
.equipment-ledger__body header em {
  color: var(--office-blue-dark) !important;
  font: 700 9px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
  font-style: normal !important;
}

.equipment-ledger__body header em {
  color: var(--office-green) !important;
}

.equipment-ledger__body h3 {
  margin: 5px 0 2px !important;
  color: var(--office-ink) !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
}

.equipment-ledger__body header small,
.equipment-ledger__body > p {
  margin: 0 !important;
  color: var(--office-muted) !important;
  font-size: 10px !important;
  line-height: 1.7 !important;
}

.equipment-ledger__body dl {
  display: grid !important;
  grid-template-columns: 1fr 64px 64px 70px !important;
  margin: auto 0 0 !important;
  border-top: 1px solid var(--office-line) !important;
}

.equipment-ledger__body dl > div {
  min-width: 0 !important;
  padding: 7px 6px 0 !important;
  border-right: 1px solid var(--office-line) !important;
}

.equipment-ledger__body dl > div:last-child {
  border-right: 0 !important;
}

.equipment-ledger__body dt {
  color: var(--office-muted) !important;
  font-size: 8px !important;
}

.equipment-ledger__body dd {
  margin: 3px 0 0 !important;
  color: var(--office-ink) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.standard-supply__body,
.safety-registry > article,
.equipment-quick-guide,
.equipment-registry,
.equipment-finish {
  background-image: none !important;
  color: var(--office-ink) !important;
}

.standard-supply__body :is(h2, h3, p, span, small, dt, dd, b),
.equipment-quick-guide :is(h2, h3, p, span, small, li, b),
.equipment-catalog :is(h2, h3, p, span, small, i, b),
.build-summary :is(p, span, small, dt, dd, i, b),
.safety-registry :is(h2, h3, p, span, small, li, b),
.equipment-finish :is(h2, h3, p, span, small, b) {
  opacity: 1 !important;
}

.standard-supply__body p,
.standard-supply__body dt,
.equipment-quick-guide p,
.equipment-quick-guide li span,
.equipment-catalog__head > p,
.equipment-function-note p,
.equipment-item__fit,
.build-summary dl,
.safety-registry__lead,
.safety-result li,
.equipment-finish > div > p {
  color: var(--office-muted) !important;
}

.standard-supply__body h2,
.equipment-quick-guide h2,
.equipment-quick-guide b,
.equipment-catalog h2,
.equipment-catalog h3,
.build-summary b,
.safety-registry h2,
.safety-registry h3,
.equipment-finish h2 {
  color: var(--office-ink) !important;
}

.standard-supply__body dl > div,
.standard-supply__body aside,
.equipment-quick-guide li,
.equipment-function-note,
.safety-result,
.safety-result__columns > section {
  border-color: var(--office-line) !important;
  background: var(--office-paper-2) !important;
  background-image: none !important;
  color: var(--office-ink) !important;
}

.equipment-item__ability b,
.equipment-item__line b,
.equipment-item__line i,
.equipment-item__fit b,
.equipment-item__fit i {
  color: var(--office-blue-dark) !important;
  opacity: 1 !important;
}

.safety-choice button[aria-checked="true"] :is(span, b, small),
.slot-button[aria-selected="true"] :is(span, b),
.call-slot-button[aria-selected="true"] :is(span, b) {
  color: #fff !important;
}

.equipment-finish,
.calls-finish {
  padding: 24px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  background-image: none !important;
  color: var(--office-ink) !important;
}

.equipment-finish > div,
.calls-finish > div {
  max-width: none !important;
}

.equipment-finish h2,
.calls-finish h2 {
  margin: 4px 0 10px !important;
  color: var(--office-ink) !important;
  font-size: 28px !important;
}

.equipment-finish > div > p,
.calls-finish > div > p {
  color: var(--office-muted) !important;
  opacity: 1 !important;
}

.equipment-finish__next,
.calls-finish__next {
  border-color: var(--office-line-dark) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-blue-dark) !important;
}

.arena-page main :is(p, span, small, li, dt, dd) {
  opacity: 1 !important;
}

.arena-workbench__head > p,
.arena-inspector > p,
.arena-inspector dd,
.arena-routes > header > span,
.arena-routes article p,
.arena-routes article dd,
.arena-composition__head > p,
.arena-composition__panel > p,
.arena-composition__panel dd,
.arena-composition__reserve,
.arena-baseline > div > p,
.arena-next > p {
  color: var(--office-muted) !important;
}

.arena-inspector > h3,
.arena-routes article h3,
.arena-composition__panel h3,
.arena-baseline h2,
.arena-next h2 {
  color: var(--office-ink) !important;
}

.arena-routes article dl > div,
.arena-composition__panel dl > div,
.arena-composition__flow li,
.arena-baseline li {
  border-color: var(--office-line) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-ink) !important;
}

.arena-composition__console {
  display: grid !important;
  grid-template-columns: 280px 280px minmax(0, 1fr) !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
}

.arena-composition__readout,
.arena-composition__panel {
  padding: 20px !important;
  background: var(--office-paper-2) !important;
  background-image: none !important;
}

.arena-composition__readout :is(p, strong, small, dt, dd),
.arena-composition__panel :is(p, h3, dt, dd) {
  color: var(--office-ink) !important;
  opacity: 1 !important;
}

.arena-composition__readout small,
.arena-composition__readout dt,
.arena-composition__panel dt,
.arena-composition__panel > p {
  color: var(--office-muted) !important;
}

.arena-composition__layers {
  display: grid !important;
  grid-template-columns: 1fr !important;
  background: var(--office-paper-2) !important;
}

.arena-composition__layers button {
  min-height: 72px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
  text-align: left !important;
}

.arena-composition__layers button[aria-selected="true"] {
  background: var(--office-blue) !important;
  color: #fff !important;
}

.arena-composition__layers button[aria-selected="true"] :is(span, b, small) {
  color: #fff !important;
}

.arena-baseline,
.arena-next {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr) !important;
  gap: 24px !important;
  min-height: 0 !important;
  padding: 28px !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper) !important;
  background-image: none !important;
  color: var(--office-ink) !important;
}

.arena-baseline h2,
.arena-next h2 {
  margin: 7px 0 12px !important;
  max-width: 780px !important;
  font-size: clamp(28px, 3.2vw, 44px) !important;
  line-height: 1.25 !important;
}

.arena-baseline ul {
  margin: 0 !important;
  border: 1px solid var(--office-line) !important;
  background: var(--office-paper-2) !important;
}

.arena-next {
  grid-template-columns: 1fr !important;
}

.arena-next > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.arena-next a {
  min-width: 240px !important;
  border: 1px solid var(--office-line-dark) !important;
  background: var(--office-paper-2) !important;
  color: var(--office-blue-dark) !important;
}

/* Footer and fixed mobile navigation */
.official-footer,
body.official-site > footer,
.entry-site-footer {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100% !important;
  margin: 0 !important;
  padding: 24px max(24px, calc((100vw - var(--office-width)) / 2)) !important;
  border: 0 !important;
  border-top: 4px solid var(--office-blue-dark) !important;
  background: #d4d8d6 !important;
  color: var(--office-ink) !important;
}

.official-footer p,
body.official-site > footer p,
.entry-site-footer p {
  margin: 0 !important;
  font-size: 11px !important;
}

.official-footer nav,
body.official-site > footer nav,
.entry-site-footer nav {
  display: flex !important;
  flex-wrap: wrap;
  gap: 14px !important;
}

.official-footer a,
body.official-site > footer a,
.entry-site-footer a {
  color: var(--office-blue-dark) !important;
  font-size: 11px !important;
}

.official-mobile-nav {
  display: none !important;
}

.equipment-mobile-status,
.calls-mobile-status {
  border-color: var(--office-line-dark) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

dialog {
  max-width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--office-line-dark) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

dialog::backdrop {
  background: rgba(24, 31, 32, .65) !important;
}

@media (max-width: 980px) {
  .official-header {
    grid-template-columns: 1fr !important;
    padding: 0 24px;
  }

  .official-header > nav {
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--office-line) !important;
    border-left: 0 !important;
  }

  .document-masthead,
  .operations-head,
  .rules-document-head,
  .result-hero,
  .entry-heading,
  .equipment-intro,
  .calls-intro,
  .arena-intro {
    grid-template-columns: 100px minmax(0, 1fr) !important;
  }

  .rules-document-head {
    grid-template-columns: 1fr !important;
  }

  .document-masthead .operations-state,
  .document-masthead .result-hero__facts,
  .operations-state,
  .result-hero__facts,
  .rules-document-head > dl,
  .arena-intro__facts,
  .voice-monitor,
  .equipment-intro__visual {
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(2, 1fr) !important;
    border-top: 1px solid var(--office-line) !important;
    border-left: 0 !important;
  }

  .rules-document-head > dl {
    grid-column: auto !important;
  }

  .entry-stamp {
    grid-column: 1 / -1;
    min-height: 120px;
  }

  .service-counter__grid,
  .priority-actions,
  .registry-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .equipment-registry,
  .call-registry {
    grid-template-columns: 190px minmax(0, 1fr) !important;
  }

  .build-summary,
  .call-summary {
    position: static !important;
    grid-column: 1 / -1;
  }

  .match-card {
    grid-template-columns: 150px 1fr !important;
  }

  .match-card__official-record {
    grid-column: 1 / -1;
    border-top: 1px solid var(--office-line) !important;
  }
}

@media (max-width: 720px) {
  body.official-site {
    padding-bottom: 72px;
  }

  .official-header {
    min-height: 0;
    padding: 0 14px;
    border-bottom-width: 3px !important;
  }

  .official-header .authority {
    grid-template-columns: 44px 1fr;
    column-gap: 11px;
    padding: 11px 0 !important;
  }

  .official-header .authority::before {
    width: 42px;
    height: 42px;
  }

  .official-header .authority span {
    font-size: 6px !important;
  }

  .official-header .authority strong {
    font-size: 15px !important;
  }

  .official-header > nav {
    display: none !important;
  }

  body.official-site > main,
  body.official-site main.official-main,
  body.official-site main.entry-shell,
  body.official-site main.equipment-shell,
  body.official-site main.calls-shell {
    width: calc(100% - 24px) !important;
    margin: 16px auto 48px !important;
  }

  .document-masthead,
  .operations-head,
  .rules-document-head,
  .result-hero,
  .entry-heading,
  .equipment-intro,
  .calls-intro,
  .arena-intro {
    grid-template-columns: 1fr !important;
    border-top-width: 4px !important;
  }

  .document-id,
  .entry-heading::before {
    display: none !important;
  }

  .operations-head__copy,
  .result-hero__copy,
  .entry-heading__copy,
  .equipment-intro__copy,
  .calls-intro__copy,
  .arena-intro__copy,
  .rules-document-head > div:first-child {
    padding: 24px 18px !important;
  }

  .document-masthead h1,
  .operations-head h1,
  .rules-document-head h1,
  .result-hero h1,
  .entry-heading h1,
  .equipment-intro h1,
  .calls-intro h1,
  .arena-intro h1 {
    font-size: 32px !important;
  }

  .operations-state,
  .result-hero__facts,
  .rules-document-head > dl,
  .arena-intro__facts,
  .voice-monitor,
  .equipment-intro__visual {
    grid-column: auto !important;
    grid-template-columns: 1fr !important;
  }

  .document-updated {
    grid-column: auto;
  }

  .section-heading,
  .service-counter > header,
  .notice-board > header,
  .registry > header,
  .equipment-ledger > header,
  .equipment-registration-head,
  .equipment-quick-guide > header,
  .arena-workbench__head,
  .call-rules > header {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .service-counter__grid,
  .priority-actions,
  .registry-grid,
  .notice-list,
  .rules-layout,
  .roster-grid,
  .loadout-grid,
  .calls-list,
  .equipment-quick-guide__groups,
  .call-rules__grid,
  .review-grid,
  .form-grid,
  .arena-photo-register {
    grid-template-columns: 1fr !important;
  }

  .procedure-demo {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .procedure-demo > svg { width: 36px; height: 36px; }
  .procedure-demo > a { grid-column: 1 / -1; text-align: center; white-space: normal; }

  .authority-boundary,
  .boundary,
  .authority-note,
  .regulation,
  .standard-supply,
  .safety-registry,
  .arena-workbench__layout,
  .equipment-registry,
  .call-registry {
    grid-template-columns: 1fr !important;
  }

  .rules-index,
  .equipment-document-nav {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .status-strip {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .status-strip p {
    border-bottom: 1px solid var(--office-line) !important;
  }

  .bracket-grid {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .bracket-round {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .roster-card {
    grid-template-columns: 105px 1fr !important;
  }

  .match-card {
    grid-template-columns: 1fr !important;
  }

  .match-card > * {
    border-right: 0 !important;
    border-bottom: 1px solid var(--office-line) !important;
  }

  .entry-privacy,
  .entry-closed,
  .rules-alert,
  .call-notice,
  .official-note,
  .equipment-ledger__note {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .entry-archive > header,
  .entry-archive__latest,
  .entry-archive__actions,
  .entry-history__item {
    grid-template-columns: 1fr !important;
  }

  .rules-revision {
    padding: 16px !important;
  }

  .rules-revision > header,
  .rules-revision [role="row"] {
    grid-template-columns: 1fr !important;
  }

  .rules-revision [role="cell"] {
    border-right: 0 !important;
    border-bottom: 1px solid var(--office-line) !important;
  }

  .rules-revision [role="cell"]:last-child {
    border-bottom: 0 !important;
  }

  .entry-history__actions {
    grid-column: auto;
    grid-row: auto;
    justify-content: flex-start;
  }

  .entry-steps {
    overflow-x: auto;
  }

  .entry-steps button {
    min-width: 110px;
  }

  .entry-panel {
    padding: 22px 14px !important;
  }

  .portrait-preset__grid,
  .omen-index {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .loadout-summary,
  .safety-card__choices,
  .export-actions {
    grid-template-columns: 1fr !important;
  }

  .loadout-summary > p {
    grid-column: auto;
  }

  .safety-card__overview,
  .fixed-supply {
    grid-template-columns: 100px 1fr !important;
  }

  .safety-card__overview img,
  .fixed-supply img {
    width: 100px !important;
    height: 100px !important;
  }

  .entry-controls {
    grid-template-columns: 90px 1fr 90px !important;
  }

  .equipment-ledger {
    padding: 16px !important;
  }

  .equipment-ledger__table {
    grid-template-columns: 1fr !important;
  }

  .equipment-ledger__card {
    grid-template-columns: 118px minmax(0, 1fr) !important;
  }

  .equipment-ledger__card img {
    height: 130px !important;
  }

  .equipment-ledger__body {
    padding: 11px !important;
  }

  .equipment-ledger__body dl {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .equipment-intro__visual img,
  .standard-supply__visual img,
  .safety-registry > figure img {
    height: 230px !important;
  }

  .standard-supply__visual,
  .safety-registry > figure {
    border-right: 0 !important;
    border-bottom: 1px solid var(--office-line) !important;
  }

  .equipment-item {
    grid-template-columns: 120px 1fr !important;
  }

  .equipment-item__cost {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--office-line) !important;
    border-left: 0 !important;
  }

  .equipment-item__visual,
  .equipment-item__visual img {
    min-height: 140px !important;
    height: 140px !important;
  }

  .arena-photo-register img {
    height: 240px;
  }

  .arena-layer-controls,
  .arena-zone-buttons {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .arena-composition__console,
  .arena-baseline,
  .arena-next {
    grid-template-columns: 1fr !important;
  }

  .arena-composition__layers {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .arena-baseline,
  .arena-next {
    padding: 20px 16px !important;
  }

  .official-footer,
  body.official-site > footer,
  .entry-site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px !important;
  }

  .official-mobile-nav {
    position: fixed !important;
    z-index: 100 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    height: 64px !important;
    border: 0 !important;
    border-top: 2px solid var(--office-blue-dark) !important;
    background: var(--office-paper) !important;
  }

  .official-mobile-nav a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--office-line) !important;
    background: transparent !important;
    color: var(--office-muted) !important;
    text-decoration: none !important;
  }

  .official-mobile-nav a[aria-current="page"] {
    background: var(--office-blue) !important;
    color: #fff !important;
  }

  .official-mobile-nav span {
    font: 700 9px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
  }

  .official-mobile-nav b {
    font-size: 11px !important;
  }

  .equipment-mobile-status,
  .calls-mobile-status {
    bottom: 64px !important;
  }
}

@media print {
  .official-header,
  .official-mobile-nav,
  .entry-controls,
  .export-actions,
  .entry-privacy,
  .entry-closed,
  .entry-steps,
  .entry-progress,
  .clear-draft,
  .equipment-mobile-status,
  .calls-mobile-status {
    display: none !important;
  }

  body.official-site,
  body.official-site > main {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .entry-panel:not([data-step-panel="4"]) {
    display: none !important;
  }

  .entry-panel[data-step-panel="4"] {
    display: block !important;
  }
}
