:root{--mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;--radius: 12px}:root,[data-theme=light]{color-scheme:light;--bg: #ffffff;--bg-sidebar: #f6f6f4;--bg-list: #fbfbfa;--bg-elevated: #ffffff;--text: #1c1c1e;--text-secondary: #45474c;--text-tertiary: #8a8d94;--border: #e7e7e3;--hover: rgba(0, 0, 0, .05);--accent: #b07d0a;--accent-strong: #c98e00;--accent-soft: rgba(224, 165, 10, .16);--danger: #d83a3f;--danger-text: #a4282c;--danger-soft: #fdecec;--shadow-lg: 0 12px 40px rgba(0, 0, 0, .18)}[data-theme=dark]{color-scheme:dark;--bg: #1c1c1e;--bg-sidebar: #161618;--bg-list: #1a1a1c;--bg-elevated: #2a2a2e;--text: #f2f2f5;--text-secondary: #b9bac0;--text-tertiary: #7c7e86;--border: #323236;--hover: rgba(255, 255, 255, .07);--accent: #f0b429;--accent-strong: #ffc23d;--accent-soft: rgba(240, 180, 41, .16);--danger: #f0595e;--danger-text: #ff8a8e;--danger-soft: rgba(216, 58, 63, .18);--shadow-lg: 0 12px 44px rgba(0, 0, 0, .55)}*{box-sizing:border-box}html,body{height:100%;margin:0;padding:0}body{font-family:var(--font);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:15px;line-height:1.5;overscroll-behavior:none}body:has(.app){overflow:hidden}input,button,select,textarea{font-family:inherit}option{background-color:var(--bg-elevated);color:var(--text)}::selection{background:var(--accent-soft)}*{scrollbar-width:thin;scrollbar-color:var(--text-tertiary) transparent}*::-webkit-scrollbar{width:9px;height:9px}*::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--text-tertiary) 55%,transparent);border-radius:6px;border:2px solid transparent;background-clip:content-box}*::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--text-tertiary) 80%,transparent);background-clip:content-box}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 16px;border:1px solid var(--border);border-radius:10px;background:var(--bg-elevated);color:var(--text);font-size:14px;font-weight:600;cursor:pointer;transition:background .13s ease,border-color .13s ease,opacity .13s ease,transform .05s ease}.btn:hover{background:var(--hover)}.btn:active{transform:translateY(1px)}.btn.sm{height:32px;padding:0 12px;font-size:13px}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}[data-theme=dark] .btn-primary{color:#1c1c1e}.btn-primary:hover{background:var(--accent-strong);border-color:var(--accent-strong)}.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn-danger:hover{opacity:.9;background:var(--danger)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:none;border-radius:10px;background:transparent;color:var(--text-secondary);cursor:pointer;flex:0 0 auto;transition:background .13s ease,color .13s ease}.icon-btn:hover:not(:disabled){background:var(--hover);color:var(--text)}.icon-btn:disabled{opacity:.4;cursor:default}.icon-btn.sm{width:30px;height:30px;border-radius:8px}.icon-btn.accent{color:var(--accent)}.icon-btn.accent:hover:not(:disabled){background:var(--accent-soft)}.icon-btn.danger:hover:not(:disabled){color:var(--danger);background:var(--danger-soft)}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:var(--accent);color:#fff;flex:0 0 auto}.note-prose{flex:1 0 auto;width:100%;outline:none;color:var(--text);font-size:16px;line-height:1.7;padding:18px clamp(16px,2.2vw,28px) 16vh;word-wrap:break-word;-webkit-tap-highlight-color:transparent}.note-prose:focus{outline:none}.note-prose>*+*{margin-top:.75em}.note-prose p{margin:0}.note-prose h1,.note-prose h2,.note-prose h3{line-height:1.25;font-weight:700;margin:1.2em 0 .3em;color:var(--text)}.note-prose h1{font-size:1.9em}.note-prose h2{font-size:1.5em}.note-prose h3{font-size:1.22em}.note-prose ul,.note-prose ol{padding-left:1.5em;margin:0}.note-prose li{margin:.2em 0}.note-prose li p{margin:0}.note-prose a{color:var(--accent);text-decoration:underline;text-underline-offset:2px;cursor:pointer}.note-prose blockquote{border-left:3px solid var(--accent);margin:0;padding:.2em 0 .2em 1em;color:var(--text-secondary)}.note-prose code{font-family:var(--mono);font-size:.88em;background:var(--hover);padding:.12em .36em;border-radius:5px}.note-prose pre{background:var(--bg-sidebar);border:1px solid var(--border);border-radius:10px;padding:14px 16px;overflow-x:auto;font-family:var(--mono);font-size:.9em;line-height:1.5}.note-prose pre code{background:none;padding:0;font-size:inherit}.note-prose hr{border:none;border-top:1px solid var(--border);margin:1.4em 0}.note-prose mark{background:#ffe16a;color:#1c1c1e;padding:.05em .15em;border-radius:3px}.note-prose ul[data-type=taskList]{list-style:none;padding-left:.2em}.note-prose ul[data-type=taskList] li{display:flex;align-items:flex-start;gap:.6em;margin:.3em 0}.note-prose ul[data-type=taskList] li>label{flex:0 0 auto;margin-top:.28em;-webkit-user-select:none;user-select:none}.note-prose ul[data-type=taskList] li>div{flex:1 1 auto;min-width:0}.note-prose ul[data-type=taskList] input[type=checkbox]{width:17px;height:17px;cursor:pointer;accent-color:var(--accent)}.note-prose ul[data-type=taskList] li[data-checked=true]>div{color:var(--text-tertiary);text-decoration:line-through}.note-prose p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;height:0;pointer-events:none;color:var(--text-tertiary)}@media (max-width: 640px){input,select,textarea{font-size:16px}.note-prose{padding:14px max(14px,env(safe-area-inset-right)) 14vh max(14px,env(safe-area-inset-left))}}.note-prose img{max-width:100%;height:auto;border-radius:8px;display:block;margin:.5em 0}.note-prose .note-img-wrap{position:relative;display:inline-block;max-width:100%;margin:.5em 0;line-height:0}.note-prose .note-img-wrap img{margin:0}.note-img-handle{position:absolute;right:-5px;bottom:-5px;width:14px;height:14px;border:2px solid var(--accent);background:var(--bg-elevated);border-radius:3px;cursor:nwse-resize;opacity:0;transition:opacity .12s ease;touch-action:none;-webkit-user-select:none;user-select:none}.note-img-wrap:hover .note-img-handle,.note-img-wrap.ProseMirror-selectednode .note-img-handle{opacity:1}.note-prose[contenteditable=false] .note-img-handle{display:none}.note-prose img.ProseMirror-selectednode,.note-img-wrap.ProseMirror-selectednode img{outline:2px solid var(--accent);outline-offset:1px}.note-prose .tableWrapper{overflow-x:auto;margin:.5em 0}.note-prose table{border-collapse:collapse;table-layout:fixed;width:100%;margin:.5em 0;overflow:hidden}.note-prose th,.note-prose td{position:relative;border:1px solid var(--border);padding:6px 10px;vertical-align:top;text-align:left;min-width:3em}.note-prose th{background:var(--bg-sidebar);font-weight:600}.note-prose .selectedCell:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--accent-soft);pointer-events:none}.note-prose .column-resize-handle{position:absolute;right:-2px;top:0;bottom:-2px;width:4px;background:var(--accent);pointer-events:none}.note-prose .hljs-comment,.note-prose .hljs-quote{color:#8a8d94;font-style:italic}.note-prose .hljs-keyword,.note-prose .hljs-selector-tag,.note-prose .hljs-built_in,.note-prose .hljs-name,.note-prose .hljs-tag{color:#b07d0a}.note-prose .hljs-string,.note-prose .hljs-attr,.note-prose .hljs-addition,.note-prose .hljs-regexp{color:#2e7d32}.note-prose .hljs-number,.note-prose .hljs-literal,.note-prose .hljs-variable,.note-prose .hljs-type{color:#c2410c}.note-prose .hljs-title,.note-prose .hljs-section{color:#1d4ed8}.note-prose .hljs-attribute,.note-prose .hljs-symbol,.note-prose .hljs-meta{color:#7c3aed}.note-prose .hljs-deletion{color:#b91c1c}.note-prose .hljs-emphasis{font-style:italic}.note-prose .hljs-strong{font-weight:700}[data-theme=dark] .note-prose .hljs-comment,[data-theme=dark] .note-prose .hljs-quote{color:#7c7e86}[data-theme=dark] .note-prose .hljs-keyword,[data-theme=dark] .note-prose .hljs-selector-tag,[data-theme=dark] .note-prose .hljs-built_in,[data-theme=dark] .note-prose .hljs-name,[data-theme=dark] .note-prose .hljs-tag{color:#f0b429}[data-theme=dark] .note-prose .hljs-string,[data-theme=dark] .note-prose .hljs-attr,[data-theme=dark] .note-prose .hljs-addition,[data-theme=dark] .note-prose .hljs-regexp{color:#86efac}[data-theme=dark] .note-prose .hljs-number,[data-theme=dark] .note-prose .hljs-literal,[data-theme=dark] .note-prose .hljs-variable,[data-theme=dark] .note-prose .hljs-type{color:#fdba74}[data-theme=dark] .note-prose .hljs-title,[data-theme=dark] .note-prose .hljs-section{color:#93c5fd}[data-theme=dark] .note-prose .hljs-attribute,[data-theme=dark] .note-prose .hljs-symbol,[data-theme=dark] .note-prose .hljs-meta{color:#c4b5fd}[data-theme=light] .note-prose .hljs-comment,[data-theme=light] .note-prose .hljs-quote{color:#8a8d94}[data-theme=light] .note-prose .hljs-keyword,[data-theme=light] .note-prose .hljs-selector-tag,[data-theme=light] .note-prose .hljs-built_in,[data-theme=light] .note-prose .hljs-name,[data-theme=light] .note-prose .hljs-tag{color:#b07d0a}[data-theme=light] .note-prose .hljs-string,[data-theme=light] .note-prose .hljs-attr,[data-theme=light] .note-prose .hljs-addition,[data-theme=light] .note-prose .hljs-regexp{color:#2e7d32}[data-theme=light] .note-prose .hljs-number,[data-theme=light] .note-prose .hljs-literal,[data-theme=light] .note-prose .hljs-variable,[data-theme=light] .note-prose .hljs-type{color:#c2410c}[data-theme=light] .note-prose .hljs-title,[data-theme=light] .note-prose .hljs-section{color:#1d4ed8}[data-theme=light] .note-prose .hljs-attribute,[data-theme=light] .note-prose .hljs-symbol,[data-theme=light] .note-prose .hljs-meta{color:#7c3aed}[data-theme=light] .note-prose .hljs-deletion{color:#b91c1c}.print-portal{display:none}@media print{body.is-printing>*:not(.print-portal){display:none!important}.print-portal{display:block!important;background:#fff;color:#1c1c1e;padding:0}.print-portal .print-portal-title{font-size:26px;font-weight:800;line-height:1.2;margin:0 0 16px;color:#1c1c1e}.print-portal .note-prose{padding:0}.print-portal .note-prose pre,.print-portal .note-prose code{white-space:pre-wrap;word-break:break-word}.print-portal .note-prose img{max-width:100%;height:auto}.print-portal .note-img-handle{display:none}.print-portal .note-prose table{width:100%;table-layout:fixed}@page{margin:16mm}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.toast-wrap.svelte-1cpok13{position:fixed;left:50%;bottom:24px;transform:translate(-50%);display:flex;flex-direction:column;gap:8px;z-index:200;width:max-content;max-width:calc(100vw - 32px);pointer-events:none}.toast.svelte-1cpok13{display:flex;align-items:center;gap:12px;padding:11px 12px 11px 16px;border-radius:12px;background:var(--bg-elevated);color:var(--text);border:1px solid var(--border);box-shadow:var(--shadow-lg);font-size:14px;pointer-events:auto}.toast-error.svelte-1cpok13{border-color:var(--danger);background:var(--danger-soft);color:var(--danger-text)}.toast-success.svelte-1cpok13{border-color:var(--accent)}.msg.svelte-1cpok13{line-height:1.4}.close.svelte-1cpok13{display:inline-flex;border:none;background:transparent;color:inherit;opacity:.6;cursor:pointer;padding:2px;border-radius:6px}.close.svelte-1cpok13:hover{opacity:1}.cookie.svelte-1xqvkrg{position:fixed;left:50%;bottom:16px;transform:translate(-50%);z-index:150;width:min(680px,calc(100vw - 24px));display:flex;align-items:center;gap:14px;padding:12px 16px;background:var(--bg-elevated);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-lg)}.cookie-msg.svelte-1xqvkrg{margin:0;flex:1 1 auto;font-size:13px;line-height:1.45;color:var(--text-secondary)}.cookie-link.svelte-1xqvkrg{color:var(--accent);text-decoration:underline;white-space:nowrap}.cookie-actions.svelte-1xqvkrg{display:flex;gap:8px;flex:0 0 auto}@media (max-width: 560px){.cookie.svelte-1xqvkrg{flex-direction:column;align-items:stretch;gap:10px}.cookie-actions.svelte-1xqvkrg{justify-content:flex-end}}
