:root{color:var(--text);background:var(--background);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;text-rendering:optimizelegibility;--background:#eeede7;--sidebar-background:#f5f4ef;--editor-background:#fffefa;--text:#252522;--text-muted:#686861;--border:#d4d2c8;--accent:#4257a6;--accent-soft:#e9ebf5;--hover:#ebeae4;--selected:var(--accent-soft);--button-border:#cbd0e2;--button-background:#e9ebf5;--button-hover:#dde1f0;--button-hover-border:#cbd0e2;--icon-hover:#e8e7e1;--delete-hover:#f2dfdc;--gutter-background:#f8f7f2;--gutter-text:#aaa89f;--active-line:#4257a60d;--active-gutter:#4257a612;--active-gutter-text:#777b93;--selection:#dce1f2;--placeholder:#9c9b92;--error:#9d5149;--error-background:#fbefed;--error-border:#dfbbb6;--error-text:#773d36;--danger-background:#8c443d;--danger-hover:#783a34;--danger-text:#fffefa;--secondary-hover:#f2f1ec;--focus-ring:#4257a66b;--backdrop:#25252252;--search-match:#ffff0054;--search-match-selected:#ff6a0054;--syntax-comment:#88877f;--syntax-definition:#344e89;--syntax-reference:#5571aa;--syntax-number:#9a5d36;--syntax-string:#8d704f;--syntax-unit:#5f744f;--syntax-prefix:#71805b;--syntax-currency:#987044;--syntax-function:#70518a;--syntax-builtin-variable:#896578;--syntax-keyword:#8a6250;--syntax-operator:#6f7882;--syntax-punctuation:#8a8177;--editor-width:880px;--result-lane-width:184px;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--background:#18191b;--sidebar-background:#1e2023;--editor-background:#23262a;--text:#e8eaed;--text-muted:#9ca2aa;--border:#383c44;--accent:#7f9cf5;--accent-soft:#2d3755;--hover:#282b30;--selected:#303a58;--button-border:var(--border);--button-background:transparent;--button-hover:var(--hover);--button-hover-border:#4a5570;--icon-hover:var(--hover);--delete-hover:#33282c;--gutter-background:#1d2024;--gutter-text:#7e858e;--active-line:#7f9cf517;--active-gutter:#7f9cf521;--active-gutter-text:#c0c8dd;--selection:#3a4668;--placeholder:#7f8791;--error:#e07d75;--error-background:#352324;--error-border:#664043;--error-text:#efaaa5;--danger-background:#744442;--danger-hover:#86504c;--danger-text:#f2d9d6;--secondary-hover:var(--hover);--focus-ring:#7f9cf594;--backdrop:#08090b94;--search-match:#7f9cf53d;--search-match-selected:#a0baff5c;--selection-match:#8fcf9a3d;--syntax-comment:#858b93;--syntax-definition:#87a8ff;--syntax-reference:#a0baff;--syntax-number:#e2a56f;--syntax-string:#d3ad82;--syntax-unit:#8fcf9a;--syntax-prefix:#a5cc9a;--syntax-currency:#e0bd72;--syntax-function:#c29be8;--syntax-builtin-variable:#d49ab7;--syntax-keyword:#db987e;--syntax-operator:#aab1bc;--syntax-punctuation:#9299a3}*{box-sizing:border-box}body{background:var(--background);min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{color:inherit}.app-shell{grid-template-columns:232px minmax(0,1fr);min-height:100vh;display:grid}.notes-sidebar{border-right:1px solid var(--border);background:var(--sidebar-background);flex-direction:column;min-width:0;height:100vh;padding:18px 12px;display:flex;position:sticky;top:0}.brand{letter-spacing:.02em;font-size:14px;font-weight:700}.sidebar-heading,.drawer-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.sidebar-heading{padding:0 6px 16px}.new-note-button,.icon-button,.note-delete-button,.secondary-button,.danger-button{cursor:pointer;border-radius:4px;justify-content:center;align-items:center;display:inline-flex}.new-note-button{border:1px solid var(--button-border);background:var(--button-background);min-height:34px;color:var(--accent);gap:6px;padding:6px 9px;font-size:13px;font-weight:600}.new-note-button svg,.icon-button svg,.note-delete-button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:18px;height:18px}.new-note-button:hover{border-color:var(--button-hover-border);background:var(--button-hover)}.new-note-button:focus-visible,.icon-button:focus-visible,.note-option:focus-visible,.note-delete-button:focus-visible,.secondary-button:focus-visible,.danger-button:focus-visible,.note-heading input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.notes-navigation{flex-direction:column;flex:auto;min-height:0;display:flex;overflow-y:auto}.sidebar-footer,.drawer-footer{border-top:1px solid var(--border);flex-direction:column;align-items:stretch;gap:10px;padding-top:12px;display:flex}.note-transfer-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.note-transfer-controls .secondary-button{min-width:0;padding:8px 4px;font-size:12px}.note-transfer-controls button:last-of-type{grid-column:1/-1}.delete-error{overflow-wrap:anywhere}.sidebar-footer{justify-content:flex-start;padding-left:6px}.notes-list{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.note-row{border-radius:4px;grid-template-columns:minmax(0,1fr) 36px;align-items:center;display:grid}.note-row.selected{background:var(--selected)}.note-row:not(.selected):hover{background:var(--hover)}.note-option{cursor:pointer;text-align:left;background:0 0;border:0;border-radius:4px;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;min-height:50px;padding:7px 9px;font-size:13px;display:flex}.note-option-title{text-overflow:ellipsis;white-space:nowrap;width:100%;font-weight:550;display:block;overflow:hidden}.note-option small,.engine-status,.exchange-rates-date{color:var(--text-muted);font-size:11px}.note-delete-button,.icon-button{width:36px;height:36px;color:var(--text-muted);background:0 0;border:0}.note-delete-button:hover{background:var(--delete-hover);color:var(--error)}.icon-button:hover{background:var(--icon-hover);color:var(--text)}.workspace{background:var(--background);min-width:0;min-height:100vh;padding:32px}.mobile-header{display:none}.document-shell{width:min(var(--editor-width), 100%);margin-left:auto;margin-right:auto;padding:22px 0 72px}.note-heading{margin:0 16px 22px}.note-heading input{width:100%;color:var(--text);background:0 0;border:0;outline:0;padding:0 0 3px;font-size:26px;font-weight:600}.note-heading input::placeholder{color:var(--placeholder);opacity:1}.note-status{flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:17px;margin-top:3px;display:flex}.engine-status:empty{display:none}.storage-error,.calculation-error,.delete-error{border:1px solid var(--error-border);background:var(--error-background);color:var(--error-text);border-radius:4px;font-size:13px}.storage-error,.calculation-error{padding:9px 11px}.app-notifications{z-index:10;gap:8px;width:min(380px,100% - 32px);display:grid;position:fixed;top:16px;right:16px}.editor-host,.editor-layout,.editor-mount,.cm-editor{min-width:0}.editor-layout{border:1px solid var(--border);background:var(--editor-background);border-radius:4px;position:relative;overflow:hidden}.cm-editor{color:var(--text);background:0 0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:15px;line-height:1.55}.cm-editor.cm-focused{outline:2px solid var(--focus-ring);outline-offset:-2px}.cm-scroller{max-height:min(70vh,700px);font-family:inherit;line-height:inherit;overflow:auto}.cm-content{padding:18px calc(var(--result-lane-width) + 28px) 18px 20px;caret-color:var(--text)}.cm-line{padding:0}.cm-gutters{border-right:1px solid var(--border);background:var(--gutter-background);color:var(--gutter-text)}.editor-host .cm-editor .cm-gutters{border-right-color:var(--border);background:var(--gutter-background);color:var(--gutter-text)}.cm-lineNumbers .cm-gutterElement{text-align:right;min-width:34px;padding:0 8px 0 6px}.cm-activeLine,.editor-host .cm-editor .cm-activeLine{background:var(--active-line)}.cm-activeLineGutter,.editor-host .cm-editor .cm-activeLineGutter{background:var(--active-gutter);color:var(--active-gutter-text)}.cm-cursor,.cm-dropCursor{border-left-color:var(--text)}:root[data-theme=dark] .editor-host .cm-editor .cm-cursor,:root[data-theme=dark] .editor-host .cm-editor .cm-dropCursor{border-left:1.5px solid var(--text)}.cm-selectionBackground,.cm-focused .cm-selectionBackground{background:var(--selection)!important}::selection{background:var(--selection)!important}.cm-placeholder{color:var(--placeholder)}.tok-comment{color:var(--syntax-comment);font-style:italic}.tok-definition{color:var(--syntax-definition);font-weight:600}.tok-reference{color:var(--syntax-reference)}.tok-number{color:var(--syntax-number)}.tok-string{color:var(--syntax-string)}.tok-unit{color:var(--syntax-unit);font-weight:550}.tok-prefix{color:var(--syntax-prefix);font-weight:550}.tok-currency{color:var(--syntax-currency);font-weight:550}.tok-function{color:var(--syntax-function)}.tok-builtin-variable{color:var(--syntax-builtin-variable)}.tok-keyword{color:var(--syntax-keyword);font-weight:550}.tok-operator{color:var(--syntax-operator);font-weight:500}.tok-punctuation{color:var(--syntax-punctuation);font-weight:500}.tok-identifier{color:inherit}.tok-undefined{color:var(--error)}.cm-lintRange-error{-webkit-text-decoration:underline wavy var(--error);text-decoration:underline wavy var(--error);text-underline-offset:3px;background-image:none;text-decoration-thickness:1px}.cm-tooltip{border:1px solid var(--border);background:var(--editor-background);color:var(--text);border-radius:4px;font-family:ui-sans-serif,system-ui,sans-serif;font-size:12px}.editor-host .cm-editor .cm-tooltip{border-color:var(--border);background:var(--editor-background);color:var(--text)}.cm-editor .cm-tooltip-autocomplete ul li[aria-selected]{background:var(--selected);color:var(--text)}.cm-editor .cm-completionDetail{color:var(--text-muted)}.cm-editor .cm-completionInfo{white-space:pre-line;overflow-wrap:anywhere;max-width:min(420px,80vw);max-height:280px;overflow-y:auto}.completion-signature{margin-bottom:6px;font-family:ui-monospace,monospace}.cm-editor .cm-completionIcon-note:after{content:"n";color:var(--syntax-definition)}.cm-editor .cm-completionIcon-function:after{content:"f";color:var(--syntax-function)}.cm-editor .cm-completionIcon-variable:after{content:"v";color:var(--syntax-builtin-variable)}.cm-editor .cm-completionIcon-unit:after{content:"u";color:var(--syntax-unit)}.cm-editor .cm-completionIcon-currency:after{content:"$";color:var(--syntax-currency)}.cm-panels{border-color:var(--border);background:var(--sidebar-background);color:var(--text);font-family:ui-sans-serif,system-ui,sans-serif}.editor-host .cm-editor .cm-panels{border-color:var(--border);background:var(--sidebar-background);color:var(--text)}.cm-panels input,.cm-panels button{border:1px solid var(--border);background:var(--editor-background);color:var(--text);border-radius:4px}.editor-host .cm-editor .cm-panels input,.editor-host .cm-editor .cm-panels button{border-color:var(--border);background:var(--editor-background);color:var(--text)}.cm-panels button:hover,.editor-host .cm-editor .cm-panels button:hover{background:var(--hover)}:root[data-theme=dark] .editor-host .cm-editor .cm-searchMatch{background:var(--search-match)}:root[data-theme=dark] .editor-host .cm-editor .cm-searchMatch-selected{background:var(--search-match-selected)}:root[data-theme=dark] .editor-host .cm-editor .cm-selectionMatch{background:var(--selection-match)}:root[data-theme=dark] .editor-host .cm-editor .cm-diagnosticAction{border:1px solid var(--border);background:var(--hover);color:var(--text)}:root[data-theme=dark] .editor-host .cm-editor .cm-panel.cm-panel-lint ul [aria-selected]{background:var(--selected);color:var(--text)}:root[data-theme=dark] .editor-host .cm-editor .cm-lintRange-active{background:var(--active-line)}.result-lane{z-index:2;width:var(--result-lane-width);pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;top:0;bottom:0;right:16px;overflow:hidden}.line-result,.wrapped-result{color:var(--text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:14px;line-height:1.55}.line-result{text-align:right;white-space:nowrap;width:100%;padding-left:8px;display:block;position:absolute;right:0;overflow:hidden}.line-result.is-wrapped{visibility:hidden}.wrapped-result{text-align:right;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-user-select:none;user-select:none;padding-right:16px;display:block}.line-result-value{pointer-events:auto;cursor:pointer}.line-result-value[data-copy-state=copied]{color:var(--accent)}.line-result-value[data-copy-state=failed]{color:var(--error)}.loading-screen{background:var(--background);min-height:100vh;color:var(--text-muted);justify-content:center;align-items:center;font-size:14px;display:flex}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}dialog{color:var(--text)}dialog::backdrop{background:var(--backdrop)}.notes-drawer{border:0;border-right:1px solid var(--border);background:var(--sidebar-background);border-radius:0;width:min(320px,100% - 32px);max-width:none;height:100dvh;max-height:none;margin:0;padding:16px 14px 20px}.notes-drawer[open]{flex-direction:column;gap:12px;display:flex}.drawer-heading h2,.delete-modal h2{margin:0;font-size:17px;font-weight:650}.drawer-new-note{align-self:stretch;min-height:44px}.delete-modal{border:1px solid var(--border);background:var(--editor-background);border-radius:4px;width:min(420px,100% - 32px);padding:20px}.delete-modal-copy{color:var(--text-muted);margin:14px 0 0;font-size:14px;line-height:1.55}.delete-error{margin-top:14px;padding:9px 11px}.delete-modal-actions{justify-content:flex-end;gap:8px;margin-top:22px;display:flex}.secondary-button,.danger-button{border:1px solid var(--border);min-width:84px;min-height:38px;padding:8px 14px;font-size:14px;font-weight:600}.secondary-button{background:var(--editor-background)}.secondary-button:hover{background:var(--secondary-hover)}.danger-button{border-color:var(--danger-background);background:var(--danger-background);color:var(--danger-text)}.danger-button:hover{background:var(--danger-hover)}.secondary-button:disabled,.danger-button:disabled{cursor:default;opacity:.7}@media (max-width:640px){:root{--result-lane-width:108px}.app-shell{display:block}.notes-sidebar{display:none}.workspace{padding:0}.mobile-header{z-index:4;border-bottom:1px solid var(--border);background:var(--sidebar-background);grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;min-height:56px;padding:6px 8px;display:grid;position:sticky;top:0}.mobile-title{text-align:center;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.document-shell{padding:24px 12px 56px}.note-heading{margin:0 4px 18px}.note-heading input{font-size:22px}.app-notifications{width:calc(100% - 24px);top:68px;right:12px}.icon-button,.note-delete-button,.new-note-button,.secondary-button,.danger-button{min-height:44px}.icon-button,.note-delete-button{width:44px}.note-row{grid-template-columns:minmax(0,1fr) 44px}.cm-scroller{max-height:calc(100dvh - 176px)}.cm-content{padding:14px calc(var(--result-lane-width) + 16px) 14px 14px}.cm-lineNumbers .cm-gutterElement{min-width:30px;padding-left:4px;padding-right:6px}.result-lane{right:10px}.line-result,.wrapped-result{font-size:13px}.wrapped-result{padding-right:10px}}
