:root {
  --bg: #f6f7f4;
  --panel: #ffffff;
  --ink: #1d2328;
  --muted: #65717b;
  --line: #dfe5de;
  --accent: #176b57;
  --accent-2: #c9472c;
  --gold: #b88a2a;
  --blue: #2f6690;
  --good: #12805c;
  --bad: #b3261e;
  --warn: #9a6b00;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

header.app-shell {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

h3 {
  margin-bottom: 14px;
}

p {
  color: var(--muted);
}

.top-nav,
.actions,
.toolbar,
.checkbox-row,
menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

button,
a.nav-button,
input,
select {
  font: inherit;
}

button,
a.nav-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  min-height: 38px;
  border-radius: 6px;
  padding: 0 14px;
  cursor: pointer;
}

button:hover,
a.nav-button:hover {
  border-color: var(--accent);
}

.nav-button.active,
.primary-button {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

a.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.nav-icon {
  display: none;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.nav-label-short {
  display: none;
}

.icon-button {
  width: 38px;
  padding: 0;
  font-size: 20px;
}

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

.metric,
.candidate,
.report-card,
.detail-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric {
  padding: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.metric strong {
  font-size: 28px;
}

.view {
  display: none;
  padding-bottom: 40px;
}

.view.active {
  display: block;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 8px 0 14px;
}

.toolbar {
  justify-content: space-between;
  margin-bottom: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

input,
select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.player-name {
  font-weight: 800;
}

.subtext {
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  background: #edf3f0;
  color: var(--accent);
}

.pill.warn {
  background: #fff5d8;
  color: var(--warn);
}

.pill.bad {
  background: #fde8e5;
  color: var(--bad);
}

.pill.locked {
  background: #eceef1;
  color: #4d5963;
}

.pro-data {
  color: #4d5963;
}

.pro-data .positive,
.pro-data.positive {
  color: #35745f;
}

.pro-data .negative,
.pro-data.negative {
  color: #8a3b34;
}

.positive {
  color: var(--good);
  font-weight: 800;
}

.negative {
  color: var(--bad);
  font-weight: 800;
}

.scan-layout,
.sales-layout,
.market-activity-panel,
.player-workspace,
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.player-workspace {
  align-items: start;
  grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
}

.board-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  margin-bottom: 10px;
  background: #0d1028;
  border-radius: 999px;
}

.board-tab {
  border: 0;
  background: transparent;
  color: #8f94a6;
  font-weight: 800;
}

.board-tab.active {
  background: #20243f;
  color: #26b9f1;
}

.player-board {
  overflow: hidden;
  border: 1px solid #20243f;
  border-radius: 8px;
  background: #070914;
}

.player-board-row {
  position: relative;
  width: 100%;
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 88px;
  align-items: start;
  gap: 8px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  padding: 10px 12px;
  background: #053f16;
  color: white;
  text-align: left;
}

.player-board-row.down {
  background: #4a0d06;
}

.player-board-row.flat {
  background: #3c4040;
}

.player-board-row:last-child {
  border-bottom: 0;
}

.player-board-row svg {
  position: absolute;
  inset: 26px 0 0 auto;
  width: 58%;
  height: 76px;
  opacity: .9;
}

.spark-area {
  fill: rgba(255,255,255,.42);
}

.spark-line {
  fill: none;
  stroke: rgba(255,255,255,.9);
  stroke-width: 3;
}

.board-row-copy,
.board-row-score,
.board-row-meta {
  position: relative;
  z-index: 1;
}

.board-row-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  text-shadow: 0 2px 2px rgba(0,0,0,.45);
}

.board-row-copy span,
.board-row-code,
.board-row-meta {
  color: rgba(255,255,255,.84);
  font-size: 12px;
  font-weight: 700;
}

.board-row-score {
  justify-self: end;
  text-align: right;
}

.board-row-score strong {
  display: block;
  font-size: 42px;
  line-height: .95;
  text-shadow: 0 3px 3px rgba(0,0,0,.55);
}

.board-row-score.up strong,
.board-row-score.up span {
  color: #00d515;
}

.board-row-score.down strong,
.board-row-score.down span {
  color: #ff382e;
}

.board-row-meta {
  align-self: end;
  grid-column: 1 / -1;
}

.player-detail {
  min-width: 0;
}

.player-terminal {
  overflow: hidden;
  border: 1px solid #25293a;
  border-radius: 8px;
  background: #101214;
  color: #f2f3f5;
}

.terminal-head {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #12142c;
}

.terminal-head h3 {
  margin: 0 0 3px;
  font-size: 24px;
}

.terminal-head span {
  color: #a8abb8;
}

.back-like {
  width: 34px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #c5c8d0;
  font-size: 36px;
  line-height: 1;
  padding: 0;
}

.terminal-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0 16px;
  background: #101125;
}

.terminal-tabs span {
  padding: 13px 0 12px;
  border-bottom: 3px solid transparent;
  color: #9a9dab;
  font-weight: 800;
  text-align: center;
}

.terminal-tabs .active {
  border-color: #ff8a00;
  color: white;
}

.terminal-quote {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 14px;
  padding: 16px;
  border-bottom: 1px solid #25293a;
}

.terminal-quote span,
.terminal-quote time {
  color: #9da2aa;
}

.terminal-quote strong {
  grid-row: span 2;
  font-size: 48px;
  line-height: .95;
}

.terminal-quote strong small {
  font-size: 28px;
}

.terminal-quote em {
  font-style: normal;
  font-weight: 800;
}

.terminal-quote .up,
.terminal-line.up,
.terminal-area.up {
  color: #ff3b5f;
  stroke: #ff3b5f;
}

.terminal-quote .down,
.terminal-line.down,
.terminal-area.down {
  color: #08c282;
  stroke: #08c282;
}

.terminal-quote .flat,
.terminal-line.flat,
.terminal-area.flat {
  color: #c9cdd4;
  stroke: #c9cdd4;
}

.terminal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #25293a;
}

.data-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #25293a;
  border-bottom: 1px solid #25293a;
}

.data-mode div,
.data-mode p {
  margin: 0;
  padding: 12px 16px;
  background: #101214;
}

.data-mode span {
  display: block;
  color: #9da2aa;
  font-size: 12px;
  margin-bottom: 4px;
}

.data-mode strong {
  color: #f2f3f5;
}

.data-mode p {
  grid-column: 1 / -1;
  color: #9da2aa;
  font-size: 13px;
}

.watch-reasons {
  display: grid;
  gap: 1px;
  background: #25293a;
  border-bottom: 1px solid #25293a;
}

.watch-reasons h4 {
  margin: 0;
  padding: 13px 16px;
  background: #101214;
  color: #f2f3f5;
  font-size: 15px;
}

.watch-reason {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 16px;
  background: #101214;
}

.watch-reason span {
  color: #f2f3f5;
  font-weight: 800;
}

.watch-reason strong.up,
.data-mode strong.up {
  color: #ff4d70;
}

.watch-reason strong.down {
  color: #08c282;
}

.watch-reason strong.flat,
.data-mode strong.flat {
  color: #c9cdd4;
}

.watch-reason p {
  grid-column: 1 / -1;
  margin: 0;
  color: #9da2aa;
  font-size: 13px;
}

.season-controls {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #25293a;
}

.season-tabs,
.split-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.season-tabs button,
.split-tabs button {
  min-height: 32px;
  border: 1px solid #34394b;
  background: #171a24;
  color: #aeb3bd;
  white-space: nowrap;
}

.season-tabs button.active,
.split-tabs button.active {
  border-color: #ff8a00;
  background: #2a1b10;
  color: #fff;
}

.stat-context {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 0 16px 12px;
  border-bottom: 1px solid #25293a;
  color: #9da2aa;
}

.stat-context strong {
  color: #f2f3f5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #25293a;
}

.stat-cell {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 10px 12px;
  background: #101214;
}

.stat-cell span {
  color: #9da2aa;
  font-size: 12px;
  font-weight: 800;
}

.stat-cell strong {
  color: #f2f3f5;
  font-size: 20px;
}

.stat-cell.rate strong {
  color: #ff4d70;
}

.terminal-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #101214;
}

.terminal-grid span,
.terminal-holdings span {
  color: #9da2aa;
  font-size: 12px;
}

.terminal-grid strong {
  font-size: 14px;
}

.terminal-chart {
  position: relative;
  height: 300px;
  background: #080a12;
}

.terminal-chart svg {
  width: 100%;
  height: 100%;
}

.grid-lines line {
  stroke: rgba(255,255,255,.12);
  stroke-width: 1;
}

.terminal-area {
  fill: rgba(255,255,255,.08);
  stroke: none;
}

.terminal-area.up {
  fill: rgba(255,59,95,.12);
}

.terminal-area.down {
  fill: rgba(8,194,130,.12);
}

.terminal-line {
  fill: none;
  stroke-width: 4;
}

.baseline {
  stroke: #ff8a00;
  stroke-width: 2;
  stroke-dasharray: 8 8;
}

.chart-label {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 1;
  color: #f4f4f4;
  font-weight: 800;
}

.terminal-holdings {
  display: grid;
  gap: 1px;
  background: #25293a;
}

.terminal-holdings div {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  background: #101214;
}

.full-stats {
  padding: 16px;
  background: #101214;
}

.full-stats h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.stat-table-wrap {
  overflow-x: auto;
  border: 1px solid #25293a;
  border-radius: 6px;
}

.stat-table {
  min-width: 1120px;
  background: #101214;
}

.stat-table th {
  background: #0b2f8c;
  color: white;
}

.stat-table td,
.stat-table th {
  border-color: #25293a;
  padding: 10px;
  color: #f2f3f5;
}

.stats-empty {
  padding: 16px;
  color: #9da2aa;
}

textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  font: 13px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.sales-preview {
  margin-top: 14px;
}

.market-activity-panel {
  margin-top: 14px;
}

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

.market-activity-form h3,
.market-activity-form .wide,
.market-activity-form button {
  grid-column: 1 / -1;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-item span,
.activity-item p {
  color: var(--muted);
  font-size: 12px;
}

.activity-item p {
  grid-column: 1 / -1;
  margin: 0;
}

.activity-score {
  text-align: right;
}

.activity-score strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.market-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #25293a;
  background: #101214;
}

.market-card h4 {
  margin: 0;
  color: #f2f3f5;
  font-size: 15px;
}

.market-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: #9da2aa;
  font-size: 13px;
}

.market-score {
  text-align: right;
}

.market-score strong {
  display: block;
  font-size: 36px;
  line-height: .9;
}

.market-score.hot strong,
.market-score.hot span {
  color: #ff4d70;
}

.market-score.warm strong,
.market-score.warm span {
  color: #ffb84d;
}

.market-score.quiet strong,
.market-score.quiet span {
  color: #08c282;
}

.market-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #25293a;
}

.market-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #0f1117;
}

.market-grid span {
  color: #9da2aa;
  font-size: 12px;
}

.market-grid strong {
  color: #f2f3f5;
}

.scan-drop {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px dashed #b8c5bd;
  border-radius: 8px;
  background: #eef4ef;
}

.card-preview {
  width: min(280px, 80%);
  aspect-ratio: 2.5 / 3.5;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.15)),
    linear-gradient(160deg, #1b4332 0%, #e3c16f 47%, #2f6690 100%);
  color: white;
  box-shadow: 0 24px 50px rgba(20, 30, 25, .22);
}

.card-preview span {
  width: max-content;
  background: var(--gold);
  color: white;
  border-radius: 4px;
  padding: 4px 8px;
  font-weight: 900;
}

.card-preview strong {
  font-size: 28px;
  line-height: 1.05;
}

.scan-form,
#holdingForm {
  display: grid;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.checklist-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.checklist-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checklist-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.lookup-grid {
  display: grid;
  grid-template-columns: 110px 180px 1fr;
  gap: 10px;
}

.card-classification {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card-classification legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.card-classification .checkbox-row {
  min-height: 40px;
  align-items: center;
  justify-content: start;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.checklist-picker-head strong,
.checklist-picker-head span {
  display: block;
}

.checklist-picker-head span {
  color: var(--muted);
  font-size: 12px;
}

.file-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.file-button input {
  display: none;
}

.checklist-results {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
}

.checklist-result {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px;
  text-align: left;
}

.checklist-result.selected {
  border-color: var(--accent);
  background: #e7f3ee;
}

.checklist-result strong,
.checklist-result span,
.checklist-result small {
  display: block;
}

.checklist-result span,
.checklist-result small {
  color: var(--muted);
  font-size: 12px;
}

.checklist-review-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.checklist-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checklist-review-head strong,
.checklist-review-head span {
  display: block;
}

.checklist-review-head span {
  color: var(--muted);
  font-size: 12px;
}

#checklistReviewEditor {
  display: grid;
  gap: 10px;
}

#checklistReviewEditor.hidden-field {
  display: none;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(140px, 1fr);
  gap: 10px;
  align-items: end;
}

.review-grid .checkbox-row {
  min-height: 38px;
  align-items: center;
  justify-content: start;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faf8;
  color: var(--ink);
}

.review-actions {
  display: flex;
  justify-content: end;
}

.optional-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.form-message {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-message.error {
  color: var(--bad);
  font-weight: 700;
}

.form-message.warn {
  color: var(--warn);
  font-weight: 700;
}

.serial-total-display {
  align-self: end;
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--muted);
  background: #f7faf8;
  font-size: 13px;
}

.hidden-field {
  display: none;
}

.candidate-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.candidate {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.detail-card,
.report-card {
  padding: 16px;
}

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

.plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.plain-list li + li {
  margin-top: 8px;
}

.auth-preview-card {
  display: grid;
  gap: 10px;
}

.auth-preview-form {
  display: grid;
  gap: 10px;
}

.auth-preview-form button:disabled {
  border-color: var(--line);
  background: #edf1ed;
  color: var(--muted);
  cursor: not-allowed;
}

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

.site-footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(20px, 1fr));
  align-items: end;
  gap: 8px;
  height: 160px;
  padding-top: 12px;
}

.bar {
  min-height: 10px;
  border-radius: 4px 4px 0 0;
  background: var(--blue);
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.score-row:last-child {
  border-bottom: 0;
}

dialog {
  width: min(720px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
}

dialog.dialog-fallback-open {
  position: fixed;
  inset: 24px auto auto 50%;
  transform: translateX(-50%);
  z-index: 20;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(21, 27, 31, .2);
}

dialog::backdrop {
  background: rgba(21, 27, 31, .42);
}

menu {
  justify-content: end;
  margin: 6px 0 0;
  padding: 0;
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  header.app-shell,
  .section-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  header.app-shell {
    padding-bottom: 12px;
  }

  .top-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 24px rgba(29, 35, 40, .12);
  }

  .top-nav a.nav-button {
    min-width: 0;
    min-height: 56px;
    border-color: transparent;
    border-radius: 0;
    flex-direction: column;
    gap: 4px;
    padding: 6px 2px;
    background: transparent;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .top-nav a.nav-button.active {
    color: var(--accent);
    background: #edf3f0;
  }

  .nav-icon {
    display: block;
  }

  .nav-label {
    display: block;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: block;
  }

  .summary-grid,
  .scan-layout,
  .sales-layout,
  .about-layout,
  .market-activity-panel,
  .player-workspace,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .market-activity-form,
  .market-grid,
  .lookup-grid,
  .card-classification,
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .data-mode {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-context {
    grid-template-columns: 1fr;
  }

  .board-row-score strong {
    font-size: 36px;
  }
}
