.auth-page{background:radial-gradient(ellipse 720px 520px at 50% 18%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%), radial-gradient(circle, color-mix(in srgb, var(--mascot-ink) 8%, transparent) .9px, transparent 1.1px) 0 0 / 22px 22px, var(--surface-canvas);min-height:100dvh;color:var(--text-primary);grid-template-rows:auto 1fr auto;display:grid;position:relative}.auth-page-top{align-items:center;height:64px;padding:0 28px;display:flex}.brand-lockup{color:var(--text-primary);align-items:center;gap:9px;display:inline-flex}.brand-lockup img{border-radius:6.3px}.brand-lockup strong{letter-spacing:.02em;font-size:17px;font-weight:700}.brand-lockup.is-compact strong{font-size:15px}.auth-panel{align-content:start;gap:24px;width:min(400px,100% - 40px);margin:0 auto;padding:28px 0 48px;display:grid}.auth-heading h1{letter-spacing:-.01em;margin:0;font-size:28px;font-weight:700}.auth-heading p{color:var(--text-secondary);font-size:var(--text-md);margin:8px 0 0;line-height:1.6}.auth-methods{gap:10px;display:grid}.auth-method{border:1px solid color-mix(in srgb, var(--mascot-ink) 82%, transparent);border-radius:var(--radius-pill);background:var(--mascot-paper);width:100%;height:50px;color:var(--mascot-ink);font:inherit;cursor:pointer;transition:background var(--motion-fast), transform var(--motion-fast);justify-content:center;align-items:center;padding:0 48px;font-size:15px;font-weight:600;display:flex;position:relative}.auth-method>svg{width:19px;height:19px;position:absolute;left:20px}.auth-method:hover:not(:disabled){background:color-mix(in srgb, var(--mascot-ink) 6%, var(--mascot-paper))}.auth-method:active:not(:disabled){transform:scale(.99)}.auth-method:disabled{opacity:.5;cursor:default}.auth-method.is-primary{background:var(--brand);color:var(--text-on-brand);border-color:#0000}.auth-method.is-primary:hover:not(:disabled){background:var(--brand-fill-hover)}.auth-method.is-brand{color:#1f1f1f;background:#fff;border-color:#1f1f1f}.auth-method.is-brand:hover:not(:disabled){background:#f0f0f0}.auth-google{justify-content:center;min-height:44px;display:flex}.auth-google:empty{display:none}.auth-divider{color:var(--text-tertiary);font-size:var(--text-xs);align-items:center;gap:12px;margin:6px 0;display:flex}.auth-divider:before,.auth-divider:after{content:"";background:color-mix(in srgb, var(--mascot-ink) 14%, transparent);flex:1;height:1px}.auth-status,.auth-error{font-size:var(--text-sm);justify-content:center;align-items:center;gap:8px;margin:4px 0 0;display:flex}.auth-status{color:var(--text-secondary)}.auth-status svg{width:15px;height:15px}.auth-error{color:var(--status-danger);justify-content:flex-start;line-height:1.5}.auth-error svg{flex-shrink:0;width:16px;height:16px}.auth-explain{border:1px solid var(--border);border-radius:var(--radius-md);background:color-mix(in srgb, var(--mascot-paper) 72%, transparent);gap:12px;padding:16px;display:flex}.auth-explain>svg{width:20px;height:20px;color:var(--brand-ink);flex-shrink:0}.auth-explain strong{font-size:var(--text-md);font-weight:650}.auth-explain p{color:var(--text-secondary);font-size:var(--text-sm);margin:4px 0 0;line-height:1.6}.auth-legal{color:var(--text-tertiary);font-size:var(--text-xs);margin:0;line-height:1.7}.auth-legal a{color:var(--brand-ink);margin:0 3px;font-weight:600;text-decoration:none}.auth-legal a:hover{text-decoration:underline}.auth-back{border-radius:var(--radius-pill);color:var(--text-secondary);font:inherit;font-size:var(--text-sm);cursor:pointer;background:0 0;border:0;justify-self:start;align-items:center;gap:2px;margin-left:-6px;padding:6px 10px 6px 4px;font-weight:600;display:inline-flex}.auth-back:hover{background:color-mix(in srgb, var(--mascot-ink) 6%, transparent);color:var(--text-primary)}.auth-back svg{width:18px;height:18px}.auth-form{gap:18px;display:grid}.auth-form-intro{color:var(--text-secondary);font-size:var(--text-sm);margin:0;line-height:1.6}.auth-field{gap:8px;display:grid}.auth-field>span,.auth-field>label{font-size:var(--text-sm);font-weight:600}.auth-field>small{color:var(--text-tertiary);font-size:var(--text-xs);line-height:1.6}.auth-input,.auth-input-group{border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface-primary);width:100%;height:50px;color:var(--text-primary);font:inherit;transition:border-color var(--motion-fast), box-shadow var(--motion-fast);font-size:16px}.auth-input{padding:0 16px}.auth-input:focus,.auth-input-group:focus-within{border-color:var(--focus-border);box-shadow:0 0 0 1px var(--focus-border);outline:none}.auth-input-group{align-items:center;display:flex;overflow:hidden}.auth-input-group>span{border-right:1px solid var(--separator);height:100%;color:var(--text-secondary);place-items:center;padding:0 12px 0 16px;font-weight:600;display:grid}.auth-input-group input{min-width:0;height:100%;color:inherit;font:inherit;background:0 0;border:0;flex:1;padding:0 14px}.auth-code-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.auth-code-button{border:1px solid var(--border-strong);border-radius:var(--radius-pill);background:var(--surface-primary);height:50px;color:var(--brand-ink);font:inherit;font-size:var(--text-sm);white-space:nowrap;cursor:pointer;padding:0 18px;font-weight:650}.auth-code-button:hover:not(:disabled){background:var(--surface-hover)}.auth-code-button:disabled{color:var(--text-tertiary);cursor:default}.auth-submit{border-radius:var(--radius-pill);background:var(--brand);height:50px;color:var(--text-on-brand);font:inherit;cursor:pointer;border:0;font-size:15px;font-weight:700}.auth-submit:hover:not(:disabled){background:var(--brand-fill-hover)}.auth-submit:disabled{opacity:.45;cursor:default}.auth-message{border-radius:var(--radius-sm);background:var(--surface-secondary);color:var(--text-primary);font-size:var(--text-sm);margin:0;padding:10px 12px;line-height:1.5}.auth-notes{gap:6px;display:grid}.auth-notes small{color:var(--text-tertiary);font-size:var(--text-xs);line-height:1.6}.auth-segmented{border-radius:var(--radius-pill);background:var(--surface-secondary);grid-template-columns:repeat(3,1fr);gap:2px;padding:3px;display:grid}.auth-segmented button{border-radius:var(--radius-pill);height:36px;color:var(--text-secondary);font:inherit;font-size:var(--text-sm);cursor:pointer;background:0 0;border:0;font-weight:600}.auth-segmented button[aria-pressed=true]{background:var(--surface-primary);color:var(--text-primary);box-shadow:var(--shadow-xs)}.auth-page-footer{color:var(--text-tertiary);font-size:var(--text-xs);flex-wrap:wrap;justify-content:center;gap:6px 18px;padding:20px 20px 28px;display:flex}.auth-page-footer a{color:inherit;text-decoration:none}.auth-page-footer a:hover{color:var(--text-primary)}@media (width<=560px){.auth-page-top{height:56px;padding:0 20px}.auth-panel{gap:20px;padding-top:8px}.auth-heading h1{font-size:24px}}.boot-screen{background:var(--surface-canvas);min-height:100dvh;color:var(--text-secondary);text-align:center;place-content:center;justify-items:center;gap:16px;display:grid}.boot-screen img{width:56px;height:56px;box-shadow:var(--shadow-sm);border-radius:12.6px}.boot-screen .boot-progress{border-radius:var(--radius-pill);background:var(--surface-secondary);width:120px;height:3px;overflow:hidden}.boot-screen .boot-progress i{border-radius:inherit;background:var(--brand);width:40%;height:100%;animation:1.1s ease-in-out infinite boot-progress;display:block}.boot-screen h1{color:var(--text-primary);font-size:var(--text-xl);margin:0}.boot-screen p{max-width:360px;font-size:var(--text-sm);margin:0;line-height:1.6}@keyframes boot-progress{0%{transform:translate(-100%)}to{transform:translate(250%)}}@media (prefers-reduced-motion:reduce){.boot-screen .boot-progress i{opacity:.4;width:100%;animation:none}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--brand:#58cc02;--brand-strong:#3caa00;--brand-subtle:#d7ffb8;--brand-ink:#377e01;--brand-tint:#edf9e3;--brand-fill-hover:#66d614;--text-on-brand:#0e2a00;--accent-blue:#1cb0f6;--accent-blue-strong:#1274a2;--accent-blue-subtle:#ddf4ff;--accent-orange:#ff9600;--accent-orange-strong:#9e5d00;--accent-orange-subtle:#ffedd1;--accent-red:#ff4b4b;--accent-red-strong:#ba3737;--accent-red-subtle:#ffe0e0;--accent-purple:#ce82ff;--accent-purple-strong:#8252a1;--accent-purple-subtle:#f0deff;--accent-yellow:#ffc800;--accent-yellow-strong:#876a00;--accent-yellow-subtle:#fff3c2;--accent-calendar:#9b51e0;--accent-calendar-subtle:#f3e8ff;--surface-canvas:#f7f9fc;--surface-primary:#fff;--surface-secondary:#eef1f7;--surface-sunken:#f2f4f9;--surface-hover:#2b2d420d;--surface-selected:#2b2d4216;--surface-overlay:#13141c57;--text-primary:#2b2d42;--text-secondary:#6b7083;--text-tertiary:#878b9c;--border:#e1e5ee;--border-strong:#ccd2de;--separator:#e9ecf2;--status-success:var(--brand-ink);--status-warning:var(--accent-yellow-strong);--status-danger:var(--accent-red-strong);--status-info:var(--accent-blue-strong);--glow-blue:#1cb0f62e;--glow-green:#58cc021f;--font-sans:-apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;--font-mono:ui-monospace, "SF Mono", Menlo, Consolas, monospace;--text-xs:12px;--text-sm:13px;--text-md:14px;--text-lg:16px;--text-xl:18px;--text-2xl:24px;--text-3xl:30px;--space-0:2px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-14:56px;--radius-xs:8px;--radius-sm:12px;--radius-md:16px;--radius-lg:20px;--radius-xl:24px;--radius-pill:999px;--shadow-xs:0 1px 2px #2b2d420f;--shadow-sm:0 2px 8px #2b2d4212, 0 1px 2px #2b2d420a;--shadow-pop:0 0 0 1px #2b2d420d, 0 14px 36px #2b2d4224;--focus-color:color-mix(in srgb, var(--brand) 45%, transparent);--focus-border:var(--brand-strong);--focus-ring:0 0 0 3px var(--focus-color);--motion-fast:.12s;--motion-base:.2s;--ease-out:cubic-bezier(.22, 1, .36, 1);--cloud:var(--surface-canvas);--mist:var(--surface-secondary);--line:var(--border);--ink:var(--text-primary);--ink-body:var(--text-primary);--ink-muted:var(--text-secondary);--green:var(--brand);--blue:var(--accent-blue);--blue-dark:var(--accent-blue-strong);--blue-soft:var(--accent-blue-subtle);--red-dark:var(--accent-red-strong);--purple:var(--accent-purple);--purple-soft:var(--accent-purple-subtle);--shadow-float:var(--shadow-pop)}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--brand-subtle:#253b23;--brand-ink:#6fd622;--brand-tint:#1f3021;--brand-fill-hover:#6bd619;--accent-blue-strong:#4cb8f0;--accent-blue-subtle:#1b364d;--accent-orange-strong:#ffa733;--accent-orange-subtle:#423223;--accent-red-strong:#ff6b6b;--accent-red-subtle:#422530;--accent-purple-strong:#c98cf5;--accent-purple-subtle:#392e4e;--accent-yellow-strong:#f2c230;--accent-yellow-subtle:#423a23;--accent-calendar-subtle:#312649;--surface-canvas:#13141c;--surface-primary:#1b1d2a;--surface-secondary:#22253a;--surface-sunken:#171822;--surface-hover:#f5f6fb0f;--surface-selected:#f5f6fb1a;--surface-overlay:#0000008f;--text-primary:#f5f6fb;--text-secondary:#b5b9c9;--text-tertiary:#9297aa;--border:#3a3d50;--border-strong:#4b4f66;--separator:#303344;--glow-blue:#1cb0f617;--glow-green:#58cc020f;--shadow-xs:0 1px 2px #0000004d;--shadow-sm:0 2px 8px #00000052;--shadow-pop:0 0 0 1px #f5f6fb12, 0 16px 40px #0000008c;--focus-border:var(--brand)}@media (prefers-contrast:more){:root:not([data-theme=dark]){--text-primary:#151725;--text-secondary:#4b5061;--text-tertiary:#656a7b;--border:#bfc5d2;--border-strong:#a3aaba;--separator:#cfd4de}:root[data-theme=dark]{--text-primary:#fff;--text-secondary:#d5d8e4;--text-tertiary:#b8bdcc;--border:#5b6074;--border-strong:#6d7288;--separator:#4b5062}}:root{font-family:var(--font-sans);color:var(--text-primary);background:var(--surface-canvas);font-synthesis:none;text-rendering:optimizelegibility}*{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;min-height:100%;margin:0}body{min-height:100vh;overflow:hidden}button,input,textarea,select{font:inherit}button,summary{-webkit-tap-highlight-color:transparent}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.45}.visually-hidden{clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;width:1px!important;height:1px!important;position:absolute!important;overflow:hidden!important}.rich-mark-bold{font-weight:800}.rich-mark-italic{font-style:italic}.rich-mark-underline{text-underline-offset:.13em;text-decoration-line:underline;text-decoration-thickness:.08em}.rich-mark-strikethrough{text-decoration-line:line-through}.rich-mark-underline.rich-mark-strikethrough{text-decoration-line:underline line-through}.rich-mark-code{background:var(--surface-secondary);border-radius:4px;padding:.08em .28em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.88em}.rich-mark-highlight{-webkit-box-decoration-break:clone;box-decoration-break:clone;background:#ffdc406b;border-radius:3px;padding:.04em .08em}.rich-link{color:inherit;text-decoration-line:underline;-webkit-text-decoration-color:color-mix(in srgb, currentColor 40%, transparent);text-decoration-color:color-mix(in srgb, currentColor 40%, transparent);text-underline-offset:.18em}.block-background-surface{background:var(--block-background);border-radius:5px;margin:4px -10px;padding:7px 10px}.block-background-surface>:first-child{margin-top:0}.block-background-surface>:last-child{margin-bottom:0}.editable-simple-table{width:100%;padding:5px 0}.note-divider{background:var(--line);border:0;height:1px;margin:17px 0}.note-table{border-spacing:0;border-collapse:separate;border:1px solid var(--line);border-radius:10px;width:100%;overflow:hidden}.note-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:120px;color:var(--ink-body);padding:9px 11px;font-size:13px}.note-table tr:last-child td{border-bottom:0}.note-table td:last-child{border-right:0}.table-scroll{margin:12px 0;overflow-x:auto}.editable-table-scroll{overscroll-behavior-inline:contain;max-width:100%;padding:2px;overflow-x:auto}.editable-table{border-radius:8px;width:max-content}.editable-table td{width:clamp(104px,22vw,160px);min-width:104px;padding:0;position:relative}.editable-table td.is-selected{z-index:1;box-shadow:inset 0 0 0 2px var(--blue)}.editable-table textarea{resize:none;field-sizing:content;width:100%;min-height:44px;max-height:146px;color:var(--ink-body);background:0 0;border:0;outline:0;padding:10px;font-size:14px;line-height:1.5;display:block;overflow-y:auto}.table-axis-toolbar{z-index:7;align-items:center;gap:5px;min-height:34px;margin-bottom:5px;display:flex;position:relative}.table-axis-menu{position:relative}.table-axis-menu>summary{border:1px solid var(--line);height:30px;color:var(--ink-muted);background:var(--surface-primary);cursor:pointer;border-radius:8px;align-items:center;gap:5px;padding:0 8px;font-size:11px;font-weight:800;list-style:none;display:inline-flex}.table-axis-menu>summary::-webkit-details-marker{display:none}.table-axis-menu[open]>summary{color:var(--blue-dark);border-color:color-mix(in srgb, var(--blue) 55%, var(--line));background:var(--blue-soft)}.table-axis-menu>summary svg{width:13px}.table-axis-menu>summary svg:last-child{width:11px}.table-axis-popover{z-index:20;border:1px solid var(--line);background:var(--surface-primary);width:196px;box-shadow:var(--shadow-float);border-radius:11px;gap:2px;padding:6px;display:grid;position:absolute;top:34px;left:0}.table-axis-popover button{text-align:left;min-height:33px;color:var(--ink-body);cursor:pointer;background:0 0;border:0;border-radius:7px;padding:0 8px;font-size:11px;font-weight:750}.table-axis-popover button:hover:not(:disabled),.table-axis-popover button:focus-visible{background:var(--mist)}.table-axis-popover button.has-separator{border-top:1px solid var(--line);border-radius:0 0 7px 7px;margin-top:4px}.table-axis-popover button.is-danger{color:var(--red-dark)}.table-dimensions{color:var(--ink-muted);margin-left:auto;font-size:10px;font-weight:700}.table-actions{gap:5px;margin-top:6px;display:flex}.table-actions button{height:28px;color:var(--ink-muted);background:var(--mist);cursor:pointer;border:0;border-radius:8px;align-items:center;gap:5px;padding:0 8px;font-size:10px;font-weight:800;display:inline-flex}.table-actions svg{width:13px}.media-placeholder{border:1px dashed var(--border);min-height:160px;color:var(--ink-muted);background:var(--cloud);border-radius:14px;justify-content:center;align-items:center;gap:8px;margin:10px 0;font-size:13px;display:flex}.media-placeholder svg{width:22px}.note-image{border-radius:14px;width:auto;max-width:100%;max-height:720px;margin:12px 0;display:block;box-shadow:0 8px 28px #30334b1a}.sketch-placeholder{border:1px solid var(--border);min-height:220px;color:var(--ink-body);background:var(--surface-primary);border-radius:14px;flex-direction:column;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.sketch-grid{opacity:.45;background-image:linear-gradient(var(--surface-secondary) 1px, transparent 1px), linear-gradient(90deg, var(--surface-secondary) 1px, transparent 1px);background-size:22px 22px;position:absolute;inset:0}.sketch-placeholder>span:not(.sketch-grid),.sketch-placeholder small{z-index:1;font-weight:850}.sketch-placeholder small{color:var(--ink-muted);margin-top:4px;font-size:11px}.bookmark-card{border:1px solid var(--line);color:var(--ink);background:var(--surface-primary);border-radius:13px;justify-content:space-between;align-items:center;gap:12px;margin:11px 0;padding:13px 15px;text-decoration:none;display:flex}.bookmark-card:hover{border-color:color-mix(in srgb, var(--accent-blue) 40%, var(--border));background:var(--blue-soft)}.bookmark-card span{flex-direction:column;min-width:0;display:flex}.bookmark-card small{color:var(--ink-muted);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:11px;overflow:hidden}.bookmark-card svg{width:18px;color:var(--blue-dark);flex:none}.toggle-block{margin:8px 0}.toggle-block summary{color:var(--ink);cursor:pointer;align-items:center;gap:6px;font-weight:850;list-style:none;display:flex}.toggle-block summary svg{width:17px}.toggle-block p{color:var(--ink-muted);border-left:2px solid var(--line);margin:7px 0 0 23px;padding-left:10px}.readonly-todo,.list-block{align-items:flex-start;gap:8px;margin:6px 0;display:flex}.readonly-check{border:2px solid var(--border-strong);border-radius:6px;flex:none;place-items:center;width:20px;height:20px;margin-top:2px;display:grid}.readonly-check svg{color:#fff;stroke-width:3px;width:13px}.readonly-todo.is-checked .readonly-check{border-color:var(--green);background:var(--green)}.readonly-todo.is-checked>span:last-child{color:var(--ink-muted);text-decoration:line-through}.list-block>span{min-width:20px;color:var(--blue-dark);text-align:right;font-weight:900}.list-block p,.paragraph-block{color:var(--ink-body);white-space:pre-wrap;margin:0;line-height:1.75}.block-h1,.block-h2,.block-h3{color:var(--ink);letter-spacing:-.025em}.block-h1{margin:32px 0 12px;font-size:29px}.block-h2{margin:27px 0 10px;font-size:23px}.block-h3{margin:22px 0 8px;font-size:19px}blockquote{border-left:4px solid var(--purple);color:var(--ink-body);background:var(--purple-soft);border-radius:0 10px 10px 0;margin:13px 0;padding:9px 15px;line-height:1.7}.callout-block{border:1px solid color-mix(in srgb, var(--callout) 35%, var(--surface-primary));background:color-mix(in srgb, var(--callout) 15%, var(--surface-primary));border-radius:13px;grid-template-columns:28px minmax(0,1fr);gap:8px;margin:13px 0;padding:13px;display:grid}.callout-block p{color:var(--ink-body);margin:0;line-height:1.65}.code-block{color:#edf0f7;background:#282b3c;border-radius:13px;margin:14px 0;overflow:hidden}.readonly-code-block{margin:14px 0}.readonly-code-block .code-block{margin:0}.code-block figcaption{color:var(--text-tertiary);border-bottom:1px solid #ffffff1a;padding:9px 13px;font:700 11px ui-monospace,SFMono-Regular,Menlo,monospace}.code-block pre{margin:0;padding:14px;font:13px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;overflow:auto}.readonly-code-caption{color:var(--ink-muted);margin:6px 1px 0;font-size:13px;line-height:1.55}kbd{border:1px solid var(--border);min-width:21px;color:var(--ink-body);background:var(--surface-primary);border-bottom-width:2px;border-radius:6px;padding:2px 5px;font:750 10px ui-monospace,monospace}.move-dialog{overflow:hidden}.conflict-dialog{width:min(680px,100%)}.spin{animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fade-in{0%{opacity:0}}@keyframes dialog-in{0%{opacity:0;transform:translateY(8px)scale(.985)}}@media (width<=760px){body{overflow:auto}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.note-workspace{background:var(--surface-primary);flex-direction:column;height:100%;min-height:0;display:flex;position:relative}.is-overdue{color:var(--accent-red-strong)!important}.section-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:300px;padding:40px 24px;display:flex}.section-empty>span{border-radius:var(--radius-md);width:58px;height:58px;color:var(--text-secondary);background:var(--surface-secondary);place-items:center;display:grid}.section-empty h2{margin:14px 0 6px;font-size:18px}.section-empty p{max-width:390px;color:var(--text-secondary);margin:0;font-size:13px;line-height:1.6}.todo-reminder-toast{z-index:120;right:max(20px, env(safe-area-inset-right));bottom:max(20px, env(safe-area-inset-bottom));border:1px solid color-mix(in srgb, var(--accent-orange) 24%, var(--border));border-radius:var(--radius-lg);background:var(--surface-primary);width:min(360px,100vw - 32px);box-shadow:var(--shadow-pop);grid-template-columns:minmax(0,1fr) 38px;align-items:center;display:grid;position:fixed;overflow:hidden}.todo-reminder-content{min-width:0;color:var(--text-primary);text-align:left;background:0 0;border:0;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px;padding:12px;display:grid}.todo-reminder-content>span:first-child{border-radius:var(--radius-sm);width:40px;height:40px;color:var(--accent-orange-strong);background:var(--accent-orange-subtle);place-items:center;display:grid}.todo-reminder-content svg{width:20px}.todo-reminder-content>span:last-child{flex-direction:column;gap:2px;min-width:0;display:flex}.todo-reminder-content small{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.todo-reminder-close{border-radius:var(--radius-pill);width:34px;height:34px;color:var(--text-tertiary);background:0 0;border:0;place-items:center;display:grid}.todo-reminder-close svg{width:17px}.profile-avatar{color:#fff;background:var(--avatar-color);border-radius:50%;place-items:center;width:72px;height:72px;display:grid}.profile-avatar img{object-fit:cover;border-radius:inherit;width:100%;height:100%}.profile-avatar svg{width:30px}.profile-avatar strong{font-size:22px}@media (width<=760px){body{overflow:hidden}.profile-avatar{width:58px;height:58px}}:root[data-theme=dark] body{color:var(--text-primary);background:var(--surface-primary)}.question-reference{border:1px solid var(--border);border-radius:6px;margin:8px 0;padding:18px;font-size:14px;line-height:1.7}.question-reference strong{font-weight:600}.question-reference small{color:var(--text-secondary);margin-top:12px;font-size:11px;display:block}.question-reference details{margin-top:12px}.note-sync-dialog{width:min(480px,100%)}.note-sync-dialog>footer{justify-content:flex-end;gap:8px;margin-top:22px;display:flex}.note-sync-dialog>footer button{align-items:center;gap:7px;display:inline-flex}.note-sync-dialog>footer svg{width:15px;height:15px}:where(button,a,summary,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--focus-color);outline-offset:0}::selection{background:color-mix(in srgb, var(--brand) 28%, transparent)}.ui-button{border:1px solid var(--border-strong);border-radius:var(--radius-pill);background:var(--surface-primary);min-height:34px;color:var(--text-primary);font:inherit;font-size:var(--text-sm);white-space:nowrap;cursor:pointer;transition:background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), box-shadow var(--motion-fast);justify-content:center;align-items:center;gap:6px;padding:0 14px;font-weight:600;line-height:1;text-decoration:none;display:inline-flex}.ui-button svg{flex-shrink:0;width:15px;height:15px}.ui-button:hover:not(:disabled){border-color:var(--border-strong);background:color-mix(in srgb, var(--text-primary) 4%, var(--surface-primary))}.ui-button.is-primary{background:var(--brand);color:var(--text-on-brand);border-color:#0000}.ui-button.is-primary:hover:not(:disabled){background:var(--brand-fill-hover)}.ui-button.is-ghost{color:var(--text-secondary);background:0 0;border-color:#0000}.ui-button.is-ghost:hover:not(:disabled){background:var(--surface-hover);color:var(--text-primary)}.ui-button.is-danger{color:var(--accent-red-strong)}.ui-button.is-danger:hover:not(:disabled){border-color:color-mix(in srgb, var(--accent-red) 40%, var(--border));background:var(--accent-red-subtle)}.ui-button.is-danger-solid{background:var(--accent-red-strong);color:#fff;border-color:#0000}.ui-button.is-danger-solid:hover:not(:disabled){background:color-mix(in srgb, var(--accent-red-strong) 88%, black)}.ui-button.is-small{min-height:28px;font-size:var(--text-xs);padding:0 11px}.ui-button.is-large{min-height:44px;font-size:var(--text-md);padding:0 20px}.ui-button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.ui-icon-button{border-radius:var(--radius-pill);width:32px;height:32px;color:var(--text-secondary);cursor:pointer;transition:background var(--motion-fast), color var(--motion-fast);background:0 0;border:0;flex:none;place-items:center;display:grid}.ui-icon-button:hover{background:var(--surface-hover);color:var(--text-primary)}.ui-icon-button[aria-pressed=true],.ui-icon-button[aria-expanded=true]{background:var(--surface-selected);color:var(--text-primary)}.ui-icon-button svg{width:17px;height:17px}.ui-icon-button.is-raised{border:1px solid var(--border);background:var(--surface-primary);width:36px;height:36px;color:var(--text-primary);box-shadow:var(--shadow-xs)}.ui-icon-button.is-raised:hover{background:color-mix(in srgb, var(--text-primary) 4%, var(--surface-primary))}.ui-segmented{border-radius:var(--radius-pill);background:var(--surface-secondary);gap:2px;padding:3px;display:inline-flex}.ui-segmented button{border-radius:var(--radius-pill);height:28px;color:var(--text-secondary);font:inherit;font-size:var(--text-sm);cursor:pointer;transition:background var(--motion-fast), color var(--motion-fast);background:0 0;border:0;align-items:center;gap:6px;padding:0 12px;font-weight:600;display:inline-flex}.ui-segmented button:hover{color:var(--text-primary)}.ui-segmented button[aria-pressed=true]{background:var(--surface-primary);color:var(--text-primary);box-shadow:var(--shadow-xs), 0 0 0 .5px var(--border)}.ui-segmented button small{color:var(--text-tertiary);font-variant-numeric:tabular-nums;font-size:11px}.ui-select,.ui-input{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-primary);height:34px;color:var(--text-primary);font:inherit;font-size:var(--text-sm);padding:0 12px}.ui-select{padding-right:28px}.ui-input:focus,.ui-select:focus{border-color:var(--focus-border);box-shadow:0 0 0 1px var(--focus-border);outline:none}.ui-field-box:has(>:is(input,textarea):not(.ui-input):focus){border-color:var(--field-focus-border,var(--focus-border));box-shadow:var(--field-focus-ring,0 0 0 1px var(--focus-border))}.ui-field-box>:is(input,textarea):not(.ui-input){outline:none}.ui-search{align-items:center;min-width:0;display:flex;position:relative}.ui-search>svg{width:15px;height:15px;color:var(--text-tertiary);pointer-events:none;position:absolute;left:12px}.ui-search>input{width:100%;padding-left:34px}.ui-page{background:radial-gradient(560px 300px at 6% -60px, var(--glow-blue), transparent 72%) no-repeat local, radial-gradient(480px 280px at 96% -20px, var(--glow-green), transparent 72%) no-repeat local, var(--surface-canvas);height:100%;overflow-y:auto}.ui-page-header{justify-content:space-between;align-items:center;gap:16px;min-height:44px;display:flex}.ui-page-header>div:first-child{flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-width:0;display:flex}.ui-page-header h1{color:var(--text-primary);font-size:var(--text-3xl);letter-spacing:-.015em;margin:0;font-weight:700;line-height:1.2}.ui-page-header p{color:var(--text-secondary);font-size:var(--text-md);margin:0;font-weight:600}.ui-page-actions{flex:none;align-items:center;gap:8px;display:flex}.ui-section{gap:10px;min-width:0;display:grid}.ui-section-head{align-items:baseline;gap:8px;min-height:30px;padding:0 4px;display:flex}.ui-section-head>:not(h2,small){align-self:center}.ui-section-head h2{color:var(--text-primary);font-size:var(--text-xl);letter-spacing:-.01em;margin:0;font-weight:700;line-height:30px}.ui-section-head>small{color:var(--text-secondary);font-size:var(--text-sm);font-variant-numeric:tabular-nums;font-weight:500}.ui-section-head>:is(h2,small)+:not(small){margin-left:auto}.ui-section-link{min-height:30px;color:var(--text-secondary);font:inherit;font-size:var(--text-sm);cursor:pointer;background:0 0;border:0;align-items:center;gap:2px;padding:0 2px;font-weight:500;text-decoration:none;display:inline-flex}.ui-section-link:hover{color:var(--text-primary)}.ui-section-link svg{width:14px;height:14px}.ui-section-add{border-radius:var(--radius-pill);width:30px;height:30px;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;place-items:center;display:grid}.ui-section-add:hover{background:var(--surface-hover);color:var(--text-primary)}.ui-section-add svg{width:17px;height:17px}.ui-surface,.ui-card{border:1px solid color-mix(in srgb, var(--border) 72%, transparent);border-radius:var(--radius-lg);background:var(--surface-primary);min-width:0;overflow:hidden}:root[data-theme=dark] :is(.ui-surface,.ui-card){border-color:color-mix(in srgb, var(--border) 55%, transparent)}.ui-surface-empty{color:var(--text-secondary);font-size:var(--text-sm);margin:0;padding:18px 20px;line-height:1.6}.ui-list{margin:0;padding:0;list-style:none}.ui-list>li{position:relative}.ui-list>li+li:before{content:"";top:0;right:0;left:var(--row-inset,16px);border-top:1px solid var(--separator);position:absolute}.ui-hero{--hero-tint:var(--brand);--hero-ink:#fff;isolation:isolate;border-radius:var(--radius-lg);background:radial-gradient(320px 240px at 100% 0, #ffffff42, transparent 70%), linear-gradient(135deg, #0000, #0003), var(--hero-tint);color:var(--hero-ink);box-shadow:0 6px 16px color-mix(in srgb, var(--hero-tint) 24%, transparent);padding:24px;position:relative}:root[data-theme=dark] .ui-hero{box-shadow:0 6px 20px color-mix(in srgb, var(--hero-tint) 16%, transparent)}.ui-hero-art{z-index:-1;border-radius:inherit;pointer-events:none;position:absolute;inset:0;overflow:hidden}.ui-hero-art>svg{color:#ffffff24;width:210px;height:210px;position:absolute;bottom:-40px;right:-10px}.ui-hero-title{font-size:var(--text-2xl);letter-spacing:-.01em;margin:0;font-weight:700;line-height:1.25}.ui-hero-detail{color:color-mix(in srgb, var(--hero-ink) 90%, transparent);font-size:var(--text-md);align-items:center;gap:7px;margin:6px 0 0;font-weight:500;line-height:1.5;display:flex}.ui-hero-live{background:currentColor;border-radius:50%;flex:none;width:7px;height:7px}.ui-hero-actions{flex-wrap:wrap;gap:8px;display:flex}.ui-hero-primary,.ui-hero-secondary{border-radius:var(--radius-pill);min-height:44px;font:inherit;font-size:var(--text-md);white-space:nowrap;cursor:pointer;transition:background var(--motion-fast), opacity var(--motion-fast);border:1px solid #0000;justify-content:center;align-items:center;gap:7px;padding:0 20px;font-weight:650;text-decoration:none;display:inline-flex}.ui-hero-primary{color:#000000d1;background:#fff}.ui-hero-primary:hover:not(:disabled){background:#ffffffe6}.ui-hero-secondary{border-color:color-mix(in srgb, var(--hero-ink) 24%, transparent);background:color-mix(in srgb, var(--hero-ink) 16%, transparent);color:var(--hero-ink)}.ui-hero-secondary:hover:not(:disabled){background:color-mix(in srgb, var(--hero-ink) 24%, transparent)}.ui-hero :is(.ui-hero-primary,.ui-hero-secondary) svg{flex:none;width:16px;height:16px}.ui-hero :is(.ui-hero-primary,.ui-hero-secondary):disabled{opacity:.7;cursor:default}.ui-hero :focus-visible{outline-color:#ffffffb3}.ui-icon-tile{--tile:var(--accent-blue);--tile-size:30px;width:var(--tile-size);height:var(--tile-size);border-radius:calc(var(--tile-size) * .265);background:var(--tile);color:#fff;flex:none;place-items:center;display:grid}.ui-icon-tile svg{width:calc(var(--tile-size) * .54);height:calc(var(--tile-size) * .54);stroke-width:2.2px}.ui-icon-tile svg.xiaocheng-mark{width:calc(var(--tile-size) * .7);height:calc(var(--tile-size) * .7)}.ui-icon-tile.is-small{--tile-size:24px}.ui-icon-tile[data-tone=green]{--tile:var(--brand-strong)}.ui-icon-tile[data-tone=blue]{--tile:var(--accent-blue)}.ui-icon-tile[data-tone=orange]{--tile:var(--accent-orange)}.ui-icon-tile[data-tone=red]{--tile:var(--accent-red)}.ui-icon-tile[data-tone=purple]{--tile:var(--accent-purple)}.ui-icon-tile[data-tone=calendar]{--tile:var(--accent-calendar)}.ui-icon-tile[data-tone=yellow]{--tile:var(--accent-yellow);color:#000000c7}.ui-icon-tile[data-tone=gray]{--tile:#8e93a6}.ui-chip{--chip-fg:var(--text-secondary);--chip-bg:var(--surface-secondary);border-radius:var(--radius-pill);background:var(--chip-bg);height:20px;color:var(--chip-fg);white-space:nowrap;align-items:center;gap:5px;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.ui-chip:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.ui-chip.is-plain:before{display:none}.ui-chip[data-tone=red]{--chip-fg:var(--accent-red-strong);--chip-bg:var(--accent-red-subtle)}.ui-chip[data-tone=orange]{--chip-fg:var(--accent-orange-strong);--chip-bg:var(--accent-orange-subtle)}.ui-chip[data-tone=yellow]{--chip-fg:var(--accent-yellow-strong);--chip-bg:var(--accent-yellow-subtle)}.ui-chip[data-tone=green]{--chip-fg:var(--brand-ink);--chip-bg:var(--brand-tint)}.ui-chip[data-tone=blue]{--chip-fg:var(--accent-blue-strong);--chip-bg:var(--accent-blue-subtle)}.ui-chip[data-tone=purple]{--chip-fg:var(--accent-purple-strong);--chip-bg:var(--accent-purple-subtle)}.ui-empty,.section-empty{text-align:center;color:var(--text-secondary);align-content:center;justify-items:center;gap:6px;padding:48px 24px;display:grid}.ui-empty>span,.section-empty>span{border-radius:var(--radius-md);background:var(--surface-secondary);width:52px;height:52px;color:var(--text-secondary);place-items:center;margin-bottom:6px;display:grid}.ui-empty>span svg,.section-empty>span svg{width:24px;height:24px}.ui-empty h2,.section-empty h2{color:var(--text-primary);font-size:var(--text-lg);margin:0;font-weight:700}.ui-empty p,.section-empty p{max-width:420px;font-size:var(--text-sm);margin:0;line-height:1.7}.ui-facts{border:1px solid var(--separator);border-radius:var(--radius-sm);background:var(--separator);grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1px;margin:0;display:grid;overflow:hidden}.ui-facts>div{background:var(--surface-primary);gap:4px;padding:12px 14px;display:grid}.ui-facts dt{color:var(--text-tertiary);font-size:11px;font-weight:600}.ui-facts dd{color:var(--text-primary);font-size:var(--text-sm);font-variant-numeric:tabular-nums;margin:0;font-weight:600}.ui-dialog{border-radius:var(--radius-xl);width:min(560px,100vw - 32px);max-height:calc(100dvh - 48px);color:var(--text-primary);background:0 0;border:0;padding:0;overflow:visible}.ui-dialog.is-sm{width:min(440px,100vw - 32px)}.ui-dialog.is-lg{width:min(760px,100vw - 32px)}.ui-dialog::backdrop{background:var(--surface-overlay);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.ui-dialog[open]{animation:dialog-in var(--motion-base) var(--ease-out)}.ui-dialog-panel{border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface-primary);max-height:calc(100dvh - 48px);box-shadow:var(--shadow-pop);flex-direction:column;display:flex;overflow:hidden}.ui-dialog-header{justify-content:space-between;align-items:flex-start;gap:16px;padding:22px 20px 0 24px;display:flex}.ui-dialog-header h2{font-size:var(--text-xl);margin:0;font-weight:700}.ui-dialog-header p{color:var(--text-secondary);font-size:var(--text-sm);margin:6px 0 0;line-height:1.6}.ui-dialog-body{gap:16px;padding:18px 24px 24px;display:grid;overflow-y:auto}.ui-dialog-footer{border-top:1px solid var(--separator);background:var(--surface-sunken);justify-content:flex-end;gap:8px;padding:14px 20px;display:flex}@media (prefers-reduced-motion:reduce){.ui-dialog[open]{animation:none}}.form-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px 14px;display:grid}.form-field{gap:6px;min-width:0;display:grid}.form-field>span,.form-field>legend{color:var(--text-secondary);font-size:var(--text-xs);font-weight:650}.form-field input:not([type=checkbox]):not([type=radio]),.form-field select,.form-field textarea{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-primary);width:100%;min-height:38px;color:var(--text-primary);font:inherit;font-size:var(--text-md);padding:0 12px}.form-field textarea{resize:vertical;min-height:76px;padding:10px 12px;line-height:1.55}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:var(--focus-border);box-shadow:0 0 0 1px var(--focus-border);outline:none}.form-field small{color:var(--text-tertiary);font-size:var(--text-xs);line-height:1.5}.form-check{font-size:var(--text-md);cursor:pointer;align-items:center;gap:10px;display:flex}.form-check input{width:18px;height:18px;accent-color:var(--brand-strong)}.dialog-form{gap:16px;display:grid}.ui-dialog-message{color:var(--text-secondary);font-size:var(--text-md);margin:0;line-height:1.6}.form-error{color:var(--status-danger);font-size:var(--text-sm);margin:0;line-height:1.5}.color-swatches{flex-wrap:wrap;gap:10px;display:flex}.color-swatches button{background:var(--swatch);color:#fff;cursor:pointer;border:0;border-radius:50%;place-items:center;width:28px;height:28px;padding:0;display:grid}.color-swatches button[aria-pressed=true]{box-shadow:0 0 0 2px var(--surface-primary), 0 0 0 4px var(--swatch)}.color-swatches svg{width:15px;height:15px}.choice-chips{flex-wrap:wrap;gap:6px;display:flex}.choice-chips button{border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--surface-primary);min-width:38px;height:32px;color:var(--text-secondary);font:inherit;font-size:var(--text-sm);font-variant-numeric:tabular-nums;cursor:pointer;padding:0 12px;font-weight:600}.choice-chips button:hover{border-color:var(--border-strong)}.choice-chips button[aria-pressed=true]{border-color:color-mix(in srgb, var(--brand) 55%, var(--border));background:var(--brand-tint);color:var(--brand-ink)}.ui-dialog-footer .spacer{flex:1}fieldset.form-field{border:0;min-width:0;margin:0;padding:0}fieldset.form-field>legend{margin-bottom:6px;padding:0}.ui-menu{display:inline-flex;position:relative}.ui-menu-pop{z-index:40;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-primary);min-width:196px;max-height:min(460px,100dvh - 96px);box-shadow:var(--shadow-pop);animation:menu-in var(--motion-fast) var(--ease-out);padding:6px;display:grid;position:absolute;top:calc(100% + 6px);overflow:auto}.ui-menu-pop.is-top{top:auto;bottom:calc(100% + 6px)}.ui-menu-pop.is-end{right:0}.ui-menu-pop.is-start{left:0}.ui-menu-pop button{border-radius:var(--radius-xs);min-height:34px;color:var(--text-primary);font:inherit;font-size:var(--text-sm);text-align:left;white-space:nowrap;cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;padding:0 10px;display:flex}.ui-menu-pop button:hover,.ui-menu-pop button:focus-visible{background:var(--surface-hover);outline:none}.ui-menu-pop button:disabled{opacity:.45;cursor:default}.ui-menu-pop button>svg{width:16px;height:16px;color:var(--text-secondary);flex:none}.ui-menu-pop button>span{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.ui-menu-pop button>.ui-menu-dot{border-radius:50%;flex:none;width:10px;height:10px;margin:0 3px}.ui-menu-pop button.is-danger,.ui-menu-pop button.is-danger>svg{color:var(--accent-red-strong)}.ui-menu-pop .ui-menu-check{color:var(--brand-ink);margin-left:8px}.ui-menu-pop hr{border:0;border-top:1px solid var(--separator);margin:4px 6px}.ui-menu-pop .ui-menu-detail,.ui-menu-pop .ui-menu-shortcut{box-shadow:none;color:var(--text-tertiary);font:inherit;font-size:var(--text-xs);letter-spacing:.02em;background:0 0;border:0;flex:none;align-items:center;margin-left:16px;padding:0;display:inline-flex}.ui-menu-pop button>.ui-menu-chevron{width:14px;height:14px;color:var(--text-tertiary);margin-left:2px;margin-right:-4px}.ui-menu-pop button[aria-expanded=true]{background:var(--surface-hover)}.ui-menu-pop.has-panel>:not(.ui-menu-panel),.ui-menu-pop [hidden]{display:none}.ui-menu-panel{display:grid}.ui-menu-label{color:var(--text-tertiary);font-size:var(--text-xs);padding:6px 10px 2px;font-weight:600}.ui-menu-pop button.ui-menu-back{border-bottom:1px solid var(--separator);border-radius:var(--radius-xs) var(--radius-xs) 0 0;min-height:32px;color:var(--text-secondary);margin-bottom:4px;padding-left:6px;font-weight:600}.ui-menu-pop button.ui-menu-back>svg{width:15px;height:15px}@keyframes menu-in{0%{opacity:0;transform:translateY(-4px)}}@media (prefers-reduced-motion:reduce){.ui-menu-pop{animation:none}}.app-frame{--sidebar-width:264px;--sidebar-rail:56px;background:var(--surface-canvas);height:100dvh;min-height:0;color:var(--text-primary);grid-template-columns:auto minmax(0,1fr);display:grid}.app-sidebar{z-index:30;width:var(--sidebar-width);border-right:1px solid var(--border);background:var(--surface-canvas);min-height:0;transition:width var(--motion-base) ease;flex-direction:column;gap:2px;padding:10px 10px 12px;display:flex}.app-sidebar.is-collapsed{width:var(--sidebar-rail);align-items:center}.sidebar-head{align-items:center;gap:2px;min-height:40px;margin-bottom:2px;display:flex}.app-sidebar.is-collapsed .sidebar-head{flex-direction:column;gap:6px}.sidebar-icon-button{border-radius:var(--radius-pill);width:30px;height:30px;color:var(--text-tertiary);cursor:pointer;background:0 0;border:0;flex-shrink:0;place-items:center;display:grid}.sidebar-icon-button:hover{background:var(--surface-hover);color:var(--text-primary)}.sidebar-icon-button svg{width:16px;height:16px}.sidebar-collapse{opacity:0;transition:opacity var(--motion-fast)}.app-sidebar:hover .sidebar-collapse,.sidebar-collapse:focus-visible,.app-sidebar.is-collapsed .sidebar-collapse{opacity:1}.sidebar-search{border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--surface-primary);width:100%;height:34px;color:var(--text-tertiary);font:inherit;font-size:var(--text-sm);cursor:pointer;align-items:center;gap:8px;margin-bottom:8px;padding:0 8px 0 12px;display:flex}.sidebar-search:hover{border-color:var(--border-strong);color:var(--text-secondary)}.sidebar-search>svg{flex:none;width:14px;height:14px}.sidebar-search kbd{margin-left:auto}.app-sidebar.is-collapsed .sidebar-search{justify-content:center;width:34px;padding:0}.app-sidebar.is-collapsed .sidebar-search>:not(svg){display:none}.sidebar-nav{gap:2px;width:100%;display:grid}.sidebar-nav a{border-radius:var(--radius-xs);min-height:34px;color:var(--text-secondary);font-size:var(--text-md);white-space:nowrap;align-items:center;gap:10px;padding:0 10px;font-weight:550;text-decoration:none;display:flex}.sidebar-nav a:hover{background:var(--surface-hover);color:var(--text-primary)}.sidebar-nav a.active{background:var(--brand-tint);color:var(--text-primary);font-weight:650}.sidebar-nav a>svg{width:17px;height:17px;color:var(--text-tertiary);flex-shrink:0}.sidebar-nav a.active>svg,.sidebar-nav a.active .sidebar-agent-mark{color:var(--brand-ink)}.sidebar-agent-mark{width:17px;height:17px;color:var(--mascot-ink,var(--text-secondary));flex:none;place-items:center;display:grid}.app-sidebar.is-collapsed .sidebar-nav a{justify-content:center;width:38px;padding:0}.app-sidebar.is-collapsed .sidebar-nav a>span:not(.sidebar-agent-mark){display:none}.sidebar-library{flex-direction:column;flex:1;width:100%;min-height:0;margin-top:12px;display:flex}.sidebar-library-scroll{overscroll-behavior:contain;scrollbar-width:thin;flex:1;min-height:0;margin:0 -8px;padding:0 8px;overflow-y:auto}.sidebar-library-links{border-top:1px solid var(--separator);gap:1px;padding-top:6px;display:grid}.sidebar-library-links a{border-radius:var(--radius-xs);min-height:30px;color:var(--text-secondary);font-size:var(--text-sm);align-items:center;gap:8px;padding:0 10px;text-decoration:none;display:flex}.sidebar-library-links a:hover{background:var(--surface-hover);color:var(--text-primary)}.sidebar-library-links a[aria-current=page]{background:var(--surface-selected);color:var(--text-primary)}.sidebar-library-links svg{width:15px;height:15px;color:var(--text-tertiary)}.sidebar-foot{gap:4px;width:100%;margin-top:auto;padding-top:8px;display:grid}.app-sidebar:not(.is-collapsed) .sidebar-library+.sidebar-foot{margin-top:0}.sidebar-foot-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px;min-width:0;display:flex;position:relative}.app-sidebar.is-collapsed .sidebar-foot-row{flex-direction:column;gap:6px}.sidebar-sync{min-width:0;color:var(--text-tertiary);font-size:var(--text-xs);flex:116px;align-items:center;gap:6px;margin:0;padding:0 8px;display:flex}.sidebar-sync span{overflow-wrap:anywhere}.sidebar-sync svg{flex-shrink:0;width:13px;height:13px}.sidebar-sync a{color:var(--brand-ink);flex:none;margin-left:auto;font-weight:550;text-decoration:none}.sidebar-sync.is-offline{color:var(--accent-orange-strong)}.sidebar-sync.is-conflict{color:var(--status-danger)}.app-sidebar.is-collapsed .sidebar-sync{flex:none;justify-content:center;padding:0}.app-sidebar.is-collapsed .sidebar-sync span{display:none}.sidebar-new{align-items:center;gap:2px;display:flex}.sidebar-new-note{border-radius:var(--radius-xs);min-height:34px;color:var(--text-secondary);font:inherit;font-size:var(--text-md);cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:10px;padding:0 10px;font-weight:500;display:flex}.sidebar-new-note:hover{background:var(--surface-hover);color:var(--text-primary)}.sidebar-new-note svg{width:16px;height:16px;color:var(--text-tertiary)}.app-sidebar.is-collapsed .sidebar-new{justify-content:center}.app-sidebar.is-collapsed .sidebar-new-note{flex:none;justify-content:center;width:38px;padding:0}.app-sidebar.is-collapsed .sidebar-new-note span{display:none}.sidebar-account{flex:1;min-width:0;position:relative}.app-sidebar.is-collapsed .sidebar-account{flex:none}.sidebar-account-button{border-radius:var(--radius-sm);width:100%;min-height:38px;color:var(--text-primary);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:4px 8px 4px 6px;display:flex}.sidebar-account-button:hover,.sidebar-account-button[aria-expanded=true]{background:var(--surface-hover)}.app-sidebar.is-collapsed .sidebar-account-button{justify-content:center;padding:3px}.sidebar-avatar{background:color-mix(in srgb, var(--avatar-color) 16%, var(--surface-primary));width:28px;height:28px;color:var(--avatar-color);border-radius:50%;flex-shrink:0;place-items:center;font-size:12px;font-weight:700;display:grid;overflow:hidden}.sidebar-avatar img{object-fit:cover;width:100%;height:100%}.sidebar-avatar svg{width:14px;height:14px}.sidebar-account-text{flex:1;min-width:0;display:grid}.sidebar-account-text strong{font-size:var(--text-md);text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.sidebar-account-chevron{width:14px;height:14px;color:var(--text-tertiary);flex:none}.app-sidebar.is-collapsed .sidebar-account-text,.app-sidebar.is-collapsed .sidebar-account-chevron{display:none}.account-menu{z-index:60;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-primary);width:256px;box-shadow:var(--shadow-pop);animation:account-menu-in var(--motion-fast) ease;padding:6px;display:grid;position:absolute;top:calc(100% + 4px);left:0}.account-menu-head{border-bottom:1px solid var(--separator);align-items:center;gap:10px;margin-bottom:4px;padding:8px 8px 10px;display:flex}.account-menu-head>span{gap:2px;min-width:0;display:grid}.account-menu-head strong{font-size:var(--text-md)}.account-menu-head small{color:var(--text-secondary);font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.account-menu [role=menuitem]{border-radius:var(--radius-xs);min-height:34px;color:var(--text-primary);font:inherit;font-size:var(--text-sm);text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;padding:0 10px;text-decoration:none;display:flex}.account-menu [role=menuitem]:hover,.account-menu [role=menuitem]:focus-visible{background:var(--surface-hover);outline:none}.account-menu [role=menuitem] svg{width:15px;height:15px;color:var(--text-secondary)}.account-menu [role=menuitem] em{color:var(--text-tertiary);font-size:var(--text-xs);margin-left:auto;font-style:normal}.account-menu hr{border:0;border-top:1px solid var(--separator);width:100%;margin:4px 0}@keyframes account-menu-in{0%{opacity:0;transform:translateY(-4px)}}.app-main{background:var(--surface-canvas);outline:none;min-width:0;min-height:0;overflow:hidden}.app-mobile-bar,.app-drawer-scrim{display:none}.route-loading{height:100%;color:var(--text-tertiary);place-items:center;display:grid}.route-loading svg{width:20px;height:20px}.skip-to-content{z-index:100;border-radius:var(--radius-pill);background:var(--brand);color:var(--text-on-brand);font-size:var(--text-sm);padding:8px 14px;font-weight:600;text-decoration:none;position:fixed;top:-60px;left:12px}.skip-to-content:focus{top:8px}@media (width<=900px){.app-frame{grid-template-rows:48px minmax(0,1fr);grid-template-columns:minmax(0,1fr)}.app-sidebar{width:min(var(--sidebar-width), 86vw);box-shadow:var(--shadow-pop);transition:transform var(--motion-base) ease;position:fixed;inset:0 auto 0 0;transform:translate(-105%)}.app-sidebar .sidebar-collapse{display:none}.is-drawer-open .app-sidebar{transform:none}.app-drawer-scrim{z-index:25;background:var(--surface-overlay);border:0;display:block;position:fixed;inset:0}.app-mobile-bar{border-bottom:1px solid var(--border);background:var(--surface-canvas);align-items:center;gap:4px;padding:0 8px;display:flex}.app-mobile-brand{color:inherit;margin-right:auto;text-decoration:none;display:flex}}@media (prefers-reduced-motion:reduce){.app-sidebar,.account-menu{transition:none;animation:none}}
