:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f6f5f1;--surface:#fcfcfb;--surface-2:#f0efec;--text:#0b0b0b;--text-2:#52514e;--muted:#74726c;--grid:#e1e0d9;--axis:#c3c2b7;--border:#0b0b0b1a;--accent:#2a78d6;--accent-wash:#2a78d61a;--accent-ink:#1c5cab;--good:#0ca30c;--good-ink:#006300;--brilliant:#1baca6;--warning:#fab219;--serious:#ec835a;--miss:#c94fb0;--critical:#d03b3b;--critical-ink:#b02a2a;--res-win:#0ca30c;--res-draw:#74726c;--res-loss:#d03b3b;--res-draw-ink:#fff;--series-1:#2a78d6;--series-2:#eb6834;--series-3:#1baf7a;--series-4:#eda100;--context:#9a988f;--board-light:#ebecd0;--board-dark:#739552;--radius:10px;--shadow:0 1px 2px #0000000d, 0 4px 16px #0000000a;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.5}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0d0d0d;--surface:#1a1a19;--surface-2:#242422;--text:#fff;--text-2:#c3c2b7;--muted:#9a988f;--grid:#2c2c2a;--axis:#383835;--border:#ffffff1a;--accent:#3987e5;--accent-wash:#3987e524;--accent-ink:#86b6ef;--good-ink:#0ca30c;--critical-ink:#e66767;--res-draw:#8a887f;--res-draw-ink:#0b0b0b;--series-1:#3987e5;--series-2:#d95926;--series-3:#199e70;--series-4:#c98500;--context:#74726c;--shadow:none}}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0d0d0d;--surface:#1a1a19;--surface-2:#242422;--text:#fff;--text-2:#c3c2b7;--muted:#9a988f;--grid:#2c2c2a;--axis:#383835;--border:#ffffff1a;--accent:#3987e5;--accent-wash:#3987e524;--accent-ink:#86b6ef;--good-ink:#0ca30c;--critical-ink:#e66767;--res-draw:#8a887f;--res-draw-ink:#0b0b0b;--series-1:#3987e5;--series-2:#d95926;--series-3:#199e70;--series-4:#c98500;--context:#74726c;--shadow:none}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}a{color:var(--accent-ink)}h1,h2,h3{margin:0 0 .5rem;line-height:1.25}h1{font-size:1.5rem}h2{font-size:1.15rem}h3{font-size:1rem}p{margin:0 0 .75rem}.app-header{z-index:100;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0}.app-header-inner{align-items:center;gap:1rem;max-width:1280px;min-height:56px;margin:0 auto;padding:0 16px;display:flex;position:relative}.brand{color:var(--text);white-space:nowrap;align-items:center;gap:.5rem;font-weight:700;text-decoration:none;display:flex}.brand img{width:24px;height:24px}.menu-panel{flex:1;align-items:center;gap:1rem;min-width:0;display:flex}.nav{flex-wrap:nowrap;flex-shrink:0;gap:.25rem;display:flex}.nav a{color:var(--text-2);border-radius:8px;padding:.4rem .7rem;font-weight:500;text-decoration:none}.nav a:hover{background:var(--surface-2)}.nav a.active{color:var(--text);background:var(--surface-2)}.nav a:focus-visible,.icon-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.header-user{color:var(--text-2);white-space:nowrap;align-items:center;gap:.75rem;min-width:0;margin-left:auto;font-size:.9rem;display:flex}.queue-status{text-overflow:ellipsis;min-width:0;overflow:hidden}.header-user a{color:inherit}.menu-button{display:none}main:focus{outline:none}.icon-button{color:var(--text-2);background:0 0;border:none;border-radius:10px;flex:none;justify-content:center;width:44px;height:44px;padding:0}.icon-button:hover:not(:disabled){background:var(--surface-2);color:var(--text)}@media (width<=960px){.menu-button{margin-left:auto;display:inline-flex}.menu-panel{background:var(--surface);border-bottom:1px solid var(--border);overscroll-behavior:contain;flex-direction:column;align-items:stretch;gap:0;max-height:calc(100dvh - 56px);padding:8px 16px 16px;display:none;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 12px 24px #0000001f}.menu-panel.open{display:flex}.nav{flex-flow:column;gap:2px}.nav a{min-height:44px;padding:.75rem;font-size:1.05rem}.header-user{border-top:1px solid var(--grid);justify-content:space-between;margin:8px 0 0;padding:12px .75rem 0}}main{max-width:1280px;margin:0 auto;padding:20px 16px 64px}.page-title{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:1rem;display:flex}.subtle{color:var(--text-2)}.muted{color:var(--muted)}.small{font-size:.85rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.stack>.card+.card,main>.card+.card,.stack>*+*{margin-top:16px}.grid-2{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;display:grid}.row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.spacer{flex:1}button,.btn{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:8px;align-items:center;gap:.4rem;padding:.45rem .9rem;font-weight:500;text-decoration:none;display:inline-flex}button:hover:not(:disabled),.btn:hover{background:var(--surface-2)}button:disabled{opacity:.5;cursor:default}button.primary,.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover:not(:disabled){background:var(--accent-ink)}button.ghost{background:0 0;border-color:#0000}button.danger{background:var(--res-loss);border-color:var(--res-loss);color:#fff}button.danger:hover:not(:disabled){background:var(--res-loss);filter:brightness(.92)}button.link-button{color:var(--accent-ink);background:0 0;border:none;padding:0;text-decoration:underline;display:inline}button.link-button:hover:not(:disabled){background:0 0}button.small,.btn.small{padding:.25rem .6rem;font-size:.85rem}input,select,textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--axis);border-radius:8px;padding:.45rem .7rem}textarea{width:100%;min-height:140px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85rem}label.field{color:var(--text-2);flex-direction:column;gap:.25rem;font-size:.9rem;display:flex}.chips{flex-wrap:wrap;gap:.35rem;display:flex}.chip{border-radius:999px;padding:.2rem .75rem;font-size:.85rem}.chip.on{background:var(--text);color:var(--surface);border-color:var(--text)}.chip.on:hover{background:var(--text)!important}.error{color:var(--critical-ink);background:color-mix(in srgb, var(--critical) 10%, transparent);border-radius:8px;padding:.6rem .8rem}.notice{background:var(--surface-2);color:var(--text-2);border-radius:8px;padding:.6rem .8rem;font-size:.9rem}.progress{background:var(--accent-wash);border-radius:999px;min-width:120px;height:8px;overflow:hidden}.progress>div{background:var(--accent);border-radius:999px;height:100%;transition:width .2s}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:left;border-bottom:1px solid var(--grid);white-space:nowrap;padding:.5rem .6rem}th{color:var(--muted);font-size:.8rem;font-weight:500}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}tr.clickable{cursor:pointer}tr.clickable:hover td,tr.clickable:focus-visible td{background:var(--surface-2)}tr.clickable:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.dot{border-radius:50%;flex:none;width:10px;height:10px;display:inline-block}.result{align-items:center;gap:.35rem;font-weight:600;display:inline-flex}.cls{align-items:center;gap:.35rem;display:inline-flex}.cls-brilliant{--c:var(--brilliant)}.cls-great{--c:var(--accent)}.cls-best,.cls-excellent{--c:var(--good)}.cls-good,.cls-forced{--c:var(--muted)}.cls-inaccuracy{--c:var(--warning)}.cls-mistake{--c:var(--serious)}.cls-miss{--c:var(--miss)}.cls-blunder{--c:var(--critical)}.cls .dot{background:var(--c)}.tiles{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;display:grid}.tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px}.tile .label{color:var(--text-2);font-size:.85rem}.tile .value{font-size:1.6rem;font-weight:600}.tile .sub{color:var(--muted);font-size:.8rem}.review{grid-template-columns:minmax(0,560px) minmax(0,1fr);align-items:start;gap:20px;display:grid}@media (width<=960px){.review{grid-template-columns:minmax(0,1fr)}.analyse .board-wrap,.analyse .player-line{max-width:calc(100dvh - 145px);margin-inline:auto}.play .board-wrap,.play .player-line{max-width:calc(100dvh - 185px);margin-inline:auto}}.board-wrap{align-items:stretch;gap:8px;display:flex}.board{position:relative}.board.interactive{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.drag-piece{z-index:1000;pointer-events:none;will-change:transform;filter:drop-shadow(0 4px 6px #0000004d);position:fixed;top:0;left:0}.drag-piece.landed{z-index:15;filter:none;position:absolute}.drag-clip{z-index:25;pointer-events:none;border-radius:6px;position:absolute;inset:0;overflow:hidden}.drag-target{pointer-events:none;visibility:hidden;position:absolute;top:0;left:0;box-shadow:inset 0 0 0 3px #0006}.drag-target.touch{box-shadow:none;background:#14141433;border-radius:50%}.board-wrap .board{flex:1;min-width:0}.player-line{justify-content:space-between;align-items:center;gap:8px;padding:4px 2px;font-weight:600;display:flex}.player-who{flex-direction:column;gap:1px;min-width:0;display:flex}.player-name{white-space:nowrap;align-items:center;gap:.4em;min-width:0;display:flex}.player-called{text-overflow:ellipsis;min-width:0;overflow:hidden}.player-extra{flex:none}.player-name .muted{font-weight:500}.captured{white-space:nowrap;align-items:center;gap:6px;min-height:24px;font-weight:500;display:flex}.captured-tray{background:var(--board-light);border-radius:6px;align-items:center;gap:4px;padding:1px 5px;display:inline-flex;box-shadow:inset 0 0 0 1px #0000001f}.captured-group{flex:none;display:inline-flex}.captured-piece{width:22px;height:22px;display:inline-block}.captured-piece+.captured-piece{margin-left:-10px}.material-lead{color:var(--text-2);font-variant-numeric:tabular-nums;font-size:.8rem;font-weight:600}.player-line .clock{font-variant-numeric:tabular-nums;color:var(--text-2);background:var(--surface-2);border-radius:6px;padding:0 .5rem;font-weight:500}.eval-bar{border:1px solid var(--border);background:#2b2b2b;border-radius:6px;flex:none;width:30px;position:relative;overflow:hidden}.eval-bar .white{background:#f4f4f1;transition:height .25s;position:absolute;bottom:0;left:0;right:0}.eval-bar .label{letter-spacing:-.02em;text-align:center;font-size:.66rem;font-weight:700;position:absolute;left:0;right:0}.nav-buttons{flex-wrap:wrap;justify-content:center;gap:.35rem;margin:10px 0;display:flex}.tabs{border-bottom:1px solid var(--grid);flex-wrap:wrap;gap:.25rem;margin-bottom:12px;display:flex}.tabs button{color:var(--text-2);background:0 0;border:none;border-bottom:2px solid #0000;border-radius:0;padding:.5rem .75rem}.tabs button.on{color:var(--text);border-bottom-color:var(--accent)}.move-list{font-variant-numeric:tabular-nums;grid-template-columns:2.5rem 1fr 1fr;max-height:420px;display:grid;overflow-y:auto}.move-list .num{color:var(--muted);padding:.2rem .3rem}.move-list button{background:0 0;border:none;border-radius:6px;justify-content:flex-start;padding:.2rem .4rem;font-weight:500}.move-list button.on{background:var(--accent-wash)}.sym{color:var(--text-2);font-size:.85em;font-weight:700}.moment{border:1px solid var(--border);cursor:pointer;background:var(--surface);border-radius:8px;padding:10px 12px}.moment:hover{background:var(--surface-2)}.moment.on{border-color:var(--accent)}.moment+.moment{margin-top:8px}.moment-headline{margin:.35rem 0 0;font-weight:600}.moment ul{color:var(--text-2);margin:.25rem 0 0;padding-left:1.1rem}.theme-tag{background:var(--surface-2);color:var(--text-2);border-radius:999px;margin:0 .25rem .25rem 0;padding:.05rem .55rem;font-size:.75rem;display:inline-block}.game-meta{flex-wrap:wrap;gap:6px;display:flex}.meta-chip{background:var(--surface-2);color:var(--text-2);font-variant-numeric:tabular-nums;border-radius:999px;align-items:center;gap:6px;padding:2px 10px;font-size:.85rem;display:inline-flex}.meta-chip.rated{background:var(--accent-wash);color:var(--accent-ink)}.result-chip{color:var(--text);font-weight:600}.result-chip .dot{background:var(--axis);border-radius:50%;width:8px;height:8px}.result-chip.win .dot{background:var(--good)}.result-chip.loss .dot{background:var(--critical)}.versus{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.player-tile{border:1px solid var(--border);border-radius:var(--radius);min-width:0;padding:12px}.player-tile.you{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.pt-name{align-items:center;gap:6px;min-width:0;display:flex}.pt-name strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.you-tag{text-transform:uppercase;letter-spacing:.04em;background:var(--accent-wash);color:var(--accent-ink);border-radius:999px;flex:none;padding:0 6px;font-size:.7rem;font-weight:600}.piece-swatch{vertical-align:-1px;background:#fff;border:1.5px solid #74726c;border-radius:50%;flex:none;width:10px;height:10px;display:inline-block}.piece-swatch.b{background:#111;border-color:#9a988f}.pt-sub{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.8rem}.pt-label{color:var(--text-2);text-transform:uppercase;letter-spacing:.04em;margin-top:10px;font-size:.75rem}.pt-big{font-variant-numeric:tabular-nums;font-size:1.9rem;font-weight:700;line-height:1}.pt-unit{color:var(--text-2);font-size:1.1rem;font-weight:600}.meter{background:var(--grid);border-radius:3px;height:6px;margin-top:6px;overflow:hidden}.meter span{background:var(--accent);border-radius:3px;height:100%;display:block}.pt-stats{gap:2px;margin:10px 0 0;font-size:.85rem;display:grid}.pt-stats>div{justify-content:space-between;gap:8px;display:flex}.pt-stats dt{color:var(--text-2);cursor:help}.pt-stats dd{font-variant-numeric:tabular-nums;margin:0;font-weight:600}.move-quality{gap:4px;font-size:.85rem;display:grid}.mq-row{grid-template-columns:minmax(0,1fr) 7.5rem minmax(0,1fr);align-items:center;gap:8px;display:grid}.mq-head{color:var(--muted);text-align:center;font-size:.78rem}.mq-head .left{text-align:right;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mq-head .right{text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mq-label{justify-content:center;display:flex}.mq-cell{align-items:center;gap:6px;display:flex}.mq-cell.left{flex-direction:row-reverse}.mq-num{font-variant-numeric:tabular-nums;flex:none;min-width:1.5em;font-weight:600}.mq-cell.left .mq-num{text-align:left}.mq-cell.right .mq-num{text-align:right}.mq-cell.zero .mq-num{color:var(--muted);font-weight:400}.mq-track{flex:1;height:10px;display:flex}.mq-cell.left .mq-track{justify-content:flex-end}.mq-bar{background:var(--c);height:100%;display:block}.mq-cell.left .mq-bar{border-radius:4px 0 0 4px}.mq-cell.right .mq-bar{border-radius:0 4px 4px 0}@media (width<=480px){.mq-row{grid-template-columns:minmax(0,1fr) 6.5rem minmax(0,1fr);gap:6px}.pt-big{font-size:1.6rem}}.chart{width:100%;position:relative}.chart svg{width:100%;display:block;overflow:visible}.chart .tooltip{pointer-events:none;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);white-space:nowrap;z-index:2;border-radius:8px;padding:.35rem .6rem;font-size:.8rem;position:absolute;transform:translate(-50%,-110%)}.chart .tooltip strong{font-size:.9rem}.hbar{grid-template-columns:7rem 1fr 3.5rem;align-items:center;gap:.5rem;font-size:.9rem;display:grid}.hbar+.hbar{margin-top:6px}.hbar .track{height:12px}.hbar .fill{background:var(--accent);border-radius:0 4px 4px 0;min-width:2px;height:100%}.meter{background:var(--surface-2);border-radius:999px;height:10px;overflow:hidden}.meter>div{border-radius:999px;height:100%}.hero{font-size:3rem;font-weight:600;line-height:1}.level{align-items:center;gap:.35rem;font-weight:600;display:inline-flex}.puzzle{grid-template:"board task""board details"1fr/minmax(0,520px) minmax(0,1fr);align-items:start;gap:20px;display:grid}.puzzle-board{grid-area:board}.puzzle-task{grid-area:task}.puzzle-details{grid-area:details}.puzzle-filter-select{display:none}@media (width<=900px){.puzzle{grid-template:"task""board""details"/minmax(0,1fr);gap:12px}.puzzle-board{width:100%;max-width:min(100%,100dvh - 185px);margin-inline:auto}.puzzle-filter-chips{display:none}.puzzle-filter-select{align-items:center;gap:.6rem;display:flex}.puzzle-filter-select select{flex:1;min-width:0}}.feedback-good{color:var(--good-ink);font-weight:600}.feedback-bad{color:var(--critical-ink);font-weight:600}.empty{text-align:center;color:var(--text-2);padding:40px 16px}.move-tree{font-variant-numeric:tabular-nums;max-height:460px;line-height:2;overflow-y:auto}.tree-move{color:var(--text);background:0 0;border:none;border-radius:6px;gap:.15rem;padding:.05rem .3rem;font-weight:600}.tree-move.var{color:var(--text-2);font-weight:500}.tree-move[aria-current=true]{background:var(--accent);color:#fff}.tree-move.start{color:var(--muted);font-weight:500}.tree-num{color:var(--muted);margin-right:.15rem;font-weight:500}.tree-move .sym{margin-left:.1rem}.tree-move.cls-brilliant .sym,.tree-move.cls-great .sym,.tree-move.cls-mistake .sym,.tree-move.cls-miss .sym,.tree-move.cls-blunder .sym,.tree-move.cls-inaccuracy .sym{color:var(--c);filter:saturate(1.1)}.move-tree .tree-move[aria-current=true],.move-tree .tree-move[aria-current=true] .tree-num,.move-tree .tree-move[aria-current=true] .sym{color:#fff}.tree-variation.block{border-left:2px solid var(--grid);margin:2px 0 2px .75rem;padding-left:.6rem;display:block}.tree-variation.inline{color:var(--text-2)}.engine-panel .engine-head{gap:.75rem}.switch{cursor:pointer;align-items:center;gap:.5rem;display:inline-flex}.switch .slider{background:var(--axis);border-radius:999px;flex:none;width:36px;height:20px;transition:background .15s;position:relative}.switch .slider:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .15s;position:absolute;top:2px;left:2px}.switch input:checked+.slider{background:var(--accent)}.switch input:checked+.slider:after{transform:translate(16px)}.switch input:focus-visible+.slider{outline:2px solid var(--accent);outline-offset:2px}.engine-lines{margin:10px 0 0;padding:0;list-style:none}.engine-lines li{border-top:1px solid var(--grid);align-items:baseline;gap:.6rem;padding:4px 0;display:flex}.engine-score{font-variant-numeric:tabular-nums;flex:none;min-width:3.6rem;font-weight:700}.engine-pv{flex-wrap:wrap;gap:0 .1rem;min-width:0;display:flex}.engine-pv button{background:0 0;border:none;gap:.1rem;padding:.05rem .25rem;font-size:.9rem;font-weight:500}@media (pointer:coarse){.engine-pv{gap:4px 2px}.engine-pv button{min-height:36px;padding:.25rem .45rem}.tree-move{min-height:36px}}.promotion{background:var(--surface);border:1px solid var(--border);z-index:30;border-radius:12px;gap:6px;width:max-content;max-width:calc(100% - 8px);height:max-content;margin:auto;padding:10px;display:flex;position:absolute;inset:0;box-shadow:0 12px 32px #0000004d}.promotion button{justify-content:center;width:52px;min-width:0;height:52px;padding:4px;font-size:2rem;line-height:1}.piece-image,.piece-image>svg{width:100%;height:100%;display:block}.promotion .cancel{width:36px;font-size:1.1rem}.engine-terminal{margin:10px 0 0;font-weight:600}.threat-row{border-top:1px solid var(--grid);gap:.75rem;margin-top:10px;padding-top:8px}.compare{background:var(--surface-2);border-radius:8px;flex-direction:column;gap:6px;padding:10px 12px;display:flex}.compare-row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.compare-row .subtle{min-width:5.5rem}.arrow-key{border-radius:3px;flex:none;width:18px;height:6px;display:inline-block}.key-line{align-items:baseline;gap:.5rem;margin:0;display:flex}.key-line>.arrow-key{transform:translateY(-.2em)}.puzzle-feedback:focus{outline:none}.game-why{gap:4px;min-width:0;display:grid}.game-why p{margin:0}.explain{margin:0;padding-left:1.1rem}.pager-bar{margin-top:12px}.pager{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.pager button[aria-label^=Page]{min-width:2.25rem}.pager button[aria-disabled=true]{opacity:.5;cursor:default;background:var(--surface)}.rated-tag{border:1px solid var(--border);color:var(--text-2);border-radius:999px;margin-top:2px;padding:0 6px;font-size:.75rem;display:inline-block}.rated-tag.rated{border-color:var(--accent);color:var(--accent-ink)}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.plain-link{color:inherit;text-decoration:none}.plain-link:hover{text-decoration:underline}.res-win{--c:var(--res-win)}.res-draw{--c:var(--res-draw)}.res-loss{--c:var(--res-loss)}.legend{color:var(--text-2);flex-wrap:wrap;gap:4px 12px;font-size:.8rem;display:flex}.legend>span{align-items:center;gap:5px;display:inline-flex}.swatch{background:var(--c);border-radius:2px;width:10px;height:10px}.card-head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px;display:flex}.card-head h2{margin:0}.dash-kpis{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.dash-ratings{grid-template-columns:repeat(4,minmax(0,1fr))}.rating-tile .label{align-items:center;gap:6px;display:flex}.rating-tile.main{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.rating-tile.unplayed .value{color:var(--muted)}@media (width<=720px){.dash-ratings{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=520px){.dash-ratings,.dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dash-ratings .tile,.dash-kpis .tile{padding:10px}.dash-kpis>.tile:last-child:nth-child(odd){grid-column:1/-1}.dash-kpis .tile-row{flex-wrap:wrap}}.dash-kpis .value{line-height:1.2}.tile-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.sparkline{flex:none;overflow:visible}.delta.up{color:var(--good-ink)}.delta.down{color:var(--critical-ink)}.form-strip{gap:3px;margin:6px 0 4px;display:flex}.form-cell{width:20px;height:22px;color:var(--text);background:color-mix(in srgb, var(--c) 18%, transparent);box-shadow:inset 0 -3px 0 var(--c);border-radius:4px;place-items:center;font-size:.72rem;font-weight:700;display:inline-grid}.dash-grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:start;gap:16px;display:grid}.stack>.dash-grid>.card,.dash-grid>.card{margin-top:0}@media (width<=860px){.dash-grid{grid-template-columns:minmax(0,1fr)}}.activity-plot{border-bottom:1px solid var(--axis);height:140px;margin-left:22px;position:relative}.activity-tick{border-top:1px solid var(--grid);position:absolute;left:0;right:0}.activity-tick span{text-align:right;width:18px;color:var(--muted);font-variant-numeric:tabular-nums;font-size:.7rem;position:absolute;top:-8px;left:-22px}.activity-cols{gap:2px;display:flex;position:absolute;inset:0}.activity-col{outline-offset:1px;border-radius:4px 4px 0 0;flex:1;align-items:flex-end;min-width:0;display:flex}.activity-col.on{background:var(--accent-wash)}.activity-stack{flex-direction:column;gap:2px;width:100%;max-width:18px;margin:0 auto;display:flex}.activity-stack .seg{background:var(--c);min-height:2px;display:block}.activity-stack .seg:first-child{border-radius:4px 4px 0 0}.activity-readout{min-height:1.5em;color:var(--text-2);margin:8px 0 0}.activity-axis{color:var(--muted);justify-content:space-between;margin:4px 0 0 22px;font-size:.72rem;display:flex}.result-bar{gap:4px;display:grid}.result-bar-head{justify-content:space-between;gap:8px;font-size:.9rem;display:flex}.result-bar-head strong{color:var(--text)}.result-bar-track{gap:2px;height:10px;display:flex}.result-bar-track .seg{background:var(--c);display:block}.result-bar-track .seg:first-child{border-radius:4px 0 0 4px}.result-bar-track .seg:last-child{border-radius:0 4px 4px 0}.result-bar-track .seg:only-child{border-radius:4px}.result-bar-track .seg.empty{background:var(--grid)}.work-list{gap:10px;margin:0;padding-left:1.2rem;display:grid}.opening-list{gap:4px;margin:0;padding:0;list-style:none;display:grid}.opening-list li{justify-content:space-between;gap:8px;font-size:.9rem;display:flex}.opening-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.opening-list .subtle{flex:none}.fair-play-note{border-top:1px solid var(--border);color:var(--text-2);padding-top:10px}.last-vs{align-items:center;gap:8px;font-size:1.05rem;display:flex}main.gate{max-width:460px;padding-top:8vh}.gate-card h1{margin:0;font-size:1.4rem}.gate-card .sync-form{grid-template-columns:1fr}.sync-form{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:end;gap:10px;display:grid}.sync-form label{gap:4px;display:grid}.board-settings{grid-template-columns:minmax(0,1fr) 260px;align-items:start;gap:20px;display:grid}@media (width<=700px){.board-settings{grid-template-columns:minmax(0,1fr)}.board-preview{width:min(100%,260px)}}.look-options{flex-wrap:wrap;gap:8px;display:flex}.look-option{border-radius:10px;align-items:center;gap:8px;padding:6px 10px;display:inline-flex}.look-option.on{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text);font-weight:600}.swatch{border-radius:4px;flex:none;width:22px;height:22px}.piece-pair{gap:1px;display:inline-flex}.piece-pair .piece-image{width:26px;height:26px}.result-dot{vertical-align:middle;border-radius:50%;width:14px;height:14px;display:inline-block}.result-dot.win{background:var(--res-win)}.result-dot.loss{background:var(--res-loss)}.result-dot.draw{background:var(--res-draw)}.play .board-wrap .board{flex:1}.level-options{flex-wrap:nowrap;gap:6px}.level-options .look-option{flex-direction:column;flex:1 1 0;justify-content:center;gap:1px;min-width:0;max-width:3.4rem;padding:5px 0 4px;line-height:1.1}.level-options .level-elo{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.68rem;font-weight:500}.level-options .look-option.on .level-elo{color:var(--text-2)}.play-status{text-align:center;min-height:1.5em;margin:10px 0 0;font-weight:600}.play-status.over{color:var(--accent-ink)}.play-moves{max-height:320px}.play-moves .san{padding:.2rem .4rem;font-weight:500}.brilliant-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}.brilliant-item{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);height:100%;color:inherit;align-items:center;gap:12px;padding:8px;text-decoration:none;display:flex}.brilliant-item:hover{border-color:var(--brilliant)}.brilliant-item:focus-visible{outline:2px solid var(--brilliant);outline-offset:2px}.brilliant-text{overflow-wrap:anywhere;flex-direction:column;gap:2px;min-width:0;display:flex}.brilliant-move{font-weight:700}.brilliant-move .sym{color:var(--brilliant);margin-left:3px}.mini-board{border-radius:3px;flex:none;grid-template-rows:repeat(8,1fr);grid-template-columns:repeat(8,1fr);width:96px;height:96px;display:grid;overflow:hidden}.mini-square{min-width:0;display:block;position:relative}.mini-square.light{background:var(--board-light)}.mini-square.dark{background:var(--board-dark)}.mini-square.marked:after{content:"";background:color-mix(in srgb, var(--brilliant) 50%, transparent);position:absolute;inset:0}.mini-square .piece-image{z-index:1;position:relative}.dash-grid>.dash-wide{grid-column:1/-1}.filter-bar{flex-wrap:wrap;align-items:center;gap:10px 14px;display:flex}.seg{background:var(--surface-2);border-radius:999px;flex-wrap:wrap;gap:2px;padding:3px;display:inline-flex}.seg button{white-space:nowrap;color:var(--text-2);background:0 0;border:none;border-radius:999px;min-height:30px;padding:.25rem .8rem;font-size:.85rem}.seg button:hover{background:var(--surface);color:var(--text)}.seg button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 0 0 1px var(--border), 0 1px 2px #0000000f;font-weight:600}.switch{color:var(--text-2);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;font-size:.85rem;display:inline-flex}.switch input{opacity:0;width:1px;height:1px;position:absolute}.switch-track{background:var(--axis);border-radius:999px;flex:none;width:34px;height:20px;transition:background .15s;position:relative}.switch-track:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .15s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #0003}.switch input:checked+.switch-track{background:var(--accent)}.switch input:checked+.switch-track:after{transform:translate(14px)}.switch input:focus-visible+.switch-track{outline:2px solid var(--accent);outline-offset:2px}.stack>.filter-note{margin:6px 0 0}.insight-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.insight-kpis .value{line-height:1.2}.insight-kpis .sub{margin-top:2px}@media (width<=860px){.insight-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=520px){.insight-kpis{gap:8px}.insight-kpis .tile{padding:10px}.insight-kpis .tile-row{flex-wrap:wrap}}.insight-section>h2,.insights>section>h2{margin-bottom:10px}.insight-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));align-items:start;gap:16px;display:grid}.chart-card{min-width:0}.chart-card-head{margin-bottom:10px}.chart-card-top{justify-content:space-between;align-items:center;gap:8px 12px;min-height:30px;display:flex}.chart-card-top h3{min-width:0;margin:0}.chart-card-top>:last-child:not(h3){flex:none}.chart-card-head p{max-width:60ch;margin:2px 0 0}.seg.seg-small{padding:2px}.seg.seg-small button{min-height:26px;padding:.15rem .65rem;font-size:.8rem}.btn.ghost,button.ghost{color:var(--text-2);background:0 0;border-color:#0000}.btn.ghost:hover,button.ghost:hover{border-color:var(--border);color:var(--text)}.btn.ghost[aria-pressed=true]{border-color:var(--border);background:var(--surface-2);color:var(--text)}.table-toggle{flex:none}.chart-table{max-height:340px;overflow:auto}.chart-legend{color:var(--text-2);flex-wrap:wrap;gap:4px 14px;margin:-2px 0 8px;font-size:.8rem;display:flex}.chart-legend>span{align-items:center;gap:6px;display:inline-flex}.key{flex:none;display:inline-block}.key.rect{border-radius:2px;width:10px;height:10px}.key.line{border-radius:1px;width:14px;height:2px}.key.tick{width:12px;height:2px}.chart,.stacked-rows{touch-action:pan-y}.stacked-rows:focus-visible,.chart:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}.chart .grid-line{stroke:var(--grid);stroke-width:1px}.chart .axis-line{stroke:var(--axis);stroke-width:1px}.chart .reference-line{stroke:var(--axis);stroke-width:1.5px}.chart .crosshair{stroke:var(--muted);stroke-width:1px}.chart .tick{fill:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}.chart .end-label{fill:var(--text);paint-order:stroke;stroke:var(--surface);stroke-width:3px;font-size:12px;font-weight:600}.chart .cap-label{fill:var(--text-2);font-variant-numeric:tabular-nums;font-size:11px;font-weight:600}.chart .ringed{stroke:var(--surface);stroke-width:4px;paint-order:stroke}.chart .col-fill{fill:var(--series-1);transition:opacity .1s}.chart .col-fill.faint{opacity:.35}.chart .col.on .col-fill{opacity:.8}.chart .col.on .col-fill.faint{opacity:.25}.chart .col-marker{stroke:var(--text-2);stroke-width:2px;stroke-linecap:round}.chart-tip{pointer-events:none;z-index:3;background:var(--surface);border:1px solid var(--border);white-space:nowrap;border-radius:8px;min-width:120px;padding:6px 10px;font-size:.8rem;position:absolute;box-shadow:0 2px 12px #0000001f}.tip-head{color:var(--text-2);margin-bottom:2px}.tip-row{align-items:center;gap:6px;display:flex}.tip-row strong{font-variant-numeric:tabular-nums;font-size:.9rem}.tip-foot{color:var(--muted);margin-top:2px}.stacked-rows{gap:12px;display:grid;position:relative}.stacked-head{justify-content:space-between;gap:8px;margin-bottom:4px;font-size:.88rem;display:flex}.stacked-head strong{font-weight:600}.stacked-track{gap:2px;height:22px;display:flex}.stacked-seg{font-variant-numeric:tabular-nums;white-space:nowrap;justify-content:center;align-items:center;min-width:2px;font-size:.72rem;font-weight:600;transition:filter .1s;display:flex;overflow:hidden}.stacked-seg:first-child{border-radius:4px 0 0 4px}.stacked-seg:last-child{border-radius:0 4px 4px 0}.stacked-seg:only-child{border-radius:4px}.stacked-seg.on{filter:brightness(1.12)}.bar-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.bar-line{grid-template-columns:minmax(7rem,38%) minmax(40px,1fr) 3rem auto;align-items:center;gap:10px;font-size:.88rem;display:grid}.bar-label{overflow-wrap:anywhere;min-width:0}.bar-track{height:10px}.bar-fill{background:var(--series-1);border-radius:0 4px 4px 0;min-width:2px;height:100%;display:block}.bar-value{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.bar-after{white-space:nowrap;min-width:4.5rem;font-size:.78rem}.bar-sub{color:var(--text-2);margin-top:2px}@media (width<=520px){.bar-line{grid-template-columns:minmax(0,1fr) 3rem auto;row-gap:4px}.bar-track{grid-area:2/1/auto/-1}}.delta{white-space:nowrap}.delta.good{color:var(--good-ink)}.delta.bad{color:var(--critical-ink)}.phase-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px;display:grid}.phase-stat{border:1px solid var(--border);border-radius:8px;padding:8px 10px}.phase-stat.worst{border-color:var(--serious);box-shadow:inset 0 0 0 1px var(--serious)}.phase-value{font-size:1.3rem;font-weight:600;line-height:1.2}.phase-stat .muted{font-size:.72rem;line-height:1.25}@media (width<=380px){.phase-stats{grid-template-columns:1fr}.phase-stat{align-items:baseline;gap:8px;display:flex}}.insight-section:not(:has(.card)){display:none}.mini-head{color:var(--text-2);margin:0 0 8px;font-size:.85rem;font-weight:600}.endings,.split-charts{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:16px 20px;display:grid}.endings .bar-line{grid-template-columns:minmax(6.5rem,45%) minmax(30px,1fr) 2.6rem}@media (width<=520px){.endings .bar-line{grid-template-columns:minmax(0,1fr) 2.6rem}}.mini-wdl{vertical-align:middle;gap:2px;width:90px;height:8px;display:inline-flex}.mini-wdl>span{min-width:2px;display:block}.mini-wdl>span:first-child{border-radius:3px 0 0 3px}.mini-wdl>span:last-child{border-radius:0 3px 3px 0}.mini-wdl>span:only-child{border-radius:3px}.openings-table .opening-cell{min-width:10rem}.work-card h3{font-size:1rem}.chart-card-head .takeaway{color:var(--text);margin:4px 0 2px;font-size:.92rem}.chart-card-head .takeaway strong{font-weight:600}
