*{box-sizing:border-box}
:root{--bg:#f5f7fb;--surface:rgba(255,255,255,.88);--solid:#fff;--soft:#f0f3f8;--text:#172033;--muted:#758096;--line:#e4e8f0;--accent:#5968e8;--accent2:#8468e8;--accent-soft:#eef0ff;--warn:#d89b28;--shadow:0 14px 40px rgba(42,53,92,.08);--nav-shadow:0 14px 45px rgba(29,38,70,.16)}
@media(prefers-color-scheme:dark){:root{--bg:#0c111d;--surface:rgba(19,26,42,.9);--solid:#141c2d;--soft:#182235;--text:#f2f5fb;--muted:#99a4b8;--line:#263248;--accent:#8792ff;--accent2:#a18aff;--accent-soft:#202a50;--shadow:0 16px 44px rgba(0,0,0,.2);--nav-shadow:0 16px 50px rgba(0,0,0,.36)}}
html{background:var(--bg)}body{margin:0;min-height:100vh;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;background:radial-gradient(circle at top right,rgba(89,104,232,.09),transparent 32rem),var(--bg);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}main{max-width:1220px;margin:auto;padding:28px 28px calc(118px + env(safe-area-inset-bottom))}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.app-brand{display:flex;align-items:center;gap:12px}.app-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-weight:800;font-size:19px;color:#fff;background:linear-gradient(145deg,var(--accent),var(--accent2));box-shadow:0 8px 22px rgba(89,104,232,.24)}.topbar h2{font-size:27px;line-height:1.1;margin:2px 0 0;letter-spacing:-.03em}.eyebrow{margin:0;color:var(--muted);font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.13em}.top-actions,.button-row{display:flex;gap:9px}
.view{display:none;animation:fade .18s ease}.view.active{display:block}@keyframes fade{from{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:none}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.grid{display:grid;gap:18px;margin-bottom:18px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.hero{min-height:208px;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;overflow:hidden;position:relative;background:radial-gradient(circle at 90% 20%,rgba(89,104,232,.16),transparent 16rem),var(--surface)}.hero:after{content:"";position:absolute;right:-56px;bottom:-76px;width:210px;height:210px;border-radius:50%;border:38px solid rgba(89,104,232,.055)}.hero>div{position:relative;z-index:1}.hero h3{font-size:34px;letter-spacing:-.045em;max-width:680px;margin:13px 0 8px}.hero p{max-width:720px;color:var(--muted);line-height:1.65;margin-bottom:0}.hero-stat{width:132px;height:132px;min-width:132px;border-radius:36px;display:grid;place-items:center;align-content:center;background:linear-gradient(145deg,var(--accent-soft),var(--solid));border:1px solid var(--line)}.hero-stat span{font-size:40px;font-weight:800;letter-spacing:-.05em}.hero-stat small{color:var(--muted);font-weight:650}.pill{display:inline-flex;color:var(--accent);background:var(--accent-soft);padding:6px 10px;border-radius:999px;font-size:11px;font-weight:750}
.stat-card{display:flex;align-items:center;gap:15px;min-height:94px}.stat-card>span{width:46px;height:46px;display:grid;place-items:center;background:var(--soft);border-radius:14px;font-size:23px}.stat-card strong{font-size:27px}.stat-card small{display:block;color:var(--muted)}h3{margin:0 0 16px;font-size:18px}.muted{color:var(--muted)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:8px}.section-heading h3{margin-bottom:0}
.primary,.secondary,.link-btn,.mini{border:0;border-radius:12px;cursor:pointer;font-weight:700;transition:.16s ease}.primary{padding:11px 15px;color:#fff;background:var(--accent);box-shadow:0 7px 18px rgba(89,104,232,.18)}.primary:hover{transform:translateY(-1px)}.primary.compact{padding:10px 14px}.secondary{padding:10px 13px;color:var(--text);background:var(--solid);border:1px solid var(--line)}.link-btn{background:transparent;color:var(--accent);padding:6px 2px}.hidden{display:none!important}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid .full{grid-column:1/-1}label{display:grid;gap:7px;color:var(--muted);font-size:12px;font-weight:650;margin-bottom:14px}input,select,textarea{width:100%;background:var(--solid);border:1px solid var(--line);border-radius:13px;padding:12px 13px;color:var(--text);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(89,104,232,.1)}textarea{resize:vertical}
.stack{display:grid;gap:10px}.item{background:var(--solid);border:1px solid var(--line);border-radius:15px;padding:14px;display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.item .meta{color:var(--muted);font-size:12px;margin-top:5px;line-height:1.45}.item .title{font-weight:760}.item-actions{display:flex;gap:8px;flex-wrap:wrap}.mini{font-size:11px;padding:7px 9px;border:1px solid var(--line);background:var(--soft);color:var(--text)}a.mini{text-decoration:none}.empty-state{color:var(--muted);padding:16px 0}
.file-drop{padding:28px 22px;border:1.5px dashed var(--line);border-radius:16px;background:var(--solid);text-align:center;cursor:pointer}.file-drop input{display:none}.file-drop span{font-weight:760;color:var(--text)}.file-drop small{color:var(--muted)}.recorder{height:160px;border-radius:19px;border:1px solid var(--line);background:var(--solid);display:grid;place-items:center;align-content:center;gap:15px;margin:16px 0}.record-dot{width:18px;height:18px;border-radius:50%;background:#9ea6b5}.record-dot.live{background:#ef4e65;box-shadow:0 0 0 10px rgba(239,78,101,.11);animation:pulse 1.5s infinite}@keyframes pulse{50%{transform:scale(1.12)}}#recordingTime{font-variant-numeric:tabular-nums;font-size:27px;font-weight:780}.warning{margin-top:14px;border-radius:12px;padding:11px 12px;background:var(--soft);border:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.55}.analysis-box{min-height:440px;border:1px solid var(--line);border-radius:16px;padding:17px;background:var(--solid)}.feature-preview li{margin:9px 0;color:var(--muted)}.question-output{white-space:pre-wrap;line-height:1.75;background:var(--solid);border:1px solid var(--line);border-radius:16px;min-height:360px;padding:17px}.badge{display:inline-block;font-size:10px;padding:4px 7px;border-radius:999px;background:var(--accent-soft);color:var(--accent);margin-left:7px;font-weight:750}.done{opacity:.52;text-decoration:line-through}
.bottom-nav{position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(calc(100% - 28px),760px);min-height:72px;display:grid;grid-template-columns:repeat(7,1fr);align-items:center;gap:2px;padding:8px 9px;z-index:1000;background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:var(--nav-shadow);backdrop-filter:blur(24px) saturate(145%);-webkit-backdrop-filter:blur(24px) saturate(145%)}
.nav-btn{position:relative;min-width:0;height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:16px;background:transparent;color:var(--muted);cursor:pointer;transition:.16s ease}.nav-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-btn span{font-size:9.5px;font-weight:720;white-space:nowrap}.nav-btn:hover{background:var(--soft);color:var(--text)}.nav-btn.active{color:var(--accent);background:var(--accent-soft)}.nav-btn.active:after{content:"";position:absolute;bottom:4px;width:4px;height:4px;border-radius:50%;background:var(--accent)}.record-tab{overflow:visible}.record-tab .record-tab-icon{width:39px;height:39px;margin-top:-19px;margin-bottom:-4px;border-radius:13px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,var(--accent),var(--accent2));box-shadow:0 7px 18px rgba(89,104,232,.26);border:3px solid var(--bg)}.record-tab .record-tab-icon svg{width:20px;height:20px}.record-tab.active{background:transparent;color:var(--accent)}.record-tab.active:after{bottom:2px}
@media(max-width:900px){main{padding:18px 16px calc(112px + env(safe-area-inset-bottom))}.grid.two,.grid.three{grid-template-columns:1fr}.hero{align-items:flex-start;gap:20px}.hero h3{font-size:28px}.hero-stat{width:100px;height:100px;min-width:100px;border-radius:28px}}
@media(max-width:640px){main{padding:15px 12px calc(108px + env(safe-area-inset-bottom))}.topbar{margin-bottom:17px}.app-mark{width:38px;height:38px;border-radius:12px}.topbar h2{font-size:23px}.top-actions .primary{display:none}.card{padding:17px;border-radius:18px}.hero{min-height:auto}.hero-stat{display:none}.hero h3{font-size:26px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.bottom-nav{width:calc(100% - 16px);bottom:max(8px,env(safe-area-inset-bottom));border-radius:20px;padding:7px 5px;min-height:68px}.nav-btn{height:51px;border-radius:14px;gap:2px}.nav-btn svg{width:19px;height:19px}.nav-btn span{font-size:8.5px}.record-tab .record-tab-icon{width:38px;height:38px}.item{align-items:flex-start;flex-direction:column}audio{max-width:100%}}

/* v0.3 notebook + settings */
.notebook-shell{padding:0;overflow:hidden}
.notebook-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line)}
.notebook-topbar h3{margin:2px 0 0}.notebook-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.notebook-actions select,.notebook-actions input{width:auto;min-width:165px;padding:9px 10px}
.note-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid var(--line);background:var(--soft)}
.tool-btn{display:inline-flex;align-items:center;gap:5px;border:1px solid transparent;background:transparent;color:var(--muted);padding:8px 10px;border-radius:10px;cursor:pointer;font-weight:700;font-size:12px}
.tool-btn:hover,.tool-btn.active{background:var(--solid);border-color:var(--line);color:var(--accent)}
.tool-btn.danger-tool{margin-left:auto;color:#c75b66}
.compact-control{display:flex;align-items:center;gap:6px;margin:0;font-size:10px}
.compact-control input[type=color]{width:34px;height:30px;padding:2px}.compact-control input[type=range]{width:90px;padding:0}
.compact-control select{width:auto;padding:7px 9px}
.paper-wrap{position:relative;height:68vh;min-height:560px;overflow:hidden;background-color:#fff;touch-action:none}
.paper-grid{background-image:linear-gradient(#dce2ef 1px,transparent 1px),linear-gradient(90deg,#dce2ef 1px,transparent 1px);background-size:24px 24px}
.paper-lined{background-image:linear-gradient(#dce2ef 1px,transparent 1px);background-size:100% 28px}
.paper-dot{background-image:radial-gradient(#cdd5e4 1px,transparent 1.2px);background-size:22px 22px}
.paper-blank{background:#fff}
#noteCanvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}
.note-status{display:flex;justify-content:space-between;gap:12px;padding:8px 14px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}
.note-ai-grid{margin-top:18px}
.modal-backdrop{position:fixed;inset:0;z-index:3000;background:rgba(10,15,28,.46);backdrop-filter:blur(8px);display:grid;place-items:center;padding:18px}
.settings-panel{width:min(920px,100%);max-height:88vh;overflow:auto;background:var(--solid);border:1px solid var(--line);border-radius:24px;box-shadow:0 28px 80px rgba(0,0,0,.25)}
.settings-header{display:flex;justify-content:space-between;align-items:center;padding:22px;border-bottom:1px solid var(--line)}.settings-header h2{margin:2px 0 0}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:0}.settings-section{padding:22px;border-bottom:1px solid var(--line)}.settings-section:nth-child(odd){border-right:1px solid var(--line)}.full-settings{grid-column:1/-1;border-right:0!important}
.switch-row{display:flex;justify-content:space-between;align-items:center;gap:18px}.switch-row input{width:20px;height:20px}
.integration-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.integration-row:last-child{border-bottom:0}.integration-row small{display:block;color:var(--muted);margin-top:3px}
body.compact main{max-width:1360px}.compact .card{padding:16px}.compact .grid{gap:12px;margin-bottom:12px}.compact .item{padding:10px}
@media(max-width:700px){.notebook-topbar{align-items:flex-start;flex-direction:column}.notebook-actions{width:100%}.notebook-actions select,.notebook-actions input{flex:1;min-width:130px}.paper-wrap{height:62vh;min-height:480px}.tool-btn span{display:none}.settings-grid{grid-template-columns:1fr}.settings-section,.settings-section:nth-child(odd){border-right:0}.full-settings{grid-column:auto}.note-status{font-size:9px}.compact-control{font-size:0}.compact-control select{font-size:11px}}

/* v0.4 lecture workspace, notebook library, account foundation */
.bottom-nav.five-tabs{grid-template-columns:repeat(5,1fr);width:min(calc(100% - 28px),620px)}
.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#d4a33c;margin-right:5px}
.action-card{display:flex;text-align:left;align-items:center;gap:14px;cursor:pointer;color:var(--text);width:100%}
.action-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 30%,var(--line))}
.action-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:20px;font-weight:800}
.action-card strong,.action-card small{display:block}.action-card small{color:var(--muted);margin-top:3px;font-size:11px}
.lecture-layout,.notes-workspace{display:grid;grid-template-columns:255px minmax(0,1fr);gap:18px}
.lecture-sidebar,.notebook-library{align-self:start;position:sticky;top:18px;max-height:calc(100vh - 145px);overflow:auto}
.lecture-main,.notes-main{min-width:0}.lecture-hero{margin-bottom:18px}
.lecture-heading-row{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.title-input,.note-title-input{border:0;background:transparent;padding:0;font-size:26px;font-weight:800;letter-spacing:-.035em;box-shadow:none!important;min-width:260px}
.lecture-meta-row{display:flex;gap:8px;margin-top:10px}.lecture-meta-row select,.lecture-meta-row input{width:auto;min-width:160px}
.processing-badge{padding:8px 11px;border-radius:999px;background:var(--soft);border:1px solid var(--line);font-size:11px;font-weight:800;color:var(--muted)}
.recording-stage{display:grid;justify-items:center;padding:30px 10px 10px}
.recording-orb{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 28%,var(--accent-soft),var(--soft));border:1px solid var(--line);box-shadow:inset 0 0 0 12px rgba(89,104,232,.035);margin-bottom:18px}
.recording-orb.live{box-shadow:0 0 0 12px rgba(239,78,101,.09);border-color:#ef4e65}.recording-orb span{font-size:25px;font-weight:800;font-variant-numeric:tabular-nums}
.small-copy{font-size:11px;text-align:center;max-width:590px;line-height:1.55}
.pipeline-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.pipeline-step{border:1px solid var(--line);border-radius:15px;padding:13px;background:var(--solid);display:flex;gap:10px;align-items:flex-start}
.pipeline-step>span{width:26px;height:26px;border-radius:8px;background:var(--soft);display:grid;place-items:center;font-size:11px;font-weight:800}.pipeline-step strong,.pipeline-step small{display:block}.pipeline-step small{color:var(--muted);font-size:10px;margin-top:3px}.pipeline-step.done{border-color:color-mix(in srgb,#26a779 45%,var(--line));opacity:1;text-decoration:none}.pipeline-step.done>span{background:#e8f7f1;color:#218967}.pipeline-result{margin-top:14px;padding:13px;border-radius:13px;background:var(--soft);font-size:12px}
.library-divider{height:1px;background:var(--line);margin:16px 0}
.library-item{width:100%;text-align:left;border:1px solid transparent;background:transparent;color:var(--text);border-radius:11px;padding:9px 10px;cursor:pointer}.library-item:hover,.library-item.active{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 16%,var(--line))}.library-item strong,.library-item small{display:block}.library-item small{color:var(--muted);font-size:10px;margin-top:2px}
.account-panel{width:min(850px,100%);max-height:88vh;overflow:auto;background:var(--solid);border:1px solid var(--line);border-radius:24px;box-shadow:0 28px 80px rgba(0,0,0,.25)}
.account-body{padding:22px}.sync-hero{display:flex;gap:16px;align-items:center;padding:18px;background:var(--accent-soft);border:1px solid var(--line);border-radius:18px;margin-bottom:18px}.sync-hero h3{margin-bottom:6px}.sync-orb{width:54px;height:54px;min-width:54px;border-radius:17px;display:grid;place-items:center;background:var(--solid);font-size:25px;color:var(--accent)}
.account-card{border:1px solid var(--line);border-radius:16px}.cloud-setup-note{border-left:3px solid var(--accent);padding:12px 14px;background:var(--soft);border-radius:0 12px 12px 0}.cloud-setup-note p{margin-bottom:0;color:var(--muted);font-size:12px;line-height:1.55}
@media(max-width:950px){.lecture-layout,.notes-workspace{grid-template-columns:1fr}.lecture-sidebar,.notebook-library{position:relative;top:auto;max-height:none}.lecture-sidebar #lectureWorkspaceList,.notebook-library #notebookList,.notebook-library #notebookPageList{display:flex;overflow-x:auto}.library-item{min-width:180px}.pipeline-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.lecture-heading-row{flex-direction:column}.title-input,.note-title-input{font-size:22px;min-width:0;width:100%}.lecture-meta-row{flex-direction:column}.lecture-meta-row select,.lecture-meta-row input{width:100%}.pipeline-grid{grid-template-columns:1fr}.recording-orb{width:125px;height:125px}.bottom-nav.five-tabs{width:calc(100% - 16px)}}

/* v0.5 adaptive study + additional note tools */
.paper-cornell{background-color:#fff;background-image:linear-gradient(90deg,transparent 0,transparent 29%,#d7deeb 29%,#d7deeb calc(29% + 1px),transparent calc(29% + 1px)),linear-gradient(transparent 0,transparent 13%,#d7deeb 13%,#d7deeb calc(13% + 1px),transparent calc(13% + 1px)),linear-gradient(#e5eaf2 1px,transparent 1px);background-size:100% 100%,100% 100%,100% 28px}
.study-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;background:radial-gradient(circle at 88% 24%,rgba(89,104,232,.16),transparent 14rem),var(--surface)}
.study-hero h3{font-size:30px;letter-spacing:-.04em;margin:8px 0 5px}.study-hero p{max-width:700px;line-height:1.6}.study-ring{width:118px;height:118px;min-width:118px;border-radius:50%;display:grid;place-items:center;align-content:center;background:conic-gradient(var(--accent) var(--mastery-angle,0deg),var(--soft) 0);position:relative}.study-ring:after{content:"";position:absolute;inset:10px;background:var(--solid);border-radius:50%}.study-ring strong,.study-ring small{position:relative;z-index:1}.study-ring strong{font-size:25px}.study-ring small{color:var(--muted);font-size:10px}
.study-stat{display:flex;align-items:center;gap:14px}.study-stat>span{width:44px;height:44px;border-radius:13px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:20px}.study-stat strong{display:block;font-size:25px}.study-stat small{color:var(--muted)}
.flashcard{background:var(--solid);border:1px solid var(--line);border-radius:15px;padding:15px}.flashcard .answer{display:none;margin-top:10px;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);line-height:1.5}.flashcard.revealed .answer{display:block}.rating-row{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}.rating-row button{flex:1;min-width:64px}.mastery-bar{height:7px;background:var(--soft);border-radius:99px;overflow:hidden;margin-top:8px}.mastery-fill{height:100%;background:var(--accent);border-radius:99px}.mastery-row{background:var(--solid);border:1px solid var(--line);border-radius:14px;padding:12px}.mastery-row header{display:flex;justify-content:space-between;gap:12px}.mastery-row small{color:var(--muted)}
@media(max-width:640px){.study-ring{width:92px;height:92px;min-width:92px}.study-hero h3{font-size:25px}}

/* v0.6 Notes Pro */
.image-tool input{display:none}.selection-controls{display:flex;gap:4px;padding-left:5px;border-left:1px solid var(--line)}
.notes-pro-strip{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px;padding:14px 18px}.notes-pro-strip strong,.notes-pro-strip small{display:block}.notes-pro-strip small{color:var(--muted);margin-top:3px;font-size:11px}
.paper-wrap.paper-a4{max-width:794px;height:1123px;min-height:1123px;margin:0 auto;border-left:1px solid #e6e8ed;border-right:1px solid #e6e8ed}
.paper-wrap.paper-letter{max-width:816px;height:1056px;min-height:1056px;margin:0 auto;border-left:1px solid #e6e8ed;border-right:1px solid #e6e8ed}
#noteCanvas.lasso-cursor{cursor:crosshair}#noteCanvas.text-cursor{cursor:text}
.selection-badge{color:var(--accent)!important;font-weight:700}
@media(max-width:640px){.selection-controls{width:100%;border-left:0;border-top:1px solid var(--line);padding:6px 0 0}.notes-pro-strip{align-items:flex-start}.paper-wrap.paper-a4,.paper-wrap.paper-letter{max-width:none;height:62vh;min-height:480px}}

/* v0.6.1 alignment + minimalist dashboard symbols */
.stat-card{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:center;
  gap:15px;
  min-height:96px;
}
.stat-card>span.stat-symbol{
  width:46px;height:46px;margin:0;
  display:grid;place-items:center;
  background:var(--accent-soft);
  color:var(--accent);
  border:1px solid color-mix(in srgb,var(--accent) 12%,var(--line));
  border-radius:14px;
}
.stat-symbol svg{
  width:22px;height:22px;
  fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.stat-card>div{min-width:0;display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
.stat-card strong{font-size:27px;line-height:1}
.stat-card small{display:inline;color:var(--muted);line-height:1.25}
#dashboard .grid.three{align-items:stretch}
#dashboard .grid.three>.card{height:100%}
.action-card{min-height:86px;padding:18px 20px}
.action-icon{flex:0 0 42px}
.topbar,.section-heading,.notebook-topbar,.lecture-heading-row{align-items:center}
.item-actions{align-items:center}
@media(max-width:900px){
  #dashboard .grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:640px){
  #dashboard .grid.three{grid-template-columns:1fr}
  .stat-card{min-height:78px;padding:14px 16px}
  .stat-card>span.stat-symbol{width:42px;height:42px;border-radius:13px}
  .stat-symbol svg{width:20px;height:20px}
  .action-card{min-height:74px;padding:14px 16px}
  .topbar{align-items:center}
}

/* v0.7 modules + Canvas integration */
.module-workspace{display:grid;grid-template-columns:270px minmax(0,1fr);gap:18px}
.module-sidebar{align-self:start;position:sticky;top:18px;max-height:calc(100vh - 145px);overflow:auto}
.module-source-badge{display:flex;align-items:center;gap:10px;padding:11px;border-radius:13px;background:var(--soft);margin-bottom:12px}
.module-source-badge strong,.module-source-badge small{display:block}.module-source-badge small{font-size:10px;color:var(--muted);margin-top:2px}
.module-detail-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:170px;background:radial-gradient(circle at 92% 20%,rgba(89,104,232,.14),transparent 13rem),var(--surface)}
.module-detail-hero h3{font-size:29px;margin:5px 0 8px;letter-spacing:-.04em}.module-detail-hero p{max-width:720px;line-height:1.55}
.module-credit-orb{width:104px;height:104px;min-width:104px;border-radius:29px;background:var(--accent-soft);display:grid;place-items:center;align-content:center;border:1px solid var(--line)}
.module-credit-orb strong{font-size:31px;line-height:1}.module-credit-orb small{color:var(--muted);margin-top:4px}
.mini-kpi{min-height:82px}.mini-kpi span{display:block;color:var(--muted);font-size:11px}.mini-kpi strong{display:block;font-size:25px;margin-top:5px}
.module-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.meta-tile{padding:12px;background:var(--soft);border-radius:12px}.meta-tile span,.meta-tile strong{display:block}.meta-tile span{font-size:10px;color:var(--muted);margin-bottom:3px}
.topic-bars{display:grid;gap:11px}.topic-bar-row{display:grid;grid-template-columns:minmax(120px,1fr) 3fr 42px;align-items:center;gap:10px}.topic-track{height:8px;border-radius:99px;background:var(--soft);overflow:hidden}.topic-fill{height:100%;background:var(--accent);border-radius:99px}.topic-score{font-size:11px;color:var(--muted);text-align:right}
.canvas-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:18px 0}.canvas-flow-step{padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--solid);display:flex;gap:9px}.canvas-flow-step>span{width:25px;height:25px;min-width:25px;border-radius:8px;display:grid;place-items:center;background:var(--soft);font-size:10px;font-weight:800}.canvas-flow-step strong,.canvas-flow-step small{display:block}.canvas-flow-step small{font-size:9px;color:var(--muted);margin-top:3px}.canvas-flow-step.ready{border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}.canvas-flow-step.ready>span{background:var(--accent-soft);color:var(--accent)}
.canvas-mark{font-weight:900}.canvas-preview-card{box-shadow:none;margin-bottom:18px}.import-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.import-option{display:flex;align-items:flex-start;gap:9px;margin:0;padding:11px;border:1px solid var(--line);border-radius:12px}.import-option input{width:17px;height:17px}.import-option strong,.import-option small{display:block}.import-option small{color:var(--muted);font-size:9px;margin-top:2px}
@media(max-width:950px){.module-workspace{grid-template-columns:1fr}.module-sidebar{position:relative;top:auto;max-height:none}.module-sidebar #moduleNavList{display:flex;overflow-x:auto}.module-sidebar .library-item{min-width:210px}.canvas-flow{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.module-detail-hero{align-items:flex-start}.module-credit-orb{width:82px;height:82px;min-width:82px;border-radius:23px}.module-detail-hero h3{font-size:24px}.module-meta-grid,.import-grid{grid-template-columns:1fr}.canvas-flow{grid-template-columns:1fr}}

/* v0.8 personalisation settings */
:root{
  --radius-card:22px;
  --font-scale:1;
}
body{
  font-size:calc(16px * var(--font-scale));
}
body[data-theme="light"]{
  --bg:#f5f7fb;--surface:rgba(255,255,255,.90);--solid:#fff;--soft:#f0f3f8;
  --text:#172033;--muted:#758096;--line:#e4e8f0;--accent-soft:#eef0ff;
  --shadow:0 14px 40px rgba(42,53,92,.08);--nav-shadow:0 14px 45px rgba(29,38,70,.16);
}
body[data-theme="dark"]{
  --bg:#0c111d;--surface:rgba(19,26,42,.92);--solid:#141c2d;--soft:#182235;
  --text:#f2f5fb;--muted:#99a4b8;--line:#263248;--accent-soft:#202a50;
  --shadow:0 16px 44px rgba(0,0,0,.2);--nav-shadow:0 16px 50px rgba(0,0,0,.36);
}
body[data-font="system"]{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",system-ui,sans-serif}
body[data-font="inter"]{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
body[data-font="serif"]{font-family:Georgia,"Times New Roman",serif}
body[data-font="rounded"]{font-family:"Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif}
body[data-size="small"]{--font-scale:.94}
body[data-size="normal"]{--font-scale:1}
body[data-size="large"]{--font-scale:1.08}
body[data-radius="soft"]{--radius-card:14px}
body[data-radius="rounded"]{--radius-card:22px}
body[data-radius="pill"]{--radius-card:30px}
.card,.settings-panel,.account-panel{border-radius:var(--radius-card)}
body[data-bg="clean"]{background:radial-gradient(circle at top right,color-mix(in srgb,var(--accent) 9%,transparent),transparent 32rem),var(--bg)}
body[data-bg="soft"]{background:
  radial-gradient(circle at 10% 0%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 26rem),
  radial-gradient(circle at 100% 25%,rgba(132,104,232,.10),transparent 30rem),var(--bg)}
body[data-bg="plain"]{background:var(--bg)}
.icon-button{
  width:40px;height:40px;display:grid;place-items:center;padding:0;border-radius:12px;
  border:1px solid var(--line);background:var(--solid);color:var(--text);cursor:pointer;
}
.icon-button:hover{background:var(--soft)}
.icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.settings-panel-v08{width:min(900px,100%);max-height:90vh;overflow:hidden;display:flex;flex-direction:column}
.settings-tabs{display:flex;gap:5px;padding:10px 16px;border-bottom:1px solid var(--line);overflow-x:auto;background:var(--soft)}
.settings-tab{border:0;background:transparent;color:var(--muted);padding:8px 11px;border-radius:9px;cursor:pointer;font-weight:750;white-space:nowrap}
.settings-tab.active{background:var(--solid);color:var(--accent);box-shadow:0 1px 4px rgba(0,0,0,.05)}
.settings-content{overflow:auto;padding:20px}
.settings-pane{display:none}.settings-pane.active{display:block}
.settings-section-v08{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);margin-bottom:14px}
.settings-section-v08 h3{margin-bottom:5px}.settings-section-v08 p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.settings-section-title{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:12px}
.settings-grid-v08{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.segmented-control{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:var(--soft);padding:4px;border-radius:12px}
.segmented-control button{border:0;background:transparent;color:var(--muted);padding:9px;border-radius:9px;cursor:pointer;font-weight:750}
.segmented-control button.active{background:var(--solid);color:var(--text);box-shadow:0 1px 5px rgba(0,0,0,.06)}
.colour-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.colour-swatch{width:34px;height:34px;border-radius:50%;border:3px solid var(--solid);background:var(--swatch);box-shadow:0 0 0 1px var(--line);cursor:pointer}
.colour-swatch.active{box-shadow:0 0 0 2px var(--accent)}
.custom-colour{display:flex;align-items:center;gap:7px;margin:0;padding:6px 9px;border:1px solid var(--line);border-radius:11px}
.custom-colour input{width:30px;height:26px;padding:1px}
.switch-row span strong,.switch-row span small{display:block}.switch-row span small{font-size:9px;color:var(--muted);margin-top:3px;font-weight:500}
.switch-row{padding:10px 0;border-bottom:1px solid var(--line);margin:0}.switch-row:last-child{border-bottom:0}
@media(max-width:640px){
  .settings-content{padding:14px}.settings-grid-v08{grid-template-columns:1fr}
  .settings-tabs{padding:8px 10px}.settings-section-v08{padding:14px}
  .top-actions{gap:6px}.icon-button{width:38px;height:38px}
}

.settings-cog svg{width:21px;height:21px;stroke-width:1.55}.lecture-insights{margin-top:16px;border-top:1px solid var(--line);padding-top:16px}
.insight-tabs{display:flex;gap:5px;padding:4px;background:var(--soft);border-radius:12px;overflow-x:auto;margin-bottom:14px}.insight-tab{border:0;background:transparent;color:var(--muted);padding:8px 12px;border-radius:9px;font-weight:750;cursor:pointer;white-space:nowrap}.insight-tab.active{background:var(--solid);color:var(--accent)}
.insight-pane{display:none}.insight-pane.active{display:block}.insight-stat,.insight-card{padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--solid)}.insight-stat span{display:block;font-size:10px;color:var(--muted)}.insight-stat strong{display:block;font-size:25px;margin-top:4px}.insight-card{min-height:150px}.concept-chip{display:inline-block;padding:6px 9px;margin:0 5px 6px 0;border-radius:9px;background:var(--accent-soft);color:var(--accent);font-size:10px;font-weight:750}
.equation-row,.question-row,.flashcard-row,.transcript-block,.note-flag{padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:var(--soft);margin-bottom:8px}.question-row small,.flashcard-row small,.transcript-block p,.note-flag p{color:var(--muted);font-size:10px;line-height:1.5;margin:0}.transcript-block time{font-size:9px;color:var(--accent);font-weight:800}.note-flag.missing{border-left:3px solid #d6a33b}.note-flag.emphasis{border-left:3px solid var(--accent)}

/* v0.10 connected lecture-study objects */
.lecture-object-strip{display:flex;gap:7px;overflow-x:auto;margin:16px 0 8px;padding-bottom:2px}
.object-chip{display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--solid);color:var(--muted);padding:8px 10px;border-radius:11px;font-size:10px;font-weight:750;cursor:pointer;white-space:nowrap}
.object-chip span{width:20px;height:20px;border-radius:7px;display:grid;place-items:center;background:var(--soft);font-size:8px}
.object-chip.active,.object-chip:hover{color:var(--accent);background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 22%,var(--line))}
.linked-study-object{margin-top:16px}
.object-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-top:10px}
.object-node{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid var(--line);background:var(--solid);border-radius:13px}
.object-node.connected{border-color:color-mix(in srgb,var(--accent) 35%,var(--line));background:var(--accent-soft)}
.node-icon{width:30px;height:30px;min-width:30px;border-radius:9px;display:grid;place-items:center;background:var(--soft);color:var(--muted);font-size:10px;font-weight:850}
.object-node.connected .node-icon{background:var(--solid);color:var(--accent)}
.object-node strong,.object-node small{display:block}.object-node small{font-size:9px;color:var(--muted);margin-top:2px}
.object-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.study-source-banner{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}
.study-source-banner h3{margin-bottom:6px}.study-source-banner p{margin:0;max-width:660px;line-height:1.5}
.source-pills{display:flex;gap:6px;flex-wrap:wrap}.source-pills span{padding:7px 9px;border-radius:9px;background:var(--accent-soft);color:var(--accent);font-size:9px;font-weight:750}
#pageLectureLinkState{white-space:nowrap}
@media(max-width:900px){.object-grid{grid-template-columns:1fr 1fr 1fr}.study-source-banner{align-items:flex-start}}
@media(max-width:640px){.object-grid{grid-template-columns:1fr}.study-source-banner{flex-direction:column}.lecture-object-strip{margin-left:-2px;margin-right:-2px}}

.source-toolbar{display:flex;align-items:center;gap:9px;margin-bottom:11px}.source-toolbar small{color:var(--muted)}
.source-ref{display:inline-flex;align-items:center;gap:5px;margin-top:7px;padding:4px 7px;border-radius:7px;background:var(--solid);border:1px solid var(--line);font-size:8px;color:var(--muted)}
.source-ref:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent)}
.annotation-key{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px;padding:10px;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}.annotation-key span{display:flex;align-items:center;gap:5px}.key-dot{width:7px;height:7px;border-radius:50%;display:inline-block}.transcript-source{background:var(--accent)}.slide-source{background:#d6a33b}.notes-source{background:#2d9b78}
.equation-library-card{margin-bottom:18px}.equation-library-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.saved-equation{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--solid)}.saved-equation code{display:block;font-size:14px;margin-bottom:7px}.saved-equation small{display:block;color:var(--muted);font-size:8px}.source-citation{display:inline-flex;margin-top:7px;padding:4px 7px;border-radius:7px;background:var(--accent-soft);color:var(--accent);font-size:8px;font-weight:750}
@media(max-width:640px){.equation-library-list{grid-template-columns:1fr}.source-toolbar{align-items:flex-start;flex-direction:column}}

/* v0.12 interactive source tracing */
.source-context-drawer{position:fixed;z-index:70;right:18px;top:18px;bottom:94px;width:min(420px,calc(100vw - 36px));background:var(--solid);border:1px solid var(--line);border-radius:22px;box-shadow:0 24px 70px rgba(20,28,50,.22);display:flex;flex-direction:column;overflow:hidden}
.source-context-drawer.hidden{display:none}.source-drawer-header{display:flex;justify-content:space-between;align-items:center;padding:18px;border-bottom:1px solid var(--line)}.source-drawer-header h3{margin:2px 0 0}.source-context-body{padding:16px;overflow:auto}
.source-player,.source-context-card{padding:14px;border:1px solid var(--line);border-radius:15px;background:var(--surface);margin-bottom:12px}.source-player-top{display:flex;justify-content:space-between;font-size:10px;font-weight:800;color:var(--accent)}
.source-waveform{height:62px;display:flex;align-items:center;gap:3px;margin:12px 0;padding:0 4px}.source-waveform i{display:block;width:3px;border-radius:3px;background:var(--accent);opacity:.65}
.source-player-actions{display:flex;gap:8px;flex-wrap:wrap}.source-context-card h4{margin:0 0 8px}.source-context-card p{line-height:1.55}
.source-context-links{display:grid;gap:7px}.context-link{display:flex;justify-content:space-between;gap:10px;padding:9px;border-radius:10px;background:var(--soft);font-size:9px}.context-link strong{color:var(--text)}.context-link span{color:var(--muted)}
.source-ref,.source-citation,#insightTranscript time{cursor:pointer}.source-ref:hover,.source-citation:hover{border-color:var(--accent);color:var(--accent)}
@media(max-width:640px){.source-context-drawer{right:8px;left:8px;top:8px;bottom:84px;width:auto;border-radius:18px}}

/* v0.13 Knowledge Graph */
.knowledge-graph-card{margin-bottom:18px}.knowledge-graph-card>p{margin:0 0 14px;line-height:1.5}
.knowledge-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,.7fr);gap:12px}
.knowledge-canvas{position:relative;min-height:390px;border:1px solid var(--line);border-radius:16px;background:
 radial-gradient(circle at 50% 45%,color-mix(in srgb,var(--accent) 8%,transparent),transparent 45%),
 linear-gradient(var(--soft),var(--soft));overflow:hidden}
.knowledge-edges{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.knowledge-edges line{stroke:color-mix(in srgb,var(--accent) 28%,var(--line));stroke-width:1.2}
.knowledge-node{position:absolute;transform:translate(-50%,-50%);border:1px solid var(--line);background:var(--solid);color:var(--text);padding:8px 10px;border-radius:12px;font-size:9px;font-weight:800;cursor:pointer;box-shadow:0 4px 14px rgba(20,28,50,.07);max-width:130px;text-align:center}
.knowledge-node.core{padding:11px 13px;background:var(--accent);color:white;border-color:var(--accent);font-size:10px}.knowledge-node.active{outline:3px solid color-mix(in srgb,var(--accent) 20%,transparent);border-color:var(--accent)}
.knowledge-node small{display:block;font-size:7px;opacity:.65;margin-top:3px;font-weight:650}
.knowledge-inspector{border:1px solid var(--line);border-radius:16px;background:var(--solid);padding:15px}.knowledge-inspector h4{font-size:17px;margin:3px 0 7px}.knowledge-inspector>p.muted{line-height:1.5}
.knowledge-concept-links{display:grid;gap:7px;margin-top:13px}.knowledge-link{padding:9px;border-radius:10px;background:var(--soft);cursor:pointer}.knowledge-link:hover{background:var(--accent-soft)}.knowledge-link strong,.knowledge-link small{display:block}.knowledge-link small{font-size:8px;color:var(--muted);margin-top:3px}
@media(max-width:760px){.knowledge-layout{grid-template-columns:1fr}.knowledge-canvas{min-height:350px}}

/* v0.14 mastery mapping + desktop polish */
.mastery-map-card{margin-bottom:18px}.mastery-map-card>p{margin:0 0 14px;line-height:1.5}
.mastery-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(230px,.65fr);gap:12px}
.mastery-list{display:grid;gap:8px}.mastery-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(130px,1.7fr) 48px;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--solid)}
.mastery-name strong,.mastery-name small{display:block}.mastery-name small{font-size:8px;color:var(--muted);margin-top:2px}.mastery-track{height:9px;background:var(--soft);border-radius:99px;overflow:hidden}.mastery-fill{height:100%;border-radius:99px;background:var(--accent)}.mastery-score{text-align:right;font-size:10px;font-weight:850}
.mastery-focus{padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--accent-soft)}.mastery-focus h4{font-size:18px;margin:4px 0 8px}.mastery-focus p.muted{line-height:1.5;margin-bottom:13px}
@media(min-width:1000px){
  .app-shell{max-width:1500px;margin:0 auto}
  .view{padding-left:34px;padding-right:34px}
  #dashboard .dashboard-grid{grid-template-columns:minmax(0,1.55fr) minmax(320px,.65fr)}
  #calendar .calendar-layout{grid-template-columns:minmax(0,1.7fr) minmax(300px,.6fr)}
  .recording-layout{grid-template-columns:minmax(300px,.7fr) minmax(0,1.45fr)}
  .notes-layout{grid-template-columns:250px minmax(0,1fr)}
  .knowledge-layout{grid-template-columns:minmax(0,1.8fr) 300px}
}
@media(max-width:760px){.mastery-layout{grid-template-columns:1fr}.mastery-row{grid-template-columns:1fr 1.2fr 42px}}

/* v0.15 adaptive queue + iPad-first layout */
.daily-queue-card{margin-bottom:18px}.daily-queue-card>p{margin:0 0 14px;line-height:1.5}
.daily-queue-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(230px,.65fr);gap:12px}
.daily-queue-list{display:grid;gap:8px}.queue-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px;border:1px solid var(--line);border-radius:12px;background:var(--solid)}
.queue-order{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:9px;font-weight:850}
.queue-item strong,.queue-item small{display:block}.queue-item small{font-size:8px;color:var(--muted);margin-top:3px}.queue-type{font-size:8px;padding:5px 7px;border-radius:7px;background:var(--soft);color:var(--muted);font-weight:800}
.queue-summary{padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--accent-soft);display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center}
.queue-ring{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;align-content:center;background:var(--solid);border:1px solid var(--line)}
.queue-ring strong{font-size:22px;line-height:1}.queue-ring small{font-size:8px;color:var(--muted);margin-top:2px}.queue-summary>div:nth-child(2) strong,.queue-summary>div:nth-child(2) small{display:block}.queue-summary>div:nth-child(2) small{font-size:8px;color:var(--muted);margin-top:4px;line-height:1.4}.queue-summary button{grid-column:1/-1}

/* iPad portrait/landscape */
@media(min-width:768px) and (max-width:1180px){
  main{padding:20px 22px calc(108px + env(safe-area-inset-bottom))}
  .topbar{margin-bottom:18px}
  .notes-workspace{grid-template-columns:220px minmax(0,1fr);gap:14px}
  .ipad-notebook-sidebar{position:sticky;top:14px;max-height:calc(100vh - 120px);overflow:auto}
  .notebook-topbar{padding:14px 16px}
  .notebook-actions{gap:6px}
  .ipad-note-toolbar{position:sticky;top:0;z-index:12;gap:5px;padding:8px 10px;flex-wrap:nowrap;overflow-x:auto}
  .ipad-note-toolbar .tool-btn{min-width:44px;min-height:44px;justify-content:center}
  .ipad-note-toolbar .tool-btn span{display:none}
  .ipad-note-toolbar .compact-control{min-height:44px;padding:0 6px;border:1px solid var(--line);border-radius:10px;background:var(--solid)}
  .ipad-paper{height:calc(100vh - 260px);min-height:650px}
  .paper-wrap{border-radius:0}
  .note-status{padding:7px 12px}
  .note-ai-grid{grid-template-columns:1fr 1fr;gap:14px}
  .lecture-layout{grid-template-columns:220px minmax(0,1fr)}
  .module-workspace{grid-template-columns:220px minmax(0,1fr)}
  .mastery-layout,.daily-queue-grid{grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr)}
  .knowledge-layout{grid-template-columns:minmax(0,1.5fr) 260px}
  .bottom-nav.five-tabs{width:min(calc(100% - 48px),620px);bottom:max(12px,env(safe-area-inset-bottom))}
}
@media(min-width:1024px) and (max-width:1180px) and (orientation:landscape){
  .notes-workspace{grid-template-columns:240px minmax(0,1fr)}
  .ipad-paper{height:calc(100vh - 230px);min-height:610px}
  .notebook-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .note-ai-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){.daily-queue-grid{grid-template-columns:1fr}.queue-summary{grid-template-columns:auto 1fr}}

/* v0.16 persistent recording + Note Intelligence */
.persistent-recording-bar{
  position:fixed;left:50%;transform:translateX(-50%);bottom:88px;z-index:1200;
  width:min(calc(100% - 28px),680px);min-height:54px;padding:8px 10px;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;gap:9px;align-items:center;
  background:color-mix(in srgb,var(--solid) 94%,transparent);border:1px solid var(--line);
  border-radius:17px;box-shadow:0 14px 42px rgba(18,25,45,.18);backdrop-filter:blur(18px)
}
.persistent-recording-bar.hidden{display:none}
.recording-live-dot{width:10px;height:10px;border-radius:50%;background:#ef4e65;box-shadow:0 0 0 6px rgba(239,78,101,.12);animation:pulse 1.5s infinite}
.recording-live-info strong,.recording-live-info span{display:block}.recording-live-info strong{font-size:10px}.recording-live-info span{font-size:8px;color:var(--muted);margin-top:2px}
#persistentRecordingTime{font-size:11px;font-weight:850;font-variant-numeric:tabular-nums}
.danger-mini{color:#c94f5c}
.live-note-badge{background:rgba(239,78,101,.10);color:#d94d61;border-color:rgba(239,78,101,.22)}
.note-intelligence-card{margin-top:18px;margin-bottom:18px}.note-intelligence-card>p{margin:0 0 12px;line-height:1.5}
.note-intelligence-actions{display:flex;gap:8px;flex-wrap:wrap}.note-intelligence-result{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--soft);font-size:10px;line-height:1.55}
.note-intelligence-result strong{color:var(--text)}
@media(min-width:768px) and (max-width:1180px){
  .persistent-recording-bar{bottom:max(88px,calc(env(safe-area-inset-bottom) + 76px));width:min(calc(100% - 64px),700px)}
  .note-intelligence-card{margin-top:14px}
}
@media(max-width:640px){
  .persistent-recording-bar{bottom:80px;width:calc(100% - 16px);grid-template-columns:auto minmax(0,1fr) auto auto}
  #persistentRecordingStop{display:none}
}

/* v0.17 Goodnotes-inspired iPad writing workspace */
.goodnotes-shell{padding:0;overflow:hidden;background:var(--solid)}
.goodnotes-documentbar{height:58px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 12px;border-bottom:1px solid var(--line);background:var(--solid)}
.docbar-left,.docbar-right{display:flex;align-items:center;gap:8px}.docbar-right{justify-content:flex-end}.docbar-center{display:flex;justify-content:center}
.docbar-icon{width:38px;height:38px;border:0;background:transparent;color:var(--text);border-radius:10px;display:grid;place-items:center;cursor:pointer}.docbar-icon:hover{background:var(--soft)}.docbar-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.doc-title-group span,.doc-title-group strong{display:block}.doc-title-group span{font-size:8px;color:var(--muted);margin-bottom:2px}.doc-title-group strong{font-size:11px;max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-lecture-pill{display:flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:rgba(239,78,101,.08);color:#d94d61;border:1px solid rgba(239,78,101,.16);font-size:8px}.live-lecture-pill i{width:7px;height:7px;border-radius:50%;background:#ef4e65;box-shadow:0 0 0 4px rgba(239,78,101,.10)}.live-lecture-pill strong{font-variant-numeric:tabular-nums}
.goodnotes-body{display:grid;grid-template-columns:112px minmax(0,1fr);min-height:0}.goodnotes-page-strip{border-right:1px solid var(--line);background:var(--soft);padding:10px 8px;overflow-y:auto}.goodnotes-editor{position:relative;min-width:0;background:#eceef2}
.page-add-card,.gn-thumb{width:100%;border:1px solid var(--line);background:var(--solid);border-radius:10px;margin-bottom:9px;cursor:pointer}.page-add-card{height:58px;display:grid;place-items:center;align-content:center;color:var(--accent)}.page-add-card span{font-size:20px;line-height:1}.page-add-card small{font-size:7px;margin-top:2px}
.gn-thumb{padding:5px;text-align:left}.gn-thumb-preview{height:96px;background:#fff;border:1px solid #e2e5ea;border-radius:5px;position:relative;overflow:hidden}.gn-thumb-preview:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#edf0f5 1px,transparent 1px),linear-gradient(90deg,#edf0f5 1px,transparent 1px);background-size:12px 12px}.gn-thumb strong{display:block;font-size:7px;margin:5px 2px 2px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gn-thumb small{font-size:6px;color:var(--muted);margin-left:2px}.gn-thumb.active{outline:2px solid var(--accent)}
.goodnotes-floating-toolbar{position:absolute;z-index:20;left:50%;top:14px;transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:5px 7px;background:color-mix(in srgb,var(--solid) 96%,transparent);border:1px solid var(--line);border-radius:15px;box-shadow:0 8px 28px rgba(30,40,70,.12);backdrop-filter:blur(16px)}
.gn-tool{width:40px;height:40px;border:0;background:transparent;color:var(--muted);border-radius:10px;display:grid;place-items:center;cursor:pointer}.gn-tool.active,.gn-tool:hover{background:var(--accent-soft);color:var(--accent)}.gn-tool svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gn-divider{width:1px;height:28px;background:var(--line);margin:0 2px}.gn-color{width:24px;height:24px;border-radius:50%;border:3px solid var(--solid);background:var(--ink);box-shadow:0 0 0 1px var(--line);cursor:pointer}.gn-color.active{box-shadow:0 0 0 2px var(--accent)}.gn-width{width:30px;height:30px;border:0;background:transparent;border-radius:8px;display:grid;place-items:center;cursor:pointer}.gn-width span{width:18px;height:3px;border-radius:99px;background:var(--text)}
.goodnotes-editor .paper-wrap{margin:0 auto;background-color:white;box-shadow:0 2px 12px rgba(35,45,70,.10)}
.goodnotes-status{background:var(--solid);border-top:1px solid var(--line)}
#strokeLectureTime{color:var(--accent)}
@media(min-width:768px) and (max-width:1180px){
  .notes-workspace{display:block}
  .ipad-notebook-sidebar{display:none}
  .legacy-note-toolbar{display:none!important}
  .notebook-topbar{display:none!important}
  .goodnotes-documentbar{height:60px}
  .goodnotes-body{grid-template-columns:118px minmax(0,1fr)}
  .goodnotes-page-strip{display:block}
  .goodnotes-editor .ipad-paper{height:calc(100vh - 210px);min-height:700px;width:min(92%,820px)}
  .goodnotes-floating-toolbar{top:12px}
  .note-ai-grid{margin-top:14px}
}
@media(min-width:1024px) and (max-width:1180px) and (orientation:landscape){
  .goodnotes-body{grid-template-columns:126px minmax(0,1fr)}
  .goodnotes-editor .ipad-paper{height:calc(100vh - 185px);min-height:620px;width:min(88%,900px)}
}
@media(max-width:760px){
  .goodnotes-documentbar{grid-template-columns:1fr auto}.docbar-center{display:none}.goodnotes-body{grid-template-columns:1fr}.goodnotes-page-strip{display:none}.goodnotes-floating-toolbar{max-width:calc(100% - 18px);overflow-x:auto}.goodnotes-editor .paper-wrap{width:100%}
}

/* v0.18 Notes Pro + Lecture Mode */
.lecture-mode-start{border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
.lecture-mode-hud{position:absolute;z-index:22;left:18px;right:18px;top:76px;display:flex;justify-content:space-between;align-items:center;padding:8px 10px;border-radius:13px;background:rgba(25,30,43,.91);color:white;box-shadow:0 8px 26px rgba(15,20,35,.18);backdrop-filter:blur(16px)}
.lecture-mode-hud.hidden{display:none}.lecture-mode-main{display:flex;gap:9px;align-items:center}.lecture-mode-main i{width:9px;height:9px;border-radius:50%;background:#ef4e65;box-shadow:0 0 0 5px rgba(239,78,101,.16)}.lecture-mode-main small,.lecture-mode-main strong{display:block}.lecture-mode-main small{font-size:6px;opacity:.65;letter-spacing:.08em}.lecture-mode-main strong{font-size:9px;margin-top:1px}.lecture-mode-actions{display:flex;gap:5px}.hud-btn{border:0;border-radius:8px;padding:7px 9px;background:rgba(255,255,255,.11);color:white;font-size:7px;font-weight:800}.hud-btn.finish{background:white;color:#252b3d}
.notes-split-pane{position:absolute;right:14px;top:132px;bottom:14px;width:min(38%,340px);z-index:18;background:var(--solid);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(30,40,65,.14);overflow:hidden}.notes-split-pane.hidden{display:none}.split-pane-head{height:42px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.split-pane-head strong{font-size:9px}.split-pane-head button{border:0;background:transparent;font-size:18px;color:var(--muted)}.split-source-tabs{display:flex;padding:8px;gap:5px}.split-source-tabs button{flex:1;border:0;border-radius:8px;padding:7px;background:var(--soft);font-size:7px;color:var(--muted)}.split-source-tabs button.active{background:var(--accent-soft);color:var(--accent);font-weight:800}.split-slide{margin:0 10px;padding:18px;border:1px solid var(--line);border-radius:10px;aspect-ratio:4/3;background:white}.split-slide>span{font-size:7px;color:var(--muted)}.split-slide h4{font-size:14px;margin:28px 0 12px}.split-slide p{font-size:8px;line-height:1.5;color:var(--muted)}.slide-equation{margin-top:20px;padding:12px;background:var(--soft);border-radius:9px;text-align:center;font-size:15px;font-weight:800}
.post-lecture-modal{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:rgba(17,22,35,.38);backdrop-filter:blur(10px);padding:20px}.post-lecture-modal.hidden{display:none}.post-lecture-card{width:min(520px,100%);background:var(--solid);border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 24px 70px rgba(20,25,40,.24)}.post-lecture-card h2{font-size:24px;margin:4px 0 8px}.post-lecture-card>p.muted{line-height:1.5}.post-lecture-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.post-lecture-stats div{padding:12px;border-radius:12px;background:var(--soft);text-align:center}.post-lecture-stats strong,.post-lecture-stats span{display:block}.post-lecture-stats strong{font-size:20px}.post-lecture-stats span{font-size:7px;color:var(--muted);margin-top:2px}.post-review-focus{padding:13px;border-radius:12px;background:var(--accent-soft);margin-bottom:16px}.post-review-focus strong,.post-review-focus span{display:block}.post-review-focus strong{font-size:10px}.post-review-focus span{font-size:8px;color:var(--muted);margin-top:4px}
body.lecture-mode-active .goodnotes-documentbar{background:color-mix(in srgb,var(--solid) 96%,#f8eef0)}body.lecture-mode-active .note-intelligence-card{display:none}
@media(min-width:768px) and (max-width:1180px){body.lecture-mode-active .goodnotes-editor .ipad-paper{height:calc(100vh - 185px)}.lecture-mode-hud{top:74px}.notes-split-pane{top:126px}}

/* v0.19 Pen Engine + Word-style mathematical typesetting */
.pen-popover{position:absolute;z-index:28;top:82px;left:50%;transform:translateX(-50%);width:min(460px,calc(100% - 24px));background:var(--solid);border:1px solid var(--line);border-radius:16px;padding:13px;box-shadow:0 14px 38px rgba(25,34,58,.18)}
.pen-popover.hidden{display:none}.pen-popover-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.pen-popover-head strong{font-size:11px}.pen-popover-head button{border:0;background:transparent;color:var(--muted);font-size:20px}
.pen-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.pen-preset{border:1px solid var(--line);background:var(--solid);border-radius:11px;padding:9px;cursor:pointer;color:var(--text);text-align:left}.pen-preset.active{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}.pen-preset strong,.pen-preset small{display:block}.pen-preset strong{font-size:9px;margin-top:5px}.pen-preset small{font-size:7px;color:var(--muted);margin-top:2px}
.pen-preview{display:block;width:60px;background:var(--text);border-radius:99px}.pen-preview.ballpoint{height:2px}.pen-preview.fountain{height:4px;transform:skewX(-18deg)}.pen-preview.brush{height:7px;border-radius:60% 10% 60% 10%}
.pen-setting{display:grid;grid-template-columns:125px 1fr;align-items:center;gap:10px;margin:11px 0 0;color:var(--text);font-size:8px}.pen-setting input{padding:0}
.favorite-pens{margin-top:12px;padding-top:10px;border-top:1px solid var(--line);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.favorite-pens>span{font-size:8px;color:var(--muted);margin-right:4px}.fav-pen{display:flex;align-items:center;gap:5px;border:1px solid var(--line);background:var(--soft);border-radius:9px;padding:6px 8px;font-size:7px;color:var(--text);cursor:pointer}.fav-pen i{width:11px;height:11px;border-radius:50%;background:var(--fav)}
.toolbar-dock-row{display:flex;align-items:center;gap:6px;margin-top:10px}.toolbar-dock-row>span{font-size:8px;color:var(--muted);margin-right:auto}.dock-btn{border:1px solid var(--line);background:var(--soft);color:var(--muted);border-radius:8px;padding:6px 9px;font-size:7px}.dock-btn.active{background:var(--accent-soft);color:var(--accent)}
.goodnotes-floating-toolbar.dock-left{left:12px;top:50%;transform:translateY(-50%);flex-direction:column}.goodnotes-floating-toolbar.dock-right{left:auto;right:12px;top:50%;transform:translateY(-50%);flex-direction:column}
.math-preview-card{margin:14px 0}.math-preview-card.hidden{display:none}.math-display{min-height:120px;display:grid;place-items:center;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--solid);overflow-x:auto}.math-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.math-typeset{display:inline-flex;align-items:center;gap:.18em;font-family:"Cambria Math","STIX Two Math","Times New Roman",serif;font-size:1.16em;line-height:1.2;color:var(--text)}
.math-frac{display:inline-grid;grid-template-rows:auto 1px auto;align-items:center;justify-items:center;vertical-align:middle;margin:0 .08em;line-height:1}.math-frac>.bar{height:1px;background:currentColor;width:100%;min-width:1.1em;margin:.08em 0}.math-frac>.num,.math-frac>.den{padding:0 .12em;white-space:nowrap}
.math-sqrt{display:inline-flex;align-items:stretch;vertical-align:middle}.math-sqrt>.radical{font-size:1.35em;line-height:.9;margin-right:-.02em}.math-sqrt>.radicand{border-top:1px solid currentColor;padding:.05em .12em 0 .1em}
.math-super{font-size:.68em;vertical-align:super;margin-left:.02em}.math-sub{font-size:.68em;vertical-align:sub;margin-left:.02em}.math-op{font-family:"Times New Roman",serif;font-size:1.35em;margin:0 .06em}
.math-matrix{display:inline-grid;position:relative;gap:.18em .6em;padding:.12em .45em;margin:0 .08em}.math-matrix:before,.math-matrix:after{content:"";position:absolute;top:0;bottom:0;width:5px;border-top:1px solid currentColor;border-bottom:1px solid currentColor}.math-matrix:before{left:0;border-left:1px solid currentColor}.math-matrix:after{right:0;border-right:1px solid currentColor}.math-matrix span{text-align:center}
.equation-row .math-typeset,.saved-equation .math-typeset{font-size:1.18em}.saved-equation .math-typeset{display:flex;min-height:42px}
@media(min-width:768px) and (max-width:1180px){.pen-popover{top:78px}.math-display{min-height:140px}.selection-controls .tool-btn{min-width:38px}}

/* v0.20 speed-responsive fountain + handwriting search + physics notation */
.omega-symbol{font-family:"Cambria Math","STIX Two Math","Times New Roman",serif;font-size:20px;line-height:1}
.physics-palette{position:absolute;z-index:29;top:82px;left:50%;transform:translateX(-50%);width:min(500px,calc(100% - 24px));background:var(--solid);border:1px solid var(--line);border-radius:16px;padding:13px;box-shadow:0 14px 38px rgba(25,34,58,.18)}
.physics-palette.hidden{display:none}.physics-palette-tabs{display:flex;gap:5px;padding:4px;background:var(--soft);border-radius:10px;margin-bottom:10px}.physics-palette-tabs button{flex:1;border:0;background:transparent;border-radius:8px;padding:7px;color:var(--muted);font-size:7px;font-weight:800}.physics-palette-tabs button.active{background:var(--solid);color:var(--accent)}
.physics-symbol-grid{display:none;grid-template-columns:repeat(8,1fr);gap:6px}.physics-symbol-grid.active{display:grid}.physics-symbol-grid button{min-height:39px;border:1px solid var(--line);border-radius:9px;background:var(--solid);font-family:"Cambria Math","STIX Two Math","Times New Roman",serif;font-size:17px;color:var(--text);cursor:pointer}.physics-symbol-grid button:hover{background:var(--accent-soft);color:var(--accent)}
.physics-template-grid{display:none;grid-template-columns:repeat(3,1fr);gap:7px}.physics-template-grid.active{display:grid}.physics-template-grid button{border:1px solid var(--line);border-radius:10px;background:var(--solid);padding:10px;text-align:left;color:var(--text)}.physics-template-grid strong,.physics-template-grid span{display:block}.physics-template-grid strong{font-size:8px}.physics-template-grid span{font-family:"Cambria Math","Times New Roman",serif;font-size:11px;color:var(--muted);margin-top:4px}
.handwriting-search-card{margin:14px 0}.handwriting-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.search-explainer{font-size:9px;line-height:1.5;margin:10px 0 0}.handwriting-search-results{display:grid;gap:7px;margin-top:12px}.search-result{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:var(--solid);cursor:pointer}.search-result:hover{background:var(--accent-soft)}.search-result strong,.search-result small{display:block}.search-result strong{font-size:9px}.search-result small{font-size:7px;color:var(--muted);margin-top:3px}.search-result .result-type{font-size:7px;padding:5px 7px;border-radius:7px;background:var(--soft);color:var(--muted);font-weight:800}
.fountain-speed-demo{display:flex;align-items:center;gap:8px;font-size:7px;color:var(--muted)}
@media(max-width:640px){.physics-symbol-grid{grid-template-columns:repeat(6,1fr)}.physics-template-grid{grid-template-columns:1fr 1fr}.handwriting-search-row{grid-template-columns:1fr}}

/* v0.21 corrected fountain taper + handwriting intelligence */
.handwriting-intelligence-card{margin:14px 0}.handwriting-intelligence-card>p{margin:0 0 12px;line-height:1.5}
.handwriting-intel-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.55fr);gap:12px}
.ink-analysis-panel,.ink-actions-panel{padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--solid)}
.ink-analysis-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:9px}.ink-analysis-row:last-child{border-bottom:0}.ink-analysis-row span{color:var(--muted)}.ink-analysis-row strong{color:var(--text);text-align:right}
.ink-actions-panel{display:grid;gap:7px;align-content:start}.ink-recognition-result{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--soft);font-size:9px;line-height:1.5}
.shape-clean-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.shape-clean-preview div{height:52px;border:1px dashed var(--line);border-radius:10px;display:grid;place-items:center;background:var(--solid);font-size:9px;color:var(--muted)}
@media(max-width:700px){.handwriting-intel-grid{grid-template-columns:1fr}}

.ink-quality-status{display:flex;align-items:center;gap:9px;margin-top:12px;padding:9px 10px;border-radius:10px;background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line))}
.ink-quality-status i{width:8px;height:8px;border-radius:50%;background:#2d9b78;box-shadow:0 0 0 4px rgba(45,155,120,.12)}.ink-quality-status strong,.ink-quality-status small{display:block}.ink-quality-status strong{font-size:8px}.ink-quality-status small{font-size:7px;color:var(--muted);margin-top:2px}
.sync-engine-card{padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);margin-bottom:16px}.sync-engine-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.sync-engine-stat{padding:11px;border-radius:11px;background:var(--soft)}.sync-engine-stat span,.sync-engine-stat strong{display:block}.sync-engine-stat span{font-size:8px;color:var(--muted)}.sync-engine-stat strong{font-size:12px;margin-top:4px}.sync-flow-row{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:14px 0;padding:10px;border-radius:11px;background:var(--accent-soft);color:var(--accent);font-size:9px;font-weight:800}.sync-engine-card>p{font-size:9px;line-height:1.5;margin:0}
@media(max-width:640px){.sync-engine-grid{grid-template-columns:1fr}.sync-flow-row{justify-content:flex-start}}

/* v0.23 account/auth + hosted sync architecture */
.account-foundation-card,.sync-settings-card{padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);margin-bottom:16px}
.account-profile-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px;border-radius:13px;background:var(--soft)}
.account-avatar{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--accent);color:white;font-weight:900}
.account-profile-row strong,.account-profile-row small{display:block}.account-profile-row strong{font-size:10px}.account-profile-row small{font-size:8px;color:var(--muted);margin-top:3px}
.device-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.device-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:10px;border:1px solid var(--line);border-radius:12px}.device-card.current{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 30%,var(--line))}
.device-symbol{font-size:18px}.device-card strong,.device-card small{display:block}.device-card strong{font-size:8px}.device-card small{font-size:7px;color:var(--muted);margin-top:3px}.sync-dot{width:8px;height:8px;border-radius:50%;background:#2d9b78}.sync-dot.pending{background:#c3a33a}
.sync-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.sync-toggle strong,.sync-toggle small{display:block}.sync-toggle strong{font-size:9px}.sync-toggle small{font-size:7px;color:var(--muted);margin-top:3px}.sync-toggle input{width:18px;height:18px}
.encryption-note{display:flex;gap:10px;margin-top:13px;padding:11px;border-radius:12px;background:var(--accent-soft)}.encryption-note>span{font-size:20px;color:var(--accent)}.encryption-note strong,.encryption-note small{display:block}.encryption-note strong{font-size:9px}.encryption-note small{font-size:7px;color:var(--muted);margin-top:3px;line-height:1.45}
.account-sheet{position:fixed;inset:0;z-index:100}.account-sheet.hidden{display:none}.account-sheet-backdrop{position:absolute;inset:0;background:rgba(16,22,35,.38);backdrop-filter:blur(4px)}.account-sheet-panel{position:absolute;right:18px;top:18px;bottom:18px;width:min(430px,calc(100% - 36px));background:var(--solid);border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 24px 70px rgba(16,22,35,.25);overflow:auto}
.account-field{display:grid;gap:6px;margin:13px 0}.account-field span{font-size:8px;color:var(--muted);font-weight:800}.account-security-list{display:grid;gap:8px;margin-top:18px}.account-security-list>div{display:flex;gap:9px;padding:10px;border-radius:11px;background:var(--soft)}.account-security-list>div>span{color:#2d9b78;font-weight:900}.account-security-list p{margin:0}.account-security-list strong,.account-security-list small{display:block}.account-security-list strong{font-size:9px}.account-security-list small{font-size:7px;color:var(--muted);margin-top:3px}
@media(max-width:700px){.device-grid{grid-template-columns:1fr}.account-profile-row{grid-template-columns:auto 1fr}.account-profile-row button{grid-column:1/-1}}

.university-calendar-card{margin-bottom:18px}.timetable-import-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr);gap:12px}
.import-dropzone{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px;border:1px dashed color-mix(in srgb,var(--accent) 40%,var(--line));border-radius:15px;background:var(--accent-soft)}
.import-symbol{width:42px;height:42px;border-radius:12px;background:var(--solid);display:grid;place-items:center;color:var(--accent);font-size:20px;font-weight:900}.import-dropzone strong,.import-dropzone small{display:block}.import-dropzone small{font-size:8px;color:var(--muted);margin-top:4px;line-height:1.4}
.timetable-link-controls{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}.timetable-link-controls label{display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:9px;background:var(--soft);font-size:8px}
.timetable-import-summary{padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--solid);display:grid;grid-template-columns:repeat(3,1fr);gap:8px;align-content:start}.timetable-import-summary>div{padding:10px;border-radius:10px;background:var(--soft)}.timetable-import-summary span,.timetable-import-summary strong{display:block}.timetable-import-summary span{font-size:7px;color:var(--muted)}.timetable-import-summary strong{font-size:18px;margin-top:4px}.timetable-import-summary button{grid-column:1/-1}
.timetable-import-results{display:grid;gap:7px;margin-top:12px}.imported-event-row{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:var(--solid)}.imported-event-row time{font-size:8px;color:var(--accent);font-weight:800}.imported-event-row strong,.imported-event-row small{display:block}.imported-event-row strong{font-size:9px}.imported-event-row small{font-size:7px;color:var(--muted);margin-top:3px}.match-chip{padding:5px 7px;border-radius:7px;background:var(--accent-soft);color:var(--accent);font-size:7px;font-weight:800}
.canvas-data-map{box-shadow:none;margin:16px 0}.canvas-map-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.canvas-map-grid>div{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:7px;padding:10px;border-radius:10px;background:var(--soft);font-size:8px}.canvas-map-grid span{color:var(--muted)}.canvas-map-grid b{color:var(--accent)}.scope-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.scope-list span{padding:5px 7px;border-radius:7px;background:var(--accent-soft);color:var(--accent);font-size:7px;font-weight:800}
.university-integration-status{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.university-integration-status>div{padding:11px;border-radius:11px;background:var(--soft)}.university-integration-status span,.university-integration-status strong,.university-integration-status small{display:block}.university-integration-status span{font-size:7px;color:var(--muted)}.university-integration-status strong{font-size:10px;margin-top:4px}.university-integration-status small{font-size:7px;color:var(--muted);margin-top:3px}
@media(max-width:760px){.timetable-import-grid{grid-template-columns:1fr}.import-dropzone{grid-template-columns:auto 1fr}.import-dropzone button{grid-column:1/-1}.university-integration-status{grid-template-columns:1fr}.canvas-map-grid{grid-template-columns:1fr}}

.lecture-intelligence-card{margin-bottom:18px}.source-fusion{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1.1fr;gap:8px;align-items:stretch;margin:12px 0}.source-fusion>div{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--soft);display:grid;gap:4px}.source-fusion>b{align-self:center;color:var(--accent)}.source-fusion .fusion-result{background:var(--accent-soft)}.source-fusion strong,.source-fusion small{display:block}.source-fusion small{font-size:7px;color:var(--muted)}.lecture-ai-actions{display:flex;gap:10px;align-items:end}.lecture-ai-actions label{display:grid;gap:4px;font-size:7px;color:var(--muted)}.lecture-ai-results{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.lecture-ai-results article{padding:12px;border-radius:12px;background:var(--soft)}.lecture-ai-results article span,.lecture-ai-results article strong,.lecture-ai-results article small{display:block}.lecture-ai-results article span{font-size:7px;color:var(--accent);font-weight:800}.lecture-ai-results article strong{font-size:22px;margin:5px 0}.lecture-ai-results article small{font-size:7px;color:var(--muted)}.evidence-feed{display:grid;gap:8px}.evidence-item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;padding:11px;border:1px solid var(--line);border-radius:11px}.evidence-item span{font-size:7px;color:var(--accent);font-weight:800}.evidence-item small{display:block;color:var(--muted);font-size:7px;margin-top:4px}.empty-ai-state{padding:16px;text-align:center;background:var(--soft);border-radius:12px}.empty-ai-state small{display:block;font-size:7px;color:var(--muted);margin-top:4px}@media(max-width:800px){.source-fusion{grid-template-columns:1fr 1fr}.source-fusion>b{display:none}.lecture-ai-results{grid-template-columns:1fr 1fr}}

/* v0.26 Study Intelligence */
.mastery-engine-card{margin-bottom:18px}.mastery-overview{display:grid;grid-template-columns:170px minmax(260px,1fr) minmax(260px,1.1fr);gap:12px;margin:12px 0}.mastery-ring{width:145px;height:145px;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle at center,var(--solid) 57%,transparent 59%),conic-gradient(var(--accent) 0 68%,var(--soft) 68% 100%);border:1px solid var(--line)}.mastery-ring strong{font-size:26px}.mastery-ring span{font-size:7px;color:var(--muted)}.study-plan-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.study-plan-summary>div,.next-focus{padding:13px;border-radius:13px;background:var(--soft)}.study-plan-summary span,.study-plan-summary strong,.next-focus span,.next-focus strong,.next-focus small{display:block}.study-plan-summary span,.next-focus span{font-size:7px;color:var(--muted)}.study-plan-summary strong{font-size:19px;margin-top:6px}.next-focus{background:var(--accent-soft)}.next-focus strong{font-size:11px;margin:7px 0}.next-focus small{font-size:7px;color:var(--muted);margin-bottom:10px}.mastery-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mastery-grid>section{padding:13px;border:1px solid var(--line);border-radius:14px}.mini-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.mini-heading strong{font-size:10px}.mini-heading span{font-size:7px;color:var(--muted)}.mastery-topic-list,.adaptive-queue{display:grid;gap:7px}.mastery-topic{display:grid;grid-template-columns:minmax(0,1fr) 100px 42px;gap:9px;align-items:center;padding:9px;border-radius:10px;background:var(--soft)}.mastery-topic strong,.mastery-topic small{display:block}.mastery-topic strong{font-size:8px}.mastery-topic small{font-size:7px;color:var(--muted);margin-top:3px}.mastery-bar{height:7px;border-radius:8px;background:var(--line);overflow:hidden}.mastery-bar i{display:block;height:100%;border-radius:8px;background:var(--accent)}.mastery-topic>span{font-size:8px;font-weight:900;text-align:right}.queue-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px;border-radius:10px;background:var(--soft)}.queue-index{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:8px;font-weight:900}.queue-item strong,.queue-item small{display:block}.queue-item strong{font-size:8px}.queue-item small{font-size:7px;color:var(--muted);margin-top:3px}.difficulty-chip{font-size:7px;font-weight:800;color:var(--accent)}.study-loop{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:12px;padding:11px;border-radius:12px;background:var(--accent-soft)}.study-loop span{font-size:8px;font-weight:800}.study-loop b{color:var(--accent)}
@media(max-width:800px){.mastery-overview{grid-template-columns:150px 1fr}.next-focus{grid-column:1/-1}.mastery-grid{grid-template-columns:1fr}}@media(max-width:520px){.mastery-overview{grid-template-columns:1fr}.mastery-ring{margin:auto}.study-plan-summary{grid-template-columns:1fr 1fr 1fr}}

.workflow-strip{position:sticky;top:8px;z-index:18;margin:0 auto 14px;max-width:760px;display:flex;align-items:center;justify-content:center;gap:6px;padding:7px;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--solid) 92%,transparent);backdrop-filter:blur(18px)}.workflow-strip button{border:0;background:transparent;border-radius:11px;padding:7px 10px;display:grid;grid-template-columns:auto auto;column-gap:6px;align-items:center;color:var(--text)}.workflow-strip button:hover{background:var(--accent-soft)}.workflow-strip button span{grid-row:1/3;font-size:7px;color:var(--accent);font-weight:900}.workflow-strip button strong{font-size:8px}.workflow-strip button small{font-size:6px;color:var(--muted)}.workflow-strip i{font-style:normal;color:var(--muted);font-size:8px}.daily-brief-card{margin-bottom:16px}.daily-brief-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.daily-brief-grid>div{padding:12px;border-radius:12px;background:var(--soft)}.daily-brief-grid span,.daily-brief-grid strong,.daily-brief-grid small{display:block}.daily-brief-grid span{font-size:7px;color:var(--accent);font-weight:800}.daily-brief-grid strong{font-size:10px;margin:5px 0}.daily-brief-grid small{font-size:7px;color:var(--muted);min-height:25px}.install-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.install-grid>div{padding:11px;border-radius:11px;background:var(--soft)}.install-grid strong,.install-grid small{display:block}.install-grid strong{font-size:9px}.install-grid small{font-size:7px;color:var(--muted);line-height:1.5;margin-top:4px}body.reduce-motion *,body.reduce-motion *::before,body.reduce-motion *::after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important}body.large-targets button,body.large-targets input,body.large-targets select{min-height:44px}button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:2px}@media(max-width:760px){.workflow-strip{max-width:calc(100% - 18px);overflow-x:auto;justify-content:flex-start}.workflow-strip i{display:none}.daily-brief-grid,.install-grid{grid-template-columns:1fr}}

/* v1 Alpha — account, local-first mutation queue, cross-device architecture */
.alpha-cloud-card{margin-bottom:16px}.alpha-cloud-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:10px}.alpha-account{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px;border-radius:13px;background:var(--accent-soft)}.alpha-symbol{width:40px;height:40px;border-radius:12px;background:var(--solid);display:grid;place-items:center;color:var(--accent);font-size:20px;font-weight:900}.alpha-account strong,.alpha-account small{display:block}.alpha-account strong{font-size:10px}.alpha-account small{font-size:7px;color:var(--muted);margin-top:4px}.alpha-sync-state{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.alpha-sync-state>div{padding:11px;border-radius:11px;background:var(--soft)}.alpha-sync-state span,.alpha-sync-state strong{display:block}.alpha-sync-state span{font-size:7px;color:var(--muted)}.alpha-sync-state strong{font-size:10px;margin-top:5px}.sync-health{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:8px;align-items:center;margin-top:9px;padding:9px 11px;border:1px solid var(--line);border-radius:11px}.sync-health>span{width:8px;height:8px;border-radius:50%;background:#35a47a}.sync-health strong{font-size:8px}.sync-health small{font-size:7px;color:var(--muted)}
.alpha-auth-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.alpha-auth-options button{display:flex;gap:8px;align-items:center;justify-content:center}.alpha-auth-options span{color:var(--accent);font-weight:900}.alpha-device-list{display:grid;gap:7px;margin:12px 0}.alpha-device-list>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px;border-radius:11px;background:var(--soft)}.device-glyph{width:34px;height:34px;border-radius:9px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}.alpha-device-list strong,.alpha-device-list small{display:block}.alpha-device-list strong{font-size:9px}.alpha-device-list small{font-size:7px;color:var(--muted);margin-top:3px}.device-state{font-size:7px;color:#2d9b78;font-weight:900}
@media(max-width:800px){.alpha-cloud-grid{grid-template-columns:1fr}.alpha-auth-options{grid-template-columns:1fr}}@media(max-width:560px){.alpha-sync-state{grid-template-columns:1fr 1fr 1fr}.alpha-account{grid-template-columns:auto 1fr}.alpha-account button{grid-column:1/-1}}

.alpha-live-backend{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:12px;border-radius:12px;background:var(--accent-soft);margin:10px 0}.alpha-live-backend span,.alpha-live-backend strong,.alpha-live-backend small{display:block}.alpha-live-backend span{font-size:7px;color:var(--accent);font-weight:900}.alpha-live-backend strong{font-size:10px;margin:4px 0}.alpha-live-backend small{font-size:7px;color:var(--muted)}

/* v1 Alpha 3 — resilient chunked lecture capture */
.resilient-recording-card{margin-bottom:16px}.capture-safety-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.capture-safety-grid>div{padding:11px;border-radius:11px;background:var(--soft)}.capture-safety-grid span,.capture-safety-grid strong,.capture-safety-grid small{display:block}
.capture-safety-grid span{font-size:7px;color:var(--muted)}.capture-safety-grid strong{font-size:18px;margin:4px 0}.capture-safety-grid small{font-size:7px;color:var(--muted)}
.capture-progress{height:6px;border-radius:99px;background:var(--line);overflow:hidden;margin:11px 0}.capture-progress i{display:block;height:100%;width:0;background:var(--accent);border-radius:99px;transition:width .25s ease}
.capture-safety-note{display:flex;gap:9px;align-items:center;padding:10px 11px;border-radius:11px;background:var(--accent-soft);margin-bottom:10px}
.capture-safety-note>span{color:#2d9b78;font-size:9px}.capture-safety-note strong,.capture-safety-note small{display:block}.capture-safety-note strong{font-size:8px}.capture-safety-note small{font-size:7px;color:var(--muted);margin-top:3px}
.capture-safety-note.warning>span{color:#c39a35}@media(max-width:760px){.capture-safety-grid{grid-template-columns:1fr 1fr}}

/* v1 Alpha 4 — real lecture processing */
.real-processing-card{margin-bottom:16px}.processing-stage-row{display:flex;align-items:stretch;gap:6px;margin:12px 0;overflow-x:auto}
.processing-stage-row>i{align-self:center;font-style:normal;color:var(--muted);font-size:8px}.processing-stage{min-width:125px;flex:1;display:grid;grid-template-columns:auto 1fr;column-gap:7px;padding:10px;border:1px solid var(--line);border-radius:11px;background:var(--soft)}
.processing-stage>span{grid-row:1/3;width:26px;height:26px;border-radius:8px;background:var(--solid);display:grid;place-items:center;color:var(--accent);font-size:7px;font-weight:900}.processing-stage strong{font-size:8px}.processing-stage small{font-size:7px;color:var(--muted)}
.processing-stage.done{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 28%,var(--line))}.processing-stage.done>span{background:var(--accent);color:white}
.processing-stage.active{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 26%,transparent)}
.processing-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.processing-actions label{display:grid;gap:4px}.processing-actions label span{font-size:7px;color:var(--muted);font-weight:800}
.processing-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.processing-summary-grid>div{padding:11px;border-radius:11px;background:var(--soft)}
.processing-summary-grid span,.processing-summary-grid strong,.processing-summary-grid small{display:block}.processing-summary-grid span{font-size:7px;color:var(--accent);font-weight:800}.processing-summary-grid strong{font-size:19px;margin:4px 0}.processing-summary-grid small{font-size:7px;color:var(--muted)}
.lecture-processing-split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.transcript-timeline,.evidence-review-pane{padding:12px;border:1px solid var(--line);border-radius:13px;min-width:0}
.timeline-list{display:grid;gap:7px;max-height:390px;overflow:auto}.timeline-segment{display:grid;grid-template-columns:74px minmax(0,1fr);gap:9px;padding:9px;border-radius:10px;background:var(--soft);cursor:pointer;border:1px solid transparent}.timeline-segment:hover,.timeline-segment.active{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 24%,var(--line))}
.timeline-segment time{font-size:7px;color:var(--accent);font-weight:900}.timeline-segment p{font-size:8px;line-height:1.45;margin:0;color:var(--text)}
.evidence-tabs{display:flex;gap:5px;padding:4px;background:var(--soft);border-radius:10px;margin-bottom:8px}.evidence-tabs button{flex:1;border:0;border-radius:8px;background:transparent;padding:7px;color:var(--muted);font-size:7px;font-weight:800}.evidence-tabs button.active{background:var(--solid);color:var(--accent)}
.alpha4-evidence-results{display:grid;gap:7px;max-height:390px;overflow:auto}.review-result{padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--solid)}.review-result-header{display:flex;justify-content:space-between;gap:8px;align-items:center}.review-result-header span{font-size:7px;color:var(--accent);font-weight:900}.review-result-header b{font-size:7px;color:#2d9b78}.review-result strong,.review-result small{display:block}.review-result strong{font-size:9px;margin:7px 0 4px}.review-result small{font-size:7px;line-height:1.45;color:var(--muted)}.review-result .evidence-line{margin-top:7px;padding:7px;border-radius:8px;background:var(--accent-soft);font-size:7px;color:var(--text)}
.review-result-actions{display:flex;gap:6px;margin-top:8px}.review-result-actions button{font-size:7px;padding:6px 8px}.confidence-medium{color:#c39a35!important}
@media(max-width:820px){.processing-summary-grid{grid-template-columns:1fr 1fr}.lecture-processing-split{grid-template-columns:1fr}}@media(max-width:520px){.processing-summary-grid{grid-template-columns:1fr 1fr}}

/* v1 Alpha 5 — slide intelligence + accepted corrections */
.alpha5-slide-intelligence{margin-bottom:16px}.alpha5-source-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin:10px 0}
.alpha5-dropzone{min-height:108px;border:1px dashed color-mix(in srgb,var(--accent) 38%,var(--line));border-radius:13px;background:var(--accent-soft);padding:13px;display:grid;grid-template-columns:auto 1fr;column-gap:10px;cursor:pointer}
.alpha5-source-icon{grid-row:1/4;width:36px;height:36px;border-radius:10px;background:var(--solid);display:grid;place-items:center;color:var(--accent);font-size:18px}.alpha5-dropzone strong,.alpha5-dropzone small,.alpha5-dropzone b{display:block}.alpha5-dropzone strong{font-size:9px}.alpha5-dropzone small{font-size:7px;color:var(--muted)}.alpha5-dropzone b{font-size:7px;color:var(--accent)}
.alpha5-source-status{padding:13px;border-radius:13px;background:var(--soft)}.alpha5-source-status>span,.alpha5-source-status>strong,.alpha5-source-status>small{display:block}.alpha5-source-status>span{font-size:7px;color:var(--accent);font-weight:900}.alpha5-source-status>strong{font-size:11px;margin:5px 0}.alpha5-source-status>small{font-size:7px;color:var(--muted)}
.alpha5-source-pills{display:flex;gap:6px;margin-top:9px}.alpha5-source-pills i{font-style:normal;padding:5px 7px;border-radius:8px;background:var(--solid);font-size:7px;color:var(--muted)}
.alpha5-review-workbench{display:grid;grid-template-columns:1fr 1fr;gap:10px}.alpha5-review-workbench>section{border:1px solid var(--line);border-radius:13px;padding:12px}
.alpha5-slide-preview{min-height:135px;border-radius:11px;background:var(--soft);padding:13px;position:relative;overflow:hidden}.alpha5-slide-preview:after{content:"";position:absolute;right:-30px;bottom:-35px;width:140px;height:140px;border-radius:50%;background:var(--accent-soft)}
.alpha5-slide-preview strong,.alpha5-slide-preview small{display:block;position:relative;z-index:1}.alpha5-slide-preview strong{font-size:12px;margin:22px 0 8px}.alpha5-slide-preview small{font-size:7px;line-height:1.5;color:var(--muted);max-width:75%}.alpha5-slide-number{position:relative;z-index:1;font-size:7px;color:var(--accent);font-weight:900}
.alpha5-transcript-evidence{margin-top:7px;padding:9px;border-radius:10px;background:var(--accent-soft);font-size:7px;line-height:1.5;color:var(--text)}
.alpha5-decision-card{min-height:135px;padding:13px;border-radius:11px;background:var(--soft)}.alpha5-decision-card span,.alpha5-decision-card strong,.alpha5-decision-card small{display:block}.alpha5-decision-card span{font-size:7px;color:var(--accent);font-weight:900}.alpha5-decision-card strong{font-size:11px;margin:20px 0 8px}.alpha5-decision-card small{font-size:7px;line-height:1.5;color:var(--muted)}
.alpha5-decision-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.alpha5-decision-actions button{font-size:7px;padding:7px 9px}
.alpha5-accepted-strip{display:grid;grid-template-columns:repeat(3,120px) 1fr;gap:8px;align-items:center;margin-top:10px;padding:10px;border-radius:12px;background:var(--soft)}.alpha5-accepted-strip span,.alpha5-accepted-strip strong{display:block}.alpha5-accepted-strip span{font-size:6px;color:var(--muted)}.alpha5-accepted-strip strong{font-size:14px}.alpha5-accepted-strip>small{font-size:7px;color:var(--muted)}
@media(max-width:820px){.alpha5-source-grid,.alpha5-review-workbench{grid-template-columns:1fr}.alpha5-accepted-strip{grid-template-columns:repeat(3,1fr)}.alpha5-accepted-strip>small{grid-column:1/-1}}

/* v1 Alpha 6 — Notes Intelligence */
.notes-intelligence-v1a6{margin-bottom:16px}
.notes-layer-switcher{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0 12px}
.notes-layer-switcher button{border:1px solid var(--line);border-radius:12px;background:var(--solid);padding:10px;display:grid;grid-template-columns:auto 1fr;column-gap:7px;text-align:left;color:var(--text)}
.notes-layer-switcher button.active{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 30%,var(--line))}
.notes-layer-switcher span{grid-row:1/3;font-size:7px;color:var(--accent);font-weight:900}.notes-layer-switcher strong{font-size:8px}.notes-layer-switcher small{font-size:7px;color:var(--muted)}
.notes-intelligence-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.7fr);gap:12px}
.notes-page-intelligence,.notes-suggestion-sidebar{border:1px solid var(--line);border-radius:13px;padding:12px}
.note-page-preview-v1a6{border:1px solid var(--line);border-radius:13px;background:var(--soft);padding:10px}
.note-page-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.note-page-meta span{font-size:7px;color:var(--muted)}.note-page-meta b{font-size:7px;color:var(--accent)}
.note-page-canvas{min-height:340px;border-radius:10px;background:#fff;position:relative;overflow:hidden;padding:30px 36px;background-image:linear-gradient(#eef1f5 1px,transparent 1px),linear-gradient(90deg,#eef1f5 1px,transparent 1px);background-size:24px 24px}
.handwriting-line{font-family:"Segoe Print","Bradley Hand",cursive;color:#28324b;position:relative;z-index:1}.handwriting-line.h1{font-size:18px;transform:rotate(-1deg);margin-bottom:30px}.handwriting-line.h2{font-size:20px;margin-bottom:34px}.handwriting-line.h3{font-size:16px;transform:rotate(.4deg)}
.notes-evidence-marker{position:absolute;left:280px;top:165px;width:24px;height:24px;border-radius:50%;background:var(--accent);color:white;display:grid;place-items:center;font-size:8px;font-weight:900;z-index:3}.notes-evidence-marker.hidden{display:none}
.notes-margin-annotation{position:absolute;right:14px;top:110px;width:200px;border-left:3px solid var(--accent);padding:10px;background:var(--accent-soft);border-radius:0 10px 10px 0;z-index:2}.notes-margin-annotation.hidden{display:none}.notes-margin-annotation span,.notes-margin-annotation strong,.notes-margin-annotation small{display:block}.notes-margin-annotation span{font-size:6px;color:var(--accent);font-weight:900}.notes-margin-annotation strong{font-size:8px;margin:5px 0}.notes-margin-annotation small{font-size:6px;color:var(--muted)}
.notes-accepted-overlay{position:absolute;left:40px;bottom:32px;width:330px;padding:10px;border-radius:10px;background:rgba(238,240,255,.93);border:1px solid color-mix(in srgb,var(--accent) 28%,var(--line));z-index:2}.notes-accepted-overlay.hidden{display:none}.notes-accepted-overlay span,.notes-accepted-overlay strong,.notes-accepted-overlay small{display:block}.notes-accepted-overlay span{font-size:6px;color:var(--accent);font-weight:900}.notes-accepted-overlay strong{font-size:8px;margin:5px 0}.notes-accepted-overlay small{font-size:6px;color:var(--muted)}
.notes-suggestion-list{display:grid;gap:7px}.notes-suggestion-card{padding:11px;border:1px solid var(--line);border-radius:11px;background:var(--solid)}.notes-suggestion-card.active{background:var(--accent-soft)}
.notes-suggestion-head{display:flex;justify-content:space-between;gap:8px}.notes-suggestion-head span{font-size:6px;color:#2d9b78;font-weight:900}.notes-suggestion-head b{font-size:6px;color:var(--accent)}
.notes-suggestion-card>strong,.notes-suggestion-card>small{display:block}.notes-suggestion-card>strong{font-size:9px;margin:7px 0 4px}.notes-suggestion-card>small{font-size:7px;line-height:1.45;color:var(--muted)}
.notes-source-chip{margin-top:8px;padding:7px;border-radius:8px;background:var(--solid);font-size:7px;color:var(--accent);font-weight:800}.notes-suggestion-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.notes-suggestion-actions button{font-size:7px;padding:6px 8px}
.notes-equation-intelligence{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:13px}.equation-intelligence-row{display:grid;grid-template-columns:1fr auto 1.2fr auto;gap:10px;align-items:center}.equation-original,.equation-typeset{padding:11px;border-radius:11px;background:var(--soft)}.equation-original span,.equation-original strong,.equation-typeset>span{display:block}.equation-original span,.equation-typeset>span{font-size:7px;color:var(--muted)}.equation-original strong{font-family:"Cambria Math","Times New Roman",serif;font-size:12px;margin-top:5px}
.typeset-gamma{font-family:"Cambria Math","Times New Roman",serif;font-size:18px;margin-top:5px;display:flex;align-items:center;gap:4px}.frac{display:inline-grid;grid-template-rows:auto 1px auto;text-align:center;align-items:center}.frac>.bar{background:currentColor;height:1px;width:100%}.frac>.den{padding-top:2px}.frac.inner{font-size:.82em;vertical-align:middle}
.notes-layer-footer{display:grid;grid-template-columns:repeat(3,130px) 1fr;gap:8px;align-items:center;margin-top:12px;padding:10px;border-radius:12px;background:var(--soft)}.notes-layer-footer span,.notes-layer-footer strong{display:block}.notes-layer-footer span{font-size:6px;color:var(--muted)}.notes-layer-footer strong{font-size:10px}.notes-layer-footer small{font-size:7px;color:var(--muted)}
.notes-ai-settings{margin-top:14px}
body.notes-show-suggestions .notes-evidence-marker,body.notes-show-suggestions .notes-margin-annotation{display:grid}
body.notes-show-revised .notes-accepted-overlay{display:block}
@media(max-width:820px){.notes-intelligence-layout{grid-template-columns:1fr}.equation-intelligence-row{grid-template-columns:1fr}.notes-layer-footer{grid-template-columns:repeat(3,1fr)}.notes-layer-footer small{grid-column:1/-1}}

body.notes-hide-evidence .notes-evidence-marker{display:none!important}

/* v1 Alpha 7 — Study Intelligence */
.study-intelligence-v1a7{margin-bottom:16px}.study-command-grid{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:13px;border-radius:14px;background:var(--soft);margin:10px 0 12px}
.study-readiness-ring{width:86px;height:86px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--accent) 0 72%,var(--line) 72% 100%);position:relative}.study-readiness-ring:after{content:"";position:absolute;inset:8px;border-radius:50%;background:var(--solid)}.study-readiness-ring>div{z-index:1;text-align:center}.study-readiness-ring strong,.study-readiness-ring span{display:block}.study-readiness-ring strong{font-size:17px}.study-readiness-ring span{font-size:5px;color:var(--muted);font-weight:900}
.study-command-copy>span,.study-command-copy>strong,.study-command-copy>small{display:block}.study-command-copy>span{font-size:7px;color:var(--accent);font-weight:900}.study-command-copy>strong{font-size:13px;margin:5px 0}.study-command-copy>small{font-size:7px;color:var(--muted)}.study-priority-pills{display:flex;gap:5px;margin-top:8px}.study-priority-pills i{font-style:normal;padding:5px 7px;border-radius:8px;background:var(--solid);font-size:7px;color:var(--muted)}
.study-intelligence-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:12px}.study-intelligence-grid>section{border:1px solid var(--line);border-radius:13px;padding:12px}.adaptive-queue{display:grid;gap:6px}
.queue-item{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:9px;border-radius:10px;background:var(--soft);border:1px solid transparent;cursor:pointer}.queue-item.active{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 26%,var(--line))}.queue-item .queue-dot{width:9px;height:9px;border-radius:50%;background:var(--accent)}.queue-item strong,.queue-item small{display:block}.queue-item strong{font-size:8px}.queue-item small{font-size:6px;color:var(--muted);margin-top:2px}.queue-item b{font-size:6px;color:var(--accent)}
.adaptive-question-card{padding:13px;border-radius:12px;background:var(--soft)}.adaptive-question-card>span{font-size:7px;color:var(--accent);font-weight:900}.adaptive-question-card>strong{display:block;font-size:12px;line-height:1.45;margin:12px 0}.adaptive-question-card textarea{width:100%;min-height:110px;border:1px solid var(--line);border-radius:10px;background:var(--solid);color:var(--text);padding:10px;resize:vertical;font:inherit;font-size:8px;box-sizing:border-box}.question-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.question-actions button{font-size:7px}
.study-feedback{margin-top:8px;padding:10px;border-radius:10px;background:var(--accent-soft);font-size:7px;line-height:1.5}.study-feedback.hidden,.study-equation.hidden{display:none}.study-equation{padding:10px;margin:0 0 10px;border-radius:10px;background:var(--solid);font-family:"Cambria Math","Times New Roman",serif;font-size:17px;text-align:center}
.study-source-trace{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:13px}.source-trace-flow{display:flex;align-items:stretch;gap:6px;overflow-x:auto}.source-trace-flow>div{min-width:145px;flex:1;padding:10px;border-radius:10px;background:var(--soft)}.source-trace-flow>i{align-self:center;font-style:normal;color:var(--muted)}.source-trace-flow span,.source-trace-flow strong,.source-trace-flow small{display:block}.source-trace-flow span{font-size:6px;color:var(--accent);font-weight:900}.source-trace-flow strong{font-size:8px;margin:4px 0}.source-trace-flow small{font-size:6px;color:var(--muted)}
.study-mastery-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:12px}.study-mastery-strip>div{padding:10px;border-radius:11px;background:var(--soft)}.study-mastery-strip span,.study-mastery-strip strong,.study-mastery-strip small{display:block}.study-mastery-strip span{font-size:7px;color:var(--muted)}.study-mastery-strip strong{font-size:15px;margin:3px 0}.study-mastery-strip small{font-size:6px;color:var(--accent)}
@media(max-width:820px){.study-command-grid{grid-template-columns:auto 1fr}.study-command-grid>button{grid-column:1/-1}.study-intelligence-grid{grid-template-columns:1fr}.study-mastery-strip{grid-template-columns:1fr 1fr}}

.university-hub-v1a8{margin-bottom:16px}.university-overview{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:8px;margin:10px 0}.university-overview>div{padding:11px;border-radius:11px;background:var(--soft)}.university-overview span,.university-overview strong,.university-overview small{display:block}.university-overview span{font-size:6px;color:var(--accent);font-weight:900}.university-overview strong{font-size:11px;margin:5px 0}.university-overview small{font-size:7px;color:var(--muted)}.university-hub-actions,.calendar-source-key{display:flex;gap:7px;flex-wrap:wrap}.calendar-source-key{margin:8px 0}.calendar-source-key i{font-style:normal;padding:5px 8px;border-radius:8px;background:var(--soft);font-size:7px}.calendar-source-key .teaching{color:var(--accent)}.calendar-source-key .personal{color:#2d9b78}.calendar-source-key .coursework{color:#8a5bc2}.university-week{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.uni-day{min-height:180px;padding:9px;border:1px solid var(--line);border-radius:11px}.uni-day>strong,.uni-day>small,.uni-event strong,.uni-event small{display:block}.uni-day>strong{font-size:8px}.uni-day>small{font-size:6px;color:var(--muted);margin-bottom:8px}.uni-event{padding:7px;border-radius:8px;background:var(--accent-soft);margin-bottom:6px}.uni-event strong{font-size:7px}.uni-event small{font-size:6px;color:var(--muted)}.uni-event.personal{background:#edf8f4}.calendar-import-note{display:flex;gap:8px;margin-top:8px;padding:9px;border-radius:10px;background:var(--soft)}.calendar-import-note strong,.calendar-import-note small{font-size:7px}.calendar-import-note small{color:var(--muted)}.connection-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px;border-bottom:1px solid var(--line)}.connection-row strong,.connection-row small{display:block}.connection-row strong{font-size:8px}.connection-row small{font-size:7px;color:var(--muted)}.connection-row>b{font-size:7px;color:var(--muted)}.connection-row>b.connected{color:#2d9b78}@media(max-width:820px){.university-overview{grid-template-columns:1fr 1fr}.university-week{grid-template-columns:1fr}.uni-day{min-height:auto}}

/* v1 Alpha 9 — Sync, Offline & Continuity */
.continuity-v1a9{margin-bottom:16px}.continuity-grid{display:grid;grid-template-columns:1fr .8fr 1fr 1fr;gap:9px;align-items:center;margin:11px 0}.device-card{padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--soft)}.device-card.current{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 28%,var(--line))}.device-card span,.device-card strong,.device-card small,.device-card b{display:block}.device-card span{font-size:6px;color:var(--accent);font-weight:900}.device-card strong{font-size:11px;margin:5px 0}.device-card small{font-size:7px;color:var(--muted)}.device-card b{font-size:7px;color:#2d9b78;margin-top:7px}.device-glyph{height:22px;width:31px;border:2px solid var(--text);border-radius:4px;margin-bottom:8px;position:relative}.tablet-glyph{width:17px;height:23px}.phone-glyph{width:11px;height:22px;border-radius:4px}.desktop-glyph:after{content:"";position:absolute;width:12px;height:5px;border-bottom:2px solid var(--text);left:8px;bottom:-8px}.continuity-line{display:flex;align-items:center;gap:5px}.continuity-line i{height:1px;background:var(--line);flex:1}.continuity-line span{font-size:6px;color:var(--muted);white-space:nowrap}.sync-health{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px}.sync-health>div{padding:10px;border-radius:11px;background:var(--soft)}.sync-health span,.sync-health strong,.sync-health small{display:block}.sync-health span{font-size:6px;color:var(--muted);font-weight:900}.sync-health strong{font-size:14px;margin:4px 0}.sync-health small{font-size:6px;color:var(--muted)}.continuity-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.continuity-offline .continuity-status{color:#a46b16}.continuity-settings-v1a9{margin-bottom:15px}@media(max-width:820px){.continuity-grid{grid-template-columns:1fr 1fr}.continuity-line{display:none}.sync-health{grid-template-columns:1fr 1fr}}

/* v1 Alpha 10 — Feature Freeze */
.freeze-v1a10{margin-bottom:16px}.freeze-score{display:flex;align-items:center;gap:15px;padding:10px 0}.score-ring{width:66px;height:66px;border:7px solid var(--accent);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.score-ring strong{font-size:17px}.score-ring span{font-size:7px;color:var(--muted)}.freeze-score>div:last-child strong,.freeze-score>div:last-child small{display:block}.freeze-score>div:last-child strong{font-size:11px}.freeze-score>div:last-child small{font-size:7px;color:var(--muted);margin-top:4px}.freeze-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.freeze-check{display:flex;gap:8px;padding:9px;border-radius:10px;background:var(--soft)}.freeze-check i{font-style:normal;color:#2d9b78;font-weight:900}.freeze-check strong,.freeze-check small{display:block}.freeze-check strong{font-size:7px}.freeze-check small{font-size:6px;color:var(--muted);margin-top:3px}.freeze-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}@media(max-width:820px){.freeze-grid{grid-template-columns:1fr 1fr}}

/* v1 Beta 1 — Real-Use Validation */
.beta1-v1,.beta-record-v1{margin-bottom:16px}.beta-preflight-grid,.capture-safety-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0}.beta-check,.capture-safety-grid>div{display:flex;gap:8px;padding:10px;border-radius:11px;background:var(--soft)}.beta-check i{font-style:normal;font-weight:900;color:#2d9b78}.beta-check.warn i{color:#a46b16}.beta-check strong,.beta-check small,.capture-safety-grid span,.capture-safety-grid strong,.capture-safety-grid small{display:block}.beta-check strong,.capture-safety-grid strong{font-size:8px}.beta-check small,.capture-safety-grid small{font-size:6px;color:var(--muted);margin-top:3px}.capture-safety-grid{grid-template-columns:repeat(4,1fr)}.capture-safety-grid>div{display:block}.capture-safety-grid span{font-size:6px;color:var(--accent);font-weight:900}.capture-safety-grid strong{margin:5px 0}.beta-scenario{padding:12px;border-radius:12px;background:var(--accent-soft);margin-top:9px}.beta-scenario span,.beta-scenario strong,.beta-scenario small{display:block}.beta-scenario span{font-size:6px;color:var(--accent);font-weight:900}.beta-scenario strong{font-size:10px;margin:5px 0}.beta-scenario small{font-size:7px;color:var(--muted)}.beta-meter{height:5px;background:var(--line);border-radius:9px;margin:10px 0;overflow:hidden}.beta-meter i{display:block;height:100%;background:var(--accent);transition:width .1s}.beta-actions{display:flex;gap:7px;margin-top:8px;flex-wrap:wrap}.capture-warning{padding:10px;border-radius:10px;background:var(--accent-soft)}.capture-warning strong,.capture-warning small{display:block}.capture-warning strong{font-size:8px}.capture-warning small{font-size:7px;color:var(--muted);margin-top:4px}@media(max-width:820px){.beta-preflight-grid,.capture-safety-grid{grid-template-columns:1fr 1fr}}

/* v1 Beta 2 — Accounts & Production Sync */
.beta2-v1{margin-bottom:16px}.account-layout{display:grid;grid-template-columns:2fr 1fr;gap:8px;margin:10px 0}.account-profile,.account-sync-state{display:flex;align-items:center;gap:10px;padding:11px;border-radius:12px;background:var(--soft)}.account-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:white;font-weight:900}.account-profile span,.account-profile strong,.account-profile small,.account-sync-state span,.account-sync-state strong,.account-sync-state small{display:block}.account-profile span,.account-sync-state span{font-size:6px;color:var(--accent);font-weight:900}.account-profile strong,.account-sync-state strong{font-size:10px;margin:3px 0}.account-profile small,.account-sync-state small{font-size:7px;color:var(--muted)}.account-sync-state{display:block}.beta2-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.beta2-grid>div{padding:10px;border-radius:11px;background:var(--soft)}.beta2-grid span,.beta2-grid strong,.beta2-grid small{display:block}.beta2-grid span{font-size:6px;color:var(--accent);font-weight:900}.beta2-grid strong{font-size:9px;margin:5px 0}.beta2-grid small{font-size:6px;color:var(--muted)}.beta2-actions,.beta2-auth-buttons{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.beta2-field{display:block;margin:8px 0}.beta2-field span{display:block;font-size:7px;font-weight:800;margin-bottom:5px}.beta2-field input{width:100%;box-sizing:border-box;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--text)}@media(max-width:820px){.account-layout{grid-template-columns:1fr}.beta2-grid{grid-template-columns:1fr 1fr}}

/* v1 Beta 3 — Release Candidate Preparation */
.beta3-v1{margin-bottom:16px}.beta3-journey{display:flex;align-items:center;gap:7px;padding:12px;border-radius:13px;background:var(--accent-soft);margin:10px 0}.beta3-journey>div{flex:1}.beta3-journey i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--accent);color:#fff;font-style:normal;font-size:7px;font-weight:900;margin-bottom:6px}.beta3-journey strong,.beta3-journey small{display:block}.beta3-journey strong{font-size:8px}.beta3-journey small{font-size:6px;color:var(--muted);margin-top:2px}.beta3-journey b{color:var(--accent);font-size:10px}.beta3-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.beta3-check{display:flex;gap:8px;padding:9px;border-radius:10px;background:var(--soft)}.beta3-check i{font-style:normal;font-weight:900;color:#2d9b78}.beta3-check.pending i{color:#a46b16}.beta3-check strong,.beta3-check small{display:block}.beta3-check strong{font-size:7px}.beta3-check small{font-size:6px;color:var(--muted);margin-top:3px}.beta3-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.beta3-storage{padding:11px;border-radius:11px;background:var(--soft);margin:8px 0 12px}.beta3-storage span,.beta3-storage strong,.beta3-storage small{display:block}.beta3-storage span{font-size:6px;color:var(--accent);font-weight:900}.beta3-storage strong{font-size:11px;margin:5px 0}.beta3-storage small{font-size:7px;color:var(--muted)}.storage-bar{height:6px;border-radius:8px;background:var(--line);overflow:hidden;margin-top:8px}.storage-bar i{display:block;height:100%;width:0;background:var(--accent)}@media(max-width:820px){.beta3-grid{grid-template-columns:1fr 1fr}.beta3-journey{overflow-x:auto}.beta3-journey>div{min-width:78px}}

/* v1 RC1 — Deployment & Installation */
.rc1-v1{margin-bottom:16px}.rc1-flow{display:flex;align-items:center;gap:7px;padding:12px;border-radius:13px;background:var(--accent-soft);margin:10px 0}.rc1-flow>div{flex:1}.rc1-flow i{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:var(--accent);color:white;font-style:normal;font-size:7px;font-weight:900;margin-bottom:6px}.rc1-flow .pending i{background:var(--soft);color:var(--accent);border:1px solid var(--line)}.rc1-flow strong,.rc1-flow small{display:block}.rc1-flow strong{font-size:8px}.rc1-flow small{font-size:6px;color:var(--muted);margin-top:2px}.rc1-flow b{color:var(--accent)}.rc1-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.rc1-grid>div{padding:10px;border-radius:11px;background:var(--soft)}.rc1-grid span,.rc1-grid strong,.rc1-grid small{display:block}.rc1-grid span{font-size:6px;color:var(--accent);font-weight:900}.rc1-grid strong{font-size:9px;margin:5px 0}.rc1-grid small{font-size:6px;color:var(--muted)}.rc1-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}@media(max-width:820px){.rc1-grid{grid-template-columns:1fr 1fr}.rc1-flow{overflow-x:auto}.rc1-flow>div{min-width:75px}}

/* v1 RC2 — Production Binding & Device Validation */
.rc2-v1{margin-bottom:16px}.rc2-gates{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:10px 0}.rc2-gate{display:flex;gap:8px;padding:10px;border-radius:11px;background:var(--soft)}.rc2-gate i{font-style:normal;font-weight:900;color:#a46b16}.rc2-gate.pass i{color:#2d9b78}.rc2-gate strong,.rc2-gate small{display:block}.rc2-gate strong{font-size:8px}.rc2-gate small{font-size:6px;color:var(--muted);margin-top:3px}.rc2-device-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.rc2-device-grid>div{padding:12px;border-radius:12px;background:var(--accent-soft)}.rc2-device-grid span,.rc2-device-grid strong,.rc2-device-grid small{display:block}.rc2-device-grid span{font-size:6px;color:var(--accent);font-weight:900}.rc2-device-grid strong{font-size:10px;margin:5px 0}.rc2-device-grid small{font-size:7px;color:var(--muted);margin-bottom:8px}.rc2-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}@media(max-width:820px){.rc2-gates{grid-template-columns:1fr 1fr}.rc2-device-grid{grid-template-columns:1fr}}

.live-backend-v1{margin-bottom:14px}
.live-backend-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:9px 0}
.live-backend-grid>div{padding:10px;border-radius:10px;background:var(--soft)}
.live-backend-grid span,.live-backend-grid strong,.live-backend-grid small{display:block}
.live-backend-grid span{font-size:6px;color:var(--accent);font-weight:900}
.live-backend-grid strong{font-size:9px;margin:5px 0}
.live-backend-grid small{font-size:6px;color:var(--muted)}
.live-backend-actions{display:flex;gap:7px;flex-wrap:wrap}
.live-backend-message{margin-top:8px;padding:9px;border-radius:9px;background:var(--accent-soft);font-size:7px;color:var(--muted)}
.live-backend-message[data-kind="error"]{background:#fff3f0;color:#8c3a32}
@media(max-width:820px){.live-backend-grid{grid-template-columns:1fr}}
