:root {
  --bg: #070b12;
  --bg-soft: #0a101a;
  --surface: #0d1522;
  --surface-2: #111c2c;
  --surface-3: #162235;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #eef2f8;
  --text-soft: #c7d1df;
  --muted: #8d9bb0;
  --muted-2: #64738a;
  --gold: #d8b45a;
  --gold-bright: #f2d488;
  --gold-soft: rgba(216, 180, 90, 0.12);
  --blue: #64a5ff;
  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(216, 180, 90, 0.12), transparent 34rem),
    radial-gradient(circle at 92% 4%, rgba(71, 111, 180, 0.16), transparent 36rem),
    linear-gradient(180deg, #080d15 0%, #070b12 55%, #060a10 100%);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}

a:hover {
  color: #ffe7a8;
}

svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(216, 180, 90, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.app-shell {
  width: min(100%, 1880px);
  margin: 0 auto;
  padding: 0 22px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  flex: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--gold);
  border: 1px solid rgba(216, 180, 90, 0.3);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(216, 180, 90, 0.16), rgba(216, 180, 90, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-mark img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
}

.brand-text small {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: 160ms ease;
}

.main-nav a svg {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a.is-active {
  color: #1a1304;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 4px 14px rgba(216, 180, 90, 0.22);
}

.main-nav a.is-active svg {
  opacity: 1;
}

.topbar-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11.5px;
  white-space: nowrap;
}

.event-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.1);
}

.main {
  padding: 30px 0 56px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
}

.eyebrow {
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-head h1 {
  margin-top: 5px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.page-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  transition: 160ms ease;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.btn-primary {
  color: #1a1304;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 8px 20px rgba(216, 180, 90, 0.2);
}

.btn-primary:hover {
  color: #120d02;
  background: linear-gradient(135deg, #ffe6a4, var(--gold-bright));
}

.btn-ghost {
  background: transparent;
}

.btn-danger {
  color: #ffd7d7;
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.08);
}

.btn-danger:hover {
  color: #fff;
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.16);
}

.btn-sm {
  padding: 7px 10px;
  font-size: 11.5px;
  border-radius: 7px;
}

.btn-lg {
  padding: 12px 20px;
  font-size: 13.5px;
}

.flash-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 12.5px;
}

.flash-success {
  border-color: rgba(74, 222, 128, 0.28);
  background: var(--green-soft);
  color: #c8ffdc;
}

.flash-error {
  border-color: rgba(248, 113, 113, 0.3);
  background: var(--red-soft);
  color: #ffd3d3;
}

.flash-info {
  border-color: rgba(100, 165, 255, 0.28);
  background: rgba(100, 165, 255, 0.1);
  color: #d6e7ff;
}

.flash-close {
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  opacity: 0.7;
}

.flash-close:hover {
  opacity: 1;
}

.day-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.day-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  color: var(--text-soft);
  overflow: hidden;
  transition: 180ms ease;
}

.day-tab::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: transparent;
  transition: 180ms ease;
}

.day-tab:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  color: var(--text);
}

.day-tab.is-active {
  border-color: rgba(216, 180, 90, 0.45);
  background: linear-gradient(150deg, rgba(216, 180, 90, 0.13), rgba(216, 180, 90, 0.035));
}

.day-tab.is-active::after {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.day-tab-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.day-tab-date {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}

.day-tab-meta {
  font-size: 10.5px;
  color: var(--muted);
}

.today-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #9df5b8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(100, 165, 255, 0.22);
  border-radius: 10px;
  background: rgba(100, 165, 255, 0.075);
  color: #d4e5ff;
  font-size: 12px;
}

.notice svg {
  margin-top: 1px;
  color: var(--blue);
}

.notice-warn {
  border-color: rgba(251, 191, 36, 0.28);
  background: var(--amber-soft);
  color: #ffe6a8;
}

.notice-warn svg {
  color: var(--amber);
}

.live-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 300px) auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--surface);
  box-shadow: var(--shadow);
  transition: 200ms ease;
}

.live-strip.phase-active {
  border-color: rgba(216, 180, 90, 0.5);
  background:
    radial-gradient(circle at 0 50%, rgba(216, 180, 90, 0.16), transparent 45%),
    linear-gradient(110deg, rgba(216, 180, 90, 0.08), rgba(255, 255, 255, 0.015)),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.08), 0 18px 50px rgba(0, 0, 0, 0.42);
}

.live-strip.phase-break,
.live-strip.phase-before {
  border-color: rgba(251, 191, 36, 0.28);
}

.live-strip.phase-done,
.live-strip.phase-past,
.live-strip.phase-upcoming {
  border-color: var(--line);
}

.live-main {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.live-pulse {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted-2);
}

.phase-active .live-pulse {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(216, 180, 90, 0.13);
}

.phase-active .live-pulse::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(216, 180, 90, 0.5);
  border-radius: 50%;
  animation: pulse-ring 1.8s ease-out infinite;
}

.phase-break .live-pulse,
.phase-before .live-pulse {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

.live-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.live-kicker {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.live-copy strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.phase-active .live-copy strong {
  color: var(--gold-bright);
}

.live-detail {
  color: var(--muted);
  font-size: 11.5px;
}

.live-progress {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.progress-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 1s linear;
}

.live-countdown {
  color: var(--muted);
  font-size: 10.5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.live-clock {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.live-clock span {
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.live-clock small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.stat-label {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-card strong {
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-of {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.stat-sub {
  color: var(--muted-2);
  font-size: 10px;
}

.toolbar,
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 280px;
  min-width: 220px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.22);
}

.search-box:focus-within {
  border-color: rgba(216, 180, 90, 0.45);
  box-shadow: 0 0 0 3px rgba(216, 180, 90, 0.08);
}

.search-box svg {
  width: 15px;
  height: 15px;
  color: var(--muted-2);
}

.search-box input {
  width: 100%;
  height: 38px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.select-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.select-box > span {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.select-box select {
  height: 38px;
  min-width: 130px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: var(--text);
  background-color: rgba(0, 0, 0, 0.22);
  font-size: 11.5px;
}

.select-box select option {
  color: var(--text);
  background-color: var(--bg);
}

.select-box select:focus {
  border-color: rgba(216, 180, 90, 0.45);
}

.preview-box select {
  min-width: 170px;
}

.filter-count {
  margin-left: auto;
  align-self: center;
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 2px 0 10px;
  padding: 0 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-active { background: var(--gold); box-shadow: 0 0 0 3px rgba(216, 180, 90, 0.12); }
.legend-next { background: var(--blue); }
.legend-past { background: var(--muted-2); }
.legend-empty { border: 1px solid var(--muted-2); }

.matrix-block + .matrix-block {
  margin-top: 18px;
}

.matrix-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  padding: 0 3px;
}

.matrix-block-head h2 {
  margin-top: 2px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.matrix-block-head > span {
  color: var(--muted);
  font-size: 10.5px;
}

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.schedule-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.schedule-matrix th,
.schedule-matrix td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.schedule-matrix tr > *:last-child {
  border-right: 0;
}

.schedule-matrix tbody tr:last-child > * {
  border-bottom: 0;
}

.corner-cell {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 5;
  width: 142px;
  padding: 11px 14px;
  text-align: left;
  color: var(--muted);
  background: #0b1320;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.room-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 10px 12px;
  text-align: left;
  background: #0b1320;
}

.room-name {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.room-head small {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 400;
}

.session-row {
  transition: background 200ms ease;
}

.session-row.is-active {
  background: linear-gradient(90deg, rgba(216, 180, 90, 0.1), rgba(216, 180, 90, 0.03));
}

.session-row.is-next {
  background: rgba(100, 165, 255, 0.035);
}

.session-row.is-past .candidate-card {
  opacity: 0.58;
  filter: saturate(0.7);
}

.session-row.is-past .candidate-card:hover {
  opacity: 1;
  filter: none;
}

.session-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 142px;
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
  background: #0a111c;
  border-left: 3px solid transparent;
}

.session-row.is-active .session-cell {
  border-left-color: var(--gold);
  background: #141609;
}

.session-row.is-next .session-cell {
  border-left-color: var(--blue);
  background: #0b1421;
}

.session-row.is-past .session-cell {
  background: #090f18;
}

.session-index {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}

.session-time {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.session-state {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.02);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.session-row.is-active .session-state {
  color: #1b1404;
  border-color: transparent;
  background: var(--gold);
}

.session-row.is-next .session-state {
  color: #cfe3ff;
  border-color: rgba(100, 165, 255, 0.3);
  background: rgba(100, 165, 255, 0.1);
}

.session-row.is-past .session-state {
  color: var(--muted-2);
}

.matrix-cell {
  padding: 9px;
  vertical-align: top;
  background: rgba(255, 255, 255, 0.008);
}

.candidate-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 150px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: 180ms ease;
}

.candidate-card:hover {
  border-color: rgba(216, 180, 90, 0.35);
  background: linear-gradient(160deg, rgba(216, 180, 90, 0.07), rgba(255, 255, 255, 0.015));
  transform: translateY(-1px);
}

.candidate-card.is-hidden {
  display: none;
}

.mobile-session.is-filtered-out {
  display: none;
}

.session-row.is-active .candidate-card {
  border-color: rgba(216, 180, 90, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(216, 180, 90, 0.08);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.class-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(216, 180, 90, 0.22);
  border-radius: 5px;
  color: var(--gold-bright);
  background: rgba(216, 180, 90, 0.08);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.class-badge--lg {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 8px;
}

.room-chip {
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.candidate-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.dosbing-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.dosbing-line span {
  display: block;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.examiner-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 5px;
  align-items: baseline;
  font-size: 9.5px;
}

.examiner-label {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.examiner-name {
  overflow: hidden;
  color: var(--text-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.card-score {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}

.card-score--excellent,
.card-score--very-good {
  color: #b7f7cc;
  background: rgba(74, 222, 128, 0.1);
}

.card-score--good,
.card-score--fair {
  color: #ffe5a0;
  background: rgba(251, 191, 36, 0.1);
}

.card-score--danger {
  color: #ffc4c4;
  background: rgba(248, 113, 113, 0.1);
}

.card-score--partial {
  color: #cfe3ff;
  background: rgba(100, 165, 255, 0.1);
}

.card-score--empty {
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.03);
}

.card-link {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--gold);
}

.card-link:hover {
  color: var(--gold-bright);
}

.empty-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--muted-2);
  font-size: 16px;
}

.mobile-schedule {
  display: none;
}

.table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.table-head strong {
  color: var(--text-soft);
}

.table-head span {
  margin-left: 8px;
}

.table-scroll {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #0b1320;
  text-align: left;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 150ms ease;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-row--pass {
  box-shadow: inset 2px 0 0 rgba(74, 222, 128, 0.55);
}

.status-row--fail {
  box-shadow: inset 2px 0 0 rgba(248, 113, 113, 0.55);
}

.status-row--muted {
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.08);
}

.name-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 170px;
}

.name-cell strong {
  color: var(--text);
  font-size: 11.5px;
  line-height: 1.3;
}

.name-cell span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.stack-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 110px;
}

.stack-cell strong {
  font-size: 10.5px;
  font-weight: 600;
}

.stack-cell span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.examiner-stack {
  min-width: 210px;
}

.examiner-stack b {
  display: inline-block;
  width: 20px;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.muted-cell {
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.num-col {
  text-align: right !important;
}

.num-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.final-cell {
  color: var(--gold-bright);
  font-weight: 700;
}

.warn-mark {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-left: 3px;
  border-radius: 50%;
  color: #1c1302;
  background: var(--amber);
  font-size: 9px;
  font-weight: 800;
}

.status-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 92px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.badge-pass {
  color: #a8f5c2;
  background: var(--green-soft);
  border: 1px solid rgba(74, 222, 128, 0.22);
}

.badge-fail {
  color: #ffc0c0;
  background: var(--red-soft);
  border: 1px solid rgba(248, 113, 113, 0.22);
}

.badge-muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.grade-mini {
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}

.grade-excellent,
.grade-very-good {
  color: #9cefba;
}

.grade-good,
.grade-fair {
  color: #f5d580;
}

.grade-danger {
  color: #ffadad;
}

.grade-muted {
  color: var(--muted-2);
}

.action-cell {
  text-align: right;
  white-space: nowrap;
}

.empty-state {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  color: var(--text-soft);
}

.empty-state span {
  font-size: 11px;
}

.formula-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.formula-note strong {
  color: var(--text-soft);
  font-size: 11px;
}

.formula-note p + p {
  margin-top: 5px;
}

.formula-note summary {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 11.5px;
  cursor: pointer;
}

.formula-note summary + div {
  margin-top: 8px;
}

.formula-note a {
  text-decoration: underline;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted-2);
  font-size: 11px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.candidate-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 0, rgba(216, 180, 90, 0.11), transparent 30rem),
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.candidate-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.candidate-hero h1 {
  margin-top: 4px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.candidate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.candidate-meta span {
  position: relative;
}

.candidate-meta span + span::before {
  content: "·";
  margin-right: 14px;
  color: var(--muted-2);
}

.candidate-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.panel-label {
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel strong {
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.35;
}

.score-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.score-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.score-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.score-card-head h2 {
  margin-top: 3px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.score-card-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.weight-badge {
  padding: 5px 9px;
  border-radius: 7px;
  color: #1a1304;
  background: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.weight-badge--muted {
  color: #cfe3ff;
  background: rgba(100, 165, 255, 0.15);
  border: 1px solid rgba(100, 165, 255, 0.25);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.score-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.score-field-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.score-field-label b {
  color: var(--gold);
  font-weight: 700;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  font-size: 17px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: 150ms ease;
}

.input-wrap input:focus {
  border-color: rgba(216, 180, 90, 0.6);
  box-shadow: 0 0 0 3px rgba(216, 180, 90, 0.1);
  background: rgba(0, 0, 0, 0.4);
}

.input-wrap input::placeholder {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 400;
}

.input-suffix {
  position: absolute;
  right: 11px;
  color: var(--muted-2);
  font-size: 9.5px;
  pointer-events: none;
}

.computed-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
}

.computed-line small {
  color: var(--muted-2);
}

.computed-line strong {
  color: var(--gold-bright);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(0, 1.6fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(216, 180, 90, 0.32);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 0, rgba(216, 180, 90, 0.16), transparent 26rem),
    linear-gradient(150deg, rgba(216, 180, 90, 0.07), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.result-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.result-score {
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.raw-score {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.result-grade {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 12px;
}

.grade-letter {
  padding: 2px 8px;
  border-radius: 5px;
  color: #1a1304;
  background: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.range-warning {
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 5px;
  color: #ffe6a8;
  background: var(--amber-soft);
  font-size: 9.5px;
}

.result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.result-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.18);
}

.result-detail > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-detail strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.result-detail small {
  color: var(--muted-2);
  font-size: 9px;
}

.catatan-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catatan-field > span {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.catatan-field small {
  color: var(--muted-2);
  font-weight: 400;
}

.catatan-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  font-size: 12px;
  resize: vertical;
}

.catatan-field textarea:focus {
  border-color: rgba(216, 180, 90, 0.45);
  box-shadow: 0 0 0 3px rgba(216, 180, 90, 0.08);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.delete-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.print-header,
.print-footer {
  display: none;
}

.empty-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 60px 0;
}

.empty-page h1 {
  font-size: 32px;
}

.empty-page p {
  color: var(--muted);
}

/* Focus dashboard */
body.focus-mode .topbar {
  max-height: 120px;
  overflow: hidden;
  transition:
    max-height 300ms ease,
    min-height 300ms ease,
    padding 300ms ease,
    opacity 220ms ease,
    border-color 220ms ease;
}

body.focus-mode .topbar.is-hidden {
  max-height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
  opacity: 0;
}

.topbar-reveal {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 80;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(13, 21, 34, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
  pointer-events: none;
  transition: 180ms ease;
}

.topbar-reveal svg {
  width: 14px;
  height: 14px;
}

body.focus-mode .topbar-reveal.is-visible {
  display: inline-flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

body.focus-mode .main {
  padding-top: 12px;
  padding-bottom: 10px;
}

body.focus-mode .footer {
  display: none;
}

.focus-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.focus-head h1 {
  margin-top: 3px;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.focus-mode .eyebrow {
  font-size: 11px;
}

.focus-mode .page-sub {
  font-size: 13px;
}

.focus-head-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.focus-head-actions .preview-box {
  flex: 0 0 auto;
}

.day-tabs--compact {
  gap: 6px;
  margin-bottom: 8px;
}

.day-tabs--compact .day-tab {
  padding: 6px 10px;
  border-radius: 10px;
}

.day-tabs--compact .day-tab-label {
  font-size: 10px;
}

.day-tabs--compact .day-tab-date {
  font-size: 13px;
}

.day-tabs--compact .today-dot {
  top: 6px;
  right: 8px;
  padding: 1px 5px;
  font-size: 8.5px;
}

.focus-mode .live-strip {
  margin-bottom: 8px;
  padding: 9px 14px;
}

.focus-mode .live-kicker {
  font-size: 10.5px;
}

.focus-mode .live-copy strong {
  font-size: 17px;
}

.focus-mode .live-detail {
  font-size: 12.5px;
}

.focus-mode .live-clock span {
  font-size: 22px;
}

.focus-boards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.running-sessions,
.upcoming-sessions {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.section-title {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.groups-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}

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

.group-label {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.focus-board {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.focus-board.is-hidden {
  display: none;
}

.focus-board.is-primary {
  border-color: rgba(216, 180, 90, 0.42);
  background:
    radial-gradient(circle at 0 0, rgba(216, 180, 90, 0.11), transparent 28rem),
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.06), var(--shadow);
}

.focus-board.is-secondary {
  background: rgba(255, 255, 255, 0.016);
}

.focus-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.focus-board-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.focus-role {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.focus-board.is-primary .focus-role {
  color: #1a1304;
  border-color: transparent;
  background: var(--gold);
}

.focus-board.is-secondary .focus-role {
  color: #cfe3ff;
  border-color: rgba(100, 165, 255, 0.25);
  background: rgba(100, 165, 255, 0.1);
}

.focus-board-title h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.focus-board-title h2 span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.focus-board-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 10.5px;
  white-space: nowrap;
}

.focus-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.focus-room-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.focus-room-box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.focus-room-box-head {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold-bright);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-room-box .focus-card {
  flex: 1;
  border: 0;
  border-radius: 0;
  background: none;
}

.focus-room-box .focus-card:hover {
  border-color: transparent;
  background: rgba(216, 180, 90, 0.055);
  transform: none;
}

.focus-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: 160ms ease;
}

.focus-card:hover {
  border-color: rgba(216, 180, 90, 0.32);
  background: linear-gradient(160deg, rgba(216, 180, 90, 0.065), rgba(255, 255, 255, 0.015));
  transform: translateY(-1px);
}

.focus-board.is-primary .focus-room-box {
  border-color: rgba(216, 180, 90, 0.22);
}

.focus-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.focus-room {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid rgba(216, 180, 90, 0.2);
  border-radius: 4px;
  color: var(--gold-bright);
  background: rgba(216, 180, 90, 0.09);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.focus-score {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}

.focus-score--excellent,
.focus-score--very-good {
  color: #b7f7cc;
  background: rgba(74, 222, 128, 0.1);
}

.focus-score--good,
.focus-score--fair {
  color: #ffe5a0;
  background: rgba(251, 191, 36, 0.1);
}

.focus-score--danger {
  color: #ffc4c4;
  background: rgba(248, 113, 113, 0.1);
}

.focus-score--partial {
  color: #cfe3ff;
  background: rgba(100, 165, 255, 0.1);
}

.focus-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.focus-examiners {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.focus-examiners > span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px;
  align-items: baseline;
  color: var(--text-soft);
  font-size: 11px;
}

.focus-examiners b {
  color: var(--gold);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.focus-examiners span span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 5px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.focus-dosbing {
  overflow: hidden;
  color: var(--muted-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-card-foot a {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

.focus-card-foot a:hover {
  color: var(--gold-bright);
}

.focus-empty-room {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 0;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--muted-2);
  font-size: 11px;
}

.focus-empty-room span {
  font-weight: 600;
}

.focus-empty-room small {
  font-size: 9.5px;
}

.focus-board.is-secondary .focus-board-head {
  margin-bottom: 6px;
}

.focus-board.is-secondary .focus-board-title h2 {
  font-size: 16px;
}

.focus-board.is-secondary .focus-card {
  min-height: 0;
  padding: 7px 9px;
  gap: 3px;
}

.focus-board.is-secondary .focus-name {
  -webkit-line-clamp: 2;
  font-size: 13px;
}

.focus-board.is-secondary .focus-examiners {
  gap: 1px;
}

.focus-board.is-secondary .focus-examiners > span {
  font-size: 10px;
}

.focus-board.is-secondary .focus-card-foot {
  display: none;
}

.focus-board.is-secondary .focus-empty-room {
  min-height: 0;
}

.focus-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.focus-footnote a {
  color: var(--muted);
  white-space: nowrap;
}

.focus-footnote a:hover {
  color: var(--gold);
}

@media (max-width: 1180px) {
  .topbar {
    gap: 14px;
  }

  .event-pill span:last-child {
    display: none;
  }

  .event-pill {
    padding: 8px;
  }

  .live-strip {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
  }

  .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    padding: 0 16px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .main-nav a {
    flex: 1;
    justify-content: center;
  }

  .topbar-meta {
    margin-left: auto;
  }

  .day-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-strip {
    grid-template-columns: 1fr auto;
  }

  .live-progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .live-countdown {
    text-align: left;
  }

  .live-clock {
    grid-row: 1;
    grid-column: 2;
    border-left: 0;
    padding-left: 0;
  }

  .matrix-block {
    display: none;
  }

  .mobile-schedule {
    display: grid;
    gap: 12px;
  }

  .mobile-session {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    overflow: hidden;
  }

  .mobile-session-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
  }

  .mobile-session-head div {
    display: flex;
    align-items: baseline;
    gap: 9px;
  }

  .mobile-session-head strong {
    font-size: 13px;
  }

  .mobile-session-head span {
    color: var(--muted);
    font-size: 10.5px;
  }

  .mobile-session-head .session-state {
    margin-top: 0;
  }

  .mobile-session.is-active {
    border-color: rgba(216, 180, 90, 0.45);
    box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.08);
  }

  .mobile-session.is-active .mobile-session-head {
    background: rgba(216, 180, 90, 0.1);
  }

  .mobile-session.is-next {
    border-color: rgba(100, 165, 255, 0.3);
  }

  .mobile-session.is-past .candidate-card {
    opacity: 0.58;
    filter: saturate(0.7);
  }

  .mobile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 9px;
    padding: 10px;
  }

  .candidate-card {
    min-height: 0;
  }

  .candidate-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 680px) {
  .main {
    padding-top: 20px;
  }

  .brand-text small {
    display: none;
  }

  .main-nav a {
    padding: 8px 6px;
    font-size: 11px;
  }

  .main-nav a svg {
    width: 13px;
    height: 13px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .btn {
    flex: 1;
  }

  .day-tabs {
    gap: 7px;
  }

  .day-tab {
    padding: 11px 12px;
  }

  .day-tab-date {
    font-size: 12.5px;
  }

  .day-tab-meta {
    display: none;
  }

  .today-dot {
    top: 9px;
    right: 9px;
    font-size: 8px;
  }

  .live-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .live-clock {
    grid-column: 1;
    grid-row: auto;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    justify-content: space-between;
  }

  .live-progress {
    grid-row: auto;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card strong {
    font-size: 21px;
  }

  .toolbar,
  .filter-bar {
    align-items: stretch;
  }

  .select-box {
    flex: 1 1 45%;
  }

  .select-box select {
    width: 100%;
    min-width: 0;
  }

  .search-box {
    flex-basis: 100%;
  }

  .filter-count {
    margin-left: 0;
    align-self: flex-start;
  }

  .filter-bar .btn {
    flex: 1;
  }

  .table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-table {
    font-size: 10.5px;
  }

  .data-table th,
  .data-table td {
    padding: 8px 9px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .candidate-hero {
    padding: 16px;
  }

  .candidate-hero-main {
    flex-direction: column;
    gap: 10px;
  }

  .candidate-hero-actions {
    width: 100%;
  }

  .candidate-hero-actions .btn {
    flex: 1;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .score-card {
    padding: 15px;
  }

  .result-details {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }

  .mobile-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .focus-name {
    font-size: 11.5px;
  }

  .focus-examiners > span {
    font-size: 8.5px;
  }

  .focus-board-meta span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 980px) {
  body.focus-mode .topbar {
    max-height: 220px;
  }

  .focus-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .focus-head-actions {
    width: 100%;
  }

  .focus-head-actions .btn {
    flex: 1;
  }

  .focus-room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-card,
  .focus-empty-room {
    min-height: 0;
  }

  .focus-board-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .focus-board-title {
    flex-wrap: wrap;
  }

  .focus-board-title h2 {
    white-space: normal;
  }

  .focus-footnote {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 680px) {
  .focus-room-grid {
    grid-template-columns: 1fr;
  }

  .day-tabs--compact .day-tab {
    padding: 7px 9px;
  }

  .day-tabs--compact .day-tab-date {
    font-size: 10px;
  }

  .focus-mode .live-strip {
    padding: 12px;
  }
}

@media (max-height: 850px) and (min-width: 981px) {
  body.focus-mode .main {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .focus-head {
    margin-bottom: 6px;
  }

  .focus-head h1 {
    font-size: 26px;
  }

  .focus-head .page-sub {
    margin-top: 3px;
  }

  .day-tabs--compact {
    margin-bottom: 6px;
  }

  .day-tabs--compact .day-tab {
    padding: 5px 9px;
  }

  .focus-mode .live-strip {
    margin-bottom: 6px;
    padding: 7px 12px;
  }

  .focus-boards {
    gap: 6px;
  }

  .focus-board {
    padding: 8px;
  }

  .focus-board-head {
    margin-bottom: 5px;
  }

  .focus-rows {
    gap: 4px;
  }

  .focus-room-grid {
    gap: 4px;
  }

  .focus-card {
    padding: 6px 8px;
    gap: 3px;
  }

  .focus-card-foot {
    padding-top: 4px;
  }

  .focus-footnote {
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 9mm;
  }

  body {
    color: #111;
    background: #fff;
    font-size: 8pt;
  }

  .topbar,
  .footer,
  .page-head,
  .filter-bar,
  .print-hide,
  .flash-stack,
  .breadcrumb {
    display: none !important;
  }

  .app-shell {
    width: 100%;
    padding: 0;
  }

  .main {
    padding: 0;
  }

  .print-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #111;
    color: #111;
  }

  .print-brand {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .print-brand .brand-mark {
    width: 34px;
    height: 34px;
    color: #111;
    border-color: #111;
    background: none;
    box-shadow: none;
  }

  .print-brand .brand-mark svg {
    width: 22px;
    height: 22px;
  }

  .print-brand .brand-mark img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  .print-brand strong {
    display: block;
    font-size: 10pt;
    letter-spacing: 0.08em;
  }

  .print-brand span {
    display: block;
    font-size: 7.5pt;
  }

  .print-title {
    text-align: right;
  }

  .print-title h1 {
    font-size: 14pt;
    letter-spacing: 0.04em;
  }

  .print-title p {
    font-size: 7.5pt;
  }

  .stat-grid--print {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin: 7px 0;
  }

  .stat-grid--print .stat-card {
    padding: 4px 6px;
    border: 1px solid #999;
    border-radius: 0;
    background: none;
    color: #111;
  }

  .stat-grid--print .stat-label {
    color: #333;
    font-size: 6pt;
  }

  .stat-grid--print .stat-card strong {
    font-size: 10pt;
  }

  .table-card,
  .rekap-card {
    border: 1px solid #111;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .table-scroll {
    overflow: visible;
  }

  .data-table {
    width: 100%;
    font-size: 6.5pt;
  }

  .data-table th {
    position: static;
    padding: 3px 4px;
    border: 1px solid #777;
    color: #111;
    background: #eee;
    font-size: 5.5pt;
    letter-spacing: 0;
  }

  .data-table td {
    padding: 3px 4px;
    border: 1px solid #aaa;
    color: #111;
  }

  .data-table tbody tr:hover {
    background: none;
  }

  .status-row--pass,
  .status-row--fail,
  .status-row--muted {
    box-shadow: none;
  }

  .name-cell strong,
  .final-cell {
    color: #111;
  }

  .name-cell span,
  .stack-cell span,
  .muted-cell {
    color: #444;
  }

  .badge {
    padding: 0;
    border: 0 !important;
    color: #111 !important;
    background: none !important;
    font-size: 5.5pt;
  }

  .grade-mini {
    color: #111 !important;
    font-size: 5.5pt;
  }

  .warn-mark {
    color: #111;
    background: #ddd;
  }

  .print-footer {
    display: block;
    margin-top: 10px;
    color: #111;
    font-size: 6.5pt;
  }

  .signature-row {
    display: flex;
    justify-content: flex-end;
    gap: 60px;
    margin-top: 16px;
    text-align: center;
  }

  .signature-row div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
  }

  .signature-row span {
    font-size: 6.5pt;
  }

  .signature-row strong {
    font-size: 7.5pt;
  }

  .signature-row em {
    margin-top: 22px;
    font-style: normal;
    font-size: 6.5pt;
  }

  .rekap-table thead {
    display: table-header-group;
  }

  .rekap-table tr {
    break-inside: avoid;
  }
}

.room-box-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.room-box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.room-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.room-box-name {
  color: var(--text-soft);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.room-box .candidate-card {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  min-height: 132px;
}

.room-box .candidate-card:hover {
  background: rgba(216, 180, 90, 0.055);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.session-row.is-active .room-box {
  border-color: rgba(216, 180, 90, 0.4);
}

.session-row.is-active .room-box-name {
  color: var(--gold-bright);
}

.session-row.is-active .room-box .candidate-card {
  border-color: transparent;
  box-shadow: none;
}

.room-box-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 132px;
  padding: 12px;
  color: var(--muted-2);
  font-size: 10px;
}

@media (max-width: 980px) {
  .room-box-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .room-box-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .room-box-grid {
    grid-template-columns: 1fr;
  }
}

body.focus-mode .main {
  padding-top: 8px;
  padding-bottom: 6px;
}

body.focus-mode .focus-head {
  margin-bottom: 5px;
  gap: 12px;
}

body.focus-mode .focus-head h1 {
  font-size: 24px;
}

body.focus-mode .day-tabs--compact {
  margin-bottom: 5px;
}

body.focus-mode .day-tabs--compact .day-tab {
  padding: 4px 8px;
}

body.focus-mode .day-tabs--compact .day-tab-label {
  font-size: 9px;
}

body.focus-mode .day-tabs--compact .day-tab-date {
  font-size: 12px;
}

body.focus-mode .notice {
  margin-bottom: 5px;
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1.3;
}

body.focus-mode .notice svg {
  width: 14px;
  height: 14px;
}

body.focus-mode .live-strip {
  margin-bottom: 5px;
  padding: 6px 12px;
}

body.focus-mode .focus-boards {
  gap: 5px;
}

body.focus-mode .focus-board {
  padding: 7px;
}

body.focus-mode .focus-board-head {
  margin-bottom: 4px;
}

body.focus-mode .focus-rows {
  gap: 4px;
}

body.focus-mode .focus-room-grid {
  gap: 4px;
}

body.focus-mode .focus-room-box-head {
  padding: 4px 8px;
  font-size: 10px;
}

body.focus-mode .class-badge {
  padding: 1px 5px;
  font-size: 10px;
}

body.focus-mode .focus-card {
  padding: 5px 7px;
  gap: 3px;
}

body.focus-mode .focus-board.is-secondary .focus-card {
  padding: 5px 7px;
}

body.focus-mode .focus-name {
  -webkit-line-clamp: 1;
  font-size: 14px;
}

body.focus-mode .focus-board.is-secondary .focus-name {
  -webkit-line-clamp: 1;
  font-size: 13px;
}

body.focus-mode .focus-examiners > span,
body.focus-mode .focus-board.is-secondary .focus-examiners > span {
  font-size: 11px;
  line-height: 1.3;
}

body.focus-mode .focus-card-foot {
  padding-top: 4px;
  font-size: 10px;
}

body.focus-mode .focus-footnote {
  margin-top: 5px;
}

body.focus-mode .topbar {
  min-height: 56px;
}

body.focus-mode .notice:not(.notice-warn) {
  display: none;
}

body.focus-mode .live-detail {
  display: none;
}

body.focus-mode .class-badge {
  padding: 0 4px;
  font-size: 9px;
  line-height: 1.2;
}

body.focus-mode .focus-name {
  line-height: 1.1;
}

body.focus-mode .focus-examiners {
  gap: 1px;
}

body.focus-mode .focus-examiners > span,
body.focus-mode .focus-board.is-secondary .focus-examiners > span {
  line-height: 1.1;
}

body.focus-mode .focus-card-foot {
  display: none;
}

body.focus-mode .section-title,
body.focus-mode .group-label,
body.focus-mode .eyebrow {
  display: none;
}

body.focus-mode .main {
  padding-top: 4px;
  padding-bottom: 4px;
}

body.focus-mode .focus-head {
  margin-bottom: 4px;
}

body.focus-mode .focus-head h1 {
  font-size: 27px;
}

body.focus-mode .page-sub {
  font-size: 14px;
}

body.focus-mode .day-tabs--compact {
  margin-bottom: 4px;
}

body.focus-mode .day-tabs--compact .day-tab {
  padding: 3px 8px;
}

body.focus-mode .day-tabs--compact .day-tab-label {
  font-size: 10.5px;
}

body.focus-mode .day-tabs--compact .day-tab-date {
  font-size: 14px;
}

body.focus-mode .live-strip {
  margin-bottom: 4px;
  padding: 4px 10px;
}

body.focus-mode .live-kicker {
  font-size: 11px;
}

body.focus-mode .live-copy strong {
  font-size: 20px;
}

body.focus-mode .live-clock span {
  font-size: 26px;
}

body.focus-mode .focus-boards {
  gap: 4px;
}

body.focus-mode .focus-board {
  padding: 5px;
}

body.focus-mode .focus-board-head {
  margin-bottom: 3px;
}

body.focus-mode .focus-board-title h2 {
  font-size: 20px;
}

body.focus-mode .focus-board.is-secondary .focus-board-title h2 {
  font-size: 18px;
}

body.focus-mode .focus-board-title h2 span {
  font-size: 13.5px;
}

body.focus-mode .focus-role {
  padding: 3px 10px;
  font-size: 11px;
}

body.focus-mode .focus-board-meta {
  font-size: 11.5px;
}

body.focus-mode .focus-rows {
  gap: 3px;
}

body.focus-mode .focus-room-grid {
  gap: 3px;
}

body.focus-mode .focus-room-box-head {
  padding: 3px 8px;
  font-size: 12px;
}

body.focus-mode .class-badge {
  font-size: 11px;
}

body.focus-mode .focus-score {
  font-size: 11px;
}

body.focus-mode .focus-card,
body.focus-mode .focus-board.is-secondary .focus-card {
  padding: 4px 6px;
  gap: 2px;
}

body.focus-mode .focus-name {
  font-size: 16px;
}

body.focus-mode .focus-board.is-secondary .focus-name {
  font-size: 15px;
}

body.focus-mode .focus-examiners {
  gap: 0;
}

body.focus-mode .focus-examiners > span,
body.focus-mode .focus-board.is-secondary .focus-examiners > span {
  font-size: 12.5px;
}

body.focus-mode .focus-examiners b {
  font-size: 11px;
}

body.focus-mode .focus-footnote {
  margin-top: 3px;
  font-size: 11px;
}

.card-head {
  justify-content: flex-end;
}

@media (min-width: 981px) {
  .main-nav a {
    font-size: 13px;
  }

  .event-pill {
    font-size: 12px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-card strong {
    font-size: 28px;
  }

  .filter-count {
    font-size: 12px;
  }

  .class-badge {
    font-size: 12px;
  }

  .room-chip {
    font-size: 11px;
  }

  .room-box-name {
    font-size: 12px;
  }

  .room-box-empty {
    font-size: 12px;
  }

  .candidate-name {
    font-size: 15px;
  }

  .dosbing-line {
    font-size: 12px;
  }

  .dosbing-line span {
    font-size: 9.5px;
  }

  .examiner-line,
  .examiner-name {
    font-size: 12px;
  }

  .examiner-label {
    font-size: 10px;
  }

  .card-score {
    font-size: 10.5px;
  }

  .card-link {
    font-size: 11px;
  }

  .session-state {
    font-size: 10px;
  }

  .room-name {
    font-size: 13px;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table th {
    font-size: 10px;
  }

  .name-cell strong {
    font-size: 13px;
  }

  .name-cell span,
  .stack-cell span {
    font-size: 11px;
  }

  .stack-cell strong {
    font-size: 12px;
  }

  .badge,
  .grade-mini {
    font-size: 10px;
  }

  .panel-label {
    font-size: 10px;
  }

  .panel strong {
    font-size: 12.5px;
  }

  .score-field-label {
    font-size: 11px;
  }

  .computed-line {
    font-size: 12px;
  }
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.chart-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.chart-panel--wide {
  grid-column: 1 / -1;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.chart-head h2 {
  margin: 0;
  font-size: 15px;
}

.chart-head p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.chart-scroll {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.chart-scroll canvas {
  display: block;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  display: inline-block;
  width: 12px;
  height: 8px;
  border-radius: 2px;
}

.legend-swatch--before { background: #7089B4; }
.legend-swatch--after { background: #D9A441; }
.legend-swatch--positive { background: #E08C4B; }
.legend-swatch--negative { background: #5E9FD0; }

.range-chart {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 430px;
  overflow: auto;
  padding-right: 6px;
}

.range-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.range-label {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.range-track {
  position: relative;
  height: 18px;
  border-radius: 4px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.range-bar {
  position: absolute;
  height: 5px;
  border-radius: 3px;
  opacity: 0.75;
}

.range-bar.range-before { top: 3px; background: #7089B4; }
.range-bar.range-after { top: 10px; background: #D9A441; }

.range-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 1px solid #0F1824;
}

.range-dot.range-before { top: 2px; background: #7089B4; }
.range-dot.range-after { top: 9px; background: #D9A441; }

.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.stat-table th,
.stat-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stat-table th:first-child,
.stat-table td:first-child {
  text-align: left;
  color: var(--muted);
}

.stat-table thead th {
  color: var(--text-soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
