.cg-wrap{box-sizing:content-box;position:relative;display:block}cg-container{position:absolute;width:100%;height:100%;display:block;top:0}cg-board{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:0;background-size:cover}.cg-wrap.manipulable cg-board{cursor:pointer}cg-board square{position:absolute;top:0;left:0;width:12.5%;height:12.5%;pointer-events:none}cg-board square.move-dest{pointer-events:auto}cg-board square.last-move{will-change:transform}.cg-wrap piece{position:absolute;top:0;left:0;width:12.5%;height:12.5%;background-size:cover;z-index:2;will-change:transform;pointer-events:none}cg-board piece.dragging{cursor:move;z-index:11!important}piece.anim{z-index:8}piece.fading{z-index:1;opacity:.5}.cg-wrap piece.ghost{opacity:.3}.cg-wrap piece svg{overflow:hidden;position:relative;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:2;opacity:.6}.cg-wrap cg-auto-pieces,.cg-wrap .cg-shapes,.cg-wrap .cg-custom-svgs{overflow:visible;position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.cg-wrap cg-auto-pieces{z-index:2}.cg-wrap cg-auto-pieces piece{opacity:.3}.cg-wrap .cg-shapes{overflow:hidden;opacity:.6;z-index:2}.cg-wrap .cg-custom-svgs{z-index:9}.cg-wrap .cg-custom-svgs svg{overflow:visible}.cg-wrap coords{position:absolute;display:flex;pointer-events:none;opacity:.8;font-family:sans-serif;font-size:9px}.cg-wrap coords.ranks{left:4px;top:-20px;flex-flow:column-reverse;height:100%;width:12px}.cg-wrap coords.ranks.black{flex-flow:column}.cg-wrap coords.ranks.left{left:-15px;align-items:flex-end}.cg-wrap coords.files{bottom:-4px;left:24px;flex-flow:row;width:100%;height:16px;text-transform:uppercase;text-align:center}.cg-wrap coords.files.black{flex-flow:row-reverse}.cg-wrap coords coord{flex:1 1 auto}.cg-wrap coords.ranks coord{transform:translateY(39%)}.cg-wrap coords.squares{bottom:0;left:0;text-transform:uppercase;text-align:right;flex-flow:column-reverse;height:100%;width:12.5%}.cg-wrap coords.squares.black{flex-flow:column}.cg-wrap coords.squares.left{text-align:left}.cg-wrap coords.squares coord{padding:6% 4%}.cg-wrap coords.squares.rank2{transform:translate(100%)}.cg-wrap coords.squares.rank3{transform:translate(200%)}.cg-wrap coords.squares.rank4{transform:translate(300%)}.cg-wrap coords.squares.rank5{transform:translate(400%)}.cg-wrap coords.squares.rank6{transform:translate(500%)}.cg-wrap coords.squares.rank7{transform:translate(600%)}.cg-wrap coords.squares.rank8{transform:translate(700%)}.cg-wrap piece.pawn.white{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NSIgaGVpZ2h0PSI0NSI+PHBhdGggZD0iTTIyLjUgOWMtMi4yMSAwLTQgMS43OS00IDQgMCAuODkuMjkgMS43MS43OCAyLjM4QzE3LjMzIDE2LjUgMTYgMTguNTkgMTYgMjFjMCAyLjAzLjk0IDMuODQgMi40MSA1LjAzLTMgMS4wNi03LjQxIDUuNTUtNy40MSAxMy40N2gyM2MwLTcuOTItNC40MS0xMi40MS03LjQxLTEzLjQ3IDEuNDctMS4xOSAyLjQxLTMgMi40MS01LjAzIDAtMi40MS0xLjMzLTQuNS0zLjI4LTUuNjIuNDktLjY3Ljc4LTEuNDkuNzgtMi4zOCAwLTIuMjEtMS43OS00LTQtNHoiIGZpbGw9IiNmZmYiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjwvc3ZnPg==)}.cg-wrap piece.bishop.white{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NSIgaGVpZ2h0PSI0NSI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZW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41LTI3IDB6IiBzdHJva2UtbGluZWNhcD0iYnV0dCIvPjxwYXRoIGQ9Ik0xMS41IDMwYzMuNS0xIDE4LjUtMSAyMiAwTTEyIDMzLjVjNi0xIDE1LTEgMjEgMCIgZmlsbD0ibm9uZSIvPjwvZz48L3N2Zz4=)}.cg-wrap piece.king.white{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NSIgaGVpZ2h0PSI0NSI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik0yMi41IDExLjYzVjZNMjAgOGg1IiBzdHJva2UtbGluZWpvaW49Im1pdGVyIi8+PHBhdGggZD0iTTIyLjUgMjVzNC41LTcuNSAzLTEwLjVjMCAwLTEtMi41LTMtMi41cy0zIDIuNS0zIDIuNWMtMS41IDMgMyAxMC41IDMgMTAuNSIgZmlsbD0iI2ZmZiIgc3Ryb2tlLWxpbmVjYXA9ImJ1dHQiIHN0cm9rZS1saW5lam9pbj0ibWl0ZXIiLz48cGF0aCBkPSJNMTEuNSAzN2M1LjUgMy41IDE1LjUgMy41IDIxIDB2LTdzOS00LjUgNi0xMC41Yy00LTYuNS0xMy41LTMuNS0xNiA0VjI3di0zLjVjLTMuNS03LjUtMTMtMTAuNS0xNi00LTMgNiA1IDEwIDUgMTBWMzd6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjUgMzBjNS41LTMgMTUuNS0zIDIxIDBtLTIxIDMuNWM1LjUtMyAxNS41LTMgMjEgMG0tMjEgMy41YzUuNS0zIDE1LjUtMyAyMSAwIi8+PC9nPjwvc3ZnPg==)}.cg-wrap piece.pawn.black{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxuc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zLjUtMy41LTE2IDRWMjd2LTMuNWMtMy41LTcuNS0xMy0xMC41LTE2LTQtMyA2IDUgMTAgNSAxMFYzN3oiIGZpbGw9IiMwMDAiLz48cGF0aCBkPSJNMjAgOGg1IiBzdHJva2UtbGluZWpvaW49Im1pdGVyIi8+PHBhdGggZD0iTTMyIDI5LjVzOC41LTQgNi4wMy05LjY1QzM0LjE1IDE0IDI1IDE4IDIyLjUgMjQuNWwuMDEgMi4xLS4wMS0yLjFDMjAgMTggOS45MDYgMTQgNi45OTcgMTkuODVjLTIuNDk3IDUuNjUgNC44NTMgOSA0Ljg1MyA5IiBzdHJva2U9IiNlY2VjZWMiLz48cGF0aCBkPSJNMTEuNSAzMGM1LjUtMyAxNS41LTMgMjEgMG0tMjEgMy41YzUuNS0zIDE1LjUtMyAyMSAwbS0yMSAzLjVjNS41LTMgMTUuNS0zIDIxIDAiIHN0cm9rZT0iI2VjZWNlYyIvPjwvZz48L3N2Zz4=)}:root,[data-theme=light]{--bg: #f5f5ed;--sidebar: #f0f1e8;--surface: #fbfbf5;--surface-2: #eeefe6;--surface-3: #e6e9dd;--line: #d8ddcf;--line-soft: #e2e5d9;--text: #263329;--muted: #596652;--faint: #657360;--accent: #315f36;--accent-hover: #426f45;--accent-ink: #f2f4e9;--accent-wash: #e4edda;--danger: #985c3e;--warning: #8b6a45;--shadow: 0 15px 50px #21331a12}[data-theme=dark]{--bg: #111714;--sidebar: #101512;--surface: #171e19;--surface-2: #1c2520;--surface-3: #253029;--line: #2c3730;--line-soft: #253027;--text: #eeefe9;--muted: #9ba69d;--faint: #8a9a8d;--accent: #b9e5a1;--accent-hover: #c9f2b2;--accent-ink: #182c19;--accent-wash: #273626;--danger: #e6a990;--warning: #d4bda0;--shadow: 0 16px 60px #0002}[data-theme=light][data-palette=purple]{--bg: #f6f4fa;--sidebar: #f0edf6;--surface: #fdfbff;--surface-2: #ede8f5;--surface-3: #e5def0;--line: #d9d2e4;--line-soft: #e5dfed;--text: #30263e;--muted: #6a5b78;--faint: #746580;--accent: #7042a8;--accent-hover: #8253b7;--accent-ink: #ffffff;--accent-wash: #eee2fb;--shadow: 0 15px 50px #30203e12}[data-theme=dark][data-palette=purple]{--bg: #0b0a12;--sidebar: #0e0c17;--surface: #14111f;--surface-2: #1d172b;--surface-3: #2a203b;--line: #3b2d52;--line-soft: #292136;--text: #f5f1ff;--muted: #bdb0d2;--faint: #aa9cbe;--accent: #be93ff;--accent-hover: #d2b2ff;--accent-ink: #1b0d33;--accent-wash: #2c1c43;--signal: #68e4df;--flare: #f78fc9}[data-theme=light][data-palette=blue]{--bg: #f3f6fa;--sidebar: #edf2f8;--surface: #fbfdff;--surface-2: #e9eff7;--surface-3: #dde7f2;--line: #d1ddeb;--line-soft: #e0e8f0;--text: #23354a;--muted: #586a80;--faint: #64758a;--accent: #315f9c;--accent-hover: #406eac;--accent-ink: #ffffff;--accent-wash: #dfeaf8;--shadow: 0 15px 50px #182e4712}[data-theme=dark][data-palette=blue]{--bg: #111821;--sidebar: #0e151e;--surface: #18222f;--surface-2: #1e2d3d;--surface-3: #28394d;--line: #32455a;--line-soft: #263546;--text: #e9f0f9;--muted: #9faec1;--faint: #8a9db5;--accent: #98c3ff;--accent-hover: #b3d3ff;--accent-ink: #14263e;--accent-wash: #233b57}:root,[data-theme]{--accent-border: color-mix(in srgb, var(--accent) 30%, transparent);--accent-glow: color-mix(in srgb, var(--accent) 8%, transparent)}:root,[data-theme=light]{color-scheme:light}[data-theme=dark]{color-scheme:dark}@font-face{font-family:DM Sans;font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/dm-sans.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Manrope;font-style:normal;font-weight:400 800;font-display:swap;src:url(/fonts/manrope.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{font-family:DM Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--radius: 16px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{color:inherit;background:none;border:0}button:disabled{opacity:.42;cursor:default}button:not(:disabled),a,input,select,textarea{transition:background .14s,color .14s,border-color .14s,box-shadow .14s}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:inherit;text-decoration:none}input,select,textarea{color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:11px 13px;min-width:0;max-width:100%}input::placeholder,textarea::placeholder{color:var(--faint)}textarea{resize:vertical;line-height:1.65}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Manrope,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.045em}h1{font-size:34px;font-weight:650;line-height:1.25}h2{font-weight:600;font-size:23px}h3{font-weight:650;font-size:16px;letter-spacing:-.025em}p{color:var(--muted);font-size:14px;line-height:1.7}small{font-size:11px;color:var(--muted)}em{font-family:Georgia,Times New Roman,serif;font-weight:400}svg{flex-shrink:0}button svg{pointer-events:none}input[type=checkbox],input[type=range]{accent-color:var(--accent)}input[type=checkbox]{width:16px;height:16px}::selection{background:color-mix(in srgb,var(--accent) 20%,transparent)}summary{cursor:pointer;color:var(--muted);font-size:12px}details>p{padding:12px 0}details[open]>summary{margin-bottom:10px}.app-shell{display:flex;min-height:100vh}.sidebar{width:214px;position:fixed;inset:0 auto 0 0;background:var(--sidebar);border-right:1px solid var(--line-soft);display:flex;flex-direction:column;padding:33px 20px 16px;z-index:20}.brand{display:flex;gap:10px;align-items:center;padding:0 9px 48px;font-family:Manrope,sans-serif;font-size:29px;font-weight:750;letter-spacing:-1.5px}.logo-mark{width:34px;height:34px;color:var(--accent)}.brand-dot{color:var(--accent)}.sidebar nav{display:flex;flex-direction:column;gap:6px}.nav-link{display:flex;align-items:center;text-align:left;gap:13px;padding:13px 15px;border-radius:9px;font-size:13px;font-weight:500;color:var(--muted);width:100%}.nav-link:hover{background:var(--surface-2);color:var(--text)}.nav-link.active{background:var(--accent-wash);color:var(--accent)}.nav-link small{margin-left:auto;color:inherit;font-size:10px;border:1px solid var(--accent-border);border-radius:5px;padding:1px 5px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line-soft);padding-top:12px}.workspace{width:calc(100% - 214px);margin-left:214px;display:flex;flex-direction:column;min-height:100vh}.topbar{height:75px;border-bottom:1px solid var(--line-soft);display:flex;align-items:center;justify-content:flex-end;padding:0 40px;gap:16px}.topbar-actions{display:flex;gap:17px;align-items:center}.topbar select{font-size:11px;background:transparent;padding:7px 10px}.dashboard,.train-page{padding:36px 40px 15px;max-width:1510px;width:100%;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:1.8px;color:var(--faint);display:flex;align-items:center;gap:8px;line-height:1.5}.page-heading h1{margin:0}.page-heading p{font-size:12px}.live-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--accent-glow);flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:12px;font-weight:600;padding:13px 17px;border-radius:8px;white-space:nowrap;border:1px solid transparent;line-height:1.2}.button.primary{color:var(--accent-ink);background:var(--accent);box-shadow:0 3px 10px #0001}.button.primary:not(:disabled):hover{background:var(--accent-hover);box-shadow:0 4px 20px var(--accent-glow)}.button.secondary{background:var(--surface-2);color:var(--text);border-color:var(--line)}.button.secondary:not(:disabled):hover{background:var(--surface-3);border-color:var(--faint)}.button.compact{padding:10px 12px;font-size:11px}.button.full{width:100%}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:11px;color:var(--muted);padding:4px 0;white-space:nowrap}.text-button:hover{color:var(--accent)}.icon-button{display:inline-flex;align-items:center;justify-content:center;border-radius:7px;min-width:32px;min-height:32px;padding:6px;color:var(--muted);font-size:14px}.icon-button:not(:disabled):hover{background:var(--surface-3);color:var(--text)}.icon-button.danger{color:var(--danger)}.metric-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:26px 0 34px;border-bottom:1px solid var(--line-soft);padding-bottom:27px}.metric{display:flex;align-items:center;gap:12px;padding:0 15px;border-right:1px solid var(--line-soft)}.metric:first-child{padding-left:0}.metric:last-child{border:0}.metric-icon{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:11px;width:40px;height:40px;display:grid;place-items:center}.metric strong{display:block;font-size:24px;font-family:Manrope,sans-serif;font-weight:550;letter-spacing:-1px;font-variant-numeric:tabular-nums}.metric div>span{font-size:10px;color:var(--muted);display:block;margin-top:4px}.dashboard-columns{display:grid;grid-template-columns:1fr 1.02fr;gap:28px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px;gap:12px}.section-heading h2{font-size:21px;margin-top:5px}.section-heading .eyebrow{font-size:8px;letter-spacing:1.55px}.small-label{font-size:9px;color:var(--faint)}.book-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.book-card{border:1px solid var(--line);background:var(--surface);border-radius:13px;padding:20px;position:relative;overflow:hidden}.book-card.white,.book-card.black{background:linear-gradient(140deg,var(--accent-glow),transparent 50%),var(--surface)}.book-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px;gap:6px}.chess-king{font-family:Georgia,serif;font-size:37px;line-height:1;color:var(--text)}.black .chess-king{color:var(--muted)}.status-pill{font-size:8px;font-weight:500;color:var(--muted);border:1px solid var(--line);background:var(--surface-2);padding:5px 6px;border-radius:5px;white-space:nowrap}.book-card h3{font-size:18px;margin-bottom:8px;letter-spacing:-.6px}.book-card p{font-size:11px;line-height:1.7}.book-line{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line-soft);padding-top:14px;margin:20px 0 14px;font-size:9px;color:var(--faint)}.book-card .button{justify-content:space-between;font-size:10px;padding:11px}.book-tools{display:flex;justify-content:space-between;margin-top:12px}.book-tools .text-button{font-size:9px}.training-cards{display:flex;flex-direction:column;gap:13px}.training-card{display:flex;align-items:center;gap:15px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px 18px;min-height:100px}.training-card:not(:disabled):hover{border-color:var(--accent-border);background:var(--surface-2)}.training-card:disabled{opacity:.75}.collection-icon{display:grid;place-items:center;width:45px;height:48px;border-radius:12px;background:var(--accent-glow);color:var(--accent);flex-shrink:0;border:1px solid var(--accent-border)}.collection-icon.tactical{background:color-mix(in srgb,var(--warning) 6%,transparent);border-color:color-mix(in srgb,var(--warning) 10%,transparent);color:var(--warning)}.training-card-copy{flex:1}.training-card h3{font-size:15px;margin-bottom:4px}.training-card p{font-size:10px}.training-card-copy>span{font-size:9px;color:var(--faint);display:block;margin-top:11px}.training-card-copy i{display:inline-block;width:2px;height:2px;background:var(--faint);margin:3px 6px}.due-count{text-align:right;margin-right:6px}.due-count strong{display:block;color:var(--accent);font-size:25px;font-weight:500;letter-spacing:-1px}.due-count>span{font-size:9px;color:var(--faint)}.training-card>svg{width:15px;color:var(--faint)}.activity-panel{border-top:1px solid var(--line-soft);margin-top:32px;padding-top:26px}.activity-empty{display:flex;gap:12px;align-items:center;border:1px dashed var(--line);border-radius:10px;padding:21px;color:var(--faint);font-size:11px}.activity-item{display:flex;gap:14px;align-items:center;padding:15px 0;border-top:1px solid var(--line-soft)}.activity-item>div{flex:1}.activity-item b{font-size:12px;font-weight:500}.activity-item p{font-size:10px;margin-top:2px}.activity-status{display:grid;place-items:center;width:29px;height:29px;border:1px solid var(--line);color:var(--muted);border-radius:50%}.activity-status.complete{color:var(--accent)}.activity-status.failed,.activity-status.interrupted{color:var(--danger)}.publication-summary{display:flex;flex-wrap:wrap;gap:9px 22px;font-size:9px;color:var(--faint);padding:18px 0 5px}.job-progress{display:flex;align-items:center;gap:15px;border:1px solid var(--line);background:var(--surface);padding:15px 18px;border-radius:10px;margin:0 0 27px}.progress-track{height:4px;background:var(--line);border-radius:3px;flex:1;overflow:hidden;min-width:35px}.progress-track i{display:block;background:var(--accent);height:100%;border-radius:3px}.indeterminate{animation:slide 2s ease-in-out infinite alternate}.busy{display:inline-flex;gap:8px;align-items:center;font-size:11px;color:var(--muted)}.busy i{width:11px;height:11px;border:1.5px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}.notice{display:flex;align-items:center;gap:12px;color:var(--accent);border:1px solid var(--accent-border);background:var(--accent-wash);border-radius:8px;padding:13px 17px;margin-bottom:24px;font-size:11px;line-height:1.6}.notice>span{flex:1}.notice .text-button{color:var(--accent)}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-heading h3{font-size:12px;letter-spacing:-.15px}.panel-heading>span{font-size:9px;color:var(--faint)}.study-page{padding:28px 28px 10px}.study-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.study-heading h1{font-size:22px;margin-top:7px;max-width:570px;overflow:hidden;text-overflow:ellipsis}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.save-state{font-size:9px;color:var(--faint);display:flex;gap:5px;align-items:center;margin-right:8px}.study-layout{display:grid;grid-template-columns:175px minmax(300px,var(--board-weight, 1.14fr)) minmax(330px,1fr);gap:20px;align-items:start}.chapters{padding:16px 0 12px;overflow:hidden}.chapters .panel-heading{padding:0 14px}.chapters .search{width:calc(100% - 22px);margin:16px 11px 10px;padding:9px;font-size:10px}.chapter-list{max-height:600px;overflow:auto}.chapter-row{display:flex;align-items:center}.chapter-row .chapter{flex:1;min-width:0}.chapter-delete{flex-shrink:0;margin-right:4px}.delete-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.button.danger{color:var(--danger);border:1px solid currentColor}.chapter{display:flex;width:100%;gap:9px;align-items:center;text-align:left;padding:15px 12px;border-left:2px solid transparent;color:var(--muted)}.chapter.active{background:var(--accent-wash);border-left-color:var(--accent);color:var(--accent)}.chapter:hover{background:var(--surface-2)}.chapter>span:nth-child(2){min-width:0;flex:1}.chapter b{font-size:10px;font-weight:500;line-height:1.55;display:block}.chapter small{font-size:8px;display:block;margin-top:5px;color:var(--faint)}.chapter-number{font-size:9px;color:var(--faint)}.chapter-export{padding:18px 12px 6px;font-size:9px;margin-top:10px;border-top:1px solid var(--line);width:100%}.board-column{min-width:0}.board-frame{position:relative;aspect-ratio:1;width:100%;border-radius:5px;overflow:hidden;box-shadow:0 8px 30px #0003}.board{width:100%;height:100%}.cg-wrap cg-board{background-color:var(--board-light, #ebe6ce);background-image:conic-gradient(var(--board-dark, #79917a) 25%,transparent 0 50%,var(--board-dark, #79917a) 0 75%,transparent 0);background-size:25% 25%}.cg-wrap piece{filter:drop-shadow(0 2px 1px #0002)}.cg-wrap square.last-move{background:#e4e95a65}.cg-wrap square.selected{background:#e2ed58a0}.cg-wrap square.move-dest{background:radial-gradient(#14291c35 22%,transparent 24%)}.cg-wrap square.oc.move-dest{background:radial-gradient(transparent 72%,#14291c35 73%)}.cg-wrap square.check{background:radial-gradient(ellipse at center,#e24a4ae6 0,#e24a4a88 25%,#e24a4a00 89%)}.cg-wrap coords{font-size:9px!important;font-weight:600}.cg-wrap coords.ranks{color:#293e2c!important}.cg-wrap coords.files{color:#293e2c!important;bottom:2px}.cg-wrap coords.ranks{right:2px}.board-player{display:flex;align-items:center;gap:9px;padding:0 0 11px;font-size:11px;color:var(--muted)}.board-player small{margin-left:auto;font-size:9px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:55%}.board-player.bottom{padding:13px 0 9px}.player-dot{width:9px;height:9px;border-radius:3px;background:#e6e3d3;border:1px solid #f2f0dc55;flex-shrink:0}.player-dot.black{background:#2d3830;border-color:#7a8a7c}.board-controls{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px 0;margin-top:5px}.board-controls>div{display:flex;gap:6px}.board-controls .icon-button{min-width:36px}.current-line{display:flex;flex-wrap:wrap;align-items:center;gap:3px;padding:15px 0;max-height:140px;overflow:auto}.current-line button{font-size:11px;padding:5px 6px;border-radius:5px;color:var(--muted);font-variant-numeric:tabular-nums}.current-line button:first-child{color:var(--faint);font-size:9px}.current-line button.active{background:var(--accent-wash);color:var(--accent)}.move-entry{display:flex;border:1px solid var(--line);border-radius:8px;align-items:center;background:var(--surface)}.move-entry input{border:0;flex:1;background:transparent;font-size:11px}.move-entry .icon-button{margin:0 5px}.keyboard-hint{display:flex;align-items:center;gap:4px;flex-wrap:wrap;color:var(--faint);font-size:8px;margin:15px 0}.keyboard-hint>span{width:5px}kbd{font-family:inherit;border:1px solid var(--line);border-radius:3px;padding:2px 4px;min-width:15px;text-align:center;color:var(--muted)}.compact-notice{font-size:9px;gap:8px;padding:10px;margin-bottom:12px;flex-wrap:wrap}.compact-notice>.text-button{font-size:9px}.compact-notice>svg{width:14px}.analysis-column{overflow:hidden;min-width:0}.tabs{display:flex;border-bottom:1px solid var(--line)}.tabs button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;font-size:11px;padding:16px 7px;color:var(--muted);border-bottom:2px solid transparent}.tabs button.active{border-color:var(--accent);color:var(--accent);background:color-mix(in srgb,var(--accent) 3%,transparent)}.branch-section{padding:19px 16px 14px}.continuations{display:flex;flex-direction:column;gap:6px;margin-top:14px;max-height:260px;overflow:auto}.continuation{display:flex;border:1px solid var(--line-soft);border-radius:8px;background:var(--surface-2)}.continuation.selected{background:var(--accent-wash);border-color:var(--accent-border)}.continuation-move{display:flex;align-items:center;gap:10px;padding:12px 9px;flex:1;text-align:left;min-width:0}.branch-index{color:var(--faint);font-size:10px;width:18px;text-align:center;flex-shrink:0}.continuation.selected .branch-index{color:var(--accent)}.continuation-move>span:nth-child(2){flex:1;min-width:0}.continuation-move b{font-size:12px;font-weight:550}.continuation-move em{font-family:inherit;font-size:10px;margin-left:2px;color:var(--accent)}.continuation-move small{display:block;font-size:9px;color:var(--faint);margin-top:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:250px}.continuation-move>svg{color:var(--faint);width:13px}.branch-actions{display:flex;align-items:center;padding-right:4px}.branch-actions .icon-button{min-width:23px;width:23px;padding:3px;font-size:13px}.annotation{padding:16px}.annotation select{font-size:9px;padding:5px 7px;background:var(--surface)}.annotation textarea{border:0;background:var(--bg);width:100%;min-height:88px;margin-top:12px;font-size:11px;padding:11px}.annotation summary{font-size:9px;margin-top:7px}.annotation details textarea{margin:3px 0 0;min-height:60px}.editor-tools{display:flex;align-items:center;gap:10px;padding:8px 12px;border-top:1px solid var(--line)}.editor-tools .text-button{font-size:10px}.editor-tools .danger{margin-left:auto}.end-of-line{padding:15px 7px;font-size:11px}.explorer,.engine-panel{padding:21px 17px}.explorer>select{width:100%;margin-top:17px;font-size:11px}.service-tag{font-size:8px!important;border:1px solid var(--line);border-radius:4px;padding:3px 6px;letter-spacing:.7px}.service-empty{text-align:center;padding:45px 8px;color:var(--faint)}.service-empty h3{font-size:16px;color:var(--text);margin:16px 0 12px}.service-empty p{font-size:11px}.service-empty details{margin-top:22px;text-align:left;overflow-wrap:anywhere}.explorer-total{font-size:10px;color:var(--faint);margin:17px 0}.explorer-labels,.explorer-row{display:grid;grid-template-columns:48px 55px 1fr;align-items:center;gap:6px}.explorer-labels{font-size:7px;letter-spacing:.6px;color:var(--faint);padding:0 0 9px}.explorer-row{width:100%;border-top:1px solid var(--line-soft);padding:12px 0;text-align:left;font-size:10px;color:var(--muted)}.explorer-row:not(:disabled):hover{color:var(--accent)}.explorer-row b{color:var(--text);font-weight:500;font-size:12px}.wdl{height:11px;display:flex;border-radius:3px;overflow:hidden}.wdl i:nth-child(1){background:#e9e5ce}.wdl i:nth-child(2){background:#889d80}.wdl i:nth-child(3){background:#354438}.top-games-heading{font-size:12px;margin:24px 0 12px}.reference-game{display:flex;justify-content:space-between;text-align:left;width:100%;padding:13px 0;border-top:1px solid var(--line);gap:8px}.reference-game b{font-size:10px;display:block;font-weight:500;margin:3px 0}.reference-game b small{font-size:8px;color:var(--faint);margin-left:7px}.reference-game>span:nth-child(2){font-size:9px;color:var(--faint);text-align:right}.reference-game>span:nth-child(2)>small{display:block;margin-top:6px}.panel-description{font-size:11px;margin:17px 0}.engine-settings{display:flex;gap:12px;margin:6px 0;align-items:center;justify-content:space-between}.engine-settings .field{width:72px;margin:0}.analysis-switch{display:flex;align-items:center;gap:9px;font-size:12px}.switch-track{width:38px;height:22px;border-radius:20px;background:var(--line);padding:3px;transition:background .15s}.switch-track>span{display:block;width:16px;height:16px;border-radius:50%;background:var(--muted);transition:transform .15s}.analysis-switch[aria-checked=true] .switch-track{background:var(--accent)}.analysis-switch[aria-checked=true] .switch-track>span{background:var(--bg);transform:translate(16px)}.engine-thinking{padding:18px 0;text-align:center}.engine-summary{display:flex;gap:15px;align-items:center;border-bottom:1px solid var(--line);padding:24px 0 17px}.engine-summary strong{color:var(--accent);font-size:28px;font-weight:500;letter-spacing:-1px}.engine-summary span{font-size:9px;line-height:1.7;color:var(--faint)}.pv{display:flex;gap:10px;padding:17px 0;border-bottom:1px solid var(--line)}.pv-score{font-size:11px;font-weight:600;color:var(--accent);flex-shrink:0;width:37px}.pv button{padding:3px;font-size:10px;color:var(--muted)}.pv button:hover{color:var(--accent)}.engine-results>.form-note{margin:15px 0}.promotion{position:absolute;inset:25% 8% auto;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);z-index:10;padding:18px;border-radius:10px;display:flex;flex-wrap:wrap;gap:8px}.promotion>span{width:100%;font-size:12px;color:var(--muted)}.promotion button{background:var(--surface-3);border-radius:5px;padding:8px;font-size:12px}.train-page .page-heading h1{font-size:31px}.train-page .page-heading h1 em{color:var(--accent)}.session-count{display:flex;gap:8px;align-items:center;color:var(--faint);font-size:10px;white-space:nowrap}.session-count svg{color:var(--accent);width:15px}.train-tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin-bottom:30px}.train-tabs>button{display:flex;align-items:center;gap:9px;padding:14px 2px;font-size:12px;color:var(--muted);border-bottom:2px solid transparent}.train-tabs>button.active{color:var(--accent);border-color:var(--accent)}.train-tabs>button>span{font-size:9px;border:1px solid var(--line);border-radius:4px;padding:2px 5px}.train-welcome,.train-complete{text-align:center;padding:28px;max-width:640px;margin:0 auto;background:var(--surface)}.train-welcome .eyebrow,.train-complete .eyebrow{justify-content:center;margin:15px 0}.train-welcome h2,.train-complete h2{font-size:30px;margin:16px 0}.train-welcome p,.train-complete p{max-width:470px;margin:0 auto;font-size:12px}.session-facts{display:flex;justify-content:center;gap:35px;margin:30px 0}.session-facts b{display:block;font-size:20px;color:var(--text);font-weight:500;margin-bottom:6px}.session-facts span{font-size:10px;color:var(--faint)}.check-field{display:flex;gap:8px;align-items:center;justify-content:center;font-size:11px;color:var(--muted);margin:27px 0}.train-welcome>.button,.train-complete>.button{margin-top:10px;min-width:200px}.train-complete>.button{margin-top:30px}.train-complete .form-note{padding:20px 0}.training-layout{display:grid;grid-template-columns:minmax(300px,1.1fr) minmax(330px,1fr);max-width:1030px;gap:38px;margin:0 auto}.training-board{position:sticky;top:25px}.training-board .board-player{font-size:12px;margin:0 0 5px}.training-board .board-player small{font-size:10px}.puzzle-panel{padding:25px}.puzzle-heading{display:flex;gap:14px;align-items:center}.puzzle-heading .eyebrow{font-size:8px}.puzzle-heading h2{font-size:21px;margin-top:6px}.puzzle-prompt{font-size:12px;margin-top:22px}.frequency-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:20px 0;border-bottom:1px solid var(--line);margin-bottom:20px}.frequency-stats b{display:block;font-size:23px;font-weight:500;letter-spacing:-.8px}.frequency-stats span{font-size:8px;color:var(--faint);display:block;margin-top:4px}.answer-feedback{display:flex;gap:8px;align-items:flex-start;border-radius:8px;background:color-mix(in srgb,var(--warning) 5%,transparent);border:1px solid color-mix(in srgb,var(--warning) 16%,transparent);color:var(--warning);padding:12px;font-size:11px;line-height:1.6;margin:20px 0}.answer-feedback svg{width:16px;margin-top:2px}.answer-feedback.correct{background:var(--accent-wash);border-color:var(--accent-border);color:var(--accent)}.train-move-form>label{font-size:10px;color:var(--muted);display:block;margin-bottom:9px}.train-move-form .move-entry{background:var(--bg)}.train-move-form .move-entry input{font-size:13px}.training-actions{display:flex;align-items:center;gap:20px;margin:20px 0}.training-actions .button{font-size:11px}.skip{font-size:10px;color:var(--faint);margin:3px 0 0}.solution-move>span{font-size:9px;letter-spacing:1px;color:var(--faint)}.solution-move>strong{display:block;font-size:36px;color:var(--accent);font-weight:550;margin:9px 0 11px}.solution p{font-size:12px}.solution-line{background:var(--bg);border-radius:7px;font-size:12px;color:var(--muted);padding:12px;line-height:1.7;margin-top:15px}.rating-section{padding:23px 0;border-top:1px solid var(--line);margin-top:23px}.rating-section>span{font-size:11px;color:var(--muted)}.rating-buttons{display:flex;gap:8px;margin-top:13px}.rating-buttons .button{flex:1;font-size:11px}.source-details{margin-top:20px}.source-details>div{font-size:10px;padding:10px 0;border-top:1px solid var(--line);color:var(--muted)}.source-details small{display:block;font-size:9px;margin-top:7px;overflow-wrap:anywhere}.personal-notes{border-top:1px solid var(--line);padding-top:23px;margin-top:25px}.personal-notes>label{font-size:10px;color:var(--muted)}.personal-notes textarea{width:100%;min-height:74px;font-size:11px;margin:10px 0 6px}.personal-notes>div{display:flex;justify-content:space-between}.personal-notes .text-button{font-size:9px}.review-history{font-size:8px;color:var(--faint);margin-top:18px;line-height:1.6}.conflict-banner{font-size:11px;padding:12px;display:flex;gap:9px;line-height:1.6;color:var(--danger);border:1px solid color-mix(in srgb,var(--danger) 25%,transparent);border-radius:8px;background:color-mix(in srgb,var(--danger) 4%,transparent);margin-top:20px}.modal{color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:28px;max-width:480px;width:calc(100% - 32px);max-height:90vh;box-shadow:0 30px 120px #0008}.modal.wide{max-width:640px}.modal::backdrop{background:#050b08b0;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:19px}.modal-head h2{font-size:23px}.modal>p{font-size:12px;margin-bottom:24px}.field{display:flex;flex-direction:column;gap:9px;margin-bottom:18px;min-width:0}.field>span{font-size:11px;font-weight:500;color:var(--muted)}.field>input,.field>select{width:100%;font-size:12px}.form-note{font-size:10px;color:var(--faint);margin:1px 0 22px;line-height:1.75}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.appearance-settings{border:0;border-bottom:1px solid var(--line-soft);padding:0 0 22px;margin:0 0 22px;min-width:0}.appearance-settings legend{font-size:12px;font-weight:600;padding:0 0 13px}.mode-options{display:flex;padding:4px;gap:4px;border-radius:10px;background:var(--surface-2);border:1px solid var(--line);margin-bottom:14px}.mode-options button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:36px;border-radius:6px;font-size:12px;color:var(--muted)}.mode-options button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 4px #0001}.palette-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.palette-choice{padding:7px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);text-align:left}.palette-choice[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.palette-choice:hover{border-color:var(--accent)}.palette-preview{display:flex;height:50px;border:1px solid var(--line-soft);border-radius:5px;overflow:hidden;background:var(--surface)}.palette-preview>span:first-child{width:23%;background:var(--sidebar);border-right:1px solid var(--line)}.palette-preview>span:last-child{display:flex;flex-direction:column;gap:5px;flex:1;padding:8px}.palette-preview i{display:block;width:65%;height:4px;border-radius:2px;background:var(--line)}.palette-preview i:first-child{width:40%;background:var(--accent)}.palette-preview i:last-child{width:100%;height:10px;background:var(--accent-wash)}.palette-label{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:11px;padding:9px 1px 1px}.palette-label svg{color:var(--accent)}.modal:has(.appearance-settings)::backdrop{background:#0003;-webkit-backdrop-filter:none;backdrop-filter:none}.service-details{border-top:1px solid var(--line);padding:18px 0;margin-bottom:13px}.service-details summary{font-size:11px}.service-details dl{font-size:11px;line-height:1.8}.service-details dt{color:var(--faint);margin-top:12px}.service-details dd{margin:0;overflow-wrap:anywhere}.service-details p{font-size:10px}.pgn-input{width:100%;min-height:220px;font-family:ui-monospace,monospace;font-size:12px}.empty{text-align:center;padding:65px 25px;max-width:650px;margin:0 auto}.empty-icon{display:grid;place-items:center;width:68px;height:68px;background:var(--accent-wash);color:var(--accent);border:1px solid var(--line);border-radius:20px;margin:0 auto 24px}.empty h2{font-size:25px;margin-bottom:15px}.empty p{font-size:12px;max-width:390px;margin:0 auto 23px}.analysis-column .empty{padding:45px 24px}.analysis-column .empty h2{font-size:21px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%);z-index:100;display:flex;align-items:center;gap:13px;padding:12px 15px;background:var(--surface-3);border:1px solid color-mix(in srgb,var(--warning) 33%,transparent);border-radius:11px;box-shadow:var(--shadow);font-size:12px;line-height:1.6;max-width:700px;width:max-content;max-width:min(700px,calc(100% - 30px))}.toast>svg{color:var(--danger);width:17px}.toast>span{overflow-wrap:anywhere}.toast button{margin-left:auto}.startup{height:100vh;display:flex;flex-direction:column;gap:22px;align-items:center;justify-content:center}.startup .logo-mark{width:60px;height:60px}.startup h1{font-size:38px;letter-spacing:-2px}.startup p{max-width:500px;text-align:center}.page-enter{animation:enter .22s ease-out}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}@keyframes spin{to{rotate:360deg}}@keyframes slide{0%{transform:translate(0)}to{transform:translate(185%)}}@keyframes enter{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(min-width:1750px){.study-layout{grid-template-columns:210px minmax(400px,var(--board-weight, 1.14fr)) minmax(380px,1fr)}.study-page{max-width:1600px;margin:auto;width:100%}}@media(max-width:1380px){.sidebar{width:184px;padding:30px 14px 15px}.workspace{width:calc(100% - 184px);margin-left:184px}.brand{font-size:26px;padding-left:7px}.dashboard,.train-page{padding:30px 28px 10px}.topbar{padding:0 28px}.page-heading h1{font-size:29px}.dashboard-columns{gap:21px}.book-card{padding:16px}.training-card{padding:22px 14px;gap:10px}.training-card h3{font-size:14px}.metric{padding:0 10px;gap:10px}.metric-icon{width:34px;height:34px}.metric div>span{font-size:9px}.study-page{padding:26px 22px}.study-layout{grid-template-columns:150px minmax(280px,var(--board-weight, 1.14fr)) minmax(310px,1fr);gap:15px}.study-heading h1{font-size:20px}.save-state{display:none}.study-heading .button{font-size:10px;padding:9px}.book-tools .text-button{font-size:8px}.train-page .page-heading h1{font-size:27px}}@media(max-width:1180px){.sidebar{width:76px;align-items:center;padding:27px 8px 15px}.brand{padding:0 0 40px}.brand>span,.nav-link>span,.nav-link>small{display:none}.sidebar nav,.sidebar-bottom{width:100%}.nav-link{justify-content:center;padding:14px}.sidebar-bottom{margin-top:auto}.workspace{width:calc(100% - 76px);margin-left:76px}.study-layout{grid-template-columns:145px minmax(280px,var(--board-weight, 1.14fr)) minmax(300px,1fr);gap:13px}.study-page{padding:24px 19px}.chapter{padding:13px 8px;gap:6px}.chapter-number{display:none}.training-layout{gap:25px}.puzzle-panel{padding:22px}}@media(max-width:1000px){.study-layout{grid-template-columns:minmax(290px,var(--board-weight, 1.14fr)) minmax(300px,1fr);gap:22px}.chapters{grid-column:1/-1;padding:10px;display:flex;align-items:center;gap:12px;max-height:94px}.chapters .panel-heading,.chapters .search,.chapter-export{display:none}.chapter-list{display:flex;gap:5px;max-width:100%;overflow-x:auto;flex:1}.chapter-row{flex-shrink:0;min-width:175px;max-width:215px}.chapter{min-width:145px;max-width:180px;padding:10px;border:1px solid transparent;border-radius:7px;flex-shrink:0}.chapter.active{border:1px solid var(--accent-border)}.chapter b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}.chapter small{font-size:8px}.chapter>svg{display:none}.study-heading{align-items:flex-start}.study-heading h1{max-width:400px;font-size:20px}.dashboard-columns{grid-template-columns:1fr;gap:30px}.book-card{padding:22px}.book-top{margin-bottom:17px}.book-card p br{display:none}.book-card .book-line{margin-top:18px}.book-card .button{font-size:11px}.book-tools .text-button{font-size:10px}.training-cards{flex-direction:row}.training-card{flex:1;min-width:0;flex-wrap:wrap;position:relative;padding:20px}.training-card-copy{flex-basis:70%}.training-card>svg{display:none}.due-count{position:absolute;bottom:17px;right:20px}.training-card-copy>span{padding-top:9px}.metric-strip{gap:5px}.metric-icon{display:none}.page-heading .button{font-size:11px}.metric strong{font-size:25px}.train-page .page-heading{flex-direction:column;align-items:flex-start;gap:8px}.training-layout{gap:22px;grid-template-columns:minmax(270px,1fr) minmax(300px,1fr)}.puzzle-panel{padding:20px}.puzzle-heading{gap:10px}.puzzle-heading h2{font-size:19px}.puzzle-heading .collection-icon{height:38px;width:38px}.frequency-stats{gap:7px}.frequency-stats span{font-size:7px}.train-welcome h2,.train-complete h2{font-size:26px}}@media(max-width:760px){.sidebar{width:100%;height:64px;inset:auto 0 0;padding:0;display:block;border-right:0;border-top:1px solid var(--line);background:var(--sidebar);z-index:50}.sidebar .brand,.sidebar-bottom{display:none}.sidebar nav{height:100%;display:flex;flex-direction:row;justify-content:space-around;gap:0}.nav-link{flex-direction:column;gap:5px;padding:9px 15px 6px;border-radius:0;font-size:9px;flex:1}.nav-link>span{display:block}.nav-link.active{background:transparent;color:var(--accent)}.nav-link svg{width:19px;height:19px}.workspace{width:100%;margin:0;padding-bottom:64px}.topbar{height:59px;padding:0 20px}.topbar-actions{gap:10px}.topbar-actions>.busy{display:none}.topbar select{max-width:130px;font-size:10px}.dashboard,.train-page{padding:25px 20px 10px}.page-heading{gap:15px;align-items:flex-start;margin-bottom:23px;flex-wrap:wrap}.page-heading h1{font-size:28px}.page-heading p{font-size:11px}.page-heading .button{font-size:10px;padding:10px 13px}.eyebrow{font-size:8px;letter-spacing:1.5px}.metric-strip{grid-template-columns:repeat(4,1fr);gap:0;margin:24px 0 28px;padding-bottom:23px}.metric{padding:0 9px}.metric strong{font-size:24px}.metric div>span{font-size:8px;line-height:1.5;max-width:75px}.section-heading h2{font-size:21px}.section-heading .eyebrow{font-size:7px}.section-heading .text-button{font-size:10px}.study-page{padding:22px 20px 10px}.study-layout{gap:18px;grid-template-columns:minmax(250px,var(--board-weight, 1.14fr)) minmax(280px,1fr)}.study-heading{flex-wrap:wrap;gap:15px}.study-heading h1{max-width:100%;font-size:24px}.toolbar{justify-content:flex-start;gap:8px}.study-heading .button{font-size:11px;padding:10px 14px}.chapter-list{max-height:65px}.chapters{padding:7px}.analysis-column .tabs button{font-size:10px;padding:15px 5px;gap:5px}.branch-section{padding:16px 12px}.annotation{padding:14px 12px}.editor-tools{gap:7px}.board-controls .icon-button{min-width:30px}.board-controls>div{gap:3px}.training-layout{gap:20px;grid-template-columns:minmax(250px,1fr) minmax(280px,1fr)}.toast{bottom:79px;font-size:11px}.job-progress{gap:10px;flex-wrap:wrap}.job-progress>.busy{flex-basis:100%}.job-progress .progress-track{min-width:130px}.job-progress small{font-size:9px}}@media(max-width:620px){.book-card{padding:16px}.book-card h3{font-size:18px}.book-card p{font-size:10px}.book-card p br{display:block}.status-pill{font-size:7px;padding:4px 5px}.book-top{gap:4px}.chess-king{font-size:32px}.book-card .button{font-size:9px;padding:10px}.book-card .button svg{width:13px}.book-tools .text-button{font-size:8px}.book-grid{gap:12px}.training-cards{flex-direction:column}.training-card{flex-wrap:nowrap;padding:21px 17px;min-height:110px}.training-card-copy{flex-basis:auto}.training-card-copy>span{padding:0;font-size:9px}.training-card h3{font-size:15px}.due-count{position:static}.training-card>svg{display:block}.collection-icon{width:43px;height:45px}.activity-item{gap:10px}.activity-item b{font-size:11px}.activity-item p{font-size:9px;overflow-wrap:anywhere}.activity-status{width:25px;height:25px}.activity-empty{font-size:10px;padding:16px}.publication-summary{font-size:8px;gap:7px}.study-layout,.training-layout{grid-template-columns:minmax(0,1fr)}.study-layout{gap:16px}.chapters{grid-column:1;order:0}.board-column{order:1}.analysis-column{order:2}.keyboard-hint{display:none}.study-heading{gap:13px}.study-heading h1{font-size:24px}.study-heading .toolbar{width:100%}.study-heading .toolbar>.button{flex:1}.study-heading .eyebrow{font-size:8px}.board-controls{margin-top:3px}.board-controls .icon-button{min-width:42px;min-height:36px}.current-line{padding:12px 0}.analysis-column .tabs button{font-size:12px;padding:17px 9px}.branch-section{padding:19px 16px}.continuation-move{padding:13px 10px}.continuation-move b{font-size:14px}.continuation-move small{font-size:10px}.annotation{padding:17px}.annotation textarea{font-size:12px}.editor-tools{padding:10px 14px;gap:15px}.editor-tools .text-button{font-size:11px}.explorer,.engine-panel{padding:23px 20px}.training-board{position:static}.training-layout{gap:17px}.train-page .page-heading h1{font-size:28px}.train-page .page-heading h1 em{display:block}.train-tabs{gap:20px;margin:22px 0}.train-tabs>button{font-size:11px;gap:7px}.train-tabs>button>svg{width:16px}.train-welcome,.train-complete{padding:35px 20px}.train-welcome h2,.train-complete h2{font-size:26px;line-height:1.35}.session-facts{gap:15px;justify-content:space-between}.session-facts b{font-size:20px}.session-facts span{font-size:9px}.check-field{font-size:10px;line-height:1.6}.train-welcome p{font-size:11px}.puzzle-panel{padding:22px}.puzzle-heading h2{font-size:24px}.puzzle-heading .collection-icon{width:44px;height:46px}.puzzle-prompt{font-size:13px}.frequency-stats span{font-size:9px}.frequency-stats b{font-size:26px}.train-move-form>label{font-size:11px}.train-move-form .move-entry input{font-size:14px}.training-actions .button{font-size:12px}.training-actions .text-button{font-size:11px}.personal-notes>label{font-size:12px}.personal-notes textarea{font-size:12px}.personal-notes .text-button{font-size:11px}.review-history{font-size:9px}.modal{padding:23px}.modal-head h2{font-size:22px}.form-grid{grid-template-columns:1fr}.toast{align-items:flex-start}.notice{font-size:10px;flex-wrap:wrap}.notice .text-button{margin-left:25px;font-size:10px}.notice>span{min-width:200px}.compact-notice .text-button{margin-left:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.train-heading-actions{display:flex;align-items:flex-end;gap:14px;flex-direction:column}.card-browser{max-height:60vh;overflow:auto}.catalog-card{display:flex;gap:18px;padding:18px 0;border-top:1px solid var(--line)}.catalog-board{width:120px;flex-shrink:0;padding:0;pointer-events:auto}.catalog-board .board-frame{pointer-events:none}.catalog-board coords{display:none}.catalog-card h3{font-size:13px;margin:3px 0 7px}.catalog-card p{font-size:11px}.catalog-card small{display:block;font-size:9px;line-height:1.7;margin-top:5px}.catalog-card .text-button{margin-top:10px;font-size:10px}.catalog-note{color:var(--accent);padding-top:8px}.catalog-pagination{display:flex;align-items:center;justify-content:space-between;margin-top:20px;gap:15px}.catalog-pagination span{font-size:10px;color:var(--muted)}@media(max-width:620px){.train-heading-actions{flex-direction:row;align-items:center;flex-wrap:wrap}.catalog-board{width:88px}.catalog-card{gap:12px}.catalog-card h3{font-size:12px}}[data-board=slate]{--board-light: #dce4e8;--board-dark: #8195a6}[data-board=walnut]{--board-light: #eadcc2;--board-dark: #a58061}.dashboard-actions,.empty-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.dashboard-empty{padding:32px}.dashboard-empty h2{font-size:20px;margin-bottom:8px}.dashboard-empty .empty-actions{margin-top:24px}.activity-panel>summary{cursor:pointer;font-size:13px;color:var(--muted)}.activity-panel>summary>span{float:right;font-size:11px;color:var(--faint)}.activity-panel[open]>summary{margin-bottom:16px}.card-details{margin:20px 0;padding-bottom:16px;border-bottom:1px solid var(--line-soft);font-size:11px;color:var(--muted)}.card-details summary{cursor:pointer}.card-details .frequency-stats{margin-bottom:0;border:0}.card-details .review-history{margin-top:0}@media(max-width:760px){.dashboard .page-heading{flex-wrap:wrap}.dashboard-actions{gap:8px}.dashboard-empty{padding:24px}}.openings-page{width:100%;padding:36px;max-width:1500px;margin:0 auto}.opening-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:18px;flex-wrap:wrap}.opening-toolbar>span{color:var(--muted);font-size:13px;margin-left:auto}.opening-layout{display:grid;grid-template-columns:minmax(280px,var(--board-weight,1.14fr)) minmax(300px,1fr);gap:28px;align-items:start}.opening-board{min-width:0}.opening-detail{padding:24px;min-width:0}.opening-detail h2{font-size:21px;margin:24px 0 12px}.opening-context{color:var(--muted);font-size:13px;line-height:1.7}.opening-current-line{display:flex;flex-wrap:wrap;gap:4px;padding:14px 0;min-height:50px}.opening-current-line button{border:0;background:transparent;padding:5px 7px;color:inherit;border-radius:5px;cursor:pointer}.opening-current-line .proposed-choice{background:var(--accent-wash);color:var(--accent);font-weight:700;box-shadow:inset 0 -2px var(--accent)}.opening-keep{display:flex;gap:12px;justify-content:space-between}.opening-moves{margin:20px 0}.opening-moves>button{display:flex;width:100%;align-items:center;gap:14px;padding:16px 0;color:inherit;background:none;border:0;border-bottom:1px solid var(--line);cursor:pointer;text-align:left}.opening-moves strong{font-size:18px;min-width:54px}.opening-moves span{font-size:13px;color:var(--muted);flex:1}.opening-moves small{font-variant-numeric:tabular-nums}.opening-decisions{margin-top:36px}.opening-decision-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:10px}.opening-decision-list article{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px}.opening-decision-list article.selected{border-color:var(--accent)}.opening-select{display:flex;flex:1;gap:16px;text-align:left;color:inherit;background:none;border:0;cursor:pointer;align-items:center}.opening-select strong{font-size:18px;min-width:40px}.opening-select span{font-size:13px}.opening-select small{display:block;margin-top:5px;color:var(--muted)}.opening-shortcut{display:flex;align-items:center;gap:16px;padding:24px;margin:24px 0}.opening-shortcut>div{flex:1}.opening-shortcut h2{margin:0 0 5px;font-size:20px}.opening-shortcut span{color:var(--muted);font-size:13px}@media(max-width:950px){.opening-layout{grid-template-columns:1fr}.opening-board{max-width:640px;margin:auto;width:100%}.openings-page{padding:24px 16px}.opening-shortcut{flex-wrap:wrap}.opening-tabs{overflow-x:auto}}.personal-controls,.repertoire-status,.repertoire-links{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.personal-controls{margin-bottom:12px}.personal-controls select{width:auto;max-width:100%}.personal-controls small,.personal-labels,.personal-results small{color:var(--muted);font-size:11px}.personal-row,.personal-labels{display:grid;grid-template-columns:minmax(50px,1fr) 45px 30px minmax(90px,1.4fr);align-items:center;gap:6px}.personal-labels{font-size:10px;padding:10px 0}.personal-row{min-height:40px;border-top:1px solid var(--border);font-size:13px}.personal-move{text-align:left;border:0;background:transparent;color:inherit;cursor:pointer;padding:8px 0;font-weight:600}.personal-move small{color:var(--accent)}.personal-move:disabled{cursor:default;opacity:.65}.personal-row .text-button{justify-content:flex-start}.personal-results{white-space:nowrap}.repertoire-status{font-size:12px;color:var(--muted);margin:-8px 0 18px}.repertoire-status details{margin-left:auto}.repertoire-links{padding:0 14px 12px;gap:6px}.position-feedback,.source-games{margin-top:20px;font-size:12px}.source-board{width:min(100%,440px);margin:0 auto 16px}.analysis-column .tabs{flex-wrap:wrap}@media(max-width:600px){.personal-labels,.personal-row{grid-template-columns:minmax(45px,1fr) 40px 27px minmax(88px,1.5fr);gap:4px}.opening-shortcut{flex-wrap:wrap}}:root{--radius: 12px}.brand{font-size:20px;letter-spacing:-.055em}[data-theme=dark][data-palette=purple] .brand-dot{color:var(--signal)}[data-theme=dark][data-palette=purple] .logo-mark{color:var(--accent);filter:drop-shadow(0 0 9px #be93ff22)}[data-theme=dark][data-palette=purple] .sidebar{border-right-color:#be93ff25}[data-theme=dark][data-palette=purple] .nav-link.active{box-shadow:inset 2px 0 var(--signal)}.account-name{display:block;padding:12px 14px 0;font-size:13px;color:var(--muted);overflow-wrap:anywhere}.account-settings{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:22px}.account-settings-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.account-settings-row strong{overflow-wrap:anywhere;min-width:0}.auth-page{min-height:100dvh;display:grid;place-items:center;padding:32px 20px;background:radial-gradient(ellipse at 20% 15%,var(--accent-wash),transparent 55%),var(--bg)}.auth-card{width:min(100%,420px);padding:38px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.auth-brand{display:flex;align-items:center;gap:10px;font-family:Manrope,sans-serif;font-size:27px;font-weight:750;letter-spacing:-.06em}.auth-brand .logo-mark{width:42px;height:42px}.auth-heading{margin:38px 0 26px}.auth-heading h1{font-size:25px;margin-bottom:8px}.auth-card form,.password-fields{display:grid;gap:18px}.auth-card label,.password-fields label{display:grid;gap:8px;font-size:14px;color:var(--text)}.auth-card input{width:100%;font-size:16px}.auth-submit{width:100%;min-height:46px;justify-content:center;background:var(--accent);color:var(--accent-ink);border-radius:8px;font-weight:650}.auth-submit:hover{background:var(--accent-hover)}.auth-switch{width:100%;font-size:14px;margin-top:24px;color:var(--accent)}.auth-error{color:var(--danger)}.password-settings{border-bottom:1px solid var(--line);margin-bottom:24px;padding-bottom:18px}.password-settings summary{cursor:pointer;font-size:14px}.password-fields{margin-top:18px}@media(max-width:600px){.auth-card{padding:28px 24px}.account-name{display:none}.brand{font-size:18px}}
