:root{--yellow:#f4c343;--yellow-dark:#b98600;--bg:#f4f4f2;--sidebar:#eeeeeb;--list:#f8f8f7;--line:#d9d9d5;--selected:#dddeda;--text:#252525;--muted:#7b7b78;--radius:10px;--toolbar:52px}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--text);background:#fff}button,input{font:inherit}.app{display:grid;grid-template-columns:220px 320px minmax(360px,1fr);height:100dvh;background:#fff}.pane{position:relative;min-width:0;overflow:hidden}.folders-pane{background:linear-gradient(135deg,#f2f2ef,#e9e9e6);border-right:1px solid var(--line)}.window-bar,.notes-header,.editor-toolbar{height:var(--toolbar);display:flex;align-items:center;padding:0 14px;position:relative;z-index:8}.window-bar{justify-content:space-between}.traffic-lights{display:flex;gap:8px}.traffic-lights i{width:12px;height:12px;border-radius:50%;display:block;box-shadow:inset 0 0 0 1px #0001}.traffic-lights .red{background:#ff5f57}.traffic-lights .yellow{background:#febc2e}.traffic-lights .green{background:#28c840}.window-actions,.notes-actions,.toolbar-buttons{display:flex;align-items:center;gap:5px}.icon-btn,.mobile-bottom-toolbar button{border:0;background:transparent;color:#4b4b49;min-width:34px;height:34px;border-radius:50%;display:grid;place-items:center;cursor:pointer;position:relative}.icon-btn:hover,.mobile-bottom-toolbar button:hover{background:#0000000d}.window-actions .icon-btn:before,.new-note-icon:before{content:"";width:16px;height:18px;border:1.8px solid currentColor;border-radius:3px;display:block}.window-actions #addFolderBtn:after,.new-note-icon:after{content:"";position:absolute;width:8px;height:8px;border-top:2px solid var(--yellow-dark);border-right:2px solid var(--yellow-dark);transform:rotate(-45deg);right:7px;top:7px}.window-actions #addFolderBtn:before{width:20px;height:12px;border:1.8px solid currentColor;border-radius:3px;transform:translateY(2px)}.window-actions #addFolderBtn:after{content:"+";border:0;transform:none;font-weight:700;right:5px;top:1px;color:var(--yellow-dark)}#collapseBtn:before{width:18px;height:14px;border:1.8px solid currentColor;border-radius:2px;box-shadow:inset 5px 0 #999}#collapseBtn:after{content:"";position:absolute;height:14px;border-left:1px solid #fff;left:13px}.folder-section{padding:12px 10px;height:calc(100% - var(--toolbar));overflow:auto}.section-label{font-size:12px;font-weight:600;color:#777;margin:9px 10px 5px}.folder-list{display:flex;flex-direction:column;gap:2px}.folder-row{height:34px;border-radius:7px;padding:0 9px;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;position:relative}.folder-row:hover{background:#00000009}.folder-row.active{background:#d7d7d3}.folder-icon{color:#91918d;width:20px;text-align:center}.folder-row.active .folder-icon{color:#e5a800}.folder-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.folder-count{color:#777;font-size:12px}.folder-edit{display:none;gap:2px}.folder-row.custom:hover .folder-edit{display:flex}.folder-edit button{border:0;background:transparent;color:#777;padding:3px;cursor:pointer}.notes-pane{background:var(--list);border-right:1px solid var(--line)}.notes-header{height:78px;align-items:flex-end;padding-bottom:10px;border-bottom:1px solid #e2e2df}.notes-heading{flex:1;min-width:0}.notes-heading h2{font-size:21px;line-height:1.15;margin:0 0 2px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notes-heading span{font-size:11px;color:var(--muted)}.dots-btn{font-weight:700;letter-spacing:1px;padding-bottom:7px}.notes-list{height:calc(100% - 78px);overflow-y:auto;padding:7px}.note-group-title{font-size:12px;font-weight:600;color:#858581;margin:13px 10px 5px}.note-item{padding:11px 13px;border-radius:9px;cursor:pointer;min-height:76px;position:relative}.note-item:hover{background:#ecece9}.note-item.active{background:var(--selected)}.note-title-line{display:flex;align-items:center;gap:5px}.pin{font-size:11px;color:#777}.note-title{font-size:14px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.note-meta{font-size:12px;color:#797976;margin-top:4px;display:flex;gap:7px}.note-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#92928f;flex:1}.notes-list.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px;padding:12px}.notes-list.gallery .note-group-title{grid-column:1/-1;margin:5px 2px -2px}.notes-list.gallery .note-item{background:#fff;border:1px solid #e1e1dd;box-shadow:0 2px 6px #0000000b;min-height:155px;padding:0;overflow:hidden}.notes-list.gallery .note-item.active{box-shadow:0 0 0 2px var(--yellow)}.gallery-preview{height:105px;padding:12px;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow:hidden;background:#fff;border-bottom:1px solid #eee}.gallery-info{padding:8px 10px}.gallery-info .note-title{font-size:13px}.gallery-info .note-meta{margin-top:2px}.editor-pane{background:#fff}.editor-toolbar{border-bottom:1px solid #eeeeeb;justify-content:space-between}.format-icon{font-weight:600}.list-icon:before{content:"✓";width:18px;height:18px;border:1.7px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:12px}.table-icon:before{content:"";width:18px;height:16px;border:1.7px solid currentColor;border-radius:2px;background:linear-gradient(90deg,transparent 48%,currentColor 49%,currentColor 53%,transparent 54%),linear-gradient(transparent 46%,currentColor 47%,currentColor 53%,transparent 54%)}.image-icon:before{content:"▧";font-size:22px}.copy-icon:before{content:"";width:14px;height:16px;border:1.7px solid currentColor;border-radius:3px;box-shadow:4px -4px 0 -1px #fff,4px -4px 0 .5px currentColor}.search-box{width:min(210px,26vw);height:30px;border-radius:8px;background:#eeeeec;display:flex;align-items:center;padding:0 9px;color:#777}.search-box span:before{content:"⌕";font-size:20px}.search-box input{width:100%;border:0;outline:0;background:transparent;padding:0 6px;font-size:13px}.editor-shell{height:calc(100% - var(--toolbar));overflow-y:auto;padding:0 clamp(30px,8vw,120px) 120px}.updated-time{text-align:center;display:block;font-size:11px;color:#969692;padding:18px 0 12px}.editor{min-height:calc(100vh - 110px);outline:0;font-size:15px;line-height:1.65;overflow-wrap:anywhere}.editor:empty:before{content:attr(data-placeholder);color:#aaa}.editor h1{font-size:24px;margin:.25em 0}.editor h2{font-size:19px;margin:.3em 0}.editor p{margin:.25em 0}.editor ul,.editor ol{padding-left:25px}.editor table{border-collapse:collapse;margin:10px 0;width:min(100%,600px)}.editor td{border:1px solid #cfcfca;min-width:90px;height:34px;padding:5px}.editor img{max-width:100%;height:auto;border-radius:7px;display:block;margin:10px 0}.todo-list{list-style:none!important;padding-left:0!important}.todo-item{position:relative;padding-left:29px;min-height:25px}.todo-item:before{content:"";position:absolute;left:2px;top:3px;width:17px;height:17px;border:1.6px solid #999;border-radius:50%;cursor:pointer}.todo-item.checked{text-decoration:line-through;color:#999}.todo-item.checked:before{content:"✓";background:var(--yellow);border-color:var(--yellow-dark);color:#fff;display:grid;place-items:center;font-size:12px;text-decoration:none}.popover{position:absolute;z-index:30;background:#fffefc;border:1px solid #d7d7d2;border-radius:11px;box-shadow:0 8px 28px #0002;padding:6px;min-width:190px;font-size:13px}.view-menu{top:70px;right:46px}.note-menu{top:46px;left:12px}.format-menu{top:46px;left:91px}.list-menu{top:46px;left:130px}.move-menu{top:90px;left:35px}.menu-item{height:34px;border-radius:7px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;white-space:nowrap}.menu-item:hover{background:#ececea}.menu-sep{height:1px;background:#e6e6e2;margin:5px}.menu-label{color:#858581;font-size:11px;padding:5px 10px 2px}.menu-check{color:var(--yellow-dark);font-weight:700}.menu-danger{color:#d83b34}.find-bar{height:42px;border-bottom:1px solid #e5e5e1;display:flex;align-items:center;gap:6px;padding:5px 14px;background:#fafaf8}.find-bar input{height:30px;min-width:100px;flex:1;max-width:320px;border:1px solid #ccc;border-radius:7px;padding:0 9px;outline:0}.find-bar button{border:0;background:transparent;height:30px;min-width:30px;border-radius:6px;font-size:19px}.find-bar button:hover{background:#eee}.find-bar span{font-size:11px;color:#777;white-space:nowrap}.find-hit{background:#ffe27d;border-radius:2px}.find-current{background:#f6b800}.editor-pane:has(.find-bar:not(.hidden)) .editor-shell{height:calc(100% - var(--toolbar) - 42px)}.empty-state,.editor-empty{position:absolute;inset:78px 0 0;display:grid;place-content:center;text-align:center;color:#999;gap:5px}.empty-icon{font-size:36px;color:#c4c4c0}.empty-state strong{font-size:15px;color:#777}.empty-state span{font-size:12px}.editor-empty{inset:var(--toolbar) 0 0}.hidden{display:none!important}.toast{position:fixed;z-index:100;left:50%;bottom:40px;transform:translate(-50%,20px);background:#252525dd;color:#fff;border-radius:18px;padding:8px 16px;font-size:13px;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.dialog-backdrop{position:fixed;inset:0;background:#0003;z-index:90;display:grid;place-items:center;padding:20px}.dialog{width:min(360px,100%);background:#fff;border-radius:14px;box-shadow:0 18px 50px #0004;padding:20px}.dialog h3{margin:0 0 12px;font-size:17px}.dialog input{width:100%;height:38px;border:1px solid #ccc;border-radius:7px;padding:0 10px;outline:0}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.dialog-actions button,.text-btn{border:0;background:#eee;border-radius:7px;padding:7px 13px;cursor:pointer}.dialog-actions .primary{background:var(--yellow);color:#4d3900}.dialog-actions .danger{background:#e54840;color:#fff}.mobile-titlebar,.mobile-back,.mobile-bottom-toolbar{display:none}.sidebar-collapsed{grid-template-columns:0 320px minmax(360px,1fr)}.sidebar-collapsed .folders-pane{visibility:hidden}
@media(max-width:767px){:root{--toolbar:54px}.app{display:block;height:100dvh;overflow:hidden}.pane{position:absolute;inset:0;width:100%;height:100%;border:0;transition:transform .24s ease,visibility .24s;background:#f7f7f5}.folders-pane{z-index:1}.notes-pane{z-index:2;transform:translateX(100%)}.editor-pane{z-index:3;transform:translateX(100%);background:#fff}.app[data-mobile-page="notes"] .notes-pane{transform:translateX(0)}.app[data-mobile-page="editor"] .notes-pane{transform:translateX(-25%)}.app[data-mobile-page="editor"] .editor-pane{transform:translateX(0)}.window-bar{display:none}.mobile-titlebar{height:90px;display:flex;align-items:flex-end;padding:0 18px 10px;justify-content:space-between}.mobile-titlebar h1{margin:0;font-size:30px}.text-btn{background:transparent;color:#a87300;font-size:15px;padding:6px}.folder-section{height:calc(100% - 90px);padding:8px 14px}.folder-row{height:48px;font-size:16px;background:#fff;border-bottom:1px solid #eee;border-radius:0;padding:0 12px}.folder-row:first-of-type{border-radius:12px 12px 0 0}.folder-row:last-of-type{border-radius:0 0 12px 12px;border-bottom:0}.folder-row.active{background:#fff}.folder-row.active .folder-icon{color:#e6ad12}.folder-edit{display:flex}.notes-header{height:94px;padding:8px 14px 10px;align-items:flex-end}.notes-heading h2{font-size:28px}.notes-heading span{font-size:12px}.mobile-back{display:flex;align-items:center;position:absolute;top:4px;left:8px;border:0;background:transparent;color:#a56f00;height:42px;font-size:27px;padding:0}.mobile-back span{font-size:14px}.notes-actions{padding-bottom:5px}.notes-actions .icon-btn{width:44px;height:44px}.notes-list{height:calc(100% - 94px);padding:6px 10px 90px}.note-item{min-height:82px;padding:12px}.notes-list.gallery{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 12px 90px}.view-menu{top:83px;right:48px}.editor-toolbar{padding:0 8px;justify-content:flex-end}.editor-toolbar .mobile-back{top:6px;z-index:2}.toolbar-buttons{display:none}.search-box{display:none}.editor-shell{height:calc(100% - var(--toolbar) - 60px);padding:0 18px 80px;-webkit-overflow-scrolling:touch}.editor{font-size:16px;min-height:calc(100dvh - 180px)}.updated-time{padding-top:12px}.mobile-bottom-toolbar{height:calc(60px + env(safe-area-inset-bottom));padding:5px 6px env(safe-area-inset-bottom);position:absolute;bottom:0;left:0;right:0;background:#fafaf9eF;backdrop-filter:blur(18px);border-top:1px solid #ddd;display:flex;justify-content:space-around;z-index:20}.mobile-bottom-toolbar button{min-width:44px;height:44px;border:0;background:transparent;color:#4d4d49}.note-menu,.format-menu,.list-menu,.move-menu{position:fixed;left:12px;right:12px;top:auto;bottom:calc(66px + env(safe-area-inset-bottom));width:auto}.find-bar{position:absolute;z-index:15;top:54px;left:0;right:0}.editor-pane:has(.find-bar:not(.hidden)) .editor-shell{height:calc(100% - var(--toolbar) - 102px);padding-top:42px}.desktop-only{display:none!important}.editor-empty{inset:54px 0 60px}.toast{bottom:85px}.sidebar-collapsed{display:block}}
@media(max-width:390px){.notes-list.gallery{gap:7px}.notes-list.gallery .note-item{min-height:145px}.gallery-preview{height:96px}.find-bar{padding:5px 7px}.find-bar input{width:110px}}

/* Unified 1.8px linear icon system. */
.icon-btn svg,.mobile-bottom-toolbar svg,.ui-icon,.search-box>svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.dots-btn svg circle{fill:currentColor;stroke:none}.icon-btn .accent-stroke,.mobile-bottom-toolbar .accent-stroke{stroke:#b78000}
.new-note-icon:before,.new-note-icon:after,.list-icon:before,.table-icon:before,.image-icon:before,.copy-icon:before,.window-actions .icon-btn:before,.window-actions .icon-btn:after,#collapseBtn:before,#collapseBtn:after{content:none!important;display:none!important}
.window-bar{justify-content:flex-start}.window-actions{gap:4px}.window-actions .icon-btn{width:40px;min-width:40px;height:40px}
.folder-icon{display:grid;place-items:center}.folder-icon .ui-icon{width:18px;height:18px}.folder-edit .ui-icon{width:15px;height:15px}
.pin{display:grid;place-items:center;opacity:.7}.pin .ui-icon{width:13px;height:13px}
.menu-item{justify-content:flex-start;gap:9px}.menu-item>.ui-icon{width:18px;height:18px;flex:0 0 18px}.menu-item>.menu-check,.menu-item>.menu-chevron{margin-left:auto}.menu-item>span:not(.menu-check):not(.menu-chevron){flex:1}
.search-box>svg{width:18px;height:18px;flex:0 0 18px;color:#8b8b8f}
#expandSidebarBtn{display:none;flex:0 0 40px;width:40px;height:40px;margin:0 8px 0 -4px;background:rgba(0,0,0,.04)}

/* Current layout: product sidebar, compact list toolbar and full-width gallery. */
.product-name{font-size:20px;font-weight:600;letter-spacing:-.2px;color:#262628}
.notes-left-actions{display:flex;align-items:center;gap:6px}
.table-handle{position:absolute;z-index:24;width:30px;height:30px;border:1px solid rgba(0,0,0,.1);border-radius:9px;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.1);color:#57575a;display:grid;place-items:center;cursor:pointer}.table-handle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.table-handle svg circle{fill:currentColor;stroke:none}.table-row-handle svg{transform:rotate(90deg)}.table-action-menu{z-index:35;min-width:178px}

@media(max-width:767px){
  .product-name{display:none}.notes-heading.visually-hidden{display:block}.notes-left-actions{display:none!important}
  .table-handle,.table-action-menu{display:none!important}
}

/* Authentication and account surfaces. */
.password-field{position:relative;display:block;margin-top:10px}.password-field:first-of-type{margin-top:0}.password-field input{width:100%;padding-right:58px}.password-field button{position:absolute;top:50%;right:6px;height:30px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:#6e6e73;transform:translateY(-50%)}.password-field button:hover{background:rgba(0,0,0,.05)}
.auth-hidden{display:none!important}.startup-view,.login-view{position:fixed;z-index:300;inset:0;background:#f5f5f7}.startup-view{display:grid;place-items:center;color:#8e8e93;font-size:14px}.login-view{display:grid;place-items:center;padding:24px}.login-card{width:min(390px,100%);padding:32px;border:1px solid rgba(0,0,0,.07);border-radius:20px;background:rgba(255,255,255,.92);box-shadow:0 12px 36px rgba(0,0,0,.08);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.login-card h1{margin:0 0 28px;text-align:center;font-size:28px;font-weight:700}.login-card label{display:block;margin-top:14px}.login-card label span{display:block;margin:0 0 6px;color:#6e6e73;font-size:13px}.login-card input{width:100%;height:46px;padding:0 13px;border:1px solid rgba(0,0,0,.12);border-radius:11px;outline:0;background:#fff;font-size:16px}.login-card input:focus{border-color:rgba(185,134,0,.45);box-shadow:0 0 0 3px rgba(233,169,0,.1)}.login-error{min-height:20px;margin:10px 2px 2px;color:#d70015;font-size:13px}.login-card>button{width:100%;height:46px;border:0;border-radius:12px;background:#e8bd55;color:#3d310f;font-size:16px;font-weight:600}.login-card>button:disabled{opacity:.55}
.desktop-account{position:absolute;z-index:12;right:10px;bottom:10px;left:10px;height:54px;padding:7px 9px;border:0;border-radius:12px;background:transparent;color:#1d1d1f;display:flex;align-items:center;gap:10px;text-align:left}.desktop-account:hover{background:rgba(0,0,0,.045)}.account-avatar{width:38px;height:38px;min-width:38px;border-radius:999px;background:#f1d990;color:#5d4912;display:grid;place-items:center;font-size:16px;font-weight:600}.account-copy{min-width:0;display:flex;flex-direction:column}.account-copy strong,.account-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-copy strong{font-size:14px}.account-copy small{margin-top:2px;color:#8e8e93;font-size:11px}.account-menu{right:10px;bottom:70px;left:10px;top:auto}.account-menu-head{display:flex;align-items:center;gap:10px;padding:8px 10px 12px}.account-menu-head>span:last-child{min-width:0;display:flex;flex-direction:column}.account-menu-head strong,.account-menu-head small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-menu-head small{margin-top:2px;color:#8e8e93;font-size:11px}.dialog input+input{margin-top:10px}.dialog-message{min-height:18px;margin-top:8px;color:#d70015;font-size:12px}.admin-dialog{width:min(620px,calc(100vw - 32px));max-height:80vh;overflow:auto}.admin-create{display:grid;grid-template-columns:1fr 1fr;gap:8px}.admin-create input,.admin-create select,.admin-create button{height:38px;border:1px solid rgba(0,0,0,.12);border-radius:9px;padding:0 10px;background:#fff}.admin-users{margin-top:16px}.admin-user{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid rgba(0,0,0,.07)}.admin-user>span{min-width:0;flex:1;display:flex;flex-direction:column}.admin-user small{margin-top:2px;color:#8e8e93}.admin-user button{border:0;border-radius:8px;padding:7px;background:#eee}
@media(min-width:768px){.folders-pane .folder-section{height:calc(100% - 126px)}.sidebar-collapsed .desktop-account{width:40px;right:auto;left:7px;padding:1px}.sidebar-collapsed .desktop-account .account-copy{display:none}}
@media(max-width:767px){
  .login-view{display:block;padding:calc(84px + env(safe-area-inset-top)) 24px 24px;overflow:auto}.login-card{width:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}.login-card h1{text-align:left;font-size:34px;margin-bottom:34px}
  .mobile-folder-actions{display:flex;align-items:center;gap:10px}.mobile-account-avatar{width:42px;height:42px;min-width:42px;border:0;font-size:16px}.account-sheet-backdrop{position:fixed;z-index:310;inset:0;background:rgba(0,0,0,.2);display:flex;align-items:flex-end;padding:10px}.account-sheet{width:100%;padding:10px 8px calc(10px + env(safe-area-inset-bottom));border-radius:22px;background:rgba(250,250,250,.96);box-shadow:0 -8px 30px rgba(0,0,0,.12);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}.account-sheet .account-menu-head{padding:10px 12px 16px}.account-sheet .menu-item{height:48px;font-size:16px}.account-sheet .account-cancel{margin-top:8px;justify-content:center;font-weight:600}.admin-create{grid-template-columns:1fr}.admin-user{align-items:flex-start;flex-wrap:wrap}
}

/* Final iPhone-style folder, list and editor presentation. */
.mobile-notes-heading,.mobile-browser-toolbar{display:none}
@media(max-width:767px){
  :root{--mobile-page-bg:#f5f5f7;--mobile-card-bg:#fff;--mobile-primary:#1d1d1f;--mobile-secondary:#8e8e93;--mobile-separator:rgba(60,60,67,.12);--mobile-accent:#e9a900;--mobile-pressed:rgba(0,0,0,.04);--mobile-keyboard-offset:0px}
  html,body,.app{width:100%;max-width:100%;overflow:hidden;background:var(--mobile-page-bg)}.pane{max-width:100%;overflow:hidden;background:var(--mobile-page-bg)}
  .mobile-titlebar{box-sizing:border-box;height:auto;min-height:calc(86px + env(safe-area-inset-top));padding:calc(18px + env(safe-area-inset-top)) 20px 12px;align-items:center}
  .mobile-titlebar h1{margin:0;color:var(--mobile-primary);font-size:34px;font-weight:700;line-height:1.15}.mobile-titlebar .text-btn{padding:0;border:0;background:transparent;color:var(--mobile-accent);font-size:17px;font-weight:500;box-shadow:none}
  .folder-section{height:calc(100% - 86px - env(safe-area-inset-top));padding:0 0 calc(88px + env(safe-area-inset-bottom));overflow-y:auto}.section-label{margin:28px 20px 8px;color:var(--mobile-secondary);font-size:13px;font-weight:500}
  .folder-list{margin:0 16px;gap:0;overflow:hidden;border-radius:14px;background:var(--mobile-card-bg)}.folder-row,.folder-row:first-of-type,.folder-row:last-of-type{position:relative;height:64px;padding:0 16px;border:0;border-radius:0;background:transparent;color:var(--mobile-primary);font-size:17px;font-weight:500}.folder-row.active,.folder-row:hover{background:transparent}.folder-row:active{background:var(--mobile-pressed)}.folder-row:not(:last-child)::after{content:"";position:absolute;right:0;bottom:0;left:52px;height:1px;background:var(--mobile-separator)}.folder-row[data-folder="trash"]{margin-top:0}.folder-icon,.folder-icon .ui-icon{width:22px;height:22px}.folder-row{gap:12px}.folder-name{font-size:17px}.folder-count,.folder-row.active .folder-count{margin-left:auto;color:var(--mobile-secondary);font-size:16px}.folder-edit{margin-left:2px}
  .notes-header{box-sizing:border-box;height:calc(154px + env(safe-area-inset-top));padding:0;border:0;background:var(--mobile-page-bg);align-items:initial}.mobile-list-back{display:grid;place-items:center;top:calc(12px + env(safe-area-inset-top));left:16px;width:46px;height:46px;padding:0;border-radius:999px;color:#4a4a4a;background:rgba(255,255,255,.78);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.mobile-list-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .notes-actions{position:absolute;top:calc(12px + env(safe-area-inset-top));right:16px;padding:0}.notes-actions #viewMenuBtn{width:46px;min-width:46px;height:46px;border-radius:999px;background:rgba(255,255,255,.78);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.notes-actions #viewMenuBtn svg{width:20px;height:20px}.mobile-notes-heading{display:flex;position:absolute;top:calc(80px + env(safe-area-inset-top));right:20px;left:20px;flex-direction:column}.mobile-notes-heading strong{overflow:hidden;color:var(--mobile-primary);font-size:36px;font-weight:700;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.mobile-notes-heading span{margin-top:3px;color:var(--mobile-secondary);font-size:14px;line-height:1.2}
  .notes-list,.notes-list.gallery{height:calc(100% - 154px - env(safe-area-inset-top));padding:0 0 calc(88px + env(safe-area-inset-bottom));overflow-y:auto;background:var(--mobile-page-bg)}.mobile-note-section:first-child{margin-top:22px}.mobile-note-section+.mobile-note-section{margin-top:28px}.mobile-note-group-title{margin:0 20px 10px;color:var(--mobile-primary);font-size:21px;font-weight:700;line-height:1.2}.mobile-note-group{margin:0 16px;overflow:hidden;border-radius:18px;background:var(--mobile-card-bg)}
  .mobile-note-row,.mobile-note-row.active{position:relative;min-height:72px;margin:0;padding:11px 16px;border:0;border-radius:0;background:transparent;box-shadow:none;display:flex;flex-direction:column;justify-content:center}.mobile-note-row:not(:last-child)::after{content:"";position:absolute;right:16px;bottom:0;left:16px;height:1px;background:var(--mobile-separator)}.mobile-note-row:active{background:var(--mobile-pressed)}.mobile-note-row .note-title{font-size:17px;font-weight:600;line-height:1.3;color:var(--mobile-primary)}.mobile-note-row .note-meta{min-width:0;margin-top:3px;gap:8px;color:var(--mobile-secondary);font-size:15px;line-height:1.3}.mobile-note-row .note-meta>span:first-child,.mobile-note-row .note-preview{color:var(--mobile-secondary)}
  .mobile-browser-toolbar{display:none;position:fixed;z-index:50;right:16px;bottom:calc(10px + env(safe-area-inset-bottom));left:16px;align-items:center;gap:10px;pointer-events:auto}.app[data-mobile-page="folders"]>.mobile-browser-toolbar,.app[data-mobile-page="notes"]>.mobile-browser-toolbar{display:flex}.mobile-search-box{height:50px;min-width:0;flex:1;padding:0 17px;border-radius:25px;background:rgba(255,255,255,.86);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);display:flex;align-items:center;gap:9px}.mobile-search-box svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:var(--mobile-secondary);stroke-width:1.8;stroke-linecap:round}.mobile-search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--mobile-primary);font-size:17px}.mobile-search-box input::placeholder{color:var(--mobile-secondary)}.mobile-browse-new{display:grid;place-items:center;width:50px;min-width:50px;height:50px;padding:0;border:0;border-radius:999px;background:rgba(255,255,255,.86);color:#4a4a4a;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.mobile-browse-new svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mobile-browse-new .accent-stroke{stroke:#b78000}
  .editor-toolbar{height:calc(70px + env(safe-area-inset-top));background:rgba(255,255,255,.9);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.editor-toolbar .mobile-editor-back,.mobile-editor-more{top:calc(12px + env(safe-area-inset-top))}.editor-shell{height:calc(100% - 70px - env(safe-area-inset-top));padding:0 20px calc(96px + env(safe-area-inset-bottom));background:#fff}.updated-time{margin-top:8px;padding:0;text-align:center;color:var(--mobile-secondary);font-size:13px}.editor{width:100%;min-height:calc(100dvh - 160px);margin-top:24px;padding:0 0 calc(96px + env(safe-area-inset-bottom));color:var(--mobile-primary);font-size:17px;font-weight:400;line-height:1.55}.editor p{font-size:17px;font-weight:400;line-height:1.55}.editor>*:first-child{font-weight:inherit}
  .mobile-tools-capsule{bottom:calc(10px + env(safe-area-inset-bottom) + var(--mobile-keyboard-offset));gap:1px;background:rgba(245,245,245,.9);box-shadow:0 3px 12px rgba(0,0,0,.08)}.mobile-bottom-toolbar .mobile-new-note{bottom:calc(10px + env(safe-area-inset-bottom) + var(--mobile-keyboard-offset));background:rgba(245,245,245,.9);box-shadow:0 3px 12px rgba(0,0,0,.08)}.format-menu,.list-menu{bottom:calc(74px + env(safe-area-inset-bottom) + var(--mobile-keyboard-offset))}
}

/* Final toolbar arrangement and folder-delete confirmation. */
:root{--radius-folder:10px;--radius-note:12px;--radius-menu:14px;--radius-menu-item:8px;--radius-toolbar:20px;--radius-search:20px;--radius-dialog:22px;--radius-image:8px;--radius-pill:999px;--motion-fast:120ms;--motion-normal:180ms;--motion-slow:240ms;--ease-standard:cubic-bezier(.25,.1,.25,1);--ease-out:cubic-bezier(.22,.61,.36,1);--ease-spring-soft:cubic-bezier(.2,.8,.2,1)}
.icon-btn:disabled{opacity:.35;cursor:default}.icon-btn:disabled:hover{background:transparent}
.dialog-backdrop{background:rgba(0,0,0,.22);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.dialog.folder-delete-dialog{width:min(300px,100%);border-radius:20px;padding:20px;box-shadow:0 16px 42px rgba(0,0,0,.18)}
.folder-delete-dialog h3{font-size:17px;text-align:center;margin-bottom:9px}.folder-delete-dialog>div:not(.dialog-actions){font-size:13px;line-height:1.5;text-align:center;color:#737377}.folder-delete-dialog .dialog-actions{gap:10px;margin-top:18px}.folder-delete-dialog .dialog-actions button{height:36px;flex:1;border-radius:9px}.folder-delete-dialog .dialog-actions .danger{background:#e9b33d;color:#3f3109}

/* Consolidated desktop macOS Notes presentation — authoritative ruleset. */
html,body,button,input{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","PingFang SC",sans-serif}
.icon-btn,.folder-row,.note-item,.menu-item{transition:background-color var(--motion-fast) var(--ease-standard),color var(--motion-fast) var(--ease-standard),transform 140ms var(--ease-out)}
.icon-btn:disabled{color:#b7b7b7;opacity:1}.icon-btn:disabled:hover{background:transparent}
.popover{background:rgba(255,255,255,.92);border:1px solid rgba(0,0,0,.08);border-radius:var(--radius-menu);box-shadow:0 12px 36px rgba(0,0,0,.16);padding:6px;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.popover:not(.hidden){animation:menu-appear 150ms var(--ease-out) both;transform-origin:top right}.account-menu:not(.hidden),.format-menu:not(.hidden),.list-menu:not(.hidden),.move-menu:not(.hidden){transform-origin:top left}@keyframes menu-appear{from{opacity:0;scale:.97;translate:0 -3px}to{opacity:1;scale:1;translate:0 0}}
.menu-item{height:36px;padding:0 12px;gap:9px;border-radius:var(--radius-menu-item)}.menu-item:hover,.menu-item:has(.menu-check:not(:empty)):hover{background:rgba(0,0,0,.06)}.menu-item:has(.menu-check:not(:empty)){background:transparent}.menu-item.menu-danger,.menu-item[data-action="delete"]{color:#d70015}
.icon-btn:active,.text-btn:active,.mobile-bottom-toolbar button:active,.desktop-account:active,.mobile-browse-new:active,.dialog-actions button:active{transform:scale(.96);transition-duration:80ms}.dialog-actions .danger:active{transform:scale(.97)}
.dialog-backdrop:not(.hidden){animation:dialog-mask-in 160ms var(--ease-standard) both}.dialog-backdrop:not(.hidden) .dialog{animation:dialog-panel-in 200ms var(--ease-out) both}@keyframes dialog-mask-in{from{opacity:0}to{opacity:1}}@keyframes dialog-panel-in{from{opacity:0;transform:translateY(6px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
.toast{top:72px;bottom:auto;transition:opacity 150ms var(--ease-standard),transform 150ms var(--ease-out)}
@media(min-width:768px){
:root{--toolbar:58px;--sidebar-width:195px;--list-width:300px;--notes-sidebar-bg:#f4f4f2;--notes-list-bg:#fafaf8;--notes-editor-bg:#fff;--notes-separator:rgba(60,60,67,.07);--notes-folder-active-bg:#e9e9e7;--notes-folder-hover-bg:#efefed;--notes-note-active-bg:#ffe394;--notes-note-hover-bg:rgba(0,0,0,.025);--notes-text-primary:#1d1d1f;--notes-text-secondary:#6e6e73;--notes-text-tertiary:#8e8e93;--notes-text-quaternary:#aeaeb2;--notes-accent:#e9a900;--notes-toolbar-bg:rgba(0,0,0,.026);--notes-toolbar-hover:rgba(0,0,0,.055);--notes-toolbar-active:rgba(0,0,0,.085);--notes-menu-bg:rgba(255,255,255,.94);--notes-danger:#d70015;--yellow:var(--notes-accent);--line:var(--notes-separator);--toolbar-bubble-highlight:inset 0 1px 0 rgba(255,255,255,.6)}
.dialog,.dialog.folder-delete-dialog{border-radius:var(--radius-dialog)}.dialog-actions button,.folder-delete-dialog .dialog-actions button{border-radius:var(--radius-pill)}.toast{border-radius:var(--radius-menu)}.table-action-menu{border-radius:var(--radius-menu)}.popover{background:var(--notes-menu-bg);border-color:rgba(0,0,0,.07);box-shadow:0 12px 34px rgba(0,0,0,.14);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.menu-item:hover,.menu-item:has(.menu-check:not(:empty)):hover{background:rgba(0,0,0,.055)}.menu-item.menu-danger,.menu-item[data-action="delete"]{color:var(--notes-danger)}
.app{grid-template-columns:var(--sidebar-width) 1px var(--list-width) 1px minmax(0,1fr);width:100vw;height:100dvh;overflow:hidden;transition:grid-template-columns 200ms ease}.sidebar-collapsed{grid-template-columns:0 0 var(--list-width) 1px minmax(0,1fr)}.pane{height:100%;min-width:0;overflow:hidden}
.folders-pane{background:var(--notes-sidebar-bg);border:0;opacity:1;visibility:visible;transition:opacity 160ms ease}.sidebar-collapsed .folders-pane{opacity:0;visibility:hidden;pointer-events:none}.notes-pane{background:var(--notes-list-bg);border:0}.editor-pane{display:flex;flex-direction:column;background:var(--notes-editor-bg)}
.column-resizer{position:relative;z-index:18;width:8px;height:100%;margin:0 -3.5px;background:transparent;cursor:col-resize;touch-action:none}.column-resizer::after{content:"";position:absolute;top:0;bottom:0;left:3.5px;width:1px;background:var(--notes-separator)}.column-resizer:hover::after,.column-resizer.dragging::after{background:rgba(60,60,67,.16)}body.is-resizing,body.is-resizing *{cursor:col-resize!important;user-select:none!important}.sidebar-collapsed #sidebarResizer{display:none}
.window-bar{height:58px;padding:0 16px;display:flex;align-items:center;justify-content:space-between}.product-name{font-size:19px;font-weight:600;line-height:1;color:var(--notes-text-primary)}.window-actions{display:flex;gap:2px}.window-actions .icon-btn{width:34px;min-width:34px;height:34px}
.folder-section{height:calc(100% - 58px);padding:7px 8px 18px;overflow-y:auto}.section-label{margin:0 10px 11px;font-size:12px;font-weight:500;color:var(--notes-text-tertiary)}.folder-list{gap:2px}.folder-row{height:36px;padding:0 10px;gap:8px;border-radius:var(--radius-folder);font-size:14px;color:var(--notes-text-primary)}.folder-row:hover{background:var(--notes-folder-hover-bg)}.folder-row.active,.folder-row.active:hover{background:var(--notes-folder-active-bg);border:0;box-shadow:none}.folder-row[data-folder="trash"]{margin-top:8px}.folder-icon{width:17px;color:var(--notes-text-tertiary)}.folder-icon .ui-icon{width:17px;height:17px}.folder-row.active .folder-icon{color:var(--notes-accent)}.folder-row.active .folder-name{color:var(--notes-text-primary)}.folder-count,.folder-row.active .folder-count{font-size:12px;color:var(--notes-text-quaternary);opacity:1}.folder-row.custom.active .folder-edit{display:flex}
.notes-header{height:58px;padding:0 12px;display:flex;align-items:center;justify-content:flex-end;border-bottom:1px solid var(--notes-separator)}.notes-heading.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.notes-left-actions{display:flex;margin-right:8px}.notes-left-actions:not(:has(#expandSidebarBtn.visible)){width:0;margin:0;overflow:hidden}#expandSidebarBtn{width:34px;height:34px;min-width:34px;background:transparent}#expandSidebarBtn.visible{display:grid}.sidebar-collapsed #collapseBtn{display:none}.gallery-heading{display:flex;min-width:0;flex:1;flex-direction:column}.gallery-new-note{display:none}.gallery-heading strong{overflow:hidden;color:var(--notes-text-primary);font-size:16px;font-weight:600;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.gallery-heading span{margin-top:2px;color:var(--notes-text-tertiary);font-size:12px;font-weight:400;line-height:1.15}.notes-actions{margin-left:auto}.notes-actions .icon-btn{width:34px;min-width:34px;height:34px}.gallery-mode .notes-actions{gap:9px}.gallery-mode #viewMenuBtn,.gallery-mode #galleryNewNoteBtn{display:grid;width:38px;min-width:38px;height:38px;border-radius:var(--radius-pill);background:var(--notes-toolbar-bg)}.gallery-mode #viewMenuBtn:hover,.gallery-mode #galleryNewNoteBtn:hover{background:var(--notes-toolbar-hover)}.gallery-mode #viewMenuBtn:active,.gallery-mode #galleryNewNoteBtn:active{background:var(--notes-toolbar-active)}.gallery-mode #viewMenuBtn svg,.gallery-mode #galleryNewNoteBtn svg{width:17px;height:17px;stroke-width:1.6}
.notes-list{height:calc(100% - 58px);padding:0 10px 20px;overflow-y:auto}.note-group-title,.note-group-title:first-child{margin:16px 0 7px;padding-left:12px;font-size:19px;font-weight:600;line-height:1.2;color:#2f2f2f}.note-item{position:relative;min-height:74px;margin:0;padding:10px 14px;border:0;border-radius:10px;background:transparent;box-shadow:none;transition:background-color .16s ease}.note-item:not(.active):hover{background:var(--notes-note-hover-bg)}.note-item.active,.note-item.active:hover,.note-item.active:active{background:var(--notes-note-active-bg);border:0;box-shadow:none}.note-item:not(.active)::after{content:"";position:absolute;right:14px;bottom:0;left:14px;height:1px;background:rgba(60,60,67,.055)}.note-item:last-child::after,.note-item.active::after{display:none}
.note-title-line{display:flex;align-items:center;gap:6px;min-width:0}.note-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600;line-height:1.25;color:#1d1d1f}.pin{color:#8e8e93}.pin .ui-icon{width:12px;height:12px;color:#8e8e93}.note-meta{display:flex;align-items:center;min-width:0;margin-top:7px;gap:8px;overflow:hidden;white-space:nowrap;font-size:13px;line-height:1.3;color:#2f2f2f}.note-meta>span:first-child{flex:none;color:#2f2f2f}.note-preview{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#777}.empty-state{inset:58px 0 0}
.editor-toolbar{flex:0 0 58px;height:58px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:0 14px;border-bottom:1px solid var(--notes-separator);background:var(--notes-editor-bg)}.toolbar-buttons{display:flex;align-items:center}.toolbar-left{justify-self:start}.toolbar-center{justify-self:center;height:36px;padding:0 4px;gap:1px;border:0;border-radius:18px;background:var(--notes-toolbar-bg);box-shadow:none;backdrop-filter:none}.toolbar-right{justify-self:end;gap:8px}
.editor-toolbar .icon-btn{width:34px;min-width:34px;height:34px;border-radius:var(--radius-pill);color:#4a4a4a}.editor-toolbar .icon-btn:hover{background:var(--notes-toolbar-hover)}.editor-toolbar .icon-btn:active{background:var(--notes-toolbar-active)}.toolbar-center .icon-btn{width:34px;min-width:34px;height:34px;background:transparent}.format-icon{font-size:14px;font-weight:500}.icon-btn svg,.ui-icon,.search-box>svg{width:17px;height:17px;color:#4a4a4a;stroke-width:1.6}
#newNoteBtn,#noteMenuBtn{width:38px;min-width:38px;height:38px;background:var(--notes-toolbar-bg);box-shadow:none}#newNoteBtn{margin-left:8px}#newNoteBtn:hover,#noteMenuBtn:hover{background:var(--notes-toolbar-hover)}#newNoteBtn:active,#noteMenuBtn:active,.editor-pane:has(.note-menu:not(.hidden)) #noteMenuBtn{background:var(--notes-toolbar-active)}#newNoteBtn svg,#noteMenuBtn svg{width:17px;height:17px}.toolbar-center svg{width:17px;height:17px;stroke-width:1.6}
.window-actions .icon-btn,.notes-actions .icon-btn,.notes-left-actions .icon-btn{background:transparent}.window-actions .icon-btn:hover,.notes-actions .icon-btn:hover,.notes-left-actions .icon-btn:hover{background:rgba(0,0,0,.06)}
.search-box{width:240px;height:38px;padding:0 14px;border:0;border-radius:19px;background:rgba(0,0,0,.035);box-shadow:var(--toolbar-bubble-highlight);transition:background-color 150ms var(--ease-standard),box-shadow 150ms var(--ease-standard)}.search-box:focus-within{background:rgba(255,255,255,.72);box-shadow:var(--toolbar-bubble-highlight),0 0 0 3px rgba(0,0,0,.025)}.search-box>svg{width:15px;height:15px;color:var(--notes-text-tertiary);transition:color 150ms var(--ease-standard)}.search-box:focus-within>svg{color:var(--notes-text-primary)}.search-box input{font-size:13px;color:var(--notes-text-primary)}.search-box input:focus{outline:none}.search-box input::placeholder{color:var(--notes-text-tertiary);transition:opacity 150ms var(--ease-standard)}.search-box:focus-within input::placeholder{opacity:.68}
.editor-shell{flex:1;min-height:0;height:auto;overflow-y:auto;padding:0 clamp(20px,1.8vw,30px) 120px;cursor:text}.updated-time{display:block;width:min(100%,920px);margin:0 auto;padding:24px 36px 0;text-align:center;font-size:13px;color:var(--notes-text-tertiary)}.editor{width:min(860px,100%);max-width:860px;min-height:calc(100vh - 136px);margin:30px 0 0;padding:0 0 120px;outline:none;color:var(--notes-text-primary);font-size:15px;font-weight:400;line-height:1.62}.editor:focus{outline:none;box-shadow:none}.editor h1{margin:.25em 0 .35em;font-size:22px;font-weight:700;line-height:1.3}.editor h2{margin:.2em 0 .3em;font-size:18px;font-weight:600;line-height:1.4}.editor p{margin:0 0 .65em;font-size:15px;font-weight:400;line-height:1.62}.editor img{border-radius:var(--radius-image)}.editor td{border-radius:2px}.editor-empty{inset:58px 0 0}
.view-menu{top:64px;right:12px}.gallery-mode .view-menu{right:58px}.note-menu{top:64px;right:232px;left:auto}.format-menu{top:64px;left:50%;transform:translateX(-160px)}.list-menu{top:64px;left:50%;transform:translateX(-92px)}.move-menu{top:102px;left:auto;right:232px}
.folder-section,.notes-list,.editor-shell{scrollbar-width:thin;scrollbar-color:transparent transparent}.folder-section:hover,.notes-list:hover,.editor-shell:hover{scrollbar-color:rgba(0,0,0,.16) transparent}.folder-section::-webkit-scrollbar,.notes-list::-webkit-scrollbar,.editor-shell::-webkit-scrollbar{width:6px}.folder-section::-webkit-scrollbar-thumb,.notes-list::-webkit-scrollbar-thumb,.editor-shell::-webkit-scrollbar-thumb{border-radius:3px;background:transparent}.folder-section:hover::-webkit-scrollbar-thumb,.notes-list:hover::-webkit-scrollbar-thumb,.editor-shell:hover::-webkit-scrollbar-thumb{background:rgba(0,0,0,.16)}
.app.gallery-mode{grid-template-columns:var(--sidebar-width) 1px minmax(0,1fr) 0 0}.app.gallery-mode.sidebar-collapsed{grid-template-columns:0 0 minmax(0,1fr) 0 0}.gallery-mode #listResizer{display:none}.gallery-mode .notes-pane{border-right:0}.gallery-mode .editor-pane{width:0;opacity:0;visibility:hidden}.gallery-mode .notes-list.gallery{display:block;height:calc(100% - 58px);padding:0 24px 48px;overflow-y:auto}.gallery-section{margin-top:56px}.gallery-section:first-child,.gallery-section-ungrouped{margin-top:20px}.gallery-section-title{margin:0 0 16px;padding:0;font-size:20px;font-weight:600;line-height:1.25;color:#2f2f2f}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,205px);column-gap:22px;row-gap:34px;justify-content:start;align-items:start}.gallery-mode .notes-list.gallery .gallery-note-item{width:205px;min-width:205px;max-width:205px;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}.gallery-mode .notes-list.gallery .gallery-note-item:hover,.gallery-mode .notes-list.gallery .gallery-note-item.active,.gallery-mode .notes-list.gallery .gallery-note-item.active:hover,.gallery-mode .notes-list.gallery .gallery-note-item.active:active{background:transparent;border:0;box-shadow:none}.gallery-preview-card{box-sizing:border-box;width:205px;height:160px;min-height:160px;max-height:160px;flex-shrink:0;padding:11px 12px;overflow:hidden;background:#fff;border:1px solid rgba(60,60,67,.13);border-radius:10px;box-shadow:0 1px 3px rgba(0,0,0,.045);transition:border-color 120ms ease,box-shadow 120ms ease,transform 120ms ease}.gallery-preview-content{height:100%;overflow:hidden;color:#303033;font-size:10px;font-weight:400;line-height:1.35;text-align:left;white-space:pre-wrap;word-break:break-word}.gallery-note-meta{width:205px;margin-top:9px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;text-align:center}.gallery-note-title-line{box-sizing:border-box;display:flex;width:205px;min-width:0;padding:0 4px;align-items:center;justify-content:center;gap:5px;background:transparent;border:0;box-shadow:none}.gallery-note-title-line .pin{flex:0 0 auto}.gallery-note-title{width:100%;min-width:0;overflow:hidden;color:var(--notes-text-primary);font-size:14px;font-weight:600;line-height:1.3;text-align:center;text-overflow:ellipsis;white-space:nowrap}.gallery-note-date{width:205px;margin-top:2px;padding:0;color:var(--notes-text-tertiary);font-size:12px;font-weight:400;line-height:1.25;text-align:center;background:transparent;border:0;box-shadow:none}.gallery-note-item:hover .gallery-preview-card{border-color:rgba(60,60,67,.22);box-shadow:0 3px 10px rgba(0,0,0,.07);transform:translateY(-1px)}.gallery-note-item:active .gallery-preview-card{border-color:rgba(60,60,67,.18);box-shadow:0 1px 3px rgba(0,0,0,.05);transform:translateY(0)}
.gallery-editor-back{display:none}.app.gallery-editor-mode{grid-template-columns:var(--sidebar-width) 1px 0 0 minmax(0,1fr)}.app.gallery-editor-mode.sidebar-collapsed{grid-template-columns:0 0 0 0 minmax(0,1fr)}.gallery-editor-mode .notes-pane,.gallery-editor-mode #listResizer{width:0;opacity:0;visibility:hidden;pointer-events:none}.gallery-editor-mode .editor-pane{width:auto;opacity:1;visibility:visible}.gallery-editor-mode .gallery-editor-back{display:grid;width:38px;min-width:38px;height:38px;margin-left:0;background:var(--notes-toolbar-bg)}.gallery-editor-mode .gallery-editor-back:hover{background:var(--notes-toolbar-hover)}.gallery-editor-mode #newNoteBtn{margin-left:4px}
.gallery-note-item:active .gallery-preview-card{transform:translateY(0) scale(.985);transition-duration:80ms}.table-handle{display:grid}.editor table.table-selected{outline:2px solid rgba(242,183,5,.42)}
}
@media(min-width:1801px){.search-box{width:260px}.gallery-mode .notes-list.gallery{padding-right:28px;padding-left:28px}}
@media(max-width:767px){.product-name{display:none}.notes-heading.visually-hidden{display:block}.notes-left-actions{display:none!important}.table-handle,.table-action-menu{display:none!important}.mobile-bottom-toolbar svg{width:21px;height:21px}#expandSidebarBtn{display:none!important}}

/* Mobile editor toolbar — authoritative layout. */
.mobile-editor-more{display:none}
@media(max-width:767px){
  :root{--toolbar:64px}
  .editor-toolbar{height:64px;padding:0;border:0;background:#fff;justify-content:space-between}
  .editor-toolbar .mobile-editor-back{display:grid;place-items:center;top:9px;left:12px;z-index:2;width:46px;height:46px;padding:0;border-radius:999px;color:#4a4a4a;background:rgba(245,245,245,.88);box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 2px 10px rgba(0,0,0,.07);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
  .mobile-editor-back svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .mobile-editor-more{display:grid;place-items:center;position:absolute;z-index:2;top:9px;right:12px;width:46px;height:46px;padding:0;border:0;border-radius:999px;color:#4a4a4a;background:rgba(245,245,245,.88);box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 2px 10px rgba(0,0,0,.07);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
  .mobile-editor-more svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mobile-editor-more svg circle{fill:currentColor;stroke:none}
  .mobile-editor-back:active,.mobile-editor-more:active{background:rgba(225,225,225,.9)}.mobile-editor-more:disabled{opacity:.35}
  .editor-shell{height:calc(100% - 64px);padding:0 18px calc(92px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}.editor{min-height:calc(100dvh - 156px)}
  .mobile-bottom-toolbar{position:fixed;z-index:20;inset:auto 0 0;height:calc(76px + env(safe-area-inset-bottom));display:block;padding:0;background:transparent;border:0;pointer-events:none}
  .mobile-tools-capsule{position:fixed;left:16px;bottom:calc(12px + env(safe-area-inset-bottom));height:52px;padding:0 4px;border-radius:26px;background:rgba(245,245,245,.88);box-shadow:0 4px 18px rgba(0,0,0,.1);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);display:flex;align-items:center;gap:2px;pointer-events:auto}
  .mobile-bottom-toolbar button{display:grid;place-items:center;width:46px;min-width:46px;height:46px;padding:0;border:0;border-radius:999px;background:transparent;color:#4d4d49}.mobile-bottom-toolbar button:active{background:rgba(0,0,0,.07)}
  .mobile-bottom-toolbar .mobile-new-note{position:fixed;right:16px;bottom:calc(12px + env(safe-area-inset-bottom));width:52px;min-width:52px;height:52px;background:rgba(245,245,245,.88);box-shadow:0 4px 18px rgba(0,0,0,.1);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);pointer-events:auto}
  .note-menu,.move-menu{position:fixed;left:12px;right:12px;top:66px;bottom:auto;width:auto}.format-menu,.list-menu{position:fixed;left:12px;right:12px;top:auto;bottom:calc(76px + env(safe-area-inset-bottom));width:auto}
  .find-bar{top:64px}.editor-pane:has(.find-bar:not(.hidden)) .editor-shell{height:calc(100% - var(--toolbar) - 42px);padding-top:42px}.editor-empty{inset:64px 0 88px}
}

@media(max-width:767px){
  .editor-toolbar{height:calc(70px + env(safe-area-inset-top));background:rgba(255,255,255,.9);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
  .editor-toolbar .mobile-editor-back,.mobile-editor-more{top:calc(12px + env(safe-area-inset-top))}
  .editor-shell{height:calc(100% - 70px - env(safe-area-inset-top));padding:0 20px calc(96px + env(safe-area-inset-bottom));background:#fff}
  .updated-time{margin-top:8px;padding:0;text-align:center;color:var(--mobile-secondary);font-size:13px}.editor{width:100%;min-height:calc(100dvh - 160px);margin-top:24px;padding:0 0 calc(96px + env(safe-area-inset-bottom));color:var(--mobile-primary);font-size:17px;font-weight:400;line-height:1.55}.editor p{font-size:17px;font-weight:400;line-height:1.55}.editor>*:first-child{font-weight:inherit}
  .mobile-tools-capsule{bottom:calc(10px + env(safe-area-inset-bottom) + var(--mobile-keyboard-offset));gap:1px;background:rgba(245,245,245,.9);box-shadow:0 3px 12px rgba(0,0,0,.08)}
  .mobile-bottom-toolbar .mobile-new-note{bottom:calc(10px + env(safe-area-inset-bottom) + var(--mobile-keyboard-offset));background:rgba(245,245,245,.9);box-shadow:0 3px 12px rgba(0,0,0,.08)}
  .format-menu,.list-menu{bottom:calc(74px + env(safe-area-inset-bottom) + var(--mobile-keyboard-offset))}
  .pane{transition:transform 240ms cubic-bezier(.32,.72,0,1),opacity 240ms cubic-bezier(.32,.72,0,1),visibility 0s linear 240ms;will-change:transform,opacity}
  .folders-pane{transform:translateX(0);opacity:1;visibility:visible}.notes-pane,.editor-pane{transform:translateX(22px);opacity:0;visibility:hidden;pointer-events:none}
  .app[data-mobile-page="notes"] .folders-pane{transform:translateX(-8px);opacity:.94;visibility:visible}.app[data-mobile-page="notes"] .notes-pane{transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto}
  .app[data-mobile-page="editor"] .folders-pane,.app[data-mobile-page="editor"] .notes-pane{transform:translateX(-8px);opacity:.94;visibility:visible}.app[data-mobile-page="editor"] .editor-pane{transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto}
  html.mobile-keyboard-open .pane{transition:none}
}

/* Shared light/dark appearance. Theme state lives only on the root element. */
.appearance-item>span{display:flex;align-items:center;gap:10px}.appearance-item .ui-icon{width:18px;height:18px;stroke-width:1.6}.appearance-item small{color:var(--notes-text-tertiary,#8e8e93);font-size:12px}
html.theme-transition,html.theme-transition body,html.theme-transition .pane,html.theme-transition .popover,html.theme-transition .dialog,html.theme-transition .login-view,html.theme-transition .login-card,html.theme-transition button,html.theme-transition input{transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease,box-shadow 180ms ease}
html[data-theme="dark"]{color-scheme:dark;--text:#f2f2f7;--muted:#98989d;--bg:#1c1c1e;--sidebar:#1c1c1e;--list:#232325;--line:rgba(255,255,255,.105);--selected:#96781f;--yellow:#ffd60a;--yellow-dark:#d4ac00;--notes-sidebar-bg:#1c1c1e;--notes-list-bg:#232325;--notes-editor-bg:#1c1c1e;--notes-toolbar-surface:rgba(255,255,255,.055);--notes-toolbar-bg:var(--notes-toolbar-surface);--notes-toolbar-hover:rgba(255,255,255,.085);--notes-toolbar-active:rgba(255,255,255,.12);--notes-separator:rgba(255,255,255,.105);--notes-folder-active-bg:#303033;--notes-folder-hover-bg:#29292c;--notes-note-active-bg:#96781f;--notes-note-hover-bg:rgba(255,255,255,.035);--notes-text-primary:#f2f2f7;--notes-text-secondary:#c7c7cc;--notes-text-tertiary:#98989d;--notes-text-quaternary:#636366;--notes-accent:#ffd60a;--notes-menu-bg:rgba(44,44,46,.96);--notes-danger:#ff453a;--notes-search-bg:rgba(255,255,255,.065);--mobile-page-bg:#1c1c1e;--mobile-card-bg:#2c2c2e;--mobile-primary:#f2f2f7;--mobile-secondary:#98989d;--mobile-separator:rgba(255,255,255,.105);--mobile-accent:#ffd60a;--mobile-pressed:rgba(255,255,255,.055)}
html[data-theme="dark"] body,html[data-theme="dark"] .app{background:var(--notes-editor-bg);color:var(--notes-text-primary)}
html[data-theme="dark"] .folders-pane{background:var(--notes-sidebar-bg)}html[data-theme="dark"] .notes-pane,html[data-theme="dark"] .notes-list{background:var(--notes-list-bg)}html[data-theme="dark"] .editor-pane,html[data-theme="dark"] .editor-toolbar,html[data-theme="dark"] .editor-shell{background:var(--notes-editor-bg)}
html[data-theme="dark"] .product-name,html[data-theme="dark"] .folder-row,html[data-theme="dark"] .note-title,html[data-theme="dark"] .note-group-title,html[data-theme="dark"] .gallery-section-title,html[data-theme="dark"] .editor,html[data-theme="dark"] .editor-empty,html[data-theme="dark"] .gallery-heading strong{color:var(--notes-text-primary)}
html[data-theme="dark"] .folder-icon{color:var(--notes-text-secondary)}html[data-theme="dark"] .folder-row.active .folder-icon{color:var(--notes-accent)}html[data-theme="dark"] .folder-count,html[data-theme="dark"] .folder-row.active .folder-count{color:#8e8e93}
html[data-theme="dark"] .note-meta,html[data-theme="dark"] .note-meta>span:first-child,html[data-theme="dark"] .note-preview,html[data-theme="dark"] .gallery-heading span{color:var(--notes-text-tertiary)}html[data-theme="dark"] .note-item{opacity:1}html[data-theme="dark"] .note-item.active .note-title{color:#f7f7fa}html[data-theme="dark"] .note-item.active .note-meta,html[data-theme="dark"] .note-item.active .note-meta>span:first-child,html[data-theme="dark"] .note-item.active .note-preview{color:rgba(255,255,255,.72)}
html[data-theme="dark"] .icon-btn,html[data-theme="dark"] .ui-icon,html[data-theme="dark"] .search-box>svg{color:#e5e5ea}html[data-theme="dark"] .icon-btn:disabled{color:#636366}html[data-theme="dark"] .search-box{background:var(--notes-search-bg);border:0;box-shadow:none}html[data-theme="dark"] .search-box:focus-within{background:rgba(255,255,255,.085);box-shadow:0 0 0 3px rgba(255,255,255,.025)}html[data-theme="dark"] .search-box input{color:var(--notes-text-primary)}html[data-theme="dark"] .search-box input::placeholder{color:var(--notes-text-tertiary)}
html[data-theme="dark"] #newNoteBtn,html[data-theme="dark"] #noteMenuBtn,html[data-theme="dark"] .toolbar-center,html[data-theme="dark"] .gallery-mode #viewMenuBtn,html[data-theme="dark"] .gallery-mode #galleryNewNoteBtn{background:var(--notes-toolbar-surface);border:0;box-shadow:none}html[data-theme="dark"] #newNoteBtn:hover,html[data-theme="dark"] #noteMenuBtn:hover,html[data-theme="dark"] .toolbar-center .icon-btn:hover,html[data-theme="dark"] .gallery-mode #viewMenuBtn:hover,html[data-theme="dark"] .gallery-mode #galleryNewNoteBtn:hover{background:var(--notes-toolbar-hover)}
html[data-theme="dark"] .popover{background:var(--notes-menu-bg);border-color:rgba(255,255,255,.08);box-shadow:0 16px 40px rgba(0,0,0,.42);color:var(--notes-text-primary)}html[data-theme="dark"] .menu-label,html[data-theme="dark"] .menu-item small{color:var(--notes-text-tertiary)}html[data-theme="dark"] .menu-item:hover{background:rgba(255,255,255,.08)}html[data-theme="dark"] .menu-sep{background:rgba(255,255,255,.09)}html[data-theme="dark"] .menu-danger{color:var(--notes-danger)}
html[data-theme="dark"] .desktop-account{background:transparent;color:var(--notes-text-primary)}html[data-theme="dark"] .desktop-account:hover{background:rgba(255,255,255,.055)}html[data-theme="dark"] .account-avatar{background:#6f5a22;color:#f2f2f7}html[data-theme="dark"] .account-copy small,html[data-theme="dark"] .account-menu-head small{color:var(--notes-text-tertiary)}
html[data-theme="dark"] .gallery-preview-card{background:#2c2c2e;border-color:rgba(255,255,255,.12);box-shadow:0 1px 3px rgba(0,0,0,.22)}html[data-theme="dark"] .gallery-preview-content{color:var(--notes-text-secondary)}html[data-theme="dark"] .gallery-note-item:hover .gallery-preview-card{border-color:rgba(255,255,255,.2);box-shadow:0 3px 10px rgba(0,0,0,.3)}
html[data-theme="dark"] .dialog-backdrop{background:rgba(0,0,0,.48)}html[data-theme="dark"] .dialog{background:#2c2c2e;color:var(--notes-text-primary);border-color:rgba(255,255,255,.08);box-shadow:0 18px 50px rgba(0,0,0,.42)}html[data-theme="dark"] .dialog input,html[data-theme="dark"] .dialog select{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.1);color:var(--notes-text-primary)}html[data-theme="dark"] .dialog-actions button{background:#3a3a3c;color:var(--notes-text-primary)}html[data-theme="dark"] .dialog-actions .danger{background:#6e2825;color:#ffdad7}
html[data-theme="dark"] .startup-view,html[data-theme="dark"] .login-view{background:#1c1c1e;color:var(--notes-text-primary)}html[data-theme="dark"] .login-card{background:#2c2c2e;border-color:rgba(255,255,255,.08);box-shadow:0 12px 36px rgba(0,0,0,.28)}html[data-theme="dark"] .login-card label span{color:var(--notes-text-tertiary)}html[data-theme="dark"] .login-card input{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.1);color:var(--notes-text-primary)}html[data-theme="dark"] .login-card>button{background:#8d7324;color:#f2f2f7}html[data-theme="dark"] .login-error{color:var(--notes-danger)}
html[data-theme="dark"] .editor{caret-color:var(--notes-accent)}html[data-theme="dark"] .editor:empty::before{color:var(--notes-text-quaternary)}html[data-theme="dark"] .updated-time{color:#8e8e93}html[data-theme="dark"] .editor a{color:var(--notes-accent)}html[data-theme="dark"] .editor td{border-color:rgba(255,255,255,.13);background:transparent}html[data-theme="dark"] .editor .cell-selected{background:rgba(255,214,10,.12)}html[data-theme="dark"] .find-bar{background:#242426;border-color:var(--notes-separator)}html[data-theme="dark"] .find-bar input{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.1);color:var(--notes-text-primary)}
@media(max-width:767px){html[data-theme="dark"] .pane,html[data-theme="dark"] .notes-header,html[data-theme="dark"] .notes-list,html[data-theme="dark"] .editor-shell{background:var(--mobile-page-bg)}html[data-theme="dark"] .folder-list,html[data-theme="dark"] .mobile-note-group{background:var(--mobile-card-bg)}html[data-theme="dark"] .mobile-list-back,html[data-theme="dark"] .notes-actions #viewMenuBtn,html[data-theme="dark"] .mobile-search-box,html[data-theme="dark"] .mobile-browse-new{background:rgba(58,58,60,.88);color:#e5e5ea}html[data-theme="dark"] .editor-toolbar{background:rgba(28,28,30,.9)}html[data-theme="dark"] .editor-toolbar .mobile-editor-back,html[data-theme="dark"] .mobile-editor-more,html[data-theme="dark"] .mobile-tools-capsule,html[data-theme="dark"] .mobile-bottom-toolbar .mobile-new-note{background:rgba(58,58,60,.9);color:#e5e5ea;box-shadow:0 3px 12px rgba(0,0,0,.28)}html[data-theme="dark"] .account-sheet{background:rgba(44,44,46,.96);color:var(--mobile-primary)}html[data-theme="dark"] .editor{color:var(--mobile-primary)}}

/* Login surface: static Notes preview, system appearance and registration. */
.login-view{isolation:isolate;display:grid;place-items:center;padding:24px;overflow:hidden;background:#f5f5f7}.login-preview{position:absolute;z-index:0;inset:0;overflow:hidden;opacity:.42;filter:blur(1.5px) saturate(.75);transform:scale(.985);pointer-events:none;user-select:none;animation:login-preview-in 320ms var(--ease-out) both}.login-mask{position:absolute;z-index:1;inset:0;background:rgba(245,245,247,.52);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}.login-card{position:relative;z-index:2;width:min(390px,100%);padding:32px;border:1px solid rgba(0,0,0,.06);border-radius:24px;background:rgba(255,255,255,.88);box-shadow:0 22px 60px rgba(0,0,0,.14);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);animation:login-card-in 280ms var(--ease-out) both}.login-card h1{margin:0 0 28px;text-align:center;font-size:28px}.login-card .register-link{height:36px;margin-top:9px;background:transparent;color:#666;font-size:14px;font-weight:500}.login-card .register-link:hover{background:rgba(0,0,0,.035);color:#3f3f42}.login-preview-desktop{display:grid;grid-template-columns:205px 300px minmax(0,1fr);height:100%;color:#27272a;background:#fff}.preview-folders{padding:24px 12px;background:#f4f5f7;border-right:1px solid rgba(60,60,67,.08)}.preview-folders header{margin:0 8px 34px;font-size:20px;font-weight:650}.preview-folders small{display:block;margin:0 10px 8px;color:#8e8e93}.preview-folder{display:flex;height:38px;padding:0 12px;align-items:center;justify-content:space-between;border-radius:10px;font-size:14px}.preview-folder.active{background:#ececee}.preview-folder b{color:#a7a7a7;font-size:12px;font-weight:400}.preview-folder.trash{margin-top:8px}.preview-list{padding:72px 10px 30px;background:#fbfbfc;border-right:1px solid rgba(60,60,67,.08)}.preview-list h2{margin:20px 12px 8px;font-size:20px}.preview-list article{min-height:72px;padding:11px 14px;border-bottom:1px solid rgba(60,60,67,.06);border-radius:10px}.preview-list article.active{background:#ffe394;border-color:transparent}.preview-list article strong,.preview-list article span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-list article strong{font-size:15px}.preview-list article span{margin-top:7px;color:#777;font-size:13px}.preview-editor{padding:104px 42px;background:#fff;color:#1d1d1f}.preview-editor time{display:block;margin-bottom:48px;text-align:center;color:#999;font-size:13px}.preview-editor h1{font-size:18px}.preview-editor p{font-size:15px;line-height:1.62}.login-preview-mobile{display:none}.register-dialog{width:min(420px,100%)}.register-dialog form{display:grid;gap:11px}.register-dialog label{display:grid;gap:6px;color:#6e6e73;font-size:13px}.register-dialog input{margin:0}.register-field-message{min-height:16px;color:#8e8e93;font-size:12px}.register-field-message.error,.register-message.error{color:#d70015}.register-field-message.available{color:#557a58}.register-message{min-height:18px;color:#6e6e73;font-size:13px}.register-success{text-align:center;padding:10px 4px}.register-success-mark{width:48px;height:48px;margin:0 auto 14px;border-radius:999px;display:grid;place-items:center;background:#e8bd55;color:#40330e;font-size:25px}.register-success h3{margin-bottom:8px}.register-success p{color:#6e6e73;line-height:1.55}.login-view:not(.hidden)~.dialog-backdrop{z-index:340}.login-view.login-leaving .login-card{animation:login-card-out 220ms var(--ease-standard) both}.login-view.login-leaving .login-mask,.login-view.login-leaving .login-preview{animation:login-layer-out 220ms var(--ease-standard) both}.app.app-entering{animation:real-app-in 220ms var(--ease-out) both}@keyframes login-preview-in{from{opacity:0;transform:scale(.975)}to{opacity:.42;transform:scale(.985)}}@keyframes login-card-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes login-card-out{to{opacity:0;transform:scale(.985)}}@keyframes login-layer-out{to{opacity:0}}@keyframes real-app-in{from{opacity:0}to{opacity:1}}
html[data-theme="dark"] .login-view{background:#121214;color:#f2f2f7}html[data-theme="dark"] .login-mask{background:rgba(18,18,20,.48)}html[data-theme="dark"] .login-card{background:rgba(44,44,46,.92);border-color:rgba(255,255,255,.08);box-shadow:0 22px 60px rgba(0,0,0,.4)}html[data-theme="dark"] .login-card .register-link{color:rgba(255,255,255,.7)}html[data-theme="dark"] .login-card .register-link:hover{background:rgba(255,255,255,.055);color:#f2f2f7}html[data-theme="dark"] .login-preview-desktop{color:#f2f2f7;background:#1c1c1e}html[data-theme="dark"] .preview-folders{background:#1c1c1e}html[data-theme="dark"] .preview-list{background:#232325}html[data-theme="dark"] .preview-editor{background:#1c1c1e;color:#f2f2f7}html[data-theme="dark"] .preview-folder.active{background:#303033}html[data-theme="dark"] .preview-list article.active{background:#96781f}html[data-theme="dark"] .preview-list article span,html[data-theme="dark"] .register-dialog label,html[data-theme="dark"] .register-message,html[data-theme="dark"] .register-success p{color:#98989d}
@media(max-width:767px){.login-view{display:grid;padding:20px}.login-preview-desktop{display:none}.login-preview-mobile{display:block;height:100%;padding:calc(62px + env(safe-area-inset-top)) 16px calc(90px + env(safe-area-inset-bottom));background:#f5f5f7;color:#1d1d1f}.login-preview-mobile header{display:flex;align-items:center;justify-content:space-between;margin:0 4px 40px}.login-preview-mobile header strong{font-size:34px}.login-preview-mobile header button{border:0;background:transparent;font-size:22px}.login-preview-mobile h2{margin:26px 4px 9px;font-size:21px}.login-preview-mobile article{min-height:72px;padding:12px 15px;background:#fff;border-bottom:1px solid rgba(60,60,67,.1)}.login-preview-mobile article:first-of-type{border-radius:16px 16px 0 0}.login-preview-mobile article strong,.login-preview-mobile article span{display:block}.login-preview-mobile article span{margin-top:5px;color:#8e8e93;font-size:14px}.login-preview-mobile footer{position:absolute;right:16px;bottom:calc(12px + env(safe-area-inset-bottom));left:16px;display:flex;gap:10px}.login-preview-mobile footer span,.login-preview-mobile footer b{height:50px;display:flex;align-items:center;border-radius:25px;background:#fff}.login-preview-mobile footer span{flex:1;padding:0 18px;color:#8e8e93}.login-preview-mobile footer b{width:50px;justify-content:center}.login-card{width:min(390px,100%);padding:28px;border:1px solid rgba(0,0,0,.06);border-radius:24px;background:rgba(255,255,255,.88);box-shadow:0 22px 60px rgba(0,0,0,.14);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}.login-card h1{text-align:center;font-size:28px;margin-bottom:28px}html[data-theme="dark"] .login-preview-mobile{background:#1c1c1e;color:#f2f2f7}html[data-theme="dark"] .login-preview-mobile article,html[data-theme="dark"] .login-preview-mobile footer span,html[data-theme="dark"] .login-preview-mobile footer b{background:#2c2c2e}.register-dialog{align-self:center;border-radius:22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}html.theme-transition,html.theme-transition body,html.theme-transition .pane,html.theme-transition .popover,html.theme-transition .dialog,html.theme-transition .login-view,html.theme-transition .login-card,html.theme-transition button,html.theme-transition input{transition:none}.pane,.icon-btn,.folder-row,.note-item,.menu-item,.gallery-preview-card,.search-box,.toast{transition-duration:0ms!important}.popover:not(.hidden),.dialog-backdrop:not(.hidden),.dialog-backdrop:not(.hidden) .dialog{animation-name:reduced-fade!important;animation-duration:80ms!important;animation-timing-function:linear!important}@keyframes reduced-fade{from{opacity:0}to{opacity:1}}}
@media(prefers-reduced-motion:reduce){.login-preview,.login-card,.login-view.login-leaving .login-card,.login-view.login-leaving .login-mask,.login-view.login-leaving .login-preview,.app.app-entering{animation-name:reduced-fade!important;animation-duration:80ms!important;animation-timing-function:linear!important}}
