*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--orange: #FF4500;--orange-dark: #D93B00;--orange-bg: #FFF0E8;--orange-muted: rgba(255,69,0,.12);--bg: #F7F5F2;--surface: #FFFFFF;--surface-2: #F0EDE8;--border: #E4E0DA;--text: #242424;--text-muted: #464646;--radius: 16px;--radius-sm: 10px;--shadow: 0 4px 20px rgba(0,0,0,.08);--shadow-lg: 0 12px 40px rgba(0,0,0,.14)}:root[data-theme=dark]{--orange-bg: rgba(255,69,0,.14);--orange-muted: rgba(255,69,0,.1);--bg: #111111;--surface: #1C1C1C;--surface-2: #282828;--border: #333333;--text: #EEEEEE;--text-muted: #dbdbdb;--shadow: 0 4px 20px rgba(0,0,0,.4);--shadow-lg: 0 12px 40px rgba(0,0,0,.6)}html,body,#root{height:100%}body{font-family:Google Sans,system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;line-height:1.5}a{cursor:pointer}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.splash{height:100vh;display:flex;align-items:center;justify-content:center}.splash-logo{width:72px;height:72px;border-radius:22px;overflow:hidden;animation:pulse 1.4s ease-in-out infinite}.splash-logo img{width:100%;height:100%;object-fit:cover;display:block}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.75;transform:scale(.94)}}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--bg)}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:24px;padding:22px 40px 40px;max-width:380px;width:100%;text-align:center;box-shadow:var(--shadow)}.login-card-top{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:18px}.login-card-body{display:flex;flex-direction:column;align-items:center}.login-logo{width:74px;height:74px;border-radius:60px;overflow:hidden;margin:0 auto 24px;box-shadow:0 12px 30px #ff45002e}.login-logo img{width:100%;height:100%;object-fit:cover;display:block}.login-card h1{font-size:1.9rem;font-weight:800;margin-bottom:10px;letter-spacing:-.03em}.login-card p{color:var(--text-muted);margin-bottom:34px;font-size:.95rem;max-width:260px}.google-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:14px 24px;background:var(--surface-2);border:1px solid var(--border);border-radius:14px;color:var(--text);font-size:.95rem;font-weight:700;cursor:pointer;font-family:inherit;transition:background .15s,transform .15s,border-color .15s}.google-btn:hover{background:var(--border);border-color:#ff450038;transform:translateY(-1px)}.login-theme-toggle{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;border:1px solid var(--border);background:var(--surface-2);color:var(--text-muted);font-size:.8rem;font-weight:700;cursor:pointer;font-family:inherit;transition:color .15s,border-color .15s,background .15s}.login-screen .language-select{border-radius:999px;background:var(--surface-2);transition:color .15s,border-color .15s,background .15s;background-image:linear-gradient(45deg,transparent 50%,var(--text-muted) 50%),linear-gradient(135deg,var(--text-muted) 50%,transparent 50%);background-position:calc(100% - 16px) calc(50% - 1px),calc(100% - 11px) calc(50% - 1px);background-size:5px 5px,5px 5px;background-repeat:no-repeat;color:var(--text-muted)}.login-theme-toggle:hover{color:var(--text);border-color:#ff45003d;background:var(--surface)}.login-theme-toggle svg{flex-shrink:0}.language-select-wrap{position:relative;display:inline-flex;align-items:center}.language-select-icon{display:none}.language-select{-moz-appearance:none;appearance:none;-webkit-appearance:none;border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:12px;font-size:.8rem;font-weight:700;font-family:inherit;padding:9px 30px 9px 12px;cursor:pointer;transition:color .15s,border-color .15s,background .15s;background-image:linear-gradient(45deg,transparent 50%,var(--text-muted) 50%),linear-gradient(135deg,var(--text-muted) 50%,transparent 50%);background-position:calc(100% - 16px) calc(50% - 1px),calc(100% - 11px) calc(50% - 1px);background-size:5px 5px,5px 5px;background-repeat:no-repeat}.language-select:hover,.language-select:focus{outline:none;border-color:#ff45003d;background-color:var(--surface)}@media (max-width: 520px){.login-card{padding:20px 22px 28px}.login-card-top{margin-bottom:16px;gap:8px}.login-card h1{font-size:1.7rem}}.app-layout{display:flex;height:100vh;overflow:hidden}.sidebar{width:220px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;transition:transform .25s;z-index:50}.sidebar-logo{display:flex;align-items:center;gap:10px;padding:20px;font-size:1.05rem;font-weight:700;border-bottom:1px solid var(--border)}.sidebar-logo-icon{width:30px;height:30px;border-radius:9px;overflow:hidden;flex-shrink:0}.sidebar-logo-icon img{width:100%;height:100%;object-fit:cover;display:block}.sidebar-nav{flex:1;padding:12px 8px;display:flex;flex-direction:column;gap:2px}.nav-btn{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:var(--radius-sm);font-size:.88rem;font-weight:500;color:var(--text-muted);background:none;border:none;cursor:pointer;width:100%;text-align:left;font-family:inherit;transition:color .15s,background .15s}.nav-btn:hover{color:var(--text);background:var(--surface-2)}.nav-btn.active{color:var(--orange);background:var(--orange-muted);font-weight:600}.nav-count{margin-left:auto;font-size:.75rem;color:var(--text-muted);background:var(--surface-2);padding:2px 7px;border-radius:99px}.sidebar-footer{padding:16px;border-top:1px solid var(--border);display:flex;align-items:flex-start;gap:10px}.sidebar-upsell{padding:0 16px 12px}.sidebar-transfer{margin:0 16px 12px;padding:12px;border:1px solid var(--border);border-radius:14px;background:color-mix(in srgb,var(--surface) 82%,var(--surface-2));box-shadow:0 8px 22px #0000000a}.sidebar-transfer-section{min-width:0}.sidebar-transfer-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.7rem;font-weight:850;color:var(--text);line-height:1.2;margin-bottom:10px}.sidebar-transfer-hint{font-size:.66rem;color:var(--text-muted);margin-top:4px;margin-bottom:9px;line-height:1.35}.sidebar-transfer-count,.sidebar-transfer-formats,.sidebar-premium-lock{flex-shrink:0;border-radius:999px;background:var(--surface-2);color:var(--text-muted);border:1px solid var(--border);padding:2px 7px;font-size:.6rem;font-weight:800}.sidebar-premium-lock{display:inline-flex;align-items:center;gap:4px;color:var(--orange);background:var(--orange-muted);border-color:#ff45002e}.sidebar-transfer-count{color:var(--orange);background:var(--orange-muted);border-color:#ff450029}.sidebar-transfer-divider{height:1px;background:var(--border);margin:12px 0;opacity:.7}.sidebar-export-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.sidebar-export-actions button{min-width:0;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:12px;padding:4px;min-height:32px;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:3px;font-size:.56rem;font-weight:850;letter-spacing:0;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease,transform .16s ease}.sidebar-export-actions button svg{width:17px;height:17px;filter:drop-shadow(0 2px 5px rgba(255,69,0,.08))}.sidebar-export-actions button span{line-height:1}.sidebar-export-actions button:hover{border-color:#ff450059;background:var(--orange-muted);color:var(--orange);transform:translateY(-1px)}.sidebar-export-actions button:disabled{opacity:1;cursor:not-allowed;color:color-mix(in srgb,var(--text-muted) 60%,transparent);background:color-mix(in srgb,var(--surface-2) 72%,transparent)}.sidebar-export-actions button:disabled:hover{border-color:var(--border);color:color-mix(in srgb,var(--text-muted) 60%,transparent);background:color-mix(in srgb,var(--surface-2) 72%,transparent);transform:none}.sidebar-transfer.locked .sidebar-export-actions button{color:color-mix(in srgb,var(--text-muted) 62%,transparent);background:color-mix(in srgb,var(--surface-2) 54%,var(--surface));border-color:var(--border)}.sidebar-transfer.locked .sidebar-export-actions button:hover{color:var(--text-muted);background:color-mix(in srgb,var(--surface-2) 72%,var(--surface));border-color:color-mix(in srgb,var(--border) 70%,var(--text-muted));transform:translateY(-1px)}.sidebar-import-btn{width:100%;border:1px solid var(--border);background:linear-gradient(180deg,var(--surface),var(--surface-2));color:var(--text);border-radius:12px;padding:10px 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:.74rem;font-weight:800;cursor:pointer;box-shadow:inset 0 -1px #0000000a;transition:border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}.sidebar-import-btn:hover{border-color:#ff450059;color:var(--orange);transform:translateY(-1px);box-shadow:0 8px 18px #ff45001a}.sidebar-transfer.locked .sidebar-import-btn{color:color-mix(in srgb,var(--text-muted) 72%,transparent);border-color:var(--border);background:linear-gradient(180deg,var(--surface),var(--surface-2));box-shadow:inset 0 -1px #00000008}.sidebar-transfer.locked .sidebar-import-btn:hover{color:var(--text-muted);border-color:color-mix(in srgb,var(--border) 70%,var(--text-muted));box-shadow:none}.user-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0}.user-info{flex:1;min-width:0}.user-name{font-size:.82rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-email{font-size:.7rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.premium-badge,.premium-pill{display:inline-flex;align-items:center;gap:6px;width:fit-content;padding:4px 10px;border-radius:12px;background:linear-gradient(135deg,#ffba4938,#ff450024);border:1px solid rgba(255,166,0,.2);color:#d88900;font-size:.7rem;font-weight:700;margin-top:6px}.premium-upsell{display:inline-flex;align-items:center;gap:6px;width:100%;justify-content:center;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,166,0,.24);background:linear-gradient(135deg,#ffba491f,#ff45000f);color:var(--text);font-size:.76rem;font-weight:700;text-decoration:none;transition:all .15s}.premium-upsell:hover{transform:translateY(-1px);border-color:#ffa60047;background:#ffa6001f;color:var(--orange)}.premium-badge svg,.premium-pill svg,.premium-upsell svg{flex-shrink:0}.premium-pill{margin-top:0;font-size:.78rem;padding:8px 12px}:root[data-theme=dark] .premium-badge,:root[data-theme=dark] .premium-pill{color:#ffd36a;background:linear-gradient(135deg,#ffc15029,#ff85331f);border-color:#ffc45529}:root[data-theme=dark] .premium-upsell{background:#ffffff0a;border-color:#ffffff1a;color:var(--text)}:root[data-theme=dark] .premium-upsell:hover{background:#ffc1501f;border-color:#ffc45533;color:#ffd36a}.signout-btn{background:none;border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-muted);padding:6px 8px;cursor:pointer;line-height:0;transition:all .15s}.signout-btn:hover{color:#e05252;border-color:#e05252}.sidebar-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:40}@media (max-width: 700px){.sidebar-overlay{display:block}.sidebar{position:fixed;top:0;left:0;bottom:0;transform:translate(-100%)}.sidebar.open{transform:translate(0)}}.main-content{flex:1;overflow-y:auto;display:flex;flex-direction:column;position:relative}.main-import-drop-overlay{position:fixed;top:0;right:0;bottom:0;left:220px;z-index:80;pointer-events:none;display:flex;align-items:center;justify-content:center;padding:24px;background:color-mix(in srgb,var(--bg) 82%,transparent);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.main-import-drop-target{width:min(100%,420px);min-height:180px;border:2px dashed rgba(255,69,0,.48);border-radius:18px;background:color-mix(in srgb,var(--surface) 90%,transparent);box-shadow:var(--shadow-lg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:var(--text);padding:28px}.main-import-drop-icon{width:46px;height:46px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--orange);background:var(--orange-muted)}.main-import-drop-icon svg{width:22px;height:22px}.main-import-drop-target strong{font-size:1.05rem;font-weight:850}.main-import-drop-target span:last-child{color:var(--text-muted);font-size:.84rem}@media (max-width: 700px){.main-import-drop-overlay{top:0;right:0;bottom:0;left:0}}.topbar{position:sticky;top:0;z-index:10;background:var(--surface);border-bottom:1px solid var(--border);padding:16px 20px;display:flex;align-items:center;gap:12px}.hamburger{display:none;background:none;border:none;cursor:pointer;color:var(--text);padding:4px;line-height:0}@media (max-width: 700px){.hamburger{display:block}}.search-wrap{flex:1;position:relative;min-width:0}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--text-muted);pointer-events:none;line-height:0}.search-input{width:100%;padding:9px 12px 9px 34px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-size:.9rem;font-family:inherit;outline:none;transition:border-color .15s}.search-input:focus{border-color:var(--orange)}.new-note-btn{padding:9px 18px;background:var(--orange);color:#fff;border:none;border-radius:var(--radius-sm);font-size:.88rem;font-weight:600;cursor:pointer;font-family:inherit;white-space:nowrap;transition:opacity .15s}.new-note-btn:hover{opacity:.85}.topbar-actions{display:flex;align-items:center;gap:8px}.sort-toggle,.theme-toggle{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;border:1px solid var(--border);background:var(--surface-2);color:var(--text-muted);cursor:pointer;transition:all .15s}@media (max-width: 700px){.topbar{flex-wrap:wrap;align-items:center;padding:14px 16px;gap:10px}.search-wrap{order:3;flex:1 0 100%}.topbar-actions{margin-left:auto;gap:6px;flex-wrap:nowrap;justify-content:flex-end;min-width:0}.new-note-btn{padding:9px 14px}.sort-toggle,.theme-toggle{width:36px;height:36px;border-radius:10px}.topbar .premium-pill{display:none}.topbar .language-select-wrap{width:36px;height:36px;color:var(--text-muted)}.topbar .language-select-icon{position:absolute;top:0;right:0;bottom:0;left:0;display:inline-flex;align-items:center;justify-content:center;pointer-events:none}.topbar .language-select{width:36px;height:36px;border-radius:10px;padding:0;color:transparent;background-image:none}}.sort-toggle:hover,.theme-toggle:hover{color:var(--text);border-color:var(--orange)}.sort-toggle.active{color:var(--orange);border-color:#ff45003d;background:var(--orange-muted)}.sort-toggle svg,.theme-toggle svg{width:16px;height:16px}.folder-heading{display:flex;align-items:baseline;gap:10px;padding:20px 20px 8px}.folder-heading h1{font-size:1.3rem;font-weight:800}.note-count{font-size:.8rem;color:var(--text-muted)}.selection-bar{margin:8px 20px 2px;padding:10px 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface);display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:var(--shadow)}.selection-summary{min-width:0;display:flex;flex-direction:column;gap:2px;font-size:.84rem}.selection-summary span{color:var(--text-muted);font-size:.78rem}.selection-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.selection-actions button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:7px 12px;border-radius:10px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}.selection-actions button:hover:not(:disabled){border-color:#ff450042;color:var(--orange)}.selection-actions button:disabled{opacity:.45;cursor:default}.selection-actions button.danger{color:#e05252}.selection-actions svg{width:15px;height:15px;flex-shrink:0}@media (max-width: 700px){.selection-bar{align-items:stretch;flex-direction:column;margin:8px 16px 2px}.selection-actions{justify-content:stretch}.selection-actions button{flex:1;justify-content:center}}.notes-sections{padding:12px 20px 32px}.notes-section+.notes-section{margin-top:18px}.notes-section-title{margin:0 0 10px;color:var(--text-muted);font-size:.78rem;font-weight:800;letter-spacing:0;text-transform:uppercase}.notes-masonry{position:relative;height:var(--masonry-height, auto);min-height:1px}.notes-masonry-item{min-width:0}.notes-masonry-item.menu-open{z-index:1000}.notes-masonry-item .note-card{width:100%}.note-card{break-inside:avoid;border-radius:var(--radius);padding:14px 22px 10px 14px;cursor:pointer;position:relative;border:1px solid var(--border)}.note-card:hover{transform:translateY(-2px)}.note-card.selectable{padding-left:42px}.note-card.selected{border-color:var(--orange);box-shadow:0 0 0 2px #ff450029}.note-select-btn{position:absolute;top:12px;left:12px;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:var(--text-muted);cursor:pointer;padding:0;z-index:7}.note-card.selected .note-select-btn{color:var(--orange)}.note-select-btn svg{width:19px;height:19px}.note-top-icons{position:absolute;top:12px;right:34px;display:flex;align-items:center;gap:4px;z-index:6}.note-pin{color:var(--text-muted);line-height:0;display:inline-flex}.note-pin svg{width:13px;height:13px}.note-card-title{font-weight:700;font-size:.9rem;margin-bottom:6px;padding-right:24px;line-height:1.35}.note-card-content{font-size:.88rem;color:var(--text-muted);line-height:1.38;word-break:break-word;white-space:pre-line}.note-preview-spacer{height:6px}.note-locked-row{display:flex;align-items:center;gap:6px;font-size:.82rem;color:var(--text-muted);padding:4px 0}.note-locked-label{font-style:italic}.note-checklist-preview{display:flex;flex-direction:column;gap:3px}.note-check-row{display:flex;align-items:flex-start;gap:6px;font-size:.88rem;color:var(--text-muted)}.note-checked-text{text-decoration:line-through;opacity:.55}.note-more{font-size:.75rem;color:var(--text-muted);margin-top:2px}.note-menu-btn{position:absolute;top:8px;right:8px;background:none;border:none;color:var(--text-muted);cursor:pointer;padding:4px 6px;border-radius:6px;line-height:0;display:flex;align-items:center;opacity:1;transition:opacity .15s;z-index:6}.note-menu-btn svg{width:16px;height:16px}.note-card:hover .note-menu-btn{opacity:1}.note-menu{position:absolute;top:34px;right:8px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);min-width:160px;z-index:200;overflow:hidden}.note-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:9px 14px;background:none;border:none;text-align:left;font-size:.85rem;color:var(--text);cursor:pointer;font-family:inherit;transition:background .1s}.note-menu button svg{width:14px;height:14px;flex-shrink:0}.note-menu button:hover{background:var(--surface-2)}.note-menu button.danger{color:#e05252}.note-menu-info{display:flex;gap:8px;align-items:flex-start;padding:10px 14px 12px;border-top:1px solid var(--border);color:var(--text-muted);font-size:.76rem;line-height:1.45}.note-menu-info-icon{display:inline-flex;width:14px;height:14px;flex-shrink:0;margin-top:1px}.note-menu-info-icon svg{width:14px;height:14px}.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 24px;gap:12px;color:var(--text-muted)}.empty-icon{width:48px;height:48px;opacity:.4}.empty-icon svg{width:100%;height:100%}.empty-state p{font-size:.95rem}.empty-cta{margin-top:4px;padding:10px 20px;background:var(--orange);color:#fff;border:none;border-radius:var(--radius-sm);font-size:.88rem;font-weight:600;cursor:pointer;font-family:inherit}.sort-sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:120;display:flex;align-items:flex-end;justify-content:center;padding:24px;background:#0000005c}.sort-sheet{width:min(100%,520px);border:1px solid var(--border);border-radius:28px;background:var(--surface);box-shadow:var(--shadow-lg);overflow:hidden}.sort-sheet-handle{width:52px;height:5px;margin:12px auto 0;border-radius:999px;background:#80808059}.sort-sheet-header{padding:18px 24px 8px}.sort-sheet-header h3{font-size:1.05rem;font-weight:800;color:var(--text)}.sort-sheet-list{padding:8px 10px 16px}.sort-sheet-option{width:100%;min-height:64px;padding:0 14px;border:none;border-radius:18px;background:transparent;color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:1rem;text-align:left;cursor:pointer;font-family:inherit;transition:background .15s,color .15s}.sort-sheet-option:hover{background:var(--surface-2)}.sort-sheet-option svg{flex-shrink:0;color:var(--text)}@media (max-width: 700px){.sort-sheet-backdrop{padding:0}.sort-sheet{width:100%;max-height:calc(100dvh - 12px);border-radius:28px 28px 0 0;border-bottom:none;overflow-y:auto;overscroll-behavior:contain}.sort-sheet-handle{height:4px;margin-top:10px}.sort-sheet-header{padding:14px 18px 4px}.sort-sheet-list{padding:6px 12px 12px}.sort-sheet-option{min-height:52px;border-radius:14px;font-size:.96rem}}.spinner{width:28px;height:28px;border:3px solid var(--border);border-top-color:var(--orange);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.editor-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:100;display:flex;align-items:flex-start;justify-content:center;padding:40px 16px;overflow:hidden}.editor-modal{width:100%;max-width:680px;max-height:calc(100dvh - 80px);border-radius:24px;border:1px solid var(--border);display:flex;flex-direction:column;min-height:300px;overflow:hidden;position:relative}@media (max-width: 600px){.editor-overlay{padding:0;align-items:flex-end}.editor-modal{border-radius:24px 24px 0 0;max-width:100%;min-height:70dvh;max-height:100dvh}}.editor-header{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:14px 16px 0}.editor-back{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;color:var(--text-muted);width:34px;height:34px;border-radius:8px}.editor-back:hover{background:#8080801a}.editor-back svg{width:18px;height:18px}.editor-actions{display:flex;align-items:center;gap:8px}.editor-type-btn{display:inline-flex;align-items:center;justify-content:center;background:none;border:1px solid var(--border);border-radius:8px;width:34px;height:34px;font-size:.9rem;cursor:pointer;color:var(--text-muted);transition:all .15s}.editor-type-btn svg{width:16px;height:16px}.editor-type-btn.active{background:var(--orange-muted);border-color:var(--orange);color:var(--orange)}.editor-type-btn:disabled{opacity:.45;cursor:default}.editor-mobile-lock-hint{display:inline-flex;align-items:center;gap:6px;padding:0 10px;height:34px;border:1px dashed var(--border);border-radius:8px;color:var(--text-muted);font-size:.76rem;font-weight:600;white-space:nowrap}.editor-lock-indicator{align-items:center;color:var(--text-muted);border:1px solid var(--border);border-radius:8px;justify-content:center;width:34px;height:34px}.editor-lock-indicator svg{width:16px;height:16px}@media (max-width: 720px){.editor-mobile-lock-hint span:last-child{display:none}.editor-mobile-lock-hint{width:34px;padding:0;justify-content:center}}.editor-save-btn{padding:7px 16px;background:var(--orange);color:#fff;border:none;border-radius:8px;font-size:.88rem;font-weight:600;cursor:pointer;font-family:inherit}.editor-save-btn:disabled{opacity:.6;cursor:default}.editor-title{flex-shrink:0;width:100%;padding:14px 16px 4px;background:none;border:none;font-size:1.25rem;font-weight:700;color:var(--text);font-family:inherit;outline:none}.editor-title::placeholder{color:var(--text-muted)}.editor-toolbar{flex-shrink:0;display:flex;align-items:center;gap:8px;padding:8px 16px;border-bottom:1px solid var(--border)}.editor-toolbar button{display:inline-flex;align-items:center;justify-content:center;background:#786e5a14;border:1px solid transparent;border-radius:8px;width:34px;height:34px;cursor:pointer;color:var(--text);font-family:inherit;transition:transform .15s,border-color .15s,background .15s}.editor-toolbar button:hover{background:#786e5a1f;border-color:#786e5a1f;transform:translateY(-1px)}.editor-format-btn{font-size:.92rem;font-weight:800;line-height:1}.editor-format-btn-bold{font-weight:900}.editor-format-btn-italic{font-style:italic}.editor-format-btn-underline{text-decoration:underline;text-decoration-thickness:1.8px;text-underline-offset:3px}.editor-toolbar-divider{width:1px;height:24px;background:var(--border);margin:0 2px}.editor-color-btn{background:transparent!important;border-color:transparent!important}.editor-color-btn span{display:block;border-radius:80px;width:24px;height:24px}.editor-color-btn-red span{background:#ef5350}.editor-color-btn-blue span{background:#42a5f5}.editor-content{flex:1 1 auto;min-height:22dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:16px 16px 20px;font-size:.95rem;line-height:1.7;color:var(--text);outline:none;word-break:break-word}.editor-content a,.editor-content .editor-inline-link{color:var(--orange);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;font-weight:500;cursor:pointer}.editor-content p,.editor-content div{margin:0 0 1.15em}.editor-content p:last-child,.editor-content div:last-child{margin-bottom:0}.editor-content p:empty,.editor-content div:empty{min-height:1.15em}.editor-content ul,.editor-content ol{margin:0 0 1em;padding-left:1.4em}.editor-content li+li{margin-top:.28em}.editor-content:empty:before{content:attr(data-placeholder);color:var(--text-muted)}.editor-checklist-wrap{padding:20px 16px 8px;border-top:1px solid var(--border);flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}.editor-section-label{margin-bottom:10px;font-size:.76rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}.editor-checklist{padding:8px 10px 8px 2px;display:flex;flex-direction:column;gap:6px}.editor-completed-heading{margin:12px 0 8px 4px;color:var(--text-muted);font-size:.78rem;font-weight:700;border-top:1px solid var(--border);padding-top:12px}.editor-check-row{display:flex;align-items:flex-start;gap:4px;border-radius:8px;transition:background .12s,box-shadow .12s,opacity .12s}.editor-check-row.checked .check-text-rich{color:var(--text-muted);text-decoration:line-through;text-decoration-thickness:1px}.editor-check-row.dragging{opacity:.55}.editor-check-row.drag-over{background:#ff450014;box-shadow:inset 0 0 0 1px #ff450038}.editor-check-row input[type=checkbox]{width:14px;height:14px;flex-shrink:0;cursor:pointer;margin-top:5px}.check-drag-handle{width:22px;height:22px;margin-top:1px;padding:0;border:none;background:transparent;color:var(--text-muted);cursor:grab;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.check-drag-handle:active{cursor:grabbing}.check-drag-handle svg{width:16px;height:16px}.check-text-input{flex:1;min-width:0;background:none;border:none;border-bottom:1px solid var(--border);padding:0 0 5px;font-size:.9rem;color:var(--text);font-family:inherit;outline:none}.check-text-rich{min-height:28px;white-space:pre-wrap;word-break:break-word}.check-text-rich:empty:before{content:attr(data-placeholder);color:var(--text-muted)}.check-text-rich a,.check-text-rich .editor-inline-link,.check-text-rich .editor-inline-link:link,.check-text-rich .editor-inline-link:visited,.check-text-rich .editor-inline-link:hover,.check-text-rich .editor-inline-link:active{color:var(--orange)!important;-webkit-text-fill-color:var(--orange)!important;text-decoration:underline!important;text-decoration-thickness:1px;text-underline-offset:5px;font-weight:500;cursor:pointer}.check-remove{width:28px;height:28px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:1.1rem;padding:0;border-radius:8px}.check-remove:hover{background:#8080801a;color:#e05252}.add-item-btn{align-self:flex-start;margin-top:4px;background:none;border:none;color:var(--orange);font-size:.85rem;font-weight:600;cursor:pointer;padding:4px 0;font-family:inherit}@media (max-width: 600px){.editor-header{padding:12px 12px 0}.editor-title{padding:12px 14px 4px;font-size:1.1rem}.editor-toolbar{gap:6px;overflow-x:auto;padding:8px 14px;scrollbar-width:none}.editor-toolbar::-webkit-scrollbar{display:none}.editor-content{flex:1 1 auto;min-height:44px;max-height:none;padding:12px 14px 14px;font-size:.95rem;line-height:1.55;scrollbar-gutter:auto}.editor-modal-has-checklist .editor-content{flex:0 0 auto;min-height:22dvh;max-height:32dvh}.editor-checklist-wrap{flex:1 1 auto;min-height:0;overflow-y:auto;padding:14px 12px max(12px,env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}.editor-section-label{margin:0 2px 8px;font-size:.72rem}.editor-checklist{gap:4px;padding:0}.editor-check-row{align-items:flex-start;gap:8px;min-height:44px;padding:6px 2px}.check-drag-handle{display:none}.editor-check-row input[type=checkbox]{width:18px;height:18px;margin-top:4px}.check-text-input{padding:3px 0 8px;font-size:1rem;line-height:1.35}.check-text-rich{min-height:32px}.check-remove{width:36px;height:36px;margin-top:-2px}.editor-completed-heading{margin:10px 0 4px;padding-top:8px;border-top:1px solid var(--border);font-size:.76rem}.editor-check-row.checked{opacity:.78}.add-item-btn{width:100%;min-height:40px;margin-top:6px;padding:8px 2px;text-align:left;font-size:.92rem}}.pin-form{padding:16px;display:flex;flex-direction:column;gap:10px}.pin-label{font-size:.88rem;color:var(--text-muted)}.pin-input{padding:10px 14px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-size:.95rem;font-family:inherit;outline:none;letter-spacing:.15em}.pin-input:focus{border-color:var(--orange)}.pin-error{font-size:.8rem;color:#e05252}.pin-help{font-size:.8rem;color:var(--text-muted)}.pin-btn{align-self:flex-start;padding:9px 20px;background:var(--orange);color:#fff;border:none;border-radius:var(--radius-sm);font-size:.88rem;font-weight:600;cursor:pointer;font-family:inherit}.pin-btn:disabled{opacity:.6;cursor:default}.pin-prompt-modal{max-width:640px;min-height:0}.pin-prompt-form{padding:12px 16px 20px;gap:12px}.pin-prompt-title{font-size:1.6rem;font-weight:800;color:var(--text)}.pin-prompt-actions{display:flex;align-items:center;gap:10px}.pin-prompt-cancel{padding:9px 18px;background:transparent;color:var(--text-muted);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.88rem;font-weight:600;cursor:pointer;font-family:inherit}.pin-prompt-cancel:hover{background:#80808014}.pin-prompt-cancel:disabled{opacity:.6;cursor:default}@media (max-width: 600px){.pin-prompt-actions{width:100%}.pin-prompt-actions .pin-prompt-cancel,.pin-prompt-actions .pin-btn{flex:1;justify-content:center;text-align:center}}.editor-colors{flex-shrink:0;display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--border)}.color-dot{width:24px;height:24px;border-radius:50%;border:2px solid transparent;cursor:pointer;transition:transform .15s,border-color .15s}.color-dot:hover{transform:scale(1.15)}.color-dot.selected{border-color:var(--orange);transform:scale(1.15)}.editor-history-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;z-index:15;display:flex;align-items:flex-end;justify-content:center;background:#0000003d}.editor-history-sheet{width:100%;max-height:100%;display:flex;flex-direction:column;overflow:hidden;border-top:1px solid var(--border);border-radius:24px 24px 0 0;box-shadow:0 -18px 40px #00000029}.editor-history-handle{width:36px;height:4px;align-self:center;margin:12px 0 4px;border-radius:999px;background:#7878784d}.editor-history-header{display:flex;align-items:center;gap:14px;padding:5px 16px 16px 20px;border-bottom:1px solid var(--border)}.editor-history-copy{flex:1;min-width:0}.editor-history-close{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:none;background:transparent;color:var(--text-muted);cursor:pointer;transition:background .15s,color .15s}.editor-history-close:hover{background:#00000012;color:var(--text)}.editor-history-close svg{width:18px;height:18px}.editor-history-badge{width:40px;height:40px;flex-shrink:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#ff45001f;color:var(--orange)}.editor-history-badge svg{width:18px;height:18px}.editor-history-copy h3{font-size:1.08rem;font-weight:800;color:var(--text)}.editor-history-copy p{margin-top:3px;font-size:.82rem;color:var(--text-muted)}.editor-history-list{overflow-y:auto;padding:10px 20px 24px}.editor-history-item{display:flex;gap:14px}.editor-history-timeline{width:16px;flex-shrink:0;display:flex;flex-direction:column;align-items:center}.editor-history-dot{width:9px;height:9px;margin-top:14px;border-radius:50%;background:#6b6b6b66}.editor-history-dot.latest{width:12px;height:12px;background:var(--orange)}.editor-history-line{width:2px;min-height:88px;flex:1;background:#6b6b6b29}.editor-history-card{flex:1;min-width:0;padding:10px 0 18px}.editor-history-time{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:.78rem;font-weight:700}.editor-history-latest{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#ff45001f;color:var(--orange);font-size:.72rem}.editor-history-title{margin-top:7px;font-size:.92rem;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-history-preview{margin-top:4px;color:var(--text-muted);font-size:.82rem;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.editor-history-restore{margin-top:10px;height:30px;padding:0 10px;border-radius:8px;border:1px solid var(--border);background:#ffffff73;color:var(--text);cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-size:.76rem;font-weight:700;font-family:inherit}.editor-history-restore svg{width:13px;height:13px}.editor-history-empty{flex:1;min-height:240px;padding:32px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.editor-history-empty-icon{width:72px;height:72px;margin-bottom:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#8080801a;color:#6b6b6b8c}.editor-history-empty-icon svg{width:32px;height:32px}.editor-history-empty h4{font-size:1rem;font-weight:700;color:var(--text)}.editor-history-empty p{max-width:320px;margin-top:8px;color:var(--text-muted);font-size:.84rem;line-height:1.55}.editor-history-confirm-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000002e;display:flex;align-items:center;justify-content:center;padding:20px}.editor-history-confirm{width:min(100%,360px);padding:20px;border-radius:20px;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-lg)}.editor-history-confirm h4{font-size:1rem;font-weight:800;color:var(--text)}.editor-history-confirm p{margin-top:8px;color:var(--text-muted);font-size:.88rem;line-height:1.55}.editor-history-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}@media (max-width: 600px){.editor-history-sheet{max-height:72vh}.editor-history-confirm-actions{flex-direction:column-reverse}.editor-history-confirm-actions .pin-prompt-cancel,.editor-history-confirm-actions .pin-btn{width:100%}}.note-reminder-badge{width:15px;height:15px;color:var(--orange);opacity:.85;display:inline-flex}.reminder-sheet{display:flex;flex-direction:column;max-height:min(720px,calc(100dvh - 48px));overflow-y:auto;overscroll-behavior:contain}.reminder-sheet-header{display:flex;align-items:center;gap:14px;padding:16px 24px 12px}.reminder-sheet-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--orange-muted);color:var(--orange);flex-shrink:0}.reminder-sheet-title{font-size:1.1rem;font-weight:800;color:var(--text);line-height:1.2}.reminder-sheet-subtitle{font-size:.82rem;color:var(--text-muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}.reminder-notif-banner{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--orange);color:#fff;border-radius:12px;padding:10px 16px;font-size:.82rem;margin:0 16px 8px}.reminder-notif-btn{background:#ffffff40;border:none;border-radius:6px;color:#fff;padding:4px 10px;font-size:.8rem;cursor:pointer;white-space:nowrap;font-family:inherit}.reminder-datetime-section{margin:4px 10px;border-radius:18px;border:1px solid var(--border);overflow:hidden}.reminder-datetime-row{display:flex;align-items:center;justify-content:space-between;padding:0 16px;min-height:58px;cursor:pointer;position:relative}.reminder-datetime-label{font-size:.95rem;color:var(--text)}.reminder-datetime-right{display:flex;align-items:center;gap:0;position:relative}.reminder-datetime-value{font-size:.95rem;font-weight:600;color:var(--orange)}.reminder-hidden-input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;width:100%;height:100%;border:none;background:none}.reminder-divider{height:1px;background:var(--border);margin:0 16px}.reminder-actions-bar{padding:8px 10px 12px;display:flex;flex-direction:column;gap:4px}.reminder-save-btn{width:100%;padding:15px;border-radius:18px;border:none;background:var(--orange);color:#fff;font-size:1rem;font-weight:700;cursor:pointer;font-family:inherit;transition:opacity .15s}.reminder-save-btn:disabled{opacity:.4;cursor:not-allowed}.reminder-secondary-actions{display:flex;justify-content:center;gap:4px;padding:4px 0}.reminder-remove-btn{flex:1;padding:12px;border-radius:14px;border:none;background:transparent;color:#ef5350;font-size:.95rem;font-weight:600;cursor:pointer;font-family:inherit;transition:background .15s}.reminder-remove-btn:hover{background:#ef535014}.reminder-cancel-btn{flex:1;padding:12px;border-radius:14px;border:none;background:transparent;color:var(--text-muted);font-size:.95rem;font-weight:600;cursor:pointer;font-family:inherit;transition:background .15s}.reminder-cancel-btn:hover{background:var(--surface-2)}@media (max-width: 700px){.reminder-sheet{max-height:calc(100dvh - 12px)}.reminder-sheet .sort-sheet-handle{margin-top:10px}.reminder-sheet-header{gap:10px;padding:12px 16px 8px}.reminder-sheet-icon{width:36px;height:36px}.reminder-sheet-title{font-size:1rem}.reminder-sheet-subtitle{max-width:calc(100vw - 100px);font-size:.78rem}.reminder-notif-banner{margin:0 12px 6px;padding:8px 10px;font-size:.78rem}.reminder-datetime-section{margin:6px 12px 2px;border-radius:16px}.reminder-datetime-row{min-height:50px;padding:0 12px}.reminder-datetime-label,.reminder-datetime-value{font-size:.9rem}.reminder-datetime-value{text-align:right}.reminder-sheet .sort-sheet-header{padding:14px 16px 2px!important}.reminder-sheet .sort-sheet-list{padding:4px 12px 8px}.reminder-sheet .sort-sheet-option{min-height:50px;border-radius:14px;font-size:.95rem}.reminder-actions-bar{position:sticky;bottom:0;padding:8px 12px 10px;background:var(--surface)}.reminder-save-btn{padding:13px;border-radius:14px}.reminder-secondary-actions{padding:2px 0 0}.reminder-remove-btn,.reminder-cancel-btn{padding:9px}}@media (max-width: 700px) and (max-height: 720px){.reminder-sheet .sort-sheet-handle{height:4px;margin-top:8px}.reminder-sheet-header{padding:10px 16px 6px}.reminder-sheet-icon{width:32px;height:32px}.reminder-datetime-row{min-height:44px}.reminder-sheet .sort-sheet-header{padding-top:10px!important}.reminder-sheet .sort-sheet-option{min-height:44px}.reminder-save-btn{padding:12px}}
