:root{font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Pretendard","Noto Sans KR","Segoe UI",sans-serif;color:#172b46;background:#f7f9fc;font-size:16px;--blue:#1967e8;--blue2:#2672df;--muted:#718198;--line:#e6ebf2;--soft:#f1f5f9;--shadow:0 8px 24px rgba(66,89,121,.08)}*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;background:linear-gradient(180deg,#fbfcfe 0,#f7f9fc 38%,#f5f7fb 100%)}button,input,select{font:inherit}button{cursor:pointer;border:0;background:transparent;color:inherit;border-radius:13px;padding:10px 12px;min-height:42px;-webkit-tap-highlight-color:transparent}button:hover{background:#eef3fb}button:disabled{opacity:.5;cursor:default}input,select{border:1px solid var(--line);border-radius:13px;background:#fff;padding:10px 12px;color:inherit;min-width:0}input:focus,select:focus,[contenteditable]:focus{outline:0;box-shadow:0 0 0 4px rgba(25,103,232,.09);border-color:#9dbcf0}button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}[hidden]{display:none!important}.primary{background:var(--blue);color:#fff;font-weight:750;box-shadow:0 10px 25px rgba(25,103,232,.18)}.primary:hover{background:#125cca}.secondary{background:#eef5ff;color:var(--blue);font-weight:700}.full{width:100%;margin-top:16px}.danger{color:#d74654}.brandLockup{display:flex;flex-direction:column;align-items:center;width:max-content}.brandIcon{display:grid;place-items:center;background:#fff;border:1px solid #e7edf5;box-shadow:0 12px 28px rgba(24,60,112,.14);overflow:hidden}.brandIcon img{display:block;width:100%;height:100%;object-fit:cover}.brandSub{font-weight:800;letter-spacing:1.7px;color:#4b617e;text-transform:lowercase}.authBrand .brandIcon{width:84px;height:84px;border-radius:27px}.authBrand .brandSub{font-size:12px;margin-top:7px}.brandLockup.compact .brandIcon{width:52px;height:52px;border-radius:17px}.brandLockup.compact .brandSub{font-size:9px;margin-top:4px;letter-spacing:1.1px}.brandLockup.mini .brandIcon{width:36px;height:36px;border-radius:12px}.brandLockup.mini .brandSub{font-size:7px;margin-top:2px;letter-spacing:.8px}.mobileBrand{display:none}
.auth{min-height:100svh;display:grid;place-items:center;padding:24px;position:relative;overflow:hidden;background:linear-gradient(155deg,#f8fbff 0%,#edf4ff 52%,#f7f9fc 100%)}.auth::before,.auth::after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;filter:blur(14px);opacity:.58}.auth::before{top:-215px;right:-125px;background:#dbeaff}.auth::after{bottom:-230px;left:-155px;background:#e6efff}.authGlow{position:absolute;width:600px;height:600px;background:radial-gradient(circle,rgba(141,191,255,.33),transparent 68%);top:-280px;right:-180px}.login{z-index:1;width:min(100%,430px);background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.98);border-radius:34px;padding:42px 38px;box-shadow:0 30px 90px rgba(31,64,112,.16);backdrop-filter:blur(20px)}.loginTitle{margin:20px 0 26px;text-align:left}.loginTitle h1{font-size:30px;margin:0;letter-spacing:-1px}.loginTitle p{margin:8px 0 0;color:var(--muted);font-size:14px;line-height:1.6}.authField{display:grid;gap:8px;margin-top:16px;font-size:14px;font-weight:750;color:#41516a}.authField>div{height:58px;border:1px solid #cdd8e6;background:#f9fbfe;border-radius:16px;display:flex;align-items:center;gap:11px;padding:0 15px;transition:.16s}.authField>div:focus-within{border-color:var(--blue2);background:#fff;box-shadow:0 0 0 4px rgba(28,104,218,.08)}.fieldIcon{width:21px;height:21px;display:grid;place-items:center;color:#7a8da7;font-size:11px}.fieldIcon.lock{font-size:13px}.authField input{height:54px;flex:1;min-width:0;border:0;background:transparent;outline:0;padding:0;color:#172b46;box-shadow:none!important}.authField input::placeholder{color:#a1adbc}.remember{position:relative;display:flex;align-items:center;gap:9px;font-weight:650;color:#53657d;cursor:pointer;margin:17px 0 0;font-size:14px}.remember input{position:absolute;opacity:0}.remember i{width:23px;height:23px;border:1px solid #c5d1df;border-radius:8px;background:#fff;position:relative}.remember input:checked+i{background:var(--blue);border-color:var(--blue)}.remember input:checked+i:after{content:"✓";position:absolute;inset:0;color:#fff;display:grid;place-items:center;font-size:15px;font-weight:900}.loginButton{width:100%;height:54px;border-radius:15px;font-size:16px;margin-top:8px}.error{color:#d6374a!important;min-height:20px;margin:9px 0 0!important}.authFoot{display:block;text-align:center;color:#8b98a9;margin-top:24px;font-size:12px}
.brand{display:flex;gap:13px;align-items:center;text-decoration:none;color:inherit;margin:0 5px 28px}.brand>div:last-child{display:flex;flex-direction:column;gap:2px}.brand strong{font-size:19px;letter-spacing:-.4px}.brand small{font-size:11px;color:#8b98a9}.new{width:100%;margin-bottom:26px;height:50px;border-radius:15px}aside{position:fixed;inset:0 auto 0 0;width:252px;background:rgba(255,255,255,.95);border-right:1px solid var(--line);padding:26px 18px 112px;overflow:auto;backdrop-filter:blur(18px);z-index:3}.navlabel{font-size:11px;font-weight:750;color:#94a1b2;padding:0 12px;margin:22px 0 8px;letter-spacing:.3px}nav button,.subnav button{display:flex;align-items:center;gap:11px;width:100%;text-align:left;margin:3px 0;font-size:14px;color:#60728a;min-height:46px}.navIcon{width:25px;text-align:center;color:#7c8ca1;font-size:17px}nav button.active,.subnav button.active{background:#edf4ff;color:var(--blue);font-weight:750}nav button.active .navIcon{color:var(--blue)}nav small{margin-left:auto}.subnav button{overflow:hidden;white-space:nowrap;justify-content:space-between}.subnavLabel{display:flex;align-items:center;gap:11px;min-width:0;flex:1}.subnavIcon{flex:none;color:#7c8ca1}.subnavName{min-width:0;overflow:hidden;text-overflow:ellipsis}.navCount{flex:none;min-width:24px;height:22px;padding:0 7px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#f0f4f9;color:#73849a;font-size:10px;font-weight:800;line-height:1}.subnav button.active .navCount{background:#dce9ff;color:#1967e8}.taglist{display:flex;flex-wrap:wrap;gap:6px;padding:0 8px}.taglist button{font-size:12px;min-height:30px;padding:5px 9px;color:#6c7890;background:#f4f6fa;border-radius:10px;display:inline-flex;align-items:center;gap:5px}.taglist button.active{color:var(--blue);background:#eaf1ff}.tagCount{min-width:17px;height:17px;padding:0 5px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(96,120,151,.10);font-size:9px;font-weight:800;line-height:1}.taglist button.active .tagCount{background:rgba(25,103,232,.12)}.account{position:fixed;bottom:0;left:0;width:251px;padding:19px 18px max(19px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(18px)}.avatar{width:39px;height:39px;border-radius:13px;background:#e8f1ff;color:var(--blue);display:grid;place-items:center;font-weight:800}.account strong{font-size:13px}.account small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.account button{margin-left:auto}.account>div{min-width:0}.account>div strong,.account>div small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}main{margin-left:252px;min-height:100svh}header{height:78px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:rgba(255,255,255,.89);padding:0 34px;gap:10px;position:sticky;top:0;z-index:2;backdrop-filter:blur(18px)}.crumb{display:flex;gap:12px;font-size:13px;color:var(--muted);align-items:center;min-width:0}.crumb strong{color:#44566f;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.headerActions{display:flex;font-size:12px;color:#718198;white-space:nowrap;align-items:center}.headerIcon{width:42px;height:42px;display:grid;place-items:center;background:#f1f5f9;border-radius:14px;padding:0;font-size:18px}#menu{display:none}.workspace{padding:36px 34px 48px;max-width:1580px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:2px;color:#94a1b7;font-weight:800}.heading h1{font-size:28px;letter-spacing:-1px;margin:8px 0 7px}.heading p{font-size:13px;color:var(--muted);margin:0}.heading>.primary{height:48px;border-radius:15px}.filterbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:24px}.searchbox{height:54px;display:flex;align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:17px;width:min(460px,100%);padding-left:15px;color:#8391a7;box-shadow:var(--shadow)}.searchbox span{font-size:24px}.searchbox input{width:100%;border:0;background:transparent;box-shadow:none!important}.filterbar select{font-size:13px;background:#fff;min-width:126px;border-radius:15px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:16px}.card{background:#fff;border:1px solid var(--line);border-radius:19px;min-width:0;overflow:hidden;box-shadow:0 5px 16px rgba(81,103,132,.05);transition:box-shadow .18s,transform .18s}.card:hover{box-shadow:0 11px 30px rgba(47,72,107,.10);transform:translateY(-2px)}.card.openPinned{border-top:3px solid #4c8ef2}.cardOpen{display:block;width:100%;text-align:left;border-radius:0;padding:20px 20px 12px;min-height:210px}.cardOpen:hover{background:transparent}.cardTop{display:flex;justify-content:space-between;align-items:center;color:#8a97ad;font-size:11px;gap:10px}.folderBadge{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#f4f7fb;padding:5px 8px;border-radius:8px}.card h2{font-size:17px;line-height:1.45;margin:15px 0 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;letter-spacing:-.3px}.excerpt{color:#738096;font-size:13px;line-height:1.75;height:69px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;white-space:pre-wrap;overflow-wrap:anywhere}.cardTags{display:flex;gap:6px;margin-top:14px;overflow:hidden;height:24px}.cardTags span{font-size:11px;color:#5f82b4;background:#f0f5fc;padding:4px 7px;border-radius:7px;white-space:nowrap}.cardBottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0f3f7;margin:0 20px;padding:12px 0 14px;font-size:11px;color:#94a0b2;gap:8px}.cardBottom span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cardBottom button{font-size:11px;padding:4px 8px;min-height:32px}.empty{text-align:center;padding:72px 0;color:var(--muted)}.emptyIcon{width:54px;height:54px;border-radius:17px;margin:auto;background:#edf4ff;color:#5b8ed9;display:grid;place-items:center;font-size:26px}.empty h2{font-size:18px;color:#526077}.empty p{font-size:13px}
dialog{border:1px solid var(--line);border-radius:23px;padding:0;box-shadow:0 28px 100px rgba(21,36,61,.25);color:inherit;max-width:calc(100vw - 32px);background:#fff}dialog::backdrop{background:rgba(23,42,72,.38);backdrop-filter:blur(4px)}#editor{width:850px;height:min(840px,92dvh);overflow:hidden}#editor[open]{display:flex;flex-direction:column}.editorTop{display:flex;align-items:center;gap:7px;padding:14px 18px;border-bottom:1px solid var(--line);flex-shrink:0;background:#fff}.pill{font-size:11px;padding:6px 9px;border-radius:9px;background:#edf4ff;color:var(--blue);white-space:nowrap;font-weight:700}#saveStatus{font-size:11px;color:var(--muted);margin-right:auto}#retrySave{font-size:11px;color:var(--blue)}.editorTop button{font-size:13px;padding:8px}.editorScroll{overflow-y:auto;padding:26px 32px 30px;flex:1;min-height:0}.noteTitle{font-weight:800;font-size:28px;border:0;padding:9px 0;width:100%;margin-bottom:14px;letter-spacing:-.7px;box-shadow:none!important}.noteMeta{display:flex;gap:13px;margin-bottom:20px}.noteMeta label{font-size:11px;color:var(--muted);flex:1;min-width:0;font-weight:700}.noteMeta input{width:100%;margin-top:7px;font-size:14px;background:#fafbfd}.toolbar{display:flex;align-items:center;gap:5px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px 0;position:sticky;top:-26px;background:#fff;z-index:1}.toolbar button{width:38px;min-height:36px;padding:5px;border-radius:10px}.toolbar select{border:0;font-size:13px;width:100px;box-shadow:none!important}.toolbar input[type=color]{width:34px;height:34px;padding:5px;border:0}.divider{width:1px;height:18px;background:var(--line)}#body{min-height:250px;padding:22px 3px;font-size:16px;line-height:1.85;overflow-wrap:anywhere}#body:empty:before{content:attr(data-placeholder);color:#acb5c5;pointer-events:none}.attachmentHeading{display:flex;justify-content:space-between;align-items:center;padding:18px 0 11px;border-top:1px solid var(--line);font-size:14px;gap:14px}.attachmentHeading>div{display:flex;flex-direction:column;gap:4px}.attachmentHeading small{font-size:11px;color:#8996a8;font-weight:500}.upload{color:var(--blue);cursor:pointer;padding:10px 12px;background:#eef5ff;border-radius:12px;font-size:13px;font-weight:700;white-space:nowrap}#attachments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fileCard{border:1px solid var(--line);border-radius:15px;padding:9px;display:flex;gap:8px;align-items:center;min-width:0;background:#fff}.filePreview{padding:0;min-height:66px;display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:10px;text-align:left;flex:1;min-width:0;border-radius:11px}.filePreview:hover{background:#f8fafc}.fileThumb{width:60px;height:60px;border-radius:11px;background:#eff4fb;display:grid;place-items:center;overflow:hidden;color:#57708f;font-weight:800;font-size:13px}.fileThumb img{width:100%;height:100%;object-fit:cover}.fileThumb.pdf{background:#fff1f1;color:#d85050}.fileThumb.text{background:#eef6ff;color:#2f72c7}.fileMeta{min-width:0;display:flex;flex-direction:column;gap:4px}.fileMeta strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#41516a}.fileMeta small{font-size:10px;color:#8a98aa}.fileMeta em{font-size:10px;color:var(--blue);font-style:normal;font-weight:700}.fileDelete{flex:none;width:34px;min-height:34px;padding:0;color:#8a98aa}.editorFooter{padding:12px 22px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);font-size:11px;color:var(--muted);flex-shrink:0;background:#fff}.editorFooter button{font-size:12px}.smallDialog{width:440px;padding:25px;max-height:90dvh;overflow:auto}.modalHead{display:flex;justify-content:space-between;align-items:flex-start}.modalHead h2{font-size:20px;margin:3px 0 0}.modalKicker{font-size:10px;letter-spacing:1.2px;color:#8b9aaf;font-weight:800;text-transform:uppercase}.smallDialog p{font-size:13px;color:var(--muted)}.person{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:14px 0;gap:12px}.person small{display:block;color:var(--muted);font-size:11px}.person select{font-size:13px}.smallDialog form label{display:block;font-size:13px;margin-top:16px;font-weight:700;color:#41516a}.smallDialog form label input{display:block;width:100%;margin-top:8px}.smallDialog form h3{font-size:15px;margin:24px 0 5px}.previewDialog{width:min(980px,calc(100vw - 30px));height:min(820px,90dvh);overflow:hidden}.previewDialog[open]{display:flex;flex-direction:column}.previewHead{min-height:68px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px 12px 20px;border-bottom:1px solid var(--line);background:#fff}.previewHead>div:first-child{min-width:0;display:flex;flex-direction:column;gap:3px}.previewHead strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.previewHead>div:last-child{display:flex;gap:6px;align-items:center}.previewDownload{color:var(--blue);font-size:12px;font-weight:700;text-decoration:none;padding:9px 10px;border-radius:10px;background:#eef5ff}.previewStage{flex:1;min-height:0;background:#f3f6fa;display:grid;place-items:center;overflow:auto;padding:18px}.previewStage img{max-width:100%;max-height:100%;object-fit:contain;border-radius:12px;box-shadow:0 7px 30px rgba(35,54,81,.12)}.previewStage iframe{width:100%;height:100%;min-height:560px;border:0;border-radius:12px;background:#fff}.previewText{width:min(800px,100%);min-height:100%;margin:0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#34445b}.previewFallback{text-align:center;color:#62748d;background:#fff;border:1px solid var(--line);border-radius:18px;padding:32px;width:min(420px,100%)}.previewFallback b{display:block;font-size:16px;color:#334862;margin-bottom:8px}.previewFallback p{font-size:13px;line-height:1.6;margin:0}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#24334d;color:#fff;border-radius:12px;padding:13px 20px;z-index:100;max-width:90vw;font-size:13px;box-shadow:0 8px 28px rgba(0,0,0,.18)}#scrim{position:fixed;inset:0;z-index:4;background:rgba(24,43,72,.38);border-radius:0}body:has(dialog[open]){overflow:hidden}
@media(min-width:1450px){.cards{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1050px){aside{width:218px;padding-inline:15px}.account{width:217px;padding-inline:15px}main{margin-left:218px}.workspace{padding:30px 23px}header{padding:0 23px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body{overscroll-behavior-x:none}aside{transform:translateX(-100%);z-index:5;width:min(282px,86vw);transition:transform .2s;padding-top:max(22px,env(safe-area-inset-top))}aside.open{transform:translateX(0)}.account{width:min(281px,calc(86vw - 1px))}main{margin:0}header{height:66px;padding:0 10px;padding-top:env(safe-area-inset-top);box-sizing:content-box}.crumb{gap:8px;flex:1}.crumb>span{display:none}.crumb strong{font-size:14px}.mobileBrand{display:flex}.mobileBrand+.crumb{}#menu{display:grid}.headerActions{font-size:11px}.headerActions #logout{display:none}.workspace{padding:24px 16px 40px}.heading{margin-bottom:20px;align-items:end}.heading h1{font-size:25px}.heading>.primary{font-size:13px;white-space:nowrap;height:45px;padding-inline:12px}.eyebrow{font-size:9px}.filterbar{gap:8px;margin-bottom:18px}.filterbar select{width:112px;min-width:0;padding:9px 7px;font-size:12px}.searchbox{height:50px;border-radius:15px}.searchbox input{font-size:16px;padding:11px 7px}.cards{gap:11px;grid-template-columns:repeat(2,minmax(0,1fr))}.cardOpen{padding:15px 13px 9px;min-height:196px}.card h2{font-size:15px;margin-top:12px}.excerpt{font-size:12px;height:66px}.cardBottom{margin:0 13px;flex-wrap:wrap;font-size:10px}.cardTop{font-size:10px}.cardTags span{font-size:10px}.folderBadge{padding:4px 6px}#editor{max-width:100vw;width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0}.editorTop{padding:9px 10px;padding-top:max(9px,env(safe-area-inset-top));gap:4px}.editorTop button{font-size:12px;padding:7px}.editorScroll{padding:18px 16px 24px}.noteTitle{font-size:25px}.noteMeta{gap:9px}.noteMeta input{font-size:16px}.toolbar{top:-18px;gap:3px}.editorFooter{padding:8px 12px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.smallDialog{padding:20px}.cardTags{max-width:100%}#attachments{grid-template-columns:1fr}.attachmentHeading small{display:none}.filePreview{grid-template-columns:54px minmax(0,1fr)}.fileThumb{width:54px;height:54px}.previewDialog{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border:0;border-radius:0;margin:0}.previewHead{padding-top:max(12px,env(safe-area-inset-top))}.previewStage{padding:10px}.previewStage iframe{min-height:calc(100dvh - 94px)}}
@media(max-width:370px){.cards{grid-template-columns:1fr}.mobileBrand{display:none}.attachmentHeading{align-items:flex-start;flex-direction:column}.upload{align-self:stretch;text-align:center}}

/* v1.2.0 - card/list layout and separate read/edit mode */
.viewSwitch{display:flex;align-items:center;gap:4px;padding:4px;background:#eef2f7;border:1px solid #e1e7f0;border-radius:13px;flex:none}.viewSwitch button{min-height:38px;padding:7px 10px;border-radius:9px;color:#7b8799;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700}.viewSwitch button.active{background:#fff;color:var(--blue);box-shadow:0 2px 8px rgba(45,67,98,.12)}
.cards.listView{grid-template-columns:1fr;gap:8px}.listView .card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;min-height:76px}.listView .cardOpen{min-height:0;padding:12px 16px;display:grid;grid-template-columns:132px minmax(150px,1fr) minmax(180px,2fr) minmax(100px,auto);gap:14px;align-items:center}.listView .cardTop{margin:0;gap:7px}.listView .card h2{margin:0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.listView .excerpt{height:auto;min-height:0;margin:0;font-size:12px;-webkit-line-clamp:1;line-height:1.5;white-space:normal}.listView .cardTags{height:auto;margin:0;justify-content:flex-end;min-width:0}.listView .cardTags span{max-width:100px;overflow:hidden;text-overflow:ellipsis}.listView .cardBottom{margin:0;padding:10px 14px;border-top:0;border-left:1px solid #f0f3f7;min-width:118px;flex-direction:column;justify-content:center;align-items:flex-end;gap:4px}.listView .cardBottom span{text-align:right}.listView .folderBadge{max-width:108px;overflow:hidden;text-overflow:ellipsis}
.viewerDialog{width:850px;height:min(840px,92dvh);overflow:hidden}.viewerDialog[open]{display:flex;flex-direction:column}.viewerTop{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;border-bottom:1px solid var(--line);background:#fff;flex:none}.viewerTop>div{display:flex;align-items:center;gap:9px;min-width:0}.viewerActions{margin-left:auto}.viewerActions .primary{padding:9px 16px}.viewerScroll{flex:1;min-height:0;overflow-y:auto;padding:30px 34px}.viewerTitle{font-size:30px;line-height:1.25;letter-spacing:-.7px;margin:0 0 14px;color:#27364c;overflow-wrap:anywhere}.viewerMeta{display:flex;align-items:center;gap:8px;min-height:31px;margin-bottom:22px;flex-wrap:wrap}.viewerTags{display:flex;gap:6px;flex-wrap:wrap}.viewerTags span{font-size:11px;color:#5f82b4;background:#f0f5fc;padding:5px 8px;border-radius:8px}.viewerTags .mutedTag{color:#9aa6b7;background:#f6f7f9}.viewerBody{min-height:220px;padding:20px 2px 30px;border-top:1px solid var(--line);font-size:16px;line-height:1.85;color:#334155;overflow-wrap:anywhere}.viewerBody h1,.viewerBody h2,.viewerBody h3{color:#25364e}.viewerBody a{color:var(--blue)}.viewerEmpty{color:#9aa6b7}.viewerAttachments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.viewerFooter{padding:12px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);background:#fff;flex:none}.viewerFooter b{color:#5278ae}
@media(max-width:700px){.viewSwitch{padding:3px}.viewSwitch button{min-height:40px;padding:7px 9px}.viewSwitch button span{display:none}.filterbar{flex-wrap:wrap}.searchbox{flex:1 1 calc(100% - 128px)}.filterbar select{order:3;flex:1;width:auto}.viewSwitch{order:2}.cards.listView{grid-template-columns:1fr}.listView .card{display:block;min-height:0}.listView .cardOpen{padding:13px 14px;display:grid;grid-template-columns:1fr auto;gap:8px 10px}.listView .cardTop{grid-column:1/-1}.listView .card h2{grid-column:1/-1;font-size:15px}.listView .excerpt{grid-column:1/-1}.listView .cardTags{grid-column:1/-1;justify-content:flex-start}.listView .cardBottom{border-left:0;border-top:1px solid #f0f3f7;margin:0 14px;padding:9px 0 11px;min-width:0;flex-direction:row;align-items:center}.viewerDialog{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border:0;border-radius:0;margin:0}.viewerTop{padding:10px 11px;padding-top:max(10px,env(safe-area-inset-top))}.viewerTop .modalKicker{display:none}.viewerScroll{padding:22px 17px 28px}.viewerTitle{font-size:26px}.viewerAttachments{grid-template-columns:1fr}.viewerFooter{padding:9px 13px;padding-bottom:max(9px,env(safe-area-inset-bottom));flex-wrap:wrap}.viewerFooter span:last-child{display:none}}

/* v1.3.0 - dark mode, note colors, checklist, templates */
.compactAction{height:46px;padding:9px 14px;white-space:nowrap;border:1px solid #dce6f3}.themeToggle{font-size:17px}.appearanceSettings{margin:18px 0 6px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#f8fafc}.appearanceSettings h3{font-size:14px;margin:0 0 6px}.appearanceSettings p{margin:0 0 12px!important;font-size:12px!important}.appearanceSettings select{width:100%}.templateGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.templateGrid button{min-height:88px;padding:16px;text-align:left;border:1px solid var(--line);background:#f8fafc;border-radius:16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px}.templateGrid button:hover{background:#eef5ff;border-color:#cdddf5}.templateGrid b{font-size:14px}.templateGrid small{font-size:11px;color:var(--muted);line-height:1.45}.noteColorControl{display:flex!important;align-items:center!important;gap:5px!important;font-size:11px!important;color:var(--muted)!important;font-weight:700!important;white-space:nowrap}.noteColorControl select{width:76px!important;padding:6px 4px!important;border:0!important;background:transparent!important}.charCount{margin-left:auto;margin-right:8px;white-space:nowrap}.checkItem{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;align-items:start;column-gap:9px;width:100%!important;min-width:0!important;max-width:100%;min-height:30px;margin:4px 0;padding:0!important;float:none!important;position:relative}.checkMark{position:static!important;width:22px;min-width:22px;display:grid;place-items:center;color:var(--blue);font-weight:850;cursor:pointer;user-select:none;line-height:1.85}.checkText{display:block!important;width:auto!important;min-width:0!important;max-width:100%;overflow-wrap:break-word;word-break:keep-all;white-space:pre-wrap}.checkItem.done .checkText{text-decoration:line-through;color:#8d9aad}.viewerCheck .checkMark{cursor:default}.card.note-color-blue{background:#f4f8ff}.card.note-color-green{background:#f3fbf7}.card.note-color-yellow{background:#fffaf0}.card.note-color-rose{background:#fff6f7}.card.note-color-purple{background:#faf6ff}.card.note-color-blue .cardOpen,.card.note-color-green .cardOpen,.card.note-color-yellow .cardOpen,.card.note-color-rose .cardOpen,.card.note-color-purple .cardOpen{background:transparent}.card.note-color-blue{border-color:#dbe9fb}.card.note-color-green{border-color:#d9eee2}.card.note-color-yellow{border-color:#f1e4c2}.card.note-color-rose{border-color:#f0dde1}.card.note-color-purple{border-color:#e8dcf5}
#viewer[data-note-color="blue"] .viewerScroll,#editor[data-note-color="blue"] .editorScroll{background:linear-gradient(180deg,#f7faff 0,#fff 190px)}#viewer[data-note-color="green"] .viewerScroll,#editor[data-note-color="green"] .editorScroll{background:linear-gradient(180deg,#f5fbf7 0,#fff 190px)}#viewer[data-note-color="yellow"] .viewerScroll,#editor[data-note-color="yellow"] .editorScroll{background:linear-gradient(180deg,#fffbf1 0,#fff 190px)}#viewer[data-note-color="rose"] .viewerScroll,#editor[data-note-color="rose"] .editorScroll{background:linear-gradient(180deg,#fff7f8 0,#fff 190px)}#viewer[data-note-color="purple"] .viewerScroll,#editor[data-note-color="purple"] .editorScroll{background:linear-gradient(180deg,#fbf7ff 0,#fff 190px)}

html[data-theme="dark"]{color-scheme:dark;--blue:#6aa6ff;--blue2:#77adff;--muted:#9aa8bc;--line:#293548;--soft:#1a2433;--shadow:0 8px 28px rgba(0,0,0,.24);color:#e5edf8;background:#111827}html[data-theme="dark"] body{background:linear-gradient(180deg,#111827 0,#101722 45%,#0d141e 100%);color:#e5edf8}html[data-theme="dark"] button:hover{background:#202c3d}html[data-theme="dark"] input,html[data-theme="dark"] select{background:#151f2d;border-color:#334155;color:#e5edf8}html[data-theme="dark"] input::placeholder{color:#748298}html[data-theme="dark"] .secondary{background:#1b2a40;color:#89b7ff}html[data-theme="dark"] .auth{background:linear-gradient(155deg,#101827 0%,#162236 52%,#0f1723 100%)}html[data-theme="dark"] .auth::before{background:#1e3a62}html[data-theme="dark"] .auth::after{background:#172c4a}html[data-theme="dark"] .authGlow{background:radial-gradient(circle,rgba(54,113,197,.22),transparent 68%)}html[data-theme="dark"] .login{background:rgba(20,29,42,.95);border-color:#26364d;box-shadow:0 30px 90px rgba(0,0,0,.42)}html[data-theme="dark"] .authField{color:#c5d2e4}html[data-theme="dark"] .authField>div{background:#111a27;border-color:#34445a}html[data-theme="dark"] .authField>div:focus-within{background:#151f2e;border-color:#6aa6ff}html[data-theme="dark"] .authField input{color:#ecf3fd}html[data-theme="dark"] .remember{color:#a9b6c9}html[data-theme="dark"] .remember i{background:#151f2d;border-color:#425069}html[data-theme="dark"] .brandIcon{background:#fff;border-color:#314058}html[data-theme="dark"] .brandSub{color:#9eb0c8}html[data-theme="dark"] aside,html[data-theme="dark"] .account{background:rgba(17,24,39,.96);border-color:#293548}html[data-theme="dark"] .brand small,html[data-theme="dark"] .navlabel{color:#7f8ca0}html[data-theme="dark"] nav button,html[data-theme="dark"] .subnav button{color:#a9b5c6}html[data-theme="dark"] nav button.active,html[data-theme="dark"] .subnav button.active{background:#1b2b42;color:#78abf8}html[data-theme="dark"] .taglist button{background:#1c2635;color:#aab7c9}html[data-theme="dark"] .taglist button.active{background:#203755;color:#84b2f8}html[data-theme="dark"] .avatar{background:#1e3552;color:#80b1ff}html[data-theme="dark"] header{background:rgba(17,24,39,.90);border-color:#293548}html[data-theme="dark"] .crumb strong{color:#d3deed}html[data-theme="dark"] .headerIcon{background:#1b2635;color:#d7e1ee}html[data-theme="dark"] .searchbox,html[data-theme="dark"] .filterbar select{background:#151f2d;border-color:#2c3b50;color:#dfe8f5}html[data-theme="dark"] .viewSwitch{background:#172130;border-color:#2d3b4e}html[data-theme="dark"] .viewSwitch button{color:#8f9db1}html[data-theme="dark"] .viewSwitch button.active{background:#223047;color:#78adff;box-shadow:0 2px 10px rgba(0,0,0,.3)}html[data-theme="dark"] .compactAction{border-color:#334359}html[data-theme="dark"] .card{background:#151e2b;border-color:#2b3749;box-shadow:0 5px 18px rgba(0,0,0,.18)}html[data-theme="dark"] .card:hover{box-shadow:0 12px 34px rgba(0,0,0,.32)}html[data-theme="dark"] .folderBadge{background:#1b2635;color:#9eacc0}html[data-theme="dark"] .card h2{color:#edf3fb}html[data-theme="dark"] .excerpt{color:#9eabc0}html[data-theme="dark"] .cardTags span{color:#8ab6f7;background:#1a304d}html[data-theme="dark"] .cardBottom{border-color:#283548;color:#8492a6}html[data-theme="dark"] .emptyIcon{background:#1b304c;color:#78a9ef}html[data-theme="dark"] .empty h2{color:#c6d3e4}html[data-theme="dark"] dialog{background:#131c29;border-color:#2d394c;box-shadow:0 28px 100px rgba(0,0,0,.55)}html[data-theme="dark"] dialog::backdrop{background:rgba(3,8,15,.63)}html[data-theme="dark"] .editorTop,html[data-theme="dark"] .editorFooter,html[data-theme="dark"] .viewerTop,html[data-theme="dark"] .viewerFooter,html[data-theme="dark"] .previewHead{background:#131c29;border-color:#2c394c}html[data-theme="dark"] .pill{background:#1b304d;color:#8bb9ff}html[data-theme="dark"] .noteTitle{background:transparent;color:#f2f6fb}html[data-theme="dark"] .noteMeta input{background:#111a26}html[data-theme="dark"] .toolbar{background:#131c29;border-color:#2c394c}html[data-theme="dark"] .toolbar select,html[data-theme="dark"] .noteColorControl select{background:#131c29!important;color:#dce6f3!important}html[data-theme="dark"] #body{color:#dce6f2}html[data-theme="dark"] .upload{background:#1b304d;color:#87b7ff}html[data-theme="dark"] .fileCard{background:#151f2c;border-color:#2d394c}html[data-theme="dark"] .filePreview:hover{background:#1b2737}html[data-theme="dark"] .fileThumb{background:#1e2a3a;color:#a5b7cd}html[data-theme="dark"] .fileMeta strong{color:#d6e1ee}html[data-theme="dark"] .fileMeta small{color:#8795a8}html[data-theme="dark"] .smallDialog form label{color:#bdcadb}html[data-theme="dark"] .appearanceSettings{background:#111a26;border-color:#2d394c}html[data-theme="dark"] .templateGrid button{background:#111a26;border-color:#2d394c;color:#e4edf8}html[data-theme="dark"] .templateGrid button:hover{background:#1a2b43;border-color:#3d5f8d}html[data-theme="dark"] .viewerTitle{color:#eef4fb}html[data-theme="dark"] .viewerTags span{background:#1a304d;color:#8fbaff}html[data-theme="dark"] .viewerTags .mutedTag{background:#1b2634;color:#8e9caf}html[data-theme="dark"] .viewerBody{color:#d6e1ee;border-color:#2c394c}html[data-theme="dark"] .viewerBody h1,html[data-theme="dark"] .viewerBody h2,html[data-theme="dark"] .viewerBody h3{color:#edf4fc}html[data-theme="dark"] .previewDownload{background:#1b304d;color:#8ebcff}html[data-theme="dark"] .previewStage{background:#0d141e}html[data-theme="dark"] .previewText,html[data-theme="dark"] .previewFallback{background:#151f2c;border-color:#2d394c;color:#c8d5e5}html[data-theme="dark"] .previewFallback b{color:#e5edf8}html[data-theme="dark"] #toast{background:#e2e8f0;color:#172033}html[data-theme="dark"] .listView .cardBottom{border-color:#2a3748}
html[data-theme="dark"] .card.note-color-blue{background:#15243a;border-color:#25456d}html[data-theme="dark"] .card.note-color-green{background:#152a24;border-color:#285042}html[data-theme="dark"] .card.note-color-yellow{background:#2b2818;border-color:#574d26}html[data-theme="dark"] .card.note-color-rose{background:#2d1e25;border-color:#563442}html[data-theme="dark"] .card.note-color-purple{background:#261f32;border-color:#49395f}html[data-theme="dark"] #viewer[data-note-color="blue"] .viewerScroll,html[data-theme="dark"] #editor[data-note-color="blue"] .editorScroll{background:linear-gradient(180deg,#16243a 0,#131c29 190px)}html[data-theme="dark"] #viewer[data-note-color="green"] .viewerScroll,html[data-theme="dark"] #editor[data-note-color="green"] .editorScroll{background:linear-gradient(180deg,#162a25 0,#131c29 190px)}html[data-theme="dark"] #viewer[data-note-color="yellow"] .viewerScroll,html[data-theme="dark"] #editor[data-note-color="yellow"] .editorScroll{background:linear-gradient(180deg,#2b2819 0,#131c29 190px)}html[data-theme="dark"] #viewer[data-note-color="rose"] .viewerScroll,html[data-theme="dark"] #editor[data-note-color="rose"] .editorScroll{background:linear-gradient(180deg,#2c1f25 0,#131c29 190px)}html[data-theme="dark"] #viewer[data-note-color="purple"] .viewerScroll,html[data-theme="dark"] #editor[data-note-color="purple"] .editorScroll{background:linear-gradient(180deg,#251f31 0,#131c29 190px)}
@media(max-width:700px){.compactAction{order:4;flex:1}.templateGrid{grid-template-columns:1fr}.noteColorControl span{display:none}.noteColorControl select{width:68px!important}.charCount{display:none}.viewerActions .secondary{padding-inline:10px}}
.toolbar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.toolbar::-webkit-scrollbar{display:none}.toolbar>*{flex:none}

/* v1.4.0 · NSX import / backup */
.settingsDialog{width:500px}.dataSettings{margin:14px 0 6px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#f8fafc}.settingTitle{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.dataSettings h3{font-size:14px;margin:0 0 6px}.dataSettings p{margin:0!important;font-size:12px!important;line-height:1.55}.formatBadge,.adminBadge{flex:none;border-radius:10px;padding:5px 8px;font-size:10px;font-weight:850;letter-spacing:.4px}.formatBadge{background:#e9f2ff;color:#1c67cf}.adminBadge{background:#edf0f5;color:#607086}.dataActionGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.dataAction{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin-top:13px;border-radius:13px;font-size:13px;font-weight:780;cursor:pointer;transition:.15s}.dataAction.primaryAction{background:#1967e8;color:#fff}.dataAction.backupAction{background:var(--settings-action-bg);color:var(--settings-action-fg);margin-top:0}.dataAction.restoreAction{background:#fff3f3;color:#bd3d4a;margin-top:0;border:1px solid #f0d6d8}.dataAction:hover{filter:brightness(.98)}.dataAction.busy{pointer-events:none;opacity:.58}.dataHelp{display:block;margin-top:10px;color:#7e8b9d;font-size:11px;line-height:1.55}.warningHelp{color:#9b6670}.adminDataTools{margin-top:10px}.settingsDialog form{border-top:1px solid var(--line);margin-top:20px;padding-top:2px}html[data-theme="dark"] .dataSettings{background:#111a26;border-color:#2d394c}html[data-theme="dark"] .formatBadge{background:#183252;color:#8dbaff}html[data-theme="dark"] .adminBadge{background:#202b3a;color:#a5b4c7}html[data-theme="dark"] .dataAction.restoreAction{background:#2b1c23;border-color:#4f303a;color:#ec9fab}html[data-theme="dark"] .settingsDialog form{border-color:#2d394c}@media(max-width:700px){.settingsDialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:20px;padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}.dataActionGrid{grid-template-columns:1fr}}

/* v1.4.1 - mobile drawer layout fix */
aside#sidebar{display:flex;flex-direction:column;height:100dvh;max-height:100dvh;overflow:hidden;padding:0;background:rgba(255,255,255,.97)}
.sidebarTop{flex:none;padding:26px 18px 0;background:inherit;position:relative;z-index:2}
.sidebarBrandRow{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.sidebarBrandRow .brand{flex:1;min-width:0;margin-bottom:22px}
.menuClose{display:none;flex:none;width:42px;height:42px;min-height:42px;padding:0;place-items:center;border:1px solid var(--line);background:var(--soft);font-size:16px}
.sidebarScroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 18px 28px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:transparent transparent}.sidebarScroll::-webkit-scrollbar{width:6px;height:6px}.sidebarScroll::-webkit-scrollbar-track{background:transparent}.sidebarScroll::-webkit-scrollbar-thumb{background:transparent;border-radius:999px;border:1px solid transparent;background-clip:padding-box}.sidebarScroll.is-scrolling{scrollbar-color:rgba(112,137,168,.52) transparent}.sidebarScroll.is-scrolling::-webkit-scrollbar-thumb{background:rgba(112,137,168,.52);background-clip:padding-box}.sidebarScroll.is-scrolling::-webkit-scrollbar-thumb:hover{background:rgba(83,111,147,.68);background-clip:padding-box}
.sidebarScroll .navlabel:first-child{margin-top:4px}
.account{position:static;flex:none;width:100%;padding:17px 18px max(17px,env(safe-area-inset-bottom));z-index:2}
html[data-theme="dark"] aside#sidebar{background:rgba(17,24,39,.985)}
html[data-theme="dark"] .sidebarTop{background:inherit}
html[data-theme="dark"] .menuClose{background:#1b2635;border-color:#2d3b4e;color:#cbd7e7}
body.menu-open{overflow:hidden}
@media(max-width:1050px) and (min-width:701px){.sidebarTop{padding-inline:15px}.sidebarScroll{padding-inline:15px}.account{padding-inline:15px}}
@media(max-width:700px){
  aside#sidebar{width:min(320px,90vw);max-width:90vw;height:100dvh;max-height:100dvh;box-shadow:18px 0 45px rgba(8,18,32,.18);padding:0;transform:translate3d(-100%,0,0);will-change:transform}
  aside#sidebar.open{transform:translate3d(0,0,0)}
  .sidebarTop{padding:max(16px,env(safe-area-inset-top)) 16px 0}
  .sidebarBrandRow .brand{margin-bottom:16px}
  .sidebarTop .new{margin-bottom:14px;height:48px}
  .sidebarScroll{padding:0 16px 20px;scrollbar-width:thin;scrollbar-color:transparent transparent}
  .sidebarScroll::-webkit-scrollbar{display:block;width:5px}
  .sidebarScroll.is-scrolling{scrollbar-color:rgba(112,137,168,.52) transparent}
  .menuClose{display:grid}
  .account{width:100%;padding:14px 16px max(14px,env(safe-area-inset-bottom));box-shadow:0 -10px 28px rgba(16,30,50,.06)}
  #scrim{background:rgba(6,14,26,.52);backdrop-filter:blur(1.5px);-webkit-backdrop-filter:blur(1.5px)}
  html[data-theme="dark"] #scrim{background:rgba(2,7,14,.64)}
}

/* v1.5.0 · compact notes, clearer actions, attachment carousel */
.fieldKicker,.noteTitleLabel{display:block;margin:0 0 5px;font-size:10px;font-weight:850;letter-spacing:.9px;color:#8b99ad;text-transform:uppercase}
.noteTitleLabel{margin-top:1px}.noteTitle{margin-bottom:12px}

.cards.cardView{grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:12px}
.card{border-radius:16px}.card:hover{transform:translateY(-1px)}
.cardOpen{padding:15px 16px 9px;min-height:164px}.cardTop{font-size:10px}.folderBadge{padding:4px 7px;border-radius:7px}
.cardTitleRow{display:flex;align-items:center;gap:8px;min-width:0;margin:11px 0 7px}.cardTitleRow h2{min-width:0;flex:1;margin:0;font-size:15px;line-height:1.35}
.attachmentBadge{flex:none;max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 7px;border-radius:8px;background:#eaf3ff;color:#3272c9;font-size:9px;font-weight:850;letter-spacing:-.1px}
.excerpt{font-size:12px;line-height:1.6;height:39px;-webkit-line-clamp:2}.cardTags{gap:5px;margin-top:9px;height:21px}.cardTags span{font-size:10px;padding:3px 6px}
.cardBottom{margin:0 16px;padding:9px 0 10px;font-size:10px}.cardBottom button{min-height:29px;padding:3px 7px;font-size:10px}

.cards.listView{gap:6px}.listView .card{min-height:62px;border-radius:14px}.listView .cardOpen{padding:9px 13px;grid-template-columns:112px minmax(145px,1.1fr) minmax(150px,1.6fr) minmax(80px,auto);gap:10px}
.listView .cardTitleRow{margin:0;min-width:0}.listView .cardTitleRow h2{font-size:13px}.listView .attachmentBadge{font-size:9px;padding:3px 6px}.listView .excerpt{font-size:11px;line-height:1.45}.listView .cardTags span{font-size:9px}.listView .cardBottom{min-width:105px;padding:8px 11px;font-size:10px}

.viewerTop{min-height:65px}.viewerActions{display:flex!important;align-items:center!important;gap:7px!important;flex:none}.viewerAction,.viewerClose,.editorIconButton{height:40px;min-height:40px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:800;padding:0 13px}.viewerAction{min-width:82px;border:1px solid #dce5f1}.viewerAction span{font-size:15px;line-height:1}.viewerAction b{font:inherit}.duplicateAction{background:#f6f8fb;color:#56677e}.editAction{background:#1967e8!important;color:#fff!important;border-color:#1967e8!important}.viewerClose,.editorTop .editorIconButton{width:40px;padding:0;background:#f5f7fa;color:#69778b}
.viewerTitle{margin-bottom:12px}.viewerFooter{min-height:58px}.viewerFooterActions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-left:auto}.viewerHint{white-space:nowrap}.viewerTrash{height:36px;min-height:36px;padding:0 13px;border-radius:11px;background:#fff3f3;color:#b74451;border:1px solid #f0d6da;font-size:11px;font-weight:800;white-space:nowrap}.viewerTrash:hover{background:#ffebed}

.attachmentHeading strong{font-size:13px}.viewerAttachments .fileCard,#attachments .fileCard{border-radius:13px;padding:7px}.viewerAttachments .filePreview,#attachments .filePreview{min-height:58px;grid-template-columns:52px minmax(0,1fr);gap:9px}.viewerAttachments .fileThumb,#attachments .fileThumb{width:52px;height:52px;border-radius:10px}.viewerAttachments .fileMeta strong,#attachments .fileMeta strong{font-size:11px}.viewerAttachments .fileMeta small,#attachments .fileMeta small{font-size:9px}

.previewCanvas{position:relative;display:flex;flex:1;min-height:0;overflow:hidden}.previewCanvas .previewStage{width:100%;padding:20px 72px}.previewNav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:48px;height:48px;min-height:48px;padding:0;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.92);border:1px solid rgba(90,110,140,.18);box-shadow:0 8px 24px rgba(30,45,70,.14);font-size:30px;line-height:1;color:#44617f;backdrop-filter:blur(10px)}.previewPrev{left:14px}.previewNext{right:14px}.previewNav:disabled{opacity:.28;pointer-events:none}.previewHead .modalKicker{display:flex;align-items:center;gap:8px}.previewHead .modalKicker b{display:inline-flex;align-items:center;justify-content:center;min-width:38px;padding:2px 6px;border-radius:7px;background:#edf3fb;color:#587393;font-size:9px;letter-spacing:0}.previewFoot{min-height:42px;padding:8px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);font-size:10px;color:#8996a8;background:#fff}.previewFoot span:last-child{font-weight:750;white-space:nowrap}

html[data-theme="dark"] .fieldKicker,html[data-theme="dark"] .noteTitleLabel{color:#7f8da1}
html[data-theme="dark"] .attachmentBadge{background:#1a3555;color:#8bbaff}
html[data-theme="dark"] .viewerAction{border-color:#334359}html[data-theme="dark"] .duplicateAction,html[data-theme="dark"] .viewerClose,html[data-theme="dark"] .editorTop .editorIconButton{background:#1a2534;color:#b8c5d7}html[data-theme="dark"] .editAction{background:#397fe8!important;border-color:#397fe8!important}html[data-theme="dark"] .viewerTrash{background:#2d1c23;color:#eea4af;border-color:#52303a}html[data-theme="dark"] .viewerTrash:hover{background:#38222a}
html[data-theme="dark"] .previewNav{background:rgba(23,33,47,.92);border-color:#344257;color:#d5e0ee;box-shadow:0 8px 24px rgba(0,0,0,.3)}html[data-theme="dark"] .previewHead .modalKicker b{background:#1b304d;color:#8fbaff}html[data-theme="dark"] .previewFoot{background:#131c29;border-color:#2c394c;color:#8492a6}

@media(max-width:1050px) and (min-width:701px){.cards.cardView{grid-template-columns:repeat(2,minmax(0,1fr))}.listView .cardOpen{grid-template-columns:100px minmax(130px,1fr) minmax(130px,1.4fr)}.listView .cardTags{display:none}}
@media(max-width:700px){
  .cards.cardView{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}.cardOpen{padding:12px 11px 8px;min-height:145px}.cardTitleRow{margin:9px 0 6px;gap:5px}.cardTitleRow h2{font-size:14px}.attachmentBadge{font-size:8px;padding:3px 5px;max-width:54px}.excerpt{font-size:11px;height:35px}.cardTags{margin-top:7px}.cardBottom{margin:0 11px;padding:7px 0 8px}
  .listView .cardOpen{padding:10px 12px;display:grid;grid-template-columns:1fr;gap:5px}.listView .cardTop,.listView .cardTitleRow,.listView .excerpt,.listView .cardTags{grid-column:1/-1}.listView .cardTop{display:flex}.listView .cardTitleRow{margin:1px 0}.listView .excerpt{display:-webkit-box;-webkit-line-clamp:1}.listView .cardTags{display:none}.listView .cardBottom{margin:0 12px;padding:7px 0 9px}
  .viewerTop{min-height:62px;padding-inline:10px}.viewerActions{gap:5px!important}.viewerAction{min-width:67px;height:38px;min-height:38px;padding:0 10px;font-size:11px}.viewerAction span{font-size:13px}.viewerClose,.editorTop .editorIconButton{width:38px;height:38px;min-height:38px}.viewerScroll{padding-top:20px}.fieldKicker{font-size:9px}.viewerFooter{gap:8px}.viewerFooterActions{margin-left:auto}.viewerHint{display:none}.viewerTrash{height:35px;min-height:35px}
  .attachmentHeading{padding-top:15px}.attachmentHeading small{font-size:10px}.viewerAttachments .filePreview,#attachments .filePreview{grid-template-columns:48px minmax(0,1fr);min-height:54px}.viewerAttachments .fileThumb,#attachments .fileThumb{width:48px;height:48px}
  .previewDialog{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border:0;border-radius:0;margin:0}.previewHead{padding-top:max(12px,env(safe-area-inset-top));min-height:70px}.previewCanvas .previewStage{padding:12px 8px 62px}.previewNav{top:auto;bottom:10px;transform:none;width:44px;height:44px;min-height:44px;font-size:28px}.previewPrev{left:calc(50% - 52px)}.previewNext{right:calc(50% - 52px)}.previewFoot{padding-bottom:max(8px,env(safe-area-inset-bottom))}.previewFoot span:first-child{display:none}
}

/* v1.6.0 · list-first editing flow, long-press quick actions, trash multi-select */
.brandLockup{line-height:1}.brandIcon img{object-fit:cover}.authBrand .brandIcon{width:92px;height:92px;border-radius:28px}.brandLockup.compact .brandIcon{width:56px;height:56px;border-radius:18px}.brandLockup.mini .brandIcon{width:38px;height:38px;border-radius:12px}.brandSub{display:none!important}

.heading{align-items:flex-end}.headingIdentity{display:flex;align-items:center;gap:12px;min-width:0}.headingText{min-width:0}.viewBack{width:44px;height:44px;min-height:44px;flex:none;padding:0;display:grid;place-items:center;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow);font-size:30px;line-height:1;color:#43617f;border-radius:14px}.viewBack:hover{background:#f4f8fd}.viewBack.inactive,.viewBack:disabled{opacity:.32;box-shadow:none;cursor:default}.heading h1{margin:5px 0 5px}.heading .eyebrow{letter-spacing:1.3px}.newMainButton{height:46px!important;min-width:128px;padding:0 16px!important;border-radius:14px!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;}.newMainButton span{font-size:20px;line-height:1}.newMainButton b{font-size:13px;font-weight:800}.sidebarTop .new{display:flex;align-items:center;justify-content:center;gap:7px;font-weight:800}

.trashToolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:-7px 0 18px;padding:13px 14px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}.trashToolbarInfo{display:flex;flex-direction:column;gap:3px;min-width:0}.trashToolbarInfo strong{font-size:12px}.trashToolbarInfo span{font-size:10px;color:var(--muted);line-height:1.45}.trashToolbarActions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.secondaryAction,.dangerAction{min-height:36px;height:36px;border-radius:11px;padding:0 11px;font-size:11px;font-weight:800;white-space:nowrap}.secondaryAction{background:#edf4ff;color:#2a69c5}.secondaryAction:hover{background:#e3efff}.dangerAction{background:#fff1f2;color:#bc4452;border:1px solid #f0d5d9}.dangerAction:hover{background:#ffe9ec}.dangerAction:disabled{opacity:.4}.trashCardState{color:#a06973}

.card{position:relative;touch-action:pan-y}.card.selectedCard{border-color:#4f8fe8;box-shadow:0 0 0 2px rgba(42,119,232,.12),0 8px 22px rgba(47,86,140,.1)}.trashSelectBox{position:absolute;z-index:2;top:9px;right:9px;width:30px;height:30px;min-height:30px;padding:0;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.96);border:1px solid #cad7e8;box-shadow:0 5px 12px rgba(49,70,100,.12)}.trashSelectBox span{width:18px;height:18px;border-radius:6px;border:1.5px solid #b9c7da;display:grid;place-items:center;font-size:11px;font-weight:900;color:#fff}.trashSelectBox[aria-pressed="true"] span{background:#1967e8;border-color:#1967e8}.trashSelectBox:hover{background:#f4f8fd}

.actionSheet{width:min(420px,calc(100vw - 24px));border:1px solid var(--line);border-radius:22px;padding:12px 14px 15px;background:#fff;box-shadow:0 28px 90px rgba(20,38,64,.24)}.actionSheet::backdrop{background:rgba(8,18,31,.42);backdrop-filter:blur(2px)}.actionSheetHandle{display:none;width:42px;height:4px;margin:0 auto 10px;border-radius:99px;background:#d7dfeb}.actionSheetHead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 2px 10px}.actionSheetHead h2{margin:3px 0 0;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:290px}.actionSheetHead>button{width:38px;height:38px;min-height:38px;padding:0;background:#f3f6fa}.actionSheetButtons{display:grid;gap:8px}.actionSheetButtons>button{display:flex;align-items:center;text-align:left;gap:12px;width:100%;min-height:64px;padding:10px 12px;border-radius:15px}.actionSheetButtons>button>span{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;font-size:17px}.actionSheetButtons>button div{display:flex;flex-direction:column;gap:2px}.actionSheetButtons>button b{font-size:13px}.actionSheetButtons>button small{font-size:10px;color:var(--muted)}.actionPrimary{background:#f4f8fe}.actionPrimary>span{background:#e4efff;color:#1967e8}.actionPrimary:hover{background:#ebf3ff}.actionDanger{background:#fff5f5}.actionDanger>span{background:#ffe8ea;color:#c44d59}.actionDanger:hover{background:#ffedef}

html[data-theme="dark"] .viewBack{background:#172231;border-color:#2d3b4e;color:#b8c8dc;box-shadow:none}html[data-theme="dark"] .viewBack:hover{background:#1c2939}html[data-theme="dark"] .trashToolbar{background:#141e2b;border-color:#2c394b;box-shadow:none}html[data-theme="dark"] .secondaryAction{background:#1a304d;color:#90bcff}html[data-theme="dark"] .secondaryAction:hover{background:#203957}html[data-theme="dark"] .dangerAction{background:#2b1c23;color:#eda1ad;border-color:#52303a}html[data-theme="dark"] .dangerAction:hover{background:#352129}html[data-theme="dark"] .trashSelectBox{background:rgba(22,31,44,.97);border-color:#3a4b61;box-shadow:none}html[data-theme="dark"] .trashSelectBox span{border-color:#617189}html[data-theme="dark"] .trashSelectBox[aria-pressed="true"] span{background:#397fe8;border-color:#397fe8}html[data-theme="dark"] .card.selectedCard{border-color:#4d8be2;box-shadow:0 0 0 2px rgba(70,137,231,.18)}html[data-theme="dark"] .actionSheet{background:#131c29;border-color:#2d394c;box-shadow:0 28px 100px rgba(0,0,0,.55)}html[data-theme="dark"] .actionSheetHandle{background:#45536a}html[data-theme="dark"] .actionSheetHead>button{background:#1b2635;color:#c6d3e4}html[data-theme="dark"] .actionSheetButtons>button small{color:#8998ac}html[data-theme="dark"] .actionPrimary{background:#17283e}html[data-theme="dark"] .actionPrimary>span{background:#1d3657;color:#94bdff}html[data-theme="dark"] .actionPrimary:hover{background:#1d3049}html[data-theme="dark"] .actionDanger{background:#2b1c23}html[data-theme="dark"] .actionDanger>span{background:#3a232b;color:#efa2ad}html[data-theme="dark"] .actionDanger:hover{background:#352129}

@media(max-width:700px){
  .heading{align-items:center;margin-bottom:17px}.headingIdentity{gap:8px}.viewBack{width:38px;height:38px;min-height:38px;border-radius:12px;font-size:27px}.heading h1{font-size:23px;margin:4px 0}.heading p{font-size:11px}.heading .eyebrow{font-size:9px}.newMainButton{height:40px!important;min-width:103px;padding:0 11px!important}.newMainButton b{font-size:11px}.newMainButton span{font-size:18px}
  .trashToolbar{align-items:flex-start;flex-direction:column;margin:-4px 0 14px;padding:12px}.trashToolbarActions{width:100%;justify-content:flex-start}.secondaryAction,.dangerAction{flex:1;min-width:82px}
  .trashSelectBox{top:7px;right:7px;width:28px;height:28px;min-height:28px}
  .actionSheet{width:100vw;max-width:100vw;margin:auto 0 0;border:0;border-top:1px solid var(--line);border-radius:24px 24px 0 0;padding:9px 14px max(15px,env(safe-area-inset-bottom))}.actionSheetHandle{display:block}.actionSheetHead{padding-top:0}.actionSheetHead h2{max-width:75vw}
}
.trashCardActions{display:flex;align-items:center;gap:7px}.restoreSmall{min-height:28px!important;height:28px;padding:0 8px!important;border-radius:9px!important;background:#edf4ff;color:#2468c9!important;font-size:10px!important;font-weight:800}.restoreSmall:hover{background:#e2efff!important}html[data-theme="dark"] .restoreSmall{background:#1b304d;color:#91bdff!important}html[data-theme="dark"] .restoreSmall:hover{background:#213b5c!important}
.card.justSaved{animation:kmNoteSaved 1.7s ease both}@keyframes kmNoteSaved{0%{box-shadow:0 0 0 0 rgba(25,103,232,.30)}24%{box-shadow:0 0 0 4px rgba(25,103,232,.15),0 12px 30px rgba(47,86,140,.12)}100%{box-shadow:0 5px 16px rgba(81,103,132,.05)}}html[data-theme="dark"] .card.justSaved{animation-name:kmNoteSavedDark}@keyframes kmNoteSavedDark{0%{box-shadow:0 0 0 0 rgba(91,151,236,.34)}24%{box-shadow:0 0 0 4px rgba(91,151,236,.17),0 12px 30px rgba(0,0,0,.24)}100%{box-shadow:0 8px 24px rgba(0,0,0,.22)}}

/* v1.6.1 · viewer back button, compact quick actions, mobile long-press stability */
.headingIdentity{gap:0}.headingText{min-width:0}
.viewerAction.backAction{background:#f5f7fb;color:#47627f;border-color:#dbe5f1;min-width:78px}
.viewerAction.backAction:hover{background:#eef4fb}
.cardOpen{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}
.actionSheet{width:min(348px,calc(100vw - 34px));padding:10px 11px 12px;border-radius:20px}
.actionSheetHead{padding:2px 2px 8px}.actionSheetHead h2{font-size:16px;max-width:220px}
.actionSheetHead>button{width:34px;height:34px;min-height:34px}
.actionSheetButtons{gap:7px}.actionSheetButtons>button{min-height:56px;padding:9px 11px;border-radius:14px}.actionSheetButtons>button>span{width:34px;height:34px;font-size:16px}.actionSheetButtons>button b{font-size:12px}.actionSheetButtons>button small{font-size:10px;line-height:1.35}
html[data-theme="dark"] .viewerAction.backAction{background:#1a2534;color:#c6d3e4;border-color:#334359}
html[data-theme="dark"] .viewerAction.backAction:hover{background:#213044}
@media(max-width:700px){
  .headingIdentity{gap:0}
  .actionSheet{width:min(320px,calc(100vw - 30px));max-width:calc(100vw - 30px);margin:auto;border:1px solid var(--line);border-radius:20px;padding:10px 11px 12px}
  .actionSheetHandle{display:none}
  .actionSheetHead h2{max-width:190px}
  .actionSheetButtons>button{min-height:52px}
}

/* v1.7.0 · editable templates + long-press feedback */
.card.longPressArming{transform:scale(.982)!important;border-color:#8eb6ef!important;box-shadow:0 0 0 3px rgba(25,103,232,.10),0 8px 22px rgba(47,86,140,.12)!important}
.card.longPressArming::after{content:"";position:absolute;inset:0;border:2px solid rgba(25,103,232,.42);border-radius:inherit;pointer-events:none;animation:kmHoldCue .46s linear both}
.card.longPressConfirmed{animation:kmHoldConfirm .26s ease-out}
@keyframes kmHoldCue{0%{opacity:.1;transform:scale(.995)}100%{opacity:1;transform:scale(1)}}
@keyframes kmHoldConfirm{0%{transform:scale(.982)}45%{transform:scale(.97)}100%{transform:scale(1)}}
.actionSheet[open]{animation:kmQuickActionPop .16s ease-out}
@keyframes kmQuickActionPop{0%{opacity:.35;transform:scale(.965) translateY(7px)}100%{opacity:1;transform:scale(1) translateY(0)}}
.actionSheet,.actionSheet *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

.templateManagerDialog,.templateEditDialog{width:min(560px,calc(100vw - 32px))}
.templateManagerTop{display:flex;justify-content:flex-end;margin:14px 0 12px}.templateManagerTop .primary{height:40px;padding:0 13px;border-radius:12px;font-size:12px;font-weight:800}
.templateManageList{display:grid;gap:9px}.templateManageItem{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:15px;background:#f8fafc}.templateManageInfo{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.templateManageInfo b{font-size:13px;color:#354760;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.templateManageInfo small{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.templateManageActions{display:flex;align-items:center;gap:5px;flex:none}.templateManageActions button{height:34px;min-height:34px;padding:0 9px;border-radius:10px;font-size:10px;font-weight:800}.templateUse{background:#1967e8!important;color:#fff!important}.templateEdit{background:#edf4ff;color:#2869c5}.templateDelete{background:#fff0f1;color:#bd4a58}.templateEmpty{padding:34px 18px;text-align:center;border:1px dashed var(--line);border-radius:15px;color:var(--muted);display:flex;flex-direction:column;gap:6px}.templateEmpty b{font-size:13px;color:#52647d}.templateEmpty span{font-size:11px}
.templateEditForm{display:flex;flex-direction:column;gap:12px;margin-top:18px}.templateEditForm label{font-size:11px;font-weight:800;color:#52647a}.templateEditForm input,.templateEditForm select{width:100%;margin-top:6px}.templateMetaRow{display:grid;grid-template-columns:1fr 150px;gap:10px}.templateBody{min-height:190px;max-height:330px;overflow:auto;margin-top:-4px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;font-size:14px;line-height:1.7;outline:none}.templateBody:focus{border-color:#82ace8;box-shadow:0 0 0 3px rgba(25,103,232,.08)}.templateBody:empty:before{content:attr(data-placeholder);color:#a4afbf;pointer-events:none}.templateEditActions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.templateEditActions button{min-width:86px;height:40px;border-radius:12px;font-size:12px;font-weight:800}
.templateManageItem.note-color-blue{background:#f4f8ff;border-color:#dbe9fb}.templateManageItem.note-color-green{background:#f3fbf7;border-color:#d9eee2}.templateManageItem.note-color-yellow{background:#fffaf0;border-color:#f1e4c2}.templateManageItem.note-color-rose{background:#fff6f7;border-color:#f0dde1}.templateManageItem.note-color-purple{background:#faf6ff;border-color:#e8dcf5}
html[data-theme="dark"] .card.longPressArming{border-color:#5c91da!important;box-shadow:0 0 0 3px rgba(91,151,236,.13),0 8px 24px rgba(0,0,0,.30)!important}html[data-theme="dark"] .card.longPressArming::after{border-color:rgba(106,166,255,.5)}
html[data-theme="dark"] .templateManageItem{background:#111a26;border-color:#2d394c}html[data-theme="dark"] .templateManageInfo b{color:#dce7f5}html[data-theme="dark"] .templateEdit{background:#1b304d;color:#91bdff}html[data-theme="dark"] .templateDelete{background:#2d1c23;color:#efa4af}html[data-theme="dark"] .templateEmpty{border-color:#344257}html[data-theme="dark"] .templateEmpty b{color:#c8d5e6}html[data-theme="dark"] .templateEditForm label{color:#b9c7d9}html[data-theme="dark"] .templateBody{background:#111a26;border-color:#344257;color:#e2ebf6}html[data-theme="dark"] .templateManageItem.note-color-blue{background:#17263c;border-color:#29466d}html[data-theme="dark"] .templateManageItem.note-color-green{background:#152a24;border-color:#285042}html[data-theme="dark"] .templateManageItem.note-color-yellow{background:#2b2818;border-color:#574d26}html[data-theme="dark"] .templateManageItem.note-color-rose{background:#2d1e25;border-color:#563442}html[data-theme="dark"] .templateManageItem.note-color-purple{background:#261f32;border-color:#49395f}
@media(max-width:700px){.templateManagerDialog,.templateEditDialog{width:calc(100vw - 22px);max-width:calc(100vw - 22px);padding:18px}.templateManageItem{align-items:flex-start;flex-direction:column}.templateManageActions{width:100%}.templateManageActions button{flex:1}.templateMetaRow{grid-template-columns:1fr 120px}.templateBody{min-height:170px;max-height:300px}}

/* checklist5 · checkbox is structural UI, text is the only editable area */
.checkItem[contenteditable="false"]{user-select:none;-webkit-user-select:none}
.checkItem[contenteditable="false"]>.checkText[contenteditable="true"]{user-select:text;-webkit-user-select:text;cursor:text}
.checkItem[contenteditable="false"]>.checkMark{user-select:none!important;-webkit-user-select:none!important;caret-color:transparent}

/* checklist input flow polish + refresh button */
#body:focus,.checkText[contenteditable="true"]:focus{outline:0!important;box-shadow:none!important;border-color:transparent!important}
.toolbar{border-top:0!important;border-bottom:0!important;padding-top:9px!important;padding-bottom:9px!important}
.attachmentHeading{border-top:0!important;padding-top:22px!important}
.checkItem{border:0!important;outline:0!important;box-shadow:none!important;border-radius:9px;transition:background .15s ease}
.checkItem:focus,.checkItem:focus-within{outline:0!important;box-shadow:none!important;border:0!important}
.checkItem:hover{background:rgba(25,103,232,.035)}
.checkMark{border:0!important;outline:0!important;box-shadow:none!important}
.checkText{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}
#body ul{margin:0 0 6px;padding-left:26px}
#body li{padding-left:2px;margin:2px 0}
.refreshButton.refreshing{animation:kmRefreshSpin .7s linear infinite}
@keyframes kmRefreshSpin{to{transform:rotate(360deg)}}
html[data-theme="dark"] .checkItem:hover{background:rgba(79,139,224,.055)}
@media(max-width:700px){.refreshButton{width:38px;height:38px;min-height:38px;border-radius:12px}}

/* checklist start-caret support */
.checkItem{
  grid-template-columns:0 31px minmax(0,1fr)!important;
  column-gap:0!important;
}
.checkLead{
  grid-column:1;
  width:14px;
  min-width:14px;
  height:28px;
  transform:translateX(-14px);
  display:block;
  overflow:hidden;
  white-space:nowrap;
  color:transparent;
  caret-color:var(--blue);
  outline:0!important;
  border:0!important;
  background:transparent!important;
  cursor:text;
  user-select:text;
  -webkit-user-select:text;
}
.checkLead:focus{outline:0!important;box-shadow:none!important;border:0!important}
.checkMark{grid-column:2}
.checkText{grid-column:3}
.checkMark:focus{outline:0!important;box-shadow:none!important;background:rgba(25,103,232,.07);border-radius:6px}
.viewerCheck{grid-template-columns:22px minmax(0,1fr)!important;column-gap:9px!important}
.viewerCheck>.checkLead{display:none!important}
.viewerCheck>.checkMark{grid-column:1}
.viewerCheck>.checkText{grid-column:2}
html[data-theme="dark"] .checkMark:focus{background:rgba(79,139,224,.10)}

/* viewer checklist quick toggle */
.viewerBody.checkInteractive .viewerCheck>.checkMark{cursor:pointer;user-select:none;-webkit-user-select:none;border-radius:7px;transition:transform .12s ease,background .12s ease,color .12s ease}
.viewerBody.checkInteractive .viewerCheck>.checkMark:hover{background:rgba(25,103,232,.08)}
.viewerBody.checkInteractive .viewerCheck>.checkMark:active{transform:scale(.88)}
.viewerBody.checkInteractive .viewerCheck>.checkMark:focus-visible{outline:2px solid rgba(25,103,232,.35)!important;outline-offset:2px}
.viewerBody.checkSaving .viewerCheck>.checkMark{pointer-events:none;opacity:.7}
html[data-theme="dark"] .viewerBody.checkInteractive .viewerCheck>.checkMark:hover{background:rgba(79,139,224,.12)}

/* mobile logout + login alignment */
.accountInfo{min-width:0;display:flex;flex-direction:column;gap:2px;flex:1}
.accountActions{display:flex;align-items:center;gap:6px;flex:none}
.mobileLogout{display:none}

.authBrand{margin:0 auto}
.loginTitle{text-align:center;margin:18px 0 24px}
.loginTitle h1{line-height:1.2}
.loginTitle p{max-width:320px;margin:8px auto 0}
.authField{width:100%}
.authField>div{width:100%}
.remember{width:100%}
.loginButton{display:flex;align-items:center;justify-content:center}

@media(max-width:700px){
  .headerActions #logout{display:none!important}
  .account{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
  .accountActions{gap:5px}
  .accountActions #settings{width:38px;height:38px;min-height:38px;padding:0;display:grid;place-items:center}
  .mobileLogout{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:38px;min-height:38px;padding:0 10px;border-radius:11px;background:#f4f7fb;color:#53657d;border:1px solid var(--line);font-size:10px;font-weight:800;white-space:nowrap}
  .mobileLogout b{font:inherit}
  .mobileLogout:hover{background:#edf3fa}

  .auth{padding:max(18px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom))}
  .login{width:min(100%,390px);border-radius:26px;padding:30px 20px 26px}
  .authBrand .brandIcon{width:82px;height:82px;border-radius:25px}
  .loginTitle{margin:16px 0 22px}
  .loginTitle h1{font-size:27px}
  .loginTitle p{font-size:12px;line-height:1.55;padding:0 8px}
  .authField{margin-top:14px;gap:7px;font-size:12px}
  .authField>div{height:54px;border-radius:14px;padding:0 13px;gap:9px}
  .authField input{height:50px;font-size:16px}
  .remember{margin-top:15px;font-size:12px}
  .remember i{width:21px;height:21px;border-radius:7px}
  .loginButton{height:52px;margin-top:8px;border-radius:14px;font-size:15px}
  .authFoot{margin-top:20px;font-size:10px;line-height:1.5}
}

html[data-theme="dark"] .mobileLogout{background:#1a2534;color:#c2cfdf;border-color:#334155}
html[data-theme="dark"] .mobileLogout:hover{background:#213044}

/* v1.7.4 · matched header controls + button-only refresh */
.headerActions{gap:7px}
.headerActions .headerIcon{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  flex:0 0 42px;
  padding:0!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  line-height:1;
}
.headerActions .headerIcon svg{
  width:20px;
  height:20px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
.headerActions .themeToggle{background:#edf4ff;color:#2e70d3;border:1px solid #dbe8fa}
.headerActions .themeToggle:hover{background:#e4efff;color:#245fba}
.headerActions .themeToggle .themeFill{fill:currentColor;stroke:none;opacity:.16}
.headerActions .refreshButton{background:#f1f5f9;color:#5d7492;border:1px solid #e1e8f0}
.headerActions .refreshButton:hover{background:#eaf1f8;color:#3d6593}
.refreshButton.refreshing{animation:none!important}
.refreshButton.refreshing svg{animation:kmRefreshSpin .7s linear infinite}
html[data-theme-mode="light"] .headerActions .themeToggle{background:#edf4ff;color:#2f73d8;border-color:#d6e6fb}
html[data-theme="dark"] .headerActions .themeToggle{background:#1a304d;color:#91bdff;border-color:#2e4a6e}
html[data-theme="dark"] .headerActions .themeToggle:hover{background:#203a59;color:#a8ccff}
html[data-theme="dark"] .headerActions .refreshButton{background:#1a2534;color:#aebed2;border-color:#314054}
html[data-theme="dark"] .headerActions .refreshButton:hover{background:#213044;color:#c8d6e7}

@media(max-width:700px){
  body{overscroll-behavior-y:contain}
  .headerActions{gap:6px}
  .headerActions .headerIcon{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    flex-basis:38px;
    border-radius:12px!important;
  }
  .headerActions .headerIcon svg{width:19px;height:19px}
}

/* v1.7.5 · reliable mobile backup */
.backupMobileHelp{color:#5d728d;font-weight:650}
.dataAction:disabled{cursor:wait;opacity:.62}
html[data-theme="dark"] .backupMobileHelp{color:#91a4bd}
@media(max-width:700px){
  #adminDataTools .dataActionGrid{grid-template-columns:1fr;gap:9px}
  #adminDataTools .dataAction{min-height:50px;font-size:13px}
  #adminDataTools .backupMobileHelp{margin-top:11px;padding:9px 10px;border-radius:10px;background:#eef5ff;color:#52749e}
  html[data-theme="dark"] #adminDataTools .backupMobileHelp{background:#17283d;color:#99b7dc}
}


/* v1.8.0 · automatic URL links + offline read-only snapshot (desktop/mobile/PWA) */
.viewerBody a.autoLink{color:var(--blue);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere;word-break:break-word}
.viewerBody a.autoLink:hover{text-decoration-thickness:2px}
.offlineBadge{display:inline-flex;align-items:center;margin-left:6px;padding:4px 8px;border-radius:999px;background:#fff3cd;color:#8a6410;font-size:11px;font-weight:800;white-space:nowrap}
html.offlineMode #newMain,html.offlineMode #newSide,html.offlineMode #templateButton{opacity:.48;cursor:not-allowed}
.offlineAttachment{grid-column:1/-1}
html[data-theme="dark"] .offlineBadge{background:#3b321b;color:#ffd874}
@media(max-width:700px){.offlineBadge{padding:3px 7px;font-size:10px}.viewerBody a.autoLink{display:inline;word-break:break-all}}


/* v1.8.3 · search result highlight inside opened notes */
.viewerSearchBar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:13px 0 12px;padding:9px 10px 9px 12px;border:1px solid #dbe6f4;border-radius:13px;background:#f6f9fd;color:#40546f}
.viewerSearchBar[hidden]{display:none!important}.viewerSearchInfo{min-width:0;display:flex;align-items:center;gap:7px;min-height:32px}.viewerSearchIcon{font-size:16px;color:#1967e8;line-height:1}.viewerSearchInfo strong{min-width:0;max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#2f435d;line-height:1.25}.viewerSearchInfo>span:last-child{flex:none;min-width:42px;height:26px;padding:0 8px;border-radius:999px;background:#e7effa;color:#49617f;font-size:10px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;line-height:1}.viewerSearchMoves{display:grid;grid-template-columns:repeat(2,32px);gap:5px;align-items:center}.viewerSearchMoves button{width:32px;height:32px;min-height:32px;padding:0;border:1px solid #d7e2f0;border-radius:9px;background:#fff;color:#3e5877;display:grid;place-items:center;line-height:0}.viewerSearchMoves button svg{display:block;width:15px;height:15px;overflow:visible}.viewerSearchMoves button path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.viewerSearchMoves button:hover{background:#edf4fe;color:#1967e8}
mark.searchHit{padding:0 .08em;border-radius:4px;background:#ffe58f;color:#3c2b00;box-decoration-break:clone;-webkit-box-decoration-break:clone}.viewerBody mark.searchHit.currentSearchHit,.viewerTitle mark.searchHit.currentSearchHit{background:#ffbd45;color:#241700;outline:2px solid rgba(199,118,0,.28);outline-offset:1px}
html[data-theme="dark"] .viewerSearchBar{background:#172333;border-color:#314158;color:#bdcadd}html[data-theme="dark"] .viewerSearchIcon{color:#7eb0ff}html[data-theme="dark"] .viewerSearchInfo strong{color:#dce6f3}html[data-theme="dark"] .viewerSearchInfo>span:last-child{background:#223550;color:#a9c9f6}html[data-theme="dark"] .viewerSearchMoves button{background:#1b293a;border-color:#35475f;color:#c9d6e7}html[data-theme="dark"] .viewerSearchMoves button:hover{background:#223753;color:#8ebcff}html[data-theme="dark"] mark.searchHit{background:#6a551a;color:#fff1b8}html[data-theme="dark"] .viewerBody mark.searchHit.currentSearchHit,html[data-theme="dark"] .viewerTitle mark.searchHit.currentSearchHit{background:#a56b12;color:#fff7db;outline-color:rgba(255,205,104,.35)}
@media(max-width:700px){.viewerSearchBar{margin:11px 0 10px;padding:8px 8px 8px 10px;gap:8px}.viewerSearchInfo{gap:5px;min-height:31px}.viewerSearchInfo strong{max-width:170px;font-size:11px}.viewerSearchInfo>span:last-child{min-width:39px;height:25px;font-size:9px;padding:0 6px}.viewerSearchMoves{grid-template-columns:repeat(2,31px)}.viewerSearchMoves button{width:31px;height:31px;min-height:31px}.viewerSearchMoves button svg{width:14px;height:14px}}


/* v1.8.4 · minimal folder counts, aligned search navigation, transient sidebar scrollbar */
html[data-theme="dark"] .navCount{background:#1d2a3a;color:#9db0c8}html[data-theme="dark"] .subnav button.active .navCount{background:#203b63;color:#9bc3ff}html[data-theme="dark"] .tagCount{background:rgba(159,180,207,.10)}html[data-theme="dark"] .sidebarScroll.is-scrolling{scrollbar-color:rgba(122,148,180,.48) transparent}html[data-theme="dark"] .sidebarScroll.is-scrolling::-webkit-scrollbar-thumb{background:rgba(122,148,180,.48);background-clip:padding-box}html[data-theme="dark"] .sidebarScroll.is-scrolling::-webkit-scrollbar-thumb:hover{background:rgba(148,174,207,.66);background-clip:padding-box}


/* v1.8.6 · overlay sidebar scrollbar: never changes content width */
.sidebarScroll{scrollbar-width:none!important;scrollbar-color:transparent transparent!important}
.sidebarScroll::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
.sidebarOverlayScrollbar{position:absolute;right:4px;width:4px;pointer-events:none;z-index:6;opacity:0;transition:opacity .18s ease;overflow:hidden;border-radius:999px}
.sidebarOverlayScrollbar.is-visible{opacity:1}
.sidebarOverlayThumb{position:absolute;left:0;top:0;width:100%;min-height:28px;border-radius:999px;background:rgba(112,137,168,.52);transform:translateY(0);will-change:transform,height}
html[data-theme="dark"] .sidebarOverlayThumb{background:rgba(122,148,180,.48)}
@media(max-width:700px){.sidebarOverlayScrollbar{right:3px;width:3px}.sidebarOverlayThumb{min-height:24px}}

/* v1.8.7 · image attachment annotation editor */
.previewHeadActions{display:flex;align-items:center;gap:7px}.previewEdit{min-height:34px;height:34px;padding:0 12px;border-radius:10px;background:#1967e8;color:#fff;font-size:11px;font-weight:850}.previewEdit:hover{background:#155dce}.imageEditorDialog{width:min(1180px,calc(100vw - 24px));height:min(900px,calc(100dvh - 24px));max-width:none;max-height:none;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 30px 100px rgba(20,38,64,.28)}.imageEditorDialog::backdrop{background:rgba(8,18,31,.68);backdrop-filter:blur(3px)}.imageEditorHead{height:64px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);background:#fff}.imageEditorHead>div{min-width:0;display:flex;flex-direction:column;gap:2px}.imageEditorHead strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.imageEditorHead>button{width:38px;height:38px;min-height:38px;padding:0;border-radius:12px;background:#f3f6fa}.imageEditorTools{padding:9px 11px;border-bottom:1px solid var(--line);background:#f8fafc;display:flex;flex-direction:column;gap:7px}.imageToolGroup{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none}.imageToolGroup::-webkit-scrollbar{display:none}.imageToolModes button,.imageToolOptions button{flex:none;min-height:34px;height:34px;padding:0 10px;border:1px solid #dbe5f1;border-radius:10px;background:#fff;color:#536981;font-size:10px;font-weight:800}.imageToolModes button.active{background:#1967e8;border-color:#1967e8;color:#fff;box-shadow:0 5px 13px rgba(25,103,232,.2)}.imageToolOptions{flex-wrap:nowrap}.imageToolOptions label{height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;border:1px solid #dbe5f1;border-radius:10px;background:#fff;color:#65778d;font-size:10px;font-weight:800}.imageColorLabel input{width:22px;height:22px;padding:0;border:0;background:transparent}.imageWidthLabel input,.imageTextSizeLabel input{width:110px}.imageWidthLabel span,.imageTextSizeLabel span{min-width:22px;text-align:center}.imageEditorTextBar{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.imageEditorTextGuide{font-size:11px;font-weight:700;color:#5e7086}.imageTextSizeLabel{height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;border:1px solid #dbe5f1;border-radius:10px;background:#fff;color:#65778d;font-size:10px;font-weight:800}.imageEditorViewport{position:relative;height:calc(100% - 64px - 127px - 58px);min-height:180px;overflow:auto;padding:12px;background:#111827;overscroll-behavior:contain}.imageEditorCanvas{display:block;margin:auto;background:#fff;box-shadow:0 12px 38px rgba(0,0,0,.38);touch-action:none;cursor:crosshair;max-width:none;max-height:none}.imageEditorTextCursor{position:absolute;z-index:5;display:flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(17,24,39,.92);box-shadow:0 14px 34px rgba(0,0,0,.35)}.imageEditorTextCursor input{width:min(280px,42vw);height:38px;padding:0 12px;border:1px solid #40638f;border-radius:10px;background:#fff;color:#111827;font-weight:700}.imageEditorTextCursorActions{display:flex;align-items:center;gap:6px}.imageEditorTextCursorActions button{min-height:34px;height:34px;padding:0 10px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:#1c3150;color:#fff;font-size:11px;font-weight:800}.imageEditorTextCursorActions button:last-child{background:#334155}.imageEditorFoot{min-height:58px;padding:8px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);background:#fff}.imageEditorFoot>span{font-size:10px;color:var(--muted);line-height:1.4}.imageEditorFoot>div{display:flex;align-items:center;gap:7px;flex:none}.imageEditorFoot button{min-height:38px;height:38px;padding:0 13px;border-radius:11px;font-size:11px;font-weight:850}
html[data-theme="dark"] .previewEdit{background:#397fe8;color:#fff}html[data-theme="dark"] .imageEditorDialog,html[data-theme="dark"] .imageEditorHead,html[data-theme="dark"] .imageEditorFoot{background:#131c29;border-color:#2d394c}html[data-theme="dark"] .imageEditorTools{background:#101825;border-color:#2d394c}html[data-theme="dark"] .imageToolModes button,html[data-theme="dark"] .imageToolOptions button,html[data-theme="dark"] .imageToolOptions label,html[data-theme="dark"] .imageTextSizeLabel{background:#172231;border-color:#334155;color:#b9c8da}html[data-theme="dark"] .imageToolModes button.active{background:#397fe8;border-color:#397fe8;color:#fff}html[data-theme="dark"] .imageEditorTextGuide{color:#bfd0e2}html[data-theme="dark"] .imageEditorHead>button{background:#1b2635;color:#d5e0ee}
@media(max-width:700px){.previewHeadActions{gap:5px}.previewEdit,.previewDownload{padding-left:9px!important;padding-right:9px!important}.imageEditorDialog{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;border:0;border-radius:0}.imageEditorHead{height:58px;padding-top:max(8px,env(safe-area-inset-top));}.imageEditorTools{padding:7px 8px;gap:6px}.imageToolModes button,.imageToolOptions button{min-height:32px;height:32px;padding:0 9px;font-size:9px}.imageToolOptions label,.imageTextSizeLabel{height:32px;padding:0 7px;font-size:9px}.imageWidthLabel input,.imageTextSizeLabel input{width:82px}.imageEditorTextGuide{font-size:10px}.imageEditorViewport{height:calc(100% - 58px - 121px - 62px);padding:7px}.imageEditorTextCursor{padding:7px 8px;gap:5px}.imageEditorTextCursor input{width:min(220px,54vw);height:36px;font-size:12px}.imageEditorTextCursorActions button{height:32px;min-height:32px;padding:0 9px;font-size:10px}.imageEditorFoot{min-height:62px;padding:7px 9px max(7px,env(safe-area-inset-bottom))}.imageEditorFoot>span{max-width:46%;font-size:9px}.imageEditorFoot button{height:36px;min-height:36px;padding:0 10px;font-size:10px}}
.imageEditorDialog[open]{display:flex;flex-direction:column}.imageEditorHead,.imageEditorTools,.imageEditorFoot{flex:none}.imageEditorViewport{flex:1;height:auto!important;min-height:0}

/* v1.8.8 · iPhone share-sheet shortcut */
.shortcutStatusRow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;padding:10px 12px;border-radius:12px;background:var(--panel,#fff);border:1px solid var(--line);font-size:12px}.shortcutStatusRow>span{font-weight:800}.shortcutStatusRow small{color:#7e8b9d}.shortcutTokenBox{margin-top:11px}.shortcutTokenBox label{display:block;font-size:11px;color:#7e8b9d}.shortcutTokenBox textarea{width:100%;margin-top:6px;resize:none;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;line-height:1.45;word-break:break-all}.shortcutTokenBox button{margin-top:8px}.shortcutGuide{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}.shortcutGuide summary{cursor:pointer;font-size:12px;font-weight:800}.shortcutGuide ol{margin:9px 0 0;padding-left:20px;color:#64748b;font-size:11px;line-height:1.65}.shortcutGuide code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;word-break:break-all}html[data-theme="dark"] .shortcutStatusRow{background:#0e1621;border-color:#2d394c}html[data-theme="dark"] .shortcutGuide ol{color:#9aa8ba}


/* v1.8.10 · desktop image editor toolbar alignment + control sizing */
@media (min-width:701px){
  .imageEditorTools{padding:10px 12px;gap:8px;overflow:hidden}
  .imageToolGroup{width:100%;min-width:0;gap:7px;align-items:center}
  .imageToolModes,.imageToolOptions{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding-bottom:1px;scrollbar-width:thin}
  .imageToolModes button{height:38px;min-height:38px;padding:0 13px;border-radius:10px;font-size:12px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
  .imageToolOptions button,.imageToolOptions label{height:38px;min-height:38px;box-sizing:border-box;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;line-height:1;white-space:nowrap}
  .imageToolOptions label{padding:0 10px;font-size:11px;gap:8px}
  .imageColorLabel input{width:28px;height:24px;min-width:28px;border-radius:6px;cursor:pointer}
  .imageWidthLabel input{width:138px;min-width:110px;height:20px}
  .imageWidthLabel span{min-width:24px;font-size:11px;font-variant-numeric:tabular-nums}
  #imageEditorUndo,#imageEditorRedo,#imageEditorZoomOut,#imageEditorZoomIn{width:40px;min-width:40px;padding:0;font-size:19px;font-weight:800;line-height:1}
  #imageEditorZoomFit{min-width:64px;padding:0 10px;font-size:11px;font-variant-numeric:tabular-nums}
  #imageEditorUndo:disabled,#imageEditorRedo:disabled{opacity:.38}
}

/* v1.8.12 · search card highlight + checkbox-style bullet rows */
.bulletToolbarButton{font-size:20px!important;font-weight:900!important;line-height:1!important;padding-bottom:3px!important}
.card .cardSearchHit{padding:0 .09em;border-radius:4px;background:#ffe08a;color:#342300;font-weight:850}
html[data-theme="dark"] .card .cardSearchHit{background:#755b18;color:#fff2b6}

.bulletItem[contenteditable="false"]{user-select:none;-webkit-user-select:none}
.bulletItem[contenteditable="false"]>.bulletText[contenteditable="true"]{user-select:text;-webkit-user-select:text;cursor:text}
.bulletItem{display:grid!important;grid-template-columns:0 31px minmax(0,1fr)!important;align-items:start;column-gap:0!important;width:100%!important;min-width:0!important;max-width:100%;min-height:30px;margin:4px 0;padding:0!important;float:none!important;position:relative;border:0!important;outline:0!important;box-shadow:none!important;border-radius:9px;transition:background .15s ease}
.bulletItem:hover{background:rgba(25,103,232,.035)}
.bulletItem:focus,.bulletItem:focus-within{outline:0!important;box-shadow:none!important;border:0!important}
.bulletLead{grid-column:1;width:14px;min-width:14px;height:28px;transform:translateX(-14px);display:block;overflow:hidden;white-space:nowrap;color:transparent;caret-color:var(--blue);outline:0!important;border:0!important;background:transparent!important;cursor:text;user-select:text;-webkit-user-select:text}
.bulletLead:focus{outline:0!important;box-shadow:none!important;border:0!important}
.bulletMark{grid-column:2;position:static!important;width:31px;min-width:31px;display:grid;place-items:center;color:var(--blue);font-size:18px;font-weight:900;cursor:text;user-select:none!important;-webkit-user-select:none!important;caret-color:transparent;line-height:1.55;border:0!important;outline:0!important;box-shadow:none!important}
.bulletMark:focus{outline:0!important;box-shadow:none!important;background:rgba(25,103,232,.07);border-radius:6px}
.bulletText{grid-column:3;display:block!important;width:auto!important;min-width:0!important;max-width:100%;overflow-wrap:break-word;word-break:keep-all;white-space:pre-wrap;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}
#body:focus,.bulletText[contenteditable="true"]:focus{outline:0!important;box-shadow:none!important;border-color:transparent!important}
.viewerBullet{grid-template-columns:22px minmax(0,1fr)!important;column-gap:9px!important}
.viewerBullet>.bulletLead{display:none!important}
.viewerBullet>.bulletMark{grid-column:1;width:22px;min-width:22px;cursor:default;font-size:17px}
.viewerBullet>.bulletText{grid-column:2}
html[data-theme="dark"] .bulletItem:hover{background:rgba(79,139,224,.055)}
html[data-theme="dark"] .bulletMark:focus{background:rgba(79,139,224,.10)}

/* v1.8.14 · mobile editor toolbar stays visible above the software keyboard */
.editorUndoButton{font-size:20px!important;font-weight:850!important;line-height:1!important}
.editorUndoButton:disabled{opacity:.34!important}
@media(max-width:700px){
  #editor .editorScroll{scroll-padding-top:58px;overscroll-behavior:contain}
  #editor .toolbar{position:sticky!important;top:0!important;z-index:40!important;margin-left:-16px;margin-right:-16px;padding-left:16px!important;padding-right:16px!important;background:#fff;box-shadow:0 5px 12px rgba(35,55,82,.08)}
  #editor #body{scroll-margin-top:58px}
  #editor .editorUndoButton{font-size:21px!important}
  html[data-theme="dark"] #editor .toolbar{background:#131c29;box-shadow:0 5px 14px rgba(0,0,0,.24)}
}


/* v1.8.15 · mobile editor toolbar alignment / undo icon sizing */
.editorUndoButton svg{
  width:21px;
  height:21px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2.15;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
@media(max-width:700px){
  #editor .toolbar{
    display:flex!important;
    align-items:center!important;
    gap:2px!important;
    min-height:54px;
    padding-top:8px!important;
    padding-bottom:8px!important;
    padding-left:10px!important;
    padding-right:10px!important;
    margin-left:-16px!important;
    margin-right:-16px!important;
    box-sizing:border-box;
  }
  #editor .toolbar button{
    flex:0 0 38px!important;
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    line-height:1!important;
    border-radius:10px!important;
  }
  #editor .toolbar button b,
  #editor .toolbar button i,
  #editor .toolbar button u{
    line-height:1!important;
  }
  #editor .editorUndoButton{
    font-size:0!important;
  }
  #editor .editorUndoButton svg{
    width:22px!important;
    height:22px!important;
  }
  #editor .bulletToolbarButton{
    font-size:22px!important;
    padding:0!important;
    line-height:1!important;
  }
  #editor #checklistButton{
    font-size:20px!important;
    line-height:1!important;
  }
  #editor .toolbar .divider{
    flex:0 0 1px!important;
    width:1px!important;
    height:22px!important;
    margin:0 4px!important;
  }
  #editor .toolbar #fontSize{
    flex:0 0 82px!important;
    width:82px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 22px 0 8px!important;
    margin:0!important;
    font-size:13px!important;
  }
  #editor .toolbar #fontColor{
    flex:0 0 38px!important;
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    padding:6px!important;
    margin:0!important;
  }
  #editor .toolbar .noteColorControl{
    height:38px!important;
    margin:0!important;
  }
  #editor #body{
    padding-top:12px!important;
  }
}

/* v1.8.16 · mobile editor header / toolbar gap fix */
@media(max-width:700px){
  #editor .editorScroll{
    padding-top:0!important;
    scroll-padding-top:54px!important;
  }
  #editor .noteTitleLabel{
    padding-top:18px;
  }
  #editor .toolbar{
    top:0!important;
    margin-top:0!important;
    border-top:0!important;
    box-shadow:0 5px 12px rgba(35,55,82,.08)!important;
  }
  html[data-theme="dark"] #editor .toolbar{
    box-shadow:0 5px 14px rgba(0,0,0,.24)!important;
  }
}

/* v1.8.17 · mobile image editor speed + button visibility */
.imageHistoryIcon{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
.imageEditorDialog.is-loading .imageEditorTools{opacity:.66;pointer-events:none}
.imageEditorDialog.is-loading .imageEditorViewport{cursor:progress}
@media(max-width:700px){
  .imageEditorTools{overflow:hidden}
  .imageToolModes,.imageToolOptions{width:100%;min-width:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scroll-behavior:auto;scrollbar-width:none}
  .imageToolModes::-webkit-scrollbar,.imageToolOptions::-webkit-scrollbar{display:none}
  .imageToolModes button{height:38px;min-height:38px;padding:0 11px;font-size:10px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
  .imageToolOptions button,.imageToolOptions label{height:38px;min-height:38px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;line-height:1;white-space:nowrap}
  .imageToolOptions label{padding:0 9px;font-size:10px;gap:6px}
  .imageColorLabel input{width:26px;height:24px;min-width:26px}
  .imageWidthLabel input{width:112px;min-width:86px}
  .imageWidthLabel span{min-width:18px;font-size:10px}
  #imageEditorUndo,#imageEditorRedo,#imageEditorZoomOut,#imageEditorZoomIn{width:42px;min-width:42px;height:38px;min-height:38px;padding:0;font-size:18px;flex:none}
  #imageEditorZoomFit{min-width:68px;height:38px;min-height:38px;padding:0 10px;font-size:10px;flex:none}
  .imageHistoryIcon{width:21px;height:21px;stroke-width:2.35}
  #imageEditorUndo:disabled,#imageEditorRedo:disabled{opacity:.62;color:#71839a}
  html[data-theme="dark"] #imageEditorUndo:disabled,html[data-theme="dark"] #imageEditorRedo:disabled{color:#91a2b7}
}

/* v1.8.19 · mobile image editor: one-finger draw / two-finger pinch+pan / button zoom */
@media(max-width:700px){
  .imageEditorViewport{
    touch-action:none!important;
    overscroll-behavior:none!important;
    -webkit-user-select:none;
    user-select:none;
  }
  .imageEditorCanvas{
    touch-action:none!important;
    -webkit-user-select:none;
    user-select:none;
  }
}

/* v1.8.27 attachment photo zoom */
.previewZoomControls{display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 12px;border-bottom:1px solid var(--line);flex-shrink:0}
.previewZoomControls[hidden]{display:none!important}
.previewZoomControls button{min-width:44px;min-height:40px;border-radius:10px;background:var(--soft);color:var(--blue)}
.previewZoomControls output{min-width:52px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}
.previewCanvas .previewStage.photoPreview{position:relative;display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden;touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none}
.previewStage.photoPreview img{flex:none;max-width:none;max-height:none;object-fit:fill;transform-origin:center;pointer-events:none;-webkit-user-drag:none;border-radius:0}
.previewStage.photoMagnified{cursor:grab}
.previewStage.photoMagnified:active{cursor:grabbing}
.previewHead{flex-shrink:0}.previewFoot{flex-shrink:0}

.previewDownload[aria-disabled="true"]{opacity:.6;cursor:wait}
.previewDownload[role="button"]{cursor:pointer}

/* v1.8.29: stable paired actions and truncated attachment title */
#previewDialog .previewHead{gap:8px}
#previewDialog .previewHead>div:first-child{flex:1 1 0;min-width:0;overflow:hidden}
#previewName{display:block;width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#previewDialog .previewHead .modalKicker{white-space:nowrap;overflow:hidden}
#previewDialog .previewHeadActions{flex:0 0 auto;flex-wrap:nowrap;gap:6px}
#previewEdit,#previewDownload{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 84px;width:84px;min-width:84px;max-width:84px;height:40px;min-height:40px;max-height:40px;margin:0;padding:0!important;border:0;border-radius:10px;font-size:12px;font-weight:800;line-height:1;white-space:nowrap;text-align:center;text-decoration:none}
#previewEdit[hidden]{display:none!important}
#closePreview{box-sizing:border-box;flex:0 0 36px;width:36px;min-width:36px;height:40px;min-height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center}
#viewerBack,#editNote{box-sizing:border-box;flex:0 0 82px;width:82px;min-width:82px;max-width:82px;height:40px;min-height:40px;max-height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1;white-space:nowrap}
#viewerBack[hidden],#editNote[hidden],#shareViewedNote[hidden]{display:none!important}
#viewerBack>span,#editNote>span{display:inline-flex;align-items:center;justify-content:center;width:16px;flex:0 0 16px;line-height:1}
@media(max-width:700px){
  #previewDialog .previewHead{padding-left:10px;padding-right:10px;gap:6px}
  #previewDialog .previewHeadActions{gap:5px}
  #previewEdit,#previewDownload{flex-basis:72px;width:72px;min-width:72px;max-width:72px;font-size:11px}
  #closePreview{flex-basis:32px;width:32px;min-width:32px}
  #viewerBack,#editNote{flex-basis:72px;width:72px;min-width:72px;max-width:72px;font-size:11px}
}

#viewer .viewerScroll,#viewerBody,#editor .editorScroll,#body{touch-action:pan-x pan-y}

/* v1.8.30: folder and tag selection */
.noteMeta .metaField{flex:1;min-width:0}
.noteMeta .metaField>label{display:block;margin:0 0 7px;font-size:11px;font-weight:700;color:var(--muted)}
.metaInputRow{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--soft)}
.noteMeta .metaInputRow input{flex:1;min-width:0;width:0;margin:0;border:0;border-radius:0;background:transparent;padding:11px 10px;font-size:14px;box-shadow:none}
.metaInputRow button{flex:0 0 64px;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:0 8px;border-left:1px solid var(--line);border-radius:0;color:var(--blue);font-size:12px;font-weight:750;white-space:nowrap}
.metaInputRow:focus-within{border-color:var(--blue)}
.metaInputRow button:disabled{opacity:.4;cursor:default}
.metaPicker{width:460px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);padding:20px;border-radius:20px}
.metaPicker[open]{display:flex;flex-direction:column;gap:12px;overflow:hidden}
.metaPickerHead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.metaPickerHead h2{margin:0;font-size:19px;letter-spacing:-.5px}
.metaPickerHead button{width:36px;height:36px;padding:0;flex:none}
#metaHint{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.metaSearchRow{display:flex;gap:8px;align-items:center;flex:none}
.metaSearchRow input{min-width:0;flex:1;width:0;height:44px;border-radius:12px;font-size:16px;padding:0 12px}
.metaSearchRow button{flex:none;min-height:44px;padding:0 12px;background:var(--soft);color:var(--blue);border-radius:12px;font-size:12px;font-weight:750}
.metaSearchRow button[hidden]{display:none}
#metaError{margin:0;color:#c24141;font-size:12px}#metaError:empty{display:none}
.metaOptions{overflow-y:auto;overscroll-behavior:contain;min-height:80px;max-height: min(340px,42dvh);display:flex;flex-direction:column;gap:7px;padding:2px;scrollbar-width:thin}
.metaOption{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;flex-shrink:0;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:12px;text-align:left;font-size:14px}
.metaOption[aria-pressed="true"]{background:var(--soft);border-color:var(--blue);color:var(--blue)}
.metaOptionName{min-width:0;overflow-wrap:anywhere;line-height:1.4}
.metaOptionMark{width:24px;flex:0 0 24px;text-align:center;color:var(--blue);font-weight:800}
.metaEmpty{padding:20px 10px;text-align:center;color:var(--muted);font-size:13px;line-height:1.6}
.metaSelectionRow{display:flex;gap:8px;align-items:center;border-top:1px solid var(--line);padding-top:12px;flex:none}
#metaSelection{flex:1;min-width:0;margin:0;color:var(--muted);font-size:12px;line-height:1.5;max-height:54px;overflow:auto;overflow-wrap:anywhere}
#metaClear{flex:none;font-size:12px;color:var(--muted);padding:8px}
.metaPickerFoot{display:flex;justify-content:flex-end;gap:8px;flex:none}
.metaPickerFoot button{width:80px;height:42px;padding:0;border-radius:12px;font-size:13px;font-weight:750}
@media(max-width:700px){.noteMeta{gap:10px}.noteMeta .metaInputRow input{font-size:16px;padding:10px 8px}.metaInputRow button{flex-basis:56px;font-size:11px}.metaPicker{padding:16px}}

/* v1.8.33: aligned symbol tools and attachment drop feedback */
#toolbar #triangleButton,#toolbar #checklistButton,#toolbar .bulletToolbarButton{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;line-height:1;border-radius:10px;vertical-align:middle}
#toolbar #triangleButton{font-size:14px}
#editor.attachmentDragOver .editorScroll{outline:2px dashed var(--blue);outline-offset:-7px;background:var(--soft)}
.attachmentUploadStatus{margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--blue);font-size:12px;overflow-wrap:anywhere}
.attachmentUploadStatus[hidden]{display:none}
#uploadLabel[aria-busy="true"]{opacity:.55;pointer-events:none}

/* v1.8.36: soft, distinct folder/tag badges in cards and note details */
:root{--note-folder-bg:#e9f2ff;--note-folder-fg:#315f96;--note-folder-edge:#cbdff5;--note-tag-bg:#f2edfc;--note-tag-fg:#705095;--note-tag-edge:#e1d5f2}
html[data-theme="dark"]{--note-folder-bg:#1c3048;--note-folder-fg:#a9cef5;--note-folder-edge:#304b68;--note-tag-bg:#30283f;--note-tag-fg:#d3b9ee;--note-tag-edge:#4d3e62}
#cards .folderBadge,#viewer #viewerFolder{background:var(--note-folder-bg);color:var(--note-folder-fg);box-shadow:inset 0 0 0 1px var(--note-folder-edge);font-weight:700}
#cards .cardTags span,#viewer .viewerTags span:not(.mutedTag){background:var(--note-tag-bg);color:var(--note-tag-fg);box-shadow:inset 0 0 0 1px var(--note-tag-edge);font-weight:650}

/* v1.8.38: handle-free lists, shared symbol and text alignment */
#body .checkItem,#body .bulletItem{grid-template-columns:0 31px minmax(0,1fr)!important;padding:0!important;column-gap:0!important;line-height:1.85}
#body .checkLead,#body .bulletLead{grid-column:1;grid-row:1}
#body .checkMark,#body .bulletMark{grid-column:2;grid-row:1;display:grid;place-items:center;width:31px;min-width:31px;height:1.85em;line-height:1;font-size:1em;margin:0;padding:0;align-self:start}
#body .checkText,#body .bulletText{grid-column:3;grid-row:1;line-height:1.85;margin:0;padding:0}
#body .listSelected{background:rgba(67,130,225,.08)!important}
#body .listDragging{opacity:.3;background:rgba(67,130,225,.10)!important}
html.listDragActive,html.listDragActive *{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}
.listDragGhost{position:fixed;z-index:100;pointer-events:none;display:grid;grid-template-columns:31px minmax(0,1fr);background:var(--panel,#fff);color:var(--text);border-radius:9px;box-shadow:0 4px 20px rgba(0,0,0,.18);opacity:.92;line-height:1.85;overflow-wrap:anywhere}
.listDragGhost>span:first-child{display:grid;place-items:center;align-self:start;height:1.85em;color:var(--blue)}
.listDropLine{position:fixed;z-index:101;height:3px;background:var(--blue);border-radius:3px;pointer-events:none}
#viewerBody .checkItem,#viewerBody .bulletItem{grid-template-columns:22px minmax(0,1fr)!important;column-gap:9px!important;line-height:1.85}
#viewerBody .checkLead,#viewerBody .bulletLead{display:none!important}
#viewerBody .checkMark,#viewerBody .bulletMark{grid-column:1;grid-row:1;width:22px;min-width:22px;height:1.85em;line-height:1;font-size:1em;display:grid;place-items:center;margin:0;padding:0}
#viewerBody .checkText,#viewerBody .bulletText{grid-column:2;grid-row:1;line-height:1.85;margin:0;padding:0}
html[data-theme="dark"] .listDragGhost{background:#1b293b}

/* v1.8.39: left navigation, compact mode info, right actions */
#viewer .viewerTop{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
#viewer .viewerModeInfo{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-width:0;overflow:hidden}
#viewer .viewerModeInfo .modalKicker{flex:none;white-space:nowrap}
#viewerRole{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#viewer .viewerActions{justify-content:flex-end;flex-wrap:nowrap}
#shareViewedNote{min-width:62px;white-space:nowrap}
#viewerBack,#editNote{display:inline-grid;grid-template-columns:16px max-content;align-items:center;justify-content:center;justify-items:center;column-gap:6px;text-align:center;margin:0;padding:0;vertical-align:middle}
#viewerBack .viewerButtonIcon,#editNote .viewerButtonIcon{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin:0}
#viewerBack>b,#editNote>b{display:block;font:inherit;line-height:16px;margin:0;padding:0;text-align:center}
@media(max-width:700px){
  #viewer .viewerTop{gap:8px}
  #viewer .viewerModeInfo{gap:0}
  #viewerRole{font-size:10px;padding-inline:8px}
  #shareViewedNote{min-width:51px}
}

/* Attachment download choice */
.downloadChoice{width:min(420px,calc(100vw - 32px));padding:24px;border:1px solid var(--line);border-radius:22px;background:#fff;color:#172b46;box-shadow:0 24px 90px rgba(15,35,65,.25)}
.downloadChoiceTop{display:flex;align-items:center;gap:12px;margin-bottom:20px}.downloadChoiceIcon{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:14px;background:#eaf2ff;color:#1967e8;font-size:26px;font-weight:750}
.downloadChoice h3{margin:0;font-size:18px;letter-spacing:-.4px}.downloadChoiceTop p{margin:6px 0 0;font-size:13px;color:#65758b;line-height:1.5}
.downloadChoice .downloadOption{display:flex;align-items:center;gap:12px;min-height:80px;width:100%;padding:15px;margin:10px 0 0;border:1px solid #dce6f3;border-radius:15px;background:#f8faff;text-align:left;text-decoration:none;color:inherit;box-sizing:border-box;cursor:pointer}
.downloadChoice .downloadOption:hover{background:#edf4ff;border-color:#9abcf0}.downloadOptionIcon{display:grid;place-items:center;width:34px;height:38px;flex-shrink:0;color:#246ce0;font-size:24px}.downloadOption>span:nth-child(2){display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.downloadOption strong{font-size:14px;font-weight:750}.downloadOption small{font-size:12px;color:#687b94;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.downloadArrow{font-size:24px;color:#8194ad}.downloadZip{padding:5px 7px;border-radius:7px;font-size:10px;font-weight:800;background:#dceaff;color:#245da9;flex-shrink:0}
.downloadChoice .downloadOptionAll{background:#eef5ff;border-color:#bfd4f5}.downloadChoice .downloadCancel{width:100%;min-height:44px;margin-top:16px;background:#f0f3f7;color:#52657e;font-size:14px;font-weight:700}.downloadChoice .downloadCancel:hover{background:#e5eaf2}
html[data-theme="dark"] .downloadChoice{background:#162131;border-color:#34445c;color:#e7effb}html[data-theme="dark"] .downloadChoiceTop p,html[data-theme="dark"] .downloadOption small{color:#a4b5cb}html[data-theme="dark"] .downloadChoiceIcon{background:#233c60;color:#9ac4ff}html[data-theme="dark"] .downloadChoice .downloadOption{background:#1b2a3f;border-color:#3a506e}html[data-theme="dark"] .downloadChoice .downloadOption:hover{background:#253b58;border-color:#729bd5}html[data-theme="dark"] .downloadOptionIcon{color:#9ac4ff}html[data-theme="dark"] .downloadChoice .downloadOptionAll{background:#203654;border-color:#5479ac}html[data-theme="dark"] .downloadZip{background:#35557e;color:#d9eaff}html[data-theme="dark"] .downloadChoice .downloadCancel{background:#27364a;color:#c3d1e3}
.transferDialog{--transfer-inset:20px;--transfer-surface:#fff;width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 28px);padding:0;overflow:auto;background:var(--transfer-surface)}
html[data-theme="dark"] .transferDialog{--transfer-surface:#131c29;background:var(--transfer-surface)}
.transferDialog .modalHead{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:14px var(--transfer-inset);background:var(--transfer-surface);border-bottom:1px solid var(--line)}
.transferDialog .modalHead>div{min-width:0}
.transferDialog .modalHead button{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--line);border-radius:10px}
.transferDialog h2{margin:3px 0 0;font-size:20px;line-height:1.3;overflow-wrap:anywhere}
.transferBody{padding:16px var(--transfer-inset) 20px}
.transferListBar p{margin:0;font-size:14px;word-break:keep-all;overflow-wrap:anywhere}
.transferBody p,.transferList small{color:var(--muted);line-height:1.55}
.transferBar,.transferActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.transferBar{justify-content:space-between}
.transferBar button{min-height:38px;padding:8px 12px;border-radius:10px;font-size:13px}
#transferStatus{margin:12px 0 0;font-size:14px}
#transferStatus:empty,.transferList:empty{display:none}
.transferList{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}
.transferList li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.transferList li>div:first-child{min-width:0;overflow-wrap:anywhere}
.transferList small{display:block;margin-top:4px}
.transferActions{flex:none}
.transferDownload{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 12px;border-radius:10px;text-decoration:none}
.shortcutGuide a{display:inline-block;margin-top:9px;color:var(--blue);font-size:12px}
#transferPreviewImage:not([hidden]){display:block;width:100%;max-height:62dvh;object-fit:contain;margin:8px 0 14px}
@media(max-width:530px){.transferDialog{--transfer-inset:14px}.transferList li{align-items:stretch;flex-direction:column}.transferActions{justify-content:flex-start}}

/* Workspace sidebar preferences */
#mainNav[hidden],#mainNav button[hidden],#workspaceNavLabel[hidden]{display:none!important}
.workspaceMenuOptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;margin:12px 0 9px}
.workspaceMenuOptions label{display:flex;align-items:center;gap:8px;min-height:42px;margin:0;font-size:13px;cursor:pointer}
.workspaceMenuOptions input[type="checkbox"]{flex:0 0 auto;width:17px;height:17px;min-height:0;margin:0;accent-color:var(--blue);cursor:pointer}
#workspaceMenuReset{font-size:12px}

:root{--settings-action-bg:#eaf3ff;--settings-action-fg:#1967e8}
html[data-theme="dark"]{--settings-action-bg:#1a304d;--settings-action-fg:#90bdff}
#newSide,#newMain{background:var(--settings-action-bg);color:var(--settings-action-fg);border:1px solid var(--line);box-shadow:none}
#newSide:hover,#newMain:hover{border-color:var(--settings-action-fg)}
.startupSettings select{width:100%;min-height:42px;margin-top:12px;font-size:13px;color:inherit}
.folderOrderList{display:grid;gap:6px;margin:12px 0 0;padding:0;list-style:none}
.folderOrderList:empty{display:none}
.folderOrderList li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 7px 5px 11px;border:1px solid var(--line);border-radius:12px}
.folderOrderList li>span{min-width:0;font-size:13px;overflow-wrap:anywhere}
.folderOrderActions{display:flex;flex:none;gap:5px}
.folderOrderActions button{display:grid;place-items:center;width:40px;height:40px;padding:0;font-size:17px}
.folderOrderSettings #folderOrderEmpty{margin-top:12px}

.fileActions{display:flex;flex:none;flex-direction:column;align-items:center;gap:2px}
.fileRename{min-height:36px;padding:0 8px;border-radius:9px;font-size:11px;white-space:nowrap}
.attachmentRenameDialog .modalHead h2{margin:0}
.attachmentRenameDialog input{width:100%;font-size:16px}
.attachmentRenameDialog .attachmentRenameSuffix,.attachmentRenameDialog .attachmentRenameError{margin:8px 0 0;font-size:12px}
.attachmentRenameDialog .attachmentRenameError{color:#b82c38}
html[data-theme="dark"] .attachmentRenameDialog .attachmentRenameError{color:#ff9da6}
.attachmentRenameActions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.attachmentRenameActions button{min-height:42px}
.attachmentHeading>.attachmentHeadingActions{flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.attachmentOrderButton{min-height:32px;padding:0 8px;border-radius:8px;font-size:11px;white-space:nowrap}
.attachmentOrderInline{display:inline-flex;align-items:center;flex:none;gap:5px}
.attachmentOrderInline[hidden],.attachmentOrderButton[hidden]{display:none!important}
.attachmentOrderInline button{min-height:32px;padding:0 10px;border-radius:8px;font-size:11px;white-space:nowrap}
.attachmentOrderInline button:disabled{opacity:.5}
.attachmentOrderActive .fileCard,.attachmentOrderActive .filePreview{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.attachmentOrderActive .filePreview:hover{background:transparent}
.attachmentOrderActive .fileActions{opacity:.4;pointer-events:none}
.attachmentOrderActive .fileCard{border-style:dashed}
.attachmentOrderActive .fileCard.attachmentOrderDragging{opacity:.55;cursor:grabbing}
.attachmentOrderActive .fileCard.attachmentOrderTarget{outline:2px solid var(--blue);outline-offset:-2px}
.attachmentOrderStatus{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.attachmentHeading small.attachmentOrderHint{display:block}


.editorActions{display:flex;align-items:center;flex:none;gap:7px}
.editorTop .editorIconButton{flex:none;border:1px solid var(--line);font-size:17px;line-height:1;padding:0}
.editorTop .editorIconButton[hidden]{display:none}
.editorTop .editorIconButton:hover,.editorTop .editorIconButton[aria-pressed="true"]{background:var(--settings-action-bg);color:var(--settings-action-fg)}
html[data-theme="dark"] .editorTop .editorIconButton:hover,
html[data-theme="dark"] .editorTop .editorIconButton[aria-pressed="true"]{background:var(--settings-action-bg);color:var(--settings-action-fg)}
@media(max-width:700px){.editorActions{gap:5px}}
