*{margin:0;padding:0;box-sizing:border-box}:root{--primary: #d4a34a;--primary-dark: #a87f34;--primary-light: #e6bc6e;--secondary: #4aa893;--background: #14120e;--surface: #1c1a15;--surface-light: #29261f;--text: #f7f3ec;--text-secondary: #a39a89;--success: #5cb87a;--error: #d96b52;--warning: #e08a3c;--border: #3d382c;--radius: 10px;--radius-sm: 4px;--shadow: 0 2px 8px rgba(0, 0, 0, .35);--font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-display: "Lora", Georgia, serif;--ring-openings: #e0a23c;--ring-tactics: #3fc1a5;--ring-endgames: #c56cd6;--ring-check: #14120e}body{font-family:var(--font-ui);background-color:var(--background);color:var(--text);min-height:100vh;line-height:1.6;font-size:15px}#root{min-height:100vh}.container{max-width:1200px;margin:0 auto;padding:2rem}.form-card{background:var(--surface);border-radius:var(--radius);padding:2rem;box-shadow:var(--shadow);border:1px solid var(--border)}.form-title{font-family:var(--font-display);font-weight:600;font-size:1.5rem;margin-bottom:1.5rem;color:var(--text)}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;color:var(--text-secondary);font-weight:500}.input{width:100%;padding:.75rem 1rem;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-light);color:var(--text);font-size:1rem;font-family:var(--font-ui);transition:border-color .2s,box-shadow .2s}.input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 25%,transparent)}.input::placeholder{color:var(--text-secondary)}.button-group{display:flex;flex-wrap:wrap;gap:.75rem}.button-group-label{display:block;margin-bottom:.5rem;color:var(--text-secondary);font-weight:500}.btn{padding:.7rem 1.4rem;border:1px solid transparent;border-radius:var(--radius-sm);font-size:.9rem;font-weight:600;font-family:var(--font-ui);letter-spacing:.01em;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease;display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.btn svg{flex-shrink:0}.btn-primary{background:var(--primary);color:#1c1607}.btn-primary:hover{background:var(--primary-light)}.btn-secondary{background:transparent;color:var(--text);border-color:var(--border)}.btn-secondary:hover{background:var(--surface-light);border-color:var(--text-secondary)}.btn-active{background:var(--surface-light);color:var(--primary-light);border-color:var(--primary)}.btn-sm{padding:.45rem .9rem;font-size:.8rem}.btn-icon{padding:.4rem .65rem;font-size:.78rem;gap:.35rem}.btn:disabled{opacity:.45;cursor:not-allowed}.submit-btn{width:100%;padding:1rem;font-size:1.05rem;margin-top:1rem}.icon-spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.status-message{text-align:center;padding:2rem;color:var(--text-secondary)}.status-message .icon{font-size:2rem;margin-bottom:1rem}.error-message{background:color-mix(in srgb,var(--error) 12%,transparent);border:1px solid color-mix(in srgb,var(--error) 35%,transparent);color:var(--error);padding:1rem;border-radius:var(--radius);text-align:center}.topnav{display:flex;align-items:center;gap:2rem;padding:.75rem 2rem;border-bottom:1px solid var(--border);background:var(--surface)}.topnav-brand h1{font-family:var(--font-display);font-weight:600;font-size:1.4rem;letter-spacing:-.01em;color:var(--text)}.topnav-brand h1 span{color:var(--primary)}.topnav-tabs{display:flex;gap:.25rem;flex:1}.topnav-user{display:flex;align-items:center;gap:1rem}.topnav-profile{display:flex;align-items:center;gap:.5rem;background:none;border:1px solid transparent;border-radius:var(--radius-sm);padding:.35rem .6rem;cursor:pointer;color:var(--text)}.topnav-profile:hover,.topnav-profile-active{border-color:var(--border);background:var(--surface-light)}.topnav-name{font-weight:500;font-size:.9rem}.avatar{width:28px;height:28px;border-radius:50%;background:var(--primary);color:#1c1607;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem;overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover}.avatar-lg{width:64px;height:64px;font-size:1.6rem}.logout-link{display:flex;align-items:center;gap:.4rem;background:none;border:none;color:var(--primary-light);cursor:pointer;font-size:inherit;font-family:var(--font-ui);padding:0}.logout-link:hover{color:var(--primary)}.sync-bar{display:flex;align-items:center;gap:1rem;min-height:2.25rem;margin-bottom:1.25rem}.sync-progress{max-width:320px}.sync-status-text{color:var(--text-secondary);font-size:.9rem}.stat-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin-bottom:1.5rem}.stat-tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.1rem 1.25rem;display:flex;flex-direction:column;gap:.25rem}.stat-tile-link{color:inherit;text-decoration:none}.stat-tile-link:hover{border-color:var(--primary)}.stat-value{font-family:var(--font-display);font-size:2rem;font-weight:600;line-height:1.1;color:var(--text)}.stat-label{color:var(--text-secondary);font-size:.85rem}.chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1rem}.chart-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem 1.25rem}.chart-header{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.5rem;margin-bottom:.75rem}.chart-title{font-family:var(--font-ui);font-size:.95rem;font-weight:600;color:var(--text)}.chart-filter{display:flex;flex-wrap:wrap;gap:.35rem}.chart-filter .btn{padding:.25rem .6rem;font-size:.75rem}.chart-note{color:var(--text-secondary);font-size:.85rem;line-height:1.5;padding:1.5rem .5rem;text-align:center}.chart-body{position:relative}.chart-body svg{width:100%;height:auto;display:block}.chart-axis-text{fill:var(--text-secondary);font-size:10px}.chart-tooltip{position:absolute;top:-4px;transform:translate(-50%);background:var(--surface-light);border:1px solid var(--border);border-radius:6px;padding:.3rem .6rem;display:flex;gap:.5rem;align-items:center;font-size:.8rem;pointer-events:none;white-space:nowrap;z-index:5}.chart-tooltip-date{color:var(--text-secondary)}.chart-tooltip-value{display:flex;align-items:center;gap:.35rem;font-weight:600}.chart-tooltip-swatch{width:8px;height:8px;border-radius:2px;display:inline-block}.chart-empty{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:var(--text-secondary);font-size:.9rem}.chart-legend{display:flex;gap:1.25rem;justify-content:center;margin-top:.4rem}.legend-item{display:flex;align-items:center;gap:.4rem;color:var(--text-secondary);font-size:.8rem}.legend-swatch-bar{width:10px;height:10px;border-radius:2px;display:inline-block}.legend-swatch-line{width:14px;height:2px;border-radius:1px;display:inline-block}.chart-tooltip-swatch-line{height:2px;border-radius:1px}.settings-card{max-width:560px;margin:0 auto}.settings-section{margin-top:2rem}.settings-profile-row{display:flex;gap:1.25rem;align-items:flex-start}.settings-profile-fields{flex:1}.saved-message{color:var(--success);padding:.5rem 0;font-size:.9rem}.input-narrow{max-width:120px}.field-hint{color:var(--text-secondary);font-size:.8rem;margin-top:.4rem}.field-hint-error{color:var(--error)}.link-button{background:none;border:none;color:var(--primary-light);cursor:pointer;font-size:inherit;padding:0;text-decoration:underline;text-underline-offset:2px}.link-button:hover{color:var(--primary)}.auth-card{max-width:420px;margin:0 auto}.auth-switch{margin-top:1.25rem;text-align:center;color:var(--text-secondary);font-size:.9rem}.auth-back{display:inline-flex;align-items:center;gap:.3rem;margin-bottom:1.25rem}.auth-forgot-link{display:block;margin:-.75rem 0 1.25rem;font-size:.85rem}.auth-info{color:var(--text-secondary);margin-bottom:1.25rem;line-height:1.5}.landing{max-width:960px;margin:0 auto}.landing-hero{text-align:center;padding:3rem 1rem 2.5rem}.landing-hero-brand{font-family:var(--font-display);font-weight:600;font-size:3rem;letter-spacing:-.01em;color:var(--text);margin-bottom:1rem}.landing-hero-brand span{color:var(--primary)}.landing-hero-tagline{font-family:var(--font-display);font-size:1.5rem;font-weight:600;margin-bottom:.75rem}.landing-hero-sub{color:var(--text-secondary);font-size:1rem;max-width:560px;margin:0 auto 2rem}.landing-cta{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap}.landing-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem;padding:0 1rem 2rem}.landing-feature{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem}.landing-feature-icon{width:40px;height:40px;border-radius:var(--radius-sm);background:var(--surface-light);color:var(--primary);display:flex;align-items:center;justify-content:center;margin-bottom:1rem}.landing-feature h3{font-size:1rem;margin-bottom:.5rem}.landing-feature p{color:var(--text-secondary);font-size:.9rem}.tab{background:none;border:none;color:var(--text-secondary);font-size:.95rem;font-weight:600;font-family:var(--font-ui);padding:.75rem 1.25rem;cursor:pointer;border-bottom:2px solid transparent;display:flex;align-items:center;gap:.55rem}.tab svg{flex-shrink:0}.tab:hover{color:var(--text)}.tab{text-decoration:none;white-space:nowrap}.tab-active{color:var(--primary-light);border-bottom-color:var(--primary)}.progress-bar{flex:1;height:8px;background:var(--surface-light);border-radius:4px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,var(--primary),var(--secondary));transition:width .4s ease}.progress-label{color:var(--text-secondary);font-size:.85rem;white-space:nowrap}.review-panel{max-width:480px;margin:0 auto}.review-meta{display:flex;justify-content:space-between;gap:.75rem;color:var(--text-secondary);font-size:.875rem;margin-bottom:.75rem}.review-meta>span{white-space:nowrap}.review-meta>span:first-child{flex-shrink:0}.review-meta>span:last-child{overflow:hidden;text-overflow:ellipsis}.card-type-badge{display:inline-block;font-size:.68rem;font-weight:700;letter-spacing:.05em;padding:.1rem .4rem;border-radius:var(--radius-sm);margin-right:.5rem}.card-type-avoid{color:var(--secondary);background:#4aa89326}.card-type-punish{color:var(--primary-light);background:#d4a34a26}.review-board{flex:1;min-width:0;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.review-prompt{margin-top:1rem;text-align:center;min-height:3.5rem}.review-prompt p{margin-bottom:.5rem}.intro-note{color:var(--text-secondary);font-style:italic}.sym{font-weight:700}.move-good{color:var(--success)}.move-punish{color:var(--warning)}.attempt-correct{color:var(--success);font-weight:600}.attempt-wrong{color:var(--error)}.attempt-alt{color:#7fb0ee}.review-grades{display:flex;justify-content:center;gap:.75rem;margin-top:1rem}.auto-again-note{color:var(--text-secondary);font-size:.85rem;align-self:center}.repgraph{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.repgraph-scroll{overflow:auto;max-height:70vh;min-height:160px;cursor:grab;touch-action:pan-x pan-y;-webkit-user-select:none;user-select:none}.repgraph-scroll:active{cursor:grabbing}.repgraph-scroll svg{display:block;font-family:var(--font-ui)}.repgraph-zoom{position:absolute;top:8px;right:8px;z-index:1;display:flex;align-items:center;gap:4px;background:var(--surface-light);border-radius:var(--radius-sm);padding:2px}.repgraph-zoom-btn{padding:.1rem .55rem;min-width:28px;font-size:1rem;line-height:1.4}.repgraph-zoom-level{font-size:.75rem;color:var(--text-secondary);min-width:3em;text-align:center}.repgraph-node [role=treeitem]{cursor:pointer;outline:none}.repgraph-pill{fill:#ffffff08}.repgraph-pill.repertoire{fill:#5cb87a2e}.repgraph-node [role=treeitem]:hover .repgraph-pill,.repgraph-node [role=treeitem]:focus-visible .repgraph-pill{fill:#ffffff1a}.repgraph-node.selected .repgraph-pill{fill:#ffffff24}.repgraph-san{font-size:11px;font-weight:600;fill:var(--text)}.repgraph-count{font-size:10px;fill:var(--text-secondary)}.repgraph-win{fill:#cfc6b2}.repgraph-draw{fill:#7d7666}.repgraph-loss{fill:#3b3630}.repgraph-mark{font-size:10px;cursor:pointer}.repgraph-mark-dot{stroke:var(--surface);stroke-width:1.5;cursor:pointer}.repgraph-more{font-size:10px;fill:var(--text-secondary);cursor:pointer;text-decoration:underline}.repgraph-more:hover,.repgraph-more:focus-visible{fill:var(--text);outline:none}.repgraph-transposition{fill:none;stroke:var(--text-secondary);stroke-opacity:.6;stroke-width:1.2;stroke-dasharray:3 3;cursor:pointer}@media (max-width: 768px){.topnav{padding:.75rem 1rem;gap:.75rem;flex-wrap:wrap}.topnav-tabs{order:3;flex:1 0 100%;gap:0;overflow-x:auto;scrollbar-width:none}.topnav-tabs .tab{flex:1 0 auto;justify-content:center;padding:.6rem .3rem;font-size:.9rem}.topnav-user{margin-left:auto}.topnav-name{display:none}.container{padding:1rem}.form-card{padding:1.5rem}.button-group{flex-direction:column}.btn{width:100%}}.learn-tabs{display:flex;gap:.25rem;justify-content:center;border-bottom:1px solid var(--border);margin-bottom:1.25rem}.line-moves{margin-top:.6rem;color:var(--text-secondary);font-size:.85rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.book-end,.out-of-theory-tag{display:inline-block;font-size:.68rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:.05rem .4rem;border-radius:var(--radius-sm);color:var(--warning);border:1px solid var(--warning);white-space:nowrap}.book-end{margin:0 .15rem}.out-of-theory-tag{margin-left:.5rem}.line-review-empty{text-align:center;padding:2rem 0}.line-review-empty p+p{margin-top:.5rem}.explanation{text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.85rem 1rem;margin:.75rem 0;display:grid;gap:.5rem;font-size:.92rem}.explanation-label{display:block;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--primary-light)}.explanation-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;font-size:.8rem;color:var(--text-secondary)}.explanation-edit label{font-size:.78rem;font-weight:600;color:var(--text-secondary)}.explanation-edit textarea,.report-form input{width:100%;font:inherit;font-size:.9rem;color:var(--text);background:var(--surface-light);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.45rem .6rem}.report-form{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;flex:1;min-width:0}.report-form input{flex:1;min-width:10rem;width:auto}.link-button{background:none;border:none;color:var(--primary-light);font:inherit;font-size:.82rem;cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:2px;justify-self:start}.repertoire-tab{max-width:1280px;margin:0 auto}.repertoire-head{display:grid;gap:.5rem;justify-items:center;margin-bottom:1rem}.repertoire-summary{text-align:center;font-size:.9rem;color:var(--text-secondary);display:grid;gap:.15rem}.repertoire-start{display:grid;gap:.5rem;justify-items:start;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;margin-bottom:1rem;font-size:.92rem}.repertoire-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);grid-template-areas:"graph panel" "devs panel";grid-template-rows:auto 1fr;gap:0 1.25rem;align-items:start}.repertoire-graph-col{grid-area:graph;min-width:0}.repertoire-panel-col{grid-area:panel;position:sticky;top:1rem;min-width:0}.repertoire-devs-col{grid-area:devs;min-width:0}.graph-legend{display:flex;flex-wrap:wrap;gap:.35rem 1rem;margin-top:.5rem;font-size:.78rem;color:var(--text-secondary)}.graph-legend span:before{content:"";display:inline-block;width:.8rem;height:.5rem;border-radius:999px;border:1.5px solid currentColor;margin-right:.35rem;vertical-align:middle}.legend-repertoire:before{color:var(--success)}.legend-theory:before{color:var(--primary)}.legend-opponent:before{color:var(--error)}.legend-you:before{color:var(--warning)}.position-panel{display:grid;gap:.75rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem}.position-panel h4{font-family:var(--font-display);font-size:1.05rem}.position-crumbs{font-size:.85rem;line-height:1.6;overflow-wrap:anywhere}.position-crumbs .link-button{font-size:.85rem}.position-crumbs .link-button[aria-current=step]{color:var(--text);font-weight:700;text-decoration:none}.position-crumbs-meta{color:var(--text-secondary)}.position-board{width:100%;max-width:360px;justify-self:center}.position-rep{display:grid;gap:.5rem}.position-rep .row-actions{align-items:center}.position-blocked,.position-note{font-size:.86rem;color:var(--warning)}.position-coverage{font-family:var(--font-ui);font-size:.8rem;font-weight:500;color:var(--text-secondary)}.table-scroll{overflow-x:auto;position:relative}.position-table{width:100%;border-collapse:collapse;font-size:.85rem;font-variant-numeric:tabular-nums}.position-table th,.position-table td{text-align:left;padding:.35rem .3rem;border-bottom:1px solid var(--border);white-space:nowrap}.position-table thead th{font-size:.74rem;font-weight:600;color:var(--text-secondary)}.position-table tbody th{font-weight:700}.position-table tr.is-repertoire{background:#5cb87a1f}.position-table tr.clickable{cursor:pointer}.position-table tr.clickable:hover{background:var(--surface-light)}.position-table tr.not-met{opacity:.6}.position-table .muted{color:var(--text-secondary);font-size:.78rem}.position-table .cell-main,.position-table .cell-sub{display:block}.position-table .cell-sub{color:var(--text-secondary);font-size:.76rem}.table-legend{font-size:.76rem;color:var(--text-secondary)}.theory-tag{font-size:.72rem;color:var(--primary);border:1px solid currentColor;border-radius:999px;padding:0 .4rem}.answer-set{color:var(--success);font-weight:600}.answer-missing{color:var(--text-secondary)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.detail-message{font-size:.85rem;color:var(--success)}.row-actions{display:flex;flex-wrap:wrap;gap:.5rem}.deviations{margin-top:1.5rem}.deviations h3{font-family:var(--font-display);font-size:1.05rem;margin-bottom:.5rem}.deviations ul{list-style:none;display:grid;gap:.35rem;font-size:.88rem}.deviations li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.75rem;align-items:baseline}.deviations li .link-button{text-align:left;font-size:.88rem}.deviations a{color:var(--primary-light)}@media (max-width: 820px){.repertoire-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"graph" "panel" "devs";grid-template-rows:auto;gap:1rem}.repertoire-panel-col{position:static}.repgraph-scroll{max-height:50vh}.position-table .cell-unit{display:none}.row-actions .btn,.learn-tabs .tab{width:auto}.learn-tabs{justify-content:flex-start;overflow-x:auto;scrollbar-width:none}.learn-tabs .tab{padding:.75rem}}.landing-note{margin-top:.75rem;font-size:.85rem;color:var(--text-secondary)}.reconnect-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.75rem;padding:.6rem 1rem;background:color-mix(in srgb,var(--warning) 15%,transparent);border-bottom:1px solid color-mix(in srgb,var(--warning) 40%,transparent);font-size:.9rem}.settings-readonly{margin:.25rem 0;font-weight:600}.btn-lichess{display:inline-flex;align-items:center;gap:.5rem;text-decoration:none}.builder-head{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem;margin-bottom:.75rem}.builder-progress{margin:0;font-weight:600;flex:1 1 auto}.builder-goal{display:flex;align-items:center;gap:.4rem;font-size:.9rem;color:var(--text-secondary)}.builder-goal select{width:auto;padding:.3rem .5rem}.builder-step{display:grid;grid-template-columns:minmax(280px,460px) minmax(0,1fr);grid-template-areas:"board choices";gap:.75rem 1.5rem;align-items:start}.builder-board{grid-area:board}.builder-choices{grid-area:choices;min-width:0}.builder-path{flex:1 1 100%;font-weight:600}.builder-complete{flex:1 1 auto;color:var(--success);font-weight:600}.builder-title{margin:0 0 .75rem;font-family:var(--font-display)}.builder-position-name{margin:.5rem 0 0;font-weight:600}.builder-more{margin-top:.5rem}.completion-bar{display:inline-block;width:72px;height:6px;border-radius:3px;background:var(--surface-light);overflow:hidden;vertical-align:middle}.completion-bar span{display:block;height:100%;background:var(--success)}.results-bar{display:inline-flex;width:96px;height:16px;border-radius:3px;overflow:hidden;font-size:.7rem;line-height:16px;font-weight:700}.results-win{background:#f7f3ec;color:#14120e;padding:0 3px}.results-draw{background:#8a8378}.results-loss{background:#2b2822;color:#f7f3ec;padding:0 3px;text-align:right}.builder-line{margin:0 0 .25rem;font-weight:600;font-size:1.05rem}.builder-meta{margin:0 0 .2rem;color:var(--text-secondary);font-size:.9rem}.builder-choices h4{margin:0 0 .5rem}.builder-done{padding:1.5rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);text-align:center}.overview .repertoire-summary{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;margin-bottom:.75rem}.overview .repertoire-summary p{margin:0}@media (max-width: 760px){.builder-step{grid-template-columns:minmax(0,1fr);grid-template-areas:"board" "choices"}}.builder-choices .position-table tbody th{white-space:normal;min-width:7rem}@media (max-width: 760px){.builder-choices .position-table th,.builder-choices .position-table td{padding:.35rem .2rem}.builder-choices .position-table tbody th{min-width:6rem}.results-bar{width:72px}}.colour-home{display:grid;gap:1.5rem;max-width:640px}.colour-home-block h3{margin:0 0 .5rem}.colour-home-note{font-weight:400;font-size:.9rem;color:var(--text-secondary)}.variation-row .colour-home-note{margin:.15rem 0 0}.variation-moves{font-weight:600}.variation-exit a{color:var(--primary-light)}.progress-track{height:10px;border-radius:5px;background:var(--surface-light);overflow:hidden;margin-bottom:.75rem}.progress-track span{display:block;height:100%}.progress-built span{background:var(--success)}.progress-learned span{background:var(--warning)}.colour-home-action{display:flex;justify-content:space-between;align-items:center;width:100%;padding:.9rem 1rem;margin-bottom:.5rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);font:inherit;font-weight:600;cursor:pointer}.colour-home-action:hover:not(:disabled){background:var(--surface-light)}.colour-home-action:disabled{opacity:.6;cursor:default}.colour-home-count{color:var(--text-secondary);font-weight:500}.colour-back{margin-bottom:.75rem}.course-page{display:grid;gap:.5rem}.course-home{max-width:640px;padding:1rem 1.25rem;background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--primary);border-radius:var(--radius)}.course-home h3{margin:0 0 .25rem}.course-home p{margin:0 0 .75rem}.course-home-actions{display:flex;flex-wrap:wrap;gap:.75rem}.course-list-actions{display:flex;gap:.5rem;flex-shrink:0}.count-badge{display:inline-block;min-width:1.4em;margin-left:.4rem;padding:0 .4em;border-radius:999px;background:#00000040;font-size:.8em;font-weight:700;text-align:center}.course-learn-head{margin:0 0 .75rem}.course-section-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:.75rem}.course-section-head h3{margin:0}.course-due{color:var(--primary);font-weight:600}.opening-picker{display:grid;gap:1rem;margin-bottom:.5rem}.opening-picker-head{display:flex;justify-content:space-between;align-items:center}.opening-picker-head h3,.opening-picker-section h4{margin:0}.opening-picker-section{display:grid;gap:.5rem}.opening-cards{display:flex;flex-wrap:wrap;gap:.5rem}.opening-card{display:grid;gap:.15rem;text-align:left;padding:.6rem .8rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);font:inherit;cursor:pointer}.opening-card:hover{background:var(--surface-light)}.opening-list{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}.opening-list li{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem .75rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:100}.modal{max-width:440px;padding:1.25rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.modal h4{margin:0 0 .5rem}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.75rem}.board-with-panel{display:grid;grid-template-columns:minmax(0,480px) minmax(0,1fr);gap:1.5rem;align-items:start;max-width:900px;margin:0 auto}.board-with-panel-board,.board-with-panel-panel{min-width:0}.board-with-panel .review-prompt{margin-top:0;text-align:left}.board-with-panel .review-grades{justify-content:flex-start}@media (max-width: 767.98px){.board-with-panel{grid-template-columns:minmax(0,1fr);gap:1rem}}.course-panel-head{margin-bottom:1rem}.course-panel-head h3{margin:.25rem 0 .5rem;overflow-wrap:anywhere}.course-progress{display:flex;align-items:center;gap:.75rem}.course-progress .muted{font-size:.8rem}.course-progress+.course-progress{margin-top:.4rem}.review-lines-progress{margin-bottom:.75rem}.line-meta{display:inline-flex;align-items:center;gap:.5rem}.line-moves-progress{flex:none;width:5rem;height:6px}.course-why{color:var(--text-secondary)}.their-move-note{text-transform:none;letter-spacing:0;font-weight:400;color:var(--text-secondary)}.course-nav{display:flex;align-items:center;gap:.5rem;margin-top:.25rem}.course-nav .btn{min-width:2.5rem;font-size:1.1rem;line-height:1}.course-review .btn{margin-top:.75rem}.course-variation{margin:.15rem 0 .25rem;font-size:.95rem}.course-drill{margin:.5rem 0 0;font-weight:600}.course-options{margin-top:1rem}.course-options summary{cursor:pointer;color:var(--text-secondary)}.course-options ul{list-style:none;padding:0;margin:.5rem 0 0}.course-options li{padding:.25rem 0;overflow-wrap:anywhere}.modal{margin:0 1rem}.opening-list li>span:first-child{min-width:0}.opening-moves{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tactics-stats{display:flex;flex-direction:column;gap:1rem}.tactics-stats>.link-button{align-self:flex-start}.endgames-page{display:flex;flex-direction:column;gap:1rem}.endgame-goal{font-size:1rem;margin:0 0 .5rem}.endgame-explanation h5{font-size:.85rem;margin:.8rem 0 .2rem;color:var(--text-secondary)}.endgame-explanation p{margin:0}.endgames-clock-note{color:var(--text-secondary);font-size:.8rem;margin:.4rem 0 0}.endgame-group+.endgame-group{margin-top:1rem}.endgame-group h5{font-size:.9rem;margin:0 0 .4rem}.endgame-group .muted{color:var(--text-secondary);font-weight:400}.endgame-group ul{list-style:none;padding:0;margin:0}.endgame-group li{display:flex;justify-content:space-between;gap:1rem;padding:.3rem 0;border-top:1px solid var(--border);font-size:.85rem}.table-scroll{overflow-x:auto}.theme-trends td:last-child{width:1%}.position-table tr.is-selected{background:var(--surface-light)}.theme-row-button{background:none;border:0;padding:0;color:inherit;font:inherit;font-weight:700;cursor:pointer;text-align:left}.theme-row-button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.sparkline{display:block}.chart-actions{display:flex;flex-wrap:wrap;align-items:baseline;gap:.6rem}.chart-link,.chart-title-link{color:inherit;text-decoration:none}.chart-link{font-size:.8rem;color:var(--text-secondary)}.chart-link:hover,.chart-title-link:hover{text-decoration:underline;color:var(--text)}.theme-chips{display:flex;flex-wrap:wrap;gap:.4rem;margin:.6rem 0}.theme-chip{font-size:.78rem;font-weight:600;padding:.15rem .55rem;border-radius:999px;color:var(--primary-light);background:#d4a34a26}.tactic-explanation{color:var(--text)}.tactic-ai{margin:0;display:grid;gap:.15rem}.tactic-ai dt{font-size:.75rem;font-weight:600;letter-spacing:.02em;color:var(--text-secondary)}.tactic-ai dd{margin:0 0 .5rem}.tactic-game{font-size:.85rem}.teach-heading{margin:0 0 .4rem;font-size:1.1rem}.teach-moves{margin:0 0 .4rem}.teach-played{color:#d9534f;font-weight:600}.teach-stepper{display:flex;align-items:center;justify-content:center;gap:.75rem;margin-top:.5rem}.teach-stepper .line-moves{margin:0;min-width:8rem;text-align:center}.tactic-why{margin:.4rem 0}.tactic-why-link{background:none;border:0;padding:0;color:var(--primary-light);cursor:pointer;text-decoration:underline;font:inherit}.tactic-game a{color:var(--primary-light)}.coming-soon{max-width:34rem;margin:2rem auto}.coming-soon h2{font-family:var(--font-display);color:var(--text);margin-bottom:.25rem}.coming-soon-tag{color:var(--primary-light);font-weight:600;margin-bottom:1rem}a.link-button{display:inline-block}.rings{display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.1rem 1.25rem;margin-bottom:1.5rem}.rings-loading{min-height:166px}.rings-svg{flex:none}.ring{cursor:pointer}.ring-track,.ring-fill{fill:none;stroke:var(--ring)}.ring-track{opacity:.18}.ring-fill{stroke-linecap:round;transition:stroke-dashoffset .6s ease}.ring-check{fill:none;stroke:var(--ring-check);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.ring:hover .ring-track{opacity:.28}.ring-openings{--ring: var(--ring-openings)}.ring-tactics{--ring: var(--ring-tactics)}.ring-endgames{--ring: var(--ring-endgames)}.rings-legend{list-style:none;display:flex;flex-direction:column;gap:.75rem;min-width:0}.rings-item{display:grid;grid-template-columns:.7rem 1fr;grid-template-areas:"swatch label" ". count" ". unit";column-gap:.6rem;align-items:center;color:var(--text);text-decoration:none;line-height:1.25}.rings-item:hover .rings-label{text-decoration:underline}.rings-swatch{grid-area:swatch;width:.7rem;height:.7rem;border-radius:50%;background:var(--ring)}.rings-label{grid-area:label;color:var(--text-secondary);font-weight:600;font-size:.85rem}.rings-count{grid-area:count;font-size:1.5rem;font-weight:700;color:var(--ring);font-variant-numeric:tabular-nums}.rings-unit{grid-area:unit;color:var(--text-secondary);font-size:.8rem}@media (max-width: 420px){.rings{gap:1rem;padding:1rem}.rings-svg{width:112px;height:112px}}.settings-goals{display:flex;gap:1.5rem;flex-wrap:wrap}.settings-goals .form-group{margin-bottom:.5rem}.woodpecker-page,.woodpecker-drill{max-width:900px;margin:0 auto}.woodpecker-page h2,.woodpecker-drill h2{font-family:var(--font-display);font-size:1.4rem}.woodpecker-intro{margin:.25rem 0 1.25rem}.woodpecker-page h3{font-size:1rem;margin-bottom:.5rem}.woodpecker-active,.woodpecker-form,.woodpecker-summary{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem 1.25rem;margin-bottom:1.25rem}.woodpecker-active-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap}.woodpecker-actions{display:flex;gap:.75rem;margin-top:.75rem;flex-wrap:wrap}.woodpecker-form fieldset{border:none;margin:0 0 1rem;display:grid;gap:.5rem}.woodpecker-form legend{font-size:.85rem;color:var(--text-secondary);margin-bottom:.4rem}.woodpecker-option{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;cursor:pointer}.woodpecker-option select{background:var(--surface-light);color:var(--text);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.3rem .5rem;font-family:var(--font-ui)}.woodpecker-sizes{display:flex;gap:1.25rem}.woodpecker-history{margin-top:.5rem}.woodpecker-finished{border:1px solid var(--border);border-radius:var(--radius-sm);padding:.6rem .9rem;margin-bottom:.5rem}.woodpecker-finished summary{display:flex;justify-content:space-between;gap:1rem;cursor:pointer}.woodpecker-finished .position-table{margin-top:.6rem}.woodpecker-status{font-size:.8rem;font-weight:600;color:var(--text-secondary)}.woodpecker-done{color:var(--success)}.woodpecker-drill-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.woodpecker-header{font-size:.85rem;color:var(--text-secondary);margin-bottom:.5rem;font-variant-numeric:tabular-nums}.woodpecker-summary h3{margin-bottom:.75rem}.woodpecker-summary h4{font-size:.9rem;margin:1rem 0 .4rem}.woodpecker-summary .position-table td,.woodpecker-cycles td{font-variant-numeric:tabular-nums}.woodpecker-summary>p{margin:.75rem 0}.woodpecker-slowest{padding-left:1.25rem;display:grid;gap:.25rem}.woodpecker-slowest li span{margin-right:.75rem}.tactic-history{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .75rem;font-size:.8rem;color:var(--text-secondary)}.history-dots{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.3rem}.history-dot{width:.6rem;height:.6rem;border-radius:50%;background:var(--border)}.history-dot.right{background:var(--success)}.history-dot.wrong{background:var(--error)}.history-dot.today{width:.75rem;height:.75rem;box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--text-secondary)}.analysis-modal{width:100%;max-width:960px;max-height:calc(100vh - 2rem);overflow-y:auto}.analysis-board{display:flex;gap:.5rem;align-items:stretch}.analysis-board .review-board{flex:1}.eval-bar{flex:none;width:14px;display:flex;flex-direction:column-reverse;border-radius:var(--radius-sm);overflow:hidden;background:#3a3833}.eval-bar-flipped{flex-direction:column}.eval-bar-white{background:#f2efe8;transition:height .3s ease}.analysis-panel{display:flex;flex-direction:column;gap:.75rem;min-width:0}.analysis-head{display:flex;align-items:center;justify-content:space-between}.analysis-head h4{margin:0}.analysis-lines{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.analysis-line{display:flex;gap:.6rem;width:100%;padding:.35rem .5rem;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-light);color:var(--text);font:inherit;font-size:.9rem;text-align:left;cursor:pointer}.analysis-line:hover{border-color:var(--text-secondary)}.analysis-score{flex:none;min-width:3.2rem;font-weight:700;font-variant-numeric:tabular-nums}.analysis-pv{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.analysis-status{margin:0;font-size:.8rem}.analysis-moves{margin:0;line-height:1.8;overflow-wrap:anywhere}.analysis-move-number{color:var(--text-secondary);margin-right:.2rem}.analysis-move{border:none;background:none;color:var(--text);font:inherit;padding:0 .2rem;border-radius:var(--radius-sm);cursor:pointer}.analysis-move:hover{background:var(--surface-light)}.analysis-move-current{background:var(--primary-dark)}.analysis-controls{display:flex;flex-wrap:wrap;gap:.4rem}.analysis-engine-toggle{margin-left:auto}.analysis-licence{margin:0;font-size:.75rem}.analysis-licence a{color:var(--text-secondary)}.analyse-row{display:flex;justify-content:flex-end;margin-top:.5rem}
