/* Production layouts adapted from the Figma desktop and web workspaces. */
:root{--application-header:56px;--hint-color:#eeae43;--hint-soft:#ffe5b4}
body{background:var(--color-background)}
.admin-shell{height:calc(100dvh - var(--desktop-titlebar-height,0px));min-height:0;overflow:hidden}
.admin-shell .sidebar{height:100%;top:0;background:#f2f6fc;border-right:0}
.admin-right{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.admin-top{flex:0 0 56px;height:56px;background:var(--color-background);border-bottom:0;padding:0 28px}
.admin-main{flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:28px 32px;overflow:auto;scrollbar-gutter:stable}
.workspace-statusbar{height:28px;flex:none;display:flex;justify-content:space-between;align-items:center;padding:0 20px;background:var(--color-background);border-top:0;color:var(--muted);font-size:11px}
.workspace-statusbar span{display:flex;align-items:center;gap:7px}
.workspace-statusbar i{width:6px;height:6px;background:var(--color-success);border-radius:50%}
.admin-shell .sidebar-header{height:76px;padding:20px 20px}
.admin-shell .brand-mark{width:32px;height:32px;border-radius:10px}
.admin-shell .sidebar-scroll{padding:10px 12px}
.admin-shell .side-nav-item{height:42px;padding:0 14px;border-radius:10px;gap:12px}
.admin-shell .side-nav-item.active{background:var(--color-primary-soft);color:var(--color-primary)}
.admin-shell .nav-caption{padding-left:14px;color:#8694a9;letter-spacing:.06em}
.admin-shell .sidebar-footer{border-top:0}
.admin-shell .panel{border:0;border-radius:20px;background:#fff;box-shadow:var(--shadow-card)}
.admin-main>.panel:has(table){border:0;border-radius:20px;box-shadow:var(--shadow-card)}
.admin-main>.p-metrics{background:#fff;border:0;border-radius:20px;gap:0;box-shadow:var(--shadow-card)}
.admin-main>.p-metrics .metric{padding:22px 24px;border:0;background:transparent}
.admin-main>.p-metrics .metric+.metric{border-left:0}
.admin-main>.p-metrics .metric-num{font-size:30px;color:var(--color-text)}
.admin-shell .btn{border-radius:10px}
.admin-main .page-heading{margin-bottom:24px}
.child-mode .child-header,.child-mode.classroom-mode .child-header{height:56px;min-height:56px;padding:0 28px;gap:24px;display:grid;grid-template-columns:1fr auto 1fr}
.child-mode .child-header .brand{font-size:18px;white-space:nowrap}
.child-mode .child-header .brand-mark{width:30px;height:30px;border-radius:10px}
.child-profile{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.child-mode .child-main{max-width:1440px;padding:28px 40px;margin:auto}
.child-mode.classroom-mode .child-main{max-width:1440px;min-height:0;padding:24px 32px 16px}
.child-mode{background:var(--color-background) url('ui-atmosphere.svg') center top/1440px 960px no-repeat}
.child-shell{background:transparent}
.child-mode .child-header{border:0;background:#ffffffb8;backdrop-filter:blur(16px)}
.child-mode .child-nav{background:#eaf1f9;border-radius:16px;padding:4px}
.child-mode .child-nav a{border-radius:12px}
.child-mode .child-profile .btn{background:var(--color-primary-soft);color:var(--color-primary)}
.child-mode.classroom-mode{background:var(--color-background)}
.guided-classroom{max-width:none;margin:0}
.guided-toolbar{min-height:44px;margin:0 0 20px;gap:16px}
.guided-toolbar h1{font-size:19px;font-weight:500;color:var(--color-text-secondary)}
.guided-toolbar .btn{min-height:44px;border-radius:12px}
.guided-content{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:24px}
.learning-canvas{min-width:0}
.guided-classroom .mvp-question,.guided-classroom .guided-story{max-width:none;min-height:620px;padding:28px 32px;border:0;border-radius:28px;background:#fff;box-shadow:var(--shadow-card)}
.guided-classroom .mvp-question h2{font-size:28px;line-height:1.5;margin-bottom:24px;color:var(--color-text);font-weight:600}
.guided-step-head{margin-bottom:12px}
.guided-step-head .eyebrow{font-size:13px;color:var(--color-success);letter-spacing:0}
.guided-progress{height:5px;background:#edf2f8;margin-bottom:28px;border-radius:4px}
.guided-progress span{border-radius:4px;background:var(--color-primary)}
.guided-classroom .guided-instruction{font-size:14px;color:var(--muted)}
.guided-classroom .picture-options~.guided-instruction,.guided-step-answer:has(.picture-options)>.guided-instruction{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.courseware-options.picture-options{gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
.picture-options:has(>:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.picture-options:has(>:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
.guided-classroom .picture-options .answer-option{position:relative;padding:12px;gap:14px;border:2px solid transparent;border-radius:22px;background:#f4f8fc;min-height:278px;transition:border-color .2s,background .2s,box-shadow .2s}
.guided-classroom .picture-options .answer-option:not(:disabled):not(.selected):not(.result-correct):not(.result-retry):hover{background:#ebf3fc;box-shadow:0 4px 16px #31577d0b}
.guided-classroom .picture-options .answer-option.selected{padding:12px;border-color:var(--color-primary);background:var(--color-primary-soft)}
.guided-classroom .picture-options .answer-option img{height:236px;width:100%;object-fit:contain;background:#f3f7fb;border-radius:14px}
.guided-classroom .picture-options .option-label{width:100%;justify-content:center}
.guided-classroom .picture-options .option-text:has(+.sr-only),.guided-classroom .picture-options .answer-option:has(img) .option-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.guided-classroom .picture-options .answer-option:not(:has(img)) .option-text{position:static;width:auto;height:auto;margin:0;clip-path:none;white-space:normal}
.guided-classroom .picture-options .answer-option:not(:has(img)){justify-content:center}
.guided-classroom .picture-options .option-check{width:24px;height:24px;flex-basis:24px;border-radius:50%;border-color:#d8e3f1;background:#f3f7fb}
.guided-classroom .picture-options .answer-option:not(.selected) .option-check{border:0;position:relative}
.guided-classroom .picture-options .answer-option:not(.selected) .option-check:after{content:'';width:8px;height:8px;background:#c5d3e7;border-radius:50%}
.guided-classroom .answer-option.result-correct{border-color:var(--color-success);background:var(--color-success-soft)}
.guided-classroom .answer-option.result-retry{border-color:var(--color-warning);background:var(--color-warning-soft)}
.guided-classroom .answer-option.answer-hint{outline:var(--hint-width,4px) solid var(--hint-color);outline-offset:3px;box-shadow:0 0 var(--hint-glow,8px) var(--hint-soft);animation:learning-hint 1.9s ease-in-out infinite}
@keyframes learning-hint{0%,100%{outline-color:#eeae43;box-shadow:0 0 var(--hint-glow) #ffe5b4}50%{outline-color:#f8cd7d;box-shadow:0 0 calc(var(--hint-glow) * .5) #fff2dc}}
.reduced-motion .answer-option.answer-hint{animation:none}
@media(prefers-reduced-motion:reduce){.answer-option.answer-hint{animation:none!important}}
.learning-paused .answer-option.answer-hint{animation-play-state:paused}
.learning-paused .courseware-options{pointer-events:none}
.guided-classroom .courseware-nav{gap:12px;padding-top:24px;margin-top:auto;flex-wrap:wrap}
.guided-classroom .courseware-nav .btn{min-height:48px;border-radius:12px;padding:12px 22px;font-size:16px}
.guided-classroom .courseware-response{margin-top:20px}
.guided-classroom .courseware-response .mvp-feedback{border-radius:16px;font-size:16px;padding:16px 20px}
.guided-classroom .courseware-copy{font-size:19px;line-height:1.9}
.guided-watching .learning-canvas>.mvp-question{display:none}
.guided-classroom:not(.guided-watching) .learning-canvas>.guided-story{display:none}
.learning-statusbar{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--muted);padding:14px 8px 0}
.learning-close-dialog{width:min(430px,calc(100vw - 32px));border:0;border-radius:24px;padding:28px}
.learning-close-dialog::backdrop{background:#23334d38}
.learning-close-dialog h2{font-size:22px;margin-bottom:12px}
.learning-close-dialog p{color:var(--color-text-secondary);margin-bottom:24px}
.preference-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:20px}
.preference-row small{display:block;color:var(--muted);margin-top:5px}
.preference-row input{width:20px;height:20px;accent-color:var(--color-primary)}
.workspace-kicker{font-size:11px;color:var(--muted);letter-spacing:.06em}
.record-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.record-heading h1{font-size:26px;line-height:1.5;margin:6px 0;color:var(--color-text)}
.record-heading p{font-size:13px;color:var(--color-text-secondary);margin:0}
.record-metric-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:0;border-radius:20px;margin:20px 0 24px;padding:18px 0;box-shadow:var(--shadow-card)}
.record-metric{display:flex;flex-direction:column;gap:6px;padding:0 24px}
.record-metric+.record-metric{border-left:0}
.record-metric>span{font-size:12px;color:var(--color-text-secondary)}
.record-metric strong{font-size:27px;line-height:1.4;color:var(--color-text);font-variant-numeric:tabular-nums;white-space:nowrap}
.record-metric small{font-size:11px;color:var(--muted)}
.record-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.record-search{width:240px;display:flex;align-items:center;gap:9px;padding:0 12px;height:36px;border:1px solid var(--line);background:#fff;border-radius:10px}
.record-search input{border:0!important;background:transparent!important;min-width:0;outline:0;width:100%;font-size:13px;padding:0;box-shadow:none!important}
.record-search:focus-within{outline:2px solid var(--color-primary);outline-offset:1px}
.record-toolbar select{height:36px;font-size:13px;border:1px solid var(--line);border-radius:10px;padding:0 12px;max-width:220px;background:#fff;color:var(--color-text-secondary)}
.record-count{margin-left:auto;font-size:12px;color:var(--muted)}
.records-split{display:grid;grid-template-columns:minmax(0,1fr) 336px;gap:20px;align-items:start}
.record-list{overflow:hidden}
.records-table{width:100%;font-size:13px}
.records-table th{height:42px;background:#f7f9fd;color:var(--color-text-secondary);font-size:11px;font-weight:500;white-space:nowrap;padding:10px 12px}
.records-table td{height:64px;padding:10px 12px;white-space:nowrap;border-top:1px solid #edf2f8}
.records-table tr.record-selected td{background:#eaf1ff}
.record-open{font:inherit;border:0;padding:0;background:transparent;display:flex;flex-direction:column;align-items:flex-start;text-align:left;color:var(--color-text);cursor:pointer;min-height:38px;min-width:140px}
.record-open:hover strong{color:var(--color-primary)}
.record-open span{font-size:11px;color:var(--color-text-secondary);margin-top:3px;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.record-status{display:inline-block;padding:4px 8px;border-radius:6px;background:#fff2dc;color:#a9732f;font-size:11px}
.record-status.complete{background:#e6f5f1;color:#248e83}
.record-list-footer{display:flex;align-items:center;min-height:42px;padding:12px 16px;color:var(--muted);font-size:11px;border-top:1px solid var(--line)}
.record-inspector{padding:24px;min-height:400px}
.inspector-heading{padding-bottom:20px;border-bottom:1px solid var(--line)}
.inspector-heading h2{font-size:22px;margin:8px 0}
.inspector-heading p{font-size:13px;color:var(--color-text-secondary);margin:0}
.inspector-facts{display:grid;gap:16px;padding:20px 0;margin:0;border-bottom:1px solid var(--line)}
.inspector-facts div{display:flex;justify-content:space-between;gap:16px;font-size:13px}
.inspector-facts dt{color:var(--color-text-secondary)}
.inspector-facts dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
.inspector-pages{padding:20px 0}
.inspector-pages h3{font-size:14px;margin-bottom:14px}
.inspector-pages>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;font-size:11px;color:var(--color-text-secondary)}
.inspector-pages strong{white-space:nowrap;font-weight:500}
.record-inspector>.btn{margin-top:10px}
.record-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:280px;padding:28px 14px;gap:12px;text-align:center;color:var(--color-text-secondary)}
.record-empty p{font-size:12px;color:var(--muted);max-width:230px;line-height:1.7;margin:0}
.record-empty-icon{font-size:32px;color:#8ca7d1;background:#eaf1ff;padding:8px 14px;border-radius:14px}
.record-method{color:var(--muted);font-size:11px;line-height:1.8;margin:16px 0}
.record-progress-details{margin-top:28px}
.record-progress-details>summary{font-size:13px;color:var(--color-text-secondary);cursor:pointer;margin-bottom:16px}
.learning-report{margin:20px 0 32px;padding-bottom:28px;border-bottom:1px solid var(--line)}
.learning-report header h2{font-size:22px;line-height:1.5;margin:8px 0}
.learning-report header p{font-size:13px;color:var(--color-text-secondary)}
.question-records{min-width:700px;width:100%;font-size:12px;border-collapse:collapse}
.question-records th{background:#f7f9fd;color:var(--color-text-secondary);font-size:11px;font-weight:500;text-align:left;padding:12px 10px;white-space:nowrap}
.question-records td{padding:14px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.question-records td:first-child{min-width:180px;max-width:260px}
.question-records td small{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.record-answer-history td{background:#f9fbfd;padding:8px 12px}
.record-answer-history details{font-size:12px;color:var(--color-text-secondary)}
.record-answer-history summary{cursor:pointer;padding:4px 0}
.record-answer-history ol{padding-left:22px}
.record-answer-history li{padding:8px 0}
.record-answer-history li span+span{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.report-dialog{width:min(1120px,calc(100vw - 40px));max-width:1120px}
@media(min-width:761px){
 html.native-client .child-shell{display:grid;grid-template-columns:72px minmax(0,1fr);min-height:calc(100dvh - 36px)}
 html.native-client .child-mode .child-header{position:sticky;top:36px;align-self:start;width:72px;height:calc(100dvh - 36px);padding:18px 8px;display:flex;flex-direction:column;gap:28px;background:#fff;border-right:1px solid var(--line);border-bottom:0}
 html.native-client .child-header .brand{font-size:0;gap:0}
 html.native-client .child-header .brand>span:not(.brand-mark),html.native-client .child-header .brand small{display:none}
 html.native-client .child-nav{display:flex;flex-direction:column;gap:14px;width:100%;padding:0;border:0}
 html.native-client .child-nav a{font-size:12px;padding:14px 0;text-align:center;border-radius:12px;min-width:0}
 html.native-client .child-profile{margin-top:auto;display:flex;flex-direction:column;gap:16px}
 html.native-client .child-profile .btn{font-size:11px;padding:8px 6px;white-space:normal;text-align:center}
 html.native-client .child-main{width:100%;max-width:none;padding:28px 32px}
 html.native-client .child-mode.classroom-mode .child-main{padding:24px 28px 16px}
}
@media(max-width:1160px){.records-split{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.admin-main{padding:24px}.guided-content{gap:16px}.guided-classroom .mvp-question{padding:24px;min-height:570px}.guided-classroom .picture-options .answer-option{min-height:238px}.guided-classroom .picture-options .answer-option img{height:192px}.record-metric{padding:0 18px}.record-metric strong{font-size:24px}}
@media(max-width:1000px){.records-split{grid-template-columns:minmax(0,1fr)}.record-inspector{min-height:0}.guided-content{grid-template-columns:minmax(0,1fr) 260px}.learning-assistant{width:260px}.assistant-message{font-size:18px;line-height:29px}.assistant-robot{width:234px;height:304px}.guided-classroom .mvp-question{padding:22px}.guided-classroom .picture-options .answer-option{padding:8px;min-height:208px}.guided-classroom .picture-options .answer-option img{height:165px}.courseware-options.picture-options{gap:12px}}
@media(max-width:760px){
 .admin-shell{height:auto;min-height:calc(100dvh - var(--desktop-titlebar-height,0px));overflow:visible}.admin-main{padding:20px 16px;overflow:visible;scrollbar-gutter:auto}.admin-right{overflow:visible}.admin-top{padding:0 16px}.workspace-statusbar{padding:0 12px}.workspace-statusbar span:last-child{display:none}
 .child-mode .child-header,.child-mode.classroom-mode .child-header{height:72px;min-height:72px;padding:0 16px;grid-template-columns:1fr auto;gap:10px}.child-mode .child-header .brand{font-size:17px}.child-mode .child-nav{grid-column:1/-1;position:absolute;top:46px;left:70px;right:16px;width:auto;min-width:0;gap:12px}.child-mode.classroom-mode .child-nav{display:none}.child-profile{gap:6px}.child-profile .btn{font-size:12px;padding:6px 10px}.learning-preferences{width:34px;height:34px}
 .child-mode.classroom-mode .child-main{padding:16px 14px 12px;max-width:none}.child-mode .child-main{padding:22px 16px}.guided-toolbar{margin-bottom:14px;gap:10px}.guided-toolbar h1{font-size:15px;line-height:1.6;max-width:160px}.guided-toolbar .btn{min-height:40px;padding:8px 12px;font-size:13px}
 .guided-content{display:flex;flex-direction:column;gap:12px}.learning-canvas{width:100%;order:2}#learning-assistant{width:100%;order:1}.learning-assistant{width:100%}.assistant-robot{width:88px;height:114px}.assistant-message{font-size:16px;line-height:25px}.assistant-controls{min-height:40px}.assistant-bubble{padding:14px 16px}
 .guided-classroom .mvp-question,.guided-classroom .guided-story{min-height:0;padding:22px 18px;border-radius:24px}.guided-classroom .mvp-question h2{font-size:22px;margin-bottom:20px}.guided-progress{margin-bottom:22px}.guided-step-head{font-size:12px}.guided-classroom .picture-options .answer-option{min-height:172px;padding:9px;border-radius:16px;gap:10px}.guided-classroom .picture-options .answer-option.selected{padding:9px}.guided-classroom .picture-options .answer-option img{height:126px;border-radius:10px}.courseware-options.picture-options{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.guided-classroom .courseware-nav{padding-top:18px;gap:10px}.guided-classroom .courseware-nav .btn{min-height:44px;padding:10px 14px;font-size:14px}.guided-classroom .courseware-response .mvp-feedback{padding:14px;font-size:14px}.learning-statusbar{font-size:10px;padding-top:12px}.guided-classroom .courseware-copy{font-size:17px}.learning-close-dialog .row{flex-wrap:wrap}
 .record-heading{align-items:flex-start;flex-wrap:wrap;gap:16px}.record-heading h1{font-size:24px}.record-heading .row{width:100%}.record-metric-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 0;padding:20px 0}.record-metric:nth-child(3){border-left:0}.record-metric strong{font-size:23px}.record-search{flex:1;min-width:200px;width:auto}.record-count{margin-left:0}.record-toolbar select{max-width:100%}.record-inspector{padding:20px}.report-dialog{width:calc(100vw - 24px)}
}
@media print{.learning-report{break-inside:auto}.record-metric-strip{break-inside:avoid}.question-records{min-width:0;font-size:10px}.question-records th,.question-records td{padding:8px 6px}.question-records td:first-child{min-width:120px}.record-answer-history details{display:block}.learning-report .table-wrap{overflow:visible}.workspace-statusbar,.record-toolbar{display:none}}

.guided-classroom .picture-options .answer-option.result-correct{border-color:var(--color-success);background:var(--color-success-soft)}
.guided-classroom .picture-options .answer-option.result-retry{border-color:var(--color-warning);background:var(--color-warning-soft)}
