.history-analysis-page{gap:11px;padding-bottom:12px}.adopted-history-analysis-link{border:1px solid var(--adopted-gold);min-height:48px;color:var(--ink);text-align:left;background:linear-gradient(100deg,#28123a,#0a241e);border-radius:6px;justify-content:space-between;align-items:center;padding:8px 13px;display:flex;box-shadow:inset 0 0 0 1px #8e6e5155}.adopted-history-analysis-link span{color:var(--adopted-gold-light);font-size:24px}.history-analysis-page .sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.history-analysis-header{background:url(/ui-assets/header-books.webp) 70%/auto 155px no-repeat;grid-template-columns:52px minmax(0,1fr) 105px;align-items:center;gap:5px;min-height:70px;display:grid}.history-analysis-header h1{color:var(--adopted-gold-light);letter-spacing:.09em;text-align:center;white-space:nowrap;margin:0;font-size:clamp(22px,6.5vw,31px);font-weight:500}.history-analysis-header>button,.history-analysis-period,.history-analysis-filters label,.history-analysis-range{background:#061c18e8;border:1px solid #8a8d78;border-radius:6px;min-height:44px}.history-analysis-header>button{font:32px/1 serif}.history-analysis-period,.history-analysis-filters label,.history-analysis-range{align-items:center;display:flex}.history-analysis-period select,.history-analysis-filters select,.history-analysis-range select{width:100%;min-width:0;min-height:43px;color:var(--ink);font:inherit;background:0 0;border:0;padding:0 7px}.history-analysis-period select{font-size:13px}.history-analysis-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.history-analysis-filters label{gap:5px;min-width:0;padding-left:8px}.history-analysis-filters label>img{filter:brightness(0)invert();flex:none;width:19px;height:19px}.history-analysis-filters label>span{color:var(--adopted-gold-light);font-size:12px}.history-analysis-filters .wrapping-select{color:var(--ink);padding-right:7px}.history-analysis-range .wrapping-select{padding:6px 9px;font-size:13px}.history-analysis-scope{color:var(--muted);text-align:right;font-size:11px}.history-analysis-card{border:1px solid var(--adopted-gold);background:#061c18ed;border-radius:7px;min-width:0;padding:12px 10px 10px;box-shadow:inset 0 0 0 2px #a8774140,0 6px 16px #0006}.history-analysis-card:before{content:"✧";float:left;color:#f9d48e;margin:-18px 3px 0 -16px;font-size:18px;position:relative}.history-analysis-card-head{border-bottom:1px solid #bd9a6255;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;min-height:35px;display:flex}.history-analysis-card-head h2{overflow-wrap:anywhere;min-width:0;margin:0;font-size:clamp(17px,4.8vw,22px);font-weight:500}.history-analysis-card-head h2 img{vertical-align:-4px;filter:brightness(0)invert();width:21px;height:21px;margin-right:9px}.history-analysis-card-head h2 img.gold{filter:none}.history-analysis-card-head>span{color:var(--muted-strong);white-space:nowrap;font-size:12px}.history-analysis-card-head>span strong{color:var(--adopted-purple);font-size:19px;font-weight:500}.history-analysis-toggle{border:1px solid #8b7788;border-radius:5px;flex:none;display:flex;overflow:hidden}.history-analysis-toggle button{background:0 0;min-width:44px;min-height:36px;padding:5px 8px;font-size:13px}.history-analysis-toggle button[aria-pressed=true]{background:#351a4d;border:1px solid #b892e8;border-radius:4px;box-shadow:0 0 8px #aa67d866}.history-analysis-total{color:var(--muted-strong);margin:6px 0 -7px;font-size:15px}.history-analysis-total strong{color:var(--ink);font-size:31px;font-weight:500}.history-analysis-total em{color:var(--adopted-purple);margin-left:8px;font-size:23px;font-style:normal}.history-analysis-cumulative{grid-template-columns:116px minmax(0,1fr);align-items:center;gap:3px;display:grid}.history-analysis-cumulative .history-analysis-total{margin:0;font-size:11px;line-height:1.25}.history-analysis-cumulative .history-analysis-total strong{font-size:27px;display:inline-block}.history-analysis-cumulative .history-analysis-total em{margin:5px 0 0;font-size:22px;display:block}.history-analysis-line{width:100%;height:auto;margin:4px 0 0;display:block;overflow:visible}.history-analysis-line text{fill:#d8d7ce;font:21px BIZ UDPMincho,serif}.history-analysis-gridline{stroke:#6d806c;stroke-opacity:.55;stroke-width:1px}.history-analysis-legend,.history-analysis-legend-inline{color:var(--muted-strong);justify-content:flex-end;align-items:center;gap:13px;font-size:12px;display:flex}.history-analysis-legend span{align-items:center;gap:5px;display:flex}.history-analysis-legend i,.history-analysis-legend-inline i{background:#b879e7;border-radius:2px;width:12px;height:12px;display:inline-block}.history-analysis-legend i.again,.history-analysis-legend-inline i{background:#8fe8c8}.history-analysis-footnote{color:var(--muted);margin:7px 0 0;font-size:11px;line-height:1.5}.history-analysis-daily{margin:8px 0 4px}.history-analysis-day-nav{color:var(--adopted-gold-light);justify-content:space-between;align-items:center;font-size:13px;display:flex}.history-analysis-day-nav button{border:1px solid var(--line);background:#11271f;border-radius:4px;width:34px;min-height:28px;font-size:22px;line-height:1}.history-analysis-day-nav button:disabled{opacity:.35}.history-analysis-card>.history-analysis-day-nav{margin-top:8px}.history-analysis-bars{border-bottom:1px solid #8f9b83;align-items:stretch;gap:8px;height:136px;display:flex}.history-analysis-bar-column{flex-direction:column;flex:1 1 0;justify-content:flex-end;align-items:center;min-width:0;height:100%;display:flex}.history-analysis-bar-column>span{height:15px;font-size:10px}.history-analysis-bar-column small{height:18px;color:var(--muted-strong);white-space:nowrap;font-size:10px}.history-analysis-bar-track{flex-direction:column-reverse;width:70%;max-width:32px;height:102px;display:flex}.history-analysis-bar-part{min-height:0}.history-analysis-bar-part.first{background:linear-gradient(90deg,#8d47c4,#c090ed)}.history-analysis-bar-part.again{background:#8fe8c8}.history-analysis-schedule{border-bottom:1px solid #8f9b83;align-items:end;gap:7px;height:125px;margin-top:8px;display:flex}.history-analysis-schedule-day{flex-direction:column;flex:1;justify-content:end;align-items:center;min-width:0;height:100%;display:flex}.history-analysis-schedule-day>span{height:14px;color:var(--muted);font:9px sans-serif}.history-analysis-schedule-bar{background:linear-gradient(#ac74dd,#613493);width:80%;min-height:2px;max-height:85px}.history-analysis-schedule-bar.today{background:#dcb87f}.history-analysis-schedule-day small{height:18px;color:var(--muted-strong);white-space:nowrap;font-size:10px}.history-analysis-range{margin:8px 0 4px}.history-analysis-range-summary{color:var(--muted-strong);margin:4px 0 7px;font-size:12px}.history-analysis-range-summary strong{color:var(--adopted-gold-light);font-size:15px;font-weight:500}.history-analysis-range-events{gap:5px;padding:5px 0;display:flex;overflow-x:auto}.history-analysis-range-events>span{background:#251935;border:1px solid #a77abc;border-radius:4px;flex:none;padding:4px 7px;font-size:12px}.history-analysis-range-events>span.review{background:#0d2c27;border-color:#7cbbad}.history-analysis-range-events small{color:var(--muted);font-size:10px;display:block}.history-analysis-relationship-stat{color:var(--adopted-gold-light);margin:8px 0 3px;font-size:13px}.history-analysis-scatter-plot{width:100%;height:auto;display:block}.history-analysis-scatter-plot text{fill:#d8d7ce;font:21px BIZ UDPMincho,serif}.history-analysis-scatter-plot .vertical{stroke-opacity:.3}.history-analysis-regression{stroke:#bc85de;stroke-width:2.5px;stroke-dasharray:7 7}.history-analysis-axis-labels{color:var(--muted-strong);justify-content:space-between;font-size:10px;display:flex}.history-analysis-empty{color:var(--muted-strong);font-size:13px}.history-analysis-no-records{text-align:center;justify-items:center;gap:13px;margin-top:24px;padding:34px 24px;display:grid}.history-analysis-no-records img{filter:brightness(0)saturate()invert(76%)sepia(33%)saturate(760%)hue-rotate(348deg);width:36px;height:36px}.history-analysis-no-records h2{color:var(--ink);margin:0;font-size:21px;font-weight:500}.history-analysis-no-records p{color:var(--muted-strong);margin:0;font-size:13px;line-height:1.7}.history-analysis-no-records button{border:1px solid var(--adopted-gold);min-height:44px;color:var(--ink);background:#251535;border-radius:6px;margin-top:5px;padding:8px 21px}@media (width<=550px){.history-analysis-filters{grid-template-columns:1fr}.history-analysis-cumulative{grid-template-columns:1fr;gap:1px}.history-analysis-cumulative .history-analysis-total em{margin-left:8px;display:inline}}@media (width<=359px){.history-analysis-header{grid-template-columns:44px minmax(0,1fr) 93px}.history-analysis-card-head h2{font-size:16px}.history-analysis-toggle button{padding:4px}.history-analysis-filters label{padding-left:5px}.history-analysis-filters label>span{font-size:11px}.history-analysis-cumulative{grid-template-columns:100px minmax(0,1fr)}}:root{color:#edf2ec;--ink:#edf2ec;--muted:#b6c4be;--muted-strong:#c9d5cf;--muted-soft:#a6b3ad;--line:#edf2ec1f;--line-strong:#edf2ec33;--panel:#0f161ce6;--panel-strong:#151e26eb;--surface-soft:#19232cb8;--surface-strong:#1d2831e0;--surface-elevated:#232f3af0;--shadow:0 18px 44px #00000057;--correct-bg:#204738e6;--correct-line:#78d6a83d;--incorrect-bg:#4f2626e6;--incorrect-line:#e97e7142;--due-bg:#58461ce6;--due-line:#eac7683d;--due-text:#f0da99;--success-bg:#1f5842eb;--success-text:#d5f4e7;--error-bg:#622c26eb;--error-text:#ffd8d0;--overlay:#05080c8f;--correct-text:#e2fff3;--incorrect-text:#ffe4de;--ink-on-light:#10181e;background:radial-gradient(circle at 0 0,#d0a26029,#0000 32%),radial-gradient(circle at 100% 0,#487a652e,#0000 28%),linear-gradient(#0b1217 0%,#121d24 56%,#18242c 100%);font-family:BIZ UDPGothic,Hiragino Sans,Yu Gothic,sans-serif;line-height:1.5}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;color:var(--ink);-webkit-text-size-adjust:100%;margin:0}button,input,select,textarea{font:inherit;touch-action:manipulation}button{cursor:pointer;color:inherit;border:0}#root{min-height:100vh}.app-shell{min-height:100vh;padding:18px}.topbar{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:14px;display:flex}.topbar h1,.hero-card h2,.panel-header h2,.panel-header h3{margin:0;font-family:BIZ UDPMincho,Yu Mincho,serif;font-weight:700}.eyebrow{color:var(--muted-soft);text-transform:uppercase;letter-spacing:.12em;margin:0 0 4px;font-size:12px}.nav-tabs{border:1px solid var(--line);box-shadow:var(--shadow);background:#11181ec7;border-radius:999px;gap:8px;padding:8px;display:flex}.nav-tabs::-webkit-scrollbar{display:none}.material-switcher::-webkit-scrollbar{display:none}.section-tabs::-webkit-scrollbar{display:none}.nav-tabs button{color:var(--muted-strong);background:0 0;border-radius:999px;padding:10px 16px}.nav-tabs button.active{background:var(--ink);color:var(--ink-on-light)}.flash{border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;margin-bottom:16px;padding:14px 16px}.flash.error{background:var(--error-bg);color:var(--error-text)}.flash.success{background:var(--success-bg);color:var(--success-text)}.offline-status{border:1px solid var(--line-strong);color:var(--muted-strong);box-shadow:var(--shadow);background:#edf2ec0d;border-radius:12px;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px;padding:10px 12px;display:flex}.offline-status.warning{border-color:var(--due-line);background:var(--due-bg);color:var(--due-text)}.offline-status.error{border-color:var(--incorrect-line);background:var(--error-bg);color:var(--error-text)}.offline-status span{overflow-wrap:anywhere;background:#ffffff14;border-radius:999px;min-width:0;padding:4px 8px}.problem-book-panel{gap:16px;display:grid}.problem-book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.problem-book-block{border-top:1px solid var(--line);align-content:start;gap:10px;padding-top:12px;display:grid}.problem-book-compact-details{gap:0;padding-top:8px}.problem-book-compact-details>summary{cursor:pointer;justify-content:space-between;align-items:center;gap:8px;min-height:34px;list-style:none;display:flex}.problem-book-compact-details>summary::-webkit-details-marker{display:none}.problem-book-compact-details[open]{gap:8px}.problem-book-compact-details[open]>summary{margin-bottom:2px}.problem-book-textarea{resize:vertical;min-height:72px}.problem-book-answer-list{gap:8px;max-height:360px;display:grid;overflow:auto}.problem-book-answer-row{border-bottom:1px solid var(--line);grid-template-columns:minmax(96px,132px) minmax(0,1fr);align-items:center;gap:10px;padding:8px 0;display:grid}.problem-book-answer-row>span{overflow-wrap:anywhere;min-width:0}.problem-book-answer-row>span>small{color:var(--muted-strong);margin-top:2px;font-size:.75em;font-weight:500;line-height:1.2;display:block}.problem-book-session-list{gap:8px;max-height:520px;display:grid;overflow-y:auto}.problem-book-session-row{border-bottom:1px solid var(--line);width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border-top:0;border-left:0;border-right:0;grid-template-columns:minmax(130px,180px) 1fr;align-items:center;gap:10px;padding:10px 0;display:grid}.problem-book-session-row>div{min-width:0}.problem-book-session-row .chip-row{justify-content:flex-end;min-width:0}.problem-book-session-row.active{border-color:var(--due-line);background:var(--due-bg)}.problem-book-session-detail{gap:10px;padding-top:8px;display:grid}.problem-book-session-detail-header{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.problem-book-session-detail-header .chip-row{flex:0 auto;justify-content:flex-end;min-width:0}.problem-book-session-detail-header .pill-button{padding:6px 9px;font-size:12px}.problem-book-session-detail .material-table-wrap{overflow-x:visible}.problem-book-history-header{justify-content:space-between;align-items:center;gap:10px;display:flex}.problem-book-history-header .pill-button{padding:7px 10px;font-size:12px}.problem-book-detail-table{table-layout:fixed;width:100%;min-width:0}.problem-book-detail-number-col{width:24%}.problem-book-detail-result-col{width:16%}.problem-book-detail-meta-col{width:14%}.problem-book-detail-choice-col{width:16%}.problem-book-detail-table th,.problem-book-detail-table td{white-space:normal;padding:8px}.problem-book-detail-number-cell{overflow-wrap:anywhere;font-weight:700}.problem-book-detail-number-cell small{color:var(--muted-strong);margin-top:2px;font-size:.75em;font-weight:500;line-height:1.2;display:block}.problem-book-detail-result-cell{text-align:right}.problem-book-detail-choice-cell{text-align:center;font-variant-numeric:tabular-nums;font-weight:700}.problem-book-detail-result-cell .chip{white-space:nowrap}.problem-book-trend-bars{gap:8px;display:grid}.problem-book-trend-row{color:var(--muted);grid-template-columns:minmax(140px,180px) 1fr 48px;align-items:center;gap:10px;font-size:.9rem;display:grid}.problem-book-trend-progress{background:var(--surface-soft);appearance:none;border:0;border-radius:999px;width:100%;height:10px;overflow:hidden}.problem-book-trend-progress::-webkit-progress-bar{border-radius:inherit;background:var(--surface-soft)}.problem-book-trend-progress::-webkit-progress-value{border-radius:inherit;background:var(--correct-text)}.problem-book-trend-progress::-moz-progress-bar{border-radius:inherit;background:var(--correct-text)}.problem-book-block-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.problem-book-weakness-list{gap:8px;display:grid}.problem-book-weakness-row{border-bottom:1px solid var(--line);grid-template-columns:minmax(56px,96px) 1fr;align-items:center;gap:10px;padding:8px 0;display:grid}.problem-book-print-sheet{display:none}.problem-book-print-header{border-bottom:1px solid #111827;justify-content:space-between;align-items:end;gap:12px;margin-bottom:10mm;padding-bottom:4mm;display:flex}.problem-book-print-header p{margin:0 0 2mm;font-size:10pt}.problem-book-print-header h1{margin:0;font-size:16pt}.problem-book-print-grid{grid-template-columns:1fr;gap:4mm;display:grid}.problem-book-print-card{break-inside:avoid;color:#111827;border:1px solid #111827;border-radius:2mm;padding:4mm}.problem-book-print-number{align-items:center;gap:3mm;margin-bottom:3mm;display:flex}.problem-book-print-number span{border:1px solid #111827;border-radius:50%;place-items:center;width:8mm;height:8mm;font-weight:700;display:inline-grid}.problem-book-print-card p{margin:0 0 4mm;font-size:9pt}.problem-book-print-answer-line{border-bottom:1px solid #9ca3af;height:9mm}@media print{@page{size:A6;margin:8mm}body{color:#111827;background:#fff}body *{visibility:hidden}.problem-book-print-sheet,.problem-book-print-sheet *{visibility:visible}.problem-book-print-sheet{color:#111827;background:#fff;width:100%;min-height:100%;padding:0;display:block;position:absolute;inset:0}}.workspace{grid-template-columns:minmax(0,2fr) minmax(320px,420px);align-items:start;gap:16px;display:grid}.workspace.single-column{grid-template-columns:minmax(0,1fr)}.main-panel,.detail-panel,.panel,.hero-card,.modal-card,.quick-log-sheet{background:var(--panel);border:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:var(--shadow)}.main-panel{border-radius:24px;padding:18px}.detail-panel{border-radius:24px;padding:16px;position:sticky;top:18px}.detail-panel.empty{align-items:center;min-height:420px;display:flex}.loading-state{place-items:center;min-height:60vh;font-size:18px;display:grid}.auth-shell{place-items:center;min-height:68vh;display:grid}.auth-card{border:1px solid var(--line);background:var(--panel);width:min(100%,420px);box-shadow:var(--shadow);border-radius:20px;gap:16px;padding:18px;display:grid}.stack{gap:14px;display:grid}.split-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.hero-card,.panel,.modal-card,.quick-log-sheet{border-radius:20px;padding:16px}.hero-card{justify-content:space-between;align-items:flex-end;gap:20px;display:flex}.hero-copy,.subtle{color:var(--muted-strong)}.subtle{font-size:13px;line-height:1.35}.hero-copy{max-width:44rem;margin-top:8px}.hero-actions,.inline-actions,.chip-row,.pill-row,.section-pills,.material-switcher,.section-tabs{flex-wrap:wrap;gap:6px;display:flex}.primary,.secondary,.ghost,.danger-text,.material-launch,.question-tile,.switch-chip,.section-tab,.pill-button{transition:transform .14s,background-color .14s,border-color .14s}.primary:hover,.secondary:hover,.ghost:hover,.danger-text:hover,.material-launch:hover,.question-tile:hover,.switch-chip:hover,.section-tab:hover,.pill-button:hover{transform:translateY(-1px)}.primary,.secondary,.ghost{border-radius:12px;padding:10px 14px}.primary{background:var(--ink);color:var(--ink-on-light)}.primary.success{color:var(--correct-text);background:#255f48}.primary.danger{color:var(--incorrect-text);background:#9a4d42}.secondary{background:var(--surface-strong);color:var(--ink);border:1px solid var(--line)}.ghost{border:1px solid var(--line);color:var(--ink);background:0 0}.danger-text{color:#e78a7e;background:0 0;padding:10px 0}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.stat-card{background:var(--panel-strong);border:1px solid var(--line);border-radius:20px;padding:14px}.stat-card p{color:var(--muted-strong);margin:0 0 8px}.stat-card strong{font-size:28px}.panel-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.panel-subtitle{color:var(--muted-strong);margin:0 0 8px;font-size:13px}.card-list,.history-list{gap:12px;display:grid}.material-card,.review-card,.detail-card,.history-item,.empty-state{background:var(--panel-strong);border:1px solid var(--line);border-radius:20px}.material-card,.review-card,.detail-card,.history-item{padding:12px}.material-launch{text-align:left;width:100%;color:var(--ink);background:0 0;gap:10px;padding:0;display:grid}.material-type{color:var(--muted-strong);margin:0 0 6px;font-size:13px}.material-card h3,.material-card h4,.review-card h3,.review-card h4,.empty-state h4{margin:0}.material-metrics,.mini-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.mini-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.material-metrics div,.mini-stats div{background:var(--surface-soft);border-radius:16px;padding:6px 8px}.material-metrics dt,.mini-stats dt{color:var(--muted-strong);font-size:11px}.material-metrics dd,.mini-stats dd{margin:4px 0 0;font-size:15px;font-weight:700}.quick-metrics{margin-top:10px}.pill,.chip,.switch-chip,.section-tab,.pill-button{background:var(--surface-elevated);border:1px solid var(--line);color:var(--muted-strong);border-radius:999px;justify-content:center;align-items:center;padding:6px 10px;font-size:12px;display:inline-flex}.pill.muted,.chip.muted{color:var(--muted-strong)}.chip.correct{background:var(--correct-bg);color:var(--correct-text)}.chip.incorrect{background:var(--incorrect-bg);color:var(--incorrect-text)}.chip.due{background:var(--due-bg);border-color:var(--due-line);color:var(--due-text)}.switch-chip.active,.section-tab.active,.pill-button.active{background:var(--ink);color:var(--ink-on-light);border-color:var(--ink)}.question-grid{grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:8px;display:grid}.question-range-toolbar{background:var(--surface-soft);border:1px solid var(--line);border-radius:16px;gap:8px;margin-bottom:8px;padding:10px;display:grid}.question-range-summary{gap:4px;display:grid}.question-range-summary strong{font-size:20px;line-height:1}.question-range-controls,.question-range-jump{grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:8px;display:grid}.question-range-jump{grid-template-columns:minmax(0,1fr) auto}.question-range-select{min-width:0}.range-cycle-card,.range-ops-card{background:var(--surface-soft);border:1px solid var(--line);border-radius:16px;gap:8px;margin-bottom:8px;padding:10px;display:grid}.review-queue-panel{border:1px solid var(--line);background:var(--surface-soft);border-radius:16px;overflow:hidden}.review-queue-toggle{cursor:pointer;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;list-style:none;display:flex}.review-queue-toggle::-webkit-details-marker{display:none}.review-queue-panel[open] .review-queue-toggle{border-bottom:1px solid var(--line)}.review-queue-content{gap:8px;padding:10px 12px;display:grid}.review-queue-list{gap:8px;display:grid}.review-queue-item{border:1px solid var(--line);background:var(--surface-strong);border-radius:12px;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px;padding:8px;display:grid}.review-queue-item.active{background:var(--surface-elevated);border-color:#edf2ec38}.review-queue-focus{min-width:0;color:var(--ink);text-align:left;background:0 0;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:0;display:grid}.review-queue-copy{min-width:0}.review-queue-copy strong{display:block}.review-queue-copy .subtle{margin-top:2px}.review-queue-defer{min-width:88px}.range-ops-card.active{background:var(--surface-strong);border-color:#edf2ec38}.range-cycle-header,.range-ops-row{justify-content:space-between;align-items:center;gap:10px;display:flex}.range-cycle-header strong{font-size:20px;line-height:1;display:block}.range-ops-summary{flex-wrap:wrap}.range-ops-actions{flex-wrap:wrap;justify-content:flex-end}.bulk-range-actions{flex-wrap:wrap}.range-history-panel{border:1px solid var(--line);background:var(--surface-soft);border-radius:12px;overflow:hidden}.range-history-toggle{cursor:pointer;justify-content:space-between;align-items:center;gap:8px;padding:9px 12px;list-style:none;display:flex}.range-history-toggle::-webkit-details-marker{display:none}.range-history-panel[open] .range-history-toggle{border-bottom:1px solid var(--line)}.range-cycle-list{gap:8px;padding:8px;display:grid}.range-cycle-item{border:1px solid var(--line);background:var(--surface-strong);border-radius:12px;overflow:hidden}.range-cycle-summary{cursor:pointer;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:10px 12px;list-style:none;display:grid}.range-cycle-summary::-webkit-details-marker{display:none}.range-cycle-item[open] .range-cycle-summary{border-bottom:1px solid var(--line)}.range-cycle-item>.chip-row,.range-cycle-records{padding:10px 12px 0}.range-cycle-records{gap:8px;padding-bottom:12px;display:grid}.range-cycle-record{border:1px solid var(--line);background:#161f27eb;border-radius:10px;padding:8px}.question-tile{background:var(--surface-strong);border:1px solid var(--line);min-height:60px;color:var(--ink);border-radius:14px;align-content:center;justify-items:center;gap:2px;display:grid}.question-grid.bulk-brush-enabled .question-tile{touch-action:pan-y;-webkit-user-select:none;user-select:none}.question-tile strong{font-size:15px}.question-tile span{color:var(--muted-strong);font-size:10px}.question-tile>span:not(.question-status-label){display:none}.question-status-label{line-height:1.1}.question-tile.correct{background:var(--correct-bg);border-color:var(--correct-line)}.question-tile.correct strong,.question-tile.correct span{color:var(--correct-text)}.question-tile.mastered{background:#2d3a38db;border-color:#f0da9957;position:relative;box-shadow:inset 0 0 0 1px #f0da9914}.question-tile.mastered strong,.question-tile.mastered span{color:#f5e8b8}.mastery-crown{object-fit:contain;pointer-events:none;z-index:1;filter:drop-shadow(0 0 7px #ffe07d57)drop-shadow(0 2px 4px #00000075);width:28px;height:28px;position:absolute;top:3px;right:5px}.question-tile.incorrect{background:var(--incorrect-bg);border-color:var(--incorrect-line)}.question-tile.incorrect strong,.question-tile.incorrect span{color:var(--incorrect-text)}.question-tile.loading{background:#26313ae0;border-color:#91aabc57}.question-tile.loading span{color:#c4d3dd}.question-tile.loading .question-status-label{letter-spacing:.18em;opacity:.72;min-width:2.4em;font-size:14px}.question-tile.error{background:var(--incorrect-bg);border-color:var(--incorrect-line)}.question-tile.error span{color:var(--incorrect-text)}.question-tile.active{outline-offset:2px;outline:2px solid #edf2ecb3}.question-tile.bulk-mode{border-style:dashed}.question-tile.bulk-selected{outline-offset:2px;background:#4e6e8147;border-style:solid;outline:2px solid #edf2ecc7}.question-tile.bulk-disabled{opacity:.48}.question-tile.review-hidden{visibility:hidden;pointer-events:none}.question-grid-meta{margin:2px 0 8px}.mastered-range-note{color:#f5e8b8;background:#58461c52;border:1px solid #f0da993d;border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin:0 0 8px;padding:10px 12px;font-weight:700;display:flex}.mastered-range-note.error{border-color:var(--incorrect-line);background:var(--incorrect-bg);color:#ffd9d2}.quick-log-sheet{z-index:20;justify-content:space-between;align-items:center;gap:10px;display:flex;position:sticky;bottom:12px}.quick-log-sheet:has(.empty-state){display:none}.quick-log-sheet>div:first-child{min-width:0}.quick-log-copy{gap:2px;min-width:0;display:grid}.quick-confidence-group{flex-wrap:wrap;flex:0 auto;align-items:center;gap:6px;display:flex}.quick-record-meta{flex:360px;gap:8px;min-width:min(360px,100%);display:grid}.quick-weakness-group{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.quick-confidence-label{color:var(--muted-strong);font-size:11px;font-weight:800}.quick-confidence-group .pill-button,.quick-weakness-group .pill-button{min-height:32px;padding:6px 10px;font-size:12px}.quick-meta-fields{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:6px;display:grid}.quick-meta-fields .text-input{min-height:34px;padding:7px 10px}.quick-log-sheet h3{margin:0}.detail-card{gap:12px;display:grid}.hero-metric{font-size:30px;line-height:1}.history-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.history-overview-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.history-mini-list{gap:10px;display:grid}.history-day-launch{background:var(--surface-strong);border:1px solid var(--line);width:100%;color:var(--ink);text-align:left;border-radius:18px;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.history-day-launch strong{font-size:22px}.history-progress{gap:12px;display:grid}.history-progress-bar{appearance:none;border:1px solid var(--line);background:#1d2831cc;border-radius:999px;width:100%;height:14px;padding:0;display:block;overflow:hidden}.history-progress-bar::-webkit-progress-bar{background:0 0}.history-progress-bar::-webkit-progress-value{background:linear-gradient(90deg,#2f6a50 0%,#7eb38a 100%);border-radius:999px}.history-progress-bar::-moz-progress-bar{background:linear-gradient(90deg,#2f6a50 0%,#7eb38a 100%);border-radius:999px;height:100%}.milestone-row{flex-wrap:wrap;gap:8px;display:flex}.milestone-chip{text-align:center;background:var(--surface-strong);border:1px solid var(--line);min-width:44px;color:var(--muted-strong);border-radius:999px;padding:6px 10px}.milestone-chip.achieved{background:var(--correct-bg);border-color:var(--correct-line);color:var(--correct-text)}.calendar-toolbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.calendar-weekdays,.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;display:grid}.calendar-weekdays{margin-bottom:8px}.calendar-weekdays span{text-align:center;color:var(--muted-strong);font-size:12px}.calendar-cell{background:var(--surface-soft);border:1px solid var(--line);min-height:86px;color:var(--ink);border-radius:18px;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:10px;display:flex}.calendar-cell.outside{opacity:.62}.calendar-cell.has-record{background:var(--surface-strong)}.calendar-cell.today{border-color:#78d6a857}.calendar-cell.selected{outline-offset:1px;outline:2px solid #edf2ecb3}.calendar-day-number{color:var(--muted-strong);font-size:13px}.calendar-study-value{font-size:28px;line-height:1}.empty-state{text-align:center;padding:24px}.empty-state p{margin:8px 0 0}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.field{gap:8px;display:grid}.field span{color:var(--muted-strong);font-size:14px}.field-help{color:var(--muted-strong);margin:0;font-size:14px;line-height:1.6}.check-row{color:var(--muted-strong);align-items:center;gap:10px;font-size:14px;line-height:1.4;display:flex}.check-row input{width:18px;height:18px;accent-color:var(--accent);flex:none}.text-input,.select-input,.text-area,.prompt-box{border:1px solid var(--line);width:100%;color:var(--ink);background:#121920f5;border-radius:14px;padding:12px 14px}.text-area,.prompt-box{resize:vertical}.prompt-box{min-height:180px}.mono-block{border:1px solid var(--line);white-space:nowrap;background:#121920f5;border-radius:14px;padding:12px 14px;font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:13px;overflow-x:auto}.modal-backdrop{background:var(--overlay);place-items:start center;padding:24px;display:grid;position:fixed;inset:0;overflow-y:auto}.modal-card{width:min(720px,100%);max-height:calc(100vh - 48px);margin:auto 0;overflow-y:auto}.data-manager-backdrop{z-index:100;padding-bottom:max(20px, env(safe-area-inset-bottom))}.data-manager-card{gap:16px;display:grid}.data-manager-section{border-top:1px solid var(--line);gap:12px;padding-top:16px;display:grid}.data-manager-section h3,.data-manager-section p{margin:0}.data-manager-prepared{overflow-wrap:anywhere;gap:10px;display:grid}@media (width<=600px){.data-manager-backdrop{place-items:end center;padding:0}.data-manager-card{width:100%;max-height:min(92dvh, calc(100vh - env(safe-area-inset-top)));padding:18px 16px max(20px, env(safe-area-inset-bottom));border-radius:20px 20px 0 0;margin:0}.data-manager-card button,.data-manager-card input[type=file],.data-manager-card select{min-height:44px}}.redesign-page,.study-main-column,.materials-table-column,.history-redesign-layout,.analysis-stack{gap:14px;display:grid}.decision-strip,.action-card,.metric-tile,.decision-card,.material-status-row,.timeline-item,.rule-row,.cluster-row{border:1px solid var(--line);background:var(--panel-strong);border-radius:8px}.decision-strip{justify-content:space-between;align-items:center;gap:16px;padding:16px;display:flex}.decision-strip h2,.study-hero-panel h2,.range-headline h3,.decision-card h3,.materials-table-column h2,.history-summary-panel h2{margin:0}.decision-actions{flex-wrap:wrap;gap:8px;display:flex}.home-action-grid{grid-template-columns:2fr repeat(3,minmax(0,1fr));gap:10px;display:grid}.action-card{gap:8px;padding:14px;display:grid}.action-card span,.metric-tile span,.material-status-row span,.rule-row span,.cluster-row small{color:var(--muted-strong);font-size:12px}.action-card strong{font-size:24px}.action-card p{color:var(--muted-strong);margin:0}.metric-tile{gap:5px;min-width:0;padding:10px 12px;display:grid}.metric-tile strong{overflow-wrap:anywhere;font-size:22px;line-height:1.05}.metric-tile.correct{border-color:var(--correct-line);background:#2047388a}.metric-tile.incorrect{border-color:var(--incorrect-line);background:#4f262694}.metric-tile.due{border-color:var(--due-line);background:#58461c8f}.redesign-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.home-dashboard-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;display:grid}.home-dashboard-grid .wide{grid-column:1/-1}.ops-panel{gap:12px;display:grid}.material-status-list,.cycle-bars,.timeline-list,.rule-list,.quality-grid{gap:8px;display:grid}.diagnostics-details{margin-top:10px}.diagnostics-details summary{cursor:pointer;color:var(--ink);font-weight:700}.diagnostics-table-wrap{margin-top:8px;overflow-x:auto}.material-table.diagnostics-table{min-width:720px}.diagnostics-table td{overflow-wrap:anywhere;vertical-align:top;max-width:220px}.material-status-row{width:100%;color:var(--ink);text-align:left;grid-template-columns:minmax(150px,1fr) minmax(180px,1.2fr) auto;align-items:center;gap:12px;padding:10px 12px;display:grid}.material-status-row strong{display:block}.progress-meter{appearance:none;border:1px solid var(--line);background:#0a1015b3;border-radius:999px;min-width:80px;height:8px;padding:0;overflow:hidden}.progress-meter::-webkit-progress-bar{background:0 0}.progress-meter::-webkit-progress-value{border-radius:inherit;background:#4cbf82}.progress-meter::-moz-progress-bar{border-radius:inherit;background:#4cbf82}.progress-meter.incorrect::-webkit-progress-value{background:#e76f61}.progress-meter.incorrect::-moz-progress-bar{background:#e76f61}.progress-meter.due::-webkit-progress-value{background:#e7bd55}.progress-meter.due::-moz-progress-bar{background:#e7bd55}.progress-meter.accent::-webkit-progress-value{background:#49c6d7}.progress-meter.accent::-moz-progress-bar{background:#49c6d7}.range-heatmap{grid-template-columns:repeat(auto-fit,minmax(74px,1fr));gap:6px;display:grid}.range-heat-cell{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;gap:4px;min-height:54px;padding:8px;display:grid}.range-heat-cell span{color:var(--muted-strong);font-size:11px}.range-heat-cell strong{font-size:16px}.range-heat-cell.correct{border-color:var(--correct-line);background:#204738b8}.range-heat-cell.incorrect{border-color:var(--incorrect-line);background:#4f2626c7}.range-heat-cell.due{border-color:var(--due-line);background:#58461cc7}.study-redesign-layout{grid-template-columns:minmax(0,1fr) minmax(300px,360px);align-items:start;gap:14px;display:grid}.study-decision-panel,.materials-side-panel{gap:10px;display:grid;position:sticky;top:16px}.study-metric-strip,.decision-metrics,.quality-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;display:grid}.decision-metrics,.quality-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.study-hero-panel,.range-control-panel,.question-grid-panel,.material-table-panel,.history-summary-panel{border-radius:10px}.range-headline{justify-content:space-between;gap:14px;display:flex}.range-headline h3{font-size:32px}.question-range-toolbar.redesigned{grid-template-columns:auto minmax(180px,1fr) auto minmax(220px,1.2fr);align-items:center;margin:12px 0 0}.redesign-bulk-card{border-radius:10px;margin:0}.redesign-question-grid{grid-template-columns:repeat(auto-fill,minmax(68px,1fr))}.question-tile.due{background:var(--due-bg);border-color:var(--due-line)}.question-tile.due strong,.question-tile.due span{color:var(--due-text)}.question-tile.bulk-selected{outline-color:#49c6d7f2;box-shadow:0 0 0 3px #49c6d71f}.decision-card{gap:10px;padding:12px;display:grid}.rule-row{grid-template-columns:minmax(0,1fr) minmax(0,auto);align-items:center;gap:10px;padding:9px 10px;display:grid}.rule-row span,.rule-row strong{overflow-wrap:anywhere;min-width:0}.rule-row strong{text-align:right}.rule-row.correct{border-color:var(--correct-line)}.rule-row.incorrect{border-color:var(--incorrect-line)}.rule-row.due{border-color:var(--due-line)}.cycle-bar-row{grid-template-columns:58px 86px 42px minmax(80px,1fr);align-items:center;gap:8px;padding:6px 0;display:grid}.cycle-bar-row small{color:var(--muted-strong)}.cluster-list{gap:7px;display:grid}.cluster-row{grid-template-columns:18px 42px minmax(0,1fr) 74px;align-items:center;gap:8px;padding:8px;display:grid}.cluster-row>span,.cluster-row strong{color:#ff8d7f}.cluster-bars{gap:3px;display:flex}.cluster-bars i{background:#edf2ec14;border-radius:2px;width:10px;height:10px}.cluster-bars i.active{background:#e76f61}.materials-redesign-layout{grid-template-columns:minmax(0,1fr) minmax(300px,380px);align-items:start;gap:14px;display:grid}.material-toolbar{justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.material-toolbar .text-input{max-width:320px}.material-table-wrap{overflow-x:auto}.material-table{border-collapse:collapse;width:100%;min-width:900px}.material-table.problem-book-detail-table{min-width:0}.material-table th,.material-table td{border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;padding:10px 12px;font-size:13px}.material-table th{color:var(--muted-strong);font-weight:600}.table-link{color:var(--ink);text-align:left;background:0 0;padding:0;font-weight:700}.compact-actions{flex-wrap:nowrap}.compact-actions .ghost{padding:6px 8px}.history-main-grid{grid-template-columns:minmax(360px,.9fr) minmax(280px,.7fr) minmax(280px,.7fr);align-items:start;gap:14px;display:grid}.redesigned-calendar .calendar-cell{border-radius:8px;min-height:72px}.timeline-item{grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 10px;display:grid}.timeline-item.correct{border-color:var(--correct-line)}.timeline-item.incorrect{border-color:var(--incorrect-line)}.timeline-item span,.timeline-item small{color:var(--muted-strong)}.history-record-table{min-width:760px}.history-record-table-panel{overflow:hidden}.nav-tabs button:nth-child(2){order:2}.nav-tabs button:nth-child(3){order:1}.nav-tabs button:nth-child(5){order:4}.nav-tabs button:nth-child(6){order:5}@media (width>=1181px){.app-shell{padding:8px 10px}.topbar{align-items:center;margin-bottom:8px}.topbar h1{font-size:30px;line-height:1}.eyebrow{margin-bottom:2px;font-size:11px}.nav-tabs{gap:4px;padding:5px}.nav-tabs button{padding:7px 13px}.main-panel{border-radius:16px;padding:8px}.redesign-page,.study-main-column,.materials-table-column,.history-redesign-layout,.analysis-stack{gap:8px}.panel,.hero-card,.quick-log-sheet{border-radius:10px;padding:8px}.panel-header{margin-bottom:6px}.study-redesign-layout{grid-template-columns:minmax(0,1fr) minmax(286px,330px);gap:10px}.study-decision-panel,.materials-side-panel{gap:6px;top:8px}.decision-card{gap:5px;padding:7px}.decision-card h3{font-size:15px}.study-hero-panel .subtle{margin:4px 0 0}.material-switcher,.question-display-filters{gap:5px;margin-top:6px}.pill,.chip,.switch-chip,.section-tab,.pill-button{padding:4px 8px;font-size:11px}.study-metric-strip,.decision-metrics,.quality-grid{gap:6px}.metric-tile{gap:3px;padding:7px 9px}.metric-tile strong{font-size:18px}.range-control-panel{padding:8px}.range-headline h3{font-size:26px}.question-range-toolbar.redesigned{grid-template-columns:auto minmax(180px,1fr) auto minmax(260px,1.4fr);gap:6px;margin-top:6px;padding:6px}.question-range-jump{gap:6px}.text-input,.select-input,.text-area,.prompt-box,.primary,.secondary,.ghost{border-radius:9px;padding:7px 9px}.redesign-bulk-card{gap:6px;padding:8px}.bulk-range-actions{gap:6px}.question-grid-panel{padding:8px}.question-grid-meta{margin-bottom:6px}.redesign-question-grid{grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:6px}.question-tile{border-radius:8px;min-height:42px}.question-tile strong{font-size:14px}.question-tile span{font-size:9px}.range-heatmap{grid-template-columns:repeat(auto-fit,minmax(54px,1fr));gap:5px}.range-heat-cell{min-height:38px;padding:5px}.range-heat-cell span{font-size:9px}.range-heat-cell strong{font-size:14px}.rule-row{gap:6px;padding:5px 7px}.rule-row span,.rule-row strong{font-size:12px}.cycle-bar-row{grid-template-columns:46px 74px 34px minmax(70px,1fr);gap:5px;padding:2px 0;font-size:11px}.cluster-list{gap:5px}.cluster-row{grid-template-columns:14px 34px minmax(0,1fr) 54px;gap:5px;padding:5px}.cluster-row small{font-size:10px}.cluster-bars i{width:8px;height:8px}.home-action-grid,.home-dashboard-grid{gap:10px}.decision-strip,.action-card{padding:10px}.action-card strong{font-size:20px}.material-status-row{padding:8px}.materials-redesign-layout{grid-template-columns:minmax(0,1fr) minmax(286px,340px);gap:10px}.material-toolbar{margin-bottom:8px}.material-table th,.material-table td{padding:7px 9px;font-size:12px}.compact-actions .ghost{padding:5px 6px}.history-main-grid{grid-template-columns:minmax(330px,.85fr) minmax(260px,.7fr) minmax(260px,.7fr);gap:10px}.redesigned-calendar{gap:5px}.redesigned-calendar .calendar-cell{min-height:54px;padding:7px}.calendar-study-value{font-size:20px}.timeline-item{padding:7px 8px}}@media (width>=1181px) and (height<=850px){.app-shell{padding:5px 8px}.topbar{margin-bottom:6px}.topbar h1{font-size:23px}.nav-tabs button{padding:5px 10px;font-size:14px}.main-panel{padding:5px}.study-redesign-layout{grid-template-columns:minmax(0,1fr) minmax(260px,300px);gap:8px}.study-main-column{gap:6px}.study-hero-panel .subtle{display:none}.material-switcher,.question-display-filters{gap:4px;margin-top:4px}.pill,.chip,.switch-chip,.section-tab,.pill-button{padding:3px 7px;font-size:10px}.study-metric-strip{gap:4px}.metric-tile{gap:1px;padding:4px 6px}.metric-tile strong{font-size:16px}.metric-tile span{font-size:10px}.range-control-panel{padding:6px}.range-headline{align-items:center}.range-headline h3{font-size:22px}.range-headline .subtle{margin:0;font-size:12px}.question-range-toolbar.redesigned{grid-template-columns:auto minmax(150px,1fr) auto minmax(120px,.8fr);gap:5px;margin-top:4px;padding:5px}.text-input,.select-input,.text-area,.prompt-box,.primary,.secondary,.ghost{padding:5px 8px;font-size:13px}.redesign-bulk-card{gap:4px;padding:6px}.bulk-range-actions{gap:4px}.question-grid-panel{padding:6px}.question-grid-meta{margin-bottom:4px}.redesign-question-grid{grid-template-columns:repeat(auto-fill,minmax(36px,1fr));gap:4px}.question-tile{border-radius:6px;gap:0;min-height:32px}.question-tile strong{font-size:12px}.question-tile span{font-size:7px}.study-decision-panel{scrollbar-width:thin;gap:5px;max-height:calc(100vh - 70px);padding-right:2px;overflow-y:auto}.decision-card{gap:4px;padding:6px}.decision-card h3{font-size:13px}.decision-card .eyebrow{font-size:10px}.decision-metrics{gap:4px}.range-heatmap{grid-template-columns:repeat(auto-fit,minmax(40px,1fr));gap:4px}.range-heat-cell{min-height:30px;padding:3px}.range-heat-cell span{font-size:8px}.range-heat-cell strong{font-size:12px}.rule-row{gap:5px;padding:4px 5px}.rule-row span,.rule-row strong{font-size:10px}.cycle-bar-row{grid-template-columns:34px 58px 28px minmax(40px,1fr);gap:4px;font-size:10px}.progress-meter{height:5px}.cluster-row{grid-template-columns:12px 28px minmax(0,1fr) 42px;gap:4px;padding:4px}.cluster-row small{font-size:9px}.materials-redesign-layout{grid-template-columns:minmax(0,1fr) minmax(250px,300px);gap:8px}.materials-table-column{gap:6px}.materials-table-column .panel-header h2{font-size:20px}.material-toolbar{gap:5px;margin-bottom:5px}.material-toolbar .text-input{max-width:220px}.material-table{min-width:760px}.material-table th,.material-table td{padding:4px 6px;font-size:11px}.material-table .chip{padding:2px 5px;font-size:9px}.compact-actions .ghost{padding:3px 5px;font-size:11px}.materials-side-panel{scrollbar-width:thin;gap:5px;max-height:calc(100vh - 72px);padding-right:2px;overflow-y:auto}.materials-side-panel .range-heatmap{grid-template-columns:repeat(auto-fit,minmax(36px,1fr))}.materials-side-panel .quality-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}}@media (width<=1180px){.study-redesign-layout,.materials-redesign-layout,.history-main-grid,.home-dashboard-grid{grid-template-columns:1fr}.study-decision-panel,.materials-side-panel{position:static}.home-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){.decision-strip,.material-toolbar,.range-headline{flex-direction:column;align-items:stretch}.home-action-grid,.redesign-stats,.study-metric-strip,.decision-metrics,.quality-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.question-range-toolbar.redesigned,.problem-book-grid,.problem-book-answer-row,.problem-book-session-row,.problem-book-trend-row,.problem-book-weakness-row,.material-status-row,.timeline-item,.cycle-bar-row,.cluster-row,.rule-row{grid-template-columns:1fr}}@media (width<=1100px){.workspace,.split-panel{grid-template-columns:1fr}.detail-panel{position:static}.stats-grid,.material-metrics,.history-overview-grid,.history-overview-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){body,#root,.app-shell,.workspace,.main-panel,.panel,.study-redesign-layout,.study-redesign-layout>*,.problem-book-panel,.problem-book-block,.problem-book-session-detail{min-width:0;max-width:100%}.app-shell{padding:10px 10px calc(14px + env(safe-area-inset-bottom));overflow-x:hidden}.topbar,.hero-card,.review-main,.quick-log-sheet{flex-direction:column;align-items:stretch}.topbar{gap:10px;margin-bottom:10px}.problem-book-history-header{flex-wrap:wrap;align-items:flex-start}.problem-book-session-detail-header{flex-direction:column;align-items:flex-start}.problem-book-history-header .chip-row,.problem-book-session-detail-header .chip-row{flex-wrap:wrap;justify-content:flex-start;gap:6px;width:100%}.problem-book-session-row .chip-row{grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:4px;width:100%;display:grid}.problem-book-session-row .chip{white-space:nowrap;justify-content:center;min-width:0;padding:5px 6px;font-size:12px}.problem-book-detail-table{table-layout:auto;border-collapse:separate;border-spacing:0;width:100%;min-width:0;font-size:12px;display:block}.problem-book-detail-table colgroup,.problem-book-detail-table thead{display:none}.problem-book-detail-table tbody{gap:8px;display:grid}.problem-book-detail-table tr{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"number result""previous change""answer correct";gap:6px 8px;min-width:0;padding:8px 0;display:grid}.problem-book-detail-table th,.problem-book-detail-table td{vertical-align:middle;overflow-wrap:anywhere;border-bottom:0;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px;min-width:0;padding:0;font-size:11px;line-height:1.25;display:grid}.problem-book-detail-table td:before{content:attr(data-label);color:var(--muted-strong);white-space:nowrap;font-size:10px;font-weight:600;line-height:1.1}.problem-book-detail-number-cell{overflow-wrap:anywhere;grid-area:number}.problem-book-detail-result-cell{grid-area:result;justify-self:end}.problem-book-detail-result-cell:before{content:none}.problem-book-detail-meta-cell,.problem-book-detail-choice-cell{background:var(--surface-soft);border-radius:8px;padding:5px 6px}.problem-book-detail-meta-cell{text-align:left}.problem-book-detail-meta-cell:nth-child(3){grid-area:previous}.problem-book-detail-meta-cell:nth-child(4){grid-area:change}.problem-book-detail-choice-cell:nth-child(5){grid-area:answer}.problem-book-detail-choice-cell:nth-child(6){grid-area:correct}.problem-book-detail-table .chip{white-space:nowrap;justify-content:center;min-width:0;padding:3px 4px;font-size:10px}.history-record-table-panel .material-table-wrap{overflow-x:visible}.history-record-table{border-collapse:separate;border-spacing:0;width:100%;min-width:0;display:block}.history-record-table thead{display:none}.history-record-table tbody{gap:8px;display:grid}.history-record-table tr{border-bottom:1px solid var(--line);grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;padding:9px 0;display:grid}.history-record-table td{overflow-wrap:anywhere;border-bottom:0;gap:2px;min-width:0;padding:0;display:grid}.history-record-table td:before{content:attr(data-label);color:var(--muted);font-size:10px;font-weight:600;line-height:1.1}.history-record-table td:nth-child(2),.history-record-table td:nth-child(3),.history-record-table td:nth-child(7){grid-column:1/-1}.panel-header{flex-flow:wrap;align-items:center;gap:8px;margin-bottom:8px}.panel-header>div{min-width:0}.nav-tabs{scroll-snap-type:x proximity;border-radius:16px;flex-wrap:nowrap;gap:4px;width:100%;padding:4px;overflow-x:auto}.nav-tabs button{scroll-snap-align:start;flex:none;min-height:36px;padding:8px 10px}.main-panel,.detail-panel{border-radius:18px;padding:12px}.main-panel:has(.quick-log-sheet:not(:has(.empty-state))){padding-bottom:340px}.hero-card,.panel,.modal-card,.quick-log-sheet{border-radius:16px;padding:10px}.hero-copy{font-size:14px}.hero-actions,.inline-actions{width:100%}.hero-actions>*,.inline-actions>*{flex:1 1 0;min-height:46px}.material-switcher,.section-tabs{padding-bottom:4px;scrollbar-width:none;flex-wrap:nowrap;width:100%;min-width:0;max-width:100%;margin-inline:-2px;padding-inline:2px;overflow:auto hidden}.switch-chip,.section-tab,.pill-button{overflow-wrap:anywhere;white-space:normal;flex:none;max-width:min(72vw,260px);min-height:44px;padding:4px 8px}.material-switcher{flex-wrap:wrap;align-items:stretch;padding-bottom:0;overflow:visible}.material-switcher .switch-chip{text-overflow:clip;white-space:normal;flex:140px;min-width:min(128px,100%);max-width:100%;height:auto;line-height:1.2;overflow:visible}.diagnostics-table-wrap{overflow-x:visible}.material-table.diagnostics-table{min-width:0;display:block}.diagnostics-table thead{display:none}.diagnostics-table tbody{gap:8px;display:grid}.diagnostics-table tr{border:1px solid var(--line);background:#0e171fad;border-radius:10px;gap:6px;padding:10px;display:grid}.diagnostics-table td{border-bottom:0;grid-template-columns:minmax(72px,.4fr) minmax(0,1fr);gap:8px;min-width:0;max-width:none;padding:0;display:grid}.diagnostics-table td:before{content:attr(data-label);color:var(--muted);font-size:11px;font-weight:700}.problem-book-answer-row{gap:6px;min-width:0}.problem-book-answer-row>span,.problem-book-answer-row .chip-row{min-width:0}.problem-book-answer-row .chip-row{flex-wrap:wrap;justify-content:flex-start;display:flex}.problem-book-answer-row .pill-button{flex:44px;min-width:44px;max-width:none;min-height:44px}.card-list,.history-list,.stack{gap:10px}.stats-grid,.form-grid,.history-overview-grid,.history-overview-grid.compact{grid-template-columns:1fr}.material-metrics,.mini-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.material-card,.review-card,.detail-card,.history-item,.empty-state{border-radius:18px}.question-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.question-range-toolbar{border-radius:14px;padding:6px}.range-cycle-card,.range-ops-card{border-radius:14px;padding:8px}.range-cycle-header,.range-ops-row{flex-direction:column;align-items:stretch}.review-queue-toggle,.review-queue-item,.review-queue-focus{grid-template-columns:1fr}.review-queue-toggle{align-items:stretch}.review-queue-defer{width:100%;min-width:0}.range-cycle-summary{grid-template-columns:1fr;gap:4px}.question-range-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.question-range-select{grid-column:1/-1}.question-tile{border-radius:10px;min-height:48px;padding:4px 2px}.question-tile strong{font-size:14px}.question-tile>span:not(.question-status-label){display:none}.question-tile .question-status-label{font-size:9px;line-height:1.05;display:block}.calendar-toolbar{flex-direction:column;align-items:stretch}.calendar-weekdays,.calendar-grid{gap:6px}.calendar-cell{border-radius:14px;min-height:68px;padding:8px}.calendar-study-value{font-size:20px}.quick-log-sheet{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));background:#0f161cfa;border-color:#edf2ec33;flex-direction:column;align-items:stretch;gap:8px;position:fixed;box-shadow:0 16px 40px #0000007a}.quick-confidence-group{width:100%}.quick-record-meta{min-width:0}.quick-weakness-group{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;display:grid}.quick-confidence-group .pill-button,.quick-weakness-group .pill-button{flex:1 1 0;min-height:44px}.quick-weakness-group .pill-button{text-overflow:clip;white-space:normal;max-width:100%;line-height:1.2;overflow:visible}.quick-meta-fields{grid-template-columns:1fr}.quick-log-sheet .hero-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.quick-log-sheet .primary{min-height:56px;font-size:17px;font-weight:700}.modal-backdrop{padding:12px}.modal-card{max-height:calc(100vh - 24px)}}@media (width<=540px){.app-shell{padding:8px 8px calc(12px + env(safe-area-inset-bottom))}.main-panel:has(.quick-log-sheet:not(:has(.empty-state))){padding-bottom:360px}.question-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.question-tile{min-height:44px}.quick-log-sheet{left:8px;right:8px}.question-range-summary strong{font-size:18px}.question-range-jump{grid-template-columns:1fr}.history-overview-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-weekdays span,.calendar-day-number{font-size:11px}.calendar-study-value{font-size:18px}}@media (width<=400px){.nav-tabs button,.primary,.secondary,.ghost{padding:7px 9px}.question-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.question-tile{min-height:44px}.quick-log-sheet .hero-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ink:#f4ece5;--muted:#b9c0b8;--muted-strong:#d2d5cb;--muted-soft:#aab6ad;--line:#495f57;--line-strong:#81694c;--panel:#071d19;--panel-strong:#09221d;--surface-soft:#102a25;--surface-strong:#12312b;--surface-elevated:#14362e;--shadow:0 12px 28px #0008;--correct-bg:#06422d;--correct-line:#12a977;--incorrect-bg:#5a2929;--incorrect-line:#e86260;--due-bg:#423220;--due-line:#d4a965;--due-text:#f2d49d;--success-bg:#0a4735;--success-text:#d4f6e6;--error-bg:#682f30;--error-text:#ffe0da;--overlay:#000b;--correct-text:#ddf9ea;--incorrect-text:#ffe5df;--ink-on-light:#10201c;--adopted-gold:#d7a868;--adopted-gold-light:#f4d59a;--adopted-purple:#b27aff;--adopted-purple-deep:#2e1747;--adopted-mint:#82dec0;--app-safe-area-top:env(safe-area-inset-top,0px)}html,body{overscroll-behavior-y:none;background:#061712}body,#root{min-height:100dvh}@media (width<=480px){:root,body{background:#061b16 url(/ui-assets/emerald-leather.webp) 0 0/384px 384px}}.adopted-app{width:min(100%,480px);min-height:100dvh;padding:max(12px, var(--app-safe-area-top)) 15px calc(104px + env(safe-area-inset-bottom));color:var(--ink);background-color:#061b16;background-image:url(/ui-assets/emerald-leather.webp);background-size:384px 384px;border-left:1px solid #604e37;border-right:1px solid #604e37;margin:0 auto}.adopted-app:before{content:"";z-index:110;width:min(100%,480px);height:var(--app-safe-area-top);pointer-events:none;background:#061b16 url(/ui-assets/emerald-leather.webp) 0 0/384px 384px;position:fixed;top:0;left:50%;transform:translate(-50%)}.adopted-app .workspace,.adopted-app .workspace.single-column,.adopted-app .study-redesign-layout,.adopted-app .materials-redesign-layout,.adopted-app .history-main-grid,.adopted-app .home-dashboard-grid{display:block}.adopted-app .main-panel{box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;border:0;padding:0}.adopted-app .panel{border-color:var(--line);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background-color:#071d19e8}.adopted-startup-error-page{place-items:center;min-height:calc(100dvh - 140px);display:grid}.adopted-startup-error{width:100%;padding:24px 18px}.adopted-startup-error h1{color:var(--adopted-gold-light);margin:0 0 14px;font-size:24px}.adopted-startup-error p{color:var(--muted-strong);margin:0;line-height:1.7}.adopted-startup-error-actions{gap:10px;margin-top:18px;display:grid}.adopted-startup-error-actions button{min-height:48px}.adopted-startup-error-actions button:first-child{border:1px solid var(--adopted-gold);background:var(--surface-soft);border-radius:6px}.adopted-startup-error-actions .adopted-primary-action{letter-spacing:0;margin-top:0;font-size:17px}.adopted-app button:focus-visible,.adopted-app input:focus-visible,.adopted-app select:focus-visible,.adopted-app summary:focus-visible{outline:2px solid var(--adopted-gold-light);outline-offset:2px}.adopted-tabbar{z-index:100;width:min(100%,480px);min-height:calc(72px + env(safe-area-inset-bottom));padding:8px 4px calc(8px + env(safe-area-inset-bottom));border:1px solid var(--adopted-gold);background-color:#071b17f5;background-image:url(/ui-assets/emerald-leather.webp);background-size:384px 384px;border-bottom:0;border-radius:12px 12px 0 0;grid-template-columns:repeat(4,minmax(0,1fr));display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%);box-shadow:0 -8px 25px #0007}.adopted-tabbar button{min-height:56px;color:var(--ink);background:0 0;border-right:1px solid #897a6370;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:4px;font-family:BIZ UDPMincho,Yu Mincho,serif;font-size:13px;display:flex;position:relative}.adopted-tabbar button:last-child{border-right:0}.adopted-tabbar button.active{color:#eed5ff;text-shadow:0 0 12px #af67ff}.adopted-tabbar button.active:after{content:"";background:#e0b7ff;width:5px;height:5px;position:absolute;bottom:1px;transform:rotate(45deg)}.adopted-tabbar img{filter:brightness(0)invert(.94);width:24px;height:24px}.adopted-tabbar button.active img{filter:brightness(0)saturate()invert(73%)sepia(28%)saturate(1535%)hue-rotate(204deg)}.adopted-page{letter-spacing:.02em;gap:16px;font-family:BIZ UDPMincho,Yu Mincho,Hiragino Mincho ProN,serif;display:grid}.adopted-page-header{border-bottom:1px solid var(--adopted-gold);background-image:url(/ui-assets/header-books.webp);background-position:65% -25px;background-repeat:no-repeat;background-size:auto 180px;justify-content:space-between;align-items:flex-end;min-height:88px;padding:16px 0 20px;display:flex}.adopted-page-title{white-space:nowrap;align-items:baseline;gap:10px;display:flex}.adopted-page-title h1{letter-spacing:.09em;text-shadow:0 2px 4px #000b;margin:0;font-size:clamp(29px,8vw,40px);font-weight:700}.adopted-page-title span,.adopted-page-header time{color:var(--adopted-gold-light);white-space:nowrap;font-size:13px}.adopted-page-header time{color:var(--ink)}.ornate-card{border:1px solid var(--adopted-gold);background-color:#071c19e8;border-radius:9px;position:relative;box-shadow:0 5px 18px #0006,inset 0 0 0 2px #7e563a42}.ornate-card:before,.ornate-card:after{pointer-events:none;content:"";background:url(/ui-assets/gold-corner.png) -12px -12px/70px 70px no-repeat;width:30px;height:30px;position:absolute}.ornate-card:before{top:-3px;left:-3px}.ornate-card:after{bottom:-3px;right:-3px;transform:rotate(180deg)}.adopted-subtle{color:var(--muted);overflow-wrap:anywhere}.adopted-gold-mark,.adopted-section-heading button,.adopted-text-link{color:var(--adopted-gold-light)}.adopted-coral{color:#fa7e86}.adopted-mint{color:#56deb0}.adopted-focus-card{padding:18px 13px 12px}.adopted-focus-main{grid-template-columns:minmax(90px,30%) minmax(0,1fr);gap:14px;min-height:154px;display:grid}.adopted-focus-label{border-right:1px solid var(--adopted-gold);text-align:center;padding:6px 12px 8px 4px}.adopted-gold-mark{object-fit:contain;width:35px;height:35px;margin:0 auto;display:block}.adopted-focus-label h2{color:var(--adopted-gold-light);white-space:nowrap;margin:4px 0 8px;font-size:19px}.adopted-focus-label p{margin:0;font-size:12px;line-height:1.65}.adopted-focus-details{min-width:0}.adopted-focus-heading{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;font-size:11px;display:grid}.adopted-focus-heading span{overflow-wrap:anywhere;color:#e7ccf5;background:#21142d;border:1px solid #9f76bf;border-radius:4px;justify-self:start;padding:3px 5px}.adopted-focus-heading strong{overflow-wrap:anywhere;grid-area:2/1/auto/-1;font-size:clamp(20px,5.5vw,26px);font-weight:500;line-height:1.4}.adopted-focus-heading small{white-space:nowrap}.adopted-focus-range{white-space:nowrap;margin:2px 0 5px;font-size:clamp(29px,9vw,45px);font-weight:500;line-height:1.15;display:block}.adopted-focus-stats{border-top:1px solid var(--line);grid-template-columns:1fr .7fr;padding-top:10px;display:grid}.adopted-focus-stats>div+div{border-left:1px solid var(--line);padding-left:12px}.adopted-focus-stats span,.adopted-focus-stats strong{display:block}.adopted-focus-stats span{font-size:12px}.adopted-focus-stats strong{font-size:26px;font-weight:500;line-height:1.1}.adopted-focus-stats small{color:var(--ink);margin-left:3px;font-size:12px}.adopted-focus-empty{padding:28px 0}.adopted-focus-empty strong{font-size:19px}.adopted-primary-action{border:1px solid var(--adopted-gold-light);letter-spacing:.1em;background:#301348;border-radius:6px;justify-content:center;align-items:center;gap:15px;width:100%;min-height:53px;margin-top:12px;font-size:21px;display:flex;position:relative;box-shadow:inset 0 0 0 2px #743ba978,0 0 14px #692da751}.adopted-primary-action span{font-size:29px;position:absolute;right:27px}.adopted-home-metrics{grid-template-columns:1.2fr .8fr 1fr;padding:16px 4px;display:grid}.adopted-home-metrics>*{border-right:1px solid var(--adopted-gold);text-align:center;background:0 0;align-content:start;justify-items:center;gap:2px;min-width:0;min-height:86px;padding:4px 7px;display:grid}.adopted-home-metrics>:last-child{border-right:0}.adopted-home-metrics span{font-size:12px}.adopted-home-metrics strong{font-size:31px;font-weight:500;line-height:1.15}.adopted-home-metrics strong small{font-size:15px}.adopted-home-metrics>button>small{overflow-wrap:anywhere;width:100%;color:var(--muted);font-family:BIZ UDPGothic,sans-serif;font-size:10px}.adopted-text-link{text-align:left;background:0 0;min-height:32px;padding:3px 0}.adopted-section-heading{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.adopted-section-heading h2{margin:0;font-size:21px;font-weight:500}.adopted-section-heading button{white-space:nowrap;background:0 0;min-height:40px}.adopted-section-heading>span{color:var(--muted);font-size:11px}.adopted-home-materials{gap:6px;display:grid}.adopted-home-material{border:1px solid var(--line);text-align:left;background:#071c19e8;border-radius:7px;grid-template-columns:minmax(0,1fr) max-content 8px;align-items:center;gap:6px;min-height:62px;padding:9px;display:grid}.adopted-home-material.focus{border-color:var(--adopted-gold);background-color:#221634}.adopted-home-material-due{border-left:1px solid var(--line);padding-left:8px}.adopted-home-material strong,.adopted-home-material small,.adopted-home-material span{overflow-wrap:anywhere;white-space:normal;display:block}.adopted-home-material-title{border-bottom:1px solid var(--line);grid-column:1/3;min-width:0;padding-bottom:7px}.adopted-home-material>.adopted-chevron{grid-area:1/3/3}.adopted-home-material-progress{min-width:0}.adopted-home-material strong{font-size:18px;font-weight:500}.adopted-home-material small,.adopted-home-material-progress span{font-size:11px}.adopted-home-material-progress .progress-meter{background:#263b35;border:0;width:100%;min-width:0;height:7px;margin-top:5px}.adopted-home-material-progress span,.adopted-home-material-progress small{white-space:normal;overflow-wrap:anywhere;overflow:visible}.adopted-home-material-due strong{font-size:16px}.adopted-chevron{font-size:24px}.adopted-app .progress-meter.accent::-webkit-progress-value{background:var(--adopted-purple)}.adopted-app .progress-meter.accent::-moz-progress-bar{background:var(--adopted-purple)}.adopted-history-bars{padding:14px 11px 11px}.adopted-bars{border-bottom:1px solid var(--line);grid-template-columns:repeat(5,1fr);align-items:end;gap:10px;height:120px;margin-top:10px;display:grid}.adopted-bar-day{text-align:center;grid-template-rows:18px 1fr 18px;height:100%;display:grid}.adopted-bar-day>span,.adopted-bar-day>small{font-size:11px}.adopted-bar-track{flex-direction:column;justify-content:flex-end;display:flex}.adopted-bar-track>div{background:#9671d3;border-radius:5px 5px 0 0;min-height:2px}.adopted-header-caption{overflow-wrap:anywhere;width:105px;color:var(--adopted-gold-light);text-align:right;font-size:11px}.adopted-material-picker,.adopted-section-picker{border:1px solid var(--adopted-gold);background:#081d19e8;border-radius:5px;align-items:center;gap:10px;min-height:46px;padding:0 13px;display:flex}.adopted-material-picker img{filter:brightness(0)saturate()invert(80%)sepia(30%)saturate(571%)hue-rotate(352deg);width:24px;height:24px}.adopted-material-picker select,.adopted-section-picker select{width:100%;min-width:0;min-height:43px;color:var(--ink);background:0 0;border:0;font-family:inherit;font-size:17px}.adopted-material-picker option,.adopted-section-picker option{background:#09221d}.adopted-section-picker{white-space:nowrap;font-size:12px}.adopted-section-picker select{font-size:14px}.adopted-study-range{border-bottom:1px solid var(--adopted-gold);text-align:center;grid-template-columns:43px minmax(0,1fr) 43px;align-items:center;gap:9px;padding:3px 8px 10px;display:grid}.adopted-study-range button{border:1px solid var(--adopted-gold);background:#12201e;border-radius:50%;width:43px;height:43px;font-family:sans-serif;font-size:32px;line-height:1}.adopted-study-range button:disabled{opacity:.35}.adopted-study-range strong,.adopted-study-range span{display:block}.adopted-study-range strong{white-space:normal;overflow-wrap:anywhere;font-size:clamp(27px,9vw,43px);font-weight:500}.adopted-study-range span{font-size:15px}.adopted-study-filters{border-bottom:1px solid var(--adopted-gold);grid-template-columns:repeat(2,1fr);padding-bottom:7px;display:grid}.adopted-study-filters button{border:1px solid var(--line);background:#0b211d;min-height:45px;font-size:17px}.adopted-study-filters button:first-child{border-radius:7px 0 0 7px}.adopted-study-filters button:last-child{border-radius:0 7px 7px 0}.adopted-study-filters button.active{background:#29133e;border-color:#bd8ef1;box-shadow:inset 0 0 0 1px #7644ac}.adopted-study-filters strong{margin-left:5px;font-size:19px;font-weight:500}.adopted-study-legend{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 3px;font-size:11px;display:grid}.adopted-study-legend span{white-space:nowrap;align-items:center;gap:7px;display:flex}.adopted-study-legend i{border:1px solid var(--line);background:#1a2222;border-radius:3px;flex:0 0 17px;height:17px}.adopted-study-legend i.correct{border-color:var(--correct-line);background:var(--correct-bg)}.adopted-study-legend i.incorrect{border-color:var(--incorrect-line);background:var(--incorrect-bg)}.adopted-study-legend i.selected{border-color:var(--adopted-purple);background:#6225a9}.adopted-study-notice{border:1px solid var(--line);border-radius:6px;margin:0;padding:16px;font-size:13px}.adopted-study-grid{overscroll-behavior:contain;scrollbar-color:#a5a698 #10211d;scrollbar-width:thin;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-height:min(44dvh,430px);padding:1px 6px 1px 1px;display:grid;overflow:hidden auto}.adopted-study-tile{touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;aspect-ratio:1.18;min-width:0;min-height:56px;color:var(--ink);background:#202625;border:1px solid #677269;border-radius:5px;place-items:center;padding:5px;font-size:clamp(14px,4.7vw,22px);display:grid;position:relative;box-shadow:inset 0 0 9px #0004}.adopted-study-tile>span{overflow-wrap:anywhere;max-width:100%}.adopted-study-tile:disabled{opacity:1}.adopted-study-tile.correct{background:linear-gradient(145deg,#075539,#093424);border-color:#0cba79}.adopted-app .empty-state{text-align:center;background:#071d19ec;border:1px solid #a88558;border-radius:8px;padding:24px 18px;box-shadow:inset 0 0 0 2px #a8855833}.adopted-app .empty-state:before,.adopted-startup-error:before{filter:brightness(0)saturate()invert(82%)sepia(29%)saturate(600%)hue-rotate(343deg);content:"";background:url(/ui-assets/icons/book-open.svg) 50%/contain no-repeat;width:32px;height:32px;margin:0 auto 10px;display:block}.adopted-app .empty-state h4{color:var(--adopted-gold-light);font-family:BIZ UDPMincho,serif;font-size:19px}.adopted-app .empty-state p{color:var(--muted-strong);font-size:13px;line-height:1.6}.adopted-app .adopted-loading-state{min-height:60dvh;color:var(--adopted-gold-light);align-content:center;justify-items:center;gap:13px;font-family:BIZ UDPMincho,serif;font-size:18px;display:grid}.adopted-loading-state span{font-size:37px;animation:1.8s ease-in-out infinite adopted-loading-pulse}@keyframes adopted-loading-pulse{50%{opacity:.45;transform:scale(.8)rotate(45deg)}}.adopted-app .offline-status{border-color:var(--adopted-gold);background:#172720;border-radius:7px;box-shadow:inset 0 0 0 1px #b588543f}.adopted-app .offline-status.warning{color:#f3d9aa;background:#37291d;border-color:#d8af72}.adopted-app .offline-status span{background:0 0;border-radius:0;padding:0;font-size:13px;line-height:1.55}.adopted-app .modal-backdrop{z-index:210;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#020e0cc9}.adopted-app .modal-card{border:1px solid var(--adopted-gold);background:#071d19 url(/ui-assets/emerald-leather.webp) 50%/340px;border-radius:9px;font-family:BIZ UDPMincho,serif;box-shadow:0 18px 50px #000d,inset 0 0 0 2px #a67a4855}.adopted-app .data-manager-card{padding:20px 16px max(22px, env(safe-area-inset-bottom));gap:14px}.adopted-app .data-manager-card .panel-header{border-bottom:1px solid #d7a86877;align-items:center;padding-bottom:10px}.adopted-app .data-manager-card h2{color:var(--adopted-gold-light);margin:0;font-size:24px;font-weight:500}.adopted-app .data-manager-section{border-color:#d7a86866;gap:11px;padding-top:14px}.adopted-app .data-manager-section h3{color:var(--ink);font-size:19px;font-weight:500}.adopted-app .data-manager-card .subtle{color:var(--muted-strong);font:13px/1.6 BIZ UDPGothic,sans-serif}.adopted-app .data-manager-card .field{color:var(--adopted-gold-light);gap:7px;font-size:13px;display:grid}.adopted-app .data-manager-card .select-input,.adopted-app .data-manager-card .text-input{min-width:0;min-height:46px;color:var(--ink);background:#0a241fe8;border:1px solid #a48465;border-radius:6px;font:14px BIZ UDPGothic,sans-serif}.adopted-app .data-manager-card input[type=file]{padding:5px;font-size:11px}.adopted-app .data-manager-card input[type=file]::file-selector-button{min-height:34px;color:var(--ink);background:#341b4e;border:1px solid #b790d4;border-radius:4px;margin-right:8px;padding:5px 10px;font:12px BIZ UDPGothic,sans-serif}.adopted-app .data-manager-card button.primary,.adopted-app .data-manager-card button.secondary,.adopted-app .data-manager-card button.ghost{min-height:44px;color:var(--ink);border-radius:5px;font:14px BIZ UDPGothic,sans-serif}.adopted-app .data-manager-card button.primary{background:linear-gradient(110deg,#572b83,#34184f 85%);border:1px solid #d5b4f1;box-shadow:inset 0 0 0 1px #ebd5ff33,0 3px 11px #0006}.adopted-app .data-manager-card button.secondary,.adopted-app .data-manager-card button.ghost{background:#0a241fea;border:1px solid #a48465}.adopted-app .data-manager-prepared{background:#0b231fee;border:1px solid #a48465;border-radius:6px;padding:11px}.adopted-app .data-manager-prepared p{line-height:1.55}.adopted-confirm-backdrop{z-index:300;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#020e0cdb;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.adopted-confirm-card{text-align:center;background:#071d19 url(/ui-assets/emerald-leather.webp) 50%/340px;width:min(360px,100%);padding:20px}.adopted-confirm-emblem{filter:brightness(0)saturate()invert(82%)sepia(29%)saturate(600%)hue-rotate(343deg);width:34px;height:34px;margin:0 auto 7px}.adopted-confirm-card h2{color:var(--adopted-gold-light);margin:0 0 10px;font:500 23px/1.3 BIZ UDPMincho,serif}.adopted-confirm-card p{color:var(--ink);white-space:pre-line;margin:0;font:14px/1.7 BIZ UDPGothic,sans-serif}.adopted-confirm-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:18px;display:grid}.adopted-confirm-actions button{border:1px solid var(--adopted-gold);min-height:44px;color:var(--ink);background:#0b241f;border-radius:5px;font:14px BIZ UDPGothic,sans-serif}.adopted-confirm-actions .primary{background:linear-gradient(120deg,#4c2374,#351b55);border-color:#d3a4fc}.adopted-confirm-actions .destructive{background:linear-gradient(120deg,#723330,#4d2526);border-color:#f29487}.adopted-app .adopted-feedback{z-index:220;right:max(12px,50vw - 228px);bottom:calc(83px + env(safe-area-inset-bottom));border:1px solid var(--adopted-gold-light);max-height:40dvh;color:var(--ink);background:#0d2821;border-radius:7px;align-items:center;gap:10px;margin:0;padding:8px 7px 8px 11px;font-family:BIZ UDPGothic,sans-serif;display:flex;position:fixed;left:max(12px,50vw - 228px);overflow-y:auto;box-shadow:0 12px 30px #000a,inset 0 0 0 1px #d1a36766}.adopted-app .adopted-feedback.error{background:#401f22;border-color:#ff888b}.adopted-feedback-icon{color:#8fe8c8;border:1px solid #8fe8c8;border-radius:50%;flex:0 0 28px;place-items:center;width:28px;height:28px;font:19px/1 sans-serif;display:grid}.adopted-feedback.error .adopted-feedback-icon{color:#ff888b;border-color:#ff888b}.adopted-feedback p{overflow-wrap:anywhere;flex:auto;margin:0;font-size:13px;line-height:1.55}.adopted-feedback button{min-height:44px;color:var(--ink);background:0 0;border:0;flex:0 0 44px;padding:0;font:25px/1 sans-serif}.adopted-study-tile.incorrect{background:linear-gradient(145deg,#733032,#472123);border-color:#eb595b}.adopted-study-tile.selected{background:linear-gradient(145deg,#6224ad,#37146f);border-color:#bc6dff;box-shadow:inset 0 0 10px #9d5aff88,0 0 9px #9d5aff88}.adopted-study-tile small{color:#f6adb1;font-family:sans-serif;font-size:17px;line-height:1;position:absolute;bottom:6px;right:5px}.adopted-study-tile.correct small{color:#e6fff5}.adopted-study-tile.selected small{color:#eccaff;font-size:13px}.adopted-scroll-hint{border-top:1px solid var(--adopted-gold);color:var(--adopted-gold-light);text-align:center;margin:-5px 0 0;padding:3px;font-size:13px}.adopted-study-record{padding:12px 9px 9px}.adopted-study-record-stats{grid-template-columns:repeat(4,1fr);gap:3px;display:grid}.adopted-study-record-stats>div{border-right:1px solid var(--adopted-gold);justify-items:center;gap:1px;display:grid}.adopted-study-record-stats>div:last-child{border-right:0}.adopted-study-record-stats span{font-size:12px}.adopted-study-record-stats strong{white-space:nowrap;font-size:25px;font-weight:500}.adopted-study-record-stats small{color:var(--ink);margin-left:2px;font-size:11px}.adopted-study-record>p{color:var(--muted);text-align:center;margin:5px 0;font-size:11px}.adopted-study-record>.adopted-cycle-note{border-top:1px solid var(--adopted-gold);color:var(--adopted-gold-light);margin:8px 0 3px;padding-top:7px;font-size:12px}.adopted-purple-text{color:#cb95ff}.adopted-bulk-aux{justify-content:center;gap:8px;margin:7px 0;display:flex}.adopted-bulk-aux button{border:1px solid var(--line);background:#102920;border-radius:5px;min-height:44px;padding:3px 12px;font-size:12px}.adopted-bulk-aux button:disabled,.adopted-primary-action:disabled{opacity:.45}.adopted-add-button{border:1px solid var(--adopted-purple);white-space:nowrap;background:#261536;border-radius:5px;min-height:40px;padding:5px 9px;font-size:13px;box-shadow:0 0 10px #8157b64f}.adopted-material-search{border:1px solid var(--line);background:#071a18eb;border-radius:7px;align-items:center;gap:8px;height:48px;padding:0 12px;display:flex}.adopted-home{gap:6px}.adopted-home .adopted-page-header{background-size:auto 155px;min-height:60px;padding:7px 0 8px}.adopted-home .adopted-focus-card{padding:12px 11px 10px}.adopted-home .adopted-focus-main{min-height:118px}.adopted-home .adopted-focus-label{padding-top:0;padding-bottom:0}.adopted-home .adopted-focus-range{margin:2px 0 5px}.adopted-home .adopted-focus-stats{padding-top:6px}.adopted-home .adopted-primary-action{min-height:48px;margin-top:8px;font-size:19px}.adopted-home .adopted-home-metrics{padding-top:4px;padding-bottom:4px}.adopted-home .adopted-home-metrics>*{min-height:70px}.adopted-home .adopted-bars{height:67px}.adopted-home .adopted-home-material{min-height:54px;padding:6px}.adopted-home .adopted-history-bars{padding-top:10px;padding-bottom:9px}.adopted-app:has(.adopted-study){--study-top-space:max(12px, var(--app-safe-area-top));--study-bottom-space:calc(80px + env(safe-area-inset-bottom));padding-top:var(--study-top-space);padding-bottom:var(--study-bottom-space)}.adopted-study{min-height:calc(100dvh - var(--study-top-space) - var(--study-bottom-space));flex-direction:column;gap:8px;display:flex}.adopted-problem-study .adopted-page-header,.adopted-study .adopted-page-header{background-position:100%;background-size:auto 140px;flex:none;align-items:center;min-height:70px;padding:6px 0 10px}.adopted-problem-study .adopted-page-title,.adopted-study .adopted-page-title{grid-template-columns:27px auto;align-items:center;gap:2px 8px;display:grid}.adopted-problem-study .adopted-page-title h1,.adopted-study .adopted-page-title h1{font-size:clamp(28px,8vw,34px);line-height:1.12}.adopted-problem-study .adopted-page-title>span,.adopted-study .adopted-page-title>span{grid-column:2;font-size:11px}.adopted-study .adopted-header-caption{display:none}.adopted-study-header-icon{filter:brightness(0)saturate()invert(83%)sepia(29%)saturate(730%)hue-rotate(346deg);flex:none;width:27px;height:27px}.adopted-quill-icon{width:27px;height:27px;position:absolute;left:13px}.adopted-study .adopted-study-range{flex:none;padding:1px 6px 5px}.adopted-study .adopted-study-range strong{font-size:clamp(27px,8vw,39px)}.adopted-study .adopted-study-range span{font-size:13px}.adopted-study .adopted-study-filters{flex:none;padding-bottom:3px}.adopted-study .adopted-study-filters button{min-height:43px}.adopted-study .adopted-study-legend{flex:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;font-size:9px}.adopted-study .adopted-study-legend span{gap:4px}.adopted-study .adopted-study-legend i{flex-basis:13px;height:13px}.adopted-study .adopted-study-grid{flex:1 1 0;align-content:start;gap:4px;min-height:110px;max-height:none}.adopted-study .adopted-study-tile{aspect-ratio:1.5;min-height:44px;font-size:clamp(14px,4vw,18px)}.adopted-study .adopted-scroll-hint{flex:none;margin:-5px 0;padding:0;font-size:11px}.adopted-study .adopted-study-record{flex:none;padding:7px}.adopted-study .adopted-study-record-stats strong{font-size:22px}.adopted-study .adopted-study-record>p{margin:2px 0}.adopted-study .adopted-study-record>.adopted-cycle-note{margin:2px 0;padding-top:2px}.adopted-study .adopted-bulk-aux{margin:3px 0}.adopted-study .adopted-study-record .adopted-primary-action{min-height:46px;margin-top:3px;font-size:clamp(14px,4.1vw,18px)}.adopted-study .adopted-study-record .adopted-primary-action>span{right:12px}.adopted-study-record-top{border-bottom:1px solid var(--adopted-gold);grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;display:grid}.adopted-study-record-top>div:not(.adopted-bulk-aux){border-right:1px solid var(--line);align-items:baseline;gap:5px;min-width:0;padding:2px 5px;display:flex}.adopted-study-record-top>div>span{color:var(--muted-strong);font-size:12px}.adopted-study-record-top strong{white-space:nowrap;font-size:24px;font-weight:500}.adopted-study-record-top small{color:var(--ink);margin-left:2px;font-size:12px}.adopted-study-record-top .adopted-bulk-aux{gap:3px;margin:0}.adopted-study-record-top .adopted-bulk-aux button{min-width:43px;padding:3px;font-size:11px}.adopted-study .adopted-study-record-result{color:var(--ink);white-space:nowrap;justify-content:space-between;align-items:baseline;gap:3px;margin:5px 0 2px;font-size:12px;display:flex}.adopted-study-record-result strong{font-size:22px;font-weight:500}.adopted-study .adopted-study-record>.adopted-cycle-note{border-top:0;margin:1px 0 2px;padding:2px 0;font-size:10px}.adopted-materials{gap:7px}.adopted-materials .adopted-page-header{background-size:auto 155px;min-height:62px;padding:6px 0 8px}.adopted-materials .adopted-material-search{height:44px}.adopted-materials .adopted-material-card{padding:5px}.adopted-materials .adopted-material-card-content{gap:1px}.adopted-materials .adopted-material-card-list{gap:7px}.adopted-materials .adopted-material-meter{padding-top:1px}.adopted-materials .adopted-material-meter .progress-meter{margin:1px 0 2px}.adopted-material-search span{font-size:28px;line-height:1}.adopted-material-search input{width:100%;min-width:0;height:100%;color:var(--ink);background:0 0;border:0;outline:0;font-family:inherit;font-size:15px}.adopted-material-controls{grid-template-columns:minmax(0,1fr) 100px;gap:5px;display:grid}.adopted-material-controls>div{grid-template-columns:1fr 1fr .85fr;gap:4px;display:grid}.adopted-material-controls button,.adopted-material-controls select{border:1px solid var(--line);min-height:44px;color:var(--ink);white-space:nowrap;background:#0a1d1a;border-radius:6px;padding:4px 5px;font-family:inherit;font-size:12px}.adopted-material-controls button.active{border-color:var(--adopted-purple);background:#2c173f;box-shadow:0 0 7px #713da75c}.adopted-material-controls select{width:100%;min-width:0}.adopted-material-controls option{background:#09221d}.adopted-material-card-list{gap:9px;display:grid}.adopted-material-card{border:1px solid var(--line);background:#071b18ed;border-radius:8px;grid-template-columns:41px minmax(0,1fr);gap:10px;min-width:0;padding:9px;display:grid;box-shadow:0 5px 17px #0006}.adopted-material-card.focus{border-color:var(--adopted-gold-light);box-shadow:0 0 0 2px #94704269,0 7px 20px #0008}.adopted-material-card.focus .adopted-book-spine{filter:drop-shadow(3px 3px 3px #000b);justify-self:center;width:74px;max-width:none}.adopted-history-group>img.focus-book{filter:drop-shadow(3px 3px 3px #000b);justify-self:center;width:63px;max-width:none}.adopted-book-spine{object-fit:fill;filter:drop-shadow(3px 3px 3px #000b);align-self:center;width:41px;height:132px}.adopted-material-card-content{gap:3px;min-width:0;display:grid}.adopted-material-card-head{justify-content:space-between;align-items:center;display:flex}.adopted-material-type{border:1px solid var(--adopted-purple);color:#e0bdf8;border-radius:3px;padding:1px 6px;font-size:10px}.adopted-focus-badge{color:#302315;background:#cca05b;border:1px solid #f3d8a2;border-radius:999px;padding:2px 10px;font-size:11px;font-weight:700}.adopted-material-card h3{overflow-wrap:anywhere;white-space:normal;margin:0;font-size:16px;font-weight:500;line-height:1.3}.adopted-material-meter{border-bottom:1px solid #687a686b;padding-top:3px}.adopted-material-meter>div{flex-wrap:wrap;align-items:baseline;gap:5px;min-width:0;display:flex}.adopted-material-meter span{min-width:55px;font-size:10px}.adopted-material-meter strong{font-size:16px;font-weight:500}.adopted-material-meter small{color:var(--muted);font-size:10px}.adopted-correct-meter strong,.adopted-correct-meter small{color:var(--adopted-mint)}.adopted-correct-ranges{border-top:1px solid #687a686b;grid-column:1/-1;padding-top:10px}.adopted-correct-ranges h4{flex-wrap:wrap;align-items:baseline;gap:8px;margin:0 0 8px;font-size:14px;font-weight:500;display:flex}.adopted-correct-ranges h4 small,.adopted-correct-range small{color:var(--muted);font-size:11px;font-weight:400}.adopted-correct-ranges>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.adopted-correct-range{background:#071c18;border:1px solid #687a686b;border-radius:5px;min-width:0;padding:8px 10px}.adopted-correct-range>span{overflow-wrap:anywhere;font-size:12px;display:block}.adopted-correct-range>div{justify-content:space-between;align-items:baseline;gap:4px;display:flex}.adopted-correct-range strong,.adopted-correct-range b{color:var(--adopted-mint);font-size:17px;font-weight:500}.adopted-correct-range .progress-meter{width:100%;height:4px;margin:5px 0 0;display:block}.adopted-correct-range .progress-meter,.adopted-correct-meter .progress-meter{background:#263b35;border:0}.adopted-study-range .adopted-range-progress{font-size:12px}.adopted-range-progress em{color:var(--adopted-mint);white-space:nowrap;margin-left:8px;font-style:normal}.adopted-material-meter .progress-meter{width:100%;height:7px;margin:2px 0 5px;display:block}.adopted-material-card-foot{justify-content:space-between;align-items:center;gap:5px;min-width:0;margin-top:1px;display:flex}.adopted-material-card-foot>span{white-space:nowrap;font-size:11px}.adopted-material-card-foot strong{font-size:13px;font-weight:500}.adopted-material-card-foot button{border:1px solid var(--adopted-purple);white-space:nowrap;background:#2b193d;border-radius:5px;min-height:44px;padding:3px 6px;font-size:11px}.adopted-material-card-foot button:disabled{opacity:.45}.adopted-inactive-link{border:1px solid var(--adopted-gold);text-align:left;background:#071b18ed;border-radius:5px;justify-content:space-between;align-items:center;min-height:43px;padding:8px 12px;display:flex}.adopted-material-management{border-top:1px solid var(--adopted-gold);padding-top:12px}.adopted-material-management-note{color:var(--muted);margin:0 0 3px;font-size:12px;line-height:1.6}.adopted-materials .adopted-material-card.managing{padding:10px}.adopted-material-card.managing .adopted-book-spine{height:105px}.adopted-material-card.managing .adopted-material-card-content{gap:7px}.adopted-material-card.managing h3{white-space:normal;overflow-wrap:anywhere}.adopted-material-status{color:var(--muted);font-size:12px}.adopted-material-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.adopted-material-actions button{border:1px solid var(--line);background:#0a1d1a;border-radius:5px;min-height:44px;padding:6px;font-family:inherit;font-size:14px}.adopted-material-actions .material-stop{border-color:var(--adopted-gold);color:var(--adopted-gold-light)}.adopted-material-actions .material-resume{border-color:var(--adopted-purple);background:#2b193d}.adopted-material-actions button:disabled{opacity:.45}.adopted-material-management>summary{min-height:44px;color:var(--adopted-gold-light);cursor:pointer;padding:10px 0}.adopted-material-management .materials-redesign-layout,.adopted-material-management .materials-table-column,.adopted-material-management .materials-side-panel{gap:10px;display:grid}.adopted-history-intro{justify-content:space-between;align-items:center;gap:8px;display:flex}.adopted-history{gap:9px}.adopted-history .adopted-page-header{background-size:auto 155px;min-height:68px;padding:8px 0 11px}.adopted-history-intro>div{flex:none;gap:5px;display:flex}.adopted-history-intro .adopted-history-analysis-link{border-color:var(--adopted-gold);white-space:nowrap;min-height:40px;padding:3px 8px;font-size:13px}.adopted-history .adopted-month-nav{min-height:46px}.adopted-history .adopted-month-nav button{min-height:44px}.adopted-history .adopted-history-summary{min-height:72px;padding:8px}.adopted-history .adopted-calendar-grid button{aspect-ratio:auto;min-height:44px}.adopted-history .adopted-history-day-heading{padding-top:6px}@media (width<=360px){.adopted-history-intro p{font-size:11px}.adopted-history-intro button{min-width:50px;padding:3px;font-size:12px}}.adopted-history-intro p{margin:0;font-size:13px}.adopted-history-intro button{border:1px solid var(--adopted-purple);white-space:nowrap;background:#261537;border-radius:6px;min-width:72px;min-height:38px}.adopted-month-nav{border:1px solid var(--line);background:#071b18dd;border-radius:7px;grid-template-columns:48px 1fr 48px;align-items:center;gap:7px;min-height:50px;display:grid}.adopted-month-nav button{background:0 0;min-height:48px;font-family:sans-serif;font-size:32px;line-height:1}.adopted-month-nav h2{text-align:center;margin:0;font-size:22px;font-weight:500}.adopted-history-summary{grid-template-columns:1fr 1fr;min-height:78px;padding:13px;display:grid}.adopted-history-summary>div{grid-template-columns:38px minmax(0,1fr);align-content:center;place-items:center start;gap:2px 5px;padding-left:8px;display:grid}.adopted-history-summary>div+div{border-left:1px solid var(--line)}.adopted-history-summary span{grid-column:2;font-size:14px}.adopted-history-summary strong{grid-column:2;font-size:31px;font-weight:500;line-height:1}.adopted-history-summary img{object-fit:contain;grid-area:1/1/3;width:32px;height:32px}.adopted-history-summary img[src$=\.svg]{filter:brightness(0)saturate()invert(80%)sepia(34%)saturate(660%)hue-rotate(337deg)}.adopted-history-summary small{margin-left:3px;font-size:13px}.adopted-calendar{border:1px solid var(--line);background:#061b17e8;border-radius:8px;padding:11px 7px 8px}.adopted-calendar-weekdays,.adopted-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;display:grid}.adopted-calendar-weekdays{border-bottom:1px solid var(--line);text-align:center;padding-bottom:7px}.adopted-calendar-weekdays span:first-child{color:#ef7e89}.adopted-calendar-weekdays span:last-child{color:#a3baff}.adopted-calendar-grid{margin-top:4px}.adopted-calendar-grid button{aspect-ratio:.85;background:0 0;border:1px solid #0000;border-radius:50%;align-content:center;justify-items:center;gap:1px;min-width:0;min-height:43px;font-size:16px;display:grid}.adopted-calendar-grid button.outside{color:#89928c}.adopted-calendar-grid button.selected{border-color:var(--adopted-gold-light);background:#43205c;box-shadow:0 0 0 2px #4b285a}.adopted-calendar-grid i{background:var(--adopted-mint);border-radius:50%;width:5px;height:5px}.adopted-history-day-heading{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:6px;padding-top:11px;display:flex}.adopted-history-day-heading h2{margin:0;font-size:19px;font-weight:500}.adopted-history-day-heading p{white-space:nowrap;margin:4px 0 0;font-size:12px}.adopted-history-day-heading button{border:1px solid var(--line);background:#071b18;border-radius:6px;flex:0 0 105px;min-height:44px;padding:5px;font-size:11px;line-height:1.3}.adopted-history-groups{gap:7px;display:grid}.adopted-history-group-shell{border:1px solid var(--line);background:#061b17e8;border-radius:8px;overflow:hidden}.adopted-history-group{text-align:left;background:0 0;grid-template-columns:35px 34px minmax(0,1fr) 10px;align-items:center;gap:8px;width:100%;min-height:87px;padding:6px;display:grid}.adopted-history-group>img{object-fit:fill;width:35px;height:72px}.adopted-history-time{font-size:13px}.adopted-history-group-body{gap:4px;min-width:0;display:grid}.adopted-history-group-body>strong{overflow-wrap:anywhere;white-space:normal;font-size:14px;font-weight:500}.adopted-history-group-body>small{color:var(--muted);font-size:11px}.adopted-history-group-body>span{border-top:1px solid var(--line);overflow-wrap:anywhere;padding-top:5px;font-size:11px}.adopted-history-group-detail{border-top:1px solid var(--line);padding:8px 12px 10px}.adopted-history-group-detail p{margin:0 0 6px;font-size:12px}.adopted-history-group-detail>div{flex-wrap:wrap;gap:4px;display:flex}.adopted-history-group-detail span{border:1px solid var(--line);border-radius:3px;padding:3px 5px;font-size:11px}.adopted-history-group-detail span.correct{border-color:var(--correct-line)}.adopted-history-group-detail span.incorrect{border-color:var(--incorrect-line)}.adopted-all-history-records{border:1px solid var(--adopted-gold);background:#061b17e8;border-radius:8px;gap:7px;padding:10px;display:grid}.adopted-all-history-records h3{margin:0;font-size:16px}.adopted-history-number-mode{gap:6px!important;display:flex!important}.adopted-history-number-mode button{border:1px solid var(--line);background:#102923;border-radius:5px;min-height:44px;padding:5px 9px}.adopted-history-number-mode button[aria-pressed=true]{border-color:var(--adopted-purple);background:var(--adopted-purple-deep)}.adopted-all-history-records>div{gap:3px;display:grid}.adopted-all-history-records>div>div{border-bottom:1px solid var(--line);grid-template-columns:40px minmax(0,1fr) 40px;gap:7px;padding:5px 0;font-size:11px;display:grid}.adopted-all-history-records>div>div span{overflow-wrap:anywhere;white-space:normal}.adopted-all-history-records>button{border:1px solid var(--adopted-purple);background:#2c1740;border-radius:4px;min-height:44px}.wrapping-select{flex:1;align-items:center;gap:8px;min-width:0;min-height:44px;padding:6px 0;font-size:17px;display:flex;position:relative;overflow:hidden}.adopted-material-controls>.wrapping-select{border:1px solid var(--line);background:#0a1d1a;border-radius:6px;padding:4px 7px;font-size:12px}.wrapping-select-value{white-space:normal;overflow-wrap:anywhere;flex:1;min-width:0;line-height:1.5}.wrapping-select-arrow{flex:none}.wrapping-select>select{appearance:none;opacity:0;cursor:pointer;border:0;width:100%;height:100%;padding:0;position:absolute;inset:0}.wrapping-select:focus-within{outline:2px solid var(--adopted-purple);outline-offset:2px;border-radius:4px}.adopted-section-picker .wrapping-select{font-size:14px}.adopted-material-picker{min-width:0}.adopted-material-picker img{flex:none}.adopted-material-picker-row{flex:none;grid-template-columns:minmax(0,1fr) 48px;gap:6px;display:grid}.adopted-order-button,.adopted-order-link{border:1px solid var(--adopted-gold);min-height:44px;color:var(--adopted-gold-light);background:#10251f;border-radius:5px}.adopted-order-button{place-content:center;font-size:21px;display:grid}.adopted-order-button span{font-size:11px}.adopted-order-link{justify-self:end;padding:6px 12px}.adopted-daily-materials{border:1px solid var(--line);text-align:left;background:#071c19e8;border-radius:6px;gap:5px;padding:8px 10px;font-size:12px;display:grid}.adopted-daily-materials>span{grid-template-columns:minmax(0,1fr) auto;gap:10px;display:grid}.adopted-daily-materials>span>span{overflow-wrap:anywhere}.adopted-daily-materials strong{color:var(--adopted-gold-light);font-weight:500}.adopted-app .material-order-dialog{width:min(520px,100vw - 24px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));color:var(--ink);margin:auto;padding:18px 12px;overflow-y:auto}.material-order-dialog::backdrop{background:#020e0cd9}.material-order-dialog h2{color:var(--adopted-gold-light);margin:0;font-size:22px}.material-order-dialog p{font-size:13px;line-height:1.6}.material-order-list{gap:8px;margin:12px 0;padding:0;list-style:none;display:grid}.material-order-list li{border:1px solid var(--line);background:#061b17;border-radius:6px;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px;display:grid}.material-order-list strong{overflow-wrap:anywhere;font-size:15px;font-weight:500}.material-order-list small{color:var(--muted-strong);display:block}.material-order-number{color:var(--adopted-gold-light);font-size:13px}.material-order-arrows{gap:4px;display:flex}.material-order-arrows button{border:1px solid var(--line);background:#1b3029;border-radius:4px;place-content:center;width:44px;min-height:48px;padding:3px;display:grid}.material-order-arrows span{font-size:11px}.material-order-footer{border-top:1px solid var(--adopted-gold);flex-wrap:wrap;gap:8px;padding-top:10px;display:flex}.material-order-footer button{border:1px solid var(--line);background:#10251f;border-radius:5px;flex:1;min-height:44px;padding:8px}.material-order-footer button.primary{border-color:var(--adopted-purple);color:var(--ink);background:#301348}.material-order-error{color:var(--adopted-coral)}@media (width<=540px){.adopted-app{padding-left:12px;padding-right:12px}}@media (width<=360px){.adopted-history-summary>div{grid-template-columns:25px minmax(0,1fr);column-gap:3px;padding-left:3px}.adopted-history-summary img{width:24px;height:24px}.adopted-history-summary span{font-size:12px}.adopted-history-summary strong{white-space:nowrap;font-size:23px}.adopted-history-summary small{font-size:10px}.adopted-home .adopted-home-material{grid-template-columns:minmax(0,1fr) max-content 8px;gap:5px;padding:6px}.adopted-home-material>div+div{padding-left:5px}.adopted-home-material-progress span,.adopted-home-material-due small{font-size:10px}.adopted-study-record-top{grid-template-columns:repeat(2,minmax(0,1fr))}.adopted-study-record-top>div>span{white-space:nowrap}.adopted-study-record-top .adopted-bulk-aux{grid-column:1/-1;justify-content:flex-end;padding:3px 1px}.adopted-focus-main{grid-template-columns:1fr;gap:10px}.adopted-focus-label{border-right:0;border-bottom:1px solid var(--adopted-gold);text-align:left;align-items:center;gap:8px;padding:0 0 8px;display:flex}.adopted-focus-label h2{margin:0}.adopted-focus-label p{margin-left:auto;font-size:11px;line-height:1.3}.adopted-focus-stats{grid-template-columns:1fr .75fr}.adopted-study-record-stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:7px}}@media screen{.adopted-problem-study .study-main-column{gap:10px;min-width:0;display:grid}.adopted-problem-details{border:1px solid var(--line);background:#071d19e8;border-radius:6px;min-width:0;margin:0;padding:8px 12px}.adopted-problem-details>summary{min-height:28px;color:var(--adopted-gold-light);cursor:pointer;padding:4px 0;font-size:13px}.adopted-problem-details[open]>summary{margin-bottom:10px}.adopted-problem-panel{gap:12px;min-width:0}.adopted-problem-panel>.panel-header{border-bottom:1px solid var(--adopted-gold);gap:8px;margin:0;padding:6px 0}.adopted-problem-panel h3{font-size:22px;font-weight:500}.adopted-problem-panel .problem-book-grid{grid-template-columns:1fr;gap:8px}.adopted-problem-panel .problem-book-block{border:1px solid var(--line);background:#071d19ed;border-radius:7px;min-width:0;padding:12px}.adopted-problem-panel .problem-book-compact-details>summary{min-height:32px;color:var(--adopted-gold-light)}.adopted-problem-panel .problem-book-compact-details>summary:after{content:"+";font-size:20px}.adopted-problem-panel .problem-book-compact-details[open]>summary:after{content:"−"}.adopted-problem-panel .panel-subtitle{color:var(--adopted-gold-light);font-size:17px;font-weight:500}.adopted-problem-panel .problem-book-answer-list{overscroll-behavior-y:contain;scrollbar-color:var(--adopted-gold) #102a25;max-height:min(52dvh,420px)}.adopted-problem-panel .problem-book-answer-row{grid-template-columns:48px minmax(0,1fr);gap:8px;padding:10px 0}.adopted-problem-panel .problem-book-answer-row>span{white-space:normal;overflow-wrap:anywhere;font-size:17px}.adopted-problem-panel .problem-book-answer-row .chip-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;display:grid}.adopted-problem-panel .problem-book-answer-row .pill-button{border:1px solid var(--line);min-width:0;min-height:44px;color:var(--ink);background:#0c2820;border-radius:5px;padding:4px;font-size:18px}.adopted-problem-panel .problem-book-answer-row .pill-button.active{border-color:var(--adopted-purple);background:#492267;box-shadow:inset 0 0 0 1px #ba89e766}.adopted-problem-panel button.secondary{border:1px solid var(--adopted-purple);min-height:44px;color:var(--ink);background:#2e1747;border-radius:6px}.adopted-problem-study .study-metric-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}.adopted-problem-study .metric-tile{border:1px solid var(--line);background:#0a241d;border-radius:5px;padding:8px}.adopted-problem-study .study-decision-panel{grid-template-columns:1fr;display:grid;position:static}.adopted-problem-study .decision-card{border-color:var(--line);box-shadow:none;background:#071d19}.adopted-problem-study .question-range-jump{grid-template-columns:minmax(0,1fr) auto;margin-top:8px;display:grid}.adopted-problem-study .mastered-range-note{background:var(--surface-soft);color:var(--muted-strong);border-radius:5px;padding:10px;font-size:12px;line-height:1.6}.adopted-problem-study .mastered-range-note.error{border-color:var(--incorrect-line);background:var(--error-bg);color:var(--error-text)}.adopted-problem-panel .problem-book-session-row,.adopted-problem-panel .problem-book-session-detail{border-color:var(--line);background:#0a241d;border-radius:6px;min-width:0}.adopted-problem-panel .problem-book-session-row.active{border-color:var(--adopted-gold);background:#291936}.adopted-problem-panel .adopted-problem-grading{border-color:var(--adopted-gold)}.adopted-problem-panel .adopted-problem-grade-action{border-color:var(--adopted-gold);box-shadow:inset 0 0 0 1px #b27aff66}.adopted-problem-panel .pill-button.active{border-color:var(--adopted-purple);color:var(--ink);background:#492267}}
