:root {
  --canvas: #f4f5f2;
  --surface: #ffffff;
  --surface-soft: #eef1ee;
  --ink: #18211f;
  --muted: #65716d;
  --rule: #d9dfdb;
  --moss: #2e6b57;
  --moss-dark: #205340;
  --rust: #a24b36;
  --steel: #35627a;
  --amber: #b47724;
  --shadow: 0 18px 48px rgba(26, 42, 35, .08);
  --radius: 8px;
  --focus: 0 0 0 3px rgba(46, 107, 87, .24);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); color: var(--ink); font-family: "Segoe UI", Inter, Arial, sans-serif; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #dce9e1; font-weight: 800; }
.brand strong { display: block; font-size: 15px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--muted); font-size: 13px; padding: 9px 0; border-bottom: 2px solid transparent; }
.nav-link.active { color: var(--ink); border-bottom-color: var(--moss); }
.ghost-button, .primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 6px; padding: 10px 14px; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.ghost-button { border-color: var(--rule); color: var(--ink); background: transparent; font-size: 13px; }
.ghost-button:hover { background: var(--surface); border-color: #c1cbc4; }
.primary-button { background: var(--moss); color: #fff; font-weight: 700; }
.primary-button:hover { background: var(--moss-dark); }
.secondary-button { background: var(--surface); border-color: var(--rule); color: var(--ink); }
.secondary-button:hover { border-color: var(--moss); color: var(--moss-dark); }
.page-frame { width: min(1180px, calc(100% - 40px)); margin: 0 auto; flex: 1; padding: 34px 0 72px; }
.eyebrow { color: var(--moss-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-title { margin: 8px 0 10px; font-size: clamp(26px, 4vw, 40px); line-height: 1.1; }
.page-intro { max-width: 620px; color: var(--muted); line-height: 1.65; font-size: 15px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-title { margin: 0; font-size: 19px; }
.section-copy { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.upload-tool { margin: 30px 0 34px; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.upload-zone { min-height: 184px; display: grid; place-items: center; border: 1px dashed #aebbb3; border-radius: 6px; background: var(--surface-soft); text-align: center; transition: background-color 180ms ease, border-color 180ms ease; }
.upload-zone.dragging { border-color: var(--moss); background: #e3eee8; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-content { padding: 28px; }
.upload-icon { width: 40px; height: 40px; margin: 0 auto 12px; display: grid; place-items: center; border: 1px solid #b8c8bf; border-radius: 50%; color: var(--moss-dark); font-size: 21px; }
.upload-title { margin: 0 0 6px; font-weight: 700; }
.upload-hint { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.upload-file { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--moss-dark); font-size: 13px; font-weight: 700; }
.upload-progress { margin-top: 16px; }
.progress-track { height: 6px; background: var(--surface-soft); border-radius: 999px; overflow: hidden; }
.progress-value { height: 100%; width: 0; background: var(--moss); transition: width 180ms ease; }
.progress-caption { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 12px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.search-field { min-width: 240px; flex: 1; position: relative; }
.search-field input, .select-field { width: 100%; padding: 11px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); }
.search-field input::placeholder { color: #8a9690; }
.select-field { width: auto; min-width: 140px; }
.list-frame { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.replay-table { width: 100%; border-collapse: collapse; }
.replay-table th { padding: 12px 16px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.replay-table td { padding: 15px 16px; border-bottom: 1px solid #edf0ee; vertical-align: middle; font-size: 13px; }
.replay-table tr:last-child td { border-bottom: 0; }
.replay-row { cursor: pointer; transition: background-color 140ms ease; }
.replay-row:hover { background: #f7f9f7; }
.replay-name { font-weight: 700; }
.replay-sub { margin-top: 4px; color: var(--muted); font-size: 11px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.muted { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge.ready { color: var(--moss-dark); background: #e3eee8; }
.badge.partial { color: #80530e; background: #f6ecd9; }
.badge.error { color: #8a3928; background: #f5e3df; }
.badge.unknown { color: var(--muted); background: #edf0ee; }
.empty-state { padding: 56px 24px; text-align: center; }
.empty-state h3 { margin: 0 0 8px; font-size: 17px; }
.empty-state p { max-width: 400px; margin: 0 auto 18px; color: var(--muted); line-height: 1.6; font-size: 13px; }
.report-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.report-title { margin: 8px 0 10px; font-size: clamp(27px, 5vw, 46px); line-height: 1.08; }
.report-file { color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.report-actions { display: flex; gap: 8px; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.report-grid > div, .report-grid > aside { min-width: 0; }
.panel { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.panel-heading h2 { margin: 0; font-size: 16px; }
.panel-body { padding: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.metric { padding: 16px; border-right: 1px solid var(--rule); }
.metric:last-child { border-right: 0; }
.metric-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.metric-value { display: block; font-size: 18px; font-weight: 800; }
.decode-panel .panel-body { padding-top: 16px; }
.decode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--rule); background: var(--rule); border-radius: 6px; overflow: hidden; }
.decode-metric { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px; background: var(--surface); }
.decode-metric span { color: var(--muted); font-size: 11px; }
.decode-metric strong { font-size: 17px; }
.decode-foot { display: flex; justify-content: space-between; gap: 14px; margin-top: 11px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.opcode-list { margin-top: 17px; border-top: 1px solid var(--rule); }
.opcode-heading, .opcode-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 64px; gap: 12px; align-items: center; }
.opcode-heading { padding: 11px 0 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.opcode-row { position: relative; min-height: 28px; border-top: 1px solid #edf0ee; font-size: 11px; }
.opcode-row code { color: var(--ink); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.opcode-type { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.opcode-row strong { z-index: 1; color: var(--ink); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; text-align: right; }
.opcode-bar { position: absolute; z-index: 0; left: 84px; right: 76px; height: 4px; border-radius: 999px; background: var(--surface-soft); overflow: hidden; }
.opcode-bar i { display: block; height: 100%; border-radius: inherit; background: #c8ddd1; }
.analysis-summary { border-top: 3px solid var(--moss); }
.match-summary { border-top: 3px solid var(--steel); }
.match-table { min-width: 1180px; }
.match-table thead tr:first-child th { padding-top: 13px; padding-bottom: 7px; color: var(--ink); background: #f5f7f5; text-align: center; font-size: 10px; }
.match-table thead tr:nth-child(2) th { background: #fafbfa; }
.match-table tbody tr { border-left: 3px solid var(--player-color, transparent); }
.match-table tbody td { padding-top: 12px; padding-bottom: 12px; }
.table-faction { display: inline-flex; align-items: center; gap: 6px; }
.analysis-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.unit-count-panel { border-top: 3px solid var(--moss); }
.unit-breakdown-table { min-width: 1120px; }
.dictionary-source { color: var(--moss-dark); font-size: 11px; font-weight: 700; }
.report-details { border-top: 3px solid #aab5af; }
.detail-archive { display: block; }
.detail-archive > summary { cursor: pointer; color: var(--moss-dark); font-size: 13px; font-weight: 800; }
.detail-stack { margin-top: 18px; }
.detail-block { padding-top: 18px; border-top: 1px solid var(--rule); }
.detail-block:first-child { padding-top: 0; border-top: 0; }
.detail-block + .detail-block { margin-top: 24px; }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.detail-heading h3 { margin: 0; font-size: 15px; }
.advanced-decode { padding-top: 18px; }
.advanced-decode .decode-details > .panel { margin-top: 14px; border-color: #edf0ee; box-shadow: none; }
.advanced-decode .decode-details > .panel .panel-heading { padding: 14px 16px; }
.advanced-decode .decode-details > .panel .panel-body { padding: 16px; }
.chart-legend, .category-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.chart-legend span, .category-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend small { color: #8a9690; font-size: 10px; }
.chart-legend i, .category-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.player-filter { margin: 0 0 16px; padding: 12px; border: 1px solid var(--rule); border-radius: 6px; }
.player-filter legend { padding: 0 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.player-filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.player-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 9px; border: 1px solid var(--rule); border-radius: 5px; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease; }
.player-toggle:hover { border-color: var(--player-color); background: #f6f8f7; }
.player-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.player-toggle-dot { width: 11px; height: 11px; border: 2px solid var(--player-color); border-radius: 3px; background: transparent; }
.player-toggle input:checked + .player-toggle-dot { background: var(--player-color); box-shadow: inset 0 0 0 2px var(--surface); }
.player-toggle-copy { display: grid; gap: 1px; }
.player-toggle-copy strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.player-toggle-copy small { color: var(--muted); font-size: 10px; }
.player-toggle:focus-within { box-shadow: var(--focus); }
.chart-scroll { width: 100%; overflow: hidden; }
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.line-chart { display: block; width: 100%; min-width: 0; height: auto; aspect-ratio: 1000 / 244; }
.chart-data { margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 12px; }
.chart-data summary, .decode-details summary { cursor: pointer; color: var(--moss-dark); font-size: 12px; font-weight: 700; }
.analysis-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12px; }
.analysis-table th { padding: 10px 12px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 10px; font-weight: 800; text-align: left; white-space: nowrap; }
.analysis-table td { padding: 11px 12px; border-bottom: 1px solid #edf0ee; vertical-align: top; white-space: nowrap; }
.analysis-table tr:last-child td { border-bottom: 0; }
.analysis-table.compact { min-width: 620px; }
.analysis-table code { font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.category-legend { margin-bottom: 18px; }
.stacked-list { display: grid; gap: 15px; }
.stacked-row { display: grid; grid-template-columns: minmax(150px, 210px) minmax(240px, 1fr); align-items: center; gap: 14px; }
.stacked-label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.stacked-label strong, .production-player strong { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.player-swatch { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 2px; background: var(--player-color, var(--moss)); }
.stacked-label span { color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.stacked-bar { display: flex; height: 18px; min-width: 180px; background: var(--surface-soft); border-radius: 3px; overflow: hidden; }
.stacked-bar span { display: block; min-width: 2px; height: 100%; transition: width 180ms ease; }
.production-timeline { display: grid; gap: 26px; }
.production-row { display: grid; gap: 10px; }
.production-player { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; }
.production-player span { color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.production-track { position: relative; height: 34px; }
.track-line { position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: var(--rule); }
.track-mark { position: absolute; top: 22px; color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.track-mark.start { left: 0; }
.track-mark.end { right: 0; }
.production-marker { position: absolute; top: 9px; width: 10px; height: 10px; transform: translateX(-50%); border: 2px solid var(--surface); background: var(--player-color, var(--moss)); box-shadow: 0 0 0 1px var(--player-color, var(--moss)); cursor: help; }
.production-marker.make { border-radius: 50%; }
.production-marker.build { border-radius: 2px; }
.production-marker.upgrade { border-radius: 1px; transform: translateX(-50%) rotate(45deg); }
.production-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 11px; }
.production-list li { padding-left: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-list time { margin-right: 7px; color: var(--ink); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.type-tag { display: inline-block; margin-right: 7px; color: var(--moss-dark); font-weight: 700; }
.decode-details { border-top: 1px solid var(--rule); padding-top: 12px; }
.decode-more { margin-top: 14px; width: 100%; }
.player-list { display: grid; gap: 10px; }
.player-card { padding: 16px; border: 1px solid var(--rule); border-left: 4px solid var(--steel); border-radius: 6px; }
.player-card.axis { border-left-color: var(--rust); }
.player-top { display: flex; justify-content: space-between; gap: 14px; }
.player-name { font-weight: 800; overflow-wrap: anywhere; }
.faction-label { color: var(--muted); font-size: 12px; }
.player-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.meta-key { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.meta-value { font-size: 12px; }
.rank-up { color: var(--moss-dark); font-weight: 800; }
.rank-down { color: var(--rust); font-weight: 800; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 6px; background: #f6ecd9; color: #6f4c17; font-size: 12px; line-height: 1.5; }
.notice + .notice { margin-top: 8px; }
.auth-panel { width: min(560px, 100%); margin: 18px auto 0; border-top: 3px solid var(--moss); }
.auth-panel .panel-heading { padding-bottom: 16px; }
.auth-panel .panel-heading h2 { margin: 7px 0 0; font-size: 22px; }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.auth-form input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); }
.auth-form input:focus { border-color: var(--moss); outline: none; box-shadow: var(--focus); }
.auth-form .primary-button { min-height: 42px; margin-top: 2px; }
.auth-switch { margin: 18px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.auth-switch a { margin-left: 5px; color: var(--moss-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.account-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.account-head .report-title { margin-bottom: 0; font-size: clamp(26px, 4vw, 38px); }
.account-grid { display: grid; gap: 18px; }
.account-grid > .panel { min-width: 0; }
.account-section { margin-top: 18px; }
.account-grid .panel-heading, .account-section .panel-heading { align-items: flex-start; }
.account-grid .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.account-grid .metric { min-width: 0; }
.account-grid .metric-value { overflow-wrap: anywhere; }
.account-grid .primary-button { white-space: nowrap; }
.account-grid .analysis-table { min-width: 720px; }
.account-grid #invite-message, .account-section #admin-message { margin-bottom: 12px; }
.account-grid .notice, .account-section .notice { margin-bottom: 0; }
.account-grid code { color: var(--moss-dark); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; }
.timeline-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; cursor: pointer; }
.chip.active, .chip:hover { border-color: var(--moss); color: var(--moss-dark); background: #eef5f0; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 58px; width: 1px; background: var(--rule); }
.event { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 28px; padding: 10px 0; }
.event-time { color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; text-align: right; }
.event-copy { position: relative; padding-left: 16px; }
.event-copy::before { content: ""; position: absolute; top: 4px; left: -5px; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 1px var(--moss); }
.event-main { font-size: 13px; font-weight: 700; }
.event-type { margin-right: 8px; color: var(--moss-dark); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.event-player { margin-top: 4px; color: var(--muted); font-size: 11px; }
.event-opcode { margin-left: 8px; color: #7a8781; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.about-item { padding: 18px; border-top: 2px solid var(--moss); background: var(--surface); }
.about-item h3 { margin: 0 0 8px; font-size: 15px; }
.about-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 18px 0 24px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; }
.reveal { animation: reveal .28s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; } .reveal { animation: none; } }
@media (max-width: 860px) {
  .report-grid { grid-template-columns: minmax(0, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .about-grid { grid-template-columns: 1fr; }
  .stacked-row { grid-template-columns: 1fr; gap: 7px; }
  .account-grid .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .topbar, .page-frame, .footer { width: min(100% - 28px, 1180px); }
  .topbar { align-items: flex-start; padding-top: 18px; }
  .brand { flex-shrink: 0; }
  .brand > span:last-child { white-space: nowrap; }
  .top-actions { gap: 11px; }
  .top-actions .nav-link { display: none; }
  .ghost-button { padding: 8px 10px; font-size: 12px; }
  .page-frame { padding-top: 24px; }
  .page-heading, .report-head { display: block; }
  .account-head { display: block; }
  .account-head .report-actions { margin-top: 16px; }
  .page-heading .primary-button, .report-actions { margin-top: 16px; width: 100%; }
  .report-actions .secondary-button { flex: 1; }
  .upload-tool { padding: 12px; }
  .upload-zone { min-height: 164px; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .search-field { min-width: 0; grid-column: 1 / -1; }
  .select-field { min-width: 0; width: 100%; }
  .replay-table, .replay-table tbody, .replay-table tr, .replay-table td { display: block; }
  .replay-table thead { display: none; }
  .replay-table tr { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
  .replay-table tr:last-child { border-bottom: 0; }
  .replay-table td { padding: 0; border: 0; }
  .replay-table td[data-label]::before { content: attr(data-label); display: inline-block; width: 74px; margin-top: 6px; color: var(--muted); font-size: 11px; }
  .replay-table td:first-child { margin-bottom: 7px; }
  .metric { padding: 13px; }
  .metric-value { font-size: 16px; }
  .panel-heading, .panel-body { padding: 16px; }
  .decode-foot { display: block; }
  .decode-foot span { display: block; }
  .decode-foot span + span { margin-top: 4px; }
  .analysis-table { font-size: 11px; }
  .auth-panel { margin-top: 4px; }
  .auth-panel .panel-heading h2 { font-size: 20px; }
  .account-grid .panel-heading, .account-section .panel-heading { display: block; }
  .account-grid .panel-heading .primary-button { width: 100%; margin-top: 12px; }
  .account-grid .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-filter-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-toggle-copy strong { max-width: 120px; }
  .production-list { grid-template-columns: 1fr; }
  .production-marker { width: 9px; height: 9px; }
  .timeline-toolbar { margin-top: 10px; }
  .timeline::before { left: 48px; }
  .event { grid-template-columns: 36px minmax(0, 1fr); gap: 22px; }
  .footer { display: block; line-height: 1.6; }
  .footer span { display: block; }
}
