:root{color-scheme:light;--canvas: #eeede8;--sidebar: #f5f3ee;--paper: #fffefa;--ink: #29312b;--muted: #696f62;--faint: #6d7263;--line: #e5e5dc;--selected: #e9edde;--selected-strong: #e0e6d5;--accent: #52654b;--accent-contrast: #fffefa;--danger: #ad5146;--success: #547751;--ease: cubic-bezier(.2, .75, .25, 1);font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,PingFang SC,Microsoft YaHei,system-ui,sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}*{box-sizing:border-box}[hidden]{display:none!important}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:var(--canvas);color:var(--ink)}button,input,textarea{font:inherit}button{color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:wait;opacity:.55}button,input,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button svg,.editor-location svg,.empty-glyph svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}::selection{background:#dee6ce;color:#29312b}.app-shell{display:grid;grid-template-columns:minmax(310px,360px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);width:100%;height:100vh;height:100dvh;max-width:1600px;margin:0 auto;overflow:hidden;background:var(--paper);box-shadow:0 0 80px #393c3210}.sidebar{display:grid;grid-template-rows:auto auto auto auto auto minmax(0,1fr) auto;min-width:0;min-height:0;height:100%;overflow:hidden;border-right:1px solid var(--line);background:var(--sidebar)}.sidebar-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:calc(28px + env(safe-area-inset-top)) 24px 25px}.app-downloads{display:grid;flex:0 0 100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.app-downloads a{display:flex;flex-direction:column;min-height:64px;align-items:center;justify-content:center;gap:4px;padding:8px 4px;border:1px solid #d7ddce;border-radius:12px;background:#e9edde;color:#43553e;font-size:12px;font-weight:600;line-height:1.4;text-decoration:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.app-downloads a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.app-downloads a:active{filter:brightness(.97)}.app-downloads svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.brand-lockup{display:flex;align-items:center;gap:12px}.brand-mark{width:44px;height:44px;overflow:hidden;border:1px solid #dedbce;border-radius:14px;background:#f3efe4;box-shadow:0 2px 4px #413c2605}.brand-mark img{display:block;width:100%;height:100%;object-fit:cover}.brand-lockup h1{margin:0;font-family:Songti SC,STSong,ui-serif,serif;font-size:24px;font-weight:700;letter-spacing:.12em;line-height:1.2}.brand-lockup p{margin:5px 0 0;color:var(--muted);font-size:11px;letter-spacing:.06em}.feature-actions{display:grid;grid-template-columns:1.25fr 1fr;gap:10px;margin:0 22px 16px}.feature-actions button{display:flex;gap:9px;align-items:center;justify-content:center;min-height:46px;padding:10px 12px;border:1px solid #dddccf;border-radius:12px;font-size:13px;font-weight:600}.record-entry{background:#ede2d9;color:#89463b}.transfer-entry{background:#fffefa;color:var(--accent)}.record-entry.is-recording{background:#89463b;color:#fff}.feature-actions button:hover{box-shadow:0 3px 10px #343c2510}.icon-button{display:inline-grid;width:40px;height:40px;flex:0 0 auto;place-items:center;padding:0;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--muted);transition:background .15s,color .15s,transform .15s var(--ease),box-shadow .15s}.icon-button.primary{width:44px;height:44px;background:var(--accent);color:var(--accent-contrast);box-shadow:0 3px 8px #52654b20,inset 0 1px #ffffff18}.icon-button.primary svg{width:22px;height:22px}.icon-button.is-active{background:var(--selected);border-color:#dbe2cd;color:var(--accent)}button:active:not(:disabled){filter:brightness(.97)}.icon-button:active:not(:disabled){transform:scale(.94)}.search-field{display:flex;height:44px;align-items:center;gap:10px;margin:0 22px 18px;padding:0 12px;border:1px solid #e8e6dd;border-radius:12px;background:#fffefa;color:var(--muted);box-shadow:0 1px 2px #343c2503;transition:border-color .16s,box-shadow .16s,background .16s}.search-field:focus-within{border-color:#98a88c;background:#fff;box-shadow:0 0 0 3px #52654b0b}.search-field>svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.6}.search-field input{width:100%;min-width:0;height:100%;flex:1;padding:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:13px}.search-field input:focus-visible{outline:0}.search-field input::placeholder{color:var(--faint)}.search-field input::-webkit-search-cancel-button{-webkit-appearance:none}.search-field input:not(:placeholder-shown)~kbd{display:none}.search-field kbd{flex:0 0 auto;padding:3px 5px;border:1px solid var(--line);border-radius:5px;color:var(--faint);font-family:inherit;font-size:10px}#clear-search{display:grid;width:30px;height:32px;flex-shrink:0;place-items:center;padding:0;border:0;border-radius:8px;background:#eeeee7;color:var(--muted)}#clear-search svg{width:17px;height:17px}.filter-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 22px 23px;padding:4px;border-radius:12px;background:#eae9e1}.filter-tab{display:flex;height:36px;align-items:center;justify-content:center;gap:7px;padding:0 8px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:12px;transition:background .16s,color .16s,box-shadow .16s}.filter-tab svg{width:15px;height:15px;stroke-width:1.6}.filter-tab.is-active{background:var(--paper);box-shadow:0 1px 4px #333a2310;color:var(--ink);font-weight:600}.list-heading{display:flex;align-items:center;justify-content:space-between;padding:0 27px 12px;color:var(--muted);font-size:11px;font-weight:500;letter-spacing:.04em}#note-count{font-variant-numeric:tabular-nums}.notes-list{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:0 14px 20px;scrollbar-width:thin;scrollbar-color:#cdd0c4 transparent}.notes-list::-webkit-scrollbar,#editor::-webkit-scrollbar,.settings-body::-webkit-scrollbar{width:5px}.notes-list::-webkit-scrollbar-thumb,#editor::-webkit-scrollbar-thumb,.settings-body::-webkit-scrollbar-thumb{border-radius:10px;background:#cdd0c4}.note-row{position:relative;margin-bottom:5px;overflow:hidden;border-radius:13px}.note-card{position:relative;z-index:1;display:grid;width:100%;min-height:86px;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:baseline;gap:7px 10px;padding:16px 14px;border:1px solid transparent;border-radius:13px;background:var(--sidebar);color:inherit;text-align:left;transform:translate(var(--swipe-offset, 0));transition:background .15s,border-color .15s,transform .19s var(--ease);touch-action:pan-y}.note-card.is-active{border-color:#dce3ce;background:var(--selected)}.note-card.is-active:before{position:absolute;top:20px;bottom:20px;left:0;width:3px;border-radius:0 3px 3px 0;background:#788963;content:""}.note-card:after{position:absolute;right:14px;bottom:0;left:14px;height:1px;background:var(--line);content:""}.note-card.is-active:after,.note-row:last-child .note-card:after{display:none}.note-title{min-width:0;overflow:hidden;color:var(--ink);font-size:14px;font-weight:600;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}.pin-dot{display:inline-block;width:6px;height:6px;margin:0 7px 2px 0;border-radius:50%;background:var(--accent)}.note-date{color:var(--faint);font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}.note-preview{display:-webkit-box;min-width:0;grid-column:1 / -1;overflow:hidden;color:var(--muted);font-size:12px;line-height:1.7;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}.note-row.is-swiped .note-card{transform:translate(-82px)}.note-swipe-action{position:absolute;z-index:0;top:0;right:0;bottom:0;display:grid;width:82px;place-items:center;padding:0;border:0;background:var(--danger);color:#fff;font-size:13px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .1s}.note-row.is-swiped .note-swipe-action,.note-row.is-swipe-dragging .note-swipe-action{opacity:1}.note-row.is-swiped .note-swipe-action{pointer-events:auto}.note-swipe-action.restore{background:var(--success)}.note-quick-action{position:absolute;z-index:2;top:50%;right:10px;display:grid;width:34px;height:34px;place-items:center;padding:0;transform:translateY(-50%) scale(.94);border:1px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:0 2px 9px #37312615;color:var(--danger);opacity:0;pointer-events:none;transition:opacity .12s,transform .12s}.note-quick-action.restore{color:var(--success)}.note-quick-action svg{width:17px;height:17px}.list-empty{max-width:290px;margin:0 auto;padding:55px 26px;color:var(--muted);font-size:13px;line-height:1.9;text-align:center}.list-empty:before{display:block;width:33px;height:40px;margin:0 auto 22px;border:1.5px solid #c9cdbd;border-radius:5px;background:repeating-linear-gradient(transparent 0 8px,#c9cdbd 8px 9px,transparent 9px 10px) center 8px / 17px 23px no-repeat;content:""}.sidebar-footer{padding:10px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}.footer-row{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:8px}.sync-status{display:flex;min-width:0;min-height:40px;max-width:100%;flex:1;align-items:center;gap:9px;padding:5px 7px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:11px;transition:color .15s,background .15s}#sync-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-dot{position:relative;display:inline-grid;width:7px;height:7px;flex:0 0 auto;place-items:center;border-radius:50%;background:var(--faint);box-shadow:0 0 0 3px #82867412}.sync-status[data-state=synced] .status-dot{width:14px;height:14px;background:var(--success);box-shadow:none}.sync-status[data-state=synced] .status-dot:after{width:6px;height:3px;transform:translateY(-1px) rotate(-45deg);border-bottom:1.5px solid #fff;border-left:1.5px solid #fff;content:""}.sync-status[data-state=syncing] .status-dot{width:13px;height:13px;border:2px solid #c6cfb8;border-top-color:var(--accent);background:transparent;box-shadow:none;animation:spin .85s linear infinite}.sync-status[data-state=offline] .status-dot{background:#b5935f}.sync-status[data-state=error] .status-dot{background:var(--danger)}.settings-button{display:grid;width:40px;height:40px;flex:0 0 auto;place-items:center;padding:0;border:0;border-radius:11px;background:transparent;color:var(--muted);transition:background .15s,color .15s}.settings-button svg{width:18px;height:18px}.editor-panel{position:relative;min-width:0;min-height:0;height:100%;overflow:hidden;background:var(--paper)}.editor-empty{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:40px 30px 70px;color:var(--muted);text-align:center}.empty-glyph{display:grid;width:156px;height:142px;margin-bottom:24px;place-items:center;border-radius:50%;background:radial-gradient(ellipse,#ecefe2 10%,#f6f7ee 57%,transparent 72%);color:#788666}.empty-glyph svg{width:140px;height:108px;stroke-width:1.3}.empty-water{stroke:#bcc6ad}.editor-empty .empty-eyebrow{margin:0 0 14px;color:var(--accent);font-size:11px;letter-spacing:.16em}.editor-empty h2{margin:0 0 17px;color:var(--ink);font-family:Songti SC,STSong,ui-serif,serif;font-size:29px;font-weight:500;letter-spacing:.06em}.editor-empty p{margin:0 0 26px;font-size:13px;line-height:1.95}.text-button{display:inline-flex;min-height:40px;align-items:center;justify-content:center;gap:7px;padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--accent);font-size:13px;transition:background .15s,border-color .15s}#empty-new-note{min-height:44px;padding:11px 20px;border-color:#dbe2cc;background:var(--selected)}#empty-new-note svg{width:17px;height:17px}.editor-view{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;min-height:0;overflow:hidden}.editor-toolbar{display:grid;min-height:76px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;padding:calc(12px + env(safe-area-inset-top)) 28px 12px;border-bottom:1px solid var(--line)}.editor-location{display:flex;min-width:0;grid-column:1;grid-row:1;align-items:center;gap:8px;color:var(--muted);font-size:12px}.editor-location svg{width:17px;height:17px;color:#909982}.editor-meta{display:flex;grid-column:2;grid-row:1;align-items:center;justify-content:center;gap:10px;color:var(--faint);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.meta-divider{width:3px;height:3px;border-radius:50%;background:#c3c7b9}.editor-actions{display:flex;grid-column:3;grid-row:1;justify-content:flex-end;gap:6px}.back-button{display:none;min-height:44px;align-items:center;justify-self:start;gap:3px;padding:7px 4px 7px 0;border:0;border-radius:8px;background:transparent;color:var(--accent);font-size:14px}.back-button svg{width:21px;height:21px}.paper-wrap{min-height:0;overflow:hidden}#editor,.editor-preview{display:block;width:min(750px,calc(100% - 96px));height:100%;margin:0 auto;padding:54px 12px 100px;overflow-y:auto;overscroll-behavior:contain;resize:none;border:0;border-radius:0;outline:0;background:transparent;color:var(--ink);font-size:17px;font-weight:400;line-height:2;letter-spacing:.015em;caret-color:var(--accent);scrollbar-width:thin;scrollbar-color:#cdd0c4 transparent}.editor-preview{overflow-wrap:anywhere}.editor-preview p{margin:0 0 1.2em;white-space:pre-wrap}.editor-preview p:first-child{color:#354532}.editor-preview:focus-visible{outline:2px solid var(--line);outline-offset:-3px}#editor:focus-visible{outline:0}#editor::placeholder{color:#a3a794}.editor-footer{display:flex;min-width:0;min-height:42px;align-items:center;justify-content:space-between;gap:14px;margin:0 28px;padding:10px 0 calc(16px + env(safe-area-inset-bottom));color:var(--faint);font-size:10px;letter-spacing:.025em}.editor-save-status{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-save-status:before{display:inline-block;width:5px;height:5px;margin:0 7px 2px 0;border-radius:50%;background:#9da88e;content:""}.editor-save-status[data-state=synced]{color:var(--success)}.editor-save-status[data-state=error]{color:var(--danger)}.editor-save-status[data-state=error]:before{background:var(--danger)}.editor-save-status[data-state=offline]:before{background:#b5935f}.editor-footer-hint{flex-shrink:0}.editor-mode-control{display:flex;flex:0 0 auto;gap:2px;padding:3px;border:1px solid var(--line);border-radius:11px;background:var(--sidebar)}.editor-mode-control button{min-width:54px;min-height:40px;padding:6px 12px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:12px}.editor-mode-control button[aria-pressed=true]{background:var(--paper);box-shadow:0 1px 4px #333a2310;color:var(--accent);font-weight:600}.editor-panel[data-note-state=trash] .editor-location span{font-size:0}.editor-panel[data-note-state=trash] .editor-location span:after{font-size:12px;content:"最近删除"}.editor-panel.is-image-drop-target:after{position:absolute;z-index:15;top:82px;right:18px;bottom:52px;left:18px;display:grid;place-items:center;border:2px dashed var(--accent);border-radius:18px;background:#eef2e6ed;color:var(--accent);font-size:16px;pointer-events:none;content:"松开，添加图片到这篇笔记"}.attachment-section{min-width:0;margin:0 28px;padding:12px 0 6px;border-top:1px solid var(--line)}.attachment-heading{display:flex;min-height:24px;align-items:center;gap:12px;margin-bottom:8px;color:var(--muted);font-size:11px}.attachment-count{flex-shrink:0;font-weight:600}.attachment-progress{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-retry{margin-left:auto;padding:4px 8px;border:0;border-radius:6px;background:var(--selected);color:var(--accent);font-size:11px}.attachment-list{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 6px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cdd0c4 transparent}.attachment-card{width:128px;flex:0 0 128px;margin:0}.attachment-thumbnail{display:grid;width:100%;height:92px;place-items:center;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:11px;background:var(--sidebar);color:var(--muted)}.attachment-thumbnail img{width:100%;height:100%;object-fit:cover}.attachment-placeholder{max-width:104px;padding:10px;font-size:11px;line-height:1.6;text-align:center}.attachment-card[data-state=error] .attachment-thumbnail{border-color:#d8b6ad}.attachment-card figcaption{overflow:hidden;margin-top:6px;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.image-viewer{width:min(1040px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);overflow:hidden;padding:0;border:1px solid #ffffff30;border-radius:18px;background:#232720;color:#fff;box-shadow:0 24px 100px #0008}.image-viewer::backdrop{background:#172016b8;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.image-viewer-content{display:flex;max-height:calc(100dvh - 42px);flex-direction:column}.image-viewer-header{display:flex;min-height:58px;flex:0 0 auto;align-items:center;gap:20px;padding:8px 12px 8px 22px}.image-viewer-title{min-width:0;overflow:hidden;color:#e4e8df;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.image-viewer-close{margin-left:auto;color:#e4e8df}.image-viewer-image{display:block;min-height:0;width:100%;max-height:calc(100dvh - 108px);padding:0 12px 12px;object-fit:contain}.toast{position:fixed;z-index:40;right:24px;bottom:calc(32px + env(safe-area-inset-bottom));max-width:min(380px,calc(100vw - 32px));padding:13px 18px;transform:translateY(8px);border:1px solid #ffffff15;border-radius:13px;background:#2c352cf5;box-shadow:0 8px 30px #27302220;color:#fffefa;font-size:12px;line-height:1.6;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s var(--ease)}.toast.is-visible{transform:translateY(0);opacity:1}.settings-overlay{position:fixed;z-index:30;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:28px;background:#27302238;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:veil-in .16s ease-out}.settings-card{display:flex;width:min(492px,100%);min-height:0;max-height:min(800px,calc(100dvh - 56px));flex-direction:column;overflow:hidden;border:1px solid #ffffffb3;border-radius:24px;background:var(--paper);box-shadow:0 30px 100px #25302029,0 4px 20px #25302010;animation:sheet-in .22s var(--ease)}.settings-header{display:flex;flex:0 0 auto;align-items:flex-start;justify-content:space-between;gap:12px;padding:27px 28px 24px}.eyebrow{margin:0 0 8px;color:var(--accent);font-size:10px;font-weight:600;letter-spacing:.13em}.settings-header h2{margin:0;font-size:24px;font-weight:600;letter-spacing:.03em}#settings-description{margin:9px 0 0;color:var(--muted);font-size:12px;line-height:1.7}#close-settings{margin:-4px -7px 0 0;background:#f1f2e9}.settings-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 28px 8px;scrollbar-width:thin;scrollbar-color:#cdd0c4 transparent}.settings-field{display:grid;gap:9px;margin-bottom:22px}.settings-field>span{font-size:12px;font-weight:600}.settings-field input{width:100%;min-width:0;height:46px;padding:0 13px;border:1px solid #dddfd3;border-radius:11px;outline:0;background:#fff;color:var(--ink);font-size:13px;transition:border-color .15s,box-shadow .15s}.settings-field input:focus{border-color:#93a282;box-shadow:0 0 0 3px #52654b0b}.settings-field input::placeholder{color:#969b8c}.settings-field small{color:var(--muted);font-size:11px;line-height:1.75}.secret-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.secret-input-row button,.secret-actions button,.update-heading button{min-height:34px;padding:7px 11px;border:1px solid #e1e5d5;border-radius:9px;background:#f0f2e8;color:var(--accent);font-size:11px;transition:background .15s}.secret-input-row button{min-width:54px}.secret-actions{display:flex;gap:8px}.encryption-notice{display:grid;gap:5px;margin:3px 0 20px;padding:14px 15px;border:1px solid #e0e6d2;border-radius:12px;background:#f1f4e9}.encryption-notice strong{color:var(--success);font-size:12px;font-weight:600}.encryption-notice span{color:var(--muted);font-size:11px;line-height:1.75}.update-card{display:grid;gap:9px;margin:0 0 16px;padding:14px 15px;border:1px solid var(--line);border-radius:12px;background:#f9faf4}.update-heading,.update-heading>div{display:flex;align-items:center}.update-heading{justify-content:space-between;gap:12px}.update-heading>div{min-width:0;gap:8px}.update-heading strong{font-size:12px;font-weight:600}.update-heading span{color:var(--muted);font-size:10px}.update-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.7}.ai-access-card .secret-actions{flex-wrap:wrap}.ai-access-card code{overflow-wrap:anywhere}.ai-access-command{display:block;padding:10px;border-radius:8px;background:var(--paper);font-size:11px;line-height:1.7;-webkit-user-select:text;user-select:text}.update-heading button{flex:0 0 auto}.settings-error{margin:0;color:var(--danger);font-size:12px;line-height:1.6}.settings-error:not(:empty){margin:0 0 12px;padding:10px 12px;border-radius:9px;background:#ad514610}.settings-actions{display:flex;flex:0 0 auto;justify-content:flex-end;gap:10px;padding:17px 28px calc(20px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}.save-settings{min-height:44px;padding:11px 20px;border:1px solid transparent;border-radius:11px;background:var(--accent);color:#fff;font-size:13px;font-weight:500;transition:background .15s}.settings-actions .text-button{min-width:72px;min-height:44px}@media(hover:hover)and (pointer:fine){.app-downloads a:hover{background:#e0e6d5;border-color:#c5ceba}.icon-button:hover,.settings-button:hover,.sync-status:hover{background:#52654b0c;color:var(--accent)}.icon-button.primary:hover,.save-settings:hover{background:#43553e;color:#fff}.danger-hover:hover{background:#ad514610;color:var(--danger)}.note-card:hover{background:#eeeee4}.note-card.is-active:hover{background:var(--selected-strong)}.note-row:hover .note-quick-action,.note-quick-action:focus-visible{transform:translateY(-50%) scale(1);opacity:1;pointer-events:auto}.note-row.is-swiped .note-quick-action{opacity:0;pointer-events:none}.text-button:hover,.secret-input-row button:hover,.secret-actions button:hover,.update-heading button:hover{background:#e9edde}.filter-tab:not(.is-active):hover{background:#ffffff60;color:var(--ink)}}@media(min-width:761px)and (max-width:1060px){.app-shell{grid-template-columns:310px minmax(0,1fr)}.editor-toolbar{padding-right:20px;padding-left:20px}.editor-location span{display:none}#editor{width:calc(100% - 48px);padding-top:38px}}@media(max-width:760px){.app-shell{display:block;max-width:none;box-shadow:none}.sidebar{width:100%;height:100%;border-right:0;transition:opacity .18s,visibility 0s}.sidebar-header{padding:calc(25px + env(safe-area-inset-top)) 24px 25px}.brand-lockup h1{font-size:27px}.brand-lockup p{font-size:11px}.brand-mark{width:46px;height:46px}.icon-button,.settings-button{width:44px;height:44px}.search-field{height:48px;margin:0 22px 17px}.search-field input{font-size:15px}.search-field kbd{display:none}#clear-search{width:36px;height:36px}.filter-tabs{margin-bottom:22px}.filter-tab{height:40px;font-size:13px}.filter-tab svg{width:16px;height:16px}.list-heading{padding-bottom:11px;font-size:12px}.notes-list{padding-right:14px;padding-left:14px}.note-card{min-height:98px;padding:17px 15px;gap:7px 12px}.note-title{font-size:16px}.note-date{font-size:11px}.note-preview{font-size:13px;line-height:1.75}.note-quick-action{display:none}.sidebar-footer{padding:8px 20px calc(12px + env(safe-area-inset-bottom))}.sync-status{min-height:44px;font-size:12px}.editor-panel{position:fixed;z-index:10;top:0;right:0;bottom:0;left:0;height:100%;height:100dvh;visibility:hidden;transform:translate(28px);opacity:0;pointer-events:none;transition:transform .22s var(--ease),opacity .18s,visibility 0s .22s}body.editor-open .editor-panel{visibility:visible;transform:translate(0);opacity:1;pointer-events:auto;transition-delay:0s}body.editor-open .sidebar{visibility:hidden;opacity:.5;pointer-events:none;transition:opacity .18s,visibility 0s .22s}.editor-empty,.editor-location{display:none}.editor-toolbar{min-height:67px;grid-template-columns:1fr auto 1fr;gap:4px;padding:calc(7px + env(safe-area-inset-top)) 14px 7px}.back-button{display:inline-flex;grid-column:1;grid-row:1}.editor-meta{gap:0;font-size:11px}.editor-meta #word-count,.editor-meta .meta-divider{display:none}.editor-actions{gap:2px}.editor-actions .icon-button{width:38px;height:42px}.attachment-section{margin:0 22px;padding-top:9px}.attachment-heading{gap:8px}.attachment-list{gap:10px}.attachment-card{width:108px;flex-basis:108px}.attachment-thumbnail{height:76px}.image-viewer{width:calc(100vw - 20px);max-height:calc(100dvh - 30px);border-radius:14px}.image-viewer-header{padding-left:15px}.image-viewer-image{max-height:calc(100dvh - 98px)}#editor,.editor-preview{width:100%;padding:30px 26px calc(64px + env(safe-area-inset-bottom));font-size:17px;line-height:1.95;letter-spacing:.01em}.editor-footer{min-height:36px;margin:0 26px;padding:8px 0 calc(13px + env(safe-area-inset-bottom));font-size:10px}.editor-footer-hint{display:none}.toast{right:16px;bottom:calc(65px + env(safe-area-inset-bottom));left:16px;max-width:none;text-align:center}.settings-overlay{align-items:end;padding:0;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.settings-card{position:relative;width:100%;max-height:calc(94dvh - env(safe-area-inset-top));padding-top:10px;border-right:0;border-bottom:0;border-left:0;border-radius:26px 26px 0 0}.settings-card:before{position:absolute;top:9px;left:calc(50% - 17px);width:34px;height:4px;border-radius:4px;background:#d4d8c9;content:""}.settings-header{padding:23px 24px 22px}.settings-body{padding-right:24px;padding-left:24px}.settings-field input{height:48px;font-size:16px}.settings-field>span{font-size:13px}.secret-actions button{min-height:40px;padding-right:12px;padding-left:12px;font-size:12px}.secret-input-row button{min-width:58px;font-size:12px}.update-heading button{min-height:40px}.settings-actions{padding:15px 24px calc(18px + env(safe-area-inset-bottom))}.save-settings{flex:1;min-height:46px}.settings-actions .text-button{min-width:84px;min-height:46px}}@media(max-height:600px){.sidebar-header{gap:12px;padding-top:calc(14px + env(safe-area-inset-top));padding-bottom:14px}.feature-actions,.search-field{margin-bottom:10px}.filter-tabs{margin-bottom:12px}.list-heading{padding-bottom:8px}}@media(max-height:500px){.app-downloads a{min-height:44px;flex-direction:row}.app-downloads svg{display:none}.sidebar-header{gap:8px;padding-top:calc(8px + env(safe-area-inset-top));padding-bottom:8px}.brand-lockup p{display:none}.feature-actions,.search-field,.filter-tabs{margin-bottom:8px}.list-heading{padding-bottom:4px}.notes-list{padding-bottom:8px}.sidebar-footer{padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom))}}@media(max-width:360px){.sidebar-header{padding-right:20px;padding-left:20px}.search-field,.filter-tabs{margin-right:18px;margin-left:18px}.note-title{font-size:15px}.editor-toolbar{padding-right:8px;padding-left:8px}.editor-meta{font-size:10px}#editor{padding-right:22px;padding-left:22px}.settings-header,.settings-body,.settings-actions{padding-right:20px;padding-left:20px}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes veil-in{0%{opacity:0}to{opacity:1}}@keyframes sheet-in{0%{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important}}.automatic-updates{display:flex;gap:9px;align-items:center;margin-top:14px;font-size:14px}.automatic-updates input{width:16px;height:16px;accent-color:#4d6652}.update-notice{position:fixed;z-index:1000;left:50%;bottom:24px;transform:translate(-50%);max-width:min(560px,calc(100vw - 32px));padding:14px 18px;border:1px solid #d3d9c8;border-radius:16px;background:#f8faf3;color:#314438;box-shadow:0 8px 28px #20352622;display:flex;align-items:center;gap:16px;font-size:14px}.update-notice button{flex-shrink:0;border:0;border-radius:9px;padding:8px 12px;background:#e4eadb;color:#314438;cursor:pointer}.update-notice[hidden],.automatic-updates[hidden]{display:none}.utility-dialog{width:min(780px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--line);border-radius:24px;background:var(--paper);color:var(--ink);box-shadow:0 25px 100px #29312b35}.utility-dialog::backdrop{background:#29312b66;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.utility-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 50px)}.utility-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 28px 18px}.utility-header .eyebrow{margin:0 0 6px;font-size:11px;letter-spacing:.16em;color:var(--muted)}.utility-header h2{margin:0;font:600 26px/1.3 Songti SC,STSong,ui-serif,serif;letter-spacing:.06em}.utility-tabs{display:flex;gap:5px;padding:4px;margin:0 28px 18px;border-radius:12px;background:#efeee6}.utility-tabs button{flex:1;min-height:40px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:14px}.utility-tabs button[aria-pressed=true]{background:var(--paper);color:var(--ink);box-shadow:0 2px 5px #29312b0c;font-weight:600}.utility-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 28px 28px}.utility-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 28px;border-top:1px solid var(--line);background:var(--sidebar);color:var(--muted);font-size:12px}.utility-link{border:0;padding:8px 4px;background:transparent;color:var(--accent);font-size:12px;text-decoration:none}.utility-link:hover{text-decoration:underline}.utility-link.danger-link{color:var(--danger)}.recording-console{text-align:center;padding:20px 20px 14px;border:1px solid #e9e3d8;border-radius:18px;background:linear-gradient(150deg,#f7f0e6,#f5f5ed)}.recording-orb{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 12px;background:#ede0d6;border:1px solid #e3cfc0;color:#945546;border-radius:50%}.recording-orb svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.recording-console[data-recording-state=recording] .recording-orb{box-shadow:0 0 0 9px #b56c4f0d;background:#945546;color:#fff}#recording-state{margin:0 0 6px;font-size:13px;color:var(--muted)}#recording-timer{font-size:38px;font-weight:300;font-variant-numeric:tabular-nums;letter-spacing:.06em}.recording-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:16px 0 12px}.record-main-button,.utility-secondary{min-height:44px;padding:10px 25px;border:1px solid transparent;border-radius:12px;font-size:14px;font-weight:600}.record-main-button{background:var(--accent);color:var(--accent-contrast);box-shadow:0 2px 5px #52654b1a}#recording-stop{background:#945546}.utility-secondary{border-color:#d9d9cd;background:#fffefa}.recording-notice{max-width:460px;margin:12px auto 3px;font-size:12px;line-height:1.8;color:var(--muted)}.photo-button{color:var(--accent);background:#edf1e6}.recording-photos{display:flex;gap:10px;overflow-x:auto;padding:10px 0;text-align:left}.recording-photo-card{flex:0 0 110px;margin:0}.recording-photo-card img{width:110px;height:82px;object-fit:cover;border-radius:9px;border:1px solid var(--line)}.recording-photo-card figcaption{font-size:10px;color:var(--muted)}.recording-photo-card button{display:block}.recording-photo-preview{border:0;padding:0;background:transparent;border-radius:9px}.recording-photo-viewer{width:min(960px,96vw);max-height:94dvh;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--paper, #fffefa)}.recording-photo-viewer::backdrop{background:#182019cc}.recording-photo-viewer-actions{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.recording-photo-viewer>img{display:block;width:100%;height:auto}.recording-sources{margin-top:20px;padding:18px 0 2px;border-top:1px solid var(--line);text-align:left}.recording-source-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px}.recording-source-heading h3{font-size:14px;margin:0}.recording-source-heading span{font-size:10px;color:var(--accent);background:#e9efdf;border-radius:20px;padding:4px 9px}.recording-sources p{font-size:11px;line-height:1.8;color:var(--muted);margin:8px 0}.recording-source-actions{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}.recording-source-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:12px;border-bottom:1px solid var(--line)}.recording-source-row span{overflow-wrap:anywhere}.recording-history-group{margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fffefa}.recording-history-group h4{margin:0;font-size:13px}.recording-history-choices{max-height:240px;overflow:auto;margin-bottom:10px}.recording-history-choices label{display:flex;gap:10px;align-items:center;padding:7px 0;font-size:12px;overflow-wrap:anywhere}.recording-history-choices input{flex:0 0 auto;accent-color:var(--accent)}.recording-draft-hint{font-size:11px;line-height:1.7;color:var(--accent)}.transfer-dropzone{text-align:center;padding:30px 18px 24px;border:1.5px dashed #c8d2bf;border-radius:18px;background:#f0f3e9;transition:background .15s,border-color .15s}.transfer-dropzone.is-dragging{border-color:var(--accent);background:#e2ebd7}.transfer-dropzone>svg{width:44px;height:44px;fill:none;stroke:var(--accent);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.transfer-dropzone h3{margin:12px 0 8px;font-weight:500;font-size:20px}.transfer-dropzone p{font-size:12px;color:var(--muted);margin:0 0 20px}.transfer-dropzone small{display:block;margin-top:14px;color:var(--muted);font-size:11px;line-height:1.7}.utility-summary{display:flex;justify-content:space-between;align-items:center;margin:24px 0 4px}.utility-summary h3{font-size:14px;margin:0;font-weight:600}.utility-status{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 14px}.utility-status:empty{display:none}.transfer-list{display:flex;flex-direction:column;gap:10px}.transfer-card{display:flex;gap:14px;align-items:flex-start;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fffefa}.transfer-file-icon{flex:0 0 38px;height:44px;display:grid;place-items:center;background:#eceee1;color:var(--accent);border:1px solid #e1e6d4;border-radius:8px 8px 8px 2px;font-family:ui-serif,serif;font-size:17px}.transfer-card-content{flex:1;min-width:0}.transfer-card h4{margin:0 0 6px;font-size:14px;line-height:1.5;overflow-wrap:anywhere;font-weight:600}.transfer-card-meta{font-size:11px;color:var(--muted);margin:0 0 5px;line-height:1.7}.recording-processing-detail{margin:7px 0;font-size:12px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}.recording-processing-progress{display:block;width:100%;max-width:320px;height:6px;accent-color:var(--accent);margin:10px 0}.transfer-expiry{margin:0;font-size:11px;line-height:1.7;color:#887148}.transfer-card-actions{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:4px}.transfer-card-actions:empty{display:none}.utility-empty{text-align:center;padding:32px 15px;border-radius:14px;background:#f6f5ef;color:var(--muted)}.utility-empty strong{font-size:14px;font-weight:500}.utility-empty p{font-size:12px;line-height:1.8;margin:10px 0 0}.utility-progress{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 14px;margin-bottom:16px;padding:13px 15px;border:1px solid #dce3d0;border-radius:12px;background:#eef2e7}.utility-progress span{font-size:12px}.utility-progress progress{width:100%;height:5px;accent-color:var(--accent);grid-row:2}.utility-progress button{grid-column:2;grid-row:1 / 3;border:0;background:transparent;font-size:12px;color:var(--accent)}.utility-budget{margin-top:18px;padding:12px 14px;font-size:11px;line-height:1.8;color:var(--muted);background:#f5f3eb;border-radius:10px}.reading-article{padding-bottom:28px}.reading-article>p{white-space:pre-wrap;line-height:1.9;margin:0 0 18px}.reading-article h2{font-size:24px;line-height:1.5;margin:28px 0 14px;letter-spacing:.015em}.reading-article h3{font-size:18px;line-height:1.6;margin:26px 0 12px;padding-bottom:9px;border-bottom:1px solid var(--line)}.reading-article h4{font-size:16px;margin:22px 0 10px}.reading-article ul{margin:0 0 22px;padding-left:24px}.reading-article li{margin:8px 0;line-height:1.85}.reading-article blockquote{margin:16px 0;padding:14px 18px;border-left:3px solid #b0bd9e;background:#f2f4ec;font-size:14px;color:var(--muted);line-height:1.85}.reading-article pre{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;background:#f3f2ec;border-radius:10px;font-size:12px;line-height:1.7}.reading-flow{margin:22px 0;padding:20px;border-radius:16px;border:1px solid #dde4d2;background:#f1f4e9}.reading-flow figcaption{font-size:15px;font-weight:600}.flow-disclaimer{display:block;margin-top:6px;font-size:10px;color:var(--muted)}.reading-article .flow-nodes{list-style:none;counter-reset:flow;padding:0;margin:20px 0 0}.reading-article .flow-nodes li{counter-increment:flow;position:relative;display:flex;gap:12px;align-items:center;margin:0 0 24px;padding:12px 14px;background:#fffefa;border:1px solid #dce3d0;border-radius:10px;font-size:13px;line-height:1.6}.flow-nodes li:before{content:counter(flow,decimal-leading-zero);font-size:10px;color:var(--accent);letter-spacing:.05em}.flow-nodes li:not(:last-child):after{content:"↓";position:absolute;left:26px;bottom:-24px;height:24px;color:#8d9c7b}.reading-article .flow-nodes li:last-child{margin-bottom:0}@media(max-width:760px){.feature-actions{margin:0 18px 13px}.utility-dialog{width:100vw;height:100dvh;max-height:none;max-width:none;margin:0;border:0;border-radius:0}.utility-shell{height:100dvh;max-height:none}.utility-header{padding:calc(18px + env(safe-area-inset-top)) 20px 16px}.utility-header h2{font-size:24px}.utility-tabs{margin:0 18px 16px}.utility-body{padding:0 18px 24px;flex:1}.utility-footer{padding:12px 20px calc(12px + env(safe-area-inset-bottom))}.recording-console{padding:18px 12px 12px}.transfer-card{padding:14px 12px;gap:10px}.transfer-dropzone h3{font-size:18px}.reading-flow{padding:16px}}@media(prefers-reduced-motion:reduce){.transfer-dropzone{transition:none}}
