.play-layout[data-slot=sidebar-wrapper]{min-height:100dvh}.play-layout .view-play{display:flex;flex-direction:column;height:100dvh;padding-top:0;background:var(--background);color:var(--foreground)}.play-layout .topbar{height:48px;flex-shrink:0;padding:0 24px;background:var(--background);border-color:var(--border)}.play-layout .content{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:8px 16px}.play-layout .content>.try-box{flex-shrink:0;max-height:64px;overflow:auto;margin:0 0 8px}.play-layout .content>.footer-note{display:none}.play-layout .content>*{animation:none}.play-room [tabindex]:focus-visible,.play-room button:not(.square):focus-visible,.play-room select:focus-visible{outline:3px solid var(--primary);outline-offset:3px}.play-room{--board-surround:0px;--match-panel-width:320px;--match-gap:24px;display:flex;flex-direction:column;flex:1;min-height:0;container-type:size}.match-layout{display:grid;grid-template-columns:minmax(0,1fr) var(--match-panel-width);gap:var(--match-gap);flex:1;min-height:0}.match-board-column{min-width:0;min-height:0;display:flex;align-items:flex-start;justify-content:center}.match-board-stack{width:min(100%,max(192px,calc(100cqh - var(--board-surround))));container-type:inline-size;display:flex;flex-direction:column;gap:4px}.match-board-tools,.match-position{display:flex;flex-direction:column;gap:4px;min-width:0}.match-player{display:flex;align-items:center;gap:10px;height:40px;flex-shrink:0}.match-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:6px;border:1px solid var(--border);flex-shrink:0}.match-avatar,.match-avatar.bot-avatar{background:var(--secondary);color:var(--primary)}.match-avatar.bot-avatar{border-color:var(--border)}.match-player-info{min-width:0;flex:1}.match-player-name{display:flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap;font-weight:700}.match-player-badge{font-size:10px;font-weight:500;color:var(--foreground);background:var(--secondary);border-radius:3px;padding:3px 5px}.match-player-meta{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted-foreground);margin-top:2px;min-height:16px}.side-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--piece-dark);border:1px solid var(--border)}.side-dot.white-side{background:var(--piece-light);border-color:var(--input)}.match-captures{font-family:Segoe UI Symbol,sans-serif;font-size:16px;letter-spacing:-2px;line-height:1;padding-left:5px;color:var(--foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.match-clock{margin-left:auto;display:flex;align-items:center;gap:7px;color:var(--muted-foreground);background:var(--background);padding:6px 9px;border-radius:5px;flex-shrink:0}.match-clock span{font-size:10px}.match-clock.active-clock{background:var(--primary);color:var(--primary-foreground)}.play-room .board-shell{width:100%;flex-shrink:0;border:0;border-radius:4px;background:var(--board-dark);box-shadow:0 5px 18px var(--shadow-color)}.match-status{display:flex;align-items:flex-start;gap:8px;height:44px;flex-shrink:0;overflow:auto;overscroll-behavior:contain;font-size:12px;line-height:1.4;color:var(--foreground);padding:4px 8px;border:1px solid var(--border);border-radius:5px;background:var(--secondary)}.match-status-text{flex:1;min-width:0;margin:auto 0}.match-status-text p{color:var(--muted-foreground);font-size:11px}.status-indicator{margin-top:8px;width:6px;height:6px;border-radius:50%;background:var(--primary);flex-shrink:0}.status-thinking{background:var(--success)}.match-result-banner{display:flex;align-items:center;gap:9px;width:100%;height:44px;flex-shrink:0;padding:6px 10px;border:1px solid var(--primary);border-radius:6px;background:var(--secondary);color:var(--primary);text-align:left}.match-result-banner>svg,.match-result-link svg{flex-shrink:0}.match-result-summary{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.match-result-summary strong{font-size:13px;line-height:1.2}.match-result-summary small{display:none;font-size:11px;line-height:1.4;color:var(--muted-foreground)}.match-result-link{display:flex;align-items:center;gap:3px;flex-shrink:0;font-size:11px;font-weight:700}.match-panel>.match-result-banner{width:auto;height:auto;min-height:56px;margin:0 12px 8px}.match-panel>.match-result-banner .match-result-summary small{display:block}.game-result-dialog{width:calc(100% - 24px);max-width:440px;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;padding:32px 24px 24px;gap:24px;border-color:var(--border);background:var(--card);color:var(--foreground);animation:none}.game-result-heading{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}.game-result-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--secondary);color:var(--primary)}.game-result-eyebrow{font-size:12px;color:var(--muted-foreground)}.game-result-dialog .game-result-title{font-family:var(--font-heading);font-size:clamp(28px,6vw,36px);line-height:1.15;font-weight:500;letter-spacing:-.6px}.game-result-description{font-size:14px;line-height:1.65;color:var(--muted-foreground)}.game-result-score{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center;border-block:1px solid var(--border);padding:18px 0}.game-result-score>div{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;min-width:0}.game-result-score svg{color:var(--primary)}.game-result-score strong{font-size:13px}.game-result-score>div>span{font-size:11px;color:var(--muted-foreground)}.game-result-score>p{display:flex;gap:12px;align-items:center;font-size:28px;font-variant-numeric:tabular-nums}.game-result-score>p>span{color:var(--muted-foreground);font-size:18px}.game-result-actions{display:grid;gap:10px}.game-result-dialog>[data-slot=dialog-close]{display:grid;place-items:center;top:8px;right:8px;width:44px;height:44px;color:var(--foreground)}.game-result-dialog button:focus-visible{outline:3px solid var(--primary);outline-offset:3px}.game-result-dialog .game-result-title:focus{outline:none}.match-status button{display:flex;align-items:center;justify-content:center;gap:5px;color:var(--primary);margin-left:auto;font-size:11px;min-height:34px;white-space:nowrap;flex-shrink:0}.play-room button:disabled{opacity:.4;cursor:default}.match-quick-actions{display:grid;grid-template-columns:44px 44px 1fr 1.35fr;gap:4px;height:44px}.match-quick-actions button{display:flex;align-items:center;justify-content:center;gap:5px;border-radius:5px;background:var(--secondary);color:var(--foreground);font-size:11px;font-weight:700;min-width:0}.match-quick-actions .quick-new-game{background:var(--primary);color:var(--primary-foreground)}.match-quick-actions .quick-game-menu{color:var(--primary)}.match-panel{display:flex;flex-direction:column;min-height:0;background:var(--card);border:1px solid var(--border);border-radius:8px;overflow:hidden;min-width:0;color:var(--foreground)}.match-panel-heading{display:flex;gap:10px;align-items:center;padding:12px 16px;flex-shrink:0}.panel-bot-icon{display:grid;place-items:center;width:32px;height:32px;background:var(--secondary);color:var(--primary);border:1px solid var(--border);border-radius:6px;flex-shrink:0}.match-panel-heading h2{font-size:18px;letter-spacing:-.35px}.match-panel-players{display:flex;flex-direction:column;gap:4px;padding:8px 12px;flex-shrink:0}.match-panel-players .match-player{height:24px;gap:6px;padding:2px 4px;border-radius:4px}.match-panel-players .match-player.is-turn{background:var(--secondary)}.match-panel-players .match-avatar{width:20px;height:20px;border:0;background:transparent}.match-panel-players .match-avatar svg{width:16px;height:16px}.match-panel-players .match-player-info{display:flex;align-items:center;gap:8px}.match-panel-players .match-player-name{font-size:12px}.match-panel-players .match-player-meta{flex:1;min-width:0;margin:0}.match-panel-players .match-clock,.match-panel-players .match-player-badge{display:none}.match-level-trigger{justify-content:space-between;gap:8px;min-height:60px;margin:0 12px 8px;padding:9px 10px;border:1px solid var(--primary);border-radius:6px;background:var(--secondary);text-align:left}.match-level-trigger,.match-settings-trigger{display:flex;align-items:center;flex-shrink:0;color:var(--primary)}.match-settings-trigger{justify-content:flex-end;gap:7px;min-height:44px;margin:0 12px 4px;padding:7px 2px;font-size:12px;font-weight:600}.match-current-level{display:flex;flex-direction:column;gap:2px;min-width:0}.match-current-level small{font-size:10px;color:var(--muted-foreground)}.match-current-level strong{font-size:13px;line-height:1.4}.match-level-link{display:flex;align-items:center;justify-content:flex-end;gap:5px;font-size:11px;font-weight:700;text-align:right}.match-level-link svg{flex-shrink:0}.match-panel>.match-status{margin:0 12px 8px;height:auto;min-height:36px;max-height:72px;background:transparent;border:0;padding:3px 0}.match-panel-content{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-color:var(--input) var(--card)}.match-panel-content.showing-moves{display:flex;flex-direction:column}.match-panel-content.showing-moves>:not(.match-move-list){flex-shrink:0}.move-list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px;border-top:1px solid var(--border)}.move-list-heading h3{font-size:13px;font-weight:700}.move-column-labels,.move-list-heading>span{font-size:10px;color:var(--muted-foreground)}.move-column-labels{display:grid;grid-template-columns:44px 1fr 1fr;background:var(--background);padding:5px 0}.move-column-labels>span{padding-left:17px}.match-move-list{min-height:64px;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:var(--input) var(--card)}.match-move-list table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:14px;font-variant-numeric:tabular-nums}.match-move-list th{width:44px;font-size:12px;font-weight:400;color:var(--muted-foreground);padding-left:16px;text-align:left}.match-move-list td{padding:2px 7px}.match-move-list tr:nth-child(2n){background:var(--background)}.match-move-list td button{min-height:36px;padding:5px 10px;border-radius:4px;width:100%;text-align:left;font-weight:700}.match-move-list td button[aria-current=step]{color:var(--foreground);background:var(--secondary);box-shadow:inset 2px 0 var(--primary)}.pending-move{display:block;padding-left:10px;color:var(--muted-foreground)}.match-move-list.is-empty{container-type:size}.match-empty,.match-move-list.is-empty{display:flex;align-items:center;justify-content:center}.match-empty{flex-direction:column;text-align:center;padding:12px}.match-empty>div{font-family:Segoe UI Symbol,serif;font-size:32px;color:var(--muted-foreground);line-height:1.2;margin-bottom:8px}.match-empty h3{font-size:15px}.match-empty p{font-size:12px;line-height:1.8;color:var(--muted-foreground);margin-top:9px}.match-empty>span{font-size:10px;color:var(--primary);padding:5px 8px;background:var(--secondary);border-radius:4px;margin-top:14px}.match-empty p,.match-empty>div{display:none}@container (min-height: 170px){.match-empty p,.match-empty>div{display:block}}.replay-controls{display:flex;align-items:center;justify-content:space-between;gap:1px;min-height:46px;padding:1px 8px;border-top:1px solid var(--border)}.replay-controls button{display:grid;place-items:center;width:44px;min-height:44px;border-radius:4px;color:var(--foreground);flex-shrink:0}.replay-controls>span{font-size:10px;color:var(--muted-foreground);text-align:center;flex:1}.match-panel-footer{display:grid;grid-template-columns:56px 48px minmax(0,1fr);gap:6px;flex-shrink:0;border-top:1px solid var(--border);padding:10px 12px}.match-small-action{flex-direction:column;gap:3px;color:var(--foreground);border-radius:5px;font-size:10px}.match-new-game,.match-small-action{display:flex;align-items:center;justify-content:center;min-height:44px}.match-new-game{min-width:0;gap:8px;padding:8px;font-size:13px;font-weight:700;background:var(--primary);color:var(--primary-foreground);border-radius:6px;border:1px solid var(--primary)}.match-new-game svg{flex-shrink:0}.match-learn-link{display:flex;align-items:center;gap:9px;width:100%;min-height:52px;text-align:left;margin-top:8px;color:var(--primary)}.match-learn-link>span{display:flex;flex-direction:column;gap:2px;flex:1}.match-learn-link b{font-size:11px}.match-learn-link small{font-size:9px;color:var(--muted-foreground)}.match-setup{padding:12px;border-top:1px solid var(--border)}.match-setup h3{font-size:16px}.match-setup>p{color:var(--muted-foreground);font-size:12px;line-height:1.6;margin-top:7px}.match-setup legend:not(.sr-only){display:block;font-size:12px;font-weight:700;margin:20px 0 9px;color:var(--foreground)}.match-level-options{display:grid;gap:8px;min-width:0;margin-top:16px}.match-level-option{display:flex;align-items:center;gap:10px;width:100%;min-height:84px;padding:12px 10px;border:1px solid var(--border);border-radius:6px;background:var(--card);color:var(--foreground);text-align:left}.match-level-option[aria-pressed=true]{background:var(--secondary);border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}.match-bot-category-icon{display:grid;place-items:center;width:38px;height:44px;flex-shrink:0;border-radius:6px;background:var(--secondary);color:var(--primary)}.match-level-description{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.match-level-description strong{font-size:14px}.match-level-description>span{color:var(--muted-foreground);font-size:11px;line-height:1.5}.match-level-selected{display:flex;flex-direction:column;align-items:center;gap:3px;width:38px;flex-shrink:0;color:var(--primary);font-size:9px}.match-setup .setup-caption{font-size:11px;color:var(--primary)}.color-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.color-choices button{display:flex;flex-direction:column;align-items:center;border:1px solid var(--input);border-radius:6px;padding:9px;gap:5px;color:var(--foreground);font-size:12px}.color-choices button[aria-pressed=true]{background:var(--secondary);border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}.color-choices button>span{font-family:Segoe UI Symbol,sans-serif;font-size:28px;line-height:1.3}.white-choice{color:var(--piece-light);-webkit-text-stroke:.7px var(--piece-dark)}.black-choice{color:var(--piece-dark);-webkit-text-stroke:.7px var(--board-coordinate)}.color-choices small{font-size:10px;color:var(--muted-foreground)}.match-toggle{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;border-bottom:1px solid var(--border);font-size:12px}.match-toggle:first-of-type{margin-top:16px}.match-toggle [data-slot=switch]{background:var(--input)}.match-toggle [data-slot=switch][data-state=checked]{background:var(--primary)}.match-setup-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:16px}.match-setup-tools button{justify-content:center;min-height:44px;padding:6px;border:1px solid var(--border);border-radius:5px;color:var(--foreground)}.match-setup .setup-note,.match-setup-tools button{display:flex;align-items:center;gap:7px;font-size:11px}.match-setup .setup-note{padding:13px 0 0;color:var(--muted-foreground)}.play-panel-dialog{display:flex;padding:0;gap:0;width:calc(100% - 24px);max-width:480px;height:min(680px,calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));border-color:var(--border);color:var(--foreground);animation:none}.play-panel-dialog .match-panel{flex:1;border:0}.play-panel-dialog .match-panel-heading{padding-right:56px}.play-panel-dialog>[data-slot=dialog-close]{top:12px;right:8px;width:44px;height:44px;display:grid;place-items:center;color:var(--foreground)}.play-panel-dialog [tabindex]:focus-visible,.play-panel-dialog button:focus-visible,.play-panel-dialog select:focus-visible{outline:3px solid var(--primary);outline-offset:-3px}.play-panel-dialog button:disabled{opacity:.4;cursor:default}@media (hover:hover) and (pointer:fine){.match-level-option:not(:disabled):hover,.match-move-list td button:hover,.match-setup-tools button:not(:disabled):hover,.match-small-action:not(:disabled):hover,.replay-controls button:not(:disabled):hover{background:var(--secondary);color:var(--foreground)}.match-new-game:hover{background:var(--primary-hover)}.match-level-trigger:hover,.match-result-banner:hover{box-shadow:inset 0 0 0 1px var(--primary)}}@media (max-width:1280px){.play-layout .content{padding-left:16px;padding-right:16px}.play-room{--match-gap:16px;--match-panel-width:280px}.match-clock span{display:none}}@media (max-width:1099px){.play-room{--board-surround:184px}.match-layout{grid-template-columns:minmax(0,1fr)}.match-panel .match-move-list td button{min-height:44px}.play-layout .view-play{padding-bottom:env(safe-area-inset-bottom)}}@media (max-height:650px){.match-panel-heading{padding-top:10px;padding-bottom:10px}.match-empty p,.match-empty>div{display:none}.match-panel-footer{padding-top:8px;padding-bottom:8px}.match-panel>.match-status{max-height:56px;margin-bottom:8px}}@media (max-width:767px){.play-layout .topbar{position:static;height:calc(52px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0}.play-layout .content{padding:8px 12px}.play-layout .view-play{padding-bottom:calc(64px + env(safe-area-inset-bottom))}.play-layout .mobile-nav{padding-top:3px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}.match-player{gap:7px}.match-player-name{gap:5px;font-size:12px}.match-player-badge{font-size:9px}.match-clock{padding:6px}.match-clock svg{width:20px}.match-status{font-size:11px}}@container (max-width: 340px){.match-clock,.match-player-badge,.match-result-banner>svg,.quick-game-menu svg{display:none}.match-quick-actions{grid-template-columns:40px 40px 1fr 1fr}.match-quick-actions button{font-size:10px}}@media (max-width:1099px) and (min-width:560px) and (max-height:500px){.play-layout .topbar{height:calc(40px + env(safe-area-inset-top))}.play-layout .content{padding-top:4px;padding-bottom:4px}.match-board-stack{flex-direction:row;gap:16px;width:min(100%,max(356px,calc(100cqh - 64px + 196px)))}.match-position{flex:1}.match-player{height:28px}.match-avatar{width:28px;height:28px}.match-avatar svg{width:20px;height:20px}.match-player-info{display:flex;align-items:center;gap:6px}.match-player-meta{margin:0}.match-captures{display:none}.match-board-tools{flex:0 0 180px}.match-status{height:60px}.match-result-banner{height:auto;min-height:60px;flex-wrap:wrap;gap:4px 8px}.match-result-summary{flex-basis:calc(100% - 30px)}.match-result-link{margin-left:29px}.match-quick-actions{height:auto;grid-template-columns:1fr 1fr}.match-quick-actions button{min-height:44px}.match-clock,.match-player-badge,.quick-game-menu svg{display:none}}@media (max-width:767px) and (min-width:560px) and (max-height:500px){.play-layout .view-play{padding-bottom:calc(46px + env(safe-area-inset-bottom))}.play-layout .mobile-nav{padding-top:2px;padding-bottom:calc(3px + env(safe-area-inset-bottom))}.play-layout .mobile-nav button{min-height:40px;flex-direction:row}.play-layout .mobile-nav-icon{width:26px}}@media (max-width:559px) and (max-height:480px),(min-width:1100px) and (max-height:480px){.play-layout .view-play{height:auto;min-height:100dvh}.play-layout .content{flex:none}.match-layout{flex:none}.match-board-column,.match-layout{min-height:432px}}.play-room{--board-surround:78px}.match-board-stack>.match-status{height:auto;min-height:70px;overflow:visible;padding:10px 12px;border-radius:8px}.match-phase{display:block;font-size:9px;font-weight:700;letter-spacing:.1em;color:var(--primary)}.match-status-text strong{display:block;font-size:16px;line-height:1.5}.match-lobby{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);align-items:center;gap:clamp(24px,4vw,64px);max-width:1080px;width:100%;margin:auto;padding:24px;overflow-y:auto}.match-lobby-preview{width:100%;max-width:520px;margin:auto}.match-lobby-card{display:flex;flex-direction:column;gap:20px;min-width:0}.match-lobby-card h2{font-family:var(--font-heading);font-size:clamp(30px,3vw,44px);line-height:1.12}.match-lobby-card>p{font-size:14px;line-height:1.65;color:var(--muted-foreground)}.match-lobby-summary{display:flex;gap:12px;align-items:center;padding:16px;border-radius:10px;background:var(--secondary);font-size:14px;line-height:1.6}.match-lobby-summary svg{flex-shrink:0;color:var(--primary)}.match-start-choices{display:grid;gap:18px;min-width:0}.match-start-choices label,.match-start-choices legend{font-size:12px;font-weight:700}.match-start-choices legend{margin-bottom:8px}.match-start-choices select{display:block;width:100%;min-height:48px;margin-top:8px;padding:10px;border:1px solid var(--input);border-radius:6px;background:var(--card);color:var(--foreground);font-size:14px}.match-start-choices .color-choices button{min-height:60px;font-size:14px;font-weight:700}.match-lobby-card .match-new-game{min-height:48px}.match-lobby-card .match-start-help{padding:12px 14px;border-left:3px solid var(--primary);background:var(--secondary);color:var(--foreground);font-size:12px}@media (max-width:1099px){.play-room{--board-surround:218px}.match-lobby{grid-template-columns:minmax(0,1fr);max-width:520px;padding:20px 12px}.match-lobby-preview{display:none}}@media (max-width:1099px) and (min-width:560px) and (max-height:500px){.match-board-stack{display:grid;grid-template-columns:minmax(192px,1fr) 180px;grid-template-rows:auto 1fr;gap:8px 16px;width:min(100%,max(388px,calc(100cqh - 64px + 196px)))}.match-position{grid-column:1;grid-row:1/3}.match-board-stack>.match-result-banner,.match-board-stack>.match-status{grid-column:2;grid-row:1}.match-board-tools{grid-column:2;grid-row:2}}.match-confirm-dialog{max-height:calc(100dvh - 24px);overflow-y:auto}.match-confirm-dialog .match-start-choices button:focus-visible,.match-confirm-dialog select:focus-visible{outline:3px solid var(--primary);outline-offset:2px}.app-main:has(.board-workspace){display:flex;flex-direction:column;height:100dvh;padding-top:0}.app-main:has(.board-workspace)>.topbar{height:48px;flex-shrink:0;padding:0 24px}.content:has(>.board-workspace){display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:1440px;padding:12px 24px;margin:0 auto}.content:has(>.board-workspace)>.footer-note{display:none}.content:has(>.board-workspace)>.try-box{flex-shrink:0;max-height:64px;overflow:auto;margin:0 0 8px}.board-workspace{--practice-panel:320px;--practice-gap:24px;flex:1;min-height:0;min-width:0;container-type:size;animation:none}.board-workspace-layout{height:100%;display:grid;grid-template-columns:minmax(0,min(calc(100cqw - var(--practice-panel) - var(--practice-gap)),calc(100cqh - 36px))) var(--practice-panel);justify-content:center;gap:var(--practice-gap)}.board-workspace-stage{display:flex;flex-direction:column;gap:4px;min-width:0;container-type:inline-size}.board-workspace-heading{display:flex;align-items:center;gap:8px;height:32px;flex-shrink:0}.board-workspace-heading h1{font-family:inherit;font-size:14px;font-weight:700;line-height:1.4;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.board-workspace-badge{margin-left:auto;display:flex;gap:10px;align-items:center;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums;color:var(--primary)}.board-workspace-badge strong{font-size:17px}.board-workspace .board-shell{width:100%;border:0;flex-shrink:0}.board-workspace-tools{display:flex;flex-direction:column;gap:4px;min-width:0}.board-workspace-status{flex-shrink:0;height:44px;overflow:auto;overscroll-behavior:contain;padding:6px 10px;border:1px solid var(--border);border-radius:5px;font-size:12px;line-height:1.4;background:var(--secondary)}.board-workspace-panel-content:focus-visible,.board-workspace-status:focus-visible{outline-offset:-3px}.board-workspace-status b{color:var(--primary)}.board-workspace-actions,.board-workspace-quick-actions{display:flex;gap:6px;min-width:0}.board-workspace-actions,.board-workspace-actions>button{flex:1}.board-workspace-quick-actions button{height:44px;min-height:44px;min-width:0;padding:6px 10px;font-size:12px;gap:5px}.board-workspace-quick-actions button svg{flex-shrink:0}.board-details-button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.board-workspace-panel{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--card);border:1px solid var(--border);border-radius:8px;overflow:hidden}.board-workspace-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border);flex-shrink:0;min-height:60px}.board-workspace-panel-heading h2{font-size:19px}.board-workspace-panel-heading button{min-height:44px;flex-shrink:0;font-size:12px}.board-workspace-panel>.board-workspace-status{margin:12px 12px 0;height:auto;max-height:100px;min-height:44px}.board-workspace-panel-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:var(--input) var(--card);padding:16px 12px}.board-workspace-panel-content>*+*{margin-top:16px}.board-workspace-panel-footer{border-top:1px solid var(--border);padding:12px;flex-shrink:0}.board-workspace-panel-footer button{min-width:0;min-height:44px;padding:8px 12px;font-size:12px}.secondary-btn.puzzle-hint-button{background:var(--card);color:var(--primary);border-color:var(--primary)}.board-workspace-panel-footer .puzzle-hint-button{font-size:14px}.secondary-btn.puzzle-hint-button:disabled{opacity:1;background:var(--muted);color:var(--muted-foreground);border-color:var(--border)}.board-workspace-panel .lesson-heading-meta{align-items:center;gap:8px}.board-workspace-panel .lesson-heading-meta .eyebrow{font-size:10px}.board-workspace-panel .lesson-heading-progress{font-size:11px;flex-wrap:wrap}.board-workspace-panel .lesson-explainer,.board-workspace-panel .lesson-quiz{margin:0}.board-workspace-panel .journey-grid{grid-template-columns:1fr 1fr;gap:8px}.board-workspace-panel .journey-card{padding:12px}.board-workspace-panel .journey-card h3{font-size:13px}.board-workspace-panel .lesson-card{border:0;box-shadow:none}.board-workspace-panel .card-top{padding:0 0 12px}.board-workspace-panel .card-body{padding:12px 0 0}.board-workspace-panel .board-tools{flex-wrap:wrap}.board-workspace-panel[hidden],.board-workspace-stage[hidden]{display:none}@container (max-width: 300px){.board-workspace-quick-actions button{padding:4px 6px;font-size:11px;gap:3px}.board-workspace-quick-actions .board-workspace-actions svg{display:none}}@media (max-width:1280px){.content:has(>.board-workspace){padding-left:16px;padding-right:16px}.board-workspace{--practice-panel:280px;--practice-gap:16px}}@media (min-width:1100px){.view-puzzles .content:has(>.board-workspace){max-width:none;margin-inline:0;padding-inline:16px}.view-puzzles .board-workspace-layout{grid-template-columns:minmax(0,1fr) var(--practice-panel)}.view-puzzles .board-workspace-stage{width:min(100%,calc(100cqh - 36px));justify-self:center}}@media (max-width:1099px){.board-workspace-layout{display:flex;justify-content:center}.board-workspace-stage{width:min(100%,max(192px,calc(100cqh - 132px)))}.board-workspace-panel{width:100%;max-width:640px}.board-workspace-panel-heading h2{font-size:17px}.app-main:has(.board-workspace){padding-bottom:env(safe-area-inset-bottom)}}@media (max-width:767px){.app-main:has(.board-workspace)>.topbar{position:static;height:calc(52px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0}.content:has(>.board-workspace){padding:8px 12px}.app-main:has(.board-workspace){padding-bottom:calc(64px + env(safe-area-inset-bottom))}[data-slot=sidebar-wrapper]:has(.board-workspace) .mobile-nav{padding-top:3px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}.board-workspace-heading h1{font-size:13px}}@media (max-width:1099px) and (min-width:560px) and (max-height:500px){.app-main:has(.board-workspace)>.topbar{height:calc(40px + env(safe-area-inset-top))}.content:has(>.board-workspace){padding-top:4px;padding-bottom:4px}.board-workspace-stage{width:min(100%,calc(100cqh - 36px + 196px));display:grid;grid-template-columns:minmax(0,1fr) 180px;grid-template-rows:32px minmax(0,1fr);column-gap:16px;align-content:start;align-items:start}.board-workspace-heading{grid-column:1/-1}.board-workspace-tools{grid-column:2;grid-row:2}.board-workspace-quick-actions{flex-direction:column}.board-workspace-status{height:64px}}@media (max-width:767px) and (min-width:560px) and (max-height:500px){.app-main:has(.board-workspace){padding-bottom:calc(46px + env(safe-area-inset-bottom))}[data-slot=sidebar-wrapper]:has(.board-workspace) .mobile-nav{padding-top:2px;padding-bottom:calc(3px + env(safe-area-inset-bottom))}[data-slot=sidebar-wrapper]:has(.board-workspace) .mobile-nav button{min-height:40px;flex-direction:row}[data-slot=sidebar-wrapper]:has(.board-workspace) .mobile-nav-icon{width:26px}}@media (max-width:559px) and (max-height:480px),(min-width:1100px) and (max-height:480px){.app-main:has(.board-workspace){height:auto;min-height:100dvh}.content:has(>.board-workspace){flex:none}.board-workspace{flex:none;height:432px}}.course-library{max-width:1160px;margin:0 auto}.course-hero{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:48px;align-items:center;padding:8px 0 36px;border-bottom:1px solid var(--border)}.course-intro h1{font-family:var(--font-heading);font-size:40px;font-weight:400;line-height:1.12;letter-spacing:-1.1px;margin:16px 0}.course-intro h1 em{font-weight:400;color:var(--primary)}.course-intro>p{max-width:48ch;font-size:14px;color:var(--muted-foreground);line-height:1.8}.course-benefits{display:flex;flex-wrap:wrap;gap:18px;margin-top:22px}.course-benefits span{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--primary)}.course-continue{background:var(--primary);color:var(--primary-foreground);padding:24px;border-radius:10px}.course-continue-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:9px;letter-spacing:.9px;font-weight:700}.course-continue h2{font-family:var(--font-heading);font-size:26px;line-height:1.25;font-weight:400;margin:20px 0 10px;color:inherit}.course-continue p{font-size:12px;line-height:1.7;color:inherit}.course-continue>button{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:46px;padding:10px 14px;border-radius:6px;background:var(--card);color:var(--primary);font-size:13px;font-weight:700;margin-top:22px}.course-continue>button:focus-visible{outline-color:var(--primary-foreground)}.course-total{display:flex;justify-content:space-between;font-size:11px;margin:20px 0 8px}.course-continue [data-slot=progress]{background:var(--primary-hover);height:4px}.course-continue [data-slot=progress-indicator]{background:var(--primary-foreground)}.course-browser{display:grid;grid-template-columns:204px minmax(0,1fr);gap:40px;padding-top:30px}.course-level-label{font-size:10px;color:var(--muted-foreground);font-weight:700;letter-spacing:1px;margin-bottom:14px}.course-level-nav{display:flex;flex-direction:column;gap:8px}.course-level-button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;min-height:78px;padding:12px;border:1px solid transparent;border-radius:8px}.course-level-button[aria-pressed=true]{background:var(--card);border-color:var(--border);box-shadow:inset 3px 0 var(--primary)}.course-level-number{color:var(--primary);font-family:var(--font-heading);font-size:22px;min-width:28px}.course-level-name{display:flex;flex-direction:column;gap:4px}.course-level-name b{font-size:13px}.course-level-name small{font-size:11px;color:var(--muted-foreground)}.course-level-arrow{margin-left:auto;color:var(--primary)}.course-level-button:not([aria-pressed=true]) .course-level-arrow{visibility:hidden}.course-practice-note{margin-top:32px;padding:20px 12px 0;border-top:1px solid var(--border)}.course-practice-note>svg{color:var(--primary)}.course-practice-note h3{font-size:15px;margin-top:10px}.course-practice-note p{color:var(--muted-foreground);font-size:12px;line-height:1.8;margin:8px 0}.course-practice-note button{font-size:12px}.course-lessons{min-width:0}.course-overview{padding:24px;border:1px solid var(--border);border-radius:10px;background:var(--card)}.course-overview-kicker{display:flex;align-items:center;justify-content:space-between;gap:12px}.course-overview-kicker>span:last-child{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted-foreground)}.course-overview h2{font-family:var(--font-heading);font-weight:400;font-size:28px;line-height:1.25;margin:18px 0 10px}.course-overview>p{font-size:13px;color:var(--muted-foreground);line-height:1.8;max-width:65ch}.course-overview-meta{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:12px 0}.course-overview-meta span{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted-foreground)}.course-overview-meta button{font-size:12px;margin-left:auto}.course-overview [data-slot=progress]{height:4px}.course-skills{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:16px;font-size:11px;color:var(--muted-foreground)}.course-chapter{margin-top:28px}.course-chapter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.course-chapter-heading>div>span{color:var(--muted-foreground);font-size:9px;font-weight:700;letter-spacing:1px}.course-chapter-heading h3{margin-top:4px;font-size:16px}.course-chapter-heading>span{font-size:12px;color:var(--muted-foreground)}.course-lesson-list{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--card)}.course-lesson{display:flex;align-items:center;gap:14px;padding:16px;min-height:78px;width:100%;text-align:left}.course-lesson+.course-lesson{border-top:1px solid var(--border)}.course-lesson.is-next{background:var(--secondary)}.course-lesson:focus-visible{outline-offset:-3px}.course-lesson-state{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;color:var(--muted-foreground)}.course-lesson-state.is-complete{color:var(--primary);background:var(--secondary);border-radius:50%}.course-lesson-copy{display:flex;flex-direction:column;min-width:0;gap:4px;flex:1}.course-lesson-copy b{font-size:13px;line-height:1.4}.course-lesson-copy small{font-size:11px;color:var(--muted-foreground)}.course-lesson-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0;font-size:10px;color:var(--muted-foreground)}.course-lesson-meta small{font-size:10px}.course-lesson>svg{color:var(--primary)}.course-footnote{display:flex;align-items:flex-start;gap:8px;font-size:11px;color:var(--muted-foreground);line-height:1.8;margin-top:24px}.course-footnote>svg{margin-top:2px}@media (hover:hover) and (pointer:fine){.course-continue>button:hover,.course-lesson:hover,.course-level-button:hover{background:var(--secondary)}}@media (max-width:1200px){.course-hero{grid-template-columns:minmax(0,1fr) 280px;gap:24px}.course-browser{grid-template-columns:180px minmax(0,1fr);gap:24px}.course-intro h1{font-size:34px}.course-level-button{padding:10px;gap:6px}}@media (max-width:1000px){.course-hero{grid-template-columns:1fr}.course-continue{max-width:none}.course-browser{grid-template-columns:1fr}.course-level-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.course-level-button{flex-direction:column;align-items:flex-start}.course-level-arrow,.course-practice-note{display:none}}@media (max-width:767px){.course-hero{padding-top:4px;padding-bottom:24px;gap:24px}.course-intro h1{font-size:34px}.course-intro>p{font-size:13px}.course-continue{padding:20px}.course-browser{padding-top:22px;gap:22px}.course-level-nav{gap:6px}.course-level-button{padding:10px 8px}.course-level-name b{font-size:12px}.course-level-name small{font-size:10px}.course-overview{padding:18px 14px}.course-overview h2{font-size:25px}.course-overview-kicker{flex-wrap:wrap}.course-overview-meta{gap:6px 14px}.course-overview-meta button{margin-left:0;flex-basis:100%}.course-lesson{padding:14px 10px;gap:8px}.course-lesson-copy b{font-size:12px}.course-lesson-copy small{display:none}.course-lesson-state{width:25px}.course-lesson>svg{display:none}}.account-page{min-height:100svh;display:grid;grid-template-columns:minmax(320px,.95fr) minmax(420px,1.05fr);background:var(--background);color:var(--foreground)}.account-story{background:var(--primary);color:var(--primary-foreground);padding:clamp(32px,5vw,80px);display:flex;flex-direction:column;justify-content:space-between;gap:64px}.account-brand{display:inline-flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font:700 27px Georgia,serif}.account-brand>span{font-size:42px;line-height:1}.account-story .eyebrow{color:inherit;opacity:.85}.account-story-copy h2{color:inherit;font:400 clamp(46px,5vw,76px)/1.08 Georgia,serif;letter-spacing:-.04em;margin:24px 0}.account-story-copy>p:last-child{font-size:17px;line-height:1.8}.account-story-foot{font-size:13px}.account-form-side{display:grid;align-items:center;padding:40px clamp(28px,6vw,88px)}.account-form-wrap{width:100%;max-width:420px;margin:auto}.account-mobile-brand{display:none}.account-form-wrap h1{font:400 36px/1.15 Georgia,serif;letter-spacing:-.035em;margin:14px 0}.account-intro{color:var(--muted-foreground);font-size:15px;line-height:1.7;margin-bottom:30px}.account-fields{border:0;padding:0;min-width:0;display:grid;gap:20px}.account-fields>label{display:grid;gap:8px;font-size:13px;font-weight:650}.account-fields input{width:100%;min-width:0;min-height:50px;border:1px solid var(--border);border-radius:6px;background:var(--card);color:var(--foreground);padding:12px 14px;font:inherit;font-size:16px;font-weight:400}.account-fields input:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.account-fields small{color:var(--muted-foreground);font-size:12px;font-weight:400;line-height:1.6}.account-password{display:flex;position:relative}.account-password input{padding-right:52px}.account-password button{position:absolute;right:3px;top:3px;width:44px;height:44px;display:grid;place-items:center;background:transparent;border:0;color:var(--foreground);border-radius:4px;cursor:pointer}.account-submit{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:12px 18px;background:var(--primary);color:var(--primary-foreground);border:0;border-radius:6px;font-size:15px;font-weight:700;cursor:pointer}.account-fields:disabled,.account-switch button:disabled{opacity:.6}.account-error{border-left:3px solid var(--destructive);padding:10px 12px;background:var(--card);color:var(--foreground);font-size:13px;line-height:1.6;overflow-wrap:anywhere}.account-error p{margin:0}.account-connection{font-size:13px;padding:10px 0}.account-switch{text-align:center;font-size:13px;margin:24px 0;line-height:1.7}.account-switch button{border:0;color:var(--primary);background:none;font:inherit;font-weight:750;text-decoration:underline;text-underline-offset:4px;padding:6px;cursor:pointer}.account-reassurance{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:var(--muted-foreground);padding-top:20px;border-top:1px solid var(--border)}.account-details{display:grid;gap:5px;overflow-wrap:anywhere}.account-details p{margin:0;color:var(--muted-foreground);font-size:13px}.account-logout{width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--border);color:var(--foreground);background:var(--card);border-radius:6px;cursor:pointer;font-weight:650}@media (max-width:760px){.account-page{display:block}.account-story{display:none}.account-form-side{padding:28px 24px 36px;min-height:100svh}.account-mobile-brand{display:block;font:700 24px Georgia,serif;margin-bottom:36px}.account-form-wrap h1,.account-mobile-brand span{font-size:32px}}@media (max-height:700px){.account-form-side{align-items:start}}