:root{color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bg:#f8fafc;--bg-elevated:#fff;--surface:#fff;--surface-strong:#f1f5f9;--text:#0f172a;--text-inverse:#fff;--muted:#64748b;--border:#e2e8f0;--border-strong:#cbd5e1;--primary:#4f46e5;--primary-hover:#4338ca;--primary-light:#e0e7ff;--danger:#ef4444;--danger-light:#fee2e2;--success:#10b981;--success-light:#d1fae5;--warning:#f59e0b;--warning-light:#fef3c7;--shadow:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--radius-card:12px;--radius-input:8px;background:#f8fafc;font-family:Inter,system-ui,-apple-system,sans-serif;font-weight:400;line-height:1.5}:root[data-theme=dark]{color:#f8fafc;--bg:#0f172a;--bg-elevated:#1e293b;--surface:#1e293b;--surface-strong:#0f172a;--text:#f8fafc;--text-inverse:#fff;--muted:#94a3b8;--border:#334155;--border-strong:#475569;--primary:#6366f1;--primary-hover:#818cf8;--primary-light:#6366f126;--danger:#f87171;--danger-light:#ef444426;--success:#34d399;--success-light:#10b98126;--warning:#fbbf24;--warning-light:#f59e0b26;--shadow:0 1px 3px 0 #0000004d, 0 1px 2px -1px #0003;--shadow-md:0 4px 6px -1px #0000004d, 0 2px 4px -2px #0003;background:#0f172a}*{box-sizing:border-box}html,body,#root{min-height:100vh}body{background:var(--bg);min-width:320px;color:var(--text);margin:0;transition:background-color .2s,color .2s}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;font-family:Inter,system-ui,sans-serif}button{cursor:pointer}input,select,textarea{color:var(--text)}h1,h2,h3,h4,h5,h6{color:var(--text);letter-spacing:-.01em;margin:0;font-weight:600}h1{font-size:1.875rem}h2{font-size:1.5rem}h3{font-size:1.125rem}.app-shell{flex-direction:column;min-height:100vh;display:flex}.topbar{z-index:10;background:var(--bg-elevated);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:20px;padding:12px 24px;display:flex;position:sticky;top:0}.brand{color:var(--text);letter-spacing:-.02em;align-items:center;gap:12px;font-size:1.25rem;font-weight:700;display:flex}.brand-mark{color:var(--primary);justify-content:center;align-items:center;display:inline-flex}.brand-mark.large{border-radius:var(--radius-input);background:var(--primary-light);width:40px;height:40px}.topbar-actions{align-items:center;gap:24px;display:flex}.topbar-nav{flex-wrap:wrap;gap:8px;display:flex}.nav-link{color:var(--muted);border-radius:var(--radius-input);align-items:center;gap:8px;padding:8px 12px;font-size:.875rem;font-weight:500;transition:all .2s;display:inline-flex}.nav-link:hover{color:var(--text);background:var(--surface-strong)}.nav-link.active{color:var(--primary);background:var(--primary-light)}.page-shell{flex:1;width:min(100%,1024px);margin:0 auto;padding:32px 24px 64px}.page-content{flex-direction:column;gap:24px;display:flex}.page-heading{margin-bottom:8px}.page-heading h1{line-height:1.2}.page-heading p{color:var(--muted);margin:4px 0 0;font-size:1rem}.auth-shell{background:var(--bg);grid-template-columns:1fr;justify-content:center;align-items:center;min-height:100vh;padding:24px;display:grid}@media (width>=900px){.auth-shell{grid-template-columns:1fr 1fr;gap:48px;max-width:1200px;margin:0 auto}}.auth-card,.planner-card,.task-card,.stat-card,.settings-card,.insight-card,.banner{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--shadow)}.auth-card{padding:32px}.auth-hero{box-shadow:none;background:0 0;border:none;flex-direction:column;justify-content:center;display:flex}@media (width<=899px){.auth-hero{display:none}}.hero-badge,.pill{background:var(--primary-light);width:fit-content;color:var(--primary);letter-spacing:.02em;text-transform:uppercase;border-radius:9999px;align-items:center;padding:4px 10px;font-size:.75rem;font-weight:600;display:inline-flex}.auth-hero h1{letter-spacing:-.02em;margin:16px 0 12px;font-size:2.5rem;line-height:1.1}.auth-hero p,.hero-points div,.task-copy p,.info-row p,.stat-topline p,.insight-card p{color:var(--muted);font-size:.875rem}.auth-hero p{font-size:1rem;line-height:1.6}.hero-points{gap:12px;margin-top:24px;font-size:.9375rem;display:grid}.hero-points div{color:var(--text);align-items:center;gap:8px;font-weight:500;display:flex}.hero-points div:before{content:"✓";color:var(--primary);font-weight:700}.auth-form-card{flex-direction:column;justify-content:center;width:100%;max-width:440px;margin:0 auto;display:flex}.auth-title{align-items:center;gap:16px;margin-bottom:24px;display:flex}.auth-title h2{font-size:1.25rem}.auth-title p{color:var(--muted);margin:4px 0 0;font-size:.875rem}.auth-form,.settings-stack,.task-list{flex-direction:column;gap:16px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field span{color:var(--text);font-size:.875rem;font-weight:500}.field-input{border:1px solid var(--border);border-radius:var(--radius-input);background:var(--surface);align-items:center;gap:10px;padding:0 12px;transition:all .2s;display:flex}.field-input input{background:0 0;border:0;outline:none;width:100%;padding:10px 0;font-size:.875rem}.task-input{border:1px solid var(--border);border-radius:var(--radius-input);background:var(--surface);outline:none;width:100%;padding:10px 12px;font-size:.875rem;transition:all .2s}.task-input:focus,.field-input:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.notes-input{resize:vertical;min-height:80px}.primary-button,.ghost-button,.text-button{border:0;font-weight:500;transition:all .2s}.primary-button{color:var(--text-inverse);background:var(--primary);border-radius:var(--radius-input);justify-content:center;align-items:center;gap:8px;padding:10px 16px;font-size:.875rem;display:inline-flex;box-shadow:0 1px 2px #0000000d}.primary-button:hover:not(:disabled){background:var(--primary-hover)}.primary-button:disabled{opacity:.6;cursor:not-allowed}.primary-button.full-width{width:100%}.ghost-button{border-radius:var(--radius-input);width:32px;height:32px;color:var(--muted);background:0 0;justify-content:center;align-items:center;display:inline-flex}.ghost-button:hover{background:var(--surface-strong);color:var(--text)}.text-button{color:var(--primary);background:0 0;align-self:center;padding:8px;font-size:.875rem}.text-button:hover{color:var(--primary-hover);text-decoration:underline}.banner{padding:12px 16px;font-size:.875rem}.error-banner{background:var(--danger-light);color:var(--danger);border-color:#ef444433}.user-pill{border:1px solid var(--border);background:var(--surface);border-radius:9999px;align-items:center;gap:12px;padding:6px 6px 6px 12px;display:flex}.user-pill strong{font-size:.875rem;font-weight:600;line-height:1.2;display:block}.user-pill span{color:var(--muted);font-size:.75rem}.task-planner,.filters-row,.settings-card,.stat-card,.insight-card{padding:24px}.field-grid,.stats-grid,.summary-grid{gap:16px;display:grid}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters-row{justify-content:space-between;align-items:center;gap:16px;padding:16px 24px;display:flex}.search-box{border:1px solid var(--border);border-radius:var(--radius-input);background:var(--surface);flex:1;align-items:center;gap:8px;padding:0 12px;transition:all .2s;display:flex}.search-box:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.search-box input{background:0 0;border:0;outline:none;width:100%;padding:10px 0;font-size:.875rem}.search-box svg{color:var(--muted)}.compact-input{width:180px}.empty-state{text-align:center;min-height:200px;color:var(--muted);background:var(--surface);border:1px dashed var(--border-strong);border-radius:var(--radius-card);flex-direction:column;justify-content:center;align-items:center;padding:32px;display:flex}.empty-state.compact{min-height:100px}.empty-icon{opacity:.8;margin-bottom:12px;font-size:2.5rem}.empty-state h2{color:var(--text);margin-bottom:8px;font-size:1.125rem}.task-card{justify-content:space-between;align-items:flex-start;gap:16px;padding:20px;transition:box-shadow .2s,transform .2s;display:flex}.task-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.task-card.completed{opacity:.7;background:var(--bg)}.task-card.completed .task-copy h3{color:var(--muted);text-decoration:line-through}.task-meta,.task-actions,.task-timeline,.section-title{align-items:center;display:flex}.task-meta{flex-wrap:wrap;gap:8px;margin-bottom:8px}.task-actions{gap:8px}.task-copy{flex-direction:column;display:flex}.task-copy h3{margin:0 0 4px;font-size:1.125rem}.task-copy p{margin:0 0 12px;line-height:1.5}.task-timeline{color:var(--muted);gap:16px;font-size:.75rem;font-weight:500}.task-timeline span{align-items:center;gap:4px;display:flex}.has-reminder{color:var(--primary);background:var(--primary-light);border-radius:9999px;padding:2px 8px}.pill.priority-high{background:var(--danger-light);color:var(--danger)}.pill.priority-medium{background:var(--warning-light);color:#b45309}:root[data-theme=dark] .pill.priority-medium{color:var(--warning)}.pill.priority-low{background:var(--success-light);color:var(--success)}.icon-button{border:1px solid var(--border);border-radius:var(--radius-input);background:var(--surface);width:36px;height:36px;color:var(--muted);justify-content:center;align-items:center;transition:all .2s;display:inline-flex}.icon-button:hover{background:var(--surface-strong);color:var(--text)}.icon-button.success:hover{color:var(--success);border-color:var(--success);background:var(--success-light)}.icon-button.danger:hover{color:var(--danger);border-color:var(--danger);background:var(--danger-light)}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-topline{justify-content:space-between;align-items:center;gap:12px;display:flex}.stat-topline p{margin:0;font-weight:500}.stat-card h2{letter-spacing:-.02em;margin:12px 0 0;font-size:2rem;font-weight:700}.stat-icon{border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.stat-icon.amber{color:var(--warning);background:var(--warning-light)}.stat-icon.violet{color:var(--primary);background:var(--primary-light)}.stat-icon.mint{color:var(--success);background:var(--success-light)}.stat-icon.ink{color:var(--text);background:var(--surface-strong)}.section-title{gap:10px;margin-bottom:16px}.section-title h2{font-size:1.125rem}.section-title.small{margin-bottom:8px}.section-title.small h3{font-size:1rem}.toggle-row,.info-row,.subject-row{justify-content:space-between;align-items:center;gap:16px;display:flex}.toggle-row span{font-size:.875rem;font-weight:500}.toggle-switch{background:var(--border-strong);border:0;border-radius:9999px;width:44px;height:24px;padding:2px;transition:background-color .2s;position:relative}.toggle-switch span{background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .2s;display:block;box-shadow:0 2px 4px #0003}.toggle-switch.enabled{background:var(--primary)}.toggle-switch.enabled span{transform:translate(20px)}.divider{background:var(--border);height:1px;margin:20px 0}.progress-bar{background:var(--surface-strong);border-radius:9999px;height:8px;margin-top:12px;overflow:hidden}.progress-bar span{background:var(--primary);border-radius:9999px;height:100%;transition:width .5s;display:block}.subject-list{gap:8px;margin-top:16px;display:grid}.subject-row{border:1px solid var(--border);border-radius:var(--radius-input);background:var(--surface);padding:12px 16px;font-size:.875rem}.subject-row strong{color:var(--text);font-weight:500}.subject-row span{color:var(--muted)}@media (width<=900px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.topbar{flex-direction:column;align-items:stretch;padding:16px}.brand{justify-content:center;margin-bottom:16px}.topbar-actions{flex-direction:column;align-items:stretch;gap:16px}.topbar-nav{justify-content:center}.user-pill{justify-content:space-between}.field-grid,.filters-row,.summary-grid,.stats-grid{grid-template-columns:1fr}.filters-row{flex-direction:column;align-items:stretch}.compact-input{width:100%}.task-card{flex-direction:column;align-items:stretch}.task-actions{border-top:1px solid var(--border);justify-content:flex-end;margin-top:12px;padding-top:12px}}
