.live-shell{max-width:880px;margin:auto;padding:32px 24px 70px;color:#263747}header,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}h1{font-size:30px}h2{font-size:19px;margin:24px 0 16px}button{cursor:pointer;border:1px solid #dbe4ed;background:white;border-radius:10px;padding:10px 15px;color:#263747;font:inherit}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #14b8a6;outline-offset:2px}.primary{background:#009b99;color:white;border-color:#009b99}.live-item,.panel{background:white;border:1px solid #dde5ed;border-radius:16px;padding:18px;margin-bottom:10px}.live-item h3{margin:0;font-size:17px}.live-item p{color:#6d7c8c;margin:8px 0}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.filters{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap}label{display:block;margin:12px 0}input,textarea,select{display:block;width:100%;font:inherit;padding:10px;border:1px solid #cdd8e2;border-radius:8px;background:white;color:#263747}input#search{flex:1;min-width:180px}select{width:auto}dialog{border:1px solid #dbe4ed;border-radius:20px;padding:25px;width:min(92vw,480px);margin:auto}dialog::backdrop{background:#122b3b66}.hint,footer,#status{font-size:13px;color:#64758a}#status{min-height:22px}#pairCode{font-size:38px;letter-spacing:6px;color:#008b89}footer{margin-top:32px}[hidden]{display:none!important}@media(max-width:520px){.live-shell{padding:20px 14px 50px}.filters{display:block}.filters>*{margin-bottom:8px}.section-heading{flex-wrap:wrap}}

.rule-window{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:12px 0;border-bottom:1px solid #ddd}.rule-window label{display:flex;align-items:center;gap:4px}.rule-window input[type=time]{width:120px}input[type=checkbox]{width:auto}#controlApps select{max-width:150px;margin-right:16px}#controlUsage{font-size:1.2rem;font-weight:600}
 .learning-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
 .learning-fields input[type=number]{width:100%}
 #jsonContent{width:100%;min-width:min(65vw,700px);font-family:monospace}
 
 

.auth-panel{max-width:460px;margin:24px auto;padding:26px}.auth-panel h2{margin-top:22px}.auth-tabs{display:flex;gap:8px;padding:5px;background:#f0f5f5;border-radius:12px}.auth-tabs button{flex:1;border-color:transparent;background:transparent}.auth-tabs [aria-pressed=true]{background:white;color:#007b79;box-shadow:0 2px 8px #2637470d}.auth-panel select{width:100%}.auth-submit{width:100%;margin-top:22px}.auth-panel .hint{line-height:1.7}.account-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;flex:none;white-space:nowrap}@media(max-width:520px){.auth-panel{padding:20px}.account-actions{justify-content:flex-end;gap:8px}}

#studentManager h2{margin:0 0 12px}#studentSelect{width:100%}.student-code-row{display:flex;gap:12px;align-items:flex-end}.student-code-row label{flex:1;min-width:0}.student-code-row button{margin-bottom:12px;white-space:nowrap}#studentCode{font-family:monospace;letter-spacing:.04em}#studentSetup{margin-top:20px}.student-form-grid{display:grid;grid-template-columns:1fr;gap:28px}.student-form-grid select{width:100%}.student-form-grid h3{font-size:17px}#pendingStudent{margin-top:18px}@media(max-width:600px){.student-form-grid{gap:12px}.student-code-row{display:block}.student-code-row button{margin-bottom:0}}

.student-entry-choices{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:12px}.student-entry-choices button{padding:24px 16px;font-size:17px;font-weight:600;color:#007b79;border-color:#a9d8d3;background:#f4fbf9}.student-entry-choices button:hover{background:#e4f5ef}.student-entry-back{margin-top:4px}@media(max-width:520px){.student-entry-choices{grid-template-columns:1fr;gap:12px}}

/* Original parent menu and presentation, backed by shared server services. */
.live-shell{max-width:520px;padding:0 16px calc(var(--nav-h) + 32px);color:var(--ink);position:relative;z-index:1}
.topbar{margin:0 -16px 12px;padding:12px 16px;gap:9px;align-items:center}
.topbar h1{font-size:14px;margin:0;line-height:1.4}.topbar .brand-mark{color:#fff;font-size:15px;font-weight:800}.topbar .brand-txt span{font-size:11.5px;color:var(--ink-4)}
.account-actions{justify-content:flex-end;gap:8px}.account-actions a{font-size:12px}.account-actions .pts-top{padding:5px 8px}.topbar{flex-wrap:wrap}.topbar .brand{gap:6px}.topbar .brand-txt{overflow:hidden}.topbar .brand-txt span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#logout{font-size:11px;min-height:32px;padding:3px 10px}
#status{margin:8px 2px;font-size:12px;overflow-wrap:anywhere}footer{margin:20px 2px 0;font-size:11.5px}
.tabbar .tab{padding:0;border:0;border-radius:0;background:transparent;line-height:1.4;color:var(--ink-4);font-size:11px}.tabbar .tab.on{color:var(--teal)}
.page-view{padding:4px 0 0}.section-heading{gap:10px;margin:22px 2px 10px}.section-heading h2{font-size:12px;color:var(--ink-4);margin:0;letter-spacing:1px}.section-heading button{font-size:12px;min-height:32px;padding:4px 10px}
.link{border:0;background:transparent;border-radius:0;padding:0;font-size:12px;color:var(--teal);min-height:32px}.ledger-tools{display:flex;align-items:center;gap:8px}.ledger-tools select{font-size:12px;min-width:110px;height:36px;padding-left:10px}
.teal-dot{background:var(--teal)}.violet-dot{background:var(--violet)}.rose-dot{background:var(--rose)}.earn-key{background:var(--teal)}.spend-key{background:var(--rose)}
.card,.item-card{overflow-wrap:anywhere}.hero-note{line-height:1.7}.qbtn{border:0;background:var(--surface);padding:12px 4px}.qbtn .qi{font-size:20px;font-weight:700}.pts-hero{margin-top:0}.pts-hero .hstat{min-width:0}.grid3 b{overflow-wrap:anywhere}
.cat-card{margin-top:12px;box-shadow:none}.cat-ic{font-size:14px}.item-acts button{min-width:0}.led-undo{background:white}.led-m{overflow:hidden}.led-amt{font-size:14px}.led-ic{font-size:12px}.fchip{padding:6px 13px}.fchip.on{color:white;background:var(--ink-2);border-color:var(--ink-2)}
.settings-tabs{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}.row label{margin:0}.row-l{margin:0}.stepper input{width:66px;min-width:0;text-align:center;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);border-radius:0;height:44px;padding:0 3px;font-size:15px;font-weight:800;appearance:textfield}.stepper input::-webkit-inner-spin-button{appearance:none}.stepper button{border:0;border-radius:0;padding:0;background:transparent}
.sw-hit{position:relative;margin:0}.switch-input{position:absolute;inset:0;margin:0;width:100%!important;height:100%;opacity:0;cursor:pointer;z-index:1}.switch-input:checked+.sw{background:var(--teal)}.switch-input:checked+.sw::after{transform:translateX(22px)}.switch-input:focus-visible+.sw{outline:3px solid var(--teal-2);outline-offset:3px}
#subjects label{display:flex;align-items:center;gap:8px;margin:0;border:1px solid var(--line);border-radius:99px;padding:8px 12px;font-size:13px}#subjects input{margin:0}
#learning>p,#learning #questionCoverage,#learning #questionSummary,#learning #questionCount,#devices>p,#control>p{font-size:12px;color:var(--ink-3);line-height:1.7}#questionCoverage{max-height:150px;overflow:auto}#questionList .live-item{padding:13px}#questionList h3{font-size:14px}#questionList p{font-size:12px}.filters label{min-width:0;flex:1}.filters select{width:100%;min-width:0}
#learningDeviceDetails .item-card>button{margin:10px 6px 0 0;font-size:12px;padding:6px 10px}.rec-h{border:0;border-radius:0;background:transparent}.rec .q-t{font-size:13px}.bar-duo{height:92px;flex:none}.bar{min-height:0}.bar-v{font-size:10px}.weak-fill{display:block}.weak-n{overflow-wrap:anywhere}.weak-v{width:58px}
#studentManager{padding:16px;margin:0 0 14px}#studentManager h2{font-size:14px}#studentManager label{font-size:12px}#studentCode{font-size:11px}#studentManager .hint{font-size:11.5px}.student-code-row{display:block}.student-code-row button{font-size:12px;margin-bottom:0}.student-entry-choices{gap:10px;grid-template-columns:1fr 1fr}.student-entry-choices button{font-size:13px;padding:14px 8px}.student-form-grid{gap:10px}#studentSetup{margin-top:12px}.student-entry-back{font-size:12px}.panel{padding:16px}
.auth-panel{margin:24px 0;padding:22px}.auth-panel h2{font-size:19px}.auth-panel label{font-size:14px}.auth-panel .hint{font-size:12px}.auth-panel .primary{min-height:48px}
@media(max-width:520px){.live-shell{padding:0 16px calc(var(--nav-h) + 32px)}.filters{display:flex}.filters>*{margin-bottom:0}.auth-panel{padding:20px}.hero-body{gap:14px}}
@media(max-width:359px){.live-shell{padding-left:12px;padding-right:12px}.topbar{margin-left:-12px;margin-right:-12px}.led{gap:6px;padding:10px 8px}.led-undo{padding:4px 6px}.weak-bar{width:55px}.stepper input{width:54px}}

.category-arrow{font-size:25px;color:var(--ink-4);font-weight:400}#categoryDialog{max-height:86vh;overflow:auto}#categoryDialog>.card-h{position:sticky;top:-25px;background:var(--surface);padding:10px 0;z-index:1}#categoryDialog h3{font-size:17px}.cat-card{margin-top:0}

.bar-duo.single .bar{max-width:30px}.slider-wrap input[type=range]{padding:0;border:0}.slider-v{font-size:13px}

.points-tabs{display:flex;gap:10px;margin:4px 0 18px}.points-tabs button{flex:1;justify-content:center}#pendingLearningStatus:empty{display:none}#redeemSummary{line-height:1.8}#redeemDevice{width:100%}#pointsFields .row-l{min-width:120px}

.hero-connect{display:flex;align-items:center;gap:8px}.hero-connect .hero-scan{background:#FDE68A;border-color:#FDE68A;color:#3B320F}.hero-connect .hero-scan:hover{background:#FCD34D;border-color:#FCD34D}.hero-connect .hero-scan:focus-visible{outline-color:#FDE68A}.hero-connect{max-width:100%;flex-wrap:wrap}#tvScanner{width:min(92vw,440px);max-height:92dvh;overflow:auto;padding:24px;border:0;background:#fff;color:#17212f;font-family:system-ui,sans-serif}
#tvScanner .scanner-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
#tvScanner h2{margin:0;font-size:22px;font-weight:700;letter-spacing:0}
#closeTvScanner{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;background:transparent;color:#7b8493;font-size:32px;line-height:1}
#tvScanner .scanner-instruction{text-align:center;color:#7b8493;font-size:14px;margin:16px 0 20px}
.scanner-preview{position:relative;width:100%;aspect-ratio:1;max-height:44dvh;overflow:hidden;border-radius:16px;background:#202733}
#tvScanVideo{display:block;width:100%;height:100%;object-fit:cover}
.scanner-frame{position:absolute;inset:9%;pointer-events:none}
.scanner-frame i{position:absolute;width:28px;height:28px;border:4px solid #3478f6}
.scanner-frame i:nth-child(1){top:0;left:0;border-right:0;border-bottom:0;border-radius:6px 0 0 0}
.scanner-frame i:nth-child(2){top:0;right:0;border-left:0;border-bottom:0;border-radius:0 6px 0 0}
.scanner-frame i:nth-child(3){bottom:0;left:0;border-right:0;border-top:0;border-radius:0 0 0 6px}
.scanner-frame i:nth-child(4){bottom:0;right:0;border-left:0;border-top:0;border-radius:0 0 6px 0}
.scanner-frame span{position:absolute;top:50%;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,#3478f6,transparent);box-shadow:0 0 10px #3478f6}
#tvScanStatus{min-height:40px;margin:14px 0 18px;text-align:center;color:#7b8493;font-size:14px;line-height:1.5}
#tvScanner .scanner-album{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;margin:0;border:1px solid #3478f6;border-radius:10px;color:#245cb8;font-size:16px;font-weight:600;cursor:pointer;overflow:hidden}
.scanner-album span{font-size:24px;line-height:1}
#tvScanAlbum{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0}
.scanner-album:focus-within{outline:3px solid #3478f6;outline-offset:3px}
#tvScanner .scanner-hint{margin:16px 0 0;text-align:center;color:#7b8493;font-size:12px;line-height:1.5}
@media(max-width:359px){#tvScanner{padding:18px}#tvScanner h2{font-size:20px}}

.add-screen-card{display:flex;align-items:center;justify-content:center;width:100%;height:40px;min-height:40px;padding:0;margin:0 0 14px;border:1px dashed #7BBDB5;border-radius:12px;background:#E6F6F4;color:#0E7C7B;font-size:26px;line-height:1}.add-screen-card:hover{background:#D4EEE9}

.account-actions{margin-inline-start:auto;gap:6px}.account-actions .recharge-entry{display:inline-flex;align-items:center;justify-content:center;background:#265841;color:#fff;border:1px solid #265841;border-radius:10px;padding:5px 10px;text-decoration:none;font-weight:700;min-height:32px}#accountBalance{font-size:12px;font-variant-numeric:tabular-nums;text-decoration:none;direction:ltr;unicode-bidi:isolate}

.redemption-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-bottom:1px dashed var(--line)}
.redemption-row>.row{min-width:0;flex-direction:column;align-items:stretch;gap:10px;border-bottom:0;padding:13px 0}
.redemption-row .row-l{flex:none;min-width:0}
.redemption-row .row-l b{font-size:13px}
.redemption-row .stepper{width:100%}
.redemption-row .stepper button{width:40px;flex:none}
.redemption-row .stepper input{width:0;flex:1}

.quick{align-items:start}.quick-pass{min-width:0}.quick-pass>.qbtn{width:100%}.quick-pass small{display:block;text-align:center;line-height:1.5;padding:6px 2px;color:var(--muted)}
[data-field="homeTemporaryPassRow"]>span{white-space:nowrap}
[data-field="homeTemporaryPass"]{font-size:13px;text-align:right;white-space:pre-line;overflow-wrap:anywhere}

.question-source-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.question-source-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-height:126px;padding:18px 14px;text-align:left;border:1px solid var(--line,#dde5ed);border-radius:16px;background:white}
.question-source-card strong{font-size:17px;color:var(--ink,#263747)}
.question-source-card>span{font-size:12px;color:var(--ink-3,#64758a);line-height:1.5}
.question-source-card:hover,.question-source-card[aria-expanded=true]{border-color:#009b99;background:#f0faf8}
.question-source-heading{display:flex;align-items:center;gap:16px;margin-bottom:16px}
.question-source-heading h3{margin:0;font-size:16px}

.hero-dev .screen-name{border:0;background:transparent;color:inherit;font:inherit;font-weight:700;padding:0;text-align:left;cursor:pointer;overflow-wrap:anywhere}.hero-dev .screen-name:disabled{opacity:1;cursor:default}


.textbook-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.textbook-fields>label,.textbook-field{display:flex;flex-direction:column;gap:10px;min-width:0;font-weight:600;margin:0}
.textbook-fields select,#textbookSettings{width:100%;height:44px;min-width:0;margin:0;text-align:left;border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px 12px;font-size:15px}
.textbook-summary{padding:12px;background:#f1f5fa;border-radius:10px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.textbook-term{display:flex;align-items:center;gap:16px;margin:12px 0 0}.textbook-term select{width:auto;min-width:140px}
#textbookDialog{width:min(620px,calc(100vw - 24px));max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:24px;color:var(--ink);box-sizing:border-box}
.textbook-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.textbook-heading h2{margin:0;font-size:22px}
.textbook-tabs{display:flex;border-bottom:1px solid var(--line);margin:16px 0;gap:12px}.textbook-tabs button{flex:1;border:0;background:transparent;border-radius:0;padding:12px 4px}.textbook-tabs [aria-selected=true]{border-bottom:3px solid #2563eb;color:#2563eb;font-weight:700}
.textbook-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.textbook-option{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:12px;margin:0;cursor:pointer;min-width:0}.textbook-option:has(input:checked){background:#edf4ff;border-color:#2563eb}.textbook-option input{flex:none;width:18px;height:18px;margin:0;accent-color:#2563eb}.textbook-option span{min-width:0;line-height:1.5}.textbook-option small{display:block;font-size:12px;color:var(--muted)}
@media(max-width:420px){#textbookDialog{padding:18px}.textbook-options{grid-template-columns:1fr}.textbook-fields{gap:12px}}

.textbook-terms{display:flex;gap:6px;flex-wrap:wrap}.textbook-terms .fchip{margin:0;min-height:38px;padding:8px 14px}

#textbookDialog[open]{display:flex;flex-direction:column;overflow:hidden}
#textbookDialog>*{flex-shrink:0}
#textbookDialog #textbookOptions{flex:1 1 auto;min-height:88px;overflow-y:auto;padding:2px;align-content:start}
#textbookDialog .actions{justify-content:flex-end;margin-top:12px}
#textbookDraftCoverage{max-height:64px;overflow-y:auto}

.ledger-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin:16px 0}
.ledger-pagination[hidden]{display:none}
.ledger-pagination button:disabled{opacity:.4;cursor:default}

.topbar .brand-slogan{margin:2px 0;font-size:11px;line-height:1.5;color:var(--ink-4);white-space:normal;overflow-wrap:anywhere}.topbar .brand{min-width:0;max-width:100%}

#learningConfig.rule-group {display:block;padding:16px}
#learningConfig .card-h {align-items:center;gap:8px}
#learningConfig .card-h h3 {margin:0}
#ruleStatus {color:var(--muted,#57676b);text-align:right}
#sendRules {display:block;width:100%;margin:12px 0 16px}
#learningConfig .card {box-shadow:none;background:transparent;border:0;border-radius:0;padding-inline:0}
#learningConfig .sec-title {margin-top:16px;border-top:1px solid rgba(120,130,140,.18);padding-top:12px}
