:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#eae7df;background:#101613;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;border:1px solid #465148;background:#29362f;color:#f5f3eb;padding:10px 14px;border-radius:10px}button:hover{filter:brightness(1.15)}header{border-bottom:1px solid #2e3b32;display:flex;justify-content:space-between;align-items:center;padding:17px max(24px,calc((100vw - 1160px)/2));gap:16px}.brand{display:flex;align-items:center;gap:12px}.brand strong{display:block;font-size:18px}.brand small{display:block;color:#a7b3a8;font-size:12px;margin-top:4px}.mark{background:#d4b66c;color:#161d18;font-weight:900;font-size:25px;border-radius:12px;padding:9px 13px}.url{color:#a5ad9d;font-size:13px}main{max-width:1160px;margin:auto;padding:20px 24px}.intro{margin:16px 0 28px}.intro h1{font-size:clamp(27px,4vw,43px);margin:0}.intro em{font-style:normal;color:#d4b66c}.intro p{color:#b1bbb0}.layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:20px}.panel{background:#1b251f;border:1px solid #354237;border-radius:16px;padding:20px;margin-bottom:16px}.panel h2{font-size:17px;margin:0 0 18px}.panelhead{display:flex;justify-content:space-between;align-items:center;gap:10px}.pill{font-size:12px;border:1px solid #53644c;border-radius:30px;padding:7px 10px;color:#d6d9ca}.board{width:100%;max-width:590px;margin:auto}.notice{margin-top:16px;background:#293a30;color:#dbead7;padding:13px;border-radius:10px;min-height:48px}.notice.bad{background:#54312c;color:#ffe1d8}.actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}.primary{background:#d4b66c;color:#171d16;font-weight:750;border:0}.seg{display:flex;gap:8px;margin:9px 0 18px}.seg button{flex:1;font-size:13px}.seg .active{background:#d4b66c;color:#172016;font-weight:700;border-color:#d4b66c}label{display:block;font-size:13px;color:#c5d0c1;margin-top:10px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stats>div{background:#2a362e;border-radius:10px;padding:14px 6px;text-align:center}.stats b{display:block;font-size:25px}.stats small{color:#a7b5a6;font-size:12px}.track{height:8px;background:#344337;border-radius:9px;overflow:hidden;margin:12px 0}.track>div{background:#d4b66c;height:100%}.hint{font-size:13px;line-height:1.6;color:#b7c1b6}input[type=file]{max-width:100%;font-size:12px}details{margin-top:18px}summary{cursor:pointer;color:#d4b66c;font-size:13px}textarea{width:100%;margin:10px 0;background:#101713;color:#f3f3ee;border:1px solid #4a5c4e;border-radius:8px;padding:10px;font-family:monospace;font-size:12px}.error{color:#ffaaa1;font-size:13px}footer{color:#788a7b;text-align:center;padding:24px;font-size:12px}@media (max-width:820px){.layout{grid-template-columns:1fr}.url{display:none}.panel{padding:14px}main{padding:16px}.boardpanel{max-width:620px;margin:auto auto 16px}header{padding:14px 18px}}.tabs{max-width:1160px;margin:16px auto 0;padding:0 24px;display:flex;gap:10px;flex-wrap:wrap}.coachgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.coachgrid .panel{margin:0}.inline{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.inline>div{flex:1;min-width:180px}.inline>input{flex:1;min-width:180px}.panel select,.panel input:not([type=file]){width:100%;padding:11px;background:#111a14;color:#f0eee6;border:1px solid #506050;border-radius:9px;margin-top:7px}.stack{display:grid;gap:8px;margin-top:16px}.entry{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#29362f;border-radius:10px;padding:12px}.entry strong,.entry small{display:block}.entry small{color:#b5c0b3;font-size:12px;margin-top:5px}.entry button{white-space:nowrap;font-size:12px}.homework{margin-top:12px;padding:12px;background:#554529;color:#ffe3a2;border:1px solid #92783c;border-radius:10px;font-weight:700;font-size:13px}@media (max-width:820px){.coachgrid{grid-template-columns:1fr}.tabs{padding:0 16px}}.navlink{display:inline-flex;align-items:center;text-decoration:none;color:#eae7df;background:#29362f;border:1px solid #465148;border-radius:10px;padding:11px 16px;font-size:14px;font-weight:600}.navlink.active{background:#d4b66c;color:#171d16;border-color:#d4b66c}.student-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;flex-wrap:wrap}.student-toolbar label{display:flex;align-items:center;gap:12px;margin:0}.student-toolbar select{background:#1b251f;color:#f3f3ee;border:1px solid #506050;border-radius:8px;padding:9px;min-width:180px}.assigned-area{margin:0 0 18px}.assigned-area h2{font-size:17px;margin:0 0 12px}.opening-cards{display:flex;flex-wrap:wrap;gap:10px}.opening-card{min-width:180px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;background:#1b251f}.opening-card.chosen{border-color:#d4b66c}.opening-card small{font-size:12px;color:#b7c1b6}.hw-badge{font-size:11px;background:#6d522b;color:#ffebb5;border-radius:5px;padding:3px 6px}.tabs{margin-bottom:12px}.login-main{max-width:850px;padding-top:60px}.center{text-align:center}.gateway-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.gateway-card{min-height:225px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;background:#1b2921;border:2px solid #556447;border-radius:22px}.gateway-card span{font-size:48px}.gateway-card strong{font-size:31px;color:#e3c47a}.gateway-card small{color:#b5c0b3}.login-panel{max-width:550px;margin:20px auto}.login-panel h2{text-align:center;margin:20px 0}.role-card{min-height:110px;font-weight:700;font-size:17px}.backlink{border:0;background:transparent;color:#d4b66c}.wide{width:100%;margin-top:20px}.mode-tabs{display:flex;gap:10px;margin:18px 0;flex-wrap:wrap}.opening-card{min-width:min(320px,100%);padding:18px;flex:1}.opening-card .track{width:100%;margin:2px 0}.opening-card .actions{margin-top:6px}.classmate{padding:12px;border-top:1px solid #354237}.classmate small{display:block;margin-top:8px;color:#bbc9b8}.classmate .track{max-width:400px}.review-moves{max-height:520px;overflow:auto}.move-tree,.variation-tree{display:flex;flex-wrap:wrap;gap:5px;align-items:flex-start}.variation-tree{margin:6px 0 10px 12px;padding-left:9px;border-left:2px solid #556447}.move-token{padding:5px 8px;border-radius:6px;font-size:13px}.move-token.selected{background:#d4b66c;color:#101613}.branch{background:#25372e;padding:5px;border-radius:8px}.comment-preview{font-size:11px;color:#d4b66c}.boardpanel .board{aspect-ratio:1}.login-panel input{width:100%;padding:12px;background:#101713;color:#fff;border:1px solid #506050;border-radius:9px;margin-top:7px}@media (max-width:600px){.login-main{padding-top:24px}.gateway-grid{gap:10px}.gateway-card{min-height:165px}.gateway-card strong{font-size:23px}.gateway-card span{font-size:35px}.role-card{font-size:13px}}.review-moves{max-height:600px;overflow-y:auto;overflow-x:hidden;min-width:0}.chapter-notation{border-bottom:1px solid #3c4b40;padding:0 0 14px;margin-bottom:14px}.chapter-notation h3{font-size:13px;color:#dec78e;margin:0 0 10px}.notation-line{display:flex;flex-wrap:wrap;align-items:center;gap:5px 7px;min-width:0}.notation-unit{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}.move-number{font-size:12px;color:#9cae9d}.notation-variations{flex-basis:100%;width:100%;margin:5px 0 7px 12px}.notation-variation{padding:7px 0 7px 10px;margin:5px 0;border-left:2px solid #637355;background:#223027;border-radius:0 6px 6px 0}.notation-variation .notation-variation{margin-left:10px}.move-token{padding:5px 7px;font-size:13px}.comment-text{white-space:pre-wrap;margin-top:8px;line-height:1.55}.intro-study{display:flex;align-items:flex-start;justify-content:space-between;gap:22px}.study-bubble{background:#25372e;border:1px solid #536a54;border-radius:16px;padding:14px 18px;max-width:460px;flex:1}.study-bubble strong{color:#e2c57d}.study-bubble p{margin:8px 0 0;color:#e8eee6;line-height:1.5;font-size:14px}.profile-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0 26px}.profile-stats>div{background:#29362f;padding:15px 8px;text-align:center;border-radius:12px}.profile-stats b{display:block;font-size:26px;color:#e2c57d}.profile-stats small{font-size:12px;color:#b6c2b5}.profile-openings{display:grid;gap:12px}.profile-opening{border:1px solid #425044;border-radius:12px;padding:16px;background:#222e26}.profile-opening-head,.profile-progress{display:flex;justify-content:space-between;gap:12px;align-items:center}.profile-progress{font-size:13px;margin-top:12px;color:#c2cebe}.profile-metrics{display:flex;flex-wrap:wrap;gap:10px 22px;font-size:13px;color:#c5d0c2}.profile-metrics b{color:#fff}@media (max-width:850px){.intro-study{flex-direction:column}.study-bubble{max-width:100%;width:100%}.profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}.review-moves .move-token{background:transparent;border:0;box-shadow:none;color:#e6e8df;padding:2px 3px;border-radius:3px;font-size:14px;line-height:1.6}.review-moves .move-token:hover{background:#344237}.review-moves .move-token.selected{background:#d4b66c;color:#141914}.review-moves .move-token.opponent-branch:not(.selected){background:#635329;color:#f7df9e;border:1px solid #a38b49;padding:1px 5px}.review-moves .notation-variation{background:transparent;border-left:2px solid #526b56;padding:2px 0 2px 10px;margin:3px 0}.review-moves .notation-variations{margin:3px 0 5px 7px}.review-moves .notation-line{gap:2px 6px}.test-warning,.result-panel{margin-top:14px;border:1px solid #6d7954;border-radius:12px;padding:17px;background:#26372d}.test-warning h2,.result-panel h2{margin:0 0 9px;color:#e0c47e}.test-warning p{line-height:1.65;margin:6px 0 14px}.chapter-notice{border:1px solid #647c58;background:#2b3a2f;border-radius:9px;padding:12px;line-height:1.5}.attempt-list{display:grid;gap:10px;margin-top:12px}.attempt-entry{padding:14px;background:#28392f;border:1px solid #3b5040;border-radius:11px}.attempt-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:6px}.attempt-entry small{display:block;color:#b5c7b7;margin-bottom:10px}.attempt-metrics{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:13px}.review-moves .move-token,.review-moves .notation-unit .move-token{background:none!important;border:0!important;box-shadow:none!important;padding:1px 2px!important;border-radius:3px;color:#e7e8e0;font-weight:400;cursor:pointer}.review-moves .move-token:hover{background:#35463a!important}.review-moves .move-token.selected{background:#d4b66c!important;color:#111b13!important}.review-moves .move-token.opponent-branch:not(.selected){background:#756032!important;color:#ffe8a9!important;border:1px solid #a68d51!important;padding:1px 5px!important}.review-moves .notation-variations{margin-left:3px!important;max-width:100%;min-width:0}.review-moves .notation-variation{margin-left:0!important;padding-left:9px!important;border-left:2px solid #62795f!important;max-width:100%;min-width:0;overflow-wrap:anywhere}.review-moves .notation-variation .notation-variation{margin-left:0!important}.review-moves .notation-line{display:flex;flex-wrap:wrap;gap:2px 5px;min-width:0;max-width:100%}.review-moves .notation-unit{max-width:100%}.history-group{border:1px solid #415344;border-radius:11px;overflow:hidden;background:#26352b}.history-toggle{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;padding:15px;background:transparent;border:0;border-radius:0}.history-toggle span{font-size:12px;color:#c5d1c4}.history-entries{padding:10px;display:grid;gap:8px;border-top:1px solid #425547}.review-board{position:relative}.branch-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#07110bbb;z-index:5;padding:14px}.branch-dialog{background:#1b2c22;border:1px solid #d4b66c;border-radius:12px;padding:16px;max-width:96%;width:350px;text-align:center;box-shadow:0 12px 36px #0008}.branch-dialog strong{color:#e0c47e;display:block}.branch-dialog p{font-size:12px;color:#c8d4c9}.branch-options{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:14px 0}.branch-options button{background:#d4b66c;color:#152019;font-weight:700}.branch-dismiss{font-size:12px;background:transparent;border:0;color:#aebeb1}.attempt-main{display:flex;gap:12px;align-items:center}.attempt-content{flex:1;min-width:0}.mini-board-button{flex:0 0 124px;width:124px;height:124px;overflow:hidden;padding:0;border:2px solid #66795f;border-radius:6px;background:transparent;line-height:0}.attempt-details-toggle{margin-top:10px;background:#364a3b;color:#f2d58c;font-size:12px;padding:7px 10px}.position-answer{display:flex;flex-direction:column;gap:4px;font-size:12px;margin-top:10px;color:#d7e3d6}.attempt-errors{border-top:1px solid #526655;margin-top:12px;padding-top:10px;display:grid;gap:8px}.attempt-error{display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:#1e3025;border-radius:7px;padding:10px;font-size:12px}.attempt-error strong{color:#e7c477}.attempt-error button{margin-left:auto;font-size:12px}.position-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:#000c;display:flex;justify-content:center;align-items:center;padding:20px}.position-modal-card{background:#1b2c22;padding:16px;border:1px solid #607560;border-radius:12px;width:min(95vw,480px)}.position-modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.position-modal-board{width:100%}@media (max-width:560px){.mini-board-button{flex-basis:94px;width:94px;height:94px}.attempt-entry{padding:9px}.attempt-head{flex-wrap:wrap}}.chapter-scroll-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:14px}.chapter-scroll-card{border:1px solid #435649;border-radius:12px;overflow:hidden;background:#17251d;min-width:0}.chapter-scroll-card.is-current-chapter{border-color:#538c59}.chapter-scroll-heading{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px 12px 9px;border-bottom:1px solid #334b3b;color:#e4c47a}.chapter-current-label{font-size:12px;font-weight:700;color:#b8f1b7;background:#174e29;border:1px solid #418f52;border-radius:999px;padding:4px 9px}.chapter-independent-scroll{height:250px;max-height:250px;overflow-y:auto;overflow-x:hidden;padding:10px 9px;scrollbar-color:#687e6a #152019;scrollbar-width:thin}.chapter-independent-scroll .chapter-notation h3{display:none}.chapter-independent-scroll .move-token.selected.current-green,.chapter-independent-scroll .move-token.current-green{background:#27813b!important;color:#fff!important;border:1px solid #65ca78!important;padding:1px 5px!important;font-weight:700!important}@media (min-width:1500px){.chapter-independent-scroll{height:300px;max-height:300px}}.training-aside{min-width:0}.training-control{display:flex;flex-direction:column;gap:14px}.training-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.training-heading h2{margin:0;font-size:19px}.training-opening{margin:0;color:#d5e1d4;font-size:14px}.step-heading{font-size:17px;margin:6px 0 0;color:#e8c679}.training-control label{margin:2px 0 -7px}.mode-description{line-height:1.6}.confirm-mode{width:100%}.mode-menu-wrap{position:relative}.mode-change{border:1px solid #d4b66c;color:#edcb7e;background:#18271e;font-size:12px;padding:9px 11px}.mode-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:30;min-width:230px;border:1px solid #697a60;border-radius:10px;background:#1a2b20;box-shadow:0 12px 30px #0009;padding:6px;display:grid;gap:3px}.mode-menu button{background:transparent;text-align:left;font-size:12px}.mode-menu button:hover{background:#324838}.compact-notice{font-size:12px;padding:10px 12px}.compact-warning{margin:2px 0 0;padding:14px}.compact-warning h3{font-size:15px;margin:0 0 8px;color:#e7c67e}.compact-warning p{font-size:13px;line-height:1.55;margin:0}.training-progress{display:flex;justify-content:space-between;font-size:13px}.training-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.training-actions button{flex:1;white-space:nowrap}.training-running{font-size:12px;color:#b7d5b7}.training-control select:disabled{opacity:.8;cursor:not-allowed}.position-result{margin-top:12px;padding:14px 16px;border-radius:12px;border:1px solid #57785d;background:#263b2f;display:grid;gap:8px;line-height:1.5}.position-result.is-wrong{border-color:#aa6c5b;background:#382c29}.position-result strong{color:#e4c579}.position-result .hint{margin:0}.training-move-history{margin-top:14px;padding:12px 14px;border:1px solid #385244;border-radius:12px;background:#14221a}.training-move-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#e9f0e9}.training-move-heading span{font-size:12px;color:#9fb6a6}.training-move-list{display:flex;flex-wrap:wrap;align-content:flex-start;gap:6px 9px;max-height:112px;overflow-y:auto;line-height:1.7}.training-move-entry{display:inline-flex;align-items:center;gap:5px;padding:1px 5px;border-radius:5px;color:#e3e9e3}.training-move-entry.latest{background:#286c42;color:#fff;font-weight:700}.training-move-number{color:#b5c4b9;font-size:12px}.training-prep-explain{display:grid;gap:12px;margin:14px 0 12px}.prep-mode-summary{display:flex;align-items:flex-start;gap:12px;border:1px solid #b69b50;border-radius:12px;padding:14px;background:#263c30}.prep-symbol{font-size:24px;flex:0 0 34px;line-height:1.4}.prep-mode-summary h3,.prep-steps h3{margin:0 0 7px;color:#e6c374;font-size:16px}.prep-mode-summary p{margin:0;line-height:1.55;font-size:13px}.prep-mode-summary .prep-chapter-note{margin-top:9px;color:#bdd0c1;font-size:12px}.prep-steps{border:1px solid #526e58;background:#21382d;border-radius:12px;padding:13px}.prep-step-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.prep-step{text-align:center;display:flex;align-items:center;flex-direction:column;gap:7px;font-size:12px;line-height:1.35}.prep-step-number{border-radius:50%;border:1px solid #d7b768;color:#e8cb82;width:25px;height:25px;display:grid;place-items:center;font-weight:700}.prep-history-note{margin-top:10px}@media (max-width:480px){.prep-step-flow{gap:5px}.prep-step{font-size:11px}.prep-mode-summary{padding:11px}}.resume-button{margin:10px 0;display:block;width:100%;padding:11px 14px;border-radius:10px;border:1px solid #d6b66f;background:#324537;color:#f4d48b;font-weight:700;cursor:pointer;text-align:center}.resume-button:hover{background:#3c5442}.error-board-button{display:block;width:min(210px,100%);border:1px solid #536b55;border-radius:8px;padding:3px;background:#17251c;cursor:pointer}.attempt-error .mini-board-button{width:148px;max-width:100%;margin-top:8px}.position-modal-board{max-width:520px}
