.compact { padding-top: 12px; padding-bottom: 28px; }
.learning-hero { padding-top: 50px; padding-bottom: 28px; }
.learning-hero h1 { font-size: clamp(37px,5vw,64px); }
.learning-hero .hero-copy { font-size: 16px; }
.learning-hero .orb { width: 245px; }
.learning-hero .hero-orb { min-height: 290px; }
.learn-split { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 18px; align-items: start; }
.learn-split > .card { min-width: 0; }
.local-note,.stat-caption { color: var(--muted); font-size: 12px; line-height: 1.65; }
.local-note { margin-top: 18px; max-width: 560px; }
.stat-caption { margin: 8px 0 0; }
.studio-switch { color: var(--muted); font-size: 12px; white-space: nowrap; }
.muted { color: var(--muted); font-size: 12px; }
.learn-form,.learn-dialog form { display: grid; gap: 16px; }
.learn-form label,.learn-dialog form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
input,textarea,select { max-width: 100%; }
.learn-form input,.learn-form textarea,.learn-form select,.learn-dialog input,.learn-dialog textarea,.learn-dialog select,.search-input,#focusTask,#focusMinutes { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 13px; outline: none; }
.learn-form textarea,.learn-dialog textarea { resize: vertical; min-height: 85px; }
.learn-form input:focus,.learn-form textarea:focus,.learn-form select:focus,.learn-dialog input:focus,.learn-dialog textarea:focus,.learn-dialog select:focus,.search-input:focus,#focusTask:focus,#focusMinutes:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(92,225,230,.08); }
.form-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.learn-form .btn { justify-self: start; }
.small-btn,.filter { min-height: 32px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.small-btn:hover,.filter:hover,.filter.active { border-color: var(--cyan); color: var(--cyan); background: rgba(92,225,230,.06); }
.small-btn.danger { color: var(--danger); }
.btn:disabled,.small-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-status { margin: 0; color: var(--muted); font-size: 12px; white-space: pre-wrap; }
.inline-status.error { color: var(--danger); }
.plan-preview { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.plan-preview h3 { margin-bottom: 7px; }
.plan-preview > p { color: var(--muted); font-size: 13px; white-space: pre-wrap; }
.plan-preview ol { display: grid; gap: 8px; padding-left: 20px; font-size: 13px; }
.plan-preview li span { display: block; color: var(--muted); font-size: 11px; }
.task-filters { display: flex; gap: 7px; margin-bottom: 15px; }
.learn-list { display: grid; gap: 10px; max-height: 510px; overflow: auto; scrollbar-width: thin; }
.learn-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; }
.learn-row.is-active { border-color: var(--cyan); }
.learn-row .row-content { flex: 1; min-width: 0; }
.learn-row strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.learn-row .row-meta { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.learn-row .row-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.learn-row .row-actions .small-btn { min-height: 27px; padding: 4px 7px; font-size: 11px; }
.task-check { width: 18px; height: 18px; accent-color: var(--lime); margin-top: 4px; cursor: pointer; }
.learn-row.done strong { color: var(--muted); text-decoration: line-through; }
.empty-state { min-height: 145px; padding: 20px 10px; display: grid; align-content: center; justify-items: center; text-align: center; gap: 8px; color: var(--muted); }
.empty-state > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 3px; border-radius: 13px; background: var(--surface-2); color: var(--cyan); font-size: 25px; }
.empty-state strong { color: var(--ink); font-weight: 500; font-size: 14px; }
.empty-state p { font-size: 12px; max-width: 300px; margin: 0; }
.focus-card .section-head { margin-bottom: 15px; }
.focus-card h2 { font-size: 27px; margin-top: 10px; }
.timer-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.timer-orbit { position: relative; display: grid; place-items: center; width: 226px; height: 226px; margin: 15px auto; }
.timer-orbit svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-orbit circle { fill: none; stroke-width: 3; }
.timer-track { stroke: var(--surface-3); }
#timerArc { stroke: var(--lime); stroke-dasharray: 560; stroke-dashoffset: 0; stroke-linecap: round; transition: stroke-dashoffset .5s; filter: drop-shadow(0 0 5px rgba(184,243,107,.3)); }
.timer-orbit > div { position: absolute; text-align: center; }
.timer-orbit strong { display: block; font-size: 48px; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.timer-orbit span { color: var(--muted); font-size: 12px; }
.timer-settings { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; color: var(--muted); }
#focusMinutes { width: 110px; padding: 7px 10px; }
.timer-actions { justify-content: center; margin-top: 18px; }
.focus-card .local-note { text-align: center; margin: 18px 0 0; }
.focus-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 10px; min-height: 210px; padding: 18px 2px 28px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.day-bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; width: 10%; height: 150px; }
.day-bar b { font-size: 10px; font-weight: 500; color: var(--muted); margin-bottom: 5px; white-space: nowrap; }
.day-bar .bar { width: min(28px,80%); border-radius: 6px 6px 2px 2px; background: linear-gradient(0deg,rgba(92,225,230,.3),var(--cyan)); min-height: 2px; transition: height .45s; }
.day-bar:last-child .bar { background: linear-gradient(0deg,rgba(184,243,107,.3),var(--lime)); }
.day-bar small { position: absolute; bottom: -22px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.short-list { max-height: 245px; }
.lab-section { position: relative; }
.lab-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; align-items: start; }
.lab-grid-wide { grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); margin-top: 18px; }
.lab-grid > .card { min-width: 0; }
.lab-form-row { grid-template-columns: 1.35fr 1fr .75fr; }
.lab-filter { width: auto; min-width: 110px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface-2); font-size: 11px; }
.quiz-player { min-height: 430px; }
.quiz-player .section-head { margin-bottom: 14px; }
.quiz-progress { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.quiz-progress .meter { flex: 1; margin: 0; }
.quiz-question { font-size: 20px; line-height: 1.45; margin: 18px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.quiz-options { display: grid; gap: 9px; }
.quiz-option { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--ink); cursor: pointer; transition: .2s; font-size: 13px; }
.quiz-option:hover,.quiz-option.selected { border-color: var(--cyan); background: rgba(92,225,230,.08); }
.quiz-option input { accent-color: var(--cyan); margin-top: 3px; }
.quiz-option.correct { border-color: var(--lime); background: rgba(184,243,107,.1); }
.quiz-option.incorrect { border-color: var(--danger); background: rgba(255,117,140,.1); }
.quiz-feedback { margin-top: 14px; padding: 12px; border-radius: 11px; color: var(--muted); background: var(--surface-2); font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.quiz-feedback strong { color: var(--ink); }
.quiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 17px; flex-wrap: wrap; }
.quiz-result { display: grid; gap: 10px; text-align: center; align-content: center; min-height: 320px; }
.quiz-result .score { font-family: 'Space Grotesk'; font-size: 62px; letter-spacing: -.08em; }
.quiz-result .score small { color: var(--muted); font: 14px 'DM Sans'; letter-spacing: 0; }
.lab-history { display: grid; gap: 7px; margin-top: 15px; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.history-item strong { color: var(--ink); display: block; font-size: 12px; overflow-wrap: anywhere; }
.history-item .history-score { color: var(--lime); white-space: nowrap; font-weight: 700; }
.mastery-chart { display: grid; gap: 10px; margin-bottom: 16px; }
.mastery-row { display: grid; grid-template-columns: minmax(70px, .55fr) 1fr 42px; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; }
.mastery-row .meter { margin: 0; }
.mastery-row b { color: var(--ink); font-size: 11px; text-align: right; }
.heatmap { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; margin: 10px 0 17px; }
.heat-cell { aspect-ratio: 1; border-radius: 3px; background: var(--surface-3); }
.heat-cell.l1 { background: rgba(92,225,230,.3); }.heat-cell.l2 { background: rgba(92,225,230,.52); }.heat-cell.l3 { background: rgba(184,243,107,.75); }.heat-cell.l4 { background: var(--lime); }
.review-row { cursor: pointer; }
.review-row .row-meta { line-height: 1.5; }
.feynman-result { margin-top: 17px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: var(--surface-2); line-height: 1.75; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.feynman-result:empty { display: none; }
.feynman-result h4 { color: var(--ink); margin: 0 0 7px; font-size: 14px; }
.quick-start { display: grid; gap: 10px; }
.quick-start select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); }
.quick-start .btn { justify-self: start; }
@media(max-width:1000px) { .lab-grid,.lab-grid-wide { grid-template-columns: 1fr; } }
@media(max-width:680px) { .lab-form-row { grid-template-columns: 1fr 1fr; }.lab-form-row > :first-child { grid-column: span 2; }.toolbar .lab-filter { min-width: 90px; }.quiz-question { font-size: 17px; }.mastery-row { grid-template-columns: 75px 1fr 35px; }.lab-grid-wide { margin-top: 14px; } }
.search-input { width: 160px; font-size: 12px; }
.reader-text { max-height: 360px; overflow: auto; color: var(--muted); line-height: 1.8; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; padding-right: 4px; }
.reader-summary { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.reader-summary h4 { margin: 0 0 10px; font-size: 13px; }
.reader-title { font-size: 18px; overflow-wrap: anywhere; }
.note-preview { margin: 6px 0 0; color: var(--muted); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-card { min-height: 328px; }
.flashcard { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; width: 100%; min-height: 200px; padding: 22px; background: radial-gradient(circle at 80% 0,rgba(168,138,255,.10),transparent 55%),var(--surface-2); border: 1px solid var(--line); border-radius: 15px; color: var(--ink); transition: transform .3s, border-color .3s; margin: 14px 0; }
.flashcard:hover { border-color: var(--violet); }
.flashcard.flipped { background: radial-gradient(circle at 5% 0,rgba(184,243,107,.10),transparent 65%),var(--surface-2); }
.flashcard small { color: var(--muted); font-size: 11px; }
.flashcard p { margin: 0; font-size: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-ratings { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.review-ratings .btn { font-size: 12px; padding: 0 12px; }
.data-card { display: flex; align-items: center; gap: 30px; justify-content: space-between; flex-wrap: wrap; }
.data-card > div:first-child { max-width: 620px; }
.data-card h3 { margin: 10px 0; }
.data-card p { color: var(--muted); font-size: 12px; }
.learn-dialog { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 23px; width: min(540px,calc(100vw - 28px)); max-height: 85vh; box-shadow: var(--shadow); }
.learn-dialog::backdrop { background: rgba(3,6,14,.7); backdrop-filter: blur(6px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.dialog-head h2 { font-size: 23px; letter-spacing: -.03em; }
.dialog-head .icon-btn { flex: 0 0 34px; height: 34px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; flex-wrap: wrap; }
.confirm-text { color: var(--muted); font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
section[id] { scroll-margin-top: 95px; }
button:focus-visible,a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media(max-width:1000px) { .learn-split { grid-template-columns: 1fr; }.learning-hero { grid-template-columns: 1fr .5fr; gap: 20px; }.learning-hero .orb { width: 200px; }.learning-hero .hero-orb { min-height: 260px; }.learn-list { max-height: 390px; } }
@media(max-width:680px) { .learning-hero { grid-template-columns: 1fr; padding-top: 35px; }.learning-hero .hero-orb { display: none; }.grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }.stat-card { padding: 16px; }.stat-value { font-size: 25px; }.studio-switch { font-size: 11px; }.form-row { grid-template-columns: 1fr 1fr; }.form-row > :first-child { grid-column: span 2; }.learn-row { flex-wrap: wrap; }.learn-row .row-actions { margin-left: auto; }.learning-hero h1 { font-size: 38px; }.card { padding: 18px; }.learn-dialog { padding: 20px; }.section-head { flex-direction: row; flex-wrap: wrap; align-items: center; }.search-input { width: 140px; }.data-card { gap: 18px; }.stat-caption { font-size: 10px; } }
