.legis-page{width:min(1420px,100%);padding-top:28px}.legis{display:flex;flex-direction:column;gap:20px;min-width:0}.legis-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;overflow:hidden;margin-bottom:18px;padding:28px 30px 24px;border:1px solid color-mix(in srgb,var(--accent) 28%,var(--border));border-radius:22px;background:radial-gradient(circle at 88% 5%,color-mix(in srgb,var(--accent) 27%,transparent),transparent 34%),linear-gradient(135deg,var(--surface),color-mix(in srgb,var(--surface) 88%,var(--accent)));box-shadow:0 22px 60px #0002}.legis-hero:after{position:absolute;right:-68px;bottom:-145px;width:270px;height:270px;border:1px solid #ffffff0b;border-radius:50%;content:"";box-shadow:0 0 0 48px #ffffff05,0 0 0 96px #ffffff03;pointer-events:none}.legis-hero-copy{position:relative;z-index:1;display:flex;align-items:center;gap:18px}.legis-hero-mark{display:grid;width:56px;height:56px;flex:0 0 56px;place-items:center;border:1px solid #ffffff12;border-radius:17px;background:var(--accent);color:#fff;box-shadow:0 15px 34px #6f52ff45}.legis-hero-mark svg{width:25px;height:25px}.legis-hero h2{margin:5px 0 6px;font-size:clamp(1.65rem,3vw,2.25rem);line-height:1.08;letter-spacing:-.045em}.legis-hero-copy>div>p:last-child{max-width:620px;color:var(--muted);font-size:.9rem;line-height:1.55}.legis-hero-action{position:relative;z-index:1;align-self:center;min-height:44px}.legis-hero-metrics{position:relative;z-index:1;display:flex;grid-column:1/-1;gap:0;padding-top:20px;border-top:1px solid color-mix(in srgb,var(--border) 75%,transparent)}.legis-hero-metrics>div{display:grid;min-width:165px;gap:3px;padding:0 24px;border-left:1px solid var(--border)}.legis-hero-metrics>div:first-child{padding-left:0;border-left:0}.legis-hero-metrics strong{font-size:1.32rem;letter-spacing:-.035em}.legis-hero-metrics span{color:var(--muted);font-size:.78rem}.legis-hero-metrics .attention strong{color:var(--orange)}.legis-workspace{display:grid;grid-template-columns:246px minmax(0,1fr);align-items:start;gap:18px}.legis-tabs{position:sticky;top:calc(var(--topbar) + 18px);display:grid;gap:4px;padding:10px;border:1px solid var(--border);border-radius:17px;background:var(--surface)}.legis-tabs-heading{display:grid;gap:2px;padding:8px 10px 12px}.legis-tabs-heading span{font-size:.75rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.legis-tabs-heading small{color:var(--muted-2);font-size:.75rem}.legis-tabs button{position:relative;display:grid;min-height:56px;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:9px;padding:7px 9px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--muted);text-align:left;transition:.17s}.legis-tabs button:hover{background:var(--surface-2);color:var(--text)}.legis-tabs button.active{border-color:color-mix(in srgb,var(--accent) 27%,var(--border));background:var(--accent-soft);color:var(--text)}.legis-tabs button.active:before{position:absolute;top:12px;bottom:12px;left:-11px;width:3px;border-radius:0 3px 3px 0;background:var(--accent-2);content:""}.legis-tab-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:9px;background:var(--surface-2);color:var(--muted)}.legis-tabs button.active .legis-tab-icon{background:color-mix(in srgb,var(--accent) 20%,var(--surface));color:var(--accent-2)}.legis-tab-icon svg{width:16px;height:16px}.legis-tab-copy{display:grid;min-width:0;gap:2px}.legis-tab-copy strong{overflow:hidden;text-overflow:ellipsis;font-size:.875rem;white-space:nowrap}.legis-tab-copy small{overflow:hidden;color:var(--muted-2);font-size:.75rem;text-overflow:ellipsis;white-space:nowrap}.legis-tabs .pill{display:grid;min-width:22px;height:22px;padding:0 6px;place-items:center;border-radius:999px;background:var(--orange);color:#18100a;font-size:.75rem;font-weight:850}.legis-main{min-width:0;padding:24px;border:1px solid var(--border);border-radius:19px;background:var(--surface)}.legis-content-heading{display:flex;align-items:center;gap:13px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--border)}.legis-content-heading>span{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border-radius:12px;background:var(--accent-soft);color:var(--accent-2)}.legis-content-heading>span svg{width:19px;height:19px}.legis-content-heading h2{margin:3px 0 2px;font-size:1.25rem;letter-spacing:-.025em}.legis-content-heading>div>p:last-child{color:var(--muted);font-size:.8rem}.legis-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:10px}.legis-stat{min-height:96px;padding:17px;border:1px solid var(--border);border-radius:14px;background:linear-gradient(145deg,var(--surface-2),color-mix(in srgb,var(--surface-2) 76%,transparent))}.legis-stat strong{display:block;margin-bottom:5px;font-size:1.45rem;line-height:1.1;letter-spacing:-.04em}.legis-stat span{display:block;color:var(--muted);font-size:.78rem;line-height:1.35}.legis-stat .legis-progress{margin-top:12px}.legis-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:11px}.legis-card{display:flex;min-height:132px;align-items:flex-start;justify-content:flex-end;flex-direction:column;gap:7px;padding:17px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);color:inherit;text-align:left;transition:.18s}.legis-card:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--border));transform:translateY(-2px);box-shadow:0 15px 34px #0002}.legis-card strong{font-size:.9rem;line-height:1.42}.legis-card small{color:var(--muted);font-size:.78rem;line-height:1.45}.legis-card .legis-meta{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:.75rem}.legis-card .legis-progress{width:100%;margin-top:5px}.legis-progress{height:4px;overflow:hidden;border-radius:999px;background:var(--surface-3)}.legis-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),var(--accent-2))}.legis-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}.legis-toolbar input[type=search],.legis-toolbar input[type=text],.legis-toolbar select{height:40px;padding:0 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-size:.875rem;outline:0}.legis-toolbar input[type=search]{min-width:240px;flex:1}.legis-toolbar input:focus,.legis-toolbar select:focus{border-color:var(--accent)}.legis-chip{display:inline-flex;min-height:34px;align-items:center;justify-content:center;gap:6px;padding:0 11px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--muted);font-size:.8rem;font-weight:700;line-height:1;text-decoration:none;transition:.15s}.legis-chip:hover{border-color:var(--muted-2);color:var(--text)}.legis-chip.active{border-color:color-mix(in srgb,var(--accent) 42%,var(--border));background:var(--accent-soft);color:var(--accent-2)}.legis-chip:disabled{cursor:not-allowed;opacity:.4}.legis-chip svg{width:14px;height:14px}.legis-context-hint{margin-left:auto;padding:0 5px;color:var(--muted-2);font-size:.7rem}.legis-color-dot{display:block;width:12px;height:12px;border:1px solid #ffffff33;border-radius:50%;box-shadow:0 0 0 2px #00000012}.legis-color-dot.amarelo{background:#ffd63d}.legis-color-dot.verde{background:#4ccd7a}.legis-color-dot.azul{background:#55a3ff}.legis-color-dot.rosa{background:#ff7ab6}.legis-color-dot.laranja{background:#ff9a3c}.legis-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:20px;border:1px solid var(--border);border-radius:15px;background:var(--surface-2)}.legis-header h2{margin:0 0 7px;font-size:1.35rem;letter-spacing:-.03em}.legis-header p{max-width:70ch;color:var(--muted);font-size:.82rem;line-height:1.55}.legis-header .legis-actions{display:flex;gap:7px;flex-wrap:wrap}.legis-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:var(--muted);font-size:.78rem}.legis-breadcrumb button{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:7px;background:none;color:var(--muted)}.legis-breadcrumb button:hover{background:var(--surface-2);color:var(--text)}.legis-articles{display:flex;flex-direction:column;gap:12px}.legis-article{position:relative;display:flex;flex-direction:column;gap:14px;padding:22px 24px;border:1px solid var(--border);border-radius:16px;background:color-mix(in srgb,var(--surface) 93%,var(--bg));box-shadow:0 10px 28px #00000012}.legis-article:before{position:absolute;top:20px;bottom:20px;left:0;width:3px;border-radius:0 3px 3px 0;background:transparent;content:""}.legis-article.read:before{background:var(--green)}.legis-article.changed{border-color:color-mix(in srgb,var(--orange) 48%,var(--border))}.legis-article.changed:before{background:var(--orange)}.legis-article.revoked{border-style:dashed}.legis-article.revoked .legis-body{opacity:.58}.legis-article-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.legis-article-top strong{display:block;margin-top:4px;font-size:.93rem}.legis-hierarchy{color:var(--muted-2);font-size:.75rem;font-weight:750;letter-spacing:.055em;line-height:1.45;text-transform:uppercase}.legis-badges{display:flex;flex-wrap:wrap;gap:5px}.legis-badge{display:inline-flex;min-height:24px;align-items:center;padding:0 8px;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-size:.72rem;font-weight:750}.legis-badge.warn{border-color:color-mix(in srgb,var(--orange) 45%,var(--border));background:var(--orange-soft);color:var(--orange)}.legis-badge.danger{border-color:color-mix(in srgb,var(--red) 45%,var(--border));background:var(--red-soft);color:var(--red)}.legis-badge.ok{border-color:color-mix(in srgb,var(--green) 45%,var(--border));background:var(--green-soft);color:var(--green)}.legis-body{white-space:pre-wrap;font-family:Georgia,Times New Roman,serif;font-size:1rem;line-height:1.78}.legis-body mark{background:transparent;color:inherit}.legis-body .hl{border-radius:3px;padding:1px 0;cursor:pointer}.legis-body .hl-amarelo{background:#ffd63d61}.legis-body .hl-verde{background:#4ccd7a52}.legis-body .hl-azul{background:#55a3ff4d}.legis-body .hl-rosa{background:#ff7ab64d}.legis-body .hl-laranja{background:#ff9a3c52}.legis-body .hl.stale{outline:1px dashed var(--orange)}.legis-article-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding-top:2px}.legis-article-actions button{display:inline-flex;min-height:34px;align-items:center;gap:6px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);color:var(--muted);font-size:.78rem;font-weight:700}.legis-article-actions button:hover{color:var(--text)}.legis-article-actions button.on{border-color:color-mix(in srgb,var(--accent) 40%,var(--border));background:var(--accent-soft);color:var(--accent-2)}.legis-article-actions svg{width:14px;height:14px}.legis-note{padding:12px 14px;border:1px solid var(--border);border-radius:11px;background:var(--surface-2)}.legis-note textarea{width:100%;min-height:84px;resize:vertical;border:0;background:transparent;color:var(--text);font-size:.875rem;line-height:1.55;outline:0}.legis-note small{display:block;margin-top:5px;color:var(--muted-2);font-size:.75rem}.legis-selection{position:fixed;z-index:60;display:flex;gap:5px;padding:7px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.legis-selection button{width:25px;height:25px;border:1px solid #ffffff22;border-radius:7px}.legis-selection button.amarelo{background:#ffd63d}.legis-selection button.verde{background:#4ccd7a}.legis-selection button.azul{background:#55a3ff}.legis-selection button.rosa{background:#ff7ab6}.legis-selection button.laranja{background:#ff9a3c}.legis-diff{display:grid;gap:10px}.legis-diff-block{padding:16px;border:1px solid var(--border);border-radius:11px;background:var(--surface-2);font-family:Georgia,Times New Roman,serif;font-size:.92rem;line-height:1.72;white-space:pre-wrap}.legis-diff ins{border-radius:3px;background:var(--green-soft);text-decoration:none}.legis-diff del{border-radius:3px;background:var(--red-soft)}.legis-superseded{max-height:340px;overflow-y:auto;opacity:.62;text-decoration:line-through solid color-mix(in srgb,currentColor 35%,transparent)}.legis-list{display:flex;flex-direction:column;gap:8px}.legis-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 15px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}button.legis-row{width:100%;color:inherit;font:inherit;text-align:left;white-space:normal}button.legis-row:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}.legis-row-main{display:flex;min-width:0;flex:1;flex-direction:column;gap:5px}.legis-row strong{font-size:.875rem;line-height:1.45}.legis-row small{display:block;color:var(--muted);font-size:.78rem;line-height:1.55;overflow-wrap:anywhere}.legis-row small mark{border-radius:2px;background:#ffd63d55;color:inherit;padding:0 2px}.legis-row.done strong{text-decoration:line-through;opacity:.58}.legis-empty{padding:52px 20px;border:1px dashed var(--border);border-radius:14px;background:color-mix(in srgb,var(--surface-2) 55%,transparent);color:var(--muted);font-size:.875rem;text-align:center}.legis-pager{display:flex;align-items:center;justify-content:center;gap:9px;padding:8px 0 4px;color:var(--muted);font-size:.78rem}.legis-question{display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}.legis-question .legis-options{display:flex;flex-direction:column;gap:7px}.legis-question .legis-options button{padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font-size:.875rem;text-align:left}.legis-question .legis-options button:hover{border-color:var(--muted-2)}.legis-question .legis-options button.right{border-color:var(--green);background:var(--green-soft)}.legis-question .legis-options button.wrong{border-color:var(--red);background:var(--red-soft)}@media(max-width:1050px){.legis-workspace{grid-template-columns:1fr}.legis-tabs{position:static;display:flex;overflow-x:auto;padding:8px}.legis-tabs-heading{display:none}.legis-tabs button{min-width:max-content;grid-template-columns:32px auto auto}.legis-tab-copy small{display:none}.legis-tabs button.active:before{inset:auto 14px -9px;height:3px;width:auto;border-radius:3px 3px 0 0}}@media(max-width:720px){.legis-page{padding-top:18px}.legis-hero{grid-template-columns:1fr;padding:22px}.legis-hero-action{width:100%}.legis-hero-copy{align-items:flex-start}.legis-hero-mark{width:48px;height:48px;flex-basis:48px}.legis-hero h2{font-size:1.55rem}.legis-hero-metrics{overflow-x:auto}.legis-hero-metrics>div{min-width:145px;padding:0 16px}.legis-main{padding:18px}.legis-content-heading{margin-bottom:18px}.legis-toolbar input[type=search]{min-width:100%}.legis-header{padding:17px}.legis-header .legis-actions{width:100%}.legis-article{padding:18px}.legis-body{font-size:.96rem}.legis-grid{grid-template-columns:1fr}}@media(max-width:480px){.legis-hero-copy{display:grid}.legis-hero-metrics>div{min-width:132px}.legis-main{margin:0 -4px;padding:15px;border-radius:16px}.legis-content-heading>span{display:none}.legis-article{padding:16px}.legis-row{align-items:stretch;flex-direction:column}.legis-pager{flex-wrap:wrap}}:root{color-scheme:dark;--bg:#0d0e12;--surface:#14151b;--surface-2:#1a1b23;--surface-3:#21232d;--text:#f3f2f7;--muted:#9898a8;--muted-2:#6f7080;--border:#292b36;--accent:#8068ff;--accent-2:#9d8cff;--accent-soft:#8068ff1f;--green:#48b989;--green-soft:#48b9891b;--orange:#ef9f5b;--orange-soft:#ef9f5b1a;--red:#f27070;--red-soft:#f270701a;--blue:#59a9ef;--sidebar:270px;--topbar:68px;--radius:16px;--shadow:0 24px 70px #0006;font-family:Inter,Segoe UI,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}:root[data-theme=light]{color-scheme:light;--bg:#f6f6f9;--surface:#fff;--surface-2:#f0f0f5;--surface-3:#e8e8ef;--text:#1c1d24;--muted:#686978;--muted-2:#9394a0;--border:#e2e2e9;--accent:#684ee9;--accent-2:#5740d0;--accent-soft:#684ee916;--green:#238a62;--green-soft:#238a6215;--orange:#bc6b29;--orange-soft:#bc6b2915;--red:#cc4d4d;--red-soft:#cc4d4d12;--blue:#287bc4;--shadow:0 24px 60px #32334a20}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{min-height:100vh}button,input,textarea,select{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}svg{width:20px;height:20px;stroke-width:1.8}h1,h2,h3,h4,p{margin:0}button{border:0;cursor:pointer}.muted{color:var(--muted)}.eyebrow{color:var(--accent-2);font-size:.68rem;font-weight:800;letter-spacing:.14em}.hint,small{color:var(--muted);font-size:.76rem}.button{display:inline-flex;min-height:40px;align-items:center;justify-content:center;gap:8px;padding:0 15px;border:1px solid transparent;border-radius:11px;background:transparent;font-size:.84rem;font-weight:700;transition:.18s}.button svg{width:17px;height:17px}.button:hover{transform:translateY(-1px)}.button:disabled{cursor:not-allowed;opacity:.5;transform:none}.button.primary{background:var(--accent);color:#fff;box-shadow:0 10px 26px #6f52ff3b}.button.primary:hover{background:var(--accent-2)}.button.soft{background:var(--surface-2);border-color:var(--border)}.button.soft:hover,.button.ghost:hover{background:var(--surface-3)}.button.ghost{border-color:var(--border)}.button.danger{background:var(--red);color:#fff}.button.large{min-height:48px;padding:0 20px;border-radius:13px}.button.wide{width:100%}.text-button{padding:4px;background:none;color:var(--accent-2);font-size:.8rem;font-weight:700}.icon-button{display:grid;width:38px;height:38px;place-items:center;border-radius:10px;background:transparent}.icon-button:hover{background:var(--surface-2)}.icon-button svg{width:18px;height:18px}.icon-button.tiny{width:28px;height:28px}.icon-button.tiny svg{width:15px}.danger-icon{color:var(--red)}kbd{padding:2px 6px;border:1px solid var(--border);border-radius:6px;background:var(--surface-2);color:var(--muted);font:600 .68rem ui-monospace,monospace}.auth-page{display:grid;min-height:100vh;grid-template-columns:minmax(420px,44%) 1fr}.auth-panel{display:flex;max-width:510px;width:100%;justify-content:center;flex-direction:column;padding:9vw}.brand-mark{display:grid;width:54px;height:54px;margin-bottom:38px;place-items:center;border-radius:17px;background:var(--accent);color:#fff;box-shadow:0 16px 34px #6f52ff45}.brand-mark.small{width:34px;height:34px;margin:0;border-radius:10px;box-shadow:none}.brand-mark.small svg{width:17px}.auth-panel h1{margin:10px 0 18px;font-size:clamp(2.4rem,4vw,4rem);line-height:1.02;letter-spacing:-.055em}.auth-copy{max-width:420px;margin-bottom:38px;color:var(--muted);line-height:1.65}.auth-panel form{display:grid;gap:10px}.auth-panel label,.form-stack label{display:grid;gap:8px;color:var(--muted);font-size:.79rem;font-weight:700}.auth-panel input,.form-stack input,.form-stack textarea,.form-stack select{width:100%;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--text)}.auth-panel input,.form-stack input,.form-stack select{height:46px;padding:0 13px}.form-stack textarea{padding:12px 13px;resize:vertical;line-height:1.5}.auth-panel .text-button{margin:16px auto}.form-error{padding:10px 12px;border:1px solid #f2707040;border-radius:10px;background:var(--red-soft);color:var(--red);font-size:.8rem}.auth-art{position:relative;display:grid;overflow:hidden;margin:14px;border-radius:28px;background:radial-gradient(circle at 70% 20%,#8970ff44,transparent 36%),linear-gradient(145deg,#17151f,#101116);place-items:center}.auth-art:before{position:absolute;width:480px;height:480px;border:1px solid #ffffff0b;border-radius:50%;content:"";box-shadow:0 0 0 80px #ffffff05,0 0 0 160px #ffffff03}.orb{position:absolute;border-radius:50%;filter:blur(2px)}.orb.one{top:14%;right:20%;width:110px;height:110px;background:#8a71ff55}.orb.two{bottom:16%;left:20%;width:70px;height:70px;background:#48b98944}.quote-card{position:relative;width:min(70%,420px);padding:35px;border:1px solid #ffffff14;border-radius:24px;background:#ffffff0a;box-shadow:var(--shadow);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.quote-card svg{margin-bottom:60px;color:#a997ff}.quote-card p{font-size:2rem;font-weight:700;line-height:1.2;letter-spacing:-.035em}.app-shell{min-height:100vh;padding-left:var(--sidebar);transition:padding .2s}.app-shell.sidebar-is-collapsed{padding-left:78px}.sidebar{position:fixed;inset:0 auto 0 0;z-index:50;display:flex;width:var(--sidebar);flex-direction:column;border-right:1px solid var(--border);background:var(--surface);transition:width .2s,transform .2s}.sidebar.collapsed{width:78px}.sidebar-header{display:flex;height:var(--topbar);align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:11px}.brand strong{font-size:.98rem;letter-spacing:-.02em}.sidebar.collapsed .collapse{margin:auto}.main-nav{display:grid;gap:5px;padding:16px 12px}.main-nav button,.sidebar-footer button{display:flex;height:42px;align-items:center;gap:12px;padding:0 13px;border-radius:10px;background:none;color:var(--muted);font-size:.84rem;font-weight:650;white-space:nowrap}.main-nav button:hover,.sidebar-footer button:hover{background:var(--surface-2);color:var(--text)}.main-nav button.active{background:var(--accent-soft);color:var(--accent-2)}.sidebar.collapsed .main-nav button,.sidebar.collapsed .sidebar-footer button{justify-content:center;padding:0}.sidebar.collapsed .main-nav span,.sidebar.collapsed .sidebar-footer span{display:none}.library-tree{flex:1;overflow:auto;padding:10px 12px}.tree-heading{display:flex;height:32px;align-items:center;justify-content:space-between;padding-left:8px;color:var(--muted-2);font-size:.64rem;font-weight:800;letter-spacing:.12em}.tree-empty{padding:14px 8px;color:var(--muted-2);font-size:.75rem}.tree-folder,.tree-subject,.tree-lessons button{display:flex;width:100%;align-items:center;border-radius:8px;background:none;color:var(--muted);text-align:left}.tree-folder{height:36px;gap:7px;padding:0 6px;font-size:.79rem;font-weight:700}.tree-folder svg{width:15px}.tree-folder svg:first-child{width:13px}.tree-folder span,.tree-subject span,.tree-lessons span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-children{padding-left:18px}.tree-subject{height:34px;gap:4px;padding:0 8px;font-size:.76rem}.tree-subject svg{width:12px}.tree-subject em,.tree-lessons em{padding:1px 6px;border-radius:10px;background:var(--surface-2);color:var(--muted-2);font-size:.62rem;font-style:normal}.tree-lessons{padding-left:15px}.tree-lessons button{min-height:31px;padding:5px 8px;font-size:.72rem}.tree-lessons button.active{background:var(--accent-soft);color:var(--accent-2)}.sidebar-footer{display:grid;gap:4px;padding:12px;border-top:1px solid var(--border)}.topbar{position:sticky;top:0;z-index:30;display:flex;height:var(--topbar);align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--bg) 82%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.topbar h1{font-size:1rem}.search-trigger{display:flex;height:36px;align-items:center;gap:8px;padding:0 9px 0 11px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--muted);font-size:.77rem}.search-trigger:hover{border-color:var(--muted-2)}.search-trigger svg{width:16px}.search-trigger kbd{margin-left:18px}.mobile-menu{display:none}.main-area main{min-height:calc(100vh - var(--topbar))}.page-content{width:min(1240px,100%);margin:0 auto;padding:42px 34px 70px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:32px}.page-heading h2{margin:7px 0 8px;font-size:2.1rem;letter-spacing:-.04em}.page-heading p:not(.eyebrow){color:var(--muted)}.hero{position:relative;display:flex;min-height:285px;align-items:center;justify-content:space-between;overflow:hidden;margin-bottom:18px;padding:42px 46px;border:1px solid #8b77ff35;border-radius:24px;background:radial-gradient(circle at 82% 40%,#8068ff2a,transparent 30%),linear-gradient(130deg,var(--surface),color-mix(in srgb,var(--surface) 80%,#8068ff));box-shadow:0 24px 70px #0002}.hero:after{position:absolute;right:-90px;width:350px;height:350px;border:1px solid #ffffff0a;border-radius:50%;content:"";box-shadow:0 0 0 55px #ffffff06,0 0 0 110px #ffffff03}.hero>div:first-child{position:relative;z-index:1}.hero h2{max-width:670px;margin:10px 0;font-size:clamp(2rem,4vw,3.35rem);line-height:1.04;letter-spacing:-.055em}.hero>div>p:not(.eyebrow){max-width:590px;color:var(--muted);line-height:1.55}.hero-actions{display:flex;gap:10px;margin-top:28px}.focus-ring{position:relative;z-index:2;display:grid;width:170px;flex:0 0 170px;place-items:center;text-align:center}.focus-ring svg{position:absolute;width:150px;height:150px;transform:rotate(-90deg)}.focus-ring circle{fill:none;stroke:var(--border);stroke-width:7}.focus-ring circle.progress{stroke:var(--accent-2);stroke-dasharray:314;stroke-dashoffset:220;stroke-linecap:round;transition:1s}.focus-ring strong{font-size:2.2rem}.focus-ring span{margin-top:45px;color:var(--muted);font-size:.7rem}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.metric-grid article{display:grid;min-height:102px;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.metric-icon{display:grid;width:46px;height:46px;place-items:center;border-radius:13px}.metric-icon.purple{background:var(--accent-soft);color:var(--accent-2)}.metric-icon.green{background:var(--green-soft);color:var(--green)}.metric-icon.orange{background:var(--orange-soft);color:var(--orange)}.metric-icon.blue{background:#59a9ef1b;color:var(--blue)}.metric-grid article>div{display:grid}.metric-grid strong{font-size:1.55rem}.metric-grid article>div span{color:var(--muted);font-size:.75rem}.metric-grid article>small{align-self:end}.dashboard-columns{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;margin-bottom:18px}.panel{overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.panel>header{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--border)}.panel h3{margin-top:5px;font-size:1rem}.continue-list{display:grid}.continue-list button{display:flex;min-height:72px;align-items:center;gap:13px;padding:12px 20px;border-bottom:1px solid var(--border);background:none;text-align:left}.continue-list button:last-child{border:0}.continue-list button:hover{background:var(--surface-2)}.continue-list button>span:nth-child(2){display:grid;min-width:0;flex:1;gap:4px}.continue-list button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.84rem}.continue-list button small{color:var(--muted)}.continue-list button>svg{color:var(--muted-2)}.lesson-glyph{display:grid;width:38px;height:38px;place-items:center;border-radius:10px;background:var(--accent-soft);color:var(--accent-2)}.lesson-glyph svg{width:17px}.small-chart{height:250px;padding:18px 14px 4px}.activity-panel{margin-top:0}.activity-chart{height:260px;padding:18px 18px 8px}.panel-empty{padding:42px;text-align:center;color:var(--muted)}.recharts-text{fill:var(--muted);font-size:.65rem}.recharts-default-tooltip{border-color:var(--border)!important;border-radius:10px!important;background:var(--surface)!important}.empty-dashboard{display:flex;max-width:670px;align-items:center;flex-direction:column;margin:50px auto;text-align:center}.empty-illustration{position:relative;display:grid;width:170px;height:150px;margin-bottom:25px;place-items:center}.empty-illustration>div{display:grid;width:92px;height:92px;place-items:center;border:1px solid #8068ff45;border-radius:28px;background:var(--accent-soft);color:var(--accent-2);transform:rotate(-6deg);box-shadow:0 20px 60px #8068ff28}.empty-illustration svg{width:38px;height:38px}.empty-illustration .dot{position:absolute;border-radius:50%}.empty-illustration .a{top:12px;right:18px;width:12px;height:12px;background:var(--orange)}.empty-illustration .b{bottom:14px;left:20px;width:9px;height:9px;background:var(--green)}.empty-illustration .c{top:45px;left:2px;width:6px;height:6px;background:var(--accent)}.empty-dashboard h2{margin:8px 0 12px;font-size:2rem;letter-spacing:-.04em}.empty-dashboard>p:not(.eyebrow){max-width:490px;margin-bottom:23px;color:var(--muted);line-height:1.55}.empty-dashboard ol{display:flex;gap:14px;margin:40px 0 0;padding:0;list-style:none}.empty-dashboard li{display:flex;width:170px;align-items:center;gap:9px;color:var(--muted);font-size:.72rem;text-align:left}.empty-dashboard li span{display:grid;width:28px;height:28px;flex:0 0 28px;place-items:center;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--text);font-weight:800}.folder-tabs{display:flex;gap:8px;overflow:auto;margin-bottom:28px;padding-bottom:4px}.folder-tabs button{display:flex;height:42px;align-items:center;gap:8px;padding:0 13px;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--muted);white-space:nowrap}.folder-tabs button svg{width:16px}.folder-tabs button span{padding:2px 6px;border-radius:9px;background:var(--surface-2);font-size:.66rem}.folder-tabs button.active{border-color:#8068ff55;background:var(--accent-soft);color:var(--accent-2)}.section-toolbar,.content-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.section-toolbar>div,.content-toolbar>div{display:flex;align-items:center;gap:7px}.section-toolbar>div:first-child,.content-toolbar>div:first-child{display:block}.section-toolbar h3,.content-toolbar h3{font-size:1.18rem}.section-toolbar span,.content-toolbar p{margin-top:5px;color:var(--muted);font-size:.76rem}.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.subject-card{padding:20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);transition:.2s}.subject-card:hover{border-color:color-mix(in srgb,var(--border) 50%,var(--accent));transform:translateY(-2px)}.subject-card>header{display:flex;justify-content:space-between}.subject-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:var(--accent-soft);color:var(--accent-2)}.subject-icon svg{width:18px}.card-menu{display:flex}.card-menu .icon-button{width:32px;height:32px}.subject-card h3{margin:18px 0 6px}.subject-card>p{color:var(--muted);font-size:.75rem}.lesson-links{display:grid;margin:18px -8px 12px}.lesson-links button{display:flex;min-height:34px;align-items:center;justify-content:space-between;padding:5px 8px;border-radius:8px;background:none;text-align:left}.lesson-links button:hover{background:var(--surface-2)}.lesson-links span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem}.lesson-links em{flex:0 0 auto;color:var(--muted-2);font-size:.64rem;font-style:normal}.add-lesson{display:flex;width:100%;height:38px;align-items:center;justify-content:center;gap:7px;border:1px dashed var(--border);border-radius:9px;background:none;color:var(--muted);font-size:.74rem}.add-lesson:hover{border-color:var(--accent);color:var(--accent-2)}.add-lesson svg{width:15px}.inline-empty{display:flex;min-height:330px;align-items:center;justify-content:center;flex-direction:column;border:1px dashed var(--border);border-radius:var(--radius);background:var(--surface);text-align:center}.inline-empty>svg{width:34px;height:34px;margin-bottom:16px;color:var(--accent-2)}.inline-empty h3{margin-bottom:7px}.inline-empty p{margin-bottom:20px;color:var(--muted);font-size:.82rem}.inline-empty>div{display:flex;gap:8px}.notion-library{max-width:1320px}.library-breadcrumbs{display:flex;min-height:28px;align-items:center;gap:5px;margin-bottom:17px;color:var(--muted);font-size:.73rem}.library-breadcrumbs button{padding:4px 6px;border-radius:6px;background:none;color:var(--muted)}.library-breadcrumbs button:hover{background:var(--surface-2);color:var(--text)}.library-breadcrumbs svg{width:12px;height:12px}.library-breadcrumbs span{padding:4px 6px;color:var(--text)}.library-heading{margin-bottom:28px}.library-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.library-level-card,.library-add-card{min-height:245px;border:1px solid var(--border);border-radius:18px;background:var(--surface);transition:border-color .18s,transform .18s,box-shadow .18s}.library-level-card{display:flex;overflow:hidden;flex-direction:column;cursor:pointer}.library-level-card:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--border));transform:translateY(-3px);box-shadow:0 18px 45px #0003}.library-level-card>header{display:flex;align-items:center;justify-content:space-between;padding:19px 19px 0}.library-level-card>header>div{display:flex}.library-level-card .icon-button{width:32px;height:32px}.library-level-card .icon-button svg{width:15px}.level-card-icon{display:grid;width:52px;height:52px;place-items:center;border-radius:15px;background:var(--accent-soft);color:var(--accent-2)}.level-card-icon svg{width:23px;height:23px}.folder-card .level-card-icon{background:#59a9ef18;color:var(--blue)}.level-card-body{display:flex;flex:1;justify-content:flex-end;flex-direction:column;padding:24px 20px 19px}.level-card-body h3{overflow:hidden;text-overflow:ellipsis;font-size:1.18rem;letter-spacing:-.025em;white-space:nowrap}.level-card-body p{margin-top:7px;color:var(--muted);font-size:.76rem}.library-level-card>footer{display:flex;min-height:54px;align-items:center;gap:14px;padding:10px 18px;border-top:1px solid var(--border);background:color-mix(in srgb,var(--surface-2) 40%,transparent);color:var(--muted);font-size:.68rem}.library-level-card>footer span{display:flex;align-items:center;gap:5px}.library-level-card>footer span svg{width:13px;height:13px}.library-level-card>footer>svg{width:16px;margin-left:auto;color:var(--muted-2)}.library-add-card{display:flex;align-items:center;justify-content:center;flex-direction:column;border-style:dashed;background:transparent;color:var(--muted)}.library-add-card:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-2)}.library-add-card>svg{width:25px;height:25px;margin-bottom:13px}.library-add-card strong{font-size:.84rem}.library-add-card span{margin-top:6px;font-size:.69rem}.notion-lessons{overflow:hidden;border:1px solid var(--border);border-radius:15px;background:var(--surface)}.lesson-table-head,.notion-lesson-row{display:grid;grid-template-columns:minmax(260px,2fr) minmax(160px,1.2fr) minmax(130px,.85fr) minmax(150px,.95fr) 70px;align-items:center}.lesson-table-head{min-height:45px;padding:0 15px;border-bottom:1px solid var(--border);background:var(--surface-2);color:var(--muted);font-size:.67rem;font-weight:750;letter-spacing:.02em}.lesson-table-head span+span{border-left:1px solid var(--border);padding-left:14px}.lesson-table-body{display:grid}.notion-lesson-row{min-height:58px;padding:0 15px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .12s}.notion-lesson-row:last-child{border-bottom:0}.notion-lesson-row:hover{background:var(--surface-2)}.notion-lesson-row>div:not(:first-child),.notion-lesson-row>time,.notion-lesson-row>.lesson-card-count{height:100%;display:flex;align-items:center;border-left:1px solid var(--border);padding-left:14px}.lesson-title-cell{display:flex;min-width:0;align-items:center;gap:10px;padding-right:14px}.lesson-title-cell svg{width:17px;flex:0 0 17px;color:var(--muted)}.lesson-title-cell strong{overflow:hidden;text-overflow:ellipsis;font-size:.78rem;white-space:nowrap}.lesson-tags-cell{flex-wrap:wrap;gap:4px}.lesson-tags-cell span{max-width:100px;overflow:hidden;padding:3px 6px;border-radius:7px;background:var(--accent-soft);color:var(--accent-2);font-size:.59rem;text-overflow:ellipsis;white-space:nowrap}.lesson-tags-cell em{color:var(--muted-2);font-style:normal}.notion-lesson-row time,.lesson-card-count{color:var(--muted);font-size:.72rem}.notion-lesson-row time.overdue{color:var(--red)}.lesson-card-count{justify-content:center;padding-left:0!important}.notion-new-row{display:flex;width:100%;height:44px;align-items:center;gap:8px;padding:0 18px;border-top:1px solid var(--border);background:none;color:var(--muted);font-size:.72rem;text-align:left}.notion-new-row:hover{background:var(--surface-2);color:var(--text)}.notion-new-row svg{width:14px}.inline-empty.compact{min-height:280px;margin:18px}.back-button{display:flex;align-items:center;gap:4px;margin-bottom:24px;background:none;color:var(--muted);font-size:.76rem}.back-button svg{width:14px;transform:rotate(180deg)}.lesson-page{width:min(1520px,100%)}.lesson-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:28px}.lesson-heading>div:last-child{display:flex;gap:8px}.breadcrumbs{display:flex;align-items:center;gap:5px;margin-bottom:9px;color:var(--muted);font-size:.72rem}.breadcrumbs svg{width:12px}.lesson-heading h2{font-size:2.25rem;letter-spacing:-.045em}.lesson-heading p{display:flex;align-items:center;gap:6px;margin-top:8px;color:var(--muted);font-size:.78rem}.lesson-heading p svg{width:15px}.tab-bar{display:flex;margin-bottom:28px;border-bottom:1px solid var(--border)}.tab-bar button{display:flex;height:45px;align-items:center;gap:7px;padding:0 14px;border-bottom:2px solid transparent;background:none;color:var(--muted);font-size:.79rem;font-weight:700}.tab-bar button.active{border-color:var(--accent);color:var(--text)}.tab-bar svg{width:16px}.tab-bar span{padding:2px 6px;border-radius:8px;background:var(--surface-2);font-size:.64rem}.card-list{display:grid;gap:10px}.study-card-row{display:flex;align-items:flex-start;gap:15px;padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.study-card-row:hover{border-color:color-mix(in srgb,var(--border) 55%,var(--accent))}.card-type-icon{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border-radius:10px;background:var(--surface-2);color:var(--muted)}.card-type-icon svg{width:17px}.card-body{min-width:0;flex:1}.card-meta{display:flex;justify-content:space-between;margin-bottom:7px;color:var(--muted-2);font-size:.62rem;font-weight:800;letter-spacing:.09em}.card-meta em{font-style:normal;font-weight:500;letter-spacing:0}.card-body h4{font-size:.9rem;line-height:1.45}.card-body>p{margin-top:5px;color:var(--muted);font-size:.78rem;line-height:1.45}.tag-row{display:flex;gap:5px;margin-top:10px}.tag-row span{padding:3px 7px;border-radius:8px;background:var(--accent-soft);color:var(--accent-2);font-size:.64rem}.row-actions{display:flex}.notes-section{min-height:680px}.notes-save-status{display:inline-flex;min-height:40px;align-items:center;gap:7px;padding:0 4px;color:var(--muted);font-size:.75rem;font-weight:650}.notes-save-status svg{width:15px}.notes-save-status.error{color:var(--red)}.notes-editor{width:100%;min-height:max(650px,calc(100vh - 330px));padding:clamp(34px,4vw,64px) clamp(28px,6vw,92px);overflow-wrap:anywhere;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);font:400 1rem/1.78 Inter,Segoe UI,system-ui,sans-serif;caret-color:var(--accent);box-shadow:inset 0 1px #ffffff05}.notes-editor:focus{border-color:color-mix(in srgb,var(--accent) 72%,var(--border));outline:0;box-shadow:0 0 0 2px var(--accent-soft),inset 0 1px #ffffff08}.notes-editor:empty:before{color:var(--muted-2);content:attr(data-placeholder);pointer-events:none}.notes-editor h2{margin:0 0 22px;font-size:2rem;line-height:1.2;letter-spacing:-.035em}.notes-editor h3{margin:30px 0 12px;font-size:1.42rem;line-height:1.3}.notes-editor h4{margin:24px 0 10px;font-size:1.12rem}.notes-editor p{min-height:1.78em;margin:0}.notes-editor blockquote{margin:18px 0;padding:12px 18px;border-left:3px solid var(--accent);background:var(--accent-soft);color:var(--muted)}.notes-editor pre{margin:18px 0;padding:18px;overflow:auto;border:1px solid var(--border);border-radius:12px;background:var(--bg);font:400 .88rem/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap}.notes-editor code{padding:2px 6px;border-radius:5px;background:var(--surface-3);font:400 .88em ui-monospace,SFMono-Regular,Consolas,monospace}.notes-editor pre code{padding:0;background:none;font:inherit}.notes-editor mark{border-radius:3px;background:#efc75e55;color:var(--text)}.notes-editor a{color:var(--blue);text-decoration:underline}.notes-editor img{display:block;max-width:100%;height:auto;margin:22px auto;border-radius:12px}.notes-editor hr{margin:30px 0;border:0;border-top:1px solid var(--border)}.rich-list,.rich-task{display:grid;min-height:1.78em;grid-template-columns:26px 1fr;gap:4px}.rich-list>span:first-child,.rich-task>span:first-child{color:var(--accent-2);text-align:center}.notes-editor ul,.notes-editor ol{margin:8px 0;padding-left:28px}.notes-editor li{padding:2px 0}.interval-field{display:grid;gap:10px}.interval-field>div:first-child{display:grid;gap:4px}.interval-field strong{color:var(--text);font-size:.79rem}.interval-chips{display:flex;min-height:38px;align-items:center;flex-wrap:wrap;gap:7px;padding:7px;border:1px solid var(--border);border-radius:11px;background:var(--surface-2)}.interval-chips>span{display:flex;height:26px;align-items:center;gap:4px;padding-left:9px;border-radius:8px;background:var(--accent-soft);color:var(--accent-2);font-size:.72rem;font-weight:800}.interval-chips button{display:grid;width:24px;height:24px;place-items:center;border-radius:7px;background:none;color:inherit}.interval-chips button:hover{background:#ffffff10}.interval-chips svg{width:12px;height:12px}.interval-add{display:grid;grid-template-columns:1fr auto;gap:8px}.interval-add input{height:40px!important}.interval-presets{display:flex;flex-wrap:wrap;gap:6px}.interval-presets button{padding:5px 9px;border:1px solid var(--border);border-radius:8px;background:none;color:var(--muted);font-size:.66rem}.interval-presets button:hover{background:var(--surface-2);color:var(--text)}.check-row{display:flex!important;align-items:flex-start;grid-template-columns:none!important;gap:9px!important}.check-row input{width:16px!important;height:16px!important;flex:0 0 16px;margin-top:2px;accent-color:var(--accent)}.review-timeline{display:grid;gap:9px}.review-timeline article{display:grid;min-height:74px;grid-template-columns:46px 1fr auto;align-items:center;gap:14px;padding:13px 16px;border:1px solid var(--border);border-radius:13px;background:var(--surface)}.review-timeline article.overdue{border-color:#f2707045}.review-timeline article.today{border-color:#ef9f5b55}.review-timeline article.done{opacity:.6}.review-number{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:var(--accent-soft);color:var(--accent-2);font-size:.75rem;font-weight:850}.review-timeline article.overdue .review-number{background:var(--red-soft);color:var(--red)}.review-timeline article.today .review-number{background:var(--orange-soft);color:var(--orange)}.review-timeline article>div:nth-child(2){display:grid;gap:4px}.review-timeline small{color:var(--muted)}.review-actions{display:flex;align-items:center;gap:5px}.lesson-review-panel{margin-bottom:18px}.lesson-review-panel>header>span{color:var(--muted);font-size:.7rem}.lesson-review-list{display:grid}.lesson-review-list button{display:grid;min-height:62px;grid-template-columns:10px 1fr auto 18px;align-items:center;gap:11px;padding:10px 20px;border-bottom:1px solid var(--border);background:none;text-align:left}.lesson-review-list button:last-child{border-bottom:0}.lesson-review-list button:hover{background:var(--surface-2)}.lesson-review-list button>span:nth-child(2){display:grid;gap:3px}.lesson-review-list strong{font-size:.79rem}.lesson-review-list em{color:var(--muted);font-size:.7rem;font-style:normal}.lesson-review-list svg{width:15px;color:var(--muted-2)}.review-status-dot{width:8px;height:8px;border-radius:50%;background:var(--blue)}.review-status-dot.today{background:var(--orange)}.review-status-dot.overdue{background:var(--red)}.modal-backdrop,.palette-backdrop{position:fixed;inset:0;z-index:100;display:grid;padding:20px;background:#050508b8;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);place-items:center}.modal{width:min(100%,480px);max-height:calc(100vh - 40px);overflow:auto;border:1px solid var(--border);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}.modal.large{width:min(100%,720px)}.modal>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--border);background:var(--surface)}.modal>header h2{font-size:1.05rem}.modal>.form-stack,.modal>form,.modal>div.form-stack,.modal>.modal-copy{margin:22px}.form-stack{display:grid;gap:17px}.form-stack small{font-weight:500}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.modal-copy{line-height:1.55}.segmented{display:grid;padding:4px;border-radius:11px;background:var(--surface-2)}.segmented.three{grid-template-columns:repeat(3,1fr)}.segmented button{height:34px;border-radius:8px;background:none;color:var(--muted);font-size:.75rem;font-weight:700}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 4px 15px #0002}.file-row{display:flex!important;height:44px;align-items:center!important;justify-content:center;border:1px dashed var(--border);border-radius:10px;cursor:pointer}.file-row input,.upload-drop input{display:none}.upload-drop{display:flex!important;min-height:170px;align-items:center;justify-content:center;flex-direction:column;border:1px dashed var(--border);border-radius:12px;background:var(--surface-2);cursor:pointer}.upload-drop svg{margin-bottom:9px;color:var(--accent-2)}.upload-drop span{margin-top:5px;color:var(--muted);font-size:.7rem}.occlusion-image,.review-image{position:relative;display:inline-block;max-width:100%;overflow:hidden;border-radius:12px}.occlusion-image img,.review-image img{display:block;max-width:100%;max-height:390px}.occlusion-mask{position:absolute;border:2px solid #fff;border-radius:6px;background:#8068ff;box-shadow:0 4px 18px #0008}.occlusion-editor>.hint{text-align:center}.palette-backdrop{align-items:start;padding-top:12vh}.palette{width:min(100%,650px);overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}.palette-input{display:flex;height:62px;align-items:center;gap:12px;padding:0 18px;border-bottom:1px solid var(--border)}.palette-input svg{color:var(--muted)}.palette-input input{min-width:0;flex:1;border:0;background:none;color:var(--text);font-size:.95rem;outline:0}.palette-results{max-height:430px;overflow:auto;padding:8px}.palette-results>p{padding:30px;text-align:center;color:var(--muted);font-size:.8rem}.palette-results button{display:flex;width:100%;align-items:center;gap:12px;padding:10px;border-radius:10px;background:none;text-align:left}.palette-results button:hover{background:var(--surface-2)}.palette-results button>span:nth-child(2){display:grid;gap:4px}.palette-results strong{font-size:.8rem}.palette-results small{color:var(--muted)}.result-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:9px;background:var(--accent-soft);color:var(--accent-2)}.result-icon svg{width:16px}.study-overlay{position:fixed;inset:0;z-index:200;overflow:auto;background:var(--bg)}.study-setup,.study-done{position:relative;display:flex;width:min(520px,calc(100% - 32px));min-height:100vh;align-items:center;justify-content:center;flex-direction:column;margin:auto;padding:50px;text-align:center}.close-study{position:absolute;top:25px;right:0}.study-symbol,.success-orb{display:grid;width:72px;height:72px;margin-bottom:24px;place-items:center;border-radius:22px;background:var(--accent-soft);color:var(--accent-2)}.study-symbol svg,.success-orb svg{width:30px;height:30px}.study-setup h2,.study-done h2{margin:9px 0;font-size:2rem;letter-spacing:-.04em}.study-setup>p:not(.eyebrow),.study-done>p:not(.eyebrow){margin-bottom:30px;color:var(--muted)}.study-setup .form-stack{width:100%;text-align:left}.range-row{display:flex;align-items:center;gap:15px}.range-row input{height:auto;accent-color:var(--accent)}.range-row strong{width:35px;text-align:center}.study-top{position:fixed;inset:0 0 auto;z-index:2;display:grid;height:64px;grid-template-columns:50px 1fr 70px;align-items:center;gap:20px;padding:0 24px}.study-progress{height:5px;overflow:hidden;border-radius:9px;background:var(--surface-3)}.study-progress div{height:100%;border-radius:inherit;background:var(--accent);transition:.3s}.study-top>span{color:var(--muted);font-size:.72rem}.study-stage{display:flex;min-height:100vh;align-items:center;justify-content:center;flex-direction:column;padding:90px 24px 45px}.study-context{display:flex;align-items:center;gap:6px;margin-bottom:16px;color:var(--muted);font-size:.72rem}.study-context svg{width:12px}.review-card{width:min(720px,100%);min-height:390px;border:1px solid var(--border);border-radius:24px;background:var(--surface);box-shadow:0 26px 75px #0004;cursor:pointer}.review-face{display:flex;min-height:390px;align-items:center;justify-content:center;flex-direction:column;padding:50px;text-align:center}.review-face h2{max-width:600px;margin:18px 0;font-size:clamp(1.5rem,3.5vw,2.3rem);line-height:1.35;letter-spacing:-.03em;white-space:pre-wrap}.review-face.answer{min-height:170px;border-top:1px solid var(--border);background:var(--surface-2)}.review-face.answer h3{max-width:600px;margin-top:15px;font-size:1.2rem;font-weight:500;line-height:1.55;white-space:pre-wrap}.reveal-hint{margin-top:25px;color:var(--muted);font-size:.72rem}.reveal-hint span{margin-right:6px;padding:4px 8px;border:1px solid var(--border);border-radius:7px;background:var(--surface-2)}.review-image,.review-image img{max-height:230px}.review-card.revealed .question{min-height:220px}.rating-row{display:grid;width:min(720px,100%);grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}.rating-row button{display:grid;min-height:75px;grid-template-columns:auto 1fr;grid-template-rows:1fr 1fr;align-items:center;gap:0 8px;padding:10px 13px;border:1px solid var(--border);border-radius:12px;background:var(--surface);text-align:left}.rating-row button:hover{border-color:var(--accent);transform:translateY(-2px)}.rating-row kbd{grid-row:1/3}.rating-row strong{font-size:.78rem}.rating-row span{color:var(--muted);font-size:.63rem}.reveal-button{width:min(280px,100%);margin-top:18px}.undo-button{display:flex;align-items:center;gap:6px;margin-top:14px;background:none;color:var(--muted-2);font-size:.68rem}.undo-button:disabled{opacity:.35}.undo-button svg{width:14px}.success-orb{background:var(--green-soft);color:var(--green)}.done-stats{display:flex;margin-bottom:28px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.done-stats div{display:grid;min-width:130px;gap:5px;padding:18px}.done-stats div+div{border-left:1px solid var(--border)}.done-stats strong{font-size:1.6rem}.done-stats span{color:var(--muted);font-size:.7rem}.metric-grid.analytics{grid-template-columns:repeat(4,1fr)}.metric-grid.analytics article{grid-template-columns:auto 1fr}.analytics-chart{height:390px;margin-bottom:18px;padding-bottom:70px}.analytics-chart>header{margin-bottom:18px}.weak-list{display:grid}.weak-list>div{display:flex;align-items:center;gap:13px;padding:13px 20px;border-bottom:1px solid var(--border)}.weak-list>div:last-child{border:0}.weak-list>div>span:nth-child(2){display:grid;min-width:0;flex:1;gap:4px}.weak-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem}.weak-list small{color:var(--muted)}.weak-list em{color:var(--red);font-size:.7rem;font-style:normal}.weak-score{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:var(--red-soft);color:var(--red);font-weight:800}.context-menu{position:fixed;z-index:500;width:250px;max-height:calc(100vh - 16px);overflow:auto;padding:6px;border:1px solid var(--border);border-radius:12px;background:color-mix(in srgb,var(--surface) 96%,transparent);box-shadow:0 22px 60px #0009;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);animation:context-in .12s ease-out}.context-menu button{display:grid;width:100%;min-height:36px;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 9px;border-radius:8px;background:none;color:var(--text);font-size:.76rem;text-align:left}.context-menu button:hover,.context-menu button:focus-visible{background:var(--surface-3)}.context-menu button.danger{color:var(--red)}.context-menu button kbd{justify-self:end;border:0;background:transparent;color:var(--muted-2);font-size:.62rem}.context-icon{display:grid;width:22px;height:22px;place-items:center;color:var(--muted);font-size:.7rem;font-style:normal}.context-icon svg{width:15px;height:15px}.context-heading{padding:7px 9px 4px;color:var(--muted-2);font-size:.61rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.context-separator{height:1px;margin:4px;background:var(--border)}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;margin:-1px!important;padding:0!important;border:0!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}@keyframes context-in{0%{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}.toast-stack{position:fixed;right:20px;bottom:20px;z-index:300;display:grid;gap:8px}.toast{max-width:360px;padding:12px 16px;border:1px solid #48b98945;border-radius:11px;background:var(--surface);box-shadow:var(--shadow);font-size:.78rem}.toast.error{border-color:#f2707055}.loading{display:flex;min-height:55vh;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--muted);font-size:.75rem}.loading div{width:26px;height:26px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.sidebar-overlay{display:none}.auth-panel{max-width:none;align-items:flex-start;padding:clamp(40px,7vw,120px)}.auth-panel h1{max-width:560px}.auth-panel form{width:min(100%,430px)}@media(max-width:1050px){.subject-grid,.metric-grid.analytics{grid-template-columns:repeat(2,1fr)}}@media(max-width:820px){.app-shell,.app-shell.sidebar-is-collapsed{padding-left:0}.sidebar,.sidebar.collapsed{width:min(85vw,300px);transform:translate(-101%)}.sidebar.mobile-open{transform:translate(0)}.sidebar.collapsed .main-nav span,.sidebar.collapsed .sidebar-footer span{display:inline}.sidebar.collapsed .main-nav button,.sidebar.collapsed .sidebar-footer button{justify-content:flex-start;padding:0 13px}.sidebar.collapsed .library-tree{display:block}.sidebar-overlay.show{position:fixed;inset:0;z-index:45;display:block;background:#0008}.collapse{display:none}.mobile-menu{display:grid}.topbar{padding:0 16px}.topbar h1{margin-right:auto;margin-left:8px}.search-trigger span,.search-trigger kbd{display:none}.page-content{padding:28px 18px 60px}.hero{min-height:unset;padding:30px}.focus-ring{display:none}.metric-grid,.dashboard-columns,.subject-grid{grid-template-columns:1fr}.lesson-heading,.page-heading{align-items:flex-start;flex-direction:column;gap:20px}.lesson-heading>div:last-child{width:100%;flex-wrap:wrap}.content-toolbar{align-items:flex-start;flex-direction:column;gap:15px}.content-toolbar>div:last-child{flex-wrap:wrap}.empty-dashboard ol{align-items:flex-start;flex-direction:column}.study-card-row{align-items:flex-start}.metric-grid.analytics{grid-template-columns:1fr 1fr}}@media(max-width:540px){.auth-page{display:block}.auth-panel{min-height:100vh;padding:34px 24px}.auth-art{display:none}.auth-panel h1{font-size:2.65rem}.hero h2{font-size:2rem}.hero-actions{align-items:stretch;flex-direction:column}.metric-grid article{grid-template-columns:auto 1fr}.metric-grid article>small{display:none}.subject-grid{grid-template-columns:1fr}.lesson-heading h2{font-size:1.8rem}.study-card-row{position:relative}.row-actions{position:absolute;top:10px;right:8px}.card-meta{padding-right:65px}.rating-row{grid-template-columns:repeat(2,1fr)}.review-face{padding:30px 22px}.review-card,.review-face{min-height:330px}.modal-backdrop{padding:10px}.modal{max-height:calc(100vh - 20px)}.metric-grid.analytics{grid-template-columns:1fr}.folder-tabs{margin-right:-18px}.toast-stack{right:12px;bottom:12px;left:12px}.toast{max-width:none}}@media(max-width:700px){.review-timeline article{grid-template-columns:42px 1fr}.review-actions{grid-column:1/-1;justify-content:flex-end;padding-top:8px;border-top:1px solid var(--border)}.lesson-review-list button{grid-template-columns:10px 1fr 15px}.lesson-review-list em{display:none}.interval-add{grid-template-columns:1fr}}@media(max-width:1050px){.library-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.notion-lessons{overflow-x:auto}.lesson-table-head,.notion-lesson-row{min-width:900px}}@media(max-width:620px){.library-card-grid{grid-template-columns:1fr}.library-level-card,.library-add-card{min-height:210px}.library-heading{align-items:stretch}.library-heading .button{width:100%}.notion-lessons{margin-right:-18px;border-radius:14px 0 0 14px}.lesson-table-head,.notion-lesson-row{min-width:820px}}.notes-editor img{margin:22px 0;border:2px solid transparent;cursor:pointer;transition:border-color .15s,box-shadow .15s,width .15s}.notes-editor img:hover{border-color:color-mix(in srgb,var(--accent) 42%,transparent)}.notes-editor img.selected{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.task-toggle{display:grid;width:24px;height:28px;padding:0;border:0;background:none;color:var(--accent-2);font:inherit;place-items:center}.task-toggle:hover{color:var(--text)}.rich-task[data-checked=true] .task-content{color:var(--muted);text-decoration:line-through}.notes-editor mark[data-color=yellow]{background:#efc75e55}.notes-editor mark[data-color=green]{background:#4fbd7b55}.notes-editor mark[data-color=blue]{background:#4a91e255}.notes-editor mark[data-color=pink]{background:#e76ba655}.notes-editor mark[data-color=orange]{background:#ed8b4555}.notes-popout-placeholder{display:grid;min-height:520px;padding:50px;border:1px dashed var(--border);border-radius:var(--radius);background:var(--surface);color:var(--muted);place-items:center;text-align:center;align-content:center;gap:10px}.notes-popout-placeholder>svg{width:36px;height:36px;color:var(--accent-2)}.notes-popout-placeholder h3{color:var(--text)}.notes-popout-body{min-width:640px;min-height:100vh;overflow:auto;background:var(--bg);color:var(--text)}.notes-popout-shell{width:min(1200px,100%);min-height:100vh;margin:auto;padding:28px}.notes-popout-shell>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.notes-popout-shell>header>div:last-child{display:flex;gap:8px}.notes-popout-shell>header p{color:var(--accent-2);font-size:.68rem;font-weight:800;letter-spacing:.12em}.notes-popout-shell>header h1{margin-top:4px;font-size:1.45rem}.notes-popout-shell .notes-editor{min-height:calc(100vh - 130px)}.notes-editor-frame{position:relative}.notes-command-hint{display:flex;align-items:center;gap:8px;margin-top:9px;color:var(--muted-2);font-size:.75rem}.notes-command-hint kbd{color:var(--accent-2)}.notes-command-menu{position:fixed;z-index:650;width:min(460px,calc(100vw - 24px));overflow:hidden;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--border));border-radius:15px;background:color-mix(in srgb,var(--surface) 97%,transparent);box-shadow:0 24px 70px #0009;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);animation:context-in .12s ease-out}.notes-command-menu>header{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 13px;border-bottom:1px solid var(--border)}.notes-command-menu>header>div{display:grid;gap:2px}.notes-command-menu>header strong{font-size:.875rem}.notes-command-menu>header small{overflow:hidden;color:var(--muted);font-size:.75rem;text-overflow:ellipsis;white-space:nowrap}.notes-command-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:10px;background:var(--accent-soft);color:var(--accent-2)}.notes-command-icon svg{width:17px;height:17px}.notes-command-results{max-height:280px;overflow:auto;padding:6px}.notes-command-results>p{padding:25px 16px;color:var(--muted);font-size:.8rem;text-align:center}.notes-command-results button{display:grid;width:100%;gap:5px;padding:10px 11px;border-radius:9px;background:none;color:var(--text);text-align:left}.notes-command-results button.selected{background:var(--accent-soft)}.notes-command-results button>span{display:flex;align-items:center;gap:7px}.notes-command-results button strong{font-size:.84rem}.notes-command-results button em{overflow:hidden;color:var(--accent-2);font-size:.75rem;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.notes-command-results button small{overflow:hidden;color:var(--muted);font-size:.75rem;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.notes-command-menu>footer{display:flex;justify-content:flex-end;gap:14px;padding:8px 12px;border-top:1px solid var(--border);color:var(--muted-2);font-size:.72rem}.notes-command-menu>footer span{display:flex;align-items:center;gap:4px}.notes-command-menu>footer kbd{padding:1px 4px;font-size:.68rem}.notes-editor .legal-reference{display:block;margin:22px 0;padding:17px 19px;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--border));border-left:3px solid var(--accent);border-radius:4px 13px 13px 4px;background:linear-gradient(135deg,var(--accent-soft),color-mix(in srgb,var(--surface-2) 88%,transparent));cursor:text}.legal-reference-kicker{margin-bottom:7px;color:var(--accent-2);font-size:.75rem;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.legal-reference-title{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:11px;font-size:.875rem}.legal-reference-title a{font-size:.78rem;font-weight:700}.legal-reference-body{font-family:Georgia,Times New Roman,serif;font-size:1rem;line-height:1.72;white-space:normal}@media(max-width:620px){.notes-command-menu{right:12px!important;left:12px!important;width:auto}.notes-command-hint span{display:none}}
