:root {
  color-scheme: dark;
  --bg: #302e2b;
  --surface: #272522;
  --surface-deep: #22211e;
  --surface-raised: #393733;
  --border: #ffffff10;
  --muted: #aaa79f;
  --text: #f5f3ee;
  --green: #a7cc64;
  --green-dark: #7e9f45;
  --board-light: #f2f6fa;
  --board-dark: #5596f2;
  --brilliant: #28b6b0;
  --great: #6999da;
  --best: #9bca66;
  --excellent: #94b17e;
  --good: #9b9b89;
  --inaccuracy: #edc15b;
  --mistake: #e69047;
  --blunder: #df6460;
  --miss: #df6460;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
:root[data-board-theme="green"] { --board-light: #eeeed2; --board-dark: #769656; }
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, a, label.file-label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
button, input, textarea, select, a { outline-offset: 4px; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--green); }
[hidden] { display: none !important; }
svg { display: block; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
button > svg, a > svg, .info-card > svg, .model-note > svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-header { height: 70px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; background: #272522; border-bottom: 1px solid var(--border); gap: 16px; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; font-size: 18px; letter-spacing: -.45px; font-weight: 450; white-space: nowrap; }
.brand strong { font-weight: 720; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--green); display: grid; place-items: center; }
.brand-mark svg { width: 34px; height: 34px; fill: #293421; stroke: #293421; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.header-actions { display: flex; gap: 5px; align-items: center; }
.local-pill { display: flex; gap: 7px; align-items: center; padding-right: 16px; color: #c9c6be; font-size: 12px; }
.local-pill > span, .local-indicator { width: 6px; height: 6px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.app-main { max-width: 1440px; margin: 0 auto; padding: 22px 32px 24px; }
.game-toolbar { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.game-heading { min-width: 0; }
.eyebrow { color: var(--green); font-size: 10px; letter-spacing: 1.55px; font-weight: 700; margin: 0 0 4px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 23px; font-weight: 680; line-height: 1.25; letter-spacing: -.65px; margin-bottom: 5px; overflow-wrap: anywhere; }
#game-meta { color: var(--muted); margin: 0; font-size: 12px; }
.import-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.primary-btn, .secondary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 7px; padding: 10px 15px; font-size: 12px; font-weight: 650; min-height: 39px; white-space: nowrap; transition: background .15s, transform .15s; }
.primary-btn { background: var(--green); color: #27331b; box-shadow: 0 2px 0 #678238; }
.primary-btn:hover:not(:disabled) { background: #b6d878; }
.primary-btn:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #678238; }
.secondary-btn { border: 1px solid #ffffff16; background: #ffffff06; color: #e0ddd6; }
.secondary-btn:hover:not(:disabled) { background: #ffffff0e; }
.text-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; background: none; padding: 5px 0; border: 0; color: var(--muted); }
.text-btn:hover:not(:disabled) { color: var(--text); }
.text-btn > svg { width: 15px; height: 15px; }
.icon-btn { width: 35px; height: 35px; border: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: #ffffff06; color: #d4d1c9; flex-shrink: 0; }
.icon-btn > svg { width: 19px; height: 19px; }
.icon-btn.subtle { background: transparent; }
.icon-btn:hover:not(:disabled) { background: #ffffff0e; color: white; }
.icon-btn.active, .icon-btn[aria-pressed="true"] { color: var(--green); background: #a7cc641a; }
.workspace { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 410px); gap: 30px; max-width: 1240px; margin: 0 auto; align-items: start; }
.board-column { width: 100%; min-width: 0; max-width: calc(100dvh - 165px); justify-self: center; }
.player-card { display: flex; align-items: center; gap: 9px; min-height: 45px; margin-left: 27px; padding: 0 0 8px; }
#player-bottom { padding: 8px 0 0; }
.player-avatar { width: 31px; height: 31px; display: flex; align-items: center; justify-content: center; background: #24221e; border-radius: 5px; flex-shrink: 0; border: 1px solid #ffffff09; }
.player-avatar img { width: 28px; height: 28px; }
.light-avatar { background: #575347; }
.white-avatar { background: #575347; }
.black-avatar { background: #b3afa2; }
.player-details { display: grid; gap: 1px; line-height: 1.25; }
.player-details > strong { font-size: 13px; font-weight: 650; }
.player-details > span { color: var(--muted); font-size: 10px; }
.player-name { font-weight: 650; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.player-name > small { color: var(--muted); font-size: 11px; font-weight: 450; margin-left: 3px; }
.player-color { color: #8f8d84; font-size: 10px; margin-left: auto; }
.player-rating, .player-meta { font-size: 11px; color: var(--muted); }
.player-card .player-rating { margin-left: 4px; }
.player-card > .player-result { margin-left: auto; font-size: 12px; color: var(--green); }
.board-row { display: flex; width: 100%; gap: 11px; }
.evaluation-rail { width: 16px; flex-shrink: 0; }
.eval-track { position: relative; height: 100%; border-radius: 3px; background: #171714; overflow: hidden; border: 1px solid #ffffff09; }
.eval-white { position: absolute; bottom: 0; width: 100%; background: #eeede4; transition: height .4s ease; }
#eval-label { position: absolute; z-index: 1; width: 100%; bottom: 6px; font-size: 9px; color: #24251e; text-align: center; font-weight: 750; line-height: 1; writing-mode: vertical-rl; transform: rotate(180deg); height: 30px; display: flex; align-items: center; justify-content: center; }
.board-frame { position: relative; flex: 1; min-width: 0; border-radius: 3px; overflow: hidden; box-shadow: 0 3px 12px #00000018; aspect-ratio: 1; }
.chess-board { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); width: 100%; height: 100%; user-select: none; touch-action: manipulation; }
.square { position: relative; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; width: 100%; height: 100%; aspect-ratio: 1; background: var(--board-light); }
.square.light { background: var(--board-light); color: var(--board-dark); }
.square.dark { background: var(--board-dark); color: var(--board-light); }
.square.last-move { background: #f2e57b; }
.square.dark.last-move { background: #bbc552; }
.square.selected { background: #f5d96c; box-shadow: inset 0 0 0 3px #dfb843; }
.square:focus-visible { z-index: 3; outline: 3px solid #fff9; outline-offset: -3px; }
.square .piece, .square > img { width: 94%; height: 94%; object-fit: contain; pointer-events: auto; -webkit-user-drag: element; filter: drop-shadow(0 1px 1px #0003); z-index: 1; }
.square .rank-label, .square .rank, .square .coord-rank { position: absolute; top: 4px; left: 5px; font-size: clamp(9px, 1vw, 13px); font-weight: 700; line-height: 1; z-index: 2; }
.square .file-label, .square .file, .square .coord-file { position: absolute; bottom: 4px; right: 5px; font-size: clamp(9px, 1vw, 13px); font-weight: 700; line-height: 1; z-index: 2; }
.square.legal::after, .square.legal-move::after { content: ''; position: absolute; width: 27%; height: 27%; border-radius: 50%; background: #151a1938; z-index: 2; }
.square.capture::after, .square.legal-capture::after { content: ''; position: absolute; inset: 3%; width: auto; height: auto; border-radius: 50%; border: 6px solid #151a1938; background: none; z-index: 2; }
.square.best-from { box-shadow: inset 0 0 0 3px #98bb4d; }
.square.best-to { background: #9bbf4d; }
.square.in-check { background: radial-gradient(circle, #d65e59 0, #d65e598c 50%, transparent 95%), var(--board-dark); }
.square .move-badge, .square .badge { position: absolute; right: -3px; top: -3px; z-index: 4; width: 23px; height: 23px; border-radius: 50%; color: white; background: var(--green-dark); display: grid; place-items: center; font-size: 13px; font-weight: 750; box-shadow: 0 1px 3px #0003; }
.board-arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.board-controls { margin: 12px 0 0 27px; padding: 7px 0; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); gap: 8px; }
.move-navigation { display: flex; align-items: center; gap: 3px; }
.move-navigation .icon-btn { background: none; }
.move-navigation .icon-btn:hover:not(:disabled) { background: #ffffff0e; }
.position-label { min-width: 109px; text-align: center; font-size: 11px; font-weight: 600; color: #bbb8af; padding: 0 6px; }
.board-footnote { margin-left: 27px; padding-top: 5px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #928f87; font-size: 10px; }
.board-footnote .icon-btn { width: 27px; height: 27px; }
.board-footnote .icon-btn > svg { width: 15px; height: 15px; }
.board-options { display: flex; align-items: center; gap: 5px; }
#board-theme { font-size: 9px; color: #98958b; padding: 2px 3px; background: transparent; border: 0; }
.review-panel { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; height: max(570px, calc(100dvh - 191px)); max-height: 900px; }
.panel-tabs { display: flex; width: 100%; border-bottom: 1px solid var(--border); padding: 0 10px; min-height: 50px; flex-shrink: 0; }
.panel-tab { width: 33.33%; background: none; border: 0; border-bottom: 2px solid transparent; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 650; font-size: 12px; color: #a09d95; }
.panel-tab > svg { width: 16px; height: 16px; }
.panel-tab.active, .panel-tab[aria-selected="true"] { color: var(--green); border-bottom-color: var(--green); }
.panel-tab:hover { color: var(--text); }
.analysis-control { padding: 15px 18px 9px; border-bottom: 1px solid var(--border); flex-shrink: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; }
.analysis-option { display: flex; align-items: center; gap: 7px; justify-content: space-between; margin-bottom: 11px; grid-column: 1 / -1; }
.analysis-option > label { font-size: 11px; color: #c2bfb6; }
.analysis-option > select { appearance: auto; font-size: 11px; font-weight: 600; background: #ffffff05; border: 1px solid #ffffff16; color: #e2dfd7; padding: 3px 5px 3px 8px; border-radius: 5px; }
.analyze-button { grid-column: 1 / -1; width: 100%; padding: 10px 15px; }
.analysis-control:has(#stop-btn:not([hidden])) .analyze-button { grid-column: 1; }
#stop-btn { padding: 8px 11px; }
.analysis-status { display: flex; align-items: center; gap: 6px; margin-top: 10px; grid-column: 1 / -1; font-size: 10px; line-height: 1.4; min-height: 14px; color: #a5a197; }
.status-dot { width: 4px; height: 4px; background: #77766d; border-radius: 50%; flex-shrink: 0; }
.progress-track { height: 3px; background: #ffffff05; margin-top: 8px; border-radius: 5px; overflow: hidden; grid-column: 1 / -1; }
#progress-fill { height: 100%; background: var(--green); transition: width .3s; }
.panel-scroll { overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #57544b transparent; }
.tab-view { padding: 16px 18px 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-heading h2 { font-size: 11px; letter-spacing: .2px; font-weight: 650; margin: 0; color: #d0ccc3; }
.small-note { font-size: 9px; color: #8e8b82; }
.accuracy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.accuracy-card { border: 1px solid #ffffff0b; border-radius: 7px; background: #ffffff03; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.accuracy-label { display: flex; gap: 6px; align-items: center; font-size: 11px; color: #bdb9b0; }
.accuracy-card > strong { font-size: 23px; line-height: 1; letter-spacing: -.7px; font-weight: 650; }
.color-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.white-dot { background: #f0eedf; }
.black-dot { background: #525047; border: 1px solid #777469; }
.classification-counts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 14px 0; border-top: 1px solid #ffffff0a; border-bottom: 1px solid #ffffff0a; padding: 7px 0; }
.classification-counts:empty { display: none; }
.classification-counts > .classification-row { display: grid; grid-template-columns: 28px 24px 1fr 28px; align-items: center; column-gap: 8px; min-height: 27px; font-size: 11px; padding: 1px 2px; border: 0; text-align: left; min-width: 0; }
.classification-row:nth-child(odd) { background: #ffffff02; border-radius: 4px; }
.classification-counts > .classification-head { display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: #969287; min-height: 23px; padding: 0 3px 5px; }
.classification-row .category-name { color: #c4bfb4; font-size: 11px; }
.classification-row .count-number { display: grid; place-items: center; background: none; border: 0; color: #dfdace; height: 25px; min-width: 25px; padding: 0; font-size: 12px; font-weight: 650; border-radius: 4px; font-variant-numeric: tabular-nums; }
.classification-row .count-number:not(:disabled):hover { background: #ffffff10; color: #fff; }
.classification-row .count-number:disabled { opacity: .7; }
.classification-counts .count { margin-left: auto; color: #d6d2c9; font-weight: 700; font-variant-numeric: tabular-nums; }
.classification-counts .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c0bcb3; font-size: 9px; }
.classification-counts .category-icon, .classification-counts .cat-icon, .classification-counts .category-symbol { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--good); font-size: 10px; font-weight: 700; flex-shrink: 0; }
.classification-counts strong { margin-left: auto; font-size: 11px; }
.classification-counts .brilliant, .move-badge.brilliant, .badge.brilliant { background: var(--brilliant); }
.classification-counts .great, .move-badge.great, .badge.great { background: var(--great); }
.classification-counts .best, .move-badge.best, .badge.best { background: var(--best); }
.classification-counts .excellent, .move-badge.excellent, .badge.excellent { background: var(--excellent); }
.classification-counts .good, .move-badge.good, .badge.good { background: var(--good); }
.classification-counts .inaccuracy, .move-badge.inaccuracy, .badge.inaccuracy { background: var(--inaccuracy); }
.classification-counts .mistake, .move-badge.mistake, .badge.mistake { background: var(--mistake); }
.classification-counts .blunder, .classification-counts .miss, .move-badge.blunder, .badge.blunder, .move-badge.miss, .badge.miss { background: var(--blunder); }
.chart-section { margin-top: 16px; }
.chart-section .section-heading { margin-bottom: 7px; }
.chart-legend { display: flex; gap: 4px; align-items: center; color: #8e8b82; font-size: 9px; }
.chart-legend > span { height: 2px; width: 10px; background: #a7cc64; }
.chart-wrap { position: relative; background: #1c1c1945; border: 1px solid #ffffff06; border-radius: 5px; height: 90px; overflow: hidden; }
#eval-chart { display: block; width: 100%; height: 100%; cursor: crosshair; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: #6f6f65; pointer-events: none; }
.chart-wrap:has(#eval-chart > *) .chart-empty { display: none; }
.coach-card { margin-top: 16px; border-radius: 7px; border: 1px solid #ffffff0d; background: #35342e; padding: 12px 13px; }
.coach-header { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.coach-icon { display: grid; place-items: center; width: 20px; height: 20px; background: #a7cc6417; border-radius: 5px; color: var(--green); }
.coach-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.coach-category { color: #a9bc87; font-size: 9px; letter-spacing: 1px; font-weight: 650; }
.coach-card h2 { font-size: 16px; line-height: 1.3; letter-spacing: -.3px; margin-bottom: 5px; }
.coach-card p { color: #b4b0a6; font-size: 11px; line-height: 1.65; margin-bottom: 0; }
.category-icon svg, .move-badge svg { display: block; width: 100%; height: 100%; }
.round-icon { display: grid; place-items: center; width: 17px; height: 17px; flex-shrink: 0; color: white; border-radius: 50%; }
.round-icon svg { width: 15px; height: 15px; }
.coach-card #coach-text, .coach-card #suggestion-reason { font-size: 12px; line-height: 1.5; }
.review-variation button { font-size: 12px; }
.review-panel > .coach-card { margin: 8px 18px; flex-shrink: 0; }
.coach-card .primary-btn, .coach-card .secondary-btn { margin-top: 10px; }
.moves-section { margin-top: 18px; }
.move-list { border-radius: 6px; overflow: hidden; }
.empty-state { padding: 14px 12px; background: #ffffff02; border: 1px dashed #ffffff10; border-radius: 5px; font-size: 11px; color: #7e7c73; text-align: center; margin: 0; }
.move-row { display: grid; grid-template-columns: 30px 1fr 1fr; min-height: 33px; align-items: center; }
.move-row:nth-child(odd) { background: #ffffff03; }
.move-number, .move-row > .number { color: #77746b; font-size: 10px; text-align: center; }
.move-list button, .move-button, .move-cell { border: 0; background: transparent; min-height: 31px; padding: 5px 7px; display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #d4d0c7; font-size: 12px; font-weight: 600; text-align: left; border-radius: 3px; }
.move-list button:hover { background: #ffffff09; }
.move-list button.active, .move-button.active, .move-cell.active, .move-list button[aria-current="true"] { background: #a7cc641c; color: #d4edb1; box-shadow: inset 2px 0 0 #a7cc64; }
.move-list .move-symbol { width: 15px; height: 15px; display: grid; place-items: center; font-size: 9px; color: white; border-radius: 50%; font-weight: 750; }
.move-list .move-eval { font-size: 9px; font-weight: 450; color: #8c887e; margin-left: auto; }
.panel-footer { display: flex; align-items: center; justify-content: center; gap: 5px; background: #24231f; border-top: 1px solid var(--border); padding: 8px 12px; color: #77776b; font-size: 8px; flex-shrink: 0; min-height: 34px; }
.panel-footer .local-indicator { width: 4px; height: 4px; background: #768b57; }
.panel-footer .text-btn { font-size: 8px; padding: 0; margin-left: auto; color: #9a988c; }
.view-intro { color: #a6a297; font-size: 11px; line-height: 1.65; margin: 0 0 18px; }
.engine-tag { color: var(--green); font-size: 9px; font-weight: 650; background: #a7cc6412; border: 1px solid #a7cc6417; padding: 3px 6px; border-radius: 4px; }
.engine-lines { display: grid; gap: 8px; }
.engine-line { border: 1px solid #ffffff0b; border-radius: 6px; padding: 10px; display: flex; flex-wrap: wrap; align-items: start; gap: 5px 3px; background: #ffffff03; font-size: 11px; line-height: 1.75; }
.engine-line strong, .line-score { color: var(--green); flex-shrink: 0; font-size: 13px; }
.engine-line > strong { width: 100%; margin-bottom: 3px; }
.engine-line > button { color: #c9c4b7; border: 0; background: #ffffff05; padding: 2px 5px; border-radius: 3px; font-size: 11px; min-height: 25px; }
.engine-line > button:hover { background: #a7cc6418; color: #d0e4af; }
.engine-line span { color: #b7b3a9; }
.info-card { margin-top: 20px; padding: 12px; display: flex; gap: 10px; border-radius: 6px; background: #ffffff03; color: #89877c; align-items: start; }
.info-card p { font-size: 10px; line-height: 1.7; margin: 0; }
.info-card svg { width: 16px; height: 16px; margin-top: 2px; }
.training-hero { text-align: center; padding: 17px 10px 22px; }
.training-target { width: 70px; height: 70px; border-radius: 50%; background: #a7cc6410; color: #a7cc64; border: 1px solid #a7cc6420; display: grid; place-items: center; margin: 0 auto 20px; }
.training-target svg { width: 36px; height: 36px; stroke: currentColor; stroke-width: 1.1; fill: none; }
.training-hero .eyebrow { font-size: 8px; margin-bottom: 8px; }
.training-hero h2 { font-size: 22px; letter-spacing: -.55px; line-height: 1.3; margin-bottom: 10px; }
.training-hero p:last-child { font-size: 12px; line-height: 1.8; color: #a7a398; margin-bottom: 0; }
.full-width { width: 100%; }
#train-hint-btn { margin-top: 10px; }
.train-feedback { color: #a7a398; font-size: 11px; line-height: 1.7; margin-top: 14px; padding: 12px; border: 1px solid #ffffff0a; border-radius: 5px; text-align: center; }
.train-feedback.success { border-color: #a7cc6444; color: #c8e6a4; background: #a7cc640c; }
.train-feedback.error { border-color: #df646044; color: #e9a29c; }
.app-dialog, #history-dialog { color: var(--text); background: #302e29; border: 1px solid #ffffff18; border-radius: 12px; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; box-shadow: 0 20px 70px #0007; overflow-y: auto; }
.app-dialog::backdrop, #history-dialog::backdrop { background: #141410b8; backdrop-filter: blur(5px); }
#history-dialog { padding: 25px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.5px; margin: 0; }
.dialog-heading > button { font-size: 11px; color: #c7c1b2; padding: 5px 9px; border: 1px solid #ffffff14; border-radius: 5px; background: #ffffff04; }
.dialog-heading > button:hover { background: #ffffff0e; }
#history-list { display: grid; gap: 7px; }
#history-list > p { font-size: 12px; line-height: 1.8; color: #aaa596; margin-bottom: 0; }
.history-entry { width: 100%; background: #ffffff03; border: 1px solid #ffffff0c; border-radius: 6px; text-align: left; padding: 12px; font-size: 12px; line-height: 1.7; color: #d6d0c3; }
.history-entry:hover { background: #ffffff08; border-color: #a7cc6433; }
.dialog-content { padding: 25px; margin: 0; }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.dialog-header h2, .promotion-dialog h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.5px; margin: 0; }
.dialog-header .icon-btn { margin-top: -4px; margin-right: -7px; }
.dialog-intro, .help-dialog p { color: #b9b5a9; font-size: 12px; line-height: 1.8; margin-bottom: 17px; }
.dialog-intro strong { color: #d7d3c8; font-weight: 550; }
.field-label { display: block; font-size: 11px; color: #d1ccbf; font-weight: 550; margin: 14px 0 6px; }
input:not([type="file"]), textarea, .form-grid select { width: 100%; background: #22211d; border: 1px solid #ffffff16; border-radius: 6px; color: #e6e1d4; padding: 10px 12px; font-size: 12px; min-height: 40px; }
input::placeholder, textarea::placeholder { color: #696960; }
textarea { font-family: Consolas, monospace; resize: vertical; min-height: 190px; line-height: 1.7; }
.form-error { color: #ed9387; font-size: 11px; min-height: 16px; margin: 8px 0; }
.dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.file-label { cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 13px; }
.form-grid .field-label { margin-top: 0; }
.optional-label { font-size: 10px; font-weight: 400; color: #848177; padding-left: 4px; }
#account-submit { margin-top: 18px; }
.account-status { font-size: 11px; line-height: 1.6; color: #bbb4a6; margin: 12px 0; }
.account-games { display: grid; gap: 7px; max-height: 300px; overflow-y: auto; scrollbar-width: thin; }
.account-games > button, .account-game { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #ffffff0c; border-radius: 6px; background: #ffffff03; text-align: left; padding: 11px 12px; font-size: 11px; }
.account-games > button:hover, .account-game:hover { background: #ffffff08; border-color: #a7cc6433; }
.account-games small { font-size: 10px; color: #929083; }
.account-games strong { font-weight: 600; }
.promotion-dialog { width: min(390px, calc(100% - 32px)); }
.promotion-dialog .dialog-content { text-align: center; }
.promotion-dialog h2 { margin-bottom: 8px; }
.promotion-options { display: flex; gap: 8px; justify-content: center; }
.promotion-options button { width: 66px; height: 66px; border-radius: 7px; border: 1px solid #ffffff16; background: #739552; padding: 0; }
.promotion-options button:hover { background: #8ba960; outline: 2px solid #a7cc64; }
.promotion-options img { width: 100%; height: 100%; }
.help-dialog p { margin-bottom: 16px; }
.help-dialog p:last-child { margin-bottom: 0; }
.model-note { border: 1px solid #a7cc6422; background: #a7cc6408; padding: 14px; border-radius: 6px; margin-bottom: 16px; display: flex; gap: 10px; align-items: start; }
.model-note > svg { color: var(--green); margin-top: 3px; }
.model-note p { margin: 0; font-size: 11px; }
.model-note strong { color: #d4dcba; font-weight: 600; }
@media (max-width: 1100px) { .app-header { padding: 0 24px; } .app-main { padding: 20px 24px; } .workspace { gap: 22px; grid-template-columns: minmax(300px, 1fr) 360px; } .game-toolbar { gap: 16px; } .import-actions { gap: 7px; } #sample-btn { display: none; } h1 { font-size: 21px; } .brand { font-size: 17px; } .board-controls { gap: 3px; } .position-label { min-width: 92px; font-size: 10px; } .move-navigation { gap: 0; } .move-navigation .icon-btn { width: 30px; } }
@media (max-width: 899px) { .app-header { height: 62px; } .app-main { padding: 20px; max-width: 720px; } .game-toolbar { align-items: start; margin-bottom: 19px; } .game-heading .eyebrow { font-size: 8px; letter-spacing: 1.3px; } h1 { font-size: 21px; } #game-meta { max-width: 280px; font-size: 11px; } .import-actions { flex-wrap: wrap; justify-content: end; max-width: 255px; } .import-actions .primary-btn, .import-actions .secondary-btn { font-size: 11px; padding: 8px 11px; min-height: 35px; } .workspace { grid-template-columns: 1fr; gap: 22px; } .board-column { max-width: 640px; } .review-panel { height: auto; max-height: none; } .panel-scroll { max-height: none; overflow: visible; } .review-panel .panel-tabs { min-height: 52px; } .analysis-control { padding: 16px 20px 10px; } .tab-view { padding: 18px 20px 22px; } .classification-row { min-height: 29px; } .classification-counts .label { font-size: 10px; } .chart-wrap { height: 115px; } .coach-card { padding: 15px; } .coach-card p { font-size: 12px; } .move-row { min-height: 37px; } .move-list button { min-height: 35px; } .board-controls { margin-top: 12px; padding: 8px 0; } .position-label { min-width: 126px; font-size: 11px; } .move-navigation .icon-btn { width: 35px; } .board-footnote { font-size: 10px; } .view-intro { font-size: 12px; } }
@media (max-width: 540px) { .app-header { padding: 0 16px; height: 58px; } .brand { gap: 8px; font-size: 15px; letter-spacing: -.35px; } .brand-mark { width: 33px; height: 33px; border-radius: 8px; } .brand-mark svg { width: 29px; height: 29px; } .local-pill { display: none; } .header-actions { gap: 1px; } .header-actions .icon-btn { width: 30px; } .app-main { padding: 17px 14px 24px; } .game-toolbar { flex-direction: column; gap: 13px; margin-bottom: 17px; } .game-heading { width: 100%; } h1 { font-size: 22px; } #game-meta { max-width: none; } .import-actions { width: 100%; max-width: none; justify-content: start; gap: 8px; } .import-actions .primary-btn { flex: 1; } #sample-btn { display: flex; font-size: 10px; order: 3; margin-left: auto; } .import-actions .primary-btn, .import-actions .secondary-btn { padding: 9px 13px; } .workspace { gap: 18px; } .board-row { gap: 7px; } .evaluation-rail { width: 13px; } .player-card, .board-controls, .board-footnote { margin-left: 20px; } .player-card { min-height: 39px; padding-bottom: 7px; } #player-bottom { padding-top: 7px; } .player-avatar { width: 27px; height: 27px; } .player-avatar img { width: 25px; height: 25px; } .player-details > strong { font-size: 12px; } .player-details > span { font-size: 9px; } .player-name { font-size: 12px; } .player-name > small { font-size: 10px; } .player-color { font-size: 9px; } .board-controls { padding: 5px 0; margin-top: 10px; } .move-navigation .icon-btn { width: 30px; } .board-controls > .icon-btn { width: 28px; } .position-label { min-width: 96px; font-size: 10px; padding: 0 1px; } .board-footnote { font-size: 9px; } .panel-tab { font-size: 12px; } .analysis-control { padding: 14px 16px 9px; } .tab-view { padding: 16px; } .classification-counts .label { font-size: 9px; } .accuracy-card { padding: 10px; } .accuracy-card > strong { font-size: 24px; } .chart-wrap { height: 90px; } .dialog-content, #history-dialog { padding: 21px; } .dialog-header h2, .dialog-heading h2 { font-size: 21px; } .dialog-intro { font-size: 11px; } .form-grid { gap: 9px; } .dialog-actions .primary-btn, .dialog-actions .secondary-btn { padding: 9px 11px; font-size: 11px; } }
/* Review workspace: the coach and player totals stay visible while moves scroll. */
.review-panel { border-radius: 6px; }
.review-panel .panel-tabs { min-height: 38px; padding: 0 8px; }
.panel-tab { font-size: 11px; }
.panel-tab > svg { width: 14px; height: 14px; }
.review-panel > .coach-card { flex-shrink: 0; margin: 0; padding: 10px 13px; background: #302f29; border: 0; border-radius: 0; border-bottom: 1px solid #ffffff0b; max-height: 225px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #57544b transparent; }
.coach-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.coach-topline .coach-header { margin-bottom: 0; }
.coach-topline .coach-category { font-size: 11px; letter-spacing: .15px; }
.coach-topline > h2 { font-size: 18px; margin: 0; line-height: 1.25; text-align: right; }
.coach-card > #coach-text { font-size: 12px; line-height: 1.45; margin-top: 5px; }
.suggestion-card { border-radius: 5px; background: #ffffff05; padding: 6px 9px; margin-top: 8px; }
.suggestion-heading { display: flex; align-items: center; gap: 8px; min-height: 24px; }
#suggestion-label { font-size: 11px; font-weight: 600; color: #c9c5b7; }
#suggestion-move { font-size: 21px; line-height: 1; font-weight: 700; letter-spacing: -.6px; color: #b0d878; }
#hint-btn { margin-left: auto; font-size: 11px; color: #c1ceab; gap: 4px; padding: 4px 7px; border-radius: 4px; background: #a7cc640b; }
#hint-btn > svg { width: 13px; height: 13px; }
#hint-btn:hover { background: #a7cc641a; }
.suggestion-card > #suggestion-reason { font-size: 12px; line-height: 1.45; margin: 4px 0 0; color: #b8b5a6; }
.review-line { margin-top: 7px; border-top: 1px solid #ffffff09; padding-top: 4px; }
.line-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.line-heading > span { color: #a6a393; font-size: 10px; letter-spacing: .4px; font-weight: 600; }
.line-controls { display: flex; gap: 1px; align-items: center; }
.line-controls .icon-btn { width: 28px; height: 28px; }
.line-controls .icon-btn > svg { width: 16px; height: 16px; }
.line-controls .text-btn { font-size: 11px; padding: 4px 6px; color: #d0ccbe; }
.line-controls .text-btn > svg { width: 13px; height: 13px; }
.review-variation { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 12px; line-height: 1.5; padding-top: 2px; min-height: 25px; max-height: 50px; overflow-y: auto; scrollbar-width: thin; }
.review-variation > span { color: #868477; font-size: 10px; }
.review-variation button { border: 0; border-radius: 3px; background: none; color: #d0ccbe; font-size: 12px; padding: 3px 5px; min-height: 24px; }
.review-variation button:hover { background: #ffffff0c; }
.review-variation button.active { background: #a7cc6422; color: #d2ecad; }
.persistent-summary { flex-shrink: 0; padding: 7px 13px 8px; background: #24231f; border-top: 1px solid #ffffff10; }
.persistent-summary .accuracy-grid { gap: 8px; }
.persistent-summary .accuracy-card { padding: 3px 7px; min-height: 29px; border: 0; background: #ffffff03; border-radius: 4px; }
.persistent-summary .accuracy-label { font-size: 9px; gap: 4px; color: #a7a393; }
.persistent-summary .accuracy-card > strong { font-size: 17px; letter-spacing: -.4px; }
.persistent-summary .color-dot { width: 6px; height: 6px; }
.persistent-summary .classification-counts { border: 0; padding: 0; margin: 5px 0 0; gap: 0; }
.persistent-summary .classification-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; min-height: 22px; padding: 0 2px 3px; font-size: 9px; line-height: 1.25; color: #b1ad9e; }
.classification-head > span { overflow: hidden; text-overflow: ellipsis; }
.classification-head > span:first-child { text-align: left; }
.classification-head > span:nth-child(2) { text-align: center; color: #7f7d70; font-size: 8px; }
.classification-head > span:last-child { text-align: right; }
.classification-head strong { display: block; color: #d4cfbe; font-size: 10px; font-weight: 600; }
.classification-head small { font-size: 8px; font-weight: 400; color: #929081; }
.persistent-summary .classification-row { grid-template-columns: 28px 18px 1fr 28px; column-gap: 6px; min-height: 16px; height: 16px; padding: 0 2px; }
.persistent-summary .category-name { font-size: 10px; color: #beb9a9; }
.persistent-summary .category-icon { width: 12px; height: 12px; font-size: 7px; line-height: 1; }
.persistent-summary .count-number { height: 16px; font-size: 10px; min-width: 20px; }
.review-panel .panel-footer { min-height: 22px; padding: 4px 12px; font-size: 7px; }
.review-panel .panel-footer .text-btn { font-size: 7px; }
#review-view { padding: 8px 12px 10px; }
#review-view .chart-section { margin: 0; }
#review-view .chart-wrap { height: 45px; border-radius: 3px; }
#review-view .moves-section { margin-top: 8px; }
#review-view .section-heading { margin-bottom: 5px; }
#review-view .section-heading h2 { font-size: 10px; }
#review-view .move-row { min-height: 27px; }
#review-view .move-cell { min-height: 27px; padding: 3px 7px; }
.board-column > .analysis-control { display: flex; flex-wrap: wrap; gap: 0 7px; padding: 8px 0 0; margin-left: 27px; border-bottom: 0; }
.board-column .analysis-option { gap: 6px; margin: 0 auto 0 0; }
.board-column .analysis-option > label { font-size: 10px; }
.board-column .analysis-option > select { min-height: 28px; }
.board-column .analyze-button { flex: 1; width: auto; min-width: 135px; min-height: 30px; padding: 5px 10px; font-size: 11px; }
.board-column .analyze-button > svg { width: 14px; height: 14px; }
.board-column #stop-btn { min-height: 30px; padding: 5px 7px; font-size: 10px; }
.board-column #stop-btn > svg { width: 12px; height: 12px; }
.board-column .analysis-status { width: 100%; margin-top: 5px; font-size: 9px; min-height: 13px; }
.board-column .progress-track { width: 100%; height: 2px; margin-top: 4px; }
@media (min-width: 900px) {
  .app-header { height: 40px; }
  .brand { font-size: 14px; gap: 7px; }
  .brand-mark { width: 27px; height: 27px; border-radius: 6px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .header-actions .icon-btn { width: 28px; height: 28px; }
  .header-actions .icon-btn > svg { width: 16px; height: 16px; }
  .app-main { padding-top: 8px; padding-bottom: 4px; }
  .game-toolbar { margin-bottom: 8px; min-height: 32px; gap: 16px; }
  .game-heading { display: flex; gap: 10px; align-items: center; }
  h1 { font-size: 17px; line-height: 1.25; margin: 0; max-width: 290px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #game-meta { font-size: 9px; line-height: 1.4; max-width: 220px; }
  .import-actions .primary-btn, .import-actions .secondary-btn { min-height: 31px; padding: 5px 10px; font-size: 10px; }
  .import-actions .primary-btn > svg, .import-actions .secondary-btn > svg { width: 14px; height: 14px; }
  #sample-btn { font-size: 10px; }
  .workspace { max-width: calc(100dvh + 210px); gap: 24px; grid-template-columns: minmax(300px, 1fr) minmax(360px, 440px); }
  .board-column { max-width: calc(100dvh - 250px); }
  .player-card { min-height: 28px; padding-bottom: 4px; }
  #player-bottom { padding-top: 4px; }
  .player-avatar { width: 24px; height: 24px; }
  .player-avatar img { width: 23px; height: 23px; }
  .player-name { font-size: 12px; }
  .player-color { font-size: 9px; }
  .board-controls { margin-top: 5px; padding: 3px 0; }
  .position-label { min-width: 92px; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .board-footnote { min-height: 22px; padding-top: 0; }
  .board-footnote .text-btn { font-size: 9px; padding: 3px 0; }
  .board-footnote .icon-btn { width: 22px; height: 22px; }
}
@media (max-width: 899px) {
  .game-toolbar { gap: 10px; }
  .game-heading h1 { font-size: 19px; }
  .board-column > .analysis-control { margin-top: 2px; }
  .review-panel > .coach-card { max-height: none; padding: 13px 16px; order: 1; }
  .panel-tabs { order: 0; }
  .persistent-summary { order: 2; padding: 10px 16px; }
  .persistent-summary .classification-row { min-height: 22px; height: 22px; }
  .persistent-summary .category-name { font-size: 11px; }
  .persistent-summary .category-icon { width: 15px; height: 15px; font-size: 9px; }
  .persistent-summary .count-number { font-size: 11px; height: 21px; }
  .persistent-summary .classification-head { font-size: 10px; min-height: 28px; }
  .panel-scroll { order: 3; }
  .panel-footer { order: 4; }
  #review-view .chart-wrap { height: 62px; }
  #review-view .move-cell, #review-view .move-row { min-height: 32px; }
}
@media (max-width: 540px) {
  .board-column > .analysis-control { margin-left: 20px; }
  .board-column .analysis-option > label { display: none; }
  .board-column .analyze-button { min-width: 110px; }
  .coach-topline > h2 { font-size: 17px; }
  .persistent-summary .accuracy-label { font-size: 8px; }
  .game-toolbar { margin-bottom: 12px; }
}
/* Every category drawing is bounded by its badge, including nested marks. */
.category-icon, .cat-icon, .category-symbol, .round-icon, .move-symbol { overflow: hidden; line-height: 1; flex-shrink: 0; }
.category-icon svg, .cat-icon svg, .category-symbol svg, .round-icon svg, .move-symbol svg, .move-badge svg, svg.category-svg { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; flex: none; overflow: hidden; }
.category-icon > span, .cat-icon > span, .round-icon > span, .move-symbol > span { width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
.classification-counts svg.category-symbol { background: transparent; border-radius: 0; width: 100%; height: 100%; }
.move-list .move-symbol.round-icon { width: 16px; height: 16px; min-width: 16px; min-height: 16px; display: grid; place-items: center; flex: 0 0 16px; }
.square .move-badge { width: 24px; height: 24px; padding: 1px; }
.square .move-badge > svg { width: 22px; height: 22px; }
.square .terminal-badge { position: absolute; right: 1px; top: 1px; z-index: 5; display: grid; place-items: center; width: clamp(22px, 3vw, 32px); height: clamp(22px, 3vw, 32px); border-radius: 50%; color: #17120f; background: #ef3b3b; box-shadow: 0 1px 4px #0005; pointer-events: none; }
.square .terminal-badge svg { width: 82%; height: 82%; }
.square .terminal-badge.stalemate { background: #aaa79f; color: #24231f; }
.persistent-summary .classification-row { min-height: 20px; height: 20px; line-height: 1.2; grid-template-columns: 28px 20px minmax(0, 1fr) 28px; column-gap: 7px; }
.persistent-summary .category-name { font-size: 11px; line-height: 1.2; white-space: nowrap; }
.persistent-summary .category-icon, .persistent-summary .cat-icon, .persistent-summary .category-symbol { width: 16px; height: 16px; max-width: 16px; max-height: 16px; }
.persistent-summary .count-number { min-height: 20px; height: 20px; font-size: 11px; line-height: 1; }
.persistent-summary .classification-head { font-size: 10px; line-height: 1.2; color: #c6c1b2; }
.persistent-summary .classification-head > span { min-width: 0; }
.persistent-summary .classification-head > span:nth-child(2) { font-size: 10px; }
.persistent-summary .accuracy-label { font-size: 9px; }
.review-panel .panel-tab { font-size: 12px; }
.coach-card #coach-text, .coach-card #suggestion-reason { font-size: 12px; line-height: 1.45; }
.review-variation > button { font-size: 12px; }
.review-panel .panel-footer, .review-panel .panel-footer .text-btn { font-size: 9px; }
@media (min-width: 900px) {
  .review-panel { height: calc(100dvh - 100px); min-height: 0; max-height: none; }
  .review-panel > .coach-card { flex: 0 0 auto; max-height: min(230px, calc(100dvh - 518px)); min-height: 0; padding: 9px 12px; overflow-y: auto; }
  .review-panel .panel-scroll { flex: 1 1 0; min-height: 100px; }
  .review-panel .persistent-summary { flex: 0 0 254px; height: 254px; min-height: 254px; padding: 4px 13px; overflow: hidden; }
  .persistent-summary .accuracy-card { min-height: 24px; height: 24px; padding: 2px 6px; gap: 6px; }
  .persistent-summary .accuracy-label { font-size: 10px; }
  .persistent-summary .accuracy-card > strong { font-size: 17px; }
  .persistent-summary .classification-counts { margin-top: 2px; }
  .persistent-summary .classification-head { height: 20px; min-height: 20px; padding: 0 2px; }
  .persistent-summary .classification-row { height: 20px; min-height: 20px; }
  #game-meta { font-size: 10px; }
  .board-column .analysis-status { font-size: 10px; }
}
@media (min-width: 900px) and (max-height: 680px) {
  .review-panel { height: calc(100dvh - 88px); }
  .review-panel > .coach-card { max-height: max(120px, calc(100dvh - 500px)); }
  .review-panel .panel-scroll { min-height: 80px; }
}
@media (max-width: 899px) {
  .review-panel { height: auto; min-height: 0; max-height: none; }
  .review-panel > .coach-card { max-height: none; overflow: visible; }
  .review-panel .persistent-summary { height: auto; min-height: 0; flex-basis: auto; padding: 10px 16px; }
  .persistent-summary .classification-row { min-height: 23px; height: 23px; }
  .persistent-summary .classification-head { min-height: 26px; }
  .review-panel .panel-scroll { min-height: 0; overflow: visible; }
}
@media (max-width: 400px) {
  .persistent-summary { padding-left: 12px; padding-right: 12px; }
  .persistent-summary .classification-row { column-gap: 5px; }
  .persistent-summary .accuracy-label { font-size: 9px; }
  .board-controls .position-label { min-width: 78px; max-width: 182px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 899px) {
  .review-panel .panel-tabs { min-height: 44px; }
  .panel-tab { min-height: 44px; }
  .line-controls .icon-btn { width: 36px; height: 36px; }
  .line-controls .text-btn, #hint-btn { min-height: 36px; }
  .review-variation button { min-height: 32px; padding: 4px 7px; }
}
@media (max-width: 540px) {
  .board-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 4px; }
  .board-controls > .icon-btn { width: 44px; height: 44px; align-self: end; }
  .move-navigation { display: grid; grid-template-columns: repeat(4, 44px); gap: 2px; justify-self: center; }
  .move-navigation .icon-btn { width: 44px; height: 44px; grid-row: 2; }
  .move-navigation .position-label { grid-column: 1 / -1; grid-row: 1; width: 100%; min-height: 16px; padding: 0; }
  .persistent-summary .accuracy-label { font-size: 9px; }
}
/* The player's move column keeps the color of the pieces they played. */
.move-list[data-player-color="w"] { --self-cell-bg: #eee9dd; --self-cell-text: #303126; --self-cell-hover: #e3dece; --self-cell-active: #769b43; }
.move-list[data-player-color="b"] { --self-cell-bg: #171813; --self-cell-text: #ebe8dc; --self-cell-hover: #25261f; --self-cell-active: #a7cc64; }
.move-row, .move-column-head { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; }
.move-column-head { display: grid; border-bottom: 1px solid #ffffff0c; }
.move-player-name { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 30px; padding: 5px 7px; font-size: 10px; line-height: 1.3; color: #bdb7a8; font-weight: 600; overflow: hidden; }
.move-player-name small { font-size: 9px; font-weight: 400; opacity: .8; }
.move-cell.is-self, .move-placeholder.is-self { align-self: stretch; width: 100%; min-width: 0; margin: 0; border-radius: 0; background: var(--self-cell-bg); color: var(--self-cell-text); }
.move-placeholder.is-self { display: block; min-height: 27px; }
.move-cell.is-self[data-color="w"], .move-placeholder.is-self[data-color="w"], .move-player-name.is-self[data-color="w"] { --self-cell-bg: #eee9dd; --self-cell-text: #303126; --self-cell-hover: #e3dece; --self-cell-active: #769b43; background: var(--self-cell-bg); color: var(--self-cell-text); }
.move-cell.is-self[data-color="b"], .move-placeholder.is-self[data-color="b"], .move-player-name.is-self[data-color="b"] { --self-cell-bg: #171813; --self-cell-text: #ebe8dc; --self-cell-hover: #25261f; --self-cell-active: #a7cc64; background: var(--self-cell-bg); color: var(--self-cell-text); }
.move-list .move-cell.is-self:hover { background: var(--self-cell-hover); color: var(--self-cell-text); }
.move-list .move-cell.is-self.active, .move-list .move-cell.is-self[aria-current="true"] { background: var(--self-cell-bg); color: var(--self-cell-text); box-shadow: inset 3px 0 0 var(--self-cell-active), inset 0 0 0 1px var(--self-cell-active); font-weight: 700; }
.persistent-summary .count-number.is-self { border-radius: 2px; }
.persistent-summary .count-number.is-self[data-color="w"] { background: #e8e2d4; color: #323329; }
.persistent-summary .count-number.is-self[data-color="b"] { background: #141510; color: #e3dfd0; box-shadow: inset 0 0 0 1px #ffffff0b; }
.persistent-summary .count-number.is-self[data-color="w"]:not(:disabled):hover { background: #f6f1e6; color: #24251e; }
.persistent-summary .count-number.is-self[data-color="b"]:not(:disabled):hover { background: #303128; color: #fff; }
.persistent-summary .accuracy-card.is-self[data-color="w"] { box-shadow: inset 2px 0 0 #e8e2d4, inset 0 0 0 1px #e8e2d422; }
.persistent-summary .accuracy-card.is-self[data-color="b"] { background: #191a15; box-shadow: inset 2px 0 0 #727467, inset 0 0 0 1px #ffffff10; }
@media (max-width: 899px) { .move-placeholder.is-self { min-height: 32px; } .move-player-name { min-height: 34px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
