:root{--bg: #edf1f7;--surface: rgba(255, 255, 255, .82);--surface-strong: #ffffff;--surface-soft: #f7f8fb;--line: #d8dde7;--line-strong: #c8d1e0;--text: #182033;--muted: #7b869f;--blue: #1d6fe8;--blue-dark: #175ec4;--danger: #cf4a4a;--shadow: 0 18px 46px rgba(23, 32, 51, .08)}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;font-family:Manrope,sans-serif;color:var(--text);background:radial-gradient(circle at top left,rgba(29,111,232,.14),transparent 24%),radial-gradient(circle at bottom right,rgba(50,160,114,.12),transparent 22%),linear-gradient(180deg,#edf1f7,#f6f8fc)}button,input,textarea{font:inherit}button{cursor:pointer}input,[contenteditable=true]{outline:none}.loading-screen{min-height:100vh;display:grid;place-items:center;padding:24px}.loading-card{width:min(100%,560px);padding:32px;border:1px solid rgba(216,221,231,.92);border-radius:28px;background:#ffffffe6;box-shadow:var(--shadow)}.eyebrow{margin:0 0 10px;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--blue)}.loading-card h1,.editor-empty h3{margin:0 0 10px;font-size:clamp(2rem,4vw,3rem);line-height:.98}.loading-card p,.editor-empty p{margin:0;color:var(--muted);line-height:1.7}.app-shell{display:grid;grid-template-columns:220px 400px 1fr;min-height:100vh}.app-shell.editor-expanded{grid-template-columns:0 280px 1fr}.app-shell.editor-expanded .sidebar{padding:0;border-right:0;overflow:hidden}.app-shell.editor-expanded .editor-panel{border-right:0}.sidebar,.list-panel,.editor-panel{min-width:0;border-right:1px solid var(--line);background:#f7f8fbd1}.sidebar{padding:16px 10px 20px}.list-panel{display:flex;flex-direction:column}.editor-panel{background:#ffffffb3}.mobile-panel-nav{display:none}.sidebar-search,.panel-search{display:flex;align-items:center;gap:10px;min-height:42px;padding:0 14px;border:1px solid var(--line);border-radius:16px;background:#ffffffc7;color:var(--muted)}.sidebar-search input,.panel-search input{width:100%;border:0;background:transparent;color:var(--text)}.sidebar-section{margin-top:18px}.section-title-row,.panel-header-row,.attachments-header,.editor-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title-row h2,.panel-header h2,.attachments-header h3{margin:0;font-size:1rem}.section-actions,.panel-actions,.editor-actions,.attachment-actions,.tag-modal-actions{display:flex;align-items:center;gap:10px}.icon-button,.round-button,.tag-item-more,.tool-button{display:inline-grid;place-items:center;border:0;background:transparent}.icon-button{width:28px;height:28px;border-radius:12px;color:var(--muted)}.icon-button.subtle{background:#1720330f}.muted{color:#afb7c7;font-weight:700}.view-list,.tag-list,.item-list,.attachments-list{display:grid;gap:8px}.view-item,.tag-item,.note-item,.file-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid transparent;border-radius:14px;background:transparent;text-align:left}.view-item:hover,.view-item.active,.note-item:hover,.note-item.active,.file-item:hover,.file-item.active,.tag-item:hover,.tag-item.active{border-color:#1d6fe83d;background:#1d6fe814}.view-label,.tag-item-main{display:flex;align-items:center;gap:10px;min-width:0}.tag-item{border-color:color-mix(in srgb,var(--tag-accent, #9db4d9),white 42%);background:color-mix(in srgb,var(--tag-accent, #9db4d9),white 82%)}.tag-item.active,.tag-item:hover{border-color:color-mix(in srgb,var(--tag-accent, #9db4d9),black 10%);background:color-mix(in srgb,var(--tag-accent, #9db4d9),white 70%)}.tag-item-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag-item-symbol,.tag-suggestion-symbol{width:24px;height:24px;display:inline-grid;place-items:center;border-radius:999px;background:#ffffffb3;flex:0 0 auto}.tag-item-side{display:flex;align-items:center;gap:8px}.tag-item-more{width:24px;height:24px;border-radius:999px;background:#ffffffb8;color:var(--muted)}.tag-item-favorite,.star-mark,.ghost-button.is-starred{color:#d5a100}.panel-header{padding:16px 14px 14px;border-bottom:1px solid var(--line)}.round-button{width:36px;height:36px;border-radius:999px;background:#ffffffeb;color:var(--muted);box-shadow:0 6px 16px #1720330f}.round-button.primary{background:var(--blue);color:#fff}.round-button.active-filter{color:#d5a100}.item-list{padding:12px;align-content:start;overflow:auto}.note-item,.file-item,.attachment-card{background:#ffffffa3}.note-title,.file-name{display:block;font-weight:700}.note-preview,.note-date,.file-size{display:block;margin-top:4px;color:var(--muted);font-size:.88rem}.editor,.editor-empty{height:100%;padding:24px}.editor-empty{display:grid;place-content:center;justify-items:center;text-align:center;gap:12px}.editor{display:grid;grid-template-rows:auto auto auto auto minmax(420px,1fr) auto;gap:16px}.editor.note-editor-layout{grid-template-rows:auto auto minmax(420px,1fr) auto;gap:18px;padding-top:0}.file-preview-panel{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:18px;height:100%;padding:8px 24px 24px;box-sizing:border-box}.file-preview-panel .editor-topbar{gap:16px;flex-wrap:wrap}.file-preview-panel .status-pill{align-self:center}.file-preview-panel .editor-actions{justify-content:flex-end;flex-wrap:wrap}.status-pill{padding:8px 12px;border-radius:999px;background:#1d6fe81a;color:var(--blue);font-size:.85rem;font-weight:800}.note-status-pill{min-width:170px;border:1px solid var(--line);background:#ffffffeb;color:var(--muted);text-align:center;justify-content:center}.note-status-wrap{position:relative}.note-status-pill{display:inline-flex;align-items:center;gap:8px;transition:border-color .18s ease,background .18s ease,color .18s ease}.status-dot{width:8px;height:8px;border-radius:999px;flex:0 0 auto;transition:background .18s ease,opacity .18s ease,transform .18s ease}.status-dot.is-saved{background:#16a34a}.status-dot.is-saving{background:#f59e0b;animation:statusPulse 1s ease-in-out infinite}.status-dot.is-info{background:var(--blue)}.note-status-pill.is-saving{border-color:#f59e0b47;background:#fffcf5f5;color:#8a5a00}.note-status-pill.is-saved{border-color:#16a34a38;background:#f8fffaf5;color:#137a39}.note-status-pill.is-info{border-color:#1d6fe833;background:#f7fafff5;color:#5376a5}@keyframes statusPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.85)}}.ghost-button,.primary-button,.attach-button,.link-button{min-height:40px;padding:0 14px;border-radius:12px;border:1px solid var(--line);background:#ffffffc2;color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:8px}.ghost-button.icon-only{width:40px;min-width:40px;padding:0}.desktop-only{display:inline-flex}.ghost-button.danger,.link-button.danger{color:var(--danger)}.primary-button,.attach-button{border:0;background:var(--blue);color:#fff;font-weight:800}.tags-input{width:100%;border:1px solid var(--line);border-radius:18px;background:var(--surface-strong)}.tags-field{position:relative}.tags-input{min-height:46px;padding:0 16px}.tag-suggestions,.context-menu{position:absolute;z-index:40;padding:10px;border:1px solid rgba(216,221,231,.96);border-radius:16px;background:#fffffffa;box-shadow:0 18px 40px #17203329}.table-picker{position:fixed;z-index:50;width:258px;padding:14px;border:1px solid rgba(216,221,231,.96);border-radius:18px;background:#fffffffa;box-shadow:0 18px 40px #17203329}.table-picker-title{font-size:.92rem;font-weight:800}.table-picker-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:6px;margin-top:12px}.table-picker-cell{width:100%;aspect-ratio:1;border:1px solid var(--line);border-radius:6px;background:#f7f8fbe6}.table-picker-cell.active{border-color:#1d6fe847;background:#1d6fe82e}.table-picker-meta{margin-top:12px;color:var(--text);font-weight:800;text-align:center}.tag-suggestions{top:calc(100% + 8px);left:0;right:0;display:grid;gap:6px}.tag-suggestion,.context-menu-item{width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;border:1px solid transparent;border-radius:12px;background:transparent;text-align:left}.tag-suggestion:hover,.tag-suggestion.active,.context-menu-item:hover{border-color:#1d6fe833;background:#1d6fe814}.tag-suggestion-main{display:flex;align-items:center;gap:10px;min-width:0}.tag-suggestion-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.tag-suggestion-hint{color:var(--muted);font-size:.82rem}.editor-toolbar-shell{position:relative}.note-editor-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:"side . actions" ". center .";align-items:center;gap:20px;padding-top:10px}.note-header-side,.note-header-actions{display:flex;align-items:center;gap:12px}.note-header-side{grid-area:side;min-width:0;justify-self:start}.note-header-center{grid-area:center;display:flex;justify-content:center;min-width:0}.note-header-actions{grid-area:actions;position:relative;justify-content:flex-end;min-width:0;justify-self:end}.note-header-group{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid rgba(216,221,231,.9);border-radius:999px;background:#fffffff0;box-shadow:0 10px 24px #17203314}.note-header-button{min-height:48px;padding:0 16px;border:1px solid rgba(216,221,231,.9);border-radius:999px;background:#fffffff0;color:var(--text);box-shadow:0 10px 24px #17203314;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700}.note-header-button.icon-only{width:48px;min-width:48px;padding:0}.note-header-group .note-header-button{min-height:40px;width:40px;min-width:40px;border:0;box-shadow:none;background:transparent}.note-header-group .note-header-button:hover{background:#1d6fe814}.note-header-group .note-header-button.is-active{background:#1d6fe81f;color:var(--blue)}.note-header-star.is-starred{color:#d5a100}.note-toolbar-shell{justify-self:center;width:auto;max-width:none}.editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:18px;background:#ffffffc7}.note-toolbar{justify-content:center;gap:0;padding:6px 10px;border-radius:999px;background:#fffffff0;box-shadow:0 14px 34px #17203314}.note-toolbar-group{flex-wrap:nowrap;justify-content:center;gap:4px}.editor-toolbar-group{display:flex;align-items:center;gap:8px}.tool-button{width:40px;height:40px;border-radius:14px;color:var(--muted)}.tool-button.style-trigger{width:auto;min-width:58px;padding:0 16px;font-size:1.1rem;font-weight:700}.tool-button.style-trigger.active,.tool-button.active-file-menu,.tool-button.active{background:#1d6fe81f;color:var(--blue)}.tool-button-count{min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--blue);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.68rem;font-weight:800;line-height:1}.tool-button.labelled{width:auto;min-width:56px;padding:0 12px;font-size:.82rem;font-weight:800}.tool-button:hover{background:#1d6fe814;color:var(--blue)}.tool-button:disabled{cursor:not-allowed;opacity:.4}.tool-button.danger:hover{color:var(--danger)}.style-popover{position:absolute;top:calc(100% + 14px);left:0;z-index:45;width:min(272px,calc(100vw - 64px));padding:12px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(180deg,#fffffffa,#f7f8fbfa);box-shadow:0 18px 40px #17203324;color:var(--text);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.align-popover{position:absolute;top:calc(100% + 14px);left:50%;z-index:45;width:min(250px,calc(100vw - 64px));padding:8px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fffffffa,#f7f8fbfa);box-shadow:0 18px 40px #17203324;transform:translate(-50%);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.align-popover-option{width:100%;min-height:46px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:var(--text);display:grid;grid-template-columns:28px 1fr 24px;align-items:center;gap:10px;text-align:left}.align-popover-option:hover,.align-popover-option.is-active{background:#1d6fe824}.align-popover-icon,.align-popover-check{display:inline-flex;align-items:center;justify-content:center}.align-popover-check{color:var(--blue)}.style-popover-notch{position:absolute;top:-9px;left:32px;width:18px;height:18px;border-top:1px solid var(--line);border-left:1px solid var(--line);background:#fffffffa;transform:rotate(45deg)}.style-inline-tools{display:flex;align-items:center;gap:8px;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid var(--line)}.style-inline-button{width:38px;height:38px;padding:0;border:0;border-radius:11px;background:var(--surface-soft);color:var(--text);display:inline-flex;align-items:center;justify-content:center;font-size:1rem;font-weight:700}.style-inline-button em,.style-inline-button u,.style-inline-button s{font-style:inherit}.style-inline-button em{font-style:italic}.style-inline-button u{text-decoration:underline}.style-inline-button s{text-decoration:line-through}.style-inline-button.active,.style-inline-button:hover{background:#1d6fe82e;color:var(--blue)}.style-inline-button:disabled{opacity:.4;cursor:not-allowed}.style-inline-button.color-dot span{width:12px;height:12px;border-radius:999px;background:#14b8a6}.style-color-palette{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid var(--line)}.style-color-swatch{width:26px;height:26px;padding:0;border:2px solid transparent;border-radius:999px;background:var(--swatch-color);box-shadow:inset 0 0 0 1px #ffffffb3}.style-color-swatch.active,.style-color-swatch:hover{border-color:#11182733}.style-popover-tabs{display:flex;align-items:center;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--line)}.style-popover-tab{min-width:38px;height:38px;padding:0 10px;border:0;border-radius:11px;background:var(--surface-soft);color:var(--muted);display:inline-flex;align-items:center;justify-content:center;font-size:.95rem;font-weight:700}.style-popover-tab.active,.style-popover-tab:hover{background:#1d6fe838;color:var(--blue)}.style-popover-list{display:grid;gap:4px;margin-top:10px}.style-popover-option{width:100%;min-height:42px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:var(--text);display:grid;grid-template-columns:20px 1fr;align-items:center;gap:10px;text-align:left}.style-popover-option:hover,.style-popover-option.is-active{background:#1d6fe82e}.style-popover-check{display:inline-flex;align-items:center;justify-content:center;min-height:16px;color:var(--blue)}.style-popover-preview{display:block}.style-popover-preview.preview-title{font-size:1.45rem;font-weight:800;line-height:1.05}.style-popover-preview.preview-heading{font-size:1.12rem;font-weight:800}.style-popover-preview.preview-subheading{font-size:.98rem;font-weight:800}.style-popover-preview.preview-body{font-size:.94rem;font-weight:700}.style-popover-preview.preview-monospace{font-family:SFMono-Regular,SF Mono,Menlo,monospace;font-size:.88rem}.style-popover-preview.preview-codeblock{font-family:SFMono-Regular,SF Mono,Menlo,monospace;font-size:.88rem;letter-spacing:-.01em;color:#0f6fa9}.style-popover-preview.preview-bulleted,.style-popover-preview.preview-dashed,.style-popover-preview.preview-numbered,.style-popover-preview.preview-arrowed{font-size:.9rem;font-weight:700}.style-popover-preview.preview-quote{border-left:3px solid var(--line-strong);padding-left:10px;font-size:.92rem;font-weight:700}.attachment-popover{position:absolute;top:calc(100% + 14px);right:0;z-index:45;width:min(360px,calc(100vw - 64px));padding:14px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(180deg,#fffffffa,#f7f8fbfa);box-shadow:0 18px 40px #17203324;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.attachment-popover-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.attachment-popover-header h3{margin:0;font-size:1rem}.attachment-popover-list{display:grid;gap:8px;margin-top:12px;max-height:320px;overflow:auto}.attachment-popover-empty{padding:14px;border:1px dashed var(--line);border-radius:16px;color:var(--muted);font-size:.92rem;font-weight:700}.attachment-popover-item{padding:12px;border:1px solid rgba(216,221,231,.8);border-radius:16px;background:#ffffffb8}.attachment-popover-meta strong,.attachment-popover-meta span{display:block}.attachment-popover-meta span{margin-top:4px;color:var(--muted);font-size:.85rem}.attachment-popover-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}.tag-popover{position:absolute;top:calc(100% + 14px);left:50%;z-index:45;width:min(286px,calc(100vw - 40px));padding:12px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fffffffa,#f7f8fbfa);box-shadow:0 18px 40px #17203324;transform:translate(-50%);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.tag-popover.tag-popover-header-anchor{top:calc(100% + 10px);left:auto;right:0;transform:none}.tag-popover-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.tag-popover-header h3{margin:0;font-size:.92rem}.tag-popover-header span{color:var(--muted);max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem;font-weight:700;text-align:right}.tag-popover-input-shell{margin-top:10px;min-height:40px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--line);border-radius:14px;background:#ffffffdb;color:var(--muted)}.tag-popover-input{flex:1;min-width:0;min-height:38px;border:0;background:transparent}.tag-popover-selected{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px}.tag-popover-chip{min-height:30px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border:1px solid color-mix(in srgb,var(--tag-chip-accent, #9db4d9),white 34%);border-radius:999px;background:color-mix(in srgb,var(--tag-chip-accent, #9db4d9),white 82%);color:#1d2433;font-size:.84rem;font-weight:700}.tag-popover-chip:hover{background:color-mix(in srgb,var(--tag-chip-accent, #9db4d9),white 72%)}.tag-popover-chip-symbol,.tag-popover-chip-remove{color:color-mix(in srgb,var(--tag-chip-accent, #9db4d9),black 20%)}.tag-popover-chip-remove{font-size:.96rem;line-height:1}.tag-popover-empty{margin-top:10px;padding:10px 2px 0;color:var(--muted);font-size:.82rem;font-weight:700}.tag-popover-suggestions{position:static;margin-top:10px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.note-editor-date{color:var(--muted);text-align:center;font-size:.86rem;font-weight:600;margin-top:-2px}.note-editor-stage{min-height:0;padding:10px 0 0}.note-editor{min-height:max(100%,420px);padding:18px 20px;border:1px solid var(--line);border-radius:24px;background:var(--surface-strong);caret-color:var(--blue);line-height:1.7;overflow:auto}.note-editor-apple{max-width:760px;margin:0 auto;min-height:100%;padding:0 0 96px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}.note-editor[data-empty=true]:before{content:attr(data-placeholder);color:var(--muted)}.note-editor-apple[data-empty=true]:before{content:"";display:none}.note-editor h1,.note-editor h2,.note-editor h3,.note-editor div,.note-editor p,.note-editor ul,.note-editor blockquote,.note-editor table,.note-editor hr{margin-top:0}.note-editor h1{margin-bottom:.35em;font-size:2.1rem;line-height:1.12}.note-editor h2{margin-bottom:.3em;font-size:1.55rem}.note-editor h3{margin-bottom:.25em;font-size:1.18rem}.note-editor p{margin-bottom:.5em}.note-editor .inline-style-title{font-size:1.55em;font-weight:800;line-height:1.08}.note-editor .inline-style-heading{font-size:1.28em;font-weight:800;line-height:1.12}.note-editor .inline-style-subheading{font-size:1.12em;font-weight:800;line-height:1.16}.note-editor .inline-style-body{font-size:inherit;font-weight:inherit;line-height:inherit}.note-editor .inline-style-monospace{font-family:SFMono-Regular,SF Mono,Menlo,monospace;font-size:.92em}.note-editor .inline-style-accent{color:#14b8a6}.note-editor blockquote{padding-left:16px;border-left:3px solid rgba(29,111,232,.18);color:var(--muted)}.note-editor pre{margin:0 0 .7em;position:relative;padding:44px 18px 16px;border:1px solid rgba(216,221,231,.9);border-radius:18px;background:#f4f6fa;font-family:SFMono-Regular,SF Mono,Menlo,monospace;font-size:.94em;line-height:1.65;color:#1d2433;white-space:pre-wrap;overflow-x:auto}.note-editor pre.code-block[data-code-highlighted=false]{padding-top:14px;min-height:44px}.note-editor pre.code-block.code-block-pending-delete{border-color:#1d6fe86b;box-shadow:0 0 0 3px #1d6fe814}.note-editor .code-block-toolbar{position:absolute;top:10px;left:12px;right:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;-webkit-user-select:none;user-select:none}.note-editor .code-block-content{display:block}.note-editor .code-block-language{border:1px solid rgba(201,208,221,.9);border-radius:999px;padding:4px 10px;background:#ffffffdb;color:#7d89a3;font:600 .72rem/1 -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;letter-spacing:.01em;cursor:pointer;transition:border-color .18s ease,color .18s ease,background .18s ease;-webkit-user-select:none;user-select:none}.note-editor .code-block-language:hover{border-color:#1d6fe857;color:var(--blue);background:#fffffff5}.note-editor .code-block-copy{width:24px;height:24px;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:pointer;transition:color .18s ease,opacity .18s ease,transform .18s ease;opacity:.82;-webkit-user-select:none;user-select:none}.note-editor .code-block-copy:hover{opacity:1;transform:translateY(-1px)}.note-editor .code-block-copy svg{width:18px;height:18px;color:#8c96ab;fill:none}.note-editor .code-block-copy:after{content:attr(data-tooltip);position:absolute;top:calc(100% + 6px);right:0;padding:4px 7px;border-radius:8px;background:#172033e6;color:#fff;font:600 .68rem/1 -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;white-space:nowrap;opacity:0;pointer-events:none;transform:translateY(-3px);transition:opacity .18s ease,transform .18s ease}.note-editor .code-block-copy[data-copied=true]{opacity:1}.note-editor .code-block-copy:hover:after,.note-editor .code-block-copy[data-copied=true]:after{opacity:1;transform:translateY(0)}.note-editor .code-block-copy[data-copied=true] svg{color:var(--blue)}.note-editor pre.code-block .hljs-keyword,.note-editor pre.code-block .hljs-selector-tag,.note-editor pre.code-block .hljs-meta .hljs-keyword,.note-editor pre.code-block .hljs-tag,.note-editor pre.code-block .hljs-name{color:#0f6fa9}.note-editor pre.code-block .hljs-title,.note-editor pre.code-block .hljs-title.class_,.note-editor pre.code-block .hljs-title.function_,.note-editor pre.code-block .hljs-function .hljs-title,.note-editor pre.code-block .hljs-built_in{color:#e14f70}.note-editor pre.code-block .hljs-string,.note-editor pre.code-block .hljs-template-string{color:#2b8f63}.note-editor pre.code-block .hljs-number,.note-editor pre.code-block .hljs-literal{color:#8756d1}.note-editor pre.code-block .hljs-operator,.note-editor pre.code-block .hljs-symbol,.note-editor pre.code-block .hljs-punctuation{color:#b07a29}.note-editor pre.code-block .hljs-comment,.note-editor pre.code-block .hljs-quote{color:#8c96ab;font-style:italic}.note-editor pre.code-block .hljs-type,.note-editor pre.code-block .hljs-params,.note-editor pre.code-block .hljs-variable,.note-editor pre.code-block .hljs-property,.note-editor pre.code-block .hljs-attr,.note-editor pre.code-block .hljs-attribute{color:#1d2433}.note-editor pre.code-block .hljs-meta{color:#8c96ab}.code-language-menu{position:fixed;z-index:55;min-width:152px;padding:8px;border:1px solid var(--line);border-radius:16px;background:#fffffffa;box-shadow:0 18px 38px #17203329;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.code-language-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:0;border-radius:12px;background:transparent;color:var(--ink);font:600 .84rem/1 -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;text-align:left;cursor:pointer}.code-language-option:hover,.code-language-option.is-active{background:#1d6fe81f}.code-language-check{color:var(--blue)}.note-editor ul.dash-list{list-style:none;padding-left:0}.note-editor ul.dash-list li,.note-editor ul.check-list li,.note-editor ul.arrow-list li{position:relative;padding-left:18px}.note-editor ul.dash-list li:before{content:"-";position:absolute;left:0;color:var(--muted)}.note-editor ul.check-list{list-style:none;padding-left:0}.note-editor ul.check-list li{padding-left:24px}.note-editor ul.check-list li:before{content:"□";position:absolute;left:0;color:var(--muted)}.note-editor ul.arrow-list{list-style:none;padding-left:0}.note-editor ul.arrow-list li{padding-left:20px}.note-editor ul.arrow-list li:before{content:"→";position:absolute;left:0;color:var(--muted)}.note-editor table{width:100%;min-width:100%;border-collapse:collapse;table-layout:fixed}.note-editor th,.note-editor td{padding:10px 12px;border:1px solid var(--line);position:relative;min-width:80px}.note-editor th.table-resize-target,.note-editor td.table-resize-target{box-shadow:inset -3px 0 #1d6fe8bf}.attachments-section{border:1px solid var(--line);border-radius:22px;background:#f7f8fbd6;padding:16px}.attachment-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:16px;border:1px solid rgba(216,221,231,.8)}@media(max-width:980px){.note-editor-header{grid-template-columns:1fr;grid-template-areas:"side" "center" "actions";justify-items:stretch;gap:14px}.note-header-side,.note-header-actions{justify-content:space-between}.note-header-center{justify-content:flex-start}.note-toolbar-shell{width:100%}.note-toolbar{width:100%;justify-content:flex-start;overflow-x:auto}.note-toolbar-group{min-width:max-content}}.attachment-info strong,.attachment-info span{display:block}.attachment-info span,.file-preview-header p{margin-top:4px;color:var(--muted);font-size:.9rem}.file-preview-header{padding:0;display:grid;gap:6px}.file-preview-header h3{margin:0;font-size:1.4rem;line-height:1.1}.preview-card{min-height:0;height:100%;padding:0}.preview-frame,.preview-image,.preview-text{width:100%;height:100%;min-height:420px;border:1px solid var(--line);border-radius:24px;background:#fff;display:block}.preview-image{object-fit:contain;object-position:center}.preview-text{margin:0;padding:18px;overflow:auto;white-space:pre-wrap}.preview-empty{min-height:100%;display:grid;place-content:center;justify-items:center;gap:10px;border:1px dashed var(--line-strong);border-radius:24px;background:#f7f8fbb3;text-align:center}.preview-empty-icon{width:42px;height:42px;display:inline-grid;place-items:center;border-radius:14px;background:#1d6fe814;color:var(--blue)}.modal-backdrop{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:24px;background:#0f172a24}.tag-modal{width:min(460px,calc(100vw - 32px));border:1px solid rgba(216,221,231,.96);border-radius:22px;background:#fffffffa;box-shadow:0 24px 60px #17203333;overflow:hidden}.tag-modal-header,.tag-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}.tag-modal-footer{border-bottom:0;border-top:1px solid var(--line)}.tag-modal-header h3{margin:0}.tag-modal-body{display:grid;gap:18px;padding:18px}.tag-modal-field{display:grid;gap:10px}.tag-modal-field label{font-size:.92rem;font-weight:700}.tag-modal-input,.tag-modal-color-input{width:100%;border:1px solid var(--line);border-radius:14px;background:#fffffff5;color:var(--text);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.tag-modal-input{min-height:46px;padding:0 14px;box-shadow:inset 0 1px #fff9}.tag-modal-input::placeholder{color:#98a2b6}.tag-modal-input:focus,.tag-modal-color-input:focus{border-color:#1d6fe880;box-shadow:0 0 0 4px #1d6fe81f;background:#fff}.tag-modal-color-input{min-height:46px;padding:6px;cursor:pointer}.tag-chip-grid,.tag-color-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.tag-chip,.tag-color-swatch{min-height:40px;border:1px solid var(--line);border-radius:12px;background:#fff}.tag-chip.active,.tag-color-swatch.active{border-color:var(--blue);box-shadow:inset 0 0 0 1px #1d6fe838}.tag-color-swatch{min-height:34px}.tag-checkbox{display:inline-flex;align-items:center;gap:10px}.tag-modal-meta{color:var(--muted);font-size:.9rem}.context-menu-list{display:grid;gap:4px}.context-menu-item.danger{color:var(--danger)}@media(max-width:1180px){.app-shell{grid-template-columns:200px 320px 1fr}}@media(max-width:920px){.app-shell{grid-template-columns:1fr}.sidebar,.list-panel,.editor-panel{border-right:0;border-bottom:1px solid var(--line)}.sidebar,.list-panel,.editor-panel{display:none;min-height:100vh}.sidebar.is-mobile-active{display:block}.list-panel.is-mobile-active{display:flex}.editor-panel.is-mobile-active{display:block}.mobile-panel-nav{display:block;padding:16px 14px 0}.editor-panel .mobile-panel-nav{padding:16px 24px 0}.mobile-back-button{width:fit-content}.desktop-only{display:none}.editor{grid-template-rows:auto auto auto auto minmax(240px,1fr) auto}.editor-toolbar,.attachments-header,.editor-topbar{flex-wrap:wrap}}
