:root{--paper:#f7f5ef;--ink:#183b32;--muted:#7a8279;--line:#e4e5db;--green:#234e3e;--light:#e9eddf;--gold:#a77e46}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px 'Manrope',system-ui,sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c5a975;outline-offset:3px}a{color:inherit;text-decoration:none}.topbar{height:105px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:48px;max-width:1440px;margin:auto;padding:0 52px}.brand{font-size:38px;display:flex;gap:12px;align-items:center}.brand span{font:600 23px Georgia,serif;letter-spacing:-.5px}.brand small{display:block;font:8px 'Manrope',sans-serif;letter-spacing:2.2px;margin-top:7px}.top-note{font-size:10px;line-height:1.7;color:var(--muted);padding-left:30px;border-left:1px solid var(--line)}.engine-dot{margin-left:auto;color:#667767;font-size:11px}.engine-dot:before{content:'';display:inline-block;background:#698d60;width:6px;height:6px;border-radius:50%;margin-right:8px}main{max-width:1440px;margin:auto;padding:0 52px}.hero{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:53px 0 39px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:800;color:#8b967f}h1{font:400 43px/1.17 Georgia,serif;letter-spacing:-1.4px;margin:16px 0}h1 em{font-weight:400;color:#6c805f}.hero p{font-size:12px;color:var(--muted);line-height:1.9}.import-card{width:440px;flex-shrink:0;padding:23px;background:#efeee6;border:1px solid #e6e5db;border-radius:7px}.import-card label{display:block;font-size:11px;font-weight:700;margin-bottom:12px}.input-row{display:flex;align-items:center;background:#fff;padding:5px;border:1px solid #dedfd3;border-radius:4px}.input-row>span{font-size:23px;color:#8a9784;padding-left:9px}.input-row input{min-width:0;flex:1;border:0;background:transparent;padding:10px;font-size:11px;outline:none}.input-row button,.primary{border:0;background:var(--green);color:#fff;padding:13px 16px;font-size:10px;border-radius:3px;white-space:nowrap}.input-row button span{margin-left:11px}.import-card small{display:block;font-size:9px;color:#92978a;margin-top:11px}.tabs{display:flex;gap:36px;border-bottom:1px solid var(--line);margin-bottom:28px}.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:15px 0 19px;color:#a1a596;font-size:10px}.tabs button span{font-size:12px;margin-left:9px}.tabs button.active{border-color:var(--green);color:var(--ink);font-weight:700}.tab-panel{display:none}.tab-panel.active{display:block}.workspace{display:grid;grid-template-columns:245px minmax(320px,1fr) 310px;gap:25px;align-items:start}.panel{background:#fbfaf6;border:1px solid var(--line);border-radius:6px}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px}.panel-heading h2{font:400 19px Georgia,serif;margin:0}.library,.analysis{padding:21px 18px}.badge{font-size:10px;padding:4px 7px;border-radius:4px;background:#eceee4;color:#718267}.muted{color:var(--muted);line-height:1.7}.small{font-size:10px}.library-filters{display:grid;gap:7px;margin:18px 0 12px}.library-filters input,.library-filters select,.trainer-settings select{width:100%;border:1px solid var(--line);border-radius:3px;background:#f6f5ef;color:var(--ink);padding:9px;font-size:10px}.game-list{max-height:485px;overflow:auto}.empty-library{padding:62px 0;text-align:center}.empty-library>span{display:block;font-size:42px;color:#acb69b}.empty-library h3{font:400 19px/1.4 Georgia,serif}.empty-library p{font-size:10px;color:var(--muted);line-height:1.8}.game-card{display:block;width:100%;text-align:left;border:1px solid transparent;border-bottom:1px solid var(--line);background:transparent;padding:13px 9px;border-radius:3px;color:var(--ink)}.game-card.active{background:#e9eddf;border-color:#dce2d0}.game-card strong{font-size:11px}.game-meta{display:flex;justify-content:space-between;font-size:9px;color:#8a9183;margin-top:7px}.result-pill{float:right;font-size:9px;background:#e4e9d9;padding:3px 6px;border-radius:3px}.result-pill.loss{color:#a46e54;background:#f1e7dc}.board-column{min-width:0}.board-player{display:flex;align-items:center;gap:10px;padding:0 0 12px;font-size:11px}.board-player:has(.light){padding:12px 0}.avatar{width:32px;height:32px;background:#e5e8dd;border-radius:4px;font-size:25px;text-align:center;line-height:32px}.avatar.light{background:#eeeadf}.board-player small{display:block;color:#89907f;font-size:9px;margin-top:4px}.board-player>span,.board-player>.icon-button{margin-left:auto}.board-wrap{position:relative;padding-left:17px}.chessboard{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;overflow:hidden;border-radius:3px;box-shadow:0 5px 14px #263d2b0b;user-select:none}.square{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1;background:#eeeed2;border:0;padding:0;min-width:0;color:#18382d;font-family:Georgia,'Segoe UI Symbol',serif;font-size:clamp(25px,3.4vw,53px);line-height:1}.square.dark{background:#769656}.square.last{box-shadow:inset 0 0 0 40px #d6c65b66}.square.selected{background:#d2bc66}.square.target:after{content:'';position:absolute;width:24%;height:24%;border-radius:50%;background:#163d3266}.square .coord{position:absolute;bottom:3px;right:4px;font:600 8px 'Manrope',sans-serif;color:#2b493a}.square .rank{left:4px;top:3px;right:auto;bottom:auto}.square.dark .coord{color:#f0f0db}.eval-bar{position:absolute;left:0;top:0;bottom:0;width:9px;background:#31473a;border-radius:2px;overflow:hidden}.eval-bar>div{position:absolute;bottom:0;width:100%;height:50%;background:#eeeee2;transition:height .3s}.eval-bar>span{position:absolute;bottom:5px;width:9px;font-size:7px;color:#263e32;writing-mode:vertical-rl}.icon-button{background:transparent;border:1px solid var(--line);border-radius:4px;color:var(--ink);padding:5px 9px}.board-controls{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:11px;font-size:10px}.board-controls>div{display:flex;gap:5px}.board-controls button{background:#eeeee5;border:0;color:var(--ink);width:35px;height:29px;border-radius:3px;font-size:21px}.board-footnote{display:flex;justify-content:space-between;font-size:8px;color:#91998b;margin:12px 0}.tiny-label{font-size:8px;letter-spacing:1.3px;color:#8d957f}.coach-intro{text-align:center;padding:35px 0 12px}.coach-mark{display:block;font:36px Georgia,serif;color:#8b9c70}.coach-intro h3,.trainer-coach h3{font:400 21px/1.4 Georgia,serif}.coach-intro p{font-size:11px;color:var(--muted);line-height:1.9}.legend{display:grid;text-align:left;gap:13px;border-top:1px solid var(--line);padding:23px 5px 0;margin-top:29px;font-size:10px;color:#7a8471}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:9px}.good{background:#7f9d6b}.mistake{background:#cfad61}.blunder{background:#bd795e}.notice{padding:14px 18px;background:#eee4d8;color:#785237;border:1px solid #e3d0b8;border-radius:4px;margin-bottom:18px;font-size:12px}.import-progress{margin-bottom:20px;font-size:10px;color:var(--muted)}.progress-track{height:3px;background:#e1e5d9;margin-bottom:9px}.progress-track i{display:block;width:0;height:100%;background:#698b62;transition:width .3s}.text-button{border:0;background:none;color:var(--green);padding:12px 0;font-size:11px;text-decoration:underline;text-underline-offset:4px}.move-list{margin-top:17px;max-height:240px;overflow:auto;display:grid;grid-template-columns:26px 1fr 1fr;gap:4px}.move-list>span{font-size:10px;color:#9ba18e;padding:7px 0}.move-list button{border:0;background:#f0f0e7;border-radius:3px;text-align:left;color:var(--ink);padding:7px;font-size:11px}.move-list button.active{background:var(--green);color:#fff}.move-list button.bad-move{color:#b26c4d}.analysis-state{padding:24px 0}.analysis-state h3{font:24px Georgia,serif}.analysis-state p{font-size:11px;line-height:1.9;color:var(--muted)}.classification{font-size:10px;display:inline-block;background:#e9eddf;padding:5px 9px;border-radius:3px}.classification.error{background:#f2e5d9;color:#a26548}.move-heading{font:27px Georgia,serif;margin:15px 0}.comment{font-size:12px;line-height:1.9;color:#62725f}.variation{font-size:12px;color:#677c58;border-left:2px solid #b9c7a7;background:#f0f2e8;padding:12px;line-height:1.8;margin-top:16px;overflow-wrap:anywhere}.variation:empty{display:none}.analysis-summary{font-size:10px;color:var(--muted);padding:12px 0;border-bottom:1px solid var(--line)}.section-heading{display:flex;justify-content:space-between;align-items:end;padding:15px 0 28px;gap:20px}.section-heading h2{font:35px Georgia,serif;margin:12px 0}.section-heading p{font-size:12px;color:var(--muted)}.section-heading>.muted{font-size:10px;text-align:right}.opening-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.opening-card{padding:24px}.opening-card h3{font:22px/1.3 Georgia,serif;margin:12px 0}.opening-card .stats-row{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin:20px 0 9px}.win-bar{height:7px;border-radius:4px;display:flex;overflow:hidden;background:#d9dacc}.win-bar .wins{background:#718c62}.win-bar .draws{background:#d2c6a4}.win-bar .losses{background:#b68d77}.empty-state{padding:50px;grid-column:1/-1;text-align:center;color:var(--muted)}.trainer-layout{display:grid;grid-template-columns:280px minmax(300px,500px) 1fr;gap:28px;align-items:start}.trainer-settings,.trainer-coach{padding:25px}.trainer-settings label{display:block;font-size:11px;font-weight:700;margin:0 0 12px}.trainer-settings p{font-size:11px;min-height:55px}.trainer-settings select{font-size:12px;padding:12px}.side-selector{display:flex;gap:8px;margin-bottom:23px}.side-selector button{flex:1;border:1px solid var(--line);background:#f4f3ea;padding:12px 5px;border-radius:3px;color:var(--ink)}.side-selector button.active{background:#e1e7d6;border-color:#a8ba97}.trainer-settings .primary{width:100%;font-size:12px;padding:14px}.training-tip{display:flex;gap:14px;border-top:1px solid var(--line);margin-top:26px;padding-top:20px}.training-tip span{font-size:24px}.training-tip p{margin:0;min-height:0;font-size:10px;line-height:1.8}.trainer-coach>.coach-mark{margin-top:30px}.trainer-coach p{font-size:12px;color:var(--muted);line-height:1.9}footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:48px;padding:24px 0 30px;color:#969c8e;font-size:9px}footer>span:first-child{font:18px Georgia,serif;color:#65765f}footer p{font:italic 14px Georgia,serif}#promotion{padding:12px;font-size:11px}#promotion select{border:1px solid var(--line);padding:8px;background:var(--paper)}
@media(min-width:1450px){.square{font-size:57px}}@media(max-width:1150px){main{padding:0 28px}.topbar{padding:0 28px}.workspace{grid-template-columns:200px minmax(300px,1fr);gap:20px}.analysis{grid-column:1/-1}.coach-intro{padding:10px;display:grid;grid-template-columns:40px 1fr 1fr;gap:20px;align-items:center;text-align:left}.coach-intro h3{font-size:18px}.coach-intro .legend{display:none}.analysis .move-list{max-height:180px}.trainer-layout{grid-template-columns:240px 1fr}.trainer-coach{grid-column:1/-1}.hero{gap:22px}.import-card{width:370px}h1{font-size:38px}.opening-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.topbar{height:80px;padding:0 20px}.brand{font-size:31px}.brand span{font-size:21px}.brand small{font-size:7px}.top-note{display:none}.engine-dot{font-size:9px}main{padding:0 18px}.hero{display:block;padding:32px 0 24px}h1{font-size:37px}.hero p{font-size:11px}.import-card{width:100%;margin-top:25px;padding:17px}.input-row button{padding:13px;font-size:10px}.tabs{gap:0;justify-content:space-between;margin-bottom:20px}.tabs button{font-size:8px;padding:13px 0}.tabs button span{font-size:10px;margin-left:4px}.workspace{display:flex;flex-direction:column;gap:20px}.library{width:100%;padding:16px}.library .panel-heading{padding-bottom:8px}.library-filters{grid-template-columns:1fr 1fr;margin:10px 0}.game-list{max-height:145px}.empty-library{padding:12px;display:flex;align-items:center;gap:15px;text-align:left}.empty-library>span{font-size:28px}.empty-library h3{font-size:15px;margin:0}.empty-library p{margin:0;font-size:9px}.board-column{width:100%}.square{font-size:clamp(27px,8vw,55px)}.analysis{width:100%;padding:18px}.coach-intro{display:block;text-align:center}.coach-intro .coach-mark{display:none}.coach-intro h3{font-size:22px}.coach-intro p{font-size:12px}.board-footnote{font-size:8px}.section-heading{display:block}.section-heading h2{font-size:29px}.section-heading>.muted{text-align:left}.opening-stats{grid-template-columns:1fr}.trainer-layout{display:flex;flex-direction:column;gap:20px}.trainer-settings,.trainer-coach,.trainer-board-area{width:100%}.trainer-settings{padding:18px}.trainer-settings p{min-height:0}.trainer-coach>.coach-mark{margin-top:10px}footer{gap:14px;flex-wrap:wrap;margin-top:30px}footer p{order:3;width:100%;margin:0;text-align:center;font-size:12px}.desktop{display:none}}

.engine-settings{display:flex;align-items:center;gap:14px;padding:5px 0 15px;color:var(--muted);font-size:10px}.engine-settings select{border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--ink);font-size:10px;padding:8px}.engine-settings small{margin-left:auto;font-size:9px}.auth-overlay{position:fixed;inset:0;background:#f7f5eff5;z-index:100;display:grid;place-items:center;padding:20px;backdrop-filter:blur(10px)}.auth-overlay[hidden]{display:none}.auth-card{max-width:460px;width:100%;padding:42px;text-align:center;background:#fbfaf6;border:1px solid var(--line);box-shadow:0 20px 80px #183b3210;border-radius:9px}.auth-card h2{font:38px/1.15 Georgia,serif;letter-spacing:-1px}.auth-card p{font-size:12px;color:var(--muted);line-height:1.9;min-height:50px}.auth-card .primary{font-size:12px;display:block;width:100%;padding:16px}.auth-card .telegram-open[hidden]{display:none}.auth-card small{display:block;color:var(--muted);font-size:10px;line-height:1.8;margin-top:24px}.auth-code{font-size:26px;letter-spacing:5px;margin:18px 0;color:var(--green)}@media(max-width:760px){.engine-settings{flex-wrap:wrap;gap:8px}.engine-settings small{margin-left:0;width:100%}.topbar{gap:12px}.engine-dot{margin-left:auto}.auth-card{padding:30px 20px}.auth-card h2{font-size:34px}#auth-identity{display:none}}

.locale-label{display:flex;align-items:center;gap:8px}.chessboard{direction:ltr}[dir="rtl"] .board-wrap{padding-left:17px}[dir="rtl"] .variation{border-left:0;border-right:2px solid #b9c7a7}[dir="rtl"] .game-card{text-align:right}.engine-settings{flex-wrap:wrap}.engine-settings small{max-width:390px}#locale-select{max-width:165px}

.auth-open .locale-label{position:fixed;top:18px;right:22px;z-index:110;background:var(--paper);padding:8px 12px;border:1px solid var(--line);border-radius:5px;font-size:11px}[dir="rtl"] .auth-open .locale-label{right:auto;left:22px}@media(max-width:760px){.auth-open .locale-label{top:10px;right:10px}}

.move-feedback{min-height:94px;padding:13px 15px 12px;margin-bottom:12px;border:1px solid #dde4d4;border-left:4px solid #7c9484;border-radius:5px;background:#edf1e6}.move-feedback>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.move-feedback strong{font:600 24px Georgia,serif}.move-feedback p{font-size:11px;line-height:1.65;margin:8px 0 0;color:#516650}.move-verdict{font-size:10px;font-weight:800;text-align:right}.move-feedback[data-verdict="best"],.move-feedback[data-verdict="excellent"],.move-feedback[data-verdict="good"]{border-left-color:#28875b}.move-feedback[data-verdict="inaccuracy"]{border-left-color:#c49a32;background:#f4f0e0}.move-feedback[data-verdict="mistake"]{border-left-color:#cf7d36;background:#f5ebdf}.move-feedback[data-verdict="blunder"]{border-left-color:#c85a54;background:#f4e8e1}.move-feedback[data-verdict="pending"]{background:#eff0e9}.position-toolbar{display:flex;gap:10px;align-items:center;margin-bottom:10px}.position-toolbar>.icon-button{margin-left:auto}.position-toggle{display:flex;padding:3px;background:#e9ece1;border-radius:4px;gap:3px}.position-toggle button{font-size:9px;border:0;background:transparent;color:#7a8570;padding:6px 9px;border-radius:3px}.position-toggle button.active{background:#fbfaf6;color:var(--ink);box-shadow:0 1px 4px #183b3210}#position-label{font-size:9px;color:#87907e}.review-board-stage{position:relative;aspect-ratio:1}.board-arrows{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:2;direction:ltr}.arrow-legend{display:flex;flex-wrap:wrap;gap:7px 13px;min-height:24px;margin:9px 0 4px;padding-left:17px;font-size:8px;color:#708068}.arrow-legend>span{display:flex;align-items:center;gap:5px}.arrow-legend i{width:13px;height:4px;border-radius:2px;display:inline-block}.arrow-legend strong{font-weight:800;color:var(--ink)}.game-context{display:flex;justify-content:space-between;gap:10px;font-size:8px;color:#8b9481;margin:6px 0 13px;padding-left:17px}.game-context strong{font-weight:600}.game-context small{font-size:8px}.review-progress{padding:0 0 13px;margin-bottom:15px;border-bottom:1px solid var(--line)}.review-progress>div:first-child{display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:9px;color:var(--muted)}.review-progress .text-button{font-size:9px;padding:4px 0;white-space:nowrap}.review-progress .progress-track{margin:9px 0 0}.move-list button{display:flex;align-items:center;justify-content:space-between}.move-list button small{font-size:9px;opacity:.7}.move-list button.pending-move{background:#f1f0e9;color:#7c8875}.move-list button.pending-move.active{background:var(--green);color:#fff}[dir="rtl"] .move-feedback{border-left-width:1px;border-right:4px solid #7c9484}[dir="rtl"] .position-toolbar>.icon-button{margin-left:0;margin-right:auto}@media(max-width:760px){.move-feedback{min-height:88px;padding:12px;margin-bottom:10px}.move-feedback strong{font-size:23px}.move-feedback p{font-size:11px;line-height:1.6}.move-verdict{font-size:9px}.position-toolbar{margin-bottom:9px}.arrow-legend{font-size:8px;min-height:22px;margin-top:8px}.game-context{font-size:8px;gap:7px}.game-context small{display:none}.game-context>span:last-child{white-space:nowrap}.board-controls{padding-top:9px}.review-progress>div:first-child{font-size:10px}.move-list{max-height:300px}}

.eval-bar.pending-evaluation{background:repeating-linear-gradient(145deg,#cbd2c1 0,#cbd2c1 5px,#e6e8dd 5px,#e6e8dd 10px)}.eval-bar.pending-evaluation>span{color:#65745f}.eval-bar>div[hidden]{display:none}

.explanation-tools{border-top:1px solid var(--line);padding-top:11px;margin-top:12px}.explanation-tools[hidden]{display:none}.explanation-meta{display:flex;gap:9px;flex-wrap:wrap;color:#89917f;font-size:9px;margin-bottom:8px}.explanation-meta:empty{display:none}.feedback-button{border:1px solid #dde2d3;background:#f1f2e9;color:#75816a;padding:7px 10px;border-radius:4px;font-size:10px}.feedback-button.selected{background:#e7ecde;color:#4b6845}.feedback-reason{margin-top:12px}.feedback-reason label{display:block;font-size:10px;color:var(--muted);margin-bottom:7px;line-height:1.5}.feedback-reason textarea{display:block;width:100%;resize:vertical;min-height:58px;max-height:140px;padding:9px;border:1px solid var(--line);border-radius:4px;background:#f7f6ef;color:var(--ink);font-family:inherit;font-size:11px;line-height:1.6}.feedback-reason .text-button{font-size:10px;padding:9px 0}.feedback-status{font-size:9px!important;line-height:1.6!important;color:#7b8b6f!important;margin:8px 0 0!important}.feedback-status.error{color:#a6684b!important}.feedback-status:empty{display:none}.engine-runtime{font-size:9px;color:#7d8d71;line-height:1.6;margin:-4px 0 13px;padding-bottom:10px;border-bottom:1px solid var(--line)}.engine-runtime[hidden]{display:none}@media(max-width:760px){.feedback-button{padding:9px 12px;font-size:11px}.feedback-reason label{font-size:11px}.feedback-reason textarea{font-size:12px}.engine-runtime{font-size:10px}}

.piece-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none;filter:none;image-rendering:auto}

.profile-tools{width:440px;flex-shrink:0}.profile-tools .import-card{width:100%}.explore-tools{border:1px solid var(--line);border-radius:5px;margin-top:10px;background:#f2f2e9;padding:12px 16px}.explore-tools>summary,.pgn-tools>summary{cursor:pointer;font-size:10px;color:#76856b;line-height:1.7}.explore-tools form{margin-top:12px}.explore-tools .input-row input{padding-left:9px}.pgn-tools{margin-top:12px}.pgn-tools textarea{width:100%;display:block;resize:vertical;border:1px solid var(--line);background:#fbfaf6;border-radius:4px;padding:10px;color:var(--ink);font:11px/1.6 monospace;max-height:180px}#back-home{font-size:10px;padding:9px 0 0}@media(max-width:1150px){.profile-tools{width:370px}}@media(max-width:760px){.profile-tools{width:100%}.profile-tools .import-card{margin-top:25px}.explore-tools{padding:11px 13px}.explore-tools>summary,.pgn-tools>summary{font-size:11px}}

.topbar{height:64px;gap:16px}.brand{font-size:29px;gap:9px}.brand span{font-size:21px}.brand small{display:none}.header-tools{margin-left:auto;display:flex;align-items:center;gap:15px}.header-menu{position:relative}.header-menu>summary{list-style:none;cursor:pointer;font-size:20px;line-height:30px;color:#526d51}.header-menu>summary::-webkit-details-marker{display:none}.header-menu>div{position:absolute;right:0;top:37px;z-index:20;min-width:210px;background:#fbfaf6;border:1px solid var(--line);border-radius:5px;padding:14px;box-shadow:0 8px 30px #183b3214}.header-menu label{display:block;font-size:10px;color:var(--muted);margin:10px 0 7px}.header-menu select{width:100%;padding:9px;border:1px solid var(--line);border-radius:3px;background:var(--paper);color:var(--ink);font-size:11px}.header-menu .text-button{display:block;font-size:11px;padding:8px 0}.language-menu>div{min-width:170px}.auth-open .language-menu{position:fixed;right:20px;top:15px;z-index:110}.profile-controls{max-width:650px;margin:14px auto 18px}.profile-controls .import-card{margin:0;width:100%;padding:12px 16px}.profile-controls .import-card label{margin-bottom:8px}.profile-controls .import-card small{margin-top:7px}main{padding-top:8px}.tabs{margin-bottom:18px}.friends-panel{padding:15px 0;margin-top:14px;border-top:1px solid var(--line)}.friends-panel h3{font:18px Georgia,serif;margin:0 0 4px}.friends-panel small{font-size:9px;color:var(--muted)}#friends-list{margin-top:10px}#friends-list>div{display:flex;gap:6px;align-items:center}.friend-name{flex:1;text-align:left;background:none;border:0;padding:7px 0;font-size:11px;color:var(--ink);overflow:hidden;text-overflow:ellipsis}.friend-remove{background:none;border:0;color:#8d9780;padding:5px;font-size:16px}#friend-form{display:flex;gap:7px;margin-top:8px}#friend-form input{width:100%;min-width:0;background:#f6f5ef;border:1px solid var(--line);padding:8px;border-radius:3px;font-size:10px}#friend-form button{border:1px solid #d6dfcb;background:#e9eddf;color:var(--ink);border-radius:3px;width:28px;font-size:17px}.game-context .profile-link{border:0;background:none;padding:0;font:inherit;color:var(--ink);text-decoration:underline;text-decoration-color:#c9d2bd;text-underline-offset:2px;cursor:pointer}.library .explore-tools{padding:10px;margin-top:13px}.library .explore-tools .input-row{display:block;background:transparent;border:0;padding:0}.library .explore-tools input{width:100%;border:1px solid var(--line);background:#fbfaf6;border-radius:3px;padding:9px;font-size:10px}.library .explore-tools .input-row button{width:100%;margin-top:7px;padding:9px}.library .import-progress{margin:12px 0}.library .import-progress span{font-size:9px;line-height:1.6}.workspace{align-items:start}.board-column{min-width:0}.board-footnote{margin-bottom:0}@media(max-width:760px){.topbar{height:58px;padding:0 18px}.brand span{font-size:19px}.header-tools{gap:16px}.header-tools>#auth-identity{display:none}.header-menu>div{right:-4px}.workspace>.board-column{order:0}.workspace>.analysis{order:1}.workspace>.library{order:2}.workspace{gap:17px}.tabs{margin-bottom:13px}.tabs button{padding:10px 0 12px}main{padding-top:2px}.profile-controls{margin:8px 0 12px}.profile-controls .import-card{padding:12px}.library .game-list{max-height:260px}.friends-panel h3{font-size:19px}.friend-name{font-size:12px;padding:9px 0}.header-menu select{font-size:12px}.auth-open .language-menu{right:18px;top:13px}}

.spend-dialog{width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--line);border-radius:9px;padding:25px;background:var(--paper);color:var(--ink);box-shadow:0 25px 100px #102f3b33}.spend-dialog::backdrop{background:#183b3277;backdrop-filter:blur(3px)}.spend-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.spend-heading h2{margin:0;font:30px Georgia,serif}.spend-heading .icon-button{font-size:20px;padding:3px 10px}.spend-filter{display:flex;align-items:center;gap:12px;margin:21px 0 18px;font-size:11px}.spend-filter select{border:1px solid #d6ddcc;border-radius:4px;padding:9px;background:#fbfaf6;color:var(--ink);font-size:11px}.spend-filter small{margin-left:auto;color:var(--muted);font-size:9px}.spend-summary{display:grid;grid-template-columns:1fr 1fr;gap:13px}.spend-summary>div{padding:17px;border:1px solid #dce3d2;border-radius:5px;background:#f0f3e8}.spend-summary span{display:block;font-size:10px;color:#79856e;line-height:1.6}.spend-summary strong{display:block;font-size:25px;font-weight:700;margin-top:8px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.spend-unresolved{color:#aa7440!important}.spend-summary>.spend-unresolved{background:#f4eee2;border-color:#e6d9c0}.spend-incomplete{font-size:11px;line-height:1.8;color:#957243;background:#f4eddf;padding:11px 13px;border-radius:4px;margin:14px 0}.spend-coverage{font-size:10px;line-height:1.8;color:var(--muted);margin:15px 0 7px}.spend-request-count{font-size:10px;color:var(--muted);margin:5px 0 20px}.spend-dialog section{margin-top:25px}.spend-dialog h3{font:21px Georgia,serif;margin:0 0 12px}.spend-table-wrap{overflow-x:auto}.spend-dialog table{width:100%;border-collapse:collapse;font-size:11px;font-variant-numeric:tabular-nums}.spend-dialog th{text-align:left;font-size:9px;font-weight:600;color:#869079;padding:0 9px 10px;border-bottom:1px solid var(--line);line-height:1.5}.spend-dialog td{padding:12px 9px;border-bottom:1px solid #e9ebdf;vertical-align:top;line-height:1.5}.spend-dialog td:first-child{overflow-wrap:anywhere;min-width:110px}.spend-money{white-space:nowrap}.spend-dialog th:not(:first-child),.spend-dialog td:not(:first-child){text-align:right}.spend-empty,.spend-status{font-size:11px;color:var(--muted);line-height:1.8}.spend-status.error{color:#a46b4e}.spend-status:empty{display:none}.spend-dialog #spend-retry{font-size:11px}#owner-spend[hidden]{display:none}[dir="rtl"] .spend-dialog th{text-align:right}[dir="rtl"] .spend-dialog th:not(:first-child),[dir="rtl"] .spend-dialog td:not(:first-child){text-align:left}@media(max-width:560px){.spend-dialog{padding:17px;max-height:calc(100dvh - 24px)}.spend-heading h2{font-size:26px}.spend-filter{flex-wrap:wrap;gap:8px;margin-top:16px}.spend-filter small{margin-left:0}.spend-summary{gap:9px}.spend-summary>div{padding:13px 11px}.spend-summary strong{font-size:21px}.spend-summary span{font-size:9px}.spend-dialog th{padding:0 5px 9px;font-size:8px}.spend-dialog td{padding:11px 5px;font-size:10px}.spend-dialog td:first-child{min-width:90px}.spend-dialog h3{font-size:20px}}

/* Keep the board and move navigation together within the opening viewport. */
#review .board-column{width:min(100%,max(257px,calc(100dvh - 303px)));justify-self:center}
#review .move-feedback{min-height:0;padding:9px 12px;margin-bottom:8px}
#review .move-feedback strong{font-size:21px;line-height:1.2}
#review .move-feedback p{margin-top:5px;font-size:11px;line-height:1.45}
#review .position-toolbar{margin-bottom:8px;min-height:32px}
#review .board-controls{margin-top:8px;padding-top:0;border-top:0;gap:10px;min-height:44px}
#review .board-controls>div{gap:4px;flex-shrink:0}
#review .board-controls button{width:44px;height:44px;font-size:26px;line-height:1;background:#e8ebdf;border:1px solid #dce2d1}
#review .board-controls button:hover{background:#dce4ce}
#review #ply-label{font-size:11px;line-height:1.4;overflow-wrap:anywhere}
#review .arrow-legend{margin-top:5px;margin-bottom:3px;min-height:18px;font-size:9px}
#review .game-context{margin-top:5px;margin-bottom:7px;font-size:9px}
#review .board-footnote{margin-top:6px;gap:10px}
@media(max-width:760px){
 .topbar{height:52px}
 .tabs{gap:16px;margin-bottom:10px}
 .tabs button{padding:8px 0 10px;font-size:9px}
 .tabs button span{font-size:11px;margin-left:5px}
 #review .board-column{width:min(100%,max(257px,calc(100dvh - 243px)));margin-inline:auto}
 #review .move-feedback{padding:8px 10px;margin-bottom:7px}
 #review .move-feedback strong{font-size:20px}
 #review .move-feedback p{font-size:11px;line-height:1.4;margin-top:4px}
 #review .position-toolbar{margin-bottom:7px;gap:7px}
 #review .position-toggle button{padding:6px 8px;font-size:10px}
 #review #position-label{display:none}
 #review .board-controls{margin-top:6px;gap:7px}
 #review .board-footnote{display:none}
}
@media(max-width:760px) and (max-height:500px){
 .topbar{height:42px}.tabs{margin-bottom:6px}.tabs button{padding:5px 0 7px}
 #review .move-feedback{display:none}
 #review .board-column{width:min(100%,max(177px,calc(100dvh - 163px)));}
 #review .position-toolbar{min-height:28px;margin-bottom:5px}
}

@media(max-height:500px){
 .topbar{height:42px}.tabs{margin-bottom:6px}.tabs button{padding:5px 0 7px}
 #review .move-feedback{display:none}
 #review .board-column{width:min(100%,max(177px,calc(100dvh - 163px)))}
 #review .position-toolbar{min-height:28px;margin-bottom:5px}
 #review .board-footnote{display:none}
}
.review-board-stage .chessboard{position:relative}
.piece-motion-layer{position:absolute;inset:0;pointer-events:none;z-index:4;overflow:hidden;border-radius:inherit}
.piece-motion-layer .moving-piece{position:absolute;max-width:none;max-height:none;pointer-events:none;will-change:transform}
#review .arrow-legend{gap:7px 14px;align-items:center;padding-left:17px}
#review .move-arrow-label{display:flex;align-items:center;gap:6px;min-height:30px;font-size:10px;line-height:1.4}
#review .move-arrow-label i{width:16px;height:4px;flex-shrink:0}
#review .move-why-button{min-height:44px;border:0;background:transparent;color:var(--green);text-decoration:underline;text-underline-offset:3px;padding:7px 3px;font-size:10px;white-space:nowrap}
#review .move-why-button:hover{color:#68824f}
#review .move-why-button:disabled{cursor:wait;opacity:.6}
@media(max-width:760px){#review .move-arrow-label{font-size:11px;min-height:36px}#review .move-why-button{font-size:11px;padding:9px 3px}}
