:root {
  --ink: #0a0e16;
  --panel: #101624;
  --panel-2: #0d1320;
  --line: #1e2638;
  --line-2: #2a3550;
  --txt: #ffffff;
  --mut: #dbe7ff;
  --dim: #c7d3e8;
  --blue: #125cff;
  --green: #7bbf13;
  --gold: #d9a441;
  --red: #f25c5c;
  --push: #8fa3c0;
  --side-over: #bada55;
  --side-under: #fa8072;
  --side-vis: #40e0d0;
  --side-home: #D397f8;
  --vis: var(--side-vis);
  --hom: var(--side-home);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --system-header-height: 64px;
  --system-sticky-height: 0px;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: #000; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--txt);
  font-family: var(--sans);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.system-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  min-height: var(--system-header-height);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 22px;
  background: linear-gradient(180deg, #0c1220 0%, #0a0e16 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .26);
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}
.system-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.system-nav-drawer {
  width: 100%;
  min-width: 0;
}
.system-collapsible {
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  background: linear-gradient(180deg, rgba(16, 22, 36, .98), rgba(10, 14, 22, .98));
}
.system-collapsible > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.system-collapsible:not([open]) > :not(summary) {
  display: none !important;
}
.system-collapsible > summary::-webkit-details-marker { display: none; }
.system-panel-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 18px;
  color: var(--txt);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.system-collapsible[open] > .system-panel-summary {
  border-bottom-color: var(--line);
}
.system-panel-summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
  transition: transform .18s ease;
}
.system-collapsible:not([open]) > .system-panel-summary::after {
  transform: rotate(-90deg);
}
.system-panel-summary-title {
  color: var(--gold);
}
.system-panel-summary-meta {
  color: var(--mut);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  max-width: min(52vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.system-panel-summary-hint {
  color: var(--dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.system-collapsible--p0 {
  margin: 0;
  border-top: 0;
}
.system-collapsible--p0 .la-p0-panel h3 {
  display: none;
}
.system-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex: 0 0 auto;
  width: 174px;
  max-width: 42vw;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid rgba(111, 162, 255, .32);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 17, 31, .98), rgba(5, 10, 18, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 22px rgba(0, 0, 0, .28);
  color: var(--txt);
  text-decoration: none;
}
.system-brand img {
  display: block;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}
.system-brand-name {
  display: inline-flex;
  align-items: baseline;
  color: #f7fbff;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}
.system-brand-name b {
  color: #f7fbff;
  font-weight: 800;
}
.system-brand-name em {
  color: #98d719;
  font-style: normal;
  font-weight: 800;
}
.system-brand-name sup {
  position: relative;
  top: -0.4em;
  margin-left: 2px;
  color: #98d719;
  font-size: 8px;
  font-weight: 900;
}
.system-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
}
.system-nav a {
  color: var(--mut);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
}
.system-nav a:hover { color: var(--txt); border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.system-nav a.active {
  color: var(--gold);
  border-color: rgba(217, 164, 65, .52);
  background: rgba(217, 164, 65, .12);
}
.system-cta {
  color: white;
  text-decoration: none;
  font-weight: 800;
  background: var(--blue);
  padding: 11px 16px;
  border-radius: 6px;
}

.terminal-main {
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  padding: calc(var(--system-header-height) + var(--system-sticky-height)) 0 0;
  overflow-x: visible;
}
.system-sticky-controls {
  position: relative;
  z-index: 80;
  background: var(--ink);
  isolation: isolate;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}
.command-panel,
.board-utility-panel,
.lensdeck,
.schedule-panel,
.boardwrap,
.admin-notes {
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: linear-gradient(180deg, rgba(16, 22, 36, .98), rgba(10, 14, 22, .98));
}
.command-panel {
  position: relative;
  z-index: 55;
  padding: 10px 18px 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}
.command-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.wordmark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.wordmark b { color: var(--gold); }
.wordmark small {
  display: inline-block;
  margin: 0 0 0 8px;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .28em;
  vertical-align: middle;
}
.terminal-status {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: min(320px, 100%);
  color: var(--mut);
  font-family: var(--mono);
  font-size: 11px;
}
.terminal-status strong {
  color: var(--green);
  font-family: var(--sans);
  font-size: 14px;
}
.scope-grid {
  display: grid;
  grid-template-columns: 184px 105px minmax(260px, 1.4fr) 135px 170px 160px 135px minmax(260px, .9fr);
  gap: 8px;
  align-items: end;
}
.sequence-layer-field {
  min-width: 170px;
}
.sequence-layer-toggle {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(78, 179, 255, .34);
  border-radius: 8px;
  background: rgba(5, 13, 26, .88);
  color: #cfe8ff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 7px 10px;
  text-align: left;
}
.sequence-layer-toggle b {
  color: #8fb4e8;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
}
.sequence-layer-toggle small {
  color: var(--dim);
  font-family: var(--mono);
  font-size: .6rem;
  line-height: 1.15;
}
.sequence-layer-toggle.active {
  border-color: rgba(168, 255, 31, .62);
  background: linear-gradient(135deg, rgba(168, 255, 31, .12), rgba(78, 179, 255, .1)), rgba(5, 13, 26, .92);
  box-shadow: inset 0 0 0 1px rgba(168, 255, 31, .12), 0 0 18px rgba(168, 255, 31, .08);
}
.sequence-layer-toggle.active b {
  color: #a8ff1f;
}


label { display: grid; gap: 4px; }
label span,
.kicker {
  color: #98ff18;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
input,
select {
  width: 100%;
  min-height: 36px;
  color: var(--txt);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
}
.date-picker-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: stretch;
  width: 100%;
  min-width: 164px;
}
.date-picker-control input {
  border-radius: 6px 0 0 6px;
  min-width: 142px;
}
.calendar-trigger {
  min-height: 36px;
  border: 1px solid var(--line-2);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #16223a, #0f172a);
  color: #ffffff;
  font-size: 0;
  cursor: pointer;
}
.calendar-trigger::before {
  content: "▦";
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
.calendar-trigger:hover {
  border-color: var(--gold);
  background: linear-gradient(180deg, #23375f, #13213d);
}
input:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.book-picker-field {
  position: relative;
  z-index: 40;
}
.book-picker {
  position: relative;
  width: 100%;
}
.book-picker-trigger {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--txt);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
  text-align: left;
}
.book-picker-trigger[aria-expanded="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(217, 164, 65, .35);
}
.book-picker-caret {
  color: var(--gold);
  font-size: 11px;
  flex-shrink: 0;
}
.book-picker-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 320px;
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #121a2c 0%, #0b101b 100%);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  overflow: hidden;
  /* Must stay above .book-picker-backdrop (999) even before .is-fixed is applied. */
  z-index: 1001;
}
.book-picker-panel.is-fixed {
  position: fixed;
  right: auto;
  z-index: 1001;
}
.book-picker-panel.is-bottom-sheet {
  left: 8px !important;
  right: 8px !important;
  width: auto !important;
  top: auto !important;
  bottom: 0 !important;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, .55);
}
.book-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(4, 8, 14, .62);
  backdrop-filter: blur(2px);
}
.book-picker-backdrop[hidden] {
  display: none !important;
}
.book-picker-panel.is-open-up {
  top: auto;
  bottom: calc(100% + 6px);
}
.book-picker-panel[hidden] {
  display: none !important;
}
.book-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 8px;
  border-bottom: 1px solid var(--line);
}
.book-picker-head strong {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.book-picker-sub {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--dim);
}
.book-picker-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #0f172a;
  color: var(--txt);
  font-size: 20px;
  line-height: 1;
}
.book-picker-close:hover {
  border-color: var(--red);
  color: var(--red);
}
.book-picker-actions {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.book-picker-actions button {
  flex: 1;
  min-height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #101a2d;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.book-picker-actions button:hover {
  border-color: var(--gold);
  color: var(--txt);
}
.book-picker-list {
  overflow: auto;
  padding: 6px 0;
  flex: 1 1 auto;
  min-height: 200px;
  max-height: min(52vh, 420px);
  -webkit-overflow-scrolling: touch;
}
.book-picker-empty {
  padding: 16px 12px 20px;
  color: var(--mut);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}
.book-picker-row {
  display: grid;
  grid-template-columns: 18px 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
}
.book-picker-row:hover {
  background: rgba(18, 92, 255, .08);
}
.book-picker-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}
.book-picker-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.book-status-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}
.book-status-light.is-game-yes {
  background: var(--green);
  color: var(--green);
}
.book-status-light.is-game-no {
  background: var(--red);
  color: var(--red);
}
.book-status-light.is-game-na {
  background: #3a4a62;
  color: #3a4a62;
  box-shadow: none;
}
.book-day-count {
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(217, 164, 65, .12);
  border: 1px solid rgba(217, 164, 65, .35);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.book-day-count.is-zero {
  opacity: .45;
  border-color: var(--line-2);
  color: var(--dim);
  background: transparent;
}
.actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  min-width: 0;
}
.actions button,
.fetch {
  min-height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--txt);
  background: #0b1422;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
}
.actions button:first-child,
.fetch.active {
  background: rgba(217, 164, 65, .14);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 22px rgba(217, 164, 65, .22), inset 0 0 14px rgba(217, 164, 65, .06);
}
#resetBoard { color: var(--gold); border-color: rgba(217, 164, 65, .7); }
.scroll-position-control {
  display: inline-grid;
  grid-template-columns: auto 116px;
  align-items: center;
  gap: 7px;
  min-width: 116px;
}
.scroll-position-control > span {
  color: #98ff18;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}
.scroll-position-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(32px, 1fr));
  overflow: hidden;
  min-height: 36px;
  border: 1px solid rgba(217, 164, 65, .58);
  border-radius: 6px;
  background: #070d17;
}
.scroll-position-toggle button {
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid rgba(217, 164, 65, .35);
  border-radius: 0;
  background: transparent;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 1000;
  box-shadow: none;
}
.scroll-position-toggle button:last-child { border-right: 0; }
.scroll-position-toggle button:hover {
  background: rgba(217, 164, 65, .12);
  color: #ffe3a3;
}
.scroll-position-toggle button.active {
  background: var(--gold);
  color: #07101b;
  box-shadow: inset 0 0 0 1px rgba(255, 243, 201, .28);
}
.system-export-button {
  border-color: rgba(78, 179, 255, .72) !important;
  background: linear-gradient(180deg, rgba(78, 179, 255, .22), rgba(7, 17, 31, .95)) !important;
  color: #dff3ff !important;
  box-shadow:
    0 0 0 1px rgba(78, 179, 255, .16),
    inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}
.system-export-button:hover:not(:disabled) {
  border-color: rgba(78, 179, 255, .95) !important;
  box-shadow:
    0 0 14px rgba(78, 179, 255, .25),
    inset 0 1px 0 rgba(255, 255, 255, .28) !important;
}
.system-export-button:disabled {
  cursor: wait;
  opacity: .58;
}
.run-summary {
  margin: 7px 0 0;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 11px;
}

.pattern-family-help-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(70, 161, 255, .28);
  border-radius: 7px;
  background: rgba(7, 18, 32, .72);
}
.pattern-help-kicker {
  display: block;
  margin: 0 0 3px;
  color: #46a1ff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pattern-family-summary {
  margin: 0;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
}
#scopePatternFamily.is-scope-loading {
  opacity: 0.72;
  cursor: progress;
  background-image: linear-gradient(90deg, transparent 0%, rgba(78, 179, 255, 0.12) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: patternFamilyScopePulse 1.2s ease infinite;
}

@keyframes patternFamilyScopePulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.pattern-family-summary strong {
  color: #ffffff;
}
.logic-help-button {
  min-height: 34px;
  border: 1px solid rgba(70, 161, 255, .58);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(18, 42, 74, .98), rgba(8, 20, 36, .98));
  color: #9bd0ff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 7px 11px;
}
.logic-help-button:hover {
  border-color: #46a1ff;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(70, 161, 255, .18);
}
.logic-help-button.compact {
  min-height: 30px;
  padding: 6px 9px;
}
.pattern-help-panel {
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid rgba(70, 161, 255, .36);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 24, 43, .98), rgba(5, 12, 22, .98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .32);
}
.pattern-help-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.pattern-help-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  letter-spacing: 0;
}
.pattern-guide-rules {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(217, 164, 65, .28);
  border-radius: 7px;
  background: rgba(217, 164, 65, .08);
}
.pattern-guide-rules p {
  margin: 0;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
}
.pattern-guide-rules strong {
  color: #ffffff;
}
.pattern-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 8px;
}
.pattern-guide-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 148px;
  padding: 10px;
  border: 1px solid rgba(70, 161, 255, .24);
  border-radius: 7px;
  background: rgba(8, 17, 30, .88);
}
.pattern-guide-card.diagnostic {
  border-color: rgba(250, 128, 114, .34);
  background: rgba(50, 20, 18, .38);
}
.pattern-guide-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}
.pattern-guide-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.2;
}
.pattern-guide-card-head span,
.pattern-guide-badge {
  flex: 0 0 auto;
  color: #46a1ff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .08em;
}
.pattern-guide-card p,
.pattern-guide-card small {
  margin: 0;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.45;
}
.pattern-guide-card small {
  color: var(--dim);
}
.pattern-guide-badge {
  justify-self: start;
  margin-top: 2px;
  padding: 3px 6px;
  border: 1px solid rgba(61, 214, 140, .44);
  border-radius: 999px;
  color: #3dd68c;
  background: rgba(61, 214, 140, .08);
}
.pattern-guide-badge.diagnostic {
  border-color: rgba(250, 128, 114, .48);
  color: #fa8072;
  background: rgba(250, 128, 114, .1);
}

.board-utility-panel {
  position: relative;
  z-index: 68;
  display: grid;
  gap: 0;
  background: #08111e;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .2);
  backface-visibility: hidden;
  transform: translateZ(0);
}
.system-collapsible--utility:not([open]) > .system-panel-summary {
  background:
    linear-gradient(90deg, rgba(217, 164, 65, .08), transparent 42%),
    rgba(8, 17, 30, .92);
}
.system-collapsible--utility:not([open]) > .system-panel-summary .system-panel-summary-title {
  color: #a8ff1f;
}
.system-collapsible--utility:not([open]) > .system-panel-summary .system-panel-summary-hint {
  color: var(--gold);
}

.lensdeck {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 8px 18px;
}
.fetch { min-width: 176px; text-align: left; transition: all .18s ease; }
.fetch:hover { border-color: rgba(217, 164, 65, .45); color: var(--txt); }
.fetch.inactive {
  border-color: rgba(105, 121, 145, .42);
  color: rgba(198, 213, 232, .58);
  background: #111827;
  box-shadow: none;
}
.fetch.inactive small {
  color: rgba(198, 213, 232, .42);
}
.fetch[data-lens="ALL"] {
  border-color: rgba(217, 164, 65, .95);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(217, 164, 65, .18);
}
.fetch[data-lens="ALL"].inactive {
  border-color: rgba(105, 121, 145, .5);
  color: #9aa7ba;
  background: #151a23;
  box-shadow: none;
}
.fetch[data-lens="ALL"].active {
  background: #ffd21f;
  border-color: #ffd277;
  color: #07101b;
  box-shadow: 0 0 30px rgba(255, 210, 31, .55), inset 0 0 0 1px rgba(255, 246, 210, .58);
}
.fetch[data-lens="ALL"].active small {
  color: rgba(7, 16, 27, .82);
}
.fetch small {
  display: block;
  color: rgba(255, 255, 255, .62);
  font-size: 8px;
  letter-spacing: .2em;
  margin-top: 2px;
}
.keyreadout {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 11px;
}
.keyreadout b,
.keypill { color: var(--gold); }
.keypill {
  border: 1px solid rgba(217, 164, 65, .45);
  background: rgba(217, 164, 65, .14);
  padding: 3px 8px;
  border-radius: 4px;
}

.schedule-panel {
  display: grid;
  grid-template-columns: minmax(190px, 236px) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 8px 14px 6px;
}
.schedule-panel--primary {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 20, 33, .98) 0%, rgba(6, 14, 24, .92) 100%);
}
.schedule-panel-head {
  display: grid;
  gap: 4px;
  align-content: start;
}
.schedule-today-btn {
  justify-self: start;
  margin-top: 2px;
  border: 1px solid rgba(152, 255, 24, .55);
  border-radius: 6px;
  background: rgba(152, 255, 24, .12);
  color: #98ff18;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 10px;
  cursor: pointer;
}
.schedule-today-btn:hover {
  background: rgba(152, 255, 24, .2);
}
.schedule-panel h2,
.boardhead h2 {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: .05em;
}
.game-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 194px);
  grid-template-columns: none;
  gap: 6px;
  margin-top: 0;
  min-height: 200px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding-bottom: 9px;
}
.game-card-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.game-card-stack.active {
  filter: drop-shadow(0 0 10px rgba(152, 255, 24, .22));
}
.game-card-stack.is-loading-board .game-card {
  opacity: .82;
}
.game-card {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #091421;
  color: var(--txt);
  text-align: left;
  padding: 6px 8px;
  width: 100%;
}
.game-card-stack.active .game-card {
  border-color: #98ff18;
  box-shadow:
    inset 0 0 0 2px rgba(152, 255, 24, .8),
    0 0 0 1px rgba(152, 255, 24, .65),
    0 0 18px rgba(152, 255, 24, .38);
}
.game-card-stats {
  border: 1px solid #1a2744;
  border-radius: 6px;
  background: linear-gradient(180deg, #060b14 0%, #040912 100%);
  padding: 5px 7px;
  display: grid;
  gap: 2px;
}
.game-card-stack.active .game-card-stats {
  border-color: rgba(152, 255, 24, .45);
}
.game-card-stats-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.25;
  color: var(--dim);
}
.game-card-stats-row strong {
  color: var(--txt);
  font-size: 10px;
  font-weight: 900;
}
.game-card-stats-row.is-win strong { color: #22c55e; }
.game-card-stats-row.is-loss strong { color: #ef4444; }
.game-card-stats-row.is-avg strong { color: #f59e0b; }
.game-card.final {
  height: 64px;
  min-height: 58px;
  overflow: hidden;
  background: #252a32;
  border-color: #566170;
  padding: 5px 7px;
}
.game-card.live {
  background: #102031;
  border-color: rgba(78, 179, 255, .7);
  box-shadow: inset 0 0 0 1px rgba(78, 179, 255, .22);
}
.game-card.final.active {
  border-color: #98ff18;
  box-shadow:
    inset 0 0 0 2px rgba(152, 255, 24, .86),
    0 0 0 1px rgba(152, 255, 24, .7),
    0 0 20px rgba(152, 255, 24, .42);
}
.game-card b { display: block; font-size: 11px; line-height: 1.1; }
.game-card span {
  display: block;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 9px;
  margin-top: 3px;
}
.game-card .game-card-weather {
  display: block;
  margin-top: 3px;
  color: #d7eaff;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-card code {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
}
.game-card.final code { display: none; }
.game-card-final {
  color: #ffffff;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  line-height: 1;
  margin-bottom: 3px;
}
.game-card.final .game-card-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 950;
  line-height: 1.05;
  margin-top: 2px;
}
.game-card.final .game-card-scoreline span {
  color: #ffffff;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 950;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-card.final .game-card-scoreline strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 18px;
  border: 1px solid rgba(152, 255, 24, .45);
  border-radius: 4px;
  background: #101820;
  color: #98ff18;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 1000;
  padding: 1px 5px;
  text-align: center;
}

.boardwrap {
  overflow-x: clip;
  padding: 16px 22px 60px;
  scroll-margin-top: 12px;
}
.boardhead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.statuschip {
  border: 1px solid rgba(217, 164, 65, .55);
  color: var(--gold);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}
.board-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.copy-picks-button {
  max-width: 100%;
  border: 1px solid rgba(78, 179, 255, .5);
  border-radius: 999px;
  background: rgba(18, 92, 255, .18);
  color: #dbeafe;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
}
.copy-picks-button:hover,
.copy-picks-button:focus-visible {
  background: rgba(18, 92, 255, .28);
  border-color: rgba(78, 179, 255, .82);
  outline: 0;
}
.top-records-banner {
  display: block;
  min-height: 100px;
  padding: 8px 18px 9px;
  border: 1px solid rgba(78, 179, 255, .32);
  border-left: 3px solid #4eb3ff;
  border-right: 0;
  background: linear-gradient(90deg, rgba(10, 26, 46, .98), rgba(4, 13, 26, .94));
  color: var(--mut);
  overflow: hidden;
}
.top-records-sections {
  display: grid;
  gap: 7px;
}
.top-slider-scope-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin-bottom: 7px;
}
.top-slider-scope-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 2px;
  border: 1px solid rgba(78, 179, 255, .38);
  border-radius: 7px;
  background: rgba(4, 13, 26, .74);
}
.top-slider-scope-toggle button {
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #7dbdf2;
  font: 1000 10px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.top-slider-scope-toggle button[aria-pressed="true"] {
  background: linear-gradient(180deg, #e1ad3d, #b67b17);
  color: #071321;
  box-shadow: 0 0 0 1px rgba(255, 224, 137, .42), 0 0 12px rgba(225, 173, 61, .22);
}
.top-slider-scope-summary {
  flex: 1 1 260px;
  min-width: 0;
  overflow: hidden;
  color: #c6e5ff;
  font: 900 11px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-slider-rule {
  flex: 0 0 auto;
  margin-left: auto;
  max-width: min(520px, 42vw);
  padding: 4px 8px;
  border: 1px solid rgba(78, 179, 255, .36);
  border-radius: 999px;
  background: rgba(78, 179, 255, .08);
  color: #c7e8ff;
  font: 1000 10px var(--mono);
  letter-spacing: .03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audit-guide-button {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(78, 179, 255, .46);
  border-radius: 999px;
  background: rgba(78, 179, 255, .1);
  color: #4eb3ff;
  font: 1000 10px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.audit-guide-button:hover,
.audit-guide-button:focus-visible {
  background: rgba(78, 179, 255, .18);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(78, 179, 255, .2);
}
.top-slider-filter-legend {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 4px 0 10px;
  padding: 8px;
  overflow: visible;
  border: 1px solid rgba(78, 179, 255, .18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(9, 19, 34, .76), rgba(4, 10, 20, .52));
}
.top-slider-filter-legend-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin-bottom: 7px;
}
.top-slider-filter-legend-head b {
  flex: 0 0 auto;
  color: #f4c35c;
  font: 1000 10px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.top-slider-filter-legend-head span {
  min-width: 0;
  color: #9fb6ce;
  font: 700 10px/1.35 var(--mono);
}
.top-slider-filter-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px;
  min-width: 0;
}
.top-slider-filter-legend-grid span,
.top-slider-filter-legend-grid em {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 5px;
  max-width: 100%;
  min-height: 22px;
  padding: 6px 8px;
  border: 1px solid rgba(78, 179, 255, .24);
  border-radius: 8px;
  background: rgba(4, 13, 26, .62);
  color: #a9c3da;
  font: 800 9px/1.28 var(--mono);
  letter-spacing: .02em;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
.top-slider-filter-legend-grid span {
  max-width: 260px;
}
.top-slider-filter-legend-grid b {
  color: #9dff32;
  font-weight: 1000;
  letter-spacing: .08em;
}
.top-slider-filter-legend-grid em {
  grid-column: 1 / -1;
  border-color: rgba(217, 164, 65, .34);
  color: #f4c35c;
  font-style: normal;
}
.top-slider-filter-legend-grid span:first-child {
  border-color: rgba(157, 255, 50, .42);
  background: linear-gradient(135deg, rgba(157, 255, 50, .12), rgba(78, 179, 255, .08));
  color: #d9ecff;
}
.audit-guide-rules article {
  border-color: rgba(157, 255, 50, .22);
}
.top-records-row {
  display: grid;
  grid-template-columns: minmax(118px, 132px) minmax(92px, 116px) minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  row-gap: 6px;
  min-width: 0;
  overflow: visible;
  padding-bottom: 1px;
}
.ranking-filter-drawer {
  position: relative;
  min-width: 0;
  color: #4eb3ff;
  font-family: var(--mono);
}
.ranking-filter-drawer summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 6px;
  border: 1px solid rgba(78, 179, 255, .44);
  border-radius: 7px;
  background: rgba(4, 13, 26, .78);
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}
.ranking-filter-drawer summary:hover,
.ranking-filter-drawer summary:focus-visible {
  outline: 0;
  border-color: rgba(78, 179, 255, .78);
  box-shadow: 0 0 0 2px rgba(78, 179, 255, .12);
}
.ranking-filter-drawer summary::-webkit-details-marker { display: none; }
.ranking-filter-drawer summary span {
  color: #9dff32;
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: .075em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranking-filter-drawer summary em {
  min-width: 34px;
  padding: 2px 5px;
  border: 1px solid rgba(78, 179, 255, .26);
  border-radius: 999px;
  color: #8fa4bc;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  justify-self: end;
  text-align: center;
}
.ranking-filter-drawer[open] {
  grid-column: 1 / -1;
}
.top-records-row-filter-open {
  grid-template-columns: minmax(0, 1fr);
}
.top-records-row-filter-open > .top-records-title,
.top-records-row-filter-open > .top-records-list {
  display: none;
}
.ranking-filter-drawer[open] summary {
  border-color: rgba(225, 173, 61, .74);
  background: linear-gradient(135deg, rgba(225, 173, 61, .18), rgba(4, 13, 26, .88));
}
.ranking-filter-drawer[open] summary em {
  color: #f4c35c;
}
.ranking-filter-controls {
  position: relative;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 7px;
  padding: 8px;
  max-width: 100%;
  overflow: visible;
  border: 1px solid rgba(78, 179, 255, .34);
  border-radius: 8px;
  background: rgba(4, 13, 26, .9);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .42);
}
.ranking-filter-drawer:not([open]) .ranking-filter-controls {
  display: none;
}
.top-records-empty {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  max-width: 100%;
  color: #c8d6e6;
  min-width: 0;
  line-height: 1.35;
}
.top-records-title {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  min-width: 0;
  justify-content: flex-start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-records-empty b {
  color: #d9ecff;
  font-weight: 1000;
  min-width: min(260px, 100%);
}
.top-records-empty em {
  color: #79bff7;
  font-style: normal;
  font-weight: 900;
  overflow-wrap: anywhere;
  white-space: normal;
}
.top-records-empty span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.top-records-empty button,
.top-records-empty a {
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(78, 179, 255, .44);
  border-radius: 6px;
  background: rgba(78, 179, 255, .1);
  color: #d9ecff;
  font: 1000 9px var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.top-records-empty button:hover,
.top-records-empty button:focus-visible,
.top-records-empty a:hover,
.top-records-empty a:focus-visible {
  border-color: rgba(244, 195, 92, .78);
  background: rgba(225, 173, 61, .2);
  color: #ffffff;
  outline: 0;
}
.mov-rank-control,
.diff-rank-control,
.priority-rank-control,
.x-rank-control {
  flex: 1 1 124px;
  max-width: 170px;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 44px 18px minmax(54px, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 3px 5px;
  border: 1px solid rgba(78, 179, 255, .38);
  border-radius: 6px;
  background: rgba(4, 13, 26, .72);
  color: #9dff32;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.priority-rank-control {
  width: 100%;
  min-width: 0;
  grid-template-columns: 28px 18px minmax(54px, 1fr);
}
.diff-rank-control {
  width: 100%;
  min-width: 0;
  grid-template-columns: 48px 18px minmax(54px, 1fr);
}
.x-rank-control {
  width: 100%;
  min-width: 0;
  grid-template-columns: 30px 18px minmax(54px, 1fr);
}
.fill-rank-control {
  flex: 1 1 150px;
  max-width: 210px;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 64px 18px minmax(60px, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 3px 6px;
  border: 1px solid rgba(78, 179, 255, .38);
  border-radius: 6px;
  background: rgba(4, 13, 26, .72);
  color: #4eb3ff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rank-preset-control {
  flex: 1 1 520px;
  max-width: min(100%, 760px);
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 58px 18px minmax(120px, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 221, 94, .88);
  border-radius: 6px;
  background:
    radial-gradient(circle at 18px 18px, rgba(255, 232, 107, .22), transparent 42px),
    linear-gradient(135deg, rgba(225, 173, 61, .22), rgba(4, 13, 26, .88));
  box-shadow:
    0 0 0 1px rgba(255, 232, 107, .18),
    0 0 22px rgba(244, 195, 92, .22);
  color: #f4c35c;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rank-preset-control select,
.rank-preset-control button {
  width: 100%;
  min-width: 0;
  min-height: 26px;
  border: 1px solid rgba(198, 229, 255, .68);
  border-radius: 5px;
  background: #071321;
  color: #ffffff;
  font: 1000 11px var(--mono);
}
.rank-preset-control button {
  cursor: pointer;
  color: #f4c35c;
  text-transform: uppercase;
}
.rank-preset-control-buttons {
  align-items: stretch;
  grid-template-columns: 66px 18px minmax(0, 1fr);
  white-space: normal;
}
.rank-preset-button-groups {
  display: grid;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}
.rank-preset-button-group {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.rank-preset-button-group strong {
  color: #4eb3ff;
  font: 1000 9px var(--mono);
  letter-spacing: .06em;
  white-space: nowrap;
}
.rank-preset-button-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.rank-preset-button-strip::-webkit-scrollbar {
  height: 6px;
}
.rank-preset-button-strip::-webkit-scrollbar-thumb {
  background: rgba(78, 179, 255, .52);
  border-radius: 999px;
}
.rank-preset-create {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(96px, auto);
  gap: 5px;
  min-width: 0;
}
.rank-preset-create input {
  min-width: 0;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(198, 229, 255, .52);
  border-radius: 5px;
  background: rgba(3, 11, 22, .96);
  color: #ffffff;
  font: 1000 10px var(--mono);
}
.rank-preset-create input:focus {
  border-color: rgba(78, 179, 255, .95);
  box-shadow: 0 0 0 2px rgba(78, 179, 255, .16);
  outline: 0;
}
.rank-preset-control .rank-preset-button {
  flex: 0 0 auto;
  width: auto;
  max-width: 190px;
  min-height: 24px;
  padding: 3px 8px;
  border-color: rgba(255, 229, 94, .96);
  background:
    radial-gradient(circle at 18px 50%, rgba(255, 244, 174, .36), transparent 34px),
    linear-gradient(180deg, rgba(255, 213, 77, .35), rgba(5, 16, 31, .95));
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255, 244, 174, .22) inset,
    0 0 16px rgba(255, 213, 77, .52),
    0 0 34px rgba(78, 179, 255, .18);
  text-shadow: 0 0 8px rgba(255, 244, 174, .65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-preset-button-pair {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: min(680px, 92vw);
  padding: 2px;
  border: 1px solid rgba(78, 179, 255, .42);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 213, 77, .14), rgba(3, 11, 22, .8));
  box-shadow: 0 0 18px rgba(78, 179, 255, .16);
}
.rank-preset-button-pair .rank-preset-button em {
  margin-left: 6px;
  color: #ffb4b7;
  font-style: normal;
}
.rank-preset-results-button,
.rank-preset-life-button {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 50px;
  min-height: 24px !important;
  padding: 2px 7px;
  border: 1px solid rgba(86, 204, 255, .9) !important;
  border-radius: 6px;
  background: rgba(6, 38, 70, .98) !important;
  color: #9de3ff !important;
  box-shadow: 0 0 12px rgba(78, 179, 255, .36);
  font: 1000 9px var(--mono) !important;
  text-transform: uppercase;
}
.rank-preset-life-controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.rank-preset-life-controls-strip .rank-preset-life-button {
  min-width: 38px;
  padding-inline: 5px;
}
.rank-preset-life-button {
  border-color: rgba(255, 221, 94, .86) !important;
  color: #ffe07a !important;
  box-shadow: 0 0 12px rgba(255, 213, 77, .32);
}
.rank-preset-life-active {
  border-color: rgba(48, 229, 167, .68) !important;
  color: #30e5a7 !important;
}
.rank-preset-life-delete {
  border-color: rgba(255, 90, 96, .68) !important;
  color: #ff8f94 !important;
}
.rank-preset-status-paused,
.rank-preset-status-stopped {
  opacity: .68;
}
.rank-preset-control .rank-preset-button:hover,
.rank-preset-control .rank-preset-button:focus-visible,
.rank-preset-results-button:hover,
.rank-preset-results-button:focus-visible,
.rank-preset-life-button:hover,
.rank-preset-life-button:focus-visible {
  border-color: #ffffff !important;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .28),
    0 0 20px rgba(255, 213, 77, .72),
    0 0 44px rgba(78, 179, 255, .42);
  outline: none;
}
.rank-preset-error {
  border-color: rgba(255, 90, 96, .72);
}
.line-type-control,
.data-variable-control {
  position: relative;
  flex: 1 1 260px;
  max-width: min(100%, 430px);
  width: 100%;
  min-width: 0;
  min-height: 34px;
  color: #4eb3ff;
  font-family: var(--mono);
}
.line-type-control summary,
.data-variable-control summary {
  display: grid;
  grid-template-columns: auto 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 3px 7px;
  border: 1px solid rgba(78, 179, 255, .38);
  border-radius: 6px;
  background: rgba(4, 13, 26, .72);
  cursor: pointer;
  list-style: none;
}
.line-type-control summary::-webkit-details-marker,
.data-variable-control summary::-webkit-details-marker { display: none; }
.line-type-control summary b,
.data-variable-control summary b {
  color: #9dff32;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .08em;
}
.line-type-control summary span,
.data-variable-control summary span {
  color: #ffffff;
  font-size: 11px;
  font-weight: 1000;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-info-chip {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(198, 229, 255, .75);
  border-radius: 999px;
  background: rgba(78, 179, 255, .12);
  color: #d9ecff;
  font: 1000 11px var(--mono);
  line-height: 1;
  cursor: help;
  box-shadow: 0 0 8px rgba(78, 179, 255, .18);
}
.rank-info-chip:hover,
.rank-info-chip:focus-visible {
  border-color: rgba(244, 195, 92, .9);
  background: rgba(244, 195, 92, .18);
  color: #ffffff;
  outline: 0;
}
.rank-info-popover {
  position: fixed;
  z-index: 420;
  width: min(320px, calc(100vw - 24px));
  padding: 11px 12px;
  border: 1px solid rgba(244, 195, 92, .72);
  border-radius: 8px;
  background: #071321;
  color: #d9ecff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .56), 0 0 0 1px rgba(78, 179, 255, .12) inset;
}
.rank-info-popover button {
  float: right;
  min-height: 22px;
  margin: 0 0 6px 10px;
  padding: 0 8px;
  border: 1px solid rgba(78, 179, 255, .42);
  border-radius: 5px;
  background: rgba(78, 179, 255, .1);
  color: #ffffff;
  font: 1000 9px var(--mono);
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}
.rank-info-popover button:hover,
.rank-info-popover button:focus-visible {
  border-color: rgba(244, 195, 92, .9);
  background: rgba(244, 195, 92, .18);
  color: #ffffff;
  outline: 2px solid rgba(78, 179, 255, .72);
  outline-offset: 2px;
}
.rank-info-popover p {
  margin: 0;
  color: #d9ecff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}
.line-type-menu,
.data-variable-menu {
  position: relative;
  width: 100%;
  min-width: 0;
  max-height: min(360px, calc(100vh - 220px));
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid rgba(78, 179, 255, .48);
  border-radius: 8px;
  background: #071321;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
  scrollbar-color: rgba(78, 179, 255, .72) rgba(4, 13, 26, .92);
  scrollbar-width: thin;
}
.line-type-control[open],
.data-variable-control[open] {
  max-width: 100%;
  flex-basis: min(100%, 520px);
  z-index: 65;
}
.line-type-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 9px;
}
.data-variable-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.line-type-actions button,
.line-type-group-head button,
.data-variable-actions button {
  min-height: 24px;
  border: 1px solid rgba(78, 179, 255, .38);
  border-radius: 5px;
  background: rgba(78, 179, 255, .1);
  color: #d9ecff;
  font: 1000 10px var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.line-type-actions button:hover,
.line-type-group-head button:hover,
.data-variable-actions button:hover,
.line-type-actions button:focus-visible,
.line-type-group-head button:focus-visible,
.data-variable-actions button:focus-visible {
  background: rgba(225, 173, 61, .22);
  border-color: rgba(244, 195, 92, .72);
  outline: 0;
}
.line-type-menu section + section,
.data-variable-menu section + section {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(78, 179, 255, .18);
}
.line-type-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.line-type-group-head h4 {
  margin: 0 0 6px;
  color: #4eb3ff;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.line-type-group-head h4 {
  margin: 0;
}
.line-type-group-head span {
  display: inline-flex;
  gap: 4px;
}
.line-type-group-head button {
  min-height: 21px;
  padding: 0 6px;
  font-size: 8px;
}
.line-type-menu label,
.data-variable-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  color: #d9ecff;
  font-size: 11px;
  font-weight: 900;
}
.line-type-menu input,
.data-variable-menu input {
  width: 16px;
  height: 16px;
  accent-color: #e1ad3d;
}
.data-variable-menu h4 {
  margin: 0 0 7px;
  color: #4eb3ff;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.data-sort-mode {
  display: grid !important;
  align-items: stretch !important;
  gap: 6px !important;
}
.data-sort-mode span {
  color: #d9ecff;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.data-sort-mode select {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(78, 179, 255, .38);
  border-radius: 6px;
  background: #0b1728;
  color: #ffffff;
  font: 1000 11px var(--mono);
  letter-spacing: .04em;
}
.mov-rank-control input,
.diff-rank-control input,
.priority-rank-control input,
.x-rank-control input,
.fill-rank-control input {
  appearance: textfield;
  -moz-appearance: textfield;
  width: 100%;
  min-width: 0;
  min-height: 26px;
  padding: 0 4px;
  border: 1px solid rgba(198, 229, 255, .68);
  border-radius: 5px;
  background: #071321;
  color: #ffffff;
  font: 1000 13px var(--mono);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(78, 179, 255, .18), 0 0 8px rgba(78, 179, 255, .12);
}
.mov-rank-control input::placeholder,
.diff-rank-control input::placeholder,
.priority-rank-control input::placeholder,
.x-rank-control input::placeholder,
.fill-rank-control input::placeholder {
  color: rgba(198, 229, 255, .42);
  font-size: 9px;
}
.mov-rank-control input::-webkit-outer-spin-button,
.mov-rank-control input::-webkit-inner-spin-button,
.diff-rank-control input::-webkit-outer-spin-button,
.diff-rank-control input::-webkit-inner-spin-button,
.priority-rank-control input::-webkit-outer-spin-button,
.priority-rank-control input::-webkit-inner-spin-button,
.x-rank-control input::-webkit-outer-spin-button,
.x-rank-control input::-webkit-inner-spin-button,
.fill-rank-control input::-webkit-outer-spin-button,
.fill-rank-control input::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
.top-records-title {
  width: 100%;
  min-width: 0;
  padding-left: 2px;
  color: #4eb3ff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-records-empty {
  color: var(--mut);
  font-family: var(--mono);
  font-size: 11px;
}
.top-records-loading-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 4px;
  padding: 4px 8px;
  border: 1px solid rgba(78, 179, 255, .34);
  border-radius: 999px;
  background: rgba(4, 13, 26, .76);
  color: #d9ecff;
  font: 900 10px var(--mono);
  overflow-wrap: anywhere;
}
.top-records-list {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1px;
}
.audit-guide-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  cursor: pointer;
}
.audit-guide-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .66);
}
.audit-guide-card {
  position: relative;
  width: min(920px, 96vw);
  max-height: min(760px, 90vh);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(78, 179, 255, .52);
  border-radius: 10px;
  background: linear-gradient(180deg, #0b1d31, #071321);
  color: #d9ecff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7), 0 0 0 1px rgba(78, 179, 255, .16) inset;
  cursor: default;
}
.audit-guide-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: -18px;
  z-index: 1;
  margin-bottom: 12px;
  padding: 0 0 12px;
  background: linear-gradient(180deg, #0b1d31 75%, rgba(11, 29, 49, 0));
}
.audit-guide-card header span {
  color: #9dff32;
  font: 1000 10px var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.audit-guide-card h3 {
  margin: 3px 0 0;
  color: #ffffff;
  font-size: 24px;
}
.audit-guide-card button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(198, 229, 255, .44);
  border-radius: 7px;
  background: rgba(4, 13, 26, .82);
  color: #ffffff;
  font: 1000 11px var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}
.audit-guide-card p {
  max-width: 820px;
  margin: 0 0 14px;
  color: #b9c8d8;
  font-size: 14px;
  line-height: 1.5;
}
.audit-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.audit-guide-grid article {
  min-height: 104px;
  padding: 11px;
  border: 1px solid rgba(78, 179, 255, .24);
  border-radius: 8px;
  background: rgba(4, 13, 26, .58);
}
.audit-guide-grid b {
  display: block;
  margin-bottom: 6px;
  color: #f4c35c;
  font: 1000 12px var(--mono);
  text-transform: uppercase;
}
.audit-guide-grid span {
  color: #d9ecff;
  font-size: 12px;
  line-height: 1.42;
}
.audit-guide-card footer {
  margin-top: 14px;
  color: #9dff32;
  font: 900 12px var(--mono);
}
.rank-preset-results-panel {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 20px;
  cursor: pointer;
}
.rank-preset-results-card {
  width: min(1180px, 96vw);
}
.rank-preset-results-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.rank-preset-results-summary article,
.rank-preset-results-empty,
.rank-preset-results-note {
  padding: 10px;
  border: 1px solid rgba(78, 179, 255, .24);
  border-radius: 8px;
  background: rgba(4, 13, 26, .58);
}
.rank-preset-results-summary b {
  display: block;
  color: #4eb3ff;
  font: 1000 10px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rank-preset-results-summary span {
  display: block;
  margin-top: 4px;
  color: #fff;
  font: 1000 13px var(--mono);
  line-height: 1.35;
}
.rank-preset-results-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
.rank-preset-results-note {
  color: #b9c8d8 !important;
}
.rank-preset-results-empty {
  color: #ffb4b7;
  font: 1000 13px var(--mono);
}
.rank-preset-results-day {
  margin-top: 12px;
}
.rank-preset-results-day h4 {
  margin: 0 0 6px;
  color: #f4c35c;
  font: 1000 13px var(--mono);
  text-transform: uppercase;
}
.rank-preset-results-table-wrap {
  max-height: 300px;
  overflow: auto;
  border: 1px solid rgba(78, 179, 255, .24);
  border-radius: 8px;
}
.rank-preset-results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: rgba(3, 11, 22, .72);
}
.rank-preset-results-table th,
.rank-preset-results-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(198, 229, 255, .12);
  color: #d9ecff;
  font: 900 11px var(--mono);
  text-align: left;
  white-space: nowrap;
}
.rank-preset-results-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #091829;
  color: #4eb3ff;
  text-transform: uppercase;
}
.rank-preset-status-active {
  color: #30e5a7;
}
.rank-preset-outcome-win {
  color: #30e5a7 !important;
}
.rank-preset-outcome-loss {
  color: #ff8f94 !important;
}
.rank-preset-outcome-push {
  color: #f4c35c !important;
}
.rank-preset-outcome-pending {
  color: #b9c8d8 !important;
}
.rank-preset-status-paused,
.rank-preset-status-stopped {
  color: #f4c35c !important;
}
.rank-preset-status-deleted {
  color: #ff8f94 !important;
}
.top-record-chip {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border: 1px solid rgba(217, 164, 65, .44);
  border-radius: 999px;
  background: rgba(217, 164, 65, .1);
  color: #fff4ce;
  padding: 4px 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}
.top-record-chip:hover,
.top-record-chip:focus-visible {
  border-color: rgba(217, 164, 65, .78);
  background: rgba(217, 164, 65, .18);
  outline: 0;
}
.top-record-chip b {
  color: var(--green);
}
.top-record-chip span {
  color: #8fb9ff;
}
.top-record-chip .top-record-game {
  max-width: 190px;
  overflow: hidden;
  padding: 2px 6px;
  border: 1px solid rgba(78, 179, 255, .36);
  border-radius: 999px;
  background: rgba(78, 179, 255, .12);
  color: #c7e8ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-record-chip .top-record-lens {
  flex: 0 0 auto;
  min-width: 50px;
  padding: 2px 6px;
  border: 1px solid rgba(64, 224, 208, .62);
  border-radius: 999px;
  background: rgba(64, 224, 208, .14);
  color: #d8fffb;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .03em;
  text-align: center;
  white-space: nowrap;
}
.top-record-chip strong {
  color: #fff;
}
.top-record-chip em {
  color: var(--gold);
  font-style: normal;
}
.top-record-chip.is-jump-target,
.mrow.is-jump-target td {
  animation: jumpTargetGlow 1.6s ease-out 1;
}
.mrow.is-jump-target td {
  background: rgba(255, 213, 77, .14) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 213, 77, .52), inset 4px 0 0 rgba(255, 213, 77, .95);
}
@keyframes jumpTargetGlow {
  0% { filter: brightness(1.55); }
  100% { filter: brightness(1); }
}
.tscroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}
.movement-board-section {
  content-visibility: auto;
  contain-intrinsic-size: 720px 420px;
}
#perBookContainer {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  content-visibility: visible;
}
.boardwrap > .tscroll.is-dormant-board-host {
  display: none;
  margin: 0;
  border: 0;
  min-height: 0;
  padding: 0;
}
.mobile-board-scroll-hint {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(78, 179, 255, .35);
  border-radius: 8px;
  background: rgba(8, 22, 40, .92);
  color: #9cc7ff;
  font-size: 12px;
  line-height: 1.45;
}
table {
  width: 100%;
  min-width: 1680px;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12px;
}
.movement-table,
#movementBoard,
#extremeBoard {
  width: var(--movement-board-width, 3564px);
  min-width: var(--movement-board-width, 3564px);
  table-layout: fixed;
  border-collapse: collapse;
}
.movement-table th,
.movement-table td,
#movementBoard th,
#movementBoard td,
#extremeBoard th,
#extremeBoard td {
  border-right: 1px solid rgba(217, 164, 65, .18);
  overflow: hidden;
  text-overflow: ellipsis;
}
.movement-table th:last-child,
.movement-table td:last-child,
#movementBoard th:last-child,
#movementBoard td:last-child,
#extremeBoard th:last-child,
#extremeBoard td:last-child {
  border-right: 0;
}
.board-best-row th {
  height: 42px;
  padding: 5px 6px;
  background: #071321;
  border-bottom: 1px solid rgba(78, 179, 255, .28);
  vertical-align: middle;
}
.movement-game-cell {
  display: block;
  max-width: 100%;
  color: #cbd5e1;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.movement-sequence-row td {
  background: linear-gradient(90deg, rgba(14, 165, 233, .16), rgba(217, 164, 65, .08));
  border-top: 1px solid rgba(78, 179, 255, .38);
  border-bottom: 1px solid rgba(217, 164, 65, .22);
  color: #d8e7ff;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0;
  padding: 6px 10px;
  white-space: nowrap;
}
.movement-sequence-row span {
  color: #ffffff;
  font-weight: 800;
  margin-right: 10px;
}
.movement-sequence-row b {
  color: #7dd3fc;
  font-weight: 800;
  margin-right: 10px;
}
.movement-sequence-row em {
  color: #facc15;
  font-style: normal;
}
.board-best-cell {
  color: var(--dim);
  text-align: center;
}
.board-best-wl,
.board-best-play-cell {
  background: linear-gradient(180deg, rgba(10, 26, 46, .98), rgba(4, 13, 26, .96));
}
.board-best-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  color: var(--push);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
}
.board-best-chip {
  --side-card-color: #7fd3ff;
  --side-card-border: rgba(78, 179, 255, .46);
  --side-card-bg: rgba(78, 179, 255, .08);
  --side-card-shadow: rgba(78, 179, 255, .22);
  position: relative;
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 2px;
  border: 1px solid var(--side-card-border);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(17, 35, 49, .98), rgba(9, 22, 34, .98)),
    var(--side-card-bg);
  color: var(--side-card-color);
  padding: 6px 34px 6px 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 0 8px var(--side-card-shadow);
}
.board-best-chip.side-vis {
  --side-card-color: var(--side-vis);
  --side-card-border: rgba(64, 224, 208, .58);
  --side-card-bg: rgba(64, 224, 208, .11);
  --side-card-shadow: rgba(64, 224, 208, .3);
}
.board-best-chip.side-home {
  --side-card-color: var(--side-home);
  --side-card-border: rgba(211, 151, 248, .62);
  --side-card-bg: rgba(211, 151, 248, .12);
  --side-card-shadow: rgba(211, 151, 248, .32);
}
.board-best-chip.side-over {
  --side-card-color: var(--side-over);
  --side-card-border: rgba(186, 218, 85, .64);
  --side-card-bg: rgba(186, 218, 85, .12);
  --side-card-shadow: rgba(186, 218, 85, .3);
}
.board-best-chip.side-under {
  --side-card-color: var(--side-under);
  --side-card-border: rgba(250, 128, 114, .64);
  --side-card-bg: rgba(250, 128, 114, .12);
  --side-card-shadow: rgba(250, 128, 114, .32);
}
.board-best-chip.side-even {
  --side-card-color: #ffea00;
  --side-card-border: rgba(255, 234, 0, .64);
  --side-card-bg: rgba(255, 234, 0, .1);
  --side-card-shadow: rgba(255, 234, 0, .3);
}
.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 17px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 236, 145, .92);
  border-radius: 4px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .36) 0 10%, transparent 10% 24%, rgba(255, 255, 255, .28) 24% 33%, transparent 33% 100%),
    linear-gradient(180deg, #fff7b0 0%, #ffd54d 24%, #b87408 58%, #ffe48a 100%);
  box-shadow:
    0 0 12px rgba(255, 213, 77, .72),
    inset 0 1px 0 rgba(255, 255, 255, .78),
    inset 0 -1px 0 rgba(87, 50, 0, .72);
  color: #241500;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.rank-medal.gold {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .42) 0 10%, transparent 10% 24%, rgba(255, 255, 255, .32) 24% 33%, transparent 33% 100%),
    linear-gradient(180deg, #fff7b0 0%, #ffd54d 24%, #b87408 58%, #ffe48a 100%);
  border-color: rgba(255, 236, 145, .95);
  box-shadow:
    0 0 12px rgba(255, 213, 77, .75),
    inset 0 1px 0 rgba(255, 255, 255, .78),
    inset 0 -1px 0 rgba(87, 50, 0, .72);
  color: #241500;
}
.rank-medal.silver {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .5) 0 12%, transparent 12% 28%, rgba(255, 255, 255, .34) 28% 38%, transparent 38% 100%),
    linear-gradient(180deg, #ffffff 0%, #d8e5ee 28%, #8798a6 62%, #f5fbff 100%);
  border-color: rgba(238, 247, 255, .92);
  box-shadow:
    0 0 11px rgba(173, 216, 255, .6),
    inset 0 1px 0 rgba(255, 255, 255, .86),
    inset 0 -1px 0 rgba(55, 70, 85, .72);
  color: #102132;
}
.rank-medal.green {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .38) 0 11%, transparent 11% 27%, rgba(255, 255, 255, .24) 27% 36%, transparent 36% 100%),
    linear-gradient(180deg, #c3ffd9 0%, #3dd68c 28%, #08784d 64%, #9dffc6 100%);
  border-color: rgba(147, 255, 191, .9);
  box-shadow:
    0 0 11px rgba(61, 214, 140, .62),
    inset 0 1px 0 rgba(255, 255, 255, .74),
    inset 0 -1px 0 rgba(0, 74, 45, .74);
  color: #042a1a;
}
.board-best-chip .rank-medal {
  position: absolute;
  top: 3px;
  right: 3px;
  transform: rotate(2deg);
}
.board-best-chip .mov-cloud-badge {
  border-color: color-mix(in srgb, var(--side-card-color) 62%, #ffffff 38%);
  background:
    linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--side-card-color) 18%, #f3f8ff 82%) 58%, color-mix(in srgb, var(--side-card-color) 34%, #d8e8fb 66%) 100%);
  box-shadow:
    0 0 8px rgba(255, 255, 255, .68),
    0 0 10px var(--side-card-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 color-mix(in srgb, var(--side-card-color) 34%, #071321 66%);
  color: #06121f;
}
.mov-cloud-badge {
  position: absolute;
  top: 3px;
  left: 4px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 20px;
  padding: 0 8px;
  box-sizing: border-box;
  overflow: hidden;
  border: 2px solid rgba(166, 206, 255, .98);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 58%, #d8e8fb 100%);
  box-shadow:
    0 0 8px rgba(255, 255, 255, .72),
    0 0 9px rgba(78, 179, 255, .36),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(67, 96, 132, .62);
  color: #071321;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  text-shadow: none;
}
.mov-cloud-badge.steam {
  border-color: rgba(255, 230, 122, .98);
  background:
    radial-gradient(circle at 20% 42%, #ffffff 0 24%, transparent 25%),
    radial-gradient(circle at 45% 20%, #ffffff 0 28%, transparent 29%),
    radial-gradient(circle at 70% 42%, #ffffff 0 26%, transparent 27%),
    linear-gradient(180deg, #ffffff 0%, #fff7d7 50%, #ffe37b 100%);
  box-shadow:
    0 0 8px rgba(255, 255, 255, .82),
    0 0 12px rgba(255, 213, 74, .62),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(132, 92, 11, .62);
  color: #071321;
}
.mov-cloud-badge.steam::after {
  display: none;
}
.top-record-chip .mov-cloud-badge {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 18px;
  padding: 0 8px;
  overflow: hidden;
  border-width: 1px;
  font-size: 10px;
  line-height: 1;
}
.top-record-chip .mov-cloud-badge::before {
  content: "MOV ";
  margin-right: 2px;
  color: #1d5f9d;
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: .04em;
}
.top-record-chip .mov-cloud-badge.steam::after {
  display: none;
}
.rank-medal.value {
  font-style: italic;
}
.board-best-stack {
  display: grid;
  gap: 3px;
  width: 100%;
}
.board-best-ties {
  display: grid;
  gap: 2px;
  width: 100%;
}
.board-best-stack .board-best-chip {
  min-height: 40px;
  padding: 5px 32px 5px 32px;
}
.board-best-empty.mini {
  min-height: 20px;
  font-size: 9px;
}
.board-best-chip:hover,
.board-best-chip:focus-visible {
  border-color: var(--side-card-color);
  background:
    linear-gradient(180deg, rgba(22, 48, 68, .98), rgba(11, 30, 47, .98)),
    var(--side-card-bg);
  outline: 0;
}
.board-best-chip span {
  color: var(--side-card-color);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.board-best-chip strong {
  color: var(--side-card-color);
  font-size: 13px;
  font-weight: 1000;
  text-shadow: 0 0 9px var(--side-card-shadow);
}
.board-best-play-side {
  align-items: center;
  background: color-mix(in srgb, var(--side-card-color) 16%, #020a12 84%);
  border: 1px solid color-mix(in srgb, var(--side-card-color) 42%, transparent);
  border-radius: 4px;
  color: color-mix(in srgb, var(--side-card-color) 82%, #ffffff 18%);
  display: inline-flex;
  font-size: 9px;
  font-weight: 1000;
  justify-content: center;
  letter-spacing: .03em;
  line-height: 1;
  padding: 2px 5px;
  text-shadow: 0 0 7px var(--side-card-shadow);
  text-transform: uppercase;
  white-space: nowrap;
}
.board-best-chip em {
  color: color-mix(in srgb, var(--side-card-color) 82%, #ffffff 18%);
  font-style: normal;
  font-size: 12px;
  font-weight: 1000;
}
.board-best-chip small {
  color: #ffd66e;
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
}
.board-best-chip.play {
  background: rgba(61, 214, 140, .1);
  border-color: rgba(61, 214, 140, .45);
}
.board-best-chip.play span {
  color: inherit;
}
.board-best-chip.play.side-vis span,
.board-best-chip.play.side-vis strong,
.board-best-chip.play.side-vis em,
.board-best-chip.play.side-vis small,
.board-best-chip.play.side-home span,
.board-best-chip.play.side-home strong,
.board-best-chip.play.side-home em,
.board-best-chip.play.side-home small,
.board-best-chip.play.side-over span,
.board-best-chip.play.side-over strong,
.board-best-chip.play.side-over em,
.board-best-chip.play.side-over small,
.board-best-chip.play.side-under span,
.board-best-chip.play.side-under strong,
.board-best-chip.play.side-under em,
.board-best-chip.play.side-under small {
  color: inherit;
  text-shadow: none;
}
.sportsbook-rank-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(245, 166, 35, .42);
  border-radius: 5px;
  background: rgba(245, 166, 35, .08);
  color: #f5c66a;
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
th,
td {
  border-bottom: 1px solid rgba(30, 38, 56, .9);
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}
th {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #f4f8ff;
  background: #0c1322;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
tbody tr.mrow:hover td { background: rgba(91, 135, 200, .05); }
.lit {
  background: rgba(217, 164, 65, .08) !important;
  color: var(--gold) !important;
  box-shadow: inset 0 -1px 0 rgba(217, 164, 65, .45);
}
body.lensed #movementBoard > tbody > tr.mrow > td:not(.lit):not(.wlcell),
body.lensed #movementBoard > thead th:not(.lit):not(.wlh) { opacity: .88; }
.dimmed { color: #f8fbff; }
.mrow.audit-review td { box-shadow: inset 3px 0 0 rgba(217, 164, 65, .9); }
.mrow.audit-critical td { box-shadow: inset 3px 0 0 rgba(242, 92, 92, .95); }
.audit-chip,
.audit-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(217, 164, 65, .62);
  background: rgba(217, 164, 65, .16);
  color: #ffe29c;
  font-weight: 1000;
}
.audit-chip.clean {
  border-color: rgba(61, 214, 140, .45);
  background: rgba(61, 214, 140, .10);
  color: #72ffb8;
}
.audit-chip.critical,
.audit-value.critical {
  border-color: rgba(242, 92, 92, .72);
  background: rgba(242, 92, 92, .15);
  color: #ff9b9b;
}
.steam-wl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 14px;
  margin-right: 4px;
  border-radius: 999px;
  border: 1px solid rgba(183, 245, 255, .98);
  background:
    radial-gradient(circle at 20% 42%, #ffffff 0 25%, transparent 26%),
    radial-gradient(circle at 45% 20%, #ffffff 0 29%, transparent 30%),
    radial-gradient(circle at 70% 42%, #ffffff 0 27%, transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #d7fbff 42%, #b7f5ff 100%);
  box-shadow:
    0 0 7px rgba(255, 255, 255, .72),
    0 0 10px rgba(64, 224, 208, .56),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(51, 132, 148, .62);
  color: #021211;
  line-height: 1;
  vertical-align: middle;
}
.steam-wl-icon.linealgo-steam-mark {
  border-color: rgba(255, 230, 122, .98);
  background:
    radial-gradient(circle at 20% 42%, #ffffff 0 25%, transparent 26%),
    radial-gradient(circle at 45% 20%, #ffffff 0 29%, transparent 30%),
    radial-gradient(circle at 70% 42%, #ffffff 0 27%, transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fff7d7 45%, #ffe37b 100%);
  box-shadow:
    0 0 7px rgba(255, 255, 255, .72),
    0 0 10px rgba(245, 182, 47, .58),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(132, 92, 11, .62);
}
.steam-wl-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 8px;
  width: 6px;
  height: 9px;
  background: linear-gradient(180deg, #ffef8a 0%, #f5b62f 100%);
  clip-path: polygon(50% 0, 100% 0, 63% 42%, 100% 42%, 31% 100%, 43% 56%, 0 56%);
  filter: drop-shadow(0 0 2px rgba(245, 182, 47, .9));
}
.audit-panel {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(217, 164, 65, .5);
  border-radius: 8px;
  background: rgba(217, 164, 65, .08);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 11px;
}
.audit-panel strong { color: #fff4ce; }
.audit-panel code {
  color: #ffffff;
  white-space: normal;
  word-break: break-word;
}
.audit-panel.ok {
  border-color: rgba(61, 214, 140, .45);
  background: rgba(61, 214, 140, .07);
}
.warehouse-stale-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.warehouse-stale-actions button {
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 6px;
  padding: 7px 10px;
  background: #111827;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}
.warehouse-stale-actions button:hover {
  border-color: #fff;
}
.warehouse-stale-actions button[aria-label] {
  width: 32px;
  padding: 7px 0;
  color: #ff8a82;
  font-size: 18px;
  line-height: 1;
}
.warehouse-stale-popup {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 12, .72);
}
.warehouse-stale-card {
  width: min(620px, 100%);
  border: 2px solid #ff3b30;
  border-radius: 8px;
  padding: 18px;
  background: #070b12;
  color: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .65);
}
.warehouse-stale-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.warehouse-stale-card-head strong {
  color: #ffb4ad;
  font-size: 20px;
}
.warehouse-stale-card-head button {
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  padding: 8px 12px;
  background: #111827;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.warehouse-stale-card p,
.warehouse-stale-card li {
  color: #f4f7fb;
  line-height: 1.55;
}
.warehouse-stale-card ul {
  margin: 12px 0;
  padding-left: 20px;
}
.warehouse-stale-note {
  margin-bottom: 0;
  color: #b7c4d4 !important;
  font-family: var(--mono);
  font-size: 12px;
}
.move-pill,
.type-pill,
.wl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 50px;
  border-radius: 5px;
  padding: 3px 8px;
  font-weight: 900;
}
.move-pill.open { color: var(--green); background: rgba(61, 214, 140, .12); }
.move-pill.close { color: var(--red); background: rgba(242, 92, 92, .12); }
.move-pill.n { color: #8fb4e8; background: rgba(91, 135, 200, .12); }
.move-pill.live { color: #7dd3fc; background: rgba(14, 165, 233, .14); border: 1px solid rgba(14, 165, 233, .34); }
.seqcell {
  min-width: 122px;
  text-align: center;
}
.seq-cell {
  border: 1px solid rgba(78, 179, 255, .24);
  border-radius: 999px;
  background: rgba(3, 10, 20, .72);
  color: #d8e7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
  min-width: 74px;
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}
button.seq-cell {
  cursor: help;
}
.seq-pending {
  color: #facc15;
  border-color: rgba(250, 204, 21, .35);
  background: rgba(120, 83, 8, .18);
}
.seq-error {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, .4);
  background: rgba(127, 29, 29, .18);
}
.seq-empty {
  color: var(--dim);
  border-color: rgba(148, 163, 184, .2);
}
.seq-loaded {
  color: #e0f2fe;
  border-color: rgba(125, 211, 252, .36);
  background: linear-gradient(90deg, rgba(14, 165, 233, .16), rgba(168, 255, 31, .06));
}
.seq-axis {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.seq-axis b {
  color: #7dd3fc;
  font-size: 9px;
  margin-right: 1px;
}
.seq-axis.up { color: #86efac; }
.seq-axis.down { color: #fca5a5; }
.seq-axis.flat { color: #cbd5e1; }
.type-pill { color: var(--gold); background: rgba(217, 164, 65, .12); }
.up { color: var(--green); }
.dn { color: var(--red); }
.none { color: var(--dim); }
.wl {
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--green);
  transition: all .15s ease;
}
.wl small {
  color: currentColor;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.wl:hover { border-color: var(--gold); box-shadow: 0 0 12px rgba(217, 164, 65, .18); }
.wl.empty { color: var(--dim); border-style: dashed; }
.wl.wl-even {
  border-color: rgba(255, 234, 0, .78);
  background: rgba(255, 234, 0, .08);
  color: #ffea00;
  text-shadow: 0 0 10px rgba(255, 234, 0, .58);
}
.wl.wl-close {
  background: linear-gradient(180deg, rgba(80, 84, 92, .48), rgba(31, 34, 40, .84));
  text-shadow: 1px 1px 0 #05070a, 0 0 7px rgba(0, 0, 0, .92);
  box-shadow: inset 0 0 0 1px rgba(169, 178, 190, .16);
}
.wl.wl-close.wl-win-lean { color: var(--green); }
.wl.wl-close.wl-loss-lean { color: var(--red); }
.wl.side-vis,
.wl.wl-close.side-vis {
  border-color: color-mix(in srgb, var(--side-vis) 74%, #ffffff 0%);
  background: color-mix(in srgb, var(--side-vis) 12%, var(--panel) 88%);
  color: var(--side-vis);
  box-shadow: 0 0 12px color-mix(in srgb, var(--side-vis) 24%, transparent);
}
.wl.side-home,
.wl.wl-close.side-home {
  border-color: color-mix(in srgb, var(--side-home) 74%, #ffffff 0%);
  background: color-mix(in srgb, var(--side-home) 13%, var(--panel) 87%);
  color: var(--side-home);
  box-shadow: 0 0 12px color-mix(in srgb, var(--side-home) 24%, transparent);
}
.wl.side-over,
.wl.wl-close.side-over {
  border-color: color-mix(in srgb, var(--side-over) 78%, #ffffff 0%);
  background: color-mix(in srgb, var(--side-over) 14%, var(--panel) 86%);
  color: var(--side-over);
  box-shadow: 0 0 12px color-mix(in srgb, var(--side-over) 22%, transparent);
}
.wl.side-under,
.wl.wl-close.side-under {
  border-color: color-mix(in srgb, var(--side-under) 76%, #ffffff 0%);
  background: color-mix(in srgb, var(--side-under) 13%, var(--panel) 87%);
  color: var(--side-under);
  box-shadow: 0 0 12px color-mix(in srgb, var(--side-under) 23%, transparent);
}
.wl.side-even,
.wl.wl-close.side-even {
  border-color: rgba(255, 234, 0, .62);
  background: rgba(255, 234, 0, .08);
  color: #ffea00;
  box-shadow: 0 0 12px rgba(255, 234, 0, .22);
}
.wl {
  position: relative;
}
.wl-rank-marker {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border: 1px solid rgba(255, 234, 0, .9);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7a8 0%, #ffcc38 42%, #b57900 100%);
  color: #06111f;
  font: 1000 9px var(--mono);
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 0 12px rgba(255, 222, 69, .72), inset 0 1px 0 rgba(255, 255, 255, .7);
  text-shadow: none;
}
.wl.wl-strong-win {
  color: #030706;
  text-shadow: none;
}
.wl.wl-strong-loss {
  color: #060304;
  text-shadow: none;
}
.wl.wl-strong-win.side-vis,
.wl.wl-strong-loss.side-vis {
  border-color: var(--side-vis);
  background: linear-gradient(180deg, color-mix(in srgb, var(--side-vis) 86%, #ffffff 14%), color-mix(in srgb, var(--side-vis) 70%, #071321 30%));
  box-shadow: 0 0 14px color-mix(in srgb, var(--side-vis) 34%, transparent);
}
.wl.wl-strong-win.side-home,
.wl.wl-strong-loss.side-home {
  border-color: var(--side-home);
  background: linear-gradient(180deg, color-mix(in srgb, var(--side-home) 86%, #ffffff 14%), color-mix(in srgb, var(--side-home) 70%, #071321 30%));
  box-shadow: 0 0 14px color-mix(in srgb, var(--side-home) 34%, transparent);
}
.wl.wl-strong-win.side-over,
.wl.wl-strong-loss.side-over {
  border-color: var(--side-over);
  background: linear-gradient(180deg, color-mix(in srgb, var(--side-over) 86%, #ffffff 14%), color-mix(in srgb, var(--side-over) 72%, #071321 28%));
  box-shadow: 0 0 14px color-mix(in srgb, var(--side-over) 32%, transparent);
}
.wl.wl-strong-win.side-under,
.wl.wl-strong-loss.side-under {
  border-color: var(--side-under);
  background: linear-gradient(180deg, color-mix(in srgb, var(--side-under) 86%, #ffffff 14%), color-mix(in srgb, var(--side-under) 72%, #071321 28%));
  box-shadow: 0 0 14px color-mix(in srgb, var(--side-under) 32%, transparent);
}
.wl.active {
  border-color: var(--gold);
  background: rgba(217, 164, 65, .14);
  box-shadow: 0 0 14px rgba(217, 164, 65, .25);
}
.wl.active.side-vis { background: color-mix(in srgb, var(--side-vis) 16%, var(--panel) 84%); color: var(--side-vis); }
.wl.active.side-home { background: color-mix(in srgb, var(--side-home) 17%, var(--panel) 83%); color: var(--side-home); }
.wl.active.side-over { background: color-mix(in srgb, var(--side-over) 17%, var(--panel) 83%); color: var(--side-over); }
.wl.active.side-under { background: color-mix(in srgb, var(--side-under) 17%, var(--panel) 83%); color: var(--side-under); }
.wl.wl-strong-win.active {
  color: #030706;
}
.wl.wl-strong-loss.active {
  color: #060304;
}
.wl.wl-rank-fill {
  outline: 2px solid rgba(61, 214, 140, 0.72);
  outline-offset: -1px;
  box-shadow: 0 0 14px rgba(61, 214, 140, 0.28);
}
.wl.wl-rank-fill.wl-rank-record {
  outline-color: rgba(78, 179, 255, 0.82);
  box-shadow: 0 0 14px rgba(78, 179, 255, 0.24);
}
.wl.wl-rank-fill.wl-rank-value {
  outline-color: rgba(217, 164, 65, 0.88);
  box-shadow: 0 0 14px rgba(217, 164, 65, 0.22);
}
.wl.wl-rank-fill.wl-rank-sportsbook {
  outline-color: rgba(168, 85, 247, 0.82);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.22);
}
.movement-table td.wlcell,
#movementBoard td.wlcell,
#extremeBoard td.wlcell {
  text-align: center;
  vertical-align: middle;
}
.read-cell { color: var(--gold); font-weight: 900; }

.proof-row > td {
  padding: 0;
  text-align: left;
  background: #0b101c;
}
.proofbox {
  border-left: 3px solid var(--gold);
  padding: 16px 18px 20px;
  animation: slide .22s ease;
}
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.proof-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.proof-head h3 { margin: 0; font-size: 14px; letter-spacing: .05em; }
.badge {
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
}
.badge.ok { color: var(--green); border-color: rgba(61, 214, 140, .45); background: rgba(61, 214, 140, .08); }
.badge.warn { color: var(--gold); border-color: rgba(217, 164, 65, .55); background: rgba(217, 164, 65, .1); }
.badge.bad { color: var(--red); border-color: rgba(242, 92, 92, .55); background: rgba(242, 92, 92, .1); }
.badge.side-vis { color: var(--side-vis); border-color: rgba(64, 224, 208, .48); background: rgba(64, 224, 208, .1); }
.badge.side-home { color: var(--side-home); border-color: rgba(211, 151, 248, .5); background: rgba(211, 151, 248, .11); }
.badge.side-over { color: var(--side-over); border-color: rgba(186, 218, 85, .5); background: rgba(186, 218, 85, .11); }
.badge.side-under { color: var(--side-under); border-color: rgba(250, 128, 114, .52); background: rgba(250, 128, 114, .11); }
.play-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 160px);
  max-width: 100%;
  min-height: 28px;
  background: var(--gold);
  color: #06101e;
  border: 0;
  border-radius: 5px;
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 1000;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.play-call.side-vis,
.board-best-chip.play.side-vis {
  background: linear-gradient(180deg, color-mix(in srgb, var(--side-vis) 86%, #ffffff 14%), color-mix(in srgb, var(--side-vis) 68%, #071321 32%));
  border: 1px solid color-mix(in srgb, var(--side-vis) 70%, #ffffff 0%);
  color: #031615;
}
.play-call.side-home,
.board-best-chip.play.side-home {
  background: linear-gradient(180deg, color-mix(in srgb, var(--side-home) 88%, #ffffff 12%), color-mix(in srgb, var(--side-home) 68%, #071321 32%));
  border: 1px solid color-mix(in srgb, var(--side-home) 70%, #ffffff 0%);
  color: #16071f;
}
.play-call.side-over,
.board-best-chip.play.side-over {
  background: linear-gradient(180deg, color-mix(in srgb, var(--side-over) 88%, #ffffff 12%), color-mix(in srgb, var(--side-over) 72%, #071321 28%));
  border: 1px solid color-mix(in srgb, var(--side-over) 74%, #ffffff 0%);
  color: #121a04;
}
.play-call.side-under,
.board-best-chip.play.side-under {
  background: linear-gradient(180deg, color-mix(in srgb, var(--side-under) 88%, #ffffff 12%), color-mix(in srgb, var(--side-under) 72%, #071321 28%));
  border: 1px solid color-mix(in srgb, var(--side-under) 74%, #ffffff 0%);
  color: #210807;
}
.proof-key,
.proof-breakdown {
  color: var(--mut);
  font-family: var(--mono);
  font-size: 12px;
  margin: 8px 0 12px;
  word-break: break-word;
}
.proof-breakdown { color: var(--gold); width: 100%; margin: 0; }
.proof-table { min-width: 1240px; }
.proof-table a {
  color: var(--vis);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px dotted var(--vis);
}
.result-win { color: var(--green); font-weight: 1000; }
.result-loss { color: var(--red); font-weight: 1000; }
.result-push { color: var(--push); font-weight: 1000; }
.proof-steam-row { background: rgba(239,68,68,.06); border-left: 2px solid #ef4444; }
.proof-steam-row td:first-child { padding-left: 6px; }
.empty-state {
  color: var(--mut);
  font-family: var(--mono);
  font-weight: 800;
  padding: 18px;
}
.empty-state-actionable {
  display: grid;
  gap: 8px;
  margin: 8px 0;
  border: 1px solid rgba(225, 173, 61, .38);
  border-left: 4px solid #e1ad3d;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 24, 38, .94), rgba(5, 11, 22, .96));
  color: #d9ecff;
}
.empty-state-actionable b {
  color: #ffffff;
  font-size: 14px;
}
.empty-state-actionable span {
  color: #4eb3ff;
  font-size: 11px;
}
.empty-state-actionable em {
  color: #9fb3c8;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}
.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.empty-state-actions a,
.empty-state-actions button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(78, 179, 255, .44);
  border-radius: 6px;
  background: rgba(78, 179, 255, .12);
  color: #d9ecff;
  font: 1000 10px var(--mono);
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.empty-state-actions a:hover,
.empty-state-actions button:hover,
.empty-state-actions a:focus-visible,
.empty-state-actions button:focus-visible {
  border-color: rgba(244, 195, 92, .86);
  background: rgba(244, 195, 92, .18);
  color: #ffffff;
  outline: 0;
}
.warehouse-read-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 10px 0;
  padding: 18px;
  border: 1px solid rgba(78, 179, 255, .48);
  border-left: 4px solid #4eb3ff;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(8, 24, 42, .96), rgba(5, 11, 22, .96));
  color: #e8f4ff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .24);
}
.warehouse-read-state.failed {
  border-color: rgba(255, 177, 66, .72);
  border-left-color: #ffb142;
}
.warehouse-read-state span {
  display: block;
  margin-bottom: 6px;
  color: #4eb3ff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.warehouse-read-state.failed span { color: #ffb142; }
.warehouse-read-state h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}
.warehouse-read-state code {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 9px;
  padding: 5px 8px;
  border: 1px solid rgba(78, 179, 255, .28);
  border-radius: 999px;
  background: rgba(78, 179, 255, .07);
  color: #cdeaff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.warehouse-read-state p {
  max-width: 820px;
  margin: 0 0 7px;
  color: #d8e7f8;
  line-height: 1.5;
}
.warehouse-read-state small {
  color: #91a8bf;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
}
.warehouse-read-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 330px;
  max-width: 430px;
}
.warehouse-read-actions button,
.warehouse-read-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(78, 179, 255, .55);
  border-radius: 6px;
  background: #0a1727;
  color: #e8f4ff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.warehouse-read-actions button {
  border-color: rgba(255, 177, 66, .72);
  background: #2a1c05;
  color: #ffd889;
}
@media (max-width: 980px) {
  .warehouse-read-state {
    grid-template-columns: 1fr;
  }
  .warehouse-read-actions {
    justify-content: flex-start;
    min-width: 0;
    max-width: none;
  }
}
.extreme-board {
  margin-top: 12px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 12px;
}
.extreme-board summary {
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 900;
  cursor: pointer;
}
.in-game-board {
  margin-top: 12px;
  border: 1px solid rgba(14, 165, 233, .38);
  border-radius: 10px;
  padding: 12px;
  background: rgba(5, 18, 31, .82);
}
.in-game-board summary {
  color: #7dd3fc;
  font-family: var(--mono);
  font-weight: 1000;
  cursor: pointer;
}
.phase-note {
  margin: 10px 0 12px;
  max-width: 920px;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}
.gates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.gates span {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 10px;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 11px;
}
.gates b { color: var(--green); }
.admin-notes {
  margin: 0;
  padding: 12px 22px;
}
.admin-notes summary { cursor: pointer; color: var(--gold); font-weight: 900; }
.admin-notes p { color: var(--mut); margin-top: 10px; }
code { font-family: var(--mono); color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (min-width: 1400px) and (hover: hover) and (pointer: fine) {
  .system-header {
    flex-direction: row;
    align-items: center;
  }
  .system-header-row {
    display: contents;
  }
  .system-brand { order: 1; }
  .system-nav-drawer {
    order: 2;
    width: auto;
    margin-left: auto;
    margin-right: 12px;
  }
  .system-cta { order: 3; }
  .system-nav-drawer > summary {
    display: none;
  }
  .system-nav-drawer > .system-nav {
    display: flex;
  }
  .system-panel-summary-hint {
    display: none;
  }
  .system-collapsible--p0 > .system-panel-summary {
    margin-top: var(--system-header-height);
  }
  .system-sticky-controls {
    position: fixed;
    top: var(--system-header-height);
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .34);
    scrollbar-gutter: stable;
  }
}
@media (max-width: 1399px), (hover: none), (pointer: coarse) {
  .terminal-main {
    display: flex;
    flex-direction: column;
  }
  .system-sticky-controls {
    display: contents;
  }
  .boardwrap {
    order: 1;
    overflow-x: visible;
    scroll-margin-top: 10px;
  }
  .system-collapsible--utility { order: 2; }
  .system-collapsible--command { order: 3; }
  .schedule-panel { order: 1; }
  .top-records-banner {
    order: 3;
    max-height: 132px;
    overflow: auto;
  }
  .command-panel { order: 3; }
  .lensdeck { order: 2; }
  .system-panel-summary-hint {
    display: inline;
  }
  .movement-board-section {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }
  .movement-table th.hide-mobile,
  .movement-table td.hide-mobile,
  #movementBoard th.hide-mobile,
  #movementBoard td.hide-mobile,
  #extremeBoard th.hide-mobile,
  #extremeBoard td.hide-mobile,
  #perBookContainer th.hide-mobile,
  #perBookContainer td.hide-mobile {
    display: none;
  }
  .system-header {
    position: sticky;
    left: auto;
    right: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 14px 0;
  }
  .terminal-main { padding-top: 0; }
  .system-nav { margin-left: 0; flex-wrap: wrap; justify-content: flex-start; gap: 12px; padding: 0 4px 10px; }
  .system-nav a { padding: 6px 0; }
  .system-nav-drawer:not([open]) .system-nav { display: none; }
  .system-nav-summary {
    margin: 0;
    border-bottom: 1px solid var(--line);
  }
  .command-panel,
  .board-utility-panel {
    position: static;
  }
  body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .scope-grid { grid-template-columns: 1fr 1fr; }
  .actions { grid-column: 1 / -1; }
  .schedule-panel { grid-template-columns: 1fr; }
  .game-grid { grid-auto-columns: minmax(170px, 204px); min-height: 200px; max-height: none; }
  .terminal-status { justify-items: start; }
}
@media (max-width: 680px) {
  .system-header { padding: 10px 14px; }
  .system-brand { width: 146px; max-width: 70vw; min-height: 40px; padding: 6px 10px; }
  .system-brand img { width: 24px; height: 24px; }
  .system-brand-name { font-size: 18px; }
  .system-nav a { font-size: 12px; }
  .command-panel, .lensdeck, .schedule-panel, .boardwrap, .admin-notes { padding: 12px; }
  .wordmark { font-size: 17px; }
  .scope-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; align-items: stretch; }
  .pattern-family-help-row { grid-template-columns: 1fr; }
  .logic-help-button { width: 100%; }
  .pattern-help-panel-head { flex-direction: column; }
  .scroll-position-control { grid-template-columns: 1fr; }
  .lensdeck { align-items: stretch; }
  .fetch { width: 100%; }
  .game-grid {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
    max-height: 260px;
    overflow-y: auto;
  }
  .top-records-banner { min-height: 120px; padding: 8px 12px; }
  .top-slider-scope-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .top-slider-scope-toggle,
  .top-slider-scope-toggle button {
    width: 100%;
  }
  .top-slider-scope-summary {
    max-width: 100%;
    white-space: normal;
  }
  .top-slider-filter-legend-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .top-slider-filter-legend-grid {
    grid-template-columns: 1fr;
  }
  .top-records-row {
    grid-template-columns: 1fr;
    align-items: center;
  }
  .ranking-filter-drawer {
    grid-column: 1 / -1;
  }
  .top-records-title {
    grid-column: 1 / -1;
    width: auto;
    min-width: 0;
    padding-left: 0;
    white-space: normal;
  }
  .top-records-list {
    grid-column: 1 / -1;
  }
  .ranking-filter-drawer[open] {
    grid-column: 1 / -1;
  }
  .ranking-filter-controls {
    grid-template-columns: 1fr;
  }
  .line-type-menu,
  .data-variable-menu {
    width: min(320px, calc(100vw - 32px));
  }
  .audit-guide-grid {
    grid-template-columns: 1fr;
  }
  .boardhead { align-items: flex-start; flex-direction: column; }
  .board-actions { width: 100%; }
  .statuschip { max-width: 100%; overflow-wrap: anywhere; }
  .tscroll { -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .play-call { width: min(100%, 150px); font-size: 10px; }
  #movementBoard td, #movementBoard th { font-size: 11px; padding: 4px 6px; }
  #extremeBoard td, #extremeBoard th { font-size: 11px; padding: 4px 6px; }
}
