/* Shared desktop features retain mobile cards and the board-first mobile layout. */
.filter-label{display:grid;gap:5px;font-size:11px;color:var(--muted)}
.filter-label input,.filter-label select{font-size:13px}
.history-table{display:block}.history-cards{display:none}
.history-filters{margin:18px 0;align-items:end}.history-filters select{min-width:150px}
.history-meta{font-size:12px}.history-table td{vertical-align:top}.history-table td small{display:block;color:var(--muted);margin-top:3px}.history-table .row-actions{display:flex;gap:12px;flex-wrap:wrap}.history-table .text-button{white-space:nowrap}
.result-tag{display:inline-block;padding:3px 8px;border-radius:4px;font-size:12px;background:#d5ff5f12;color:var(--lime)}.result-tag.missed{color:#ffb4ab;background:#ffb4ab12}
.rating-change{white-space:nowrap;font-variant-numeric:tabular-nums}.rating-explanation{font-size:12px;max-width:800px}
.theme-description{display:block;white-space:normal;max-width:420px;font-size:12px;color:var(--muted);margin-top:6px}.theme-description summary{font-size:12px;padding:3px 0;min-height:24px;color:var(--lime)}.theme-description p{margin:4px 0 8px}
.theme-dialog,.leave-dialog{width:min(540px,calc(100% - 28px));max-height:90dvh;overflow:auto;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:26px}.theme-dialog::backdrop,.leave-dialog::backdrop{background:#000b}.theme-dialog h2,.leave-dialog h2{font-size:25px}.theme-dialog .actions,.leave-dialog .actions{gap:12px}
.game .desktop-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.game .desktop-toolbar #clock{margin-left:auto;font-variant-numeric:tabular-nums}.game .next-mode-status{font-size:12px;color:var(--muted)}.game .workspace-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:12px}.game .board-size-label{display:flex;gap:8px;font-size:12px;align-items:center;color:var(--muted)}.game input[type=range]{accent-color:var(--lime);width:125px}.game .shortcuts p{font-size:12px}.game kbd{border:1px solid var(--line);padding:2px 5px;border-radius:3px;color:var(--ink)}
.game.focus-view{max-width:1500px}.game.focus-view .layout{grid-template-columns:minmax(0,1fr) 300px!important}body:has(.game.focus-view)>header,body:has(.game.focus-view)>footer{display:none}.game.focus-view #board{max-width:min(100%,var(--board-size,700px),calc(100dvh - 155px))!important}
.review-dialog .review-attempt{border-left:2px solid #ffb4ab;padding-left:12px}.review-dialog .review-attempt button{min-height:36px}.review-dialog .review-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}.review-dialog .review-actions a{font-size:12px;color:var(--muted)}.review-dialog .review-error{color:#ffb4ab}.review-dialog .review-sq-attempt{box-shadow:inset 0 0 0 4px #d94040!important}
.pager{display:flex;gap:16px;align-items:center;justify-content:flex-end;margin-top:18px}.pager span{color:var(--muted);font-size:13px}
@media(min-width:761px){
 header nav{gap:22px}header{padding-block:20px}header .brand{white-space:nowrap}.goal-label{min-width:85px}main{padding-top:28px}
 .home-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:38px;align-items:start;margin-bottom:24px}.home-top .home-resume{margin:0;max-width:none}.home-top .focus-section .section-head{margin-bottom:12px}.home-top .focus-section .result-cards{grid-template-columns:1fr;gap:8px}.home-top .focus-section .result-card{display:grid;grid-template-columns:1fr auto;gap:0 15px;padding:14px 16px}.home-top .focus-section .result-card-head{grid-column:1}.home-top .focus-section .result-card p{margin:4px 0;font-size:12px}.home-top .focus-section .result-card button{grid-column:2;grid-row:1/3;width:auto;margin:0;font-size:12px;padding:8px 12px}.home-top h1{font-size:42px}.home-top .session-choice{margin:12px 0 0 14px}.home-top .assessment-mini{margin-top:18px}.home-metrics{margin-bottom:22px}.home-metrics .metric{padding:16px 22px}.home-metrics .metric strong{font-size:28px;margin:2px 0}
 .progress-page h1,.activity-page h1,.library-page h1{font-size:36px;margin:6px 0 10px}.progress-page .section-head{margin-bottom:14px}.progress-page .metrics{margin-bottom:14px}.progress-page .metric{padding:12px 16px}.progress-page .metric strong{font-size:25px;margin:2px 0}.progress-page .training-plan{padding:4px 16px;margin-bottom:16px}.progress-page .training-plan>summary{min-height:40px}.progress-page .score-heading p{margin:3px 0}.progress-page #score-table{padding:0;overflow:visible}.progress-page #score-table th{position:sticky;top:0;background:var(--panel);z-index:2}.progress-page #score-table td,.progress-page #score-table th{padding:11px 14px}.progress-page .score-heading{align-items:end}
 .game .puzzle-session-head{margin-bottom:10px}.game .session-count{margin-left:0}.game .desktop-toolbar{display:grid;grid-template-columns:1fr auto auto auto;gap:22px;flex:1}.game .overall-progress{display:none}.game #board{width:100%;max-width:min(100%,var(--board-size,700px),calc(100dvh - 205px))!important}.game .layout{gap:32px!important}.game .workspace-controls{border-top:1px solid var(--line);padding-top:10px}.game .status{min-height:42px}.game .puzzle-control-panel{padding:20px}.game .help-actions{margin-top:12px}.game .help-actions .secondary{font-size:13px}.game .puzzle-control-panel .training-options{margin-top:10px}.game .puzzle-control-panel .shortcuts{border-top:1px solid var(--line);margin-top:10px}.game .next-mode-status{display:block;margin-top:8px}
}
@media(min-width:761px) and (max-width:1100px){header{gap:16px}header nav{gap:15px}.goal-label{display:none}.home-top{gap:24px}.home-top .focus-section .result-card{display:block}.home-top .focus-section .result-card button{width:100%;margin-top:6px}.library-filters{gap:8px}.game .desktop-toolbar{gap:12px;font-size:11px}}
@media(min-width:761px) and (max-width:950px){header .brand{font-size:18px}header .brand-mark{font-size:34px}header nav{gap:12px}header nav button,header nav .admin-link{font-size:12px}header nav .admin-link{padding-inline:0}.game .layout{grid-template-columns:minmax(0,1fr) 280px!important}.game .puzzle-control-panel{padding:16px}.home-top{grid-template-columns:1fr 1fr}.home-top .session-choice{display:flex;margin-left:0}.progress-page .score-heading{align-items:start;flex-direction:column}}
@media(max-width:760px){.home-top{display:block}.focus-section{margin-bottom:22px}.history-table{display:none}.history-cards{display:block}.history-filters{display:grid;grid-template-columns:1fr 1fr}.history-filters .filter-label:last-child{grid-column:1/-1}.filter-label select{width:100%;min-width:0}.game .desktop-toolbar{display:contents}.game .desktop-toolbar #overall-toolbar,.game .desktop-toolbar #toolbar-clock{display:none}.game .desktop-toolbar .session-count{margin-left:auto}.game .workspace-controls{display:none}.game .shortcuts{display:none}.game .next-mode-status{margin-top:8px}.pager{justify-content:space-between;gap:8px}.pager .secondary{padding:9px}.review-dialog .review-actions>*{width:100%}.review-dialog #review-board{max-width:min(100%,calc(100dvh - 370px))}.review-dialog .review-attempt{font-size:12px}}
