body.practice-openings-page{--panel-cream:var(--mobile-header-cream,rgba(255,253,250,.96))}
.practice-loading{width:min(100%,500px);margin:18px auto 28px}.practice-loading-board{padding:12px;border:1px solid var(--line-hi,#dfcdbb);border-radius:14px;background:var(--panel-cream,#fffaf3);box-shadow:var(--panel-shadow,0 5px 0 #d5c2ab)}.practice-loading-label{display:flex;align-items:center;gap:12px;min-height:36px;margin-bottom:10px;color:var(--ink);font:700 14px/1.4 var(--sans)}.practice-loading-label>span{display:flex;align-items:center;margin:auto}.practice-loading-label>small{font-size:11px;font-weight:600;color:var(--muted)}.practice-loading-back{display:grid;place-items:center;flex:0 0 36px;min-height:36px;border:1px solid var(--line);border-radius:9px;background:var(--sheet);color:inherit}.practice-loading-back:focus-visible{outline:2px solid var(--brand-dark);outline-offset:2px}.practice-loading-surface{position:relative;overflow:hidden;border-radius:10px}.practice-loading-sample{width:100%;aspect-ratio:1;pointer-events:none}.practice-loading .puzzle-preview-loader h1{margin:0;font:inherit}@media(max-width:720px){.practice-loading{margin:12px auto 24px}.practice-loading-board{padding:8px}.practice-loading-label{font-size:12px}}
@media(max-width:1023px){body.view-puzzles .home-hub-tabs-wrap.practice-run-navigation.home-hub-tabs-wrap:not([hidden]){display:none!important}}
body.view-puzzles.is-practice-run[data-practice-mode="openings"] :is(#copy-report-link,#board-share-actions,.report-dna-share-actions){display:none!important}
body.view-puzzles[data-practice-mode="openings"] .board-label #practice-run-caption{font-family:var(--sans,sans-serif);font-weight:700;letter-spacing:0;text-transform:none}
body.view-puzzles[data-practice-mode="comeback"] .board-label #practice-run-caption{font-family:var(--sans,sans-serif);font-weight:700;letter-spacing:0;text-transform:none}
body.view-puzzles.is-practice-run[data-practice-mode="openings"]{padding-bottom:16px}
body.view-puzzles.is-practice-run[data-practice-mode="openings"].has-puzzle-sticky-actions{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
body[data-practice-mode="openings"] .board-column{padding-bottom:0}
body[data-practice-mode="openings"] .analysis-layout{padding-bottom:16px}
body.view-puzzles[data-practice-mode="openings"] .board-label{min-height:58px}
body.view-puzzles[data-practice-mode="openings"] .board-label #practice-run-caption{display:flex;flex-direction:column;align-items:center;gap:4px;top:50%;transform:translate(-50%,-50%)}
body.view-puzzles.is-practice-run[data-practice-mode="openings"]:not(.practice-restored-result) #puzzle-solve-timer{visibility:visible;font-size:14px}
body.view-puzzles[data-practice-mode="openings"] #puzzle-solve-timer::before{width:18px;height:18px;flex-basis:18px}
body.view-puzzles.is-practice-run[data-practice-mode="openings"] #board-next-tactic:not([hidden]){display:inline-flex!important}
.puzzle-practice-links{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:14px 0 0;min-width:0}
.puzzle-practice-links a{display:flex;align-items:center;gap:8px;min-height:54px;padding:8px 12px;background:var(--panel-cream,#fffaf3);border:1px solid #dfcdbb;border-radius:13px;box-shadow:var(--panel-shadow,0 4px 0 #d5c2ab);color:var(--ink,#28231f);font:700 13px var(--sans,sans-serif);text-decoration:none;min-width:0}
.puzzle-practice-links img{width:36px;height:36px;object-fit:contain;flex-shrink:0}.puzzle-practice-links b{margin-left:auto;font-size:22px}.practice-detective-icon{font-size:38px;line-height:1;color:#d76b45;font-family:Georgia,serif;flex-shrink:0}
.practice-opening-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,460px);gap:24px;align-items:center;margin:18px 0 26px}.practice-opening-heading h1{font-size:clamp(26px,3.2vw,42px);line-height:1.12;letter-spacing:-.045em;margin:8px 0 12px}.practice-opening-heading header>p{font-size:16px;line-height:1.6;margin:0}
.practice-back{display:inline-flex;align-items:center;min-height:36px;color:#82462d;font:600 13px var(--sans,sans-serif);text-decoration:none}.practice-back:hover{text-decoration:underline}
.practice-opening-focus #daily-plan{display:block;margin:0;padding:0;max-width:100%;width:100%}.practice-opening-focus .daily-plan-guide{display:grid;grid-template-columns:116px minmax(0,1fr);gap:10px;align-items:center;max-width:100%;margin:0}.practice-opening-focus .daily-plan-fox-orbit{width:116px;height:150px;margin:0}.practice-opening-focus .daily-plan-fox{width:116px;height:132px;object-fit:contain}.practice-opening-focus .daily-plan-bubble{display:none}.practice-opening-focus .daily-plan-focus{min-width:0;margin:0}.practice-opening-focus .daily-plan-session{min-width:0}.practice-opening-focus .daily-plan-session-options{width:100%;min-width:0}.practice-opening-focus .daily-plan-focus strong{font-size:17px}
.practice-collection-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.practice-collection-tabs{display:flex;padding:5px;gap:4px;background:var(--panel-cream,#fffaf3);border:1px solid #dfcdbb;border-radius:13px;box-shadow:0 4px 0 #d5c2ab}.practice-collection-tabs button{min-height:44px;border:0;background:transparent;border-radius:9px;padding:10px 20px;font:700 14px var(--sans,sans-serif);color:var(--ink,#28231f);cursor:pointer}.practice-collection-tabs button[aria-selected=true]{background:#ea765f;color:#281d18;box-shadow:inset 0 1px #ffd5c3,0 2px #b95440}
.practice-side-label{margin:0;min-width:155px}.practice-collection-tools form{display:flex;gap:8px;flex:1 1 100%;min-width:0}.practice-collection-tools form label{flex:1;margin:0;min-width:0}.practice-collection-status{font-size:13px;line-height:1.55;margin:16px 0;color:#67584b}.practice-error{color:#9c3026!important}.practice-opening-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.practice-opening-card{grid-template-columns:90px minmax(0,1fr);gap:12px;align-content:start}.practice-opening-card h2{font-size:17px}.practice-opening-card p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.practice-opening-card .practice-opening-start{grid-column:1/-1;width:100%;margin-top:3px}.practice-opening-source{font-size:11px;color:#6c5b4d}.practice-import{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px;margin:24px 0}.practice-import>span{display:flex;align-items:center;gap:12px;font-weight:700}.practice-import img{object-fit:contain}.practice-import>a:last-child{color:#82462d;font-size:13px}.practice-empty{grid-column:1/-1;padding:25px}.practice-empty h2{margin:0 0 12px;font-size:22px}.practice-empty p{line-height:1.65}.practice-empty button,.practice-empty a{margin:8px 10px 0 0}
.practice-panel{padding:22px;margin:0 0 16px;min-width:0}.practice-panel-head{display:flex;align-items:center;gap:14px}.practice-panel-fox{width:105px;height:105px;object-fit:contain;flex-shrink:0}.practice-panel h1{font-size:clamp(21px,2.3vw,29px);line-height:1.16;margin:7px 0;letter-spacing:-.035em}.practice-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:#8e4d35}.practice-panel p{font-size:14px;line-height:1.65;margin:15px 0}.practice-panel .practice-back{margin-top:15px}.practice-two-steps{list-style:none;display:flex;gap:5px;margin:15px 0;padding:4px;border:1px solid #dfcdbb;background:#f8f2e9;border-radius:10px}.practice-two-steps li{flex:1;padding:9px 5px;text-align:center;font-size:12px;font-weight:700;border-radius:7px;color:#6b6259}.practice-two-steps li.is-current{background:#ea765f;color:#2b1d15}.practice-question-actions{display:flex;gap:9px;flex-wrap:wrap}.practice-question-actions button{flex:1;min-width:120px}.practice-selection,.practice-previous{padding:12px;background:#f7eee2;border-radius:9px;font-size:13px;line-height:1.6}.practice-feedback{background:#edf0df;color:#3f552c;border-radius:9px;padding:12px}.practice-feedback.is-incorrect{background:#f9e5dc;color:#843d2b}.practice-comparison{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:17px 0}.practice-comparison div{background:#f7eee2;padding:12px;border-radius:9px}.practice-comparison div:last-child{background:#edf0df}.practice-comparison small{display:block;font-size:11px;margin-bottom:6px}.practice-comparison strong{font-size:14px}
.practice-run-caption{font-size:12px;font-weight:700;position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;color:#82462d}.is-practice-run .board-label{position:relative}.is-practice-run #puzzle-solve-timer,.is-practice-run #board-position-label{visibility:hidden}.is-practice-run #board-next-tactic{display:none!important}.is-practice-run:not([data-practice-mode="openings"]):not(.practice-finished) #board-task{display:none!important}.is-practice-run:not(.practice-finished) #puzzle-desktop-controls{margin-top:0}.is-practice-run .board-square.practice-selected{box-shadow:inset 0 0 0 4px #ea765f!important}.practice-recognition #report-board [data-square]{cursor:crosshair}.practice-recognition #report-board:focus-visible{outline:3px solid #ea765f;outline-offset:3px}.practice-notice,.practice-summary{width:min(640px,calc(100% - 24px));margin:40px auto;padding:28px}.practice-notice h1,.practice-summary h1{font-size:28px;line-height:1.2;margin:10px 0}.practice-notice p,.practice-summary p{line-height:1.7}.practice-notice a{margin:10px 10px 0 0}.practice-summary-list{padding-left:24px;line-height:2}.practice-summary-actions{display:flex;gap:12px;flex-wrap:wrap}.practice-openings-page #practice-more-openings{margin-top:20px}
@media(max-width:1023px){.practice-opening-heading{grid-template-columns:1fr;gap:18px}.practice-opening-focus{max-width:480px}.practice-opening-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.puzzle-practice-links{margin:14px 0 22px}}
@media(max-width:720px){.practice-panel{padding:15px;margin:0 0 14px}.practice-panel-head{gap:10px}.practice-panel-fox{width:72px;height:82px}.practice-panel h1{font-size:22px}.practice-panel p{font-size:13px;margin:11px 0}.practice-two-steps{margin:10px 0}.practice-two-steps li{font-size:11px}.practice-run-caption{font-size:11px}.is-practice-run .analysis-layout{padding-bottom:80px}.is-practice-run .home-hub-tabs-wrap{display:block!important}.practice-openings-page .openings-main{width:calc(100% - 20px);padding-top:9px}.practice-opening-heading{margin:8px 0 18px;gap:14px}.practice-opening-heading h1{font-size:29px}.practice-opening-heading header>p{font-size:14px}.practice-opening-grid{grid-template-columns:1fr;gap:12px}.practice-opening-card{grid-template-columns:82px minmax(0,1fr);padding:13px}.practice-opening-card h2{font-size:17px}.practice-opening-card p{-webkit-line-clamp:2}.practice-opening-focus .daily-plan-guide{grid-template-columns:98px minmax(0,1fr);gap:8px}.practice-opening-focus .daily-plan-fox-orbit{width:98px;height:136px}.practice-opening-focus .daily-plan-fox{width:98px;height:118px}.practice-collection-tools{gap:10px}.practice-collection-tabs{width:100%}.practice-collection-tabs button{flex:1;padding:8px;font-size:13px}.practice-side-label{width:100%}.practice-import{padding:15px}.practice-import>span{font-size:13px}.puzzle-practice-links a{padding:8px;font-size:12px;gap:6px}.puzzle-practice-links img{width:29px;height:29px}.practice-detective-icon{font-size:32px}.practice-import .opening-button{flex:1}.practice-summary{margin-top:20px;padding:20px}}
@media(prefers-reduced-motion:reduce){.practice-panel *{scroll-behavior:auto!important}}
@media(max-width:720px){body[data-practice-mode="comeback"] .practice-panel{margin:12px 0 0}}
.practice-panel,.practice-notice,.practice-summary{background:var(--panel-cream,#fffaf3);border:1px solid #dfcdbb;border-radius:14px;box-shadow:var(--panel-shadow,0 5px 0 #d5c2ab)}
body[data-practice-mode="comeback"] .practice-previous{margin-top:14px}
body.is-practice-run #board-point-gain:not(:has(> :not([hidden]))){display:none!important}
body[data-practice-mode="comeback"].practice-finished .practice-panel{padding:0;margin:0 0 12px;background:none;border:0;border-radius:0;box-shadow:none}
body[data-practice-mode="comeback"].practice-finished .practice-comparison{gap:8px;margin:0}
@media(max-width:720px){body[data-practice-mode="comeback"].practice-finished .practice-panel{margin-top:20px}}
body[data-practice-mode="comeback"].practice-finished .practice-comparison div{padding:10px 12px;line-height:1.35}
body[data-practice-mode="comeback"].practice-finished .practice-comparison small{margin-bottom:3px}
body[data-practice-mode="comeback"].practice-finished .practice-comparison strong{font-size:13px}
@media(min-width:721px){
    body[data-practice-mode="comeback"] .practice-panel{padding:16px}
    body[data-practice-mode="comeback"] .practice-panel-head{gap:16px}
    body[data-practice-mode="comeback"] .practice-panel-fox{width:72px;height:80px}
    body[data-practice-mode="comeback"] .practice-panel h1{font-size:22px;margin:0}
    body[data-practice-mode="comeback"] .practice-previous{padding:10px 12px;line-height:1.5}
}
.practice-panel .opening-button,.practice-notice .opening-button,.practice-summary .opening-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:9px 15px;border:1px solid #d7b79d;border-radius:10px;background:var(--panel-cream,#fffaf3);box-shadow:0 3px 0 #c4a98e;color:#713e29;font:700 13px var(--sans,sans-serif);text-decoration:none;cursor:pointer}
.practice-panel .opening-button.primary,.practice-summary .opening-button.primary{background:#ea765f;border-color:#cd6047;box-shadow:0 3px 0 #ae4936;color:#281d18}.practice-panel button:disabled{opacity:.5;cursor:default}.practice-panel :is(button,a):focus-visible,.puzzle-practice-links a:focus-visible{outline:3px solid #2b67af;outline-offset:3px}
body.view-puzzles.is-practice-run:not([data-practice-mode="openings"]):not(.practice-finished) #board-task.puzzle-task-fox{display:none!important}
.practice-answer-controls .opening-button,.practice-question-actions .opening-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 14px;border:1px solid #d7b79d;border-radius:10px;background:var(--panel-cream,#fffaf3);box-shadow:0 3px 0 #c4a98e;color:#713e29;font:700 13px var(--sans,sans-serif);cursor:pointer}
.practice-answer-controls .opening-button.primary,.practice-question-actions .opening-button.primary{background:#ea765f;border-color:#cd6047;box-shadow:0 3px 0 #ae4936;color:#281d18}.practice-answer-controls button:disabled,.practice-question-actions button:disabled{opacity:.5;cursor:default}
.board-paper>.practice-question-actions{width:100%;margin:10px 0 3px}
.board-paper>.practice-question{width:100%;box-sizing:border-box;margin:10px 0 0;padding:0 6px;color:#50362b;font-size:14px;font-weight:600;line-height:1.5;text-align:center}
.practice-question-actions button:focus-visible{outline:3px solid #2b67af;outline-offset:3px}
.board-paper>.practice-board-feedback{margin:8px 0 0;padding:8px 10px;font-size:12px;line-height:1.45}
.practice-result-error{margin:8px 0 0;font-size:12px;line-height:1.45}
.practice-result-error p{margin:0 0 8px}
.practice-result-error .opening-button{min-height:44px;padding:8px 12px;border:1px solid #d7b79d;border-radius:10px;background:var(--panel-cream,#fffaf3);color:#713e29;font-weight:700;cursor:pointer}
body.is-practice-run:is([data-practice-mode="detective"],[data-practice-mode="comeback"],[data-practice-mode="openings"]).practice-finished #board-next-tactic{display:inline-flex!important;align-items:center;justify-content:center;gap:8px}
body.is-practice-run:is([data-practice-mode="detective"],[data-practice-mode="comeback"],[data-practice-mode="openings"]) #board-tactic-actions.practice-result-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.is-practice-run:is([data-practice-mode="detective"],[data-practice-mode="comeback"],[data-practice-mode="openings"]) #board-tactic-actions.practice-result-actions[hidden]{display:none!important}
body.is-practice-run:is([data-practice-mode="detective"],[data-practice-mode="comeback"],[data-practice-mode="openings"]) #board-tactic-actions.practice-result-actions .button{min-height:50px}
@media(max-width:720px){body.view-puzzles.is-practice-run[data-practice-mode="comeback"].has-puzzle-sticky-actions{padding-bottom:calc(86px + env(safe-area-inset-bottom))}}
@media(max-width:720px){.practice-answer-controls{padding:14px;margin:12px 0 16px;border:1px solid #dfcdbb;border-radius:14px;background:var(--panel-cream,#fffaf3);box-shadow:0 4px 0 #d5c2ab}.practice-answer-controls .practice-selection{margin:0 0 12px;font-size:12px}.practice-answer-controls .practice-feedback{font-size:13px;line-height:1.6}.practice-panel>.practice-back{display:none}.practice-panel .practice-panel-fox{width:66px;height:72px}.practice-panel .practice-two-steps{margin-bottom:5px}.practice-panel .practice-question{margin-bottom:0}}
body.is-practice-run .board-side-cue{display:none!important}
body.view-puzzles.is-practice-run.practice-restored-result #board-task.puzzle-task-fox{display:none!important}
.practice-opening-focus .daily-plan-focus.daily-plan-focus{width:100%;margin:0}
.practice-opening-focus .learning-focus-details{grid-column:1/-1;padding:9px 10px;border:1px solid #dfb180;border-radius:9px;font-size:13px;line-height:1.5}
.practice-opening-focus .learning-focus-details summary{cursor:pointer}
.practice-opening-focus .learning-focus-details p{display:block;margin-top:8px;-webkit-line-clamp:unset}
.practice-opening-focus .daily-plan-session{grid-column:1/-1}

/* Mobile shortcuts follow the board; desktop keeps them with Today's Focus. */
@media(max-width:1023px){
    .puzzle-library-intro>.puzzle-practice-links{grid-column:1/-1;margin-block:0}
    .puzzle-library-intro>.puzzle-practice-links+.today-in-chess{margin-top:0}
}
.practice-link-mobile{display:none}
@media(max-width:1023px){
    .puzzle-practice-links{width:calc(100% - 24px);margin-inline:auto}
}
@media(max-width:760px){
    .puzzle-practice-links{width:calc(100% - 20px)}
    .practice-link-desktop{display:none}
    .practice-link-mobile{display:inline}
}
@media(max-width:340px){
    .puzzle-practice-links{width:calc(100% - 12px)}
}

/* Detective keeps its guidance in the Fox card and its actions below the board. */
.practice-mode-icon{display:inline-block;position:relative;width:15px;height:15px;flex:0 0 15px;margin-right:7px;border:3px solid #e87351;border-radius:50%;vertical-align:-2px;box-shadow:inset 0 1px #fff0da,0 1px #b7553533}
.practice-mode-icon::after{content:"";position:absolute;width:8px;height:3px;right:-7px;bottom:-3px;border-radius:2px;background:#d66642;transform:rotate(45deg)}
.practice-untimed{border-left:1px solid #d9cbbd;padding-left:9px;margin-left:10px;color:#93877a;font-size:11px;font-weight:600;letter-spacing:0;text-transform:none}
body[data-practice-mode="detective"] .practice-run-caption{display:flex;align-items:center;font-size:14px;letter-spacing:0;text-transform:none;color:#50362b}
body.view-puzzles[data-practice-mode="detective"] .board-label #practice-run-caption{font-family:var(--sans,sans-serif);font-weight:700;letter-spacing:0;text-transform:none}
body[data-practice-mode="detective"] .practice-panel{padding:22px}
body[data-practice-mode="detective"] .practice-panel-head{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px 14px;align-items:center}
body[data-practice-mode="detective"] .practice-panel-heading{display:contents}
body[data-practice-mode="detective"] .practice-panel-fox{grid-column:1;grid-row:1/3;width:80px;height:auto;margin-left:-4px}
body[data-practice-mode="detective"] .practice-panel-heading>.practice-kicker{grid-column:2;grid-row:1;align-self:end;display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px;border:1px solid #eddfd1;border-radius:12px;background:#f7eee3;color:#52352b;font-size:12px;letter-spacing:0}
body[data-practice-mode="detective"] .practice-panel h1{grid-column:1/-1;grid-row:3;font-size:28px;margin:5px 0 0}
body[data-practice-mode="detective"] .practice-panel .practice-instruction{grid-column:1/-1;grid-row:4;margin:2px 0 8px;color:#6a5a4e;font-size:14px}
body[data-practice-mode="detective"] .practice-two-steps{grid-column:2;grid-row:2;margin:0;align-self:start;gap:4px;padding:4px;background:#fffaf6;border-radius:18px}
body[data-practice-mode="detective"] .practice-two-steps li{display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 4px;font-size:10px;border-radius:13px}
body[data-practice-mode="detective"] .practice-two-steps li.is-current{background:linear-gradient(#ff9779,#ed745c);box-shadow:inset 0 1px #ffd4bd,0 2px #c05740;color:#fff}
.practice-step-number{display:grid;place-items:center;flex:0 0 21px;width:21px;height:21px;border-radius:50%;background:#d9d0c7;color:#fff;font-weight:800}
.is-current>.practice-step-number{background:#ce573f;box-shadow:inset 0 1px #e79278}
.practice-answer-controls .practice-selection{border:1px solid #e8d8c6;background:linear-gradient(#faf4eb,#f5ecdf);font-weight:600;color:#796657}
.practice-answer-controls button:disabled,.practice-question-actions button:disabled{opacity:1;cursor:default;background:#dfd9d1!important;border-color:#d8cfc3!important;box-shadow:inset 0 1px #f8f3ec,0 3px #c7bbad!important;color:#958b80!important}
.practice-next-step{display:flex;align-items:center;gap:16px;margin:0 0 16px;padding:20px;background:var(--panel-cream,#fffaf3);border:1px solid #dfcdbb;border-radius:14px;box-shadow:var(--panel-shadow,0 5px 0 #d5c2ab)}
.practice-next-step .practice-kicker{font-size:11px;letter-spacing:.025em;color:#67432f}
.practice-next-step p{font-size:15px;line-height:1.5;margin:7px 0 0}
.practice-next-step-icon{position:relative;flex:0 0 33px;height:33px;border:3px solid #e9a57e;border-radius:50%;box-shadow:inset 0 0 0 4px #fffaf3,inset 0 0 0 7px #e78359}
.practice-next-step-icon::after{content:"";position:absolute;left:15px;top:-3px;width:19px;height:4px;border-radius:2px;background:#d86c43;transform:rotate(-45deg);box-shadow:0 1px #b54e30}
body.practice-recognition #report-board .previous-arrow{display:none}
@media(max-width:1023px){
    body.view-puzzles.is-practice-run[data-practice-mode="detective"] .home-hub-tabs-wrap.home-hub-tabs-wrap:not([hidden]){display:none!important}
    body.view-puzzles.is-practice-run[data-practice-mode="detective"]{padding-bottom:16px}
    body.view-puzzles.is-practice-run[data-practice-mode="detective"].has-puzzle-sticky-actions{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
}
@media(max-width:720px){
    body[data-practice-mode="detective"] .board-column{padding-bottom:0}
    body[data-practice-mode="detective"] .analysis-layout{padding-bottom:16px}
    body[data-practice-mode="detective"] .board-label{margin:0 0 6px;min-height:40px;padding:0;position:relative}
    body[data-practice-mode="detective"] .board-label :is(#board-position-label,#puzzle-solve-timer,#copy-report-link){display:none!important}
    body[data-practice-mode="detective"] .board-label .back-link{margin-right:auto}
    body[data-practice-mode="detective"] .board-label .practice-run-caption{font-size:12px;left:50%;top:50%;transform:translate(-50%,-50%)}
    body[data-practice-mode="detective"] .board-label .practice-mode-icon{width:13px;height:13px;flex-basis:13px;border-width:2px;margin-right:6px}
    body[data-practice-mode="detective"] .board-label .practice-untimed{font-size:10px;margin-left:7px;padding-left:7px}
    body[data-practice-mode="detective"] .board-label .board-sound-toggle{margin-left:auto}
    body[data-practice-mode="detective"] .board-label .page-help-button{margin-left:auto;margin-right:6px}
    body[data-practice-mode="detective"] .board-label #puzzle-sound-toggle{margin-left:0}
    body[data-practice-mode="detective"] .practice-panel>.practice-two-steps{margin:0 0 10px}
    body[data-practice-mode="detective"] .practice-panel>.practice-two-steps li{font-size:11px;min-height:33px}
    body[data-practice-mode="detective"] .practice-panel{padding:12px;margin:12px 0 0}
    body[data-practice-mode="detective"] .practice-panel-head{grid-template-columns:40px minmax(0,1fr);gap:4px 9px;align-items:start}
    body[data-practice-mode="detective"] .practice-panel-heading>.practice-kicker{display:none}
    body[data-practice-mode="detective"] .practice-panel-fox{grid-column:1;grid-row:1/3;width:40px;height:auto;margin:0;align-self:start}
    body[data-practice-mode="detective"] .practice-panel h1{grid-column:2;grid-row:1;font-size:19px;line-height:1.15;margin:2px 0 0}
    body[data-practice-mode="detective"] .practice-panel .practice-instruction{grid-column:2;grid-row:2;font-size:12px;line-height:1.45;margin:0}
    body[data-practice-mode="detective"] .board-paper>.practice-question{margin-top:8px;font-size:13px}
    body[data-practice-mode="detective"].practice-finished .practice-panel h1{grid-column:1/-1}
    body[data-practice-mode="detective"] .practice-panel .practice-answer-controls{padding:0;margin:10px 0 0;border:0;border-radius:0;background:none;box-shadow:none}
    body[data-practice-mode="detective"] .practice-question-actions{gap:8px}
    body[data-practice-mode="detective"] .practice-question-actions button{min-width:0;padding:9px 8px;font-size:12px}
    .practice-answer-controls .practice-selection{font-size:13px;padding:11px}
    .practice-next-step{padding:14px;margin:14px 0 16px;gap:13px}
    .practice-next-step p{font-size:13px;margin-top:5px}
    .practice-next-step-icon{flex-basis:29px;height:29px}
}
@media(max-width:360px){
    body[data-practice-mode="detective"] .board-label .practice-run-caption{font-size:11px}
    body[data-practice-mode="detective"] .board-label .practice-untimed{display:none}
    body[data-practice-mode="detective"] .practice-panel-head{gap:4px 7px}
    body[data-practice-mode="detective"] .practice-panel h1{font-size:18px}
}

/* The opening collection uses the larger previews and clear side badges in the mockup. */
.practice-opening-heading{gap:16px;margin:10px 0 20px;padding:16px 20px;background:var(--panel-cream,#fffaf3);border:1px solid #dfcdbb;border-radius:14px;box-shadow:var(--panel-shadow,0 5px 0 #d5c2ab)}
.practice-opening-heading h1{font-size:clamp(24px,2.5vw,30px);line-height:1.15;font-weight:800;letter-spacing:-.035em;margin:0 0 6px}
.practice-opening-heading header>p{font-size:14px;line-height:1.4}
.practice-opening-origin{display:inline-block;margin-top:13px;padding:7px 10px;background:#f6e7d3;border:1px solid #e4c8a4;border-radius:8px;color:#71472b;font-size:12px;font-weight:700}
.practice-opening-origin[hidden]{display:none}
.practice-opening-card{grid-template-columns:minmax(105px,140px) minmax(0,1fr);gap:14px;padding:18px;align-items:start}
.practice-opening-card .opening-preview{align-self:start}
.practice-opening-card h2{font-size:20px;margin:6px 0}
.practice-opening-card p{font-size:13px;line-height:1.5;-webkit-line-clamp:3}
.practice-side-badge.is-white{background:#deecfc;color:#27557f}
.practice-side-badge.is-black{background:#fae1dc;color:#934035}
.practice-opening-card .practice-opening-start{min-height:46px;font-size:15px;margin-top:0;background:linear-gradient(#fb9477,#ea755e);box-shadow:inset 0 1px #ffcab6,0 3px #b9533e}
.practice-opening-card .practice-opening-start[aria-busy="true"]{display:flex;align-items:center;justify-content:center;gap:9px;opacity:1;cursor:wait}
.practice-opening-spinner{width:16px;height:16px;flex:0 0 16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:practice-opening-spin .8s linear infinite}
@keyframes practice-opening-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.practice-opening-spinner{animation:none}}
.practice-opening-focus .learning-focus-details summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;font-weight:600}
.practice-opening-focus .learning-focus-details summary::-webkit-details-marker{display:none}
.practice-opening-focus .learning-focus-details summary::after{content:"+";font-size:20px;line-height:1}
.practice-opening-focus .learning-focus-details[open] summary::after{content:"−"}
@media(min-width:1024px){
    .practice-opening-focus .daily-plan-guide{grid-template-columns:140px minmax(0,1fr)}
    .practice-opening-focus .daily-plan-fox-orbit{width:140px;height:164px}
    .practice-opening-focus .daily-plan-fox{width:140px;height:152px}
}
@media(max-width:1023px){
    .practice-opening-card{grid-template-columns:110px minmax(0,1fr);padding:15px}
}
@media(max-width:720px){
    .practice-opening-heading h1{max-width:none;font-size:23px;line-height:1.15;margin:0 0 6px}
    .practice-opening-heading header>p{font-size:13px;line-height:1.4}
    .practice-opening-heading{padding:13px;gap:12px;margin-bottom:18px}
    .practice-opening-origin{font-size:11px;margin-top:10px;padding:5px 8px}
    .practice-opening-focus{padding:0;max-width:none;background:transparent;border:0;border-radius:0;box-shadow:none}
    .practice-opening-focus .daily-plan-guide{grid-template-columns:70px minmax(0,1fr);gap:6px}
    .practice-opening-focus .daily-plan-fox-orbit{width:70px;height:94px}
    .practice-opening-focus .daily-plan-fox{width:70px;height:88px}
    .practice-opening-focus .daily-plan-focus.daily-plan-focus{padding:7px;box-shadow:none}
    .practice-opening-focus .learning-focus-details{padding:7px 8px;font-size:12px}
    .practice-opening-card{grid-template-columns:96px minmax(0,1fr);padding:12px;gap:11px}
    .practice-opening-card h2{font-size:19px}
    .practice-opening-card p{font-size:13px;-webkit-line-clamp:3}
    .practice-opening-card .practice-opening-start{min-height:44px;font-size:14px}
    .practice-opening-source{display:block;margin-top:6px}
}
