.streak-chip{border:1px solid var(--line);background:var(--chrome);width:fit-content;color:var(--ink);border-radius:999px;align-items:center;gap:6px;margin:0 0 8px;padding:5px 10px;font-size:.78rem;line-height:1.3;display:inline-flex}.streak-chip-flame{color:var(--accent);flex-shrink:0}.streak-chip-count{font-weight:600}.streak-chip-freezes{border-left:1px solid var(--line);color:var(--muted);font-variant-numeric:tabular-nums;align-items:center;gap:3px;padding-left:6px;display:inline-flex}.weekly-recap{border:1px solid var(--line);background:var(--chrome);border-radius:14px;margin:0 0 12px;padding:10px 12px}.weekly-recap-title{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 4px;font-size:.72rem;font-weight:650}.weekly-recap-line{color:var(--ink);margin:0;font-size:.82rem;line-height:1.4}.review-runner{flex-direction:column;gap:8px;width:100%;min-width:0;display:flex}.warmup-eyebrow{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0;font-size:.7rem;font-weight:650}.warmup-copy{color:var(--ink);margin:0;font-size:.85rem;line-height:1.45}.warmup-free{color:var(--muted)}.warmup-question{color:var(--foreground);margin:0;font-size:.95rem;font-weight:550;line-height:1.45}.warmup-options{flex-direction:column;gap:6px;display:flex}.warmup-option{text-align:left;border:1px solid var(--line);background:var(--paper);width:100%;color:var(--ink);border-radius:12px;padding:9px 12px;font-size:.88rem;line-height:1.35}.warmup-option:hover:not(:disabled){border-color:var(--accent);background:color-mix(in srgb, var(--accent) 6%, var(--paper))}.warmup-option.is-chosen{border-color:var(--accent)}.warmup-option.is-faded{opacity:.55}.warmup-field{gap:8px;display:flex}.warmup-field input{border:1px solid var(--line);background:var(--paper);min-width:0;color:var(--foreground);border-radius:12px;flex:1;padding:9px 12px;font-size:.88rem}.warmup-field .primary,.warmup-actions .primary{background:var(--foreground);color:var(--paper);border:0;border-radius:12px;padding:8px 14px;font-size:.85rem;font-weight:600}.warmup-actions{justify-content:flex-end;gap:8px;display:flex}.warmup-actions .ghost{border:1px solid var(--line);color:var(--muted);background:0 0;border-radius:12px;padding:8px 12px;font-size:.85rem}.warmup-feedback{flex-direction:column;gap:6px;display:flex}.warmup-verdict{margin:0;font-size:.84rem;line-height:1.4}.warmup-verdict.is-ok{color:var(--accent)}.warmup-verdict.is-miss{color:var(--ink)}.warmup-explain{color:var(--muted);margin:0;font-size:.8rem;line-height:1.4}.document-attach{flex-shrink:0;display:flex;position:relative}.chat-row>.document-attach{margin-left:-6px}.document-attach-menu{z-index:4;background:color-mix(in srgb, var(--chrome) 98%, transparent);border:1px solid var(--line);border-radius:14px;flex-direction:column;gap:2px;min-width:168px;padding:6px;display:flex;position:absolute;bottom:calc(100% + 10px);left:0;box-shadow:0 12px 32px #1c19151f}.document-attach-item{text-align:left;color:var(--ink);background:0 0;border:0;border-radius:10px;padding:9px 12px;font-size:.88rem;line-height:1.3}.document-attach-item:hover{background:var(--highlight)}.document-attach-hint{border-top:1px solid var(--line);color:var(--muted);margin:2px 0 0;padding:7px 12px 3px;font-size:.72rem;line-height:1.35}.document-camera-frame{border:1px solid var(--line);aspect-ratio:4/3;background:#111;border-radius:14px;overflow:hidden}.document-camera-video{object-fit:cover;width:100%;height:100%;display:block}.document-camera-count{color:var(--muted);margin:10px 0 6px;font-size:.78rem}.document-camera-shots{flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;display:flex}.document-camera-shot{border:1px solid var(--line);border-radius:12px;width:64px;height:64px;position:relative;overflow:hidden}.document-camera-shot img{object-fit:cover;width:100%;height:100%}.document-camera-shot-remove{color:#fff;background:#1c1915b8;border:0;border-radius:999px;justify-content:center;align-items:center;width:20px;height:20px;padding:0;display:flex;position:absolute;top:2px;right:2px}.document-camera-shot-remove:hover{background:#1c1915e6}.document-action{border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:999px;padding:8px 14px;font-size:.82rem;font-weight:600;line-height:1.2}.document-action:hover:not(:disabled){background:var(--accent-deep);border-color:var(--accent-deep)}.document-action:disabled{opacity:.5}.document-action.ghost{border-color:var(--line);color:var(--muted);background:0 0}.document-action.ghost:hover:not(:disabled){color:var(--ink);background:var(--highlight)}.document-action.danger{border-color:var(--danger);background:var(--danger)}.document-action.danger:hover:not(:disabled){background:color-mix(in srgb, var(--danger) 82%, black);border-color:color-mix(in srgb, var(--danger) 82%, black)}.document-dock{min-width:0}.document-dock:not(:empty){padding-bottom:12px}.document-card{background:color-mix(in srgb, var(--chrome) 97%, transparent);border:1px solid var(--line);border-radius:18px;flex-direction:column;gap:6px;padding:12px 14px;display:flex;box-shadow:0 12px 32px #1c191514}.document-card-head{align-items:center;gap:8px;min-width:0;display:flex}.document-badge{border:1px solid var(--line);background:var(--paper);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);border-radius:999px;flex-shrink:0;padding:3px 8px;font-size:.66rem;font-weight:650}.document-card-title{min-width:0;color:var(--ink);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:.95rem;font-weight:600;line-height:1.35;overflow:hidden}.document-card-meta{color:var(--muted);margin:0;font-size:.8rem}.document-card-artifacts{color:var(--accent-deep);margin:0;font-size:.78rem}.document-card-status{color:var(--muted);margin:0;font-size:.78rem}.document-card-status.is-error,.document-card-confirm{color:var(--danger)}.document-card-footnote{color:var(--muted);margin:0;font-size:.75rem;line-height:1.4}.document-card-confirm{margin:0;font-size:.78rem;line-height:1.4}.document-card-actions{flex-wrap:wrap;gap:8px;margin-top:4px;display:flex}.document-card-artifact-actions{margin-top:8px}.document-card-title{flex:auto}.document-title-edit{width:26px;height:26px;color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:999px;flex-shrink:0;place-items:center;padding:0;display:grid}.document-title-edit:hover,.document-title-edit:focus-visible{border-color:var(--line);background:var(--paper);color:var(--ink)}.document-card-head:has(.document-title-form){flex-direction:column;align-items:stretch}.document-card-head:has(.document-title-form) .document-badge{align-self:flex-start}.document-title-form{flex-direction:column;flex:auto;gap:6px;min-width:0;display:flex}.document-title-label{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-size:.68rem;font-weight:650}.document-title-input{border:1px solid var(--line);background:var(--paper);width:100%;font:inherit;color:var(--ink);border-radius:10px;padding:7px 10px;font-size:.9rem;font-weight:600}.document-title-input:focus-visible{outline:2px solid color-mix(in srgb, var(--accent) 55%, transparent);outline-offset:1px}.document-title-hint,.document-title-error{margin:0;font-size:.72rem;line-height:1.4}.document-title-hint{color:var(--muted)}.document-title-error{color:var(--danger)}.document-title-actions{margin-top:0}.document-pipeline{background:color-mix(in srgb, var(--chrome) 97%, transparent);border:1px solid color-mix(in srgb, var(--accent) 28%, var(--line));border-radius:18px;flex-direction:column;gap:8px;padding:12px 14px;display:flex;box-shadow:0 12px 32px #1c191514}.document-pipeline[data-state=failed]{border-color:color-mix(in srgb, var(--danger) 32%, var(--line))}.document-pipeline-head{align-items:center;gap:10px;min-width:0;display:flex}.document-pipeline-icon{width:22px;height:22px;color:var(--accent);background:color-mix(in srgb, var(--accent) 12%, transparent);border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.document-pipeline-line{min-width:0;color:var(--ink);flex:auto;margin:0;font-size:.88rem;font-weight:550;line-height:1.4}.document-pipeline[data-state=failed] .document-pipeline-line{color:var(--danger);font-weight:400}.document-pipeline-count{color:var(--muted);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:.72rem}.document-pipeline-steps{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none;display:grid}.document-pipeline-step{flex-direction:column;gap:5px;min-width:0;display:flex}.document-pipeline-segment{background:var(--line);border-radius:999px;height:4px;display:block;position:relative;overflow:hidden}.document-pipeline-segment-fill{border-radius:inherit;background:var(--accent);width:0;transition:width var(--duration-ui) var(--ease-out);position:absolute;inset:0 auto 0 0}.document-pipeline-step[data-state=done] .document-pipeline-segment-fill{width:100%}.document-pipeline-step[data-state=active] .document-pipeline-segment:not([data-measured]) .document-pipeline-segment-fill{width:45%;animation:document-pipeline-sweep 1.4s var(--ease-in-out) infinite}@keyframes document-pipeline-sweep{0%{transform:translate(-100%)}to{transform:translate(225%)}}.document-pipeline-step-label{white-space:nowrap;text-overflow:ellipsis;color:var(--muted);font-size:.7rem;line-height:1.2;overflow:hidden}.document-pipeline-step[data-state=active] .document-pipeline-step-label{color:var(--accent-deep);font-weight:650}.document-pipeline-step[data-state=done] .document-pipeline-step-label{color:var(--ink)}@media (prefers-reduced-motion:reduce){.document-pipeline-step[data-state=active] .document-pipeline-segment:not([data-measured]) .document-pipeline-segment-fill{opacity:.45;width:100%;animation:none}}.document-pipeline-actions{flex-wrap:wrap;gap:8px;display:flex}.document-review{flex-direction:column;gap:10px;display:flex}.document-review-title{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0;font-size:.7rem;font-weight:650}.document-files{flex-direction:column;gap:8px;max-height:38vh;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.document-file{background:var(--paper);border:1px solid var(--line);border-radius:14px;align-items:center;gap:10px;padding:6px 8px;display:flex}.document-file-thumb{background:var(--highlight);width:40px;height:40px;color:var(--muted);border-radius:10px;flex-shrink:0;place-items:center;display:grid;overflow:hidden}.document-file-thumb img{object-fit:cover;width:100%;height:100%}.document-file-body{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.document-file-name{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;font-weight:550;overflow:hidden}.document-file-meta{color:var(--muted);font-size:.75rem}.document-file-remove{border:1px solid var(--line);color:var(--muted);background:0 0;border-radius:999px;flex-shrink:0;padding:6px 10px;font-size:.75rem}.document-file-remove:hover{color:var(--ink);background:var(--highlight)}.document-readout{color:var(--muted);font-variant-numeric:tabular-nums;margin:0;font-size:.78rem}.document-errors{flex-direction:column;gap:4px;display:flex}.document-error{color:var(--danger);margin:0;font-size:.78rem;line-height:1.4}.document-actions{flex-wrap:wrap;gap:8px;display:flex}:where(dialog).document-chooser,:where(dialog).document-sheet{inset:0;bottom:var(--kb-inset,0px);width:min(520px,100% - 32px);max-height:calc(100dvh - var(--kb-inset,0px) - 40px);--sheet-pad-t:16px;--sheet-pad-x:16px;--sheet-pad-b:16px;padding:var(--sheet-pad-t) var(--sheet-pad-x) var(--sheet-pad-b);background:color-mix(in srgb, var(--chrome) 98%, transparent);border:1px solid var(--line);color:var(--foreground);border-radius:22px;margin:auto;position:fixed;left:0;overflow-y:auto;box-shadow:0 20px 56px #1c19152e}:where(dialog).document-chooser::backdrop,:where(dialog).document-sheet::backdrop{background:color-mix(in srgb, var(--ink) 16%, transparent)}.document-chooser-title,.document-sheet-title{color:var(--ink);margin:0 0 12px;font-size:1rem;font-weight:650;line-height:1.35}.document-sheet-meta{color:var(--muted);margin:0 0 10px;font-size:.78rem}.document-sheet-note{color:var(--muted);margin:10px 0 0;font-size:.78rem;line-height:1.4}.document-sheet-actions{justify-content:flex-end;gap:8px;margin-top:14px;display:flex}:where(dialog).document-sheet>.document-sheet-actions,:where(dialog).document-sheet>.document-chooser-actions:last-child{bottom:calc(-1 * var(--sheet-pad-b));z-index:1;margin:14px calc(-1 * var(--sheet-pad-x)) calc(-1 * var(--sheet-pad-b));padding:12px var(--sheet-pad-x) var(--sheet-pad-b);background:var(--chrome);border-top:1px solid var(--line);flex-wrap:wrap;position:sticky}.document-sheet-head{align-items:flex-start;gap:6px;margin-bottom:12px;display:flex}:where(dialog).document-sheet>.document-sheet-head{top:calc(-1 * var(--sheet-pad-t));z-index:1;margin:calc(-1 * var(--sheet-pad-t)) calc(-1 * var(--sheet-pad-x)) 12px;padding:var(--sheet-pad-t) var(--sheet-pad-x) 10px;background:var(--chrome);border-bottom:1px solid var(--line);position:sticky}.document-sheet-head-text{flex:1;min-width:0}.document-sheet-head .document-sheet-title{margin:0}.document-sheet-head .document-sheet-meta{margin:2px 0 0}.document-sheet-back{width:32px;height:32px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:999px;flex:none;place-items:center;margin:-5px 0 -5px -8px;padding:0;display:grid}.document-sheet-back:hover{color:var(--ink);background:var(--highlight)}.document-sheet-back:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.document-sheet-head .document-sheet-close{flex:none;margin:-3px -6px -3px 0;position:relative;top:auto;right:auto}.document-sheet-head .document-sheet-close:before{content:"";position:absolute;inset:-8px}.document-chooser-meta{color:var(--muted);margin:0 0 10px;font-size:.78rem}.document-chooser-note{color:var(--muted);margin:10px 0 0;font-size:.78rem;line-height:1.4}.document-chooser-actions{justify-content:flex-end;gap:8px;margin-top:12px;display:flex}.document-chooser-actions.is-primary .document-action{text-align:center;flex:1}.document-question-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.document-question-row{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:10px 12px}.document-question-row[data-selected=true]{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 5%, var(--paper))}.document-question-head{cursor:pointer;grid-template-columns:auto 1fr;align-items:start;gap:4px 8px;display:grid}.document-question-check{accent-color:var(--accent);grid-row:1;margin:2px 0 0}.document-question-number{color:var(--ink);grid-row:1;font-size:.82rem;font-weight:650}.document-question-text{color:var(--foreground);grid-column:2;font-size:.86rem;line-height:1.4}.document-question-meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 0;font-size:.74rem;display:flex}.document-question-topic{background:var(--highlight);border-radius:999px;padding:2px 8px}.document-question-dots{gap:3px;display:inline-flex}.document-question-dot{background:color-mix(in srgb, var(--muted) 35%, transparent);border-radius:50%;width:6px;height:6px}.document-question-dot[data-on=true]{background:var(--accent)}.document-question-styles{border:none;border-top:1px dashed var(--line);flex-direction:column;gap:4px;margin:10px 0 0;padding:8px 0 0;display:flex}.document-choice-row{background:var(--paper);border:1px solid var(--line);cursor:pointer;border-radius:12px;align-items:flex-start;gap:8px;padding:8px 10px;display:flex}.document-choice-row:has(input:checked){border-color:var(--accent);background:color-mix(in srgb, var(--accent) 6%, var(--paper))}.document-choice-row input{accent-color:var(--accent);margin:2px 0 0}.document-choice-body{flex-direction:column;gap:1px;display:flex}.document-choice-label{color:var(--foreground);font-size:.82rem;font-weight:600}.document-choice-hint{color:var(--muted);font-size:.74rem;line-height:1.35}.document-question-toolbar{gap:8px;margin-top:10px;display:flex}.document-quiz-group{border:none;flex-direction:column;gap:6px;margin:0 0 14px;padding:0;display:flex}.document-quiz-legend{letter-spacing:.01em;color:var(--muted);margin-bottom:6px;font-size:.78rem;font-weight:650}.document-quiz-counts{flex-wrap:wrap;gap:6px;display:flex}.document-quiz-counts .document-choice-row{flex:1 1 0;min-width:120px}.document-sheet-status{color:var(--muted);align-items:center;gap:8px;margin:0 0 10px;font-size:.82rem;display:flex}.document-sheet-status-mark{color:var(--accent)}.document-sheet-loading{flex-direction:column;gap:4px;margin-bottom:12px;display:flex}.document-skeleton{flex-direction:column;gap:16px;display:flex}.document-skeleton-section,.document-skeleton-card{flex-direction:column;gap:8px;display:flex}.document-skeleton-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;min-height:148px;padding:14px}.document-skeleton-bar{--skeleton-tone:var(--line);background:linear-gradient(90deg, var(--skeleton-tone) 0%, color-mix(in srgb, var(--skeleton-tone) 35%, var(--chrome)) 50%, var(--skeleton-tone) 100%);background-size:200% 100%;border-radius:999px;height:10px;animation:1.4s linear infinite document-skeleton-shimmer;display:block}.document-skeleton-bar.is-heading{--skeleton-tone:color-mix(in srgb, var(--accent) 22%, var(--line));width:34%;height:8px}.document-skeleton-section .document-skeleton-bar:last-child:not(.is-heading),.document-skeleton-card .document-skeleton-bar:last-child{width:68%}.document-skeleton-card .document-skeleton-bar.is-heading{width:22%}.document-skeleton-options{flex-direction:column;gap:8px;display:flex}.document-skeleton-option{border:1px solid var(--line);border-radius:14px;align-items:center;min-height:44px;padding:0 14px;display:flex}.document-skeleton-option .document-skeleton-bar{width:46%}.document-skeleton-option:nth-child(2) .document-skeleton-bar{width:58%}.document-skeleton-option:nth-child(3) .document-skeleton-bar{width:38%}.document-skeleton-needs{flex-direction:column;gap:8px;display:flex}.document-skeleton-need{border:1px solid var(--line);border-radius:16px;flex-direction:column;justify-content:center;gap:8px;min-height:64px;padding:12px 14px;display:flex}.document-skeleton-need .document-skeleton-bar.is-heading{width:40%;height:10px}.document-skeleton-need .document-skeleton-bar:last-child{width:72%}@keyframes document-skeleton-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (prefers-reduced-motion:reduce){.document-skeleton-bar{animation:none}}.document-quiz-sheet .check-question{margin:0}.document-quiz-options{flex-direction:column;gap:8px;margin-top:12px;display:flex}.document-quiz-option{border:1px solid var(--line);background:var(--chrome);width:100%;color:var(--foreground);text-align:left;cursor:pointer;border-radius:14px;padding:11px 14px;font-size:.9rem;line-height:1.35}.document-quiz-option:hover:not(:disabled){border-color:color-mix(in srgb, var(--accent) 45%, var(--line));background:color-mix(in srgb, var(--accent) 6%, var(--chrome))}.document-quiz-option:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.document-quiz-option.is-pending{opacity:1;border-color:color-mix(in srgb, var(--accent) 55%, var(--line));background:color-mix(in srgb, var(--accent) 6%, var(--chrome));justify-content:space-between;align-items:center;gap:10px;display:flex}.document-quiz-sheet .check-field .document-action{flex:none}.document-quiz-sheet .document-action.is-pending{opacity:1;align-items:center;gap:6px;display:inline-flex}.document-quiz-sheet .quiz-review{max-height:none;overflow:visible}.document-summary{flex-direction:column;gap:14px;display:flex}:where(dialog).document-summary-sheet[open]{height:min(780px, calc(100dvh - var(--kb-inset,0px) - 40px));flex-direction:column;display:flex}:where(dialog).document-summary-sheet{width:min(640px,100% - 32px)}:where(dialog).document-summary-sheet>*{flex-shrink:0}:where(dialog).document-summary-sheet>.document-sheet-actions{margin-top:auto}.document-summary[data-state=writing] .document-summary-section,.document-summary[data-state=writing] .document-summary-row,.document-summary[data-state=writing] .document-summary-mistakes>li{animation:.36s ease-out both document-summary-arrive}@keyframes document-summary-arrive{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.document-summary[data-state=writing] .document-summary-section,.document-summary[data-state=writing] .document-summary-row,.document-summary[data-state=writing] .document-summary-mistakes>li{animation:none}}.document-summary-section{flex-direction:column;gap:6px;display:flex}.document-summary-heading{letter-spacing:.02em;text-transform:uppercase;color:var(--accent-deep);margin:0;font-size:.78rem;font-weight:650}.document-summary-overview{color:var(--foreground);margin:0;font-size:.86rem;line-height:1.5}.document-summary-list{flex-direction:column;gap:8px;margin:0;display:flex}.document-summary-row{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:8px 10px}.document-summary-term{color:var(--ink);font-size:.84rem;font-weight:650}.document-summary-body{color:var(--foreground);margin:2px 0 0;font-size:.82rem;line-height:1.45}.document-summary-empty{color:var(--muted);margin:0;font-size:.8rem}.document-summary-mistakes{flex-direction:column;gap:6px;margin:0;padding-left:18px;display:flex}.document-summary-latex{font-family:var(--font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--ink);word-break:break-word;font-size:.8rem}.document-summary-formula{max-width:100%;color:var(--ink);font-size:1.05rem;display:inline-block}.document-summary-formula svg{max-width:100%;height:auto}.document-flashcards-sheet{--deck-know:var(--accent-deep);--deck-learning:#92400e}.document-deck-progress{color:var(--muted);margin:0 0 8px;font-size:.78rem}.document-deck-meta{color:var(--muted);font-variant-numeric:tabular-nums;justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px;font-size:.78rem;display:flex}.document-deck-pile{border-radius:999px;padding:2px 8px;font-weight:600}.document-deck-pile[data-pile=know],.document-deck-stat[data-pile=know]{color:var(--deck-know);background:color-mix(in srgb, var(--deck-know) 10%, var(--paper))}.document-deck-pile[data-pile=learning],.document-deck-stat[data-pile=learning]{color:var(--deck-learning);background:color-mix(in srgb, var(--deck-learning) 10%, var(--paper))}.document-deck-bar{background:var(--line);border-radius:999px;height:4px;margin:0 0 12px;overflow:hidden}.document-deck-bar>span{background:var(--accent);height:100%;transition:width var(--duration-ui) var(--ease-out);display:block}.document-deck-stage{margin:-6px;padding:6px;overflow-x:clip}.document-flashcard{text-align:left;perspective:1000px;touch-action:pan-y;-webkit-user-select:none;user-select:none;width:100%;transition:transform var(--duration-ui) var(--ease-out), opacity var(--duration-ui) var(--ease-out);background:0 0;border:0;border-radius:16px;padding:0;display:block}.document-flashcard[data-dragging=true]{transition:none}.document-flashcard[data-leaving=know]{opacity:0;transform:translate(130%)rotate(12deg)}.document-flashcard[data-leaving=learning]{opacity:0;transform:translate(-130%)rotate(-12deg)}.document-flashcard:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.document-flashcard-inner{transform-style:preserve-3d;transition:transform var(--duration-layout) var(--ease-in-out);display:grid}.document-flashcard[data-flipped=true] .document-flashcard-inner{transform:rotateY(180deg)}.document-flashcard-side{background:var(--paper);border:1px solid var(--line);backface-visibility:hidden;min-height:180px;transition:visibility 0s linear calc(var(--duration-layout) / 2);border-radius:16px;flex-direction:column;grid-area:1/1;justify-content:center;gap:8px;padding:16px;display:flex}.document-flashcard[data-flipped=false] .document-flashcard-side[data-side=back],.document-flashcard[data-flipped=true] .document-flashcard-side[data-side=front]{visibility:hidden}.document-flashcard:hover .document-flashcard-side{border-color:var(--accent)}.document-flashcard-side[data-side=back]{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 6%, var(--paper));transform:rotateY(180deg)}.document-flashcard-face{letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-size:.7rem;font-weight:650}.document-flashcard-side[data-side=back] .document-flashcard-face{color:var(--accent-deep)}.document-flashcard-text{color:var(--foreground);font-size:.95rem;line-height:1.5}.math-text-formula{vertical-align:middle;max-width:100%;display:inline-block}.math-text-formula[data-display=true]{text-align:center;margin:4px 0;display:block}.math-text-formula svg{max-width:100%;height:auto}.math-text-latex{font-family:var(--font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);word-break:break-word;font-size:.85em}.document-deck-hint{text-align:center;min-height:1.2em;color:var(--muted);margin:8px 0;font-size:.76rem}.document-deck-grade{gap:8px;display:flex}.document-deck-grade[data-visible=false]{visibility:hidden}.document-deck-grade>.document-action{flex:1;justify-content:center;align-items:center;gap:6px;min-height:40px;display:inline-flex}.document-deck-grade>.document-action[data-pile=know]{border-color:var(--deck-know);color:var(--deck-know)}.document-deck-grade>.document-action[data-pile=learning]{border-color:var(--deck-learning);color:var(--deck-learning)}.document-deck-tools{justify-content:center;gap:8px;margin-top:12px;display:flex}.document-deck-tool{border:1px solid var(--line);width:36px;height:36px;color:var(--muted);background:0 0;border-radius:999px;justify-content:center;align-items:center;display:inline-flex}.document-deck-tool:hover:not(:disabled){color:var(--ink);background:var(--highlight)}.document-deck-tool:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.document-deck-tool:disabled{opacity:.4}.document-deck-round{text-align:center;flex-direction:column;align-items:center;gap:10px;padding:12px 0 4px;display:flex}.document-deck-round-title{color:var(--foreground);margin:0;font-size:1rem;font-weight:650}.document-deck-round>.document-sheet-note{margin:0}.document-deck-stats{gap:8px;width:100%;display:flex}.document-deck-stat{border-radius:12px;flex-direction:column;flex:1;gap:2px;margin:0;padding:10px 12px;font-size:.76rem;font-weight:600;display:flex}.document-deck-stat>strong{font-variant-numeric:tabular-nums;font-size:1.5rem;line-height:1.1}.document-deck-round-actions{flex-direction:column;gap:8px;width:100%;margin-top:4px;display:flex}@media (prefers-reduced-motion:reduce){.document-flashcard,.document-flashcard-inner,.document-flashcard-side,.document-deck-bar>span{transition:none}}@media print{body *{visibility:hidden}:where(dialog).document-summary-sheet,:where(dialog).document-summary-sheet *{visibility:visible}:where(dialog).document-summary-sheet,:where(dialog).document-summary-sheet[open]{width:100%;height:auto;max-height:none;box-shadow:none;color:#000;background:#fff;border:0;border-radius:0;margin:0;padding:0;display:block;position:absolute;inset:0 auto auto 0;overflow:visible}:where(dialog).document-summary-sheet::backdrop{background:0 0;display:none}:where(dialog).document-summary-sheet>.document-sheet-head{background:0 0;border:0;margin:0 0 12px;padding:0;position:static}:where(dialog).document-summary-sheet .document-sheet-back,:where(dialog).document-summary-sheet .document-sheet-actions,:where(dialog).document-summary-sheet .document-sheet-status,:where(dialog).document-summary-sheet .document-sheet-loading,:where(dialog).document-summary-sheet .document-error,:where(dialog).document-summary-sheet .sr-only{display:none}.document-summary-row{break-inside:avoid;border:0;padding:0}}@media (max-width:639px){.document-card,.document-pipeline{padding:10px 12px}.document-card-title{white-space:normal}:where(dialog).document-chooser,:where(dialog).document-sheet{--sheet-pad-t:14px;--sheet-pad-x:14px;--sheet-pad-b:14px;padding:var(--sheet-pad-t) var(--sheet-pad-x) var(--sheet-pad-b);border-radius:20px}}.document-readback{align-items:flex-start;gap:10px;margin:0 0 14px;display:flex}.document-readback-mark{flex:none;margin-top:1px}.document-readback-body{flex-direction:column;gap:8px;min-width:0;display:flex}.document-readback-line{color:var(--foreground);overflow-wrap:anywhere;margin:0;font-size:.92rem;line-height:1.5}.document-readback-line strong{font-weight:650}.document-readback-topics{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.document-topic-chip{border:1px solid var(--line);background:var(--chrome);max-width:100%;min-height:26px;color:var(--muted);overflow-wrap:anywhere;border-radius:999px;align-items:center;padding:2px 10px;font-size:.75rem;line-height:1.25;display:inline-flex}.document-topic-chip[data-linked]{background:var(--accent-soft,#d7ebe6);color:var(--accent-deep);border-color:#0000;font-weight:600}.document-needs-prompt{color:var(--ink);margin:0 0 8px;font-size:.82rem;font-weight:600}.document-needs{flex-direction:column;gap:8px;display:flex}.document-need{text-align:left;width:100%;color:var(--foreground);background:var(--chrome);border:1px solid var(--line);transition:border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);border-radius:16px;align-items:flex-start;gap:12px;padding:12px 14px;display:flex;box-shadow:0 1px #1c19150a}button.document-need:hover{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 6%, var(--chrome))}.document-need[data-suggested]{border-color:var(--accent);background:var(--accent-soft,#d7ebe6)}button.document-need[data-suggested]:hover{background:color-mix(in srgb, var(--accent) 22%, var(--chrome))}button.document-need:focus-visible,.document-need-format:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.document-need-icon{background:var(--accent-soft,#d7ebe6);width:36px;height:36px;color:var(--accent-deep);border-radius:10px;flex:none;place-items:center;display:grid}.document-need[data-suggested] .document-need-icon{background:var(--chrome)}.document-need-body{flex-direction:column;flex:1;align-items:flex-start;gap:3px;min-width:0;display:flex}.document-need-flag{background:var(--accent);color:#fff;border-radius:999px;align-items:center;min-height:22px;margin-bottom:2px;padding:0 9px;font-size:.7rem;font-weight:600;line-height:1.2;display:inline-flex}.document-need-title{color:var(--foreground);margin:0;font-size:.95rem;font-weight:600;line-height:1.3}.document-need-description{color:var(--ink);margin:0;font-size:.82rem;line-height:1.4}.document-need-meta{flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:4px;display:flex}.document-need-tag{border:1px solid var(--line);background:var(--chrome);min-height:22px;color:var(--ink);border-radius:999px;align-items:center;padding:0 9px;font-size:.72rem;font-weight:600;line-height:1.2;display:inline-flex}.document-need-cost{color:var(--muted);margin:0;font-size:.75rem;line-height:1.35}.document-need-formats{flex-wrap:wrap;gap:6px;margin-top:6px;display:flex}.document-need-format{border:1px solid var(--accent);background:var(--chrome);min-height:32px;color:var(--accent-deep);transition:background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);border-radius:999px;padding:0 14px;font-size:.8rem;font-weight:600;line-height:1.2}.document-need-format:hover:not(:disabled){background:var(--accent);color:#fff}.session-sheet-note{color:var(--muted);margin:6px 0 0;padding:0 4px;font-size:.78rem;line-height:1.35}.document-need-chevron{color:var(--muted);flex:none;align-self:center}.document-topic-toggle{border:1px solid var(--line);background:var(--chrome);text-align:left;width:100%;min-height:36px;transition:border-color var(--duration-fast) var(--ease-out);border-radius:12px;justify-content:space-between;align-items:center;gap:8px;margin:8px 0 0;padding:6px 12px;display:flex}.document-topic-toggle:hover{border-color:var(--accent)}.document-topic-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.document-topic-toggle-action{color:var(--accent-deep);flex:none;align-items:center;gap:4px;font-size:.78rem;font-weight:600;display:inline-flex}.document-topic-toggle-chevron{transition:transform var(--duration-fast) var(--ease-out)}.document-topic-toggle[aria-expanded=true] .document-topic-toggle-chevron{transform:rotate(180deg)}.document-topic-progress{color:var(--ink);margin:0;font-size:.75rem;font-weight:600;line-height:1.35}.document-topic-list{overscroll-behavior:contain;flex-direction:column;gap:6px;width:100%;margin:6px 0 0;padding:0;list-style:none;display:flex;overflow-y:auto}.document-topic-list[data-more]{-webkit-mask-image:linear-gradient(#000 calc(100% - 32px),#0000);mask-image:linear-gradient(#000 calc(100% - 32px),#0000)}.document-topic-scroll-hint{color:var(--muted);justify-content:center;align-items:center;gap:4px;margin:4px 0 0;font-size:.72rem;font-weight:600;display:flex}.document-topic-scroll-hint[data-hidden]{visibility:hidden}.document-topic-row{border:1px solid var(--line);background:var(--chrome);border-radius:12px;flex-direction:column;flex:none;align-items:flex-start;gap:2px;padding:10px 12px;display:flex}.document-topic-row[data-done]{background:0 0}.document-topic-label{color:var(--foreground);overflow-wrap:anywhere;margin:0;font-size:.88rem;font-weight:600;line-height:1.3}.document-topic-meta{color:var(--muted);margin:0;font-size:.75rem;line-height:1.35}.document-topic-row .document-need-formats{margin-top:4px}@media (max-width:639px){.document-need{min-height:44px}.document-need-format{flex:auto;min-height:44px}.document-topic-toggle,.document-chooser>.document-chooser-actions .document-action{min-height:44px}}@media (prefers-reduced-motion:reduce){.document-need,.document-need-format,.document-topic-toggle,.document-topic-toggle-chevron{transition:none}}
:root{--accent-soft:#d7ebe6;--ok:#15803d;--ok-soft:#dcefdf;--warn:#b45309;--warn-soft:#f6e6cc;--danger-soft:#f8dfe4;--card-shadow:0 1px 0 #1c19150a, 0 8px 24px -12px #1c19152e}.chat-shell.is-home .welcome-inner{text-align:left;align-items:stretch}.tutor-home{flex-direction:column;gap:14px;width:100%;display:flex}.tutor-home-head{text-align:center}.tutor-home-greeting{letter-spacing:-.025em;color:var(--foreground);margin:0;font-size:clamp(1.75rem,4.4vw,2.4rem);font-weight:700;line-height:1.1}.tutor-home-memory{background:var(--chrome);border:1px solid var(--line);box-shadow:var(--card-shadow);border-radius:16px;align-items:flex-start;gap:12px;padding:14px 16px;display:flex}.tutor-home .tutor-home-memory{text-align:left;align-self:stretch}.tutor-home-memory-mark{flex:none}.tutor-home-memory-copy{flex-direction:column;align-items:flex-start;gap:8px;min-width:0;display:flex}.tutor-home-memory-line{color:var(--foreground);margin:0;font-size:.92rem;line-height:1.45}.tutor-home-memory-action{border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:999px;min-height:32px;padding:0 14px;font-size:.8rem;font-weight:600}.tutor-home-memory-action:hover{background:var(--accent-deep);border-color:var(--accent-deep)}.tutor-home-memory.is-reviewing{display:block}.tutor-home-memory-note{color:var(--muted)}.tutor-home-memory-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.tutor-home-memory-action.is-secondary{color:var(--accent);background:0 0}.tutor-home-memory-action.is-secondary:hover{background:color-mix(in srgb, var(--accent) 10%, transparent);color:var(--accent-deep)}.tutor-home-memory-later{min-height:32px;color:var(--muted);background:0 0;border:0;padding:0 6px;font-size:.8rem;font-weight:600}.tutor-home-memory-later:hover{color:var(--ink)}.tutor-home-tile{background:var(--accent);color:#fff;text-align:left;width:100%;min-height:64px;box-shadow:0 10px 24px -14px color-mix(in srgb, var(--accent) 80%, black);transition:background-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);border:0;border-radius:16px;align-items:center;gap:14px;padding:14px 16px;display:flex}.tutor-home-tile:hover:not(:disabled){background:var(--accent-deep)}.tutor-home-tile:active:not(:disabled){transform:scale(.99)}.tutor-home-tile:disabled{opacity:.6}.tutor-home-tile:focus-visible,.tutor-home-resume:focus-visible,.material-item:focus-visible,.material-source:focus-visible,.interrupt-chip:focus-visible,.player-button:focus-visible,.outline-row:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.tutor-home-tile-icon{background:#ffffff29;border-radius:12px;flex:none;place-items:center;width:40px;height:40px;display:grid}.tutor-home-tile-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.tutor-home-tile-title{font-size:1rem;font-weight:650}.tutor-home-tile-hint{opacity:.85;font-size:.8rem}.tutor-home-tile-chevron{opacity:.8;flex:none}.chat-shell.is-home .tutor-home-footer{text-align:center;align-items:center;gap:8px}.tutor-home-resume{border:1px solid color-mix(in srgb, var(--accent) 35%, var(--line));background:var(--chrome);max-width:100%;min-height:36px;color:var(--accent-deep);text-align:center;cursor:pointer;box-shadow:var(--card-shadow);transition:background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);border-radius:18px;justify-content:center;align-items:center;gap:6px;padding:8px 14px;font-size:.85rem;font-weight:600;line-height:1.35;display:inline-flex}.tutor-home-resume-text{min-width:0}.tutor-home-resume svg{flex:none}.tutor-home-resume:hover{background:var(--accent-soft);border-color:var(--accent)}.tutor-home-resume:active{transform:scale(.98)}.tutor-home-footer .welcome-status{min-height:0}.chat-shell.is-home .tutor-home-head,.chat-shell.is-home .welcome-trust,.chat-shell.is-home .welcome-ladder,.chat-shell.is-home .welcome-status{isolation:isolate;position:relative}.chat-shell.is-home .tutor-home-head:before,.chat-shell.is-home .welcome-trust:before,.chat-shell.is-home .welcome-ladder:before,.chat-shell.is-home .welcome-status:not(:empty):before{content:"";z-index:-1;background:var(--paper);filter:blur(6px);pointer-events:none;border-radius:16px;position:absolute;inset:-6px -10px}@media (max-width:639px){.chat-shell.centered.is-home{top:76px;bottom:calc(12px + var(--kb-inset,0px));flex-direction:column;display:flex;overflow-y:auto;transform:translate(-50%)}.chat-shell.is-home>.welcome:first-child{flex:1 0 auto}.chat-shell.is-home>.welcome:first-child>.welcome-inner,.chat-shell.is-home .tutor-home{height:100%}.chat-shell.is-home .tutor-home-head{text-align:left;padding-top:8px}.chat-shell.is-home .tutor-home-tile{margin-top:auto}.chat-shell.is-home .tutor-home-footer{gap:4px}.chat-shell.is-home .welcome-trust{font-size:.74rem}}.material-sources{grid-template-columns:1fr 1fr;gap:8px;display:grid}.material-sources>:only-child{grid-column:1/-1}.material-source{border:1px solid var(--line);background:var(--paper);min-height:52px;color:var(--foreground);border-radius:14px;justify-content:center;align-items:center;gap:8px;padding:0 14px;font-size:.9rem;font-weight:600;display:flex}.material-source:hover{border-color:var(--accent)}.material-source.is-primary{background:var(--accent);border-color:var(--accent);color:#fff}.material-source.is-primary:hover{background:var(--accent-deep)}.material-formats{text-align:center;margin:8px 0 0}.material-heading{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:16px 0 6px;font-size:.72rem;font-weight:600}.material-list{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.material-item{width:100%;min-height:44px;color:var(--foreground);text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;padding:6px 8px;display:flex}.material-item:hover{background:var(--highlight)}.material-badge{background:var(--accent-soft);width:32px;height:22px;color:var(--accent-deep);letter-spacing:.04em;border-radius:6px;flex:none;place-items:center;font-size:.62rem;font-weight:700;display:grid}.material-badge.is-pdf{background:var(--danger-soft);color:var(--danger)}.material-badge.is-pptx{background:var(--warn-soft);color:var(--warn)}.material-text{flex-direction:column;flex:1;min-width:0;display:flex}.material-title{white-space:nowrap;text-overflow:ellipsis;font-size:.85rem;font-weight:550;overflow:hidden}.material-meta{color:var(--muted);font-size:.74rem}.material-chevron{color:var(--muted);flex:none}.material-see-all{min-height:36px;color:var(--accent-deep);background:0 0;border:0;margin:4px 8px 0;padding:0;font-size:.8rem;font-weight:600}.sidebar-tabs{background:var(--highlight);border-radius:12px;gap:4px;margin:10px 0 0;padding:3px;display:flex}.sidebar-tab{min-width:0;min-height:34px;color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:9px;flex:1;justify-content:center;align-items:center;gap:6px;padding:0 8px;font-size:.8rem;font-weight:600;display:inline-flex}.sidebar-tab.is-active{background:var(--chrome);color:var(--foreground);box-shadow:0 1px 2px #1c19151f}.sidebar-tab:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.sidebar-tab-count{background:color-mix(in srgb, var(--muted) 16%, transparent);min-width:20px;height:18px;color:var(--muted);font-variant-numeric:tabular-nums;box-sizing:border-box;border-radius:999px;place-items:center;padding:0 6px;font-size:.68rem;font-weight:700;line-height:1;display:inline-grid}.sidebar-tab.is-active .sidebar-tab-count{background:var(--accent-soft);color:var(--accent-deep)}.sidebar-panel{flex-direction:column;flex:1;min-height:0;margin-top:4px;display:flex}.sidebar-material{overscroll-behavior:contain;scrollbar-width:none;flex:1;min-height:0;overflow:hidden auto}.sidebar-material::-webkit-scrollbar{display:none}.list-sentinel,.lesson-list li.list-sentinel{min-height:1px;color:var(--muted);flex-direction:column;align-items:center;gap:4px;padding:6px 0;font-size:.82rem;list-style:none;display:flex}.list-sentinel:empty{padding:0}.list-sentinel-retry{min-height:36px;color:var(--accent-deep);background:0 0;border:0;padding:0 8px;font-size:.82rem;font-weight:600}.sidebar-other-matches{min-height:36px;color:var(--accent-deep);background:0 0;border:0;margin-top:6px;padding:0;font-size:.82rem;font-weight:600}.interrupt-chips{scrollbar-width:none;gap:6px;margin-bottom:8px;display:flex;overflow-x:auto}.interrupt-chips::-webkit-scrollbar{display:none}.interrupt-chip{border:1px solid var(--line);background:var(--chrome);min-height:32px;color:var(--foreground);white-space:nowrap;border-radius:999px;flex:none;padding:0 12px;font-size:.8rem;font-weight:550}.interrupt-chip:hover{border-color:var(--accent);color:var(--accent-deep)}@media (max-width:639px){.interrupt-chip{min-height:36px}:where(dialog).document-chooser,:where(dialog).document-sheet{width:100%;max-width:none;max-height:calc(100dvh - var(--kb-inset,0px) - 24px);--sheet-pad-b:calc(16px + env(safe-area-inset-bottom,0px));padding-bottom:var(--sheet-pad-b);border-radius:22px 22px 0 0;margin:auto 0 0}}.tutor-main.is-docked{background:var(--paper)}.tutor-main.is-docked>.whiteboard-frame{top:var(--topbar-height);bottom:calc(var(--dock-h,0px) + 20px);transition:right var(--duration-layout) var(--ease-out)}.tutor-main.has-outline>.whiteboard-frame{right:var(--outline-w)}.tutor-main{--outline-w:340px}.tutor-main.has-outline .chat-shell{left:calc((100% - var(--outline-w)) / 2);width:min(720px, calc(100% - var(--outline-w) - 32px))}.lesson-header{text-align:center;flex-direction:column;grid-column:2;justify-content:center;align-items:center;min-width:0;display:flex}.lesson-header-title{white-space:nowrap;text-overflow:ellipsis;max-width:100%;color:var(--foreground);margin:0;font-size:.92rem;font-weight:650;line-height:1.12;overflow:hidden}.lesson-header-section{white-space:nowrap;text-overflow:ellipsis;max-width:100%;color:var(--muted);margin:1px 0 0;font-size:.74rem;line-height:1.12;overflow:hidden}.topbar-outline{border:1px solid var(--line);background:var(--chrome);width:32px;height:32px;color:var(--foreground);border-radius:10px;flex-shrink:0;place-items:center;padding:0;display:grid}.topbar-outline:hover,.topbar-outline.is-open{background:var(--highlight)}.topbar-outline.is-open{border-color:var(--accent);color:var(--accent-deep)}@media (max-width:639px){.lesson-topbar.is-lesson .topbar-brand{display:none}.lesson-header{text-align:left;align-items:flex-start}}.lesson-header-source{vertical-align:-3px;background:var(--accent-soft);width:18px;height:18px;color:var(--accent-deep);border-radius:5px;place-items:center;margin-right:6px;display:inline-grid}.narration-caption{left:50%;bottom:calc(var(--dock-h,0px) + 28px);z-index:9;text-align:center;pointer-events:none;width:min(680px,100% - 32px);margin:0;position:absolute;transform:translate(-50%)}.tutor-main.has-outline .narration-caption{left:calc((100% - var(--outline-w)) / 2);width:min(680px, calc(100% - var(--outline-w) - 32px))}.narration-caption span{background:color-mix(in srgb, var(--foreground) 82%, transparent);color:#fff;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:8px;padding:3px 8px;font-size:.92rem;line-height:1.7;display:inline}@media (max-width:639px){.narration-caption span{font-size:.85rem}}.lesson-player{border:1px solid var(--line);background:var(--chrome);box-shadow:var(--card-shadow);border-radius:16px;grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"play scrub time settings";align-items:center;gap:10px;margin-bottom:8px;padding:6px 8px;display:grid}.player-button{min-width:32px;height:32px;color:var(--foreground);background:0 0;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:0 8px;font-size:.78rem;font-weight:600;display:inline-flex}.player-button:hover:not(:disabled){background:var(--highlight)}.player-button:disabled{opacity:.45}.player-button.is-on{color:var(--accent-deep);background:var(--accent-soft)}.player-button.is-muted{color:var(--danger)}.player-play{background:var(--accent);color:#fff;border-radius:50%;grid-area:play;width:36px;min-width:36px;padding:0}.player-play:hover:not(:disabled){background:var(--accent-deep)}.player-play.is-warming{opacity:.7}.player-scrubber{grid-area:scrub;min-width:0;position:relative}.player-track{touch-action:none;align-items:center;height:28px;display:flex;position:relative}.player-track.is-seekable{cursor:pointer}.player-track:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}.player-rail{background:#e7e0d2;border-radius:999px;width:100%;height:6px;position:relative}.player-fill{border-radius:inherit;background:var(--accent);position:absolute;inset:0 auto 0 0}.player-tick{background:var(--chrome);border-radius:1px;width:2px;height:10px;margin-left:-1px;position:absolute;top:-2px}.player-thumb{background:var(--accent);border:2px solid var(--chrome);border-radius:50%;width:12px;height:12px;margin-left:-6px;position:absolute;top:50%;transform:translateY(-50%);box-shadow:0 1px 3px #1c19154d}.player-marker{background:0 0;border:0;width:22px;height:22px;margin-left:-11px;padding:0;position:absolute;top:-4px}.player-marker:before{content:"";border:2px solid var(--chrome);background:var(--line-strong);border-radius:2px;width:10px;height:10px;position:absolute;top:6px;left:6px;transform:rotate(45deg)}.player-marker.is-ok:before{background:var(--ok)}.player-marker.is-retry:before{background:#d97706}.player-marker.is-missed:before{background:var(--danger)}.player-marker:focus-visible{outline:2px solid var(--accent);outline-offset:0;border-radius:6px}.player-time{font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap;grid-area:time;font-size:.74rem}.player-settings{grid-area:settings;position:relative}.player-settings-panel{z-index:20;border:1px solid var(--line);background:var(--chrome);border-radius:14px;flex-direction:column;gap:2px;width:15rem;padding:6px;display:flex;position:absolute;bottom:calc(100% + 10px);right:-2px;box-shadow:0 16px 40px -12px #1c191547}.player-settings-row{min-height:40px;color:var(--foreground);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:0 8px 0 10px;font-size:.85rem;display:flex}.player-settings-row:hover,.player-settings-row:focus-within{background:var(--highlight)}.player-settings-row label{flex:1}.player-settings-select{border:1px solid var(--line);background:var(--chrome);max-width:8.5rem;min-height:30px;color:var(--foreground);font:inherit;border-radius:8px;padding:0 8px;font-size:.82rem}.player-settings-select:focus-visible,.player-settings-switch:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.player-settings-switch{text-align:left;background:0 0;border:0;width:100%}.player-switch{background:var(--line-strong);width:34px;height:20px;transition:background-color var(--duration-fast) var(--ease-out);border-radius:999px;flex:none;position:relative}.player-switch:after{content:"";width:16px;height:16px;transition:transform var(--duration-fast) var(--ease-out);background:#fff;border-radius:50%;position:absolute;top:2px;left:2px}.player-switch.is-on{background:var(--accent)}.player-switch.is-on:after{transform:translate(14px)}@media (max-width:639px){.lesson-player{border-radius:14px;gap:8px}.player-button{min-width:40px;height:40px}.player-play{width:40px;min-width:40px;height:40px}.player-settings-row{min-height:44px}}.outline-panel.is-side{top:var(--topbar-height);z-index:11;width:var(--outline-w);border-left:1px solid var(--line);background:var(--chrome);flex-direction:column;display:flex;position:absolute;bottom:0;right:0}:where(dialog).outline-panel.is-sheet{flex-direction:column;height:min(70dvh,560px);padding:12px;display:flex}:where(dialog).outline-panel.is-sheet:not([open]){display:none}.outline-head{border-bottom:1px solid var(--line);align-items:center;gap:8px;padding:10px 12px 8px;display:flex}.outline-panel.is-sheet .outline-head{padding:0 0 10px}.outline-tabs{background:var(--highlight);border-radius:12px;flex:1;gap:4px;padding:3px;display:flex}.outline-tab{min-height:32px;color:var(--muted);background:0 0;border:0;border-radius:9px;flex:1;font-size:.8rem;font-weight:600}.outline-tab.is-active{background:var(--chrome);color:var(--foreground);box-shadow:0 1px 2px #1c19151f}.outline-tab:focus-visible,.outline-close:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.outline-close{width:32px;height:32px;color:var(--muted);background:0 0;border:0;border-radius:10px;place-items:center;display:grid}.outline-close:hover{background:var(--highlight)}.outline-scroll{flex:1;min-height:0;padding:8px;overflow-y:auto}.outline-list,.transcript-list{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.outline-row{width:100%;min-height:44px;color:var(--foreground);text-align:left;background:0 0;border:0;border-radius:12px;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:10px;padding:8px;display:grid}.outline-row:hover:not(:disabled){background:var(--highlight)}.outline-row.is-current{background:color-mix(in srgb, var(--accent) 8%, var(--chrome))}.outline-step{border:1.5px solid var(--line-strong);width:22px;height:22px;color:var(--muted);border-radius:50%;place-items:center;font-size:.72rem;font-weight:700;display:grid}.outline-step.is-done{border-color:var(--accent);background:var(--accent);color:#fff}.outline-row.is-current .outline-step{border-color:var(--accent);color:var(--accent-deep)}.outline-text{flex-direction:column;gap:2px;min-width:0;display:flex}.outline-title{font-size:.86rem;font-weight:600;line-height:1.3}.outline-meta{color:var(--muted);font-size:.74rem}.outline-meta.is-ok{color:var(--ok)}.outline-meta.is-retry{color:var(--warn)}.outline-meta.is-missed{color:var(--danger)}.outline-duration{font-variant-numeric:tabular-nums;color:var(--muted);padding-top:2px;font-size:.74rem}.outline-hint,.outline-empty{color:var(--muted);margin:10px 8px 4px;font-size:.74rem}.transcript-row{border-radius:10px;padding:8px}.transcript-row.is-active{background:color-mix(in srgb, var(--accent) 8%, var(--chrome))}.transcript-row-section{letter-spacing:.06em;text-transform:uppercase;color:var(--accent-deep);margin-bottom:4px;font-size:.7rem;font-weight:600;display:block}.transcript-row-text{color:var(--ink);margin:0;font-size:.86rem;line-height:1.5}@media (max-width:639px){.lesson-topbar .feedback-fab{position:relative;bottom:auto;right:auto}.lesson-topbar .canvas-controls{position:static}}:where(dialog).check-card.recap-card{text-align:left;--sheet-pad-x:16px;--sheet-pad-b:14px;width:min(560px,100% - 32px);padding:14px var(--sheet-pad-x) var(--sheet-pad-b)}.recap-card .check-eyebrow{text-align:left}.recap-lesson{color:var(--muted);margin:2px 0 12px;font-size:.82rem}.recap-score{align-items:center;gap:16px;display:flex}.recap-score .score-ring{flex:none}.recap-score-copy{min-width:0}.recap-verdict{color:var(--foreground);margin:0;font-size:1.15rem;font-weight:700;line-height:1.25}.recap-score-line{color:var(--muted);margin:4px 0 0;font-size:.85rem}.recap-sections{flex-wrap:wrap;gap:6px;margin:14px 0 0;padding:0;list-style:none;display:flex}.recap-chip{border-radius:999px;align-items:center;gap:4px;min-height:26px;padding:0 10px;font-size:.76rem;font-weight:600;display:inline-flex}.recap-chip.is-ok{background:var(--ok-soft);color:var(--ok)}.recap-chip.is-retry{background:var(--warn-soft);color:var(--warn)}.recap-chip.is-missed{background:var(--danger-soft);color:var(--danger)}.recap-block{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}.recap-block-title{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 8px;font-size:.72rem;font-weight:600}.recap-points{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.recap-points li{color:var(--foreground);gap:10px;font-size:.9rem;line-height:1.45;display:flex}.recap-point-number{background:var(--accent);color:#fff;border-radius:50%;flex:none;place-items:center;width:22px;height:22px;font-size:.72rem;font-weight:700;display:grid}.recap-points li.is-hidden{color:var(--muted);font-style:italic}.recap-points li.is-hidden .recap-point-number{background:var(--line-strong)}.recap-recall{flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:12px;display:flex}.recap-recall-prompt{color:var(--foreground);margin:0;font-size:.9rem;line-height:1.45}.recap-recall-label{color:var(--muted);margin:0;font-size:.76rem;font-weight:600}.recap-recall-input{resize:vertical;border:1px solid var(--line-strong);background:var(--chrome);width:100%;min-height:4.5rem;color:var(--foreground);font:inherit;border-radius:14px;padding:10px 12px;font-size:.9rem;line-height:1.45}.recap-card .recap-recall-show,.recap-card .recap-worked-show{flex:none;min-height:32px;padding:0 12px;font-size:.8rem}.recap-recall-yours{border:1px dashed var(--line-strong);border-radius:12px;margin-bottom:10px;padding:8px 12px}.recap-recall-text{color:var(--foreground);white-space:pre-wrap;overflow-wrap:anywhere;margin:2px 0 0;font-size:.88rem;line-height:1.45}.recap-recall-status{color:var(--muted);margin:0 0 10px;font-size:.84rem;line-height:1.45}.recap-recall-status.is-checking{align-items:center;gap:8px;display:flex}.recap-recall-mark{flex:none}.recap-recall-status.is-ok{color:var(--ok);font-weight:600}.recap-recall-fix{background:var(--danger-soft);border-radius:12px;margin-bottom:10px;padding:8px 12px}.recap-recall-fix .recap-recall-label{color:var(--danger)}.recap-recall-fix ul{color:var(--foreground);flex-direction:column;gap:4px;margin:4px 0 0;padding-left:1.1em;font-size:.88rem;line-height:1.45;display:flex}.recap-point-copy{flex-direction:column;gap:4px;min-width:0;display:flex}.recap-point-mark{font-size:.76rem;font-weight:600}.recap-point-mark.is-had{color:var(--ok)}.recap-point-mark.is-missing{color:var(--danger)}.recap-self-check{flex-wrap:wrap;gap:6px;display:flex}.recap-card .recap-self-check button{min-height:30px;padding:0 10px;font-size:.78rem}.recap-card .recap-self-check button[aria-pressed=true]{border-color:var(--accent);color:var(--accent);font-weight:600}.recap-focus{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.recap-focus li{min-height:32px;color:var(--foreground);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px;font-size:.9rem;line-height:1.45;display:flex}.recap-focus-copy{flex-direction:column;min-width:0;display:flex}.recap-focus-title{overflow-wrap:anywhere}.recap-focus-status{font-size:.76rem;font-weight:600}.recap-focus-status.is-right{color:var(--ok)}.recap-focus-status.is-missed{color:var(--danger)}.recap-card .recap-reteach{flex:none;min-height:32px;padding:0 12px;font-size:.8rem}.recap-worked-prompt{color:var(--ink);margin:0 0 8px;font-size:.88rem;line-height:1.45}.recap-worked-steps{background:var(--paper);border:1px solid var(--line);border-radius:12px;flex-direction:column;gap:4px;margin:0;padding:10px 12px;list-style:none;display:flex}.recap-worked-steps li{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 12px;display:flex}.recap-worked-line{font-family:var(--font-board-hand), var(--font-geist-sans), sans-serif;color:var(--ink);font-size:1.15rem;line-height:1.35}.recap-worked-try{color:var(--muted);margin:0 0 8px;font-size:.82rem;line-height:1.45}.recap-worked-steps li.is-hidden{border-top:1px dashed var(--line);align-items:center;min-height:36px}.recap-worked-blank{color:var(--muted);font-size:.82rem;font-style:italic}.recap-worked-note{color:var(--ok);font-size:.74rem;font-weight:600}.recap-footer{bottom:calc(-1 * var(--sheet-pad-b));z-index:1;margin:18px calc(-1 * var(--sheet-pad-x)) calc(-1 * var(--sheet-pad-b));padding:12px var(--sheet-pad-x) var(--sheet-pad-b);background:var(--chrome);border-top:1px solid var(--line);position:sticky}.recap-actions{margin-top:0}.recap-card .recap-footer .recap-note{text-align:center;color:var(--muted);margin:8px 0 0;font-size:.74rem}@media (max-width:639px){:where(dialog).check-card,:where(dialog).check-card.recap-card{width:100%;max-width:none;max-height:calc(100dvh - var(--kb-inset,0px) - 24px);border-radius:22px 22px 0 0;margin:auto 0 0}:where(dialog).check-card.recap-card{--sheet-pad-b:calc(14px + env(safe-area-inset-bottom,0px))}}.check-review{border-radius:10px;margin:10px 0 0;padding:6px 10px;font-size:.85rem;font-weight:600}.check-review.is-ok{background:var(--ok-soft);color:var(--ok)}.check-review.is-retry{background:var(--warn-soft);color:var(--warn)}.check-review.is-miss{background:var(--danger-soft);color:var(--danger)}.check-review-options{padding:0;list-style:none}.check-review-options .check-option{border:1px solid var(--line);background:var(--chrome);color:var(--foreground);font-size:.9rem}.check-review-options .check-option.is-correct{border-color:color-mix(in srgb, var(--accent) 55%, var(--line));color:var(--accent);background:color-mix(in srgb, var(--accent) 10%, var(--chrome));font-weight:600}.check-review-answer{color:var(--accent-deep);margin:12px 0 0;font-size:.95rem;font-weight:600}.chat-shell:not(.centered) .chat-panel{border-radius:999px;padding:4px 4px 4px 14px;box-shadow:0 6px 20px #1c19150f}.chat-shell:not(.centered) .chat-row{gap:4px}.chat-shell:not(.centered) .icon-button{width:32px;min-width:32px;height:32px;min-height:32px}.chat-shell:not(.centered) .icon-button svg{width:15px;height:15px}.chat-shell:not(.centered) .text-button{height:32px;padding:0 10px;font-size:.8rem}.chat-shell:not(.centered) .chat-row textarea{font-size:.92rem}.chat-shell:not(.centered) .chat-panel.is-grown{border-radius:24px}@media (max-width:639px){.chat-shell:not(.centered) .chat-panel{padding:3px 3px 3px 12px}.chat-shell:not(.centered) .icon-button{width:30px;min-width:30px;height:30px;min-height:30px}.chat-shell:not(.centered) .icon-button svg{width:14px;height:14px}.chat-shell:not(.centered) .chat-row textarea{font-size:1rem}}.material-list li.has-action{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px;display:grid}.material-list li:hover .lesson-menu{opacity:1}.material-list li.active .material-item{background:var(--highlight);box-shadow:inset 3px 0 0 var(--accent)}.select-bar{justify-content:flex-end;align-items:center;gap:4px;min-height:30px;margin:6px 0 2px;display:flex}.select-bar.is-selecting{justify-content:space-between}.select-bar-btn{min-height:30px;color:var(--muted);white-space:nowrap;transition:color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);background:0 0;border:0;border-radius:8px;align-items:center;gap:4px;padding:0 8px;font-size:.78rem;font-weight:600;display:inline-flex}.select-bar-btn:hover:not(:disabled),.select-bar-btn:focus-visible{color:var(--foreground);background:var(--highlight)}.select-bar-btn:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.select-bar-btn.is-danger:not(:disabled){color:var(--danger)}.select-bar-btn:disabled{opacity:.45}.select-box{border:1.5px solid var(--muted);color:#fff;box-sizing:border-box;border-radius:5px;flex:none;place-items:center;width:18px;height:18px;margin-top:1px;display:inline-grid}li.is-selected>.lesson-item,li.is-selected>.material-item{background:var(--highlight)}li.is-selected .select-box{border-color:var(--accent);background:var(--accent)}
