@import"https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap";:root{font-family:Noto Sans SC,Microsoft YaHei,sans-serif;color:#30333a;background:#f0f1f3;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}button,input,textarea,select{font:inherit;letter-spacing:0}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #d79323;outline-offset:2px}button,.note-card{-webkit-tap-highlight-color:transparent}.app-shell{--bg: #f2f3f5;--surface: #ffffff;--surface-soft: #f8f8f7;--surface-hover: #f5f2eb;--text: #30333a;--muted: #8b8f98;--border: #e7e7e5;--accent: #f4b64b;--accent-strong: #df971e;--accent-soft: #fff4dd;--success: #31936d;--danger: #d95f52;--sidebar-width: 228px;--list-width: 372px;display:grid;grid-template-columns:var(--sidebar-width) var(--list-width) minmax(420px,1fr);width:100%;height:100%;color:var(--text);background:var(--bg)}.app-shell[data-theme=dark]{--bg: #1d2024;--surface: #25282d;--surface-soft: #212429;--surface-hover: #333137;--text: #ecebea;--muted: #9fa2a8;--border: #383b40;--accent-soft: #45391f}.sidebar{position:relative;z-index:3;display:flex;flex-direction:column;min-width:0;height:100%;padding:22px 14px 14px;background:var(--surface);border-right:1px solid var(--border)}.brand-row{display:flex;align-items:center;gap:11px;min-height:48px;padding:0 8px;margin-bottom:24px}.brand-mark{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;color:#47320f;background:var(--accent);border-radius:8px;box-shadow:0 5px 12px #df971e33}.brand-mark svg{width:21px;height:21px;stroke-width:2.4}.brand-name{font-size:18px;font-weight:700}.brand-subtitle{margin-top:1px;color:var(--muted);font-size:11px}.primary-nav,.category-nav{display:grid;gap:3px}.nav-item{display:grid;grid-template-columns:22px 1fr auto;align-items:center;width:100%;min-height:42px;padding:0 11px;color:#62666e;text-align:left;background:transparent;border:0;border-radius:6px;cursor:pointer;transition:background .14s ease,color .14s ease}[data-theme=dark] .nav-item{color:#babcc1}.nav-item:hover{color:var(--text);background:var(--surface-soft)}.nav-item.active{color:#7a5417;font-weight:600;background:var(--accent-soft)}[data-theme=dark] .nav-item.active{color:#f4c978}.nav-item svg{width:18px;height:18px}.nav-item span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-count{min-width:18px;color:var(--muted);font-size:11px;text-align:right}.sidebar-section-header{display:flex;align-items:center;justify-content:space-between;padding:0 8px 7px 11px;margin-top:25px;color:var(--muted);font-size:12px;font-weight:600}.category-dot{display:inline-block;flex:0 0 auto;width:8px;height:8px;background:var(--dot);border-radius:50%;box-shadow:0 0 0 3px color-mix(in srgb,var(--dot) 12%,transparent)}.sidebar-footer{display:flex;align-items:center;gap:6px;padding:12px 5px 2px;margin-top:auto;border-top:1px solid var(--border)}.sync-row{display:flex;align-items:center;gap:9px;min-width:0;flex:1}.sync-icon{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;color:var(--success);background:color-mix(in srgb,var(--success) 10%,transparent);border-radius:50%}.sync-icon svg{width:15px}.sync-row strong,.sync-row span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sync-row strong{font-size:11px;font-weight:600}.sync-row div>span{margin-top:2px;color:var(--muted);font-size:9px}.icon-button{display:inline-grid;flex:0 0 auto;width:36px;height:36px;padding:0;place-items:center;color:var(--muted);background:transparent;border:0;border-radius:6px;cursor:pointer;transition:color .14s ease,background .14s ease}.icon-button:hover,.icon-button.active{color:var(--text);background:var(--surface-hover)}.icon-button.active{color:var(--accent-strong)}.icon-button.danger-hover:hover{color:var(--danger);background:color-mix(in srgb,var(--danger) 9%,transparent)}.icon-button svg{width:18px;height:18px}.icon-button.small{width:26px;height:26px}.icon-button.small svg{width:15px}.mobile-close,.mobile-topbar,.mobile-back,.bottom-nav,.mobile-page,.ledger-page,.sidebar-mobile-tools,.sidebar-scrim{display:none}.ledger-page.active{position:fixed;z-index:25;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;color:var(--text);background:var(--surface-soft)}.ledger-header{display:grid;min-height:calc(62px + env(safe-area-inset-top));flex:0 0 auto;grid-template-columns:44px minmax(0,1fr) auto;align-items:end;gap:6px;padding:env(safe-area-inset-top) 12px 8px;background:var(--surface);border-bottom:1px solid var(--border)}.ledger-header>.icon-button,.ledger-header-actions{min-width:44px}.ledger-header h1{overflow:hidden;margin:0;padding-bottom:11px;font-size:19px;line-height:1.2;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ledger-header-actions{display:flex;align-items:center;justify-content:flex-end}.ledger-header-text{min-width:56px;height:44px;padding:0 8px;color:#9b6817;font-size:14px;font-weight:600;background:transparent;border:0}[data-theme=dark] .ledger-header-text{color:#f2c371}.danger-icon{color:var(--danger)}.ledger-scroll{width:min(100%,720px);min-height:0;flex:1;padding:18px 16px calc(34px + env(safe-area-inset-bottom));margin:0 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.ledger-overview{padding:20px;color:#f8fafb;background:#252b31;border-radius:8px;box-shadow:0 8px 20px #2024281f}.ledger-overview>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.ledger-overview>div:first-child span,.ledger-overview>div:first-child strong{font-size:12px;font-weight:500}.ledger-overview>div:first-child span{color:#bbc2c8}.ledger-overview>b{display:block;margin:9px 0 20px;overflow-wrap:anywhere;font-size:28px;line-height:1.25}.ledger-overview-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #3e454b}.ledger-overview-stats>span{display:grid;min-width:0;gap:4px;padding:14px 8px 0;border-left:1px solid #3e454b}.ledger-overview-stats>span:first-child{padding-left:0;border-left:0}.ledger-overview-stats small{color:#aeb6bd;font-size:10px}.ledger-overview-stats strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.ledger-list-heading{display:flex;min-height:58px;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.ledger-list-heading>div{display:flex;align-items:baseline;gap:8px}.ledger-list-heading h2{margin:0;font-size:16px}.ledger-list-heading span{color:var(--muted);font-size:11px}.ledger-list-heading button{display:inline-flex;height:34px;align-items:center;gap:5px;padding:0 10px;color:#8c5d12;font-size:12px;background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 40%,var(--border));border-radius:6px}.ledger-list-heading button svg{width:14px}.ledger-book-list{display:grid;gap:10px}.ledger-book-card{display:grid;min-height:92px;grid-template-columns:52px minmax(0,1fr) minmax(110px,auto);align-items:center;gap:12px;width:100%;padding:14px;text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 3px 10px #2426290a}.ledger-book-icon,.ledger-type-icon{display:grid;width:52px;height:58px;place-items:center;color:var(--ledger-color);background:color-mix(in srgb,var(--ledger-color) 12%,var(--surface));border:1px solid color-mix(in srgb,var(--ledger-color) 22%,var(--border));border-radius:6px}.ledger-book-icon svg,.ledger-type-icon svg{width:25px;height:25px}.ledger-book-info,.ledger-book-total{display:grid;min-width:0;gap:3px}.ledger-book-info small,.ledger-book-total small{color:var(--muted);font-size:10px}.ledger-book-info strong{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.ledger-book-info>span{color:var(--muted);font-size:10px}.ledger-book-total{position:relative;padding-right:20px;text-align:right}.ledger-book-total strong{overflow-wrap:anywhere;color:var(--ledger-color);font-size:14px}.ledger-book-total>svg{position:absolute;top:50%;right:-2px;width:16px;color:var(--muted);transform:translateY(-50%)}.ledger-empty{display:grid;min-height:340px;place-items:center;align-content:center;gap:9px;text-align:center}.ledger-empty>span{display:grid;width:66px;height:66px;place-items:center;color:#577890;background:#e8f0f4;border-radius:50%}[data-theme=dark] .ledger-empty>span{background:#303a40}.ledger-empty>span svg{width:29px;height:29px}.ledger-empty h2,.ledger-empty p{margin:0}.ledger-empty h2{font-size:17px}.ledger-empty p{margin-bottom:8px;color:var(--muted);font-size:12px}.ledger-empty .primary-button,.ledger-submit{display:inline-flex;align-items:center;justify-content:center;gap:7px}.ledger-page-intro{margin:2px 2px 16px;color:var(--muted);font-size:13px;line-height:1.65}.ledger-type-list{display:grid;align-content:start;gap:12px}.ledger-type-card{display:grid;min-height:112px;grid-template-columns:58px minmax(0,1fr) 22px;align-items:center;gap:16px;padding:16px;text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:8px}.ledger-type-card.selected{border-color:var(--ledger-color);box-shadow:0 0 0 1px color-mix(in srgb,var(--ledger-color) 55%,transparent)}.ledger-type-card>span:nth-child(2){display:grid;min-width:0;gap:7px}.ledger-type-card strong{font-size:17px}.ledger-type-card small{color:var(--muted);font-size:12px;line-height:1.6}.ledger-type-card>svg{width:19px;color:var(--ledger-color)}.ledger-form,.ledger-entry-form{display:grid;align-content:start;gap:0}.ledger-form-type{display:flex;align-items:center;gap:13px;padding:14px;margin-bottom:10px;background:color-mix(in srgb,var(--ledger-color) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--ledger-color) 20%,var(--border));border-radius:8px}.ledger-form-type>span{display:grid;flex:0 0 42px;width:42px;height:42px;place-items:center;color:var(--ledger-color);background:var(--surface);border-radius:6px}.ledger-form-type>span svg{width:21px}.ledger-form-type>div{display:grid;gap:3px}.ledger-form-type strong{font-size:15px}.ledger-form-type small{color:var(--muted);font-size:11px}.ledger-field,.ledger-fieldset{display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:12px;min-height:68px;padding:8px 2px;background:transparent;border:0;border-bottom:1px solid var(--border)}.ledger-field>span,.ledger-fieldset legend{padding:0;font-size:13px;font-weight:500}.ledger-field>span b{color:var(--danger)}.ledger-field input,.ledger-field textarea{width:100%;min-width:0;padding:11px 0;color:var(--text);background:transparent;border:0;resize:none}.ledger-field input::placeholder,.ledger-field textarea::placeholder{color:color-mix(in srgb,var(--muted) 65%,transparent)}.ledger-segments,.ledger-entry-segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ledger-segments.three{grid-template-columns:repeat(3,minmax(0,1fr))}.ledger-segments input{position:absolute;opacity:0;pointer-events:none}.ledger-segments span,.ledger-entry-segments button{display:grid;min-height:40px;place-items:center;padding:0 8px;color:var(--muted);font-size:12px;background:var(--surface);border:1px solid var(--border);border-radius:6px}.ledger-segments input:checked+span,.ledger-entry-segments button.active{color:#9b6817;background:var(--accent-soft);border-color:var(--accent)}.ledger-local-note{display:flex;align-items:center;gap:7px;margin:18px 2px 10px;color:var(--muted);font-size:11px}.ledger-local-note svg{width:15px}.ledger-submit{width:100%;min-height:46px;margin-top:12px}.ledger-month-picker{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;margin-bottom:12px}.ledger-month-picker strong{font-size:15px;text-align:center}.ledger-detail-summary{padding:20px;background:var(--surface);border-top:4px solid var(--ledger-color);border-radius:8px;box-shadow:0 5px 16px #2426290d}.ledger-detail-summary>span{color:var(--muted);font-size:11px}.ledger-detail-summary>strong{display:block;margin:6px 0 18px;overflow-wrap:anywhere;font-size:27px}.ledger-detail-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-top:14px;border-top:1px solid var(--border)}.ledger-detail-stats>span{display:grid;min-width:0;gap:4px;padding:0 12px;border-left:1px solid var(--border)}.ledger-detail-stats>span:first-child{padding-left:0;border-left:0}.ledger-detail-stats small{color:var(--muted);font-size:10px}.ledger-detail-stats b{overflow-wrap:anywhere;font-size:13px}.ledger-progress-label{display:flex;align-items:center;justify-content:space-between;margin-top:17px;font-size:11px}.ledger-progress{height:7px;margin:8px 0 5px;overflow:hidden;background:var(--surface-soft);border-radius:4px}.ledger-progress span{display:block;height:100%;background:var(--ledger-color);border-radius:inherit}.ledger-progress-caption{color:var(--muted);font-size:10px}.ledger-entry-list{display:grid;gap:8px;padding-bottom:74px}.ledger-entry-row{display:grid;min-height:72px;grid-template-columns:38px minmax(0,1fr) minmax(95px,auto) 28px;align-items:center;gap:10px;padding:10px 8px 10px 12px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.ledger-entry-icon{display:grid;width:36px;height:36px;place-items:center;color:#168260;background:#e6f4ef;border-radius:50%}.ledger-entry-icon.expense,.ledger-entry-icon.receivable{color:#c45c4f;background:#faece9}[data-theme=dark] .ledger-entry-icon{background:#253e36}[data-theme=dark] .ledger-entry-icon.expense,[data-theme=dark] .ledger-entry-icon.receivable{background:#46302e}.ledger-entry-icon svg{width:17px}.ledger-entry-info,.ledger-entry-amount{display:grid;min-width:0;gap:3px}.ledger-entry-info strong,.ledger-entry-info small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ledger-entry-info strong{font-size:13px}.ledger-entry-info small,.ledger-entry-amount small{color:var(--muted);font-size:9px}.ledger-entry-amount{text-align:right}.ledger-entry-amount strong{overflow-wrap:anywhere;color:#168260;font-size:12px}.ledger-entry-amount.expense strong,.ledger-entry-amount.receivable strong{color:#c45c4f}.ledger-entry-delete{width:28px;height:28px;color:var(--muted)}.ledger-entry-delete svg{width:14px}.ledger-no-entries{display:grid;min-height:210px;place-items:center;align-content:center;gap:7px;color:var(--muted);text-align:center}.ledger-no-entries>svg{width:28px;height:28px}.ledger-no-entries strong{color:var(--text);font-size:14px}.ledger-no-entries span{font-size:11px}.ledger-fab{position:fixed;z-index:27;right:max(18px,calc((100vw - 720px)/2 + 18px));bottom:calc(20px + env(safe-area-inset-bottom));display:inline-flex;min-width:106px;height:46px;align-items:center;justify-content:center;gap:7px;padding:0 16px;color:#47320f;font-size:13px;font-weight:600;background:var(--accent);border:0;border-radius:23px;box-shadow:0 8px 20px #91621440}.ledger-fab svg{width:18px}.ledger-entry-segments{margin-bottom:14px}.ledger-entry-segments.single{grid-template-columns:1fr}.ledger-entry-segments button{font-size:13px}.ledger-amount-field{display:grid;gap:12px;padding:18px 16px;margin-bottom:8px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.ledger-amount-field>span{color:var(--muted);font-size:11px}.ledger-amount-field>div{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center}.ledger-amount-field b{font-size:20px}.ledger-amount-field input{min-width:0;padding:0;color:var(--text);font-size:30px;font-weight:600;background:transparent;border:0}.ledger-setting-icon{color:#4d7e91!important;background:#e7f0f3!important}[data-theme=dark] .ledger-setting-icon{background:#304047!important}.note-list-panel{display:flex;min-width:0;height:100%;flex-direction:column;background:var(--surface-soft);border-right:1px solid var(--border)}.list-header{flex:0 0 auto;padding:30px 20px 16px;background:var(--surface-soft)}.list-title-row{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:14px}.list-title-row h1{margin:0;color:var(--text);font-size:24px;line-height:1.25}.list-title-row>div>span{display:block;margin-top:3px;color:var(--muted);font-size:11px}.new-note-button,.primary-button,.secondary-button,.complete-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 13px;font-size:13px;font-weight:600;background:transparent;border:0;border-radius:6px;cursor:pointer}.new-note-button,.primary-button{color:#4b3510;background:var(--accent);box-shadow:0 4px 10px #df971e2e}.new-note-button:hover,.primary-button:hover{background:#f0ab35}.new-note-button svg,.secondary-button svg,.complete-button svg{width:16px;height:16px}.secondary-button{color:var(--text);border:1px solid var(--border);background:var(--surface)}.secondary-button:hover{background:var(--surface-hover)}.search-box{position:relative;display:flex;height:40px;align-items:center;margin-top:20px;color:var(--muted)}.search-box>svg{position:absolute;left:12px;width:16px;pointer-events:none}.search-box input{width:100%;height:100%;padding:0 65px 0 37px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:6px}.search-box input::placeholder{color:#a7aab0}.search-box input:focus{border-color:color-mix(in srgb,var(--accent-strong) 60%,var(--border));outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 17%,transparent)}.search-box kbd{position:absolute;right:9px;padding:2px 5px;color:var(--muted);font-family:inherit;font-size:9px;background:var(--surface-soft);border:1px solid var(--border);border-radius:4px}.clear-search{position:absolute;right:7px;display:grid;width:27px;height:27px;padding:0;place-items:center;color:var(--muted);background:transparent;border:0;cursor:pointer}.clear-search svg{width:14px}.note-scroll,.editor-scroll{min-height:0;overflow:auto;scrollbar-color:#d7d7d3 transparent;scrollbar-width:thin}.note-scroll{flex:1;padding:0 12px 24px}.list-section-label{display:flex;align-items:center;gap:5px;min-height:32px;padding:4px 8px 3px;color:var(--muted);font-size:11px;font-weight:600}.list-section-label svg{width:12px;height:12px}.note-card{position:relative;min-height:118px;padding:15px 15px 13px;margin-bottom:7px;background:var(--surface);border:1px solid var(--border);border-radius:7px;cursor:pointer;transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease}.note-card:hover{border-color:color-mix(in srgb,var(--accent-strong) 30%,var(--border));box-shadow:0 5px 18px #2324260d;transform:translateY(-1px)}.note-card.selected{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent),0 5px 16px #5241230f}.note-card.completed h3,.note-card.completed p{color:var(--muted);text-decoration:line-through}.note-card-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.note-card h3{overflow:hidden;margin:0;color:var(--text);font-size:14px;font-weight:600;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.pin-icon{flex:0 0 auto;width:14px;height:14px;color:var(--accent-strong);transform:rotate(35deg)}.note-card p{display:-webkit-box;overflow:hidden;min-height:38px;margin:8px 0 11px;color:#70747c;font-size:12px;line-height:1.6;white-space:pre-line;-webkit-box-orient:vertical;-webkit-line-clamp:2}[data-theme=dark] .note-card p{color:#b2b4b9}.note-meta{display:flex;min-width:0;align-items:center;gap:9px;color:var(--muted);font-size:10px}.reminder-badge,.category-label{display:inline-flex;min-width:0;align-items:center;gap:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reminder-badge{color:#88703f}[data-theme=dark] .reminder-badge{color:#d8b979}.reminder-badge.overdue{color:var(--danger)}.reminder-badge svg{flex:0 0 auto;width:11px;height:11px}.category-label{margin-left:auto}.category-label .category-dot{width:6px;height:6px;box-shadow:none}.empty-list,.empty-editor{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.empty-list{min-height:340px;padding:30px}.empty-list h2,.empty-editor h2{margin:18px 0 6px;font-size:16px}.empty-list p,.empty-editor p{max-width:260px;margin:0 0 18px;color:var(--muted);font-size:12px}.empty-icon,.empty-editor-art{display:grid;width:64px;height:64px;place-items:center;color:#c18a2d;background:var(--accent-soft);border-radius:50%}.empty-icon svg,.empty-editor-art svg{width:28px;height:28px}.editor-panel{position:relative;display:flex;min-width:0;height:100%;flex-direction:column;background:var(--surface)}.editor-header{display:flex;flex:0 0 66px;min-width:0;align-items:center;justify-content:space-between;gap:16px;padding:0 24px;border-bottom:1px solid var(--border)}.editor-header-left,.editor-actions{display:flex;min-width:0;align-items:center}.editor-header-left{gap:8px;overflow:hidden;font-size:12px;font-weight:500;white-space:nowrap}.editor-header-left>svg{flex:0 0 auto;width:13px;color:var(--muted)}.muted{overflow:hidden;color:var(--muted);font-weight:400;text-overflow:ellipsis}.editor-actions{flex:0 0 auto;gap:4px}.complete-button{min-height:34px;margin:0 3px;color:var(--success);background:color-mix(in srgb,var(--success) 9%,transparent)}.complete-button:hover{background:color-mix(in srgb,var(--success) 15%,transparent)}.complete-button.is-complete{color:#6c727b;background:var(--surface-soft)}.editor-scroll{flex:1}.editor-document{width:min(780px,calc(100% - 64px));min-height:100%;padding:clamp(38px,6vh,72px) 0 80px;margin:0 auto}.completed-banner{display:flex;align-items:center;gap:7px;width:fit-content;padding:7px 10px;margin-bottom:18px;color:var(--success);font-size:12px;font-weight:600;background:color-mix(in srgb,var(--success) 9%,transparent);border-radius:5px}.completed-banner svg{width:16px;height:16px}.title-input,.content-input{display:block;width:100%;color:var(--text);background:transparent;border:0;outline:0}.attachments-section{padding-top:24px;margin-top:4px;border-top:1px solid var(--border)}.attachments-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;color:var(--muted);font-size:11px}.attachments-heading>span{display:inline-flex;align-items:center;gap:6px;color:var(--text);font-weight:600}.attachments-heading svg{width:14px;height:14px}.attachment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.attachment-item{position:relative;display:grid;min-width:0;min-height:64px;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;background:var(--surface-soft);border:1px solid var(--border);border-radius:6px}.attachment-item.image-attachment{min-height:116px;grid-template-columns:88px minmax(0,1fr) auto}.attachment-item>img{width:88px;height:92px;object-fit:cover;background:var(--border);border-radius:4px}.attachment-file-icon{display:grid;width:40px;height:40px;place-items:center;color:#8b6a31;background:var(--accent-soft);border-radius:5px}.attachment-file-icon svg{width:20px;height:20px}.attachment-details{min-width:0}.attachment-details strong,.attachment-details span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-details strong{font-size:11px;font-weight:600}.attachment-details span{margin-top:4px;color:var(--muted);font-size:9px}.attachment-item audio{width:100%;height:32px;grid-column:1 / -1}.attachment-actions{display:flex;align-items:center}.icon-button.recording{color:var(--danger);background:color-mix(in srgb,var(--danger) 10%,transparent);animation:recording-pulse 1.5s ease-in-out infinite}@keyframes recording-pulse{50%{box-shadow:0 0 0 5px color-mix(in srgb,var(--danger) 10%,transparent)}}.title-input{padding:0;font-size:clamp(27px,3vw,36px);font-weight:700;line-height:1.35}.title-input::placeholder,.content-input::placeholder{color:color-mix(in srgb,var(--muted) 62%,transparent)}.document-info{display:flex;min-height:32px;align-items:center;flex-wrap:wrap;gap:7px;margin:18px 0 26px}.info-chip,.tag-chip,.add-tag-button{display:inline-flex;min-height:27px;align-items:center;gap:6px;padding:0 8px;color:var(--muted);font-size:11px;background:var(--surface-soft);border:1px solid var(--border);border-radius:5px}.info-chip,.add-tag-button{cursor:pointer}.info-chip:hover,.add-tag-button:hover{color:var(--text);border-color:#d5d3cd}.info-chip.active{color:#8a621e;background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 50%,var(--border))}[data-theme=dark] .info-chip.active{color:#e6bd71}.info-chip svg,.add-tag-button svg{width:13px;height:13px}.add-tag-button{width:28px;padding:0;justify-content:center;background:transparent;border-style:dashed}.content-input{min-height:48vh;padding:0 0 60px;resize:none;font-size:15px;line-height:2}.editor-footer{display:flex;flex:0 0 54px;align-items:center;justify-content:space-between;padding:0 22px;border-top:1px solid var(--border)}.format-tools,.editor-stats{display:flex;align-items:center}.format-tools{gap:2px}.tool-separator{width:1px;height:20px;margin:0 7px;background:var(--border)}.category-select{height:32px;padding:0 28px 0 9px;color:var(--text);font-size:11px;background-color:var(--surface-soft);border:1px solid var(--border);border-radius:5px}.editor-stats{gap:7px;color:var(--muted);font-size:10px}.save-dot{width:5px;height:5px;background:var(--success);border-radius:50%}.more-menu{position:absolute;z-index:5;top:56px;right:20px;width:155px;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:7px;box-shadow:0 12px 30px #1c1e2226}.more-menu button{display:flex;width:100%;height:36px;align-items:center;gap:9px;padding:0 10px;color:var(--text);font-size:12px;background:transparent;border:0;border-radius:5px;cursor:pointer}.more-menu button:hover{background:var(--surface-soft)}.more-menu svg{width:15px;color:var(--muted)}.modal-layer{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .16s ease}.modal-layer.open{opacity:1}.modal-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#191b1e61;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{position:absolute;top:50%;left:50%;width:min(420px,calc(100% - 32px));padding:24px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 24px 80px #191b1e3d;max-height:min(760px,calc(100vh - 32px));overflow:auto;transform:translate(-50%,calc(-50% + 10px));transition:transform .16s ease}.modal-layer.open .modal{transform:translate(-50%,-50%)}.compact-modal{width:min(450px,calc(100% - 32px))}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px}.modal-heading h2{margin:0;font-size:19px}.modal-heading p{margin:5px 0 0;color:var(--muted);font-size:11px}.field-label{display:block;margin:16px 0 7px;color:var(--muted);font-size:11px;font-weight:600}.text-field{width:100%;height:42px;padding:0 12px;color:var(--text);background:var(--surface-soft);border:1px solid var(--border);border-radius:6px}.text-field:focus{border-color:var(--accent);outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent)}.color-options{display:flex;gap:12px;padding:4px 0}.color-swatch input{position:absolute;opacity:0;pointer-events:none}.color-swatch span{display:grid;width:30px;height:30px;place-items:center;color:#fff;background:var(--swatch);border:3px solid var(--surface);border-radius:50%;cursor:pointer;box-shadow:0 0 0 1px var(--border)}.color-swatch svg{width:14px;opacity:0}.color-swatch input:checked+span{box-shadow:0 0 0 2px var(--swatch)}.color-swatch input:checked+span svg{opacity:1}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:28px}.split-actions{justify-content:space-between}.split-actions>div{display:flex;gap:9px}.text-button{padding:6px 0;font-size:12px;background:transparent;border:0;cursor:pointer}.text-button.danger{color:var(--danger)}.quick-times{display:flex;gap:7px;margin-top:10px}.quick-times button{min-height:30px;padding:0 9px;color:var(--muted);font-size:10px;background:var(--surface-soft);border:1px solid var(--border);border-radius:5px;cursor:pointer}.quick-times button:hover{color:var(--text);border-color:var(--accent)}.segmented-control{display:grid;height:38px;grid-template-columns:repeat(2,1fr);padding:3px;background:var(--surface-soft);border:1px solid var(--border);border-radius:6px}.segmented-control button{color:var(--muted);font-size:11px;background:transparent;border:0;border-radius:4px;cursor:pointer}.segmented-control button.active{color:var(--text);font-weight:600;background:var(--surface);box-shadow:0 1px 4px #23242617}.lunar-fields{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:7px}.lunar-fields .text-field{padding-right:7px}.check-row{display:flex;align-items:center;gap:7px;margin-top:10px;color:var(--muted);font-size:11px}.check-row input{accent-color:var(--accent-strong)}.lunar-preview{min-height:18px;margin:8px 0 0;color:#8a621e;font-size:10px}[data-theme=dark] .lunar-preview{color:#e2ba70}.notification-hint{display:flex;align-items:flex-start;gap:8px;padding:10px;margin-top:12px;color:var(--muted);font-size:10px;line-height:1.6;background:var(--surface-soft);border-radius:5px}.notification-hint svg{flex:0 0 auto;width:14px;height:14px;margin-top:1px;color:var(--accent-strong)}.desktop-widget{--surface: #ffffff;--surface-soft: #f8f8f7;--text: #30333a;--muted: #8b8f98;--border: #e7e7e5;--accent: #f4b64b;--accent-strong: #df971e;--accent-soft: #fff4dd;--success: #31936d;display:flex;width:100%;height:100%;flex-direction:column;padding:12px;color:var(--text);background:var(--surface);border:1px solid var(--border)}.desktop-widget[data-theme=dark]{--surface: #25282d;--surface-soft: #212429;--text: #ecebea;--muted: #9fa2a8;--border: #383b40;--accent-soft: #45391f}.widget-header,.widget-header>div,.widget-footer{display:flex;align-items:center}.widget-header{justify-content:space-between;-webkit-app-region:drag}.widget-header button,.widget-quick-add,.widget-note{-webkit-app-region:no-drag}.widget-quick-add{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:7px;margin:16px 0 12px}.widget-quick-add input{min-width:0;height:38px;padding:0 11px;color:var(--text);background:var(--surface-soft);border:1px solid var(--border);border-radius:6px}.widget-quick-add .primary-button{width:38px;min-height:38px;padding:0}.widget-note-list{min-height:0;flex:1;overflow:auto}.widget-note{display:grid;width:100%;min-height:58px;grid-template-columns:10px minmax(0,1fr) 18px;align-items:center;gap:8px;padding:8px;color:var(--text);text-align:left;background:transparent;border:0;border-bottom:1px solid var(--border);cursor:pointer}.widget-note:hover{background:var(--surface-soft)}.widget-note strong,.widget-note small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.widget-note strong{font-size:12px}.widget-note small{margin-top:4px;color:var(--muted);font-size:9px}.widget-note>svg{width:13px;color:var(--accent-strong);transform:rotate(35deg)}.widget-footer{justify-content:center;gap:7px;padding-top:9px;color:var(--muted);font-size:9px}.widget-empty{padding:46px 0;color:var(--muted);font-size:11px;text-align:center}.toast{position:fixed;z-index:30;bottom:24px;left:50%;max-width:calc(100% - 32px);padding:10px 15px;color:#f7f7f6;font-size:12px;background:#30333a;border-radius:6px;box-shadow:0 8px 24px #16171933;opacity:0;pointer-events:none;transform:translate(-50%,10px);transition:opacity .18s ease,transform .18s ease}.toast.show{opacity:1;transform:translate(-50%)}@media(max-width:1080px){.app-shell{--sidebar-width: 210px;--list-width: 340px}.editor-document{width:calc(100% - 48px)}.editor-header{padding:0 16px}.editor-header-left .muted,.editor-stats span:last-child{display:none}}@media all{html,body,#app{min-width:0}.app-shell{display:block;position:relative;background:var(--surface-soft)}.sidebar{position:fixed;z-index:12;top:0;bottom:0;left:0;width:min(294px,84vw);padding-top:max(18px,env(safe-area-inset-top));box-shadow:10px 0 35px #1a1b1e2e;visibility:hidden;pointer-events:none;transform:translate(-105%);transition:transform .22s ease,visibility 0s linear .22s}.sidebar.mobile-open{visibility:visible;pointer-events:auto;transform:translate(0);transition-delay:0s}.sidebar-mobile-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:14px 2px 10px;margin-top:auto;border-top:1px solid var(--border)}.sidebar-mobile-tools button{display:grid;min-height:54px;place-items:center;align-content:center;gap:5px;color:var(--muted);background:transparent;border:0;font-size:10px}.sidebar-mobile-tools svg{width:19px;height:19px}.sidebar-mobile-tools+.sidebar-footer{margin-top:0}.sidebar-scrim{position:fixed;z-index:11;top:0;right:0;bottom:0;left:0;background:#17191b59;border:0;opacity:0;pointer-events:none;transition:opacity .22s ease}.sidebar-scrim.visible{display:block;opacity:1;pointer-events:auto}.mobile-close{display:inline-grid;margin-left:auto}.note-list-panel,.editor-panel,.mobile-page{position:absolute;top:0;right:0;bottom:0;left:0;display:none;width:100%;border:0}.note-list-panel.mobile-active,.editor-panel.mobile-active,.mobile-page.mobile-active{display:flex}.mobile-page{flex-direction:column;color:var(--text);background:var(--surface-soft)}.mobile-page-header{display:flex;min-height:calc(92px + env(safe-area-inset-top));flex:0 0 auto;align-items:flex-end;justify-content:space-between;gap:16px;padding:calc(18px + env(safe-area-inset-top)) 18px 16px;background:var(--surface);border-bottom:1px solid var(--border)}.mobile-page-header.section-appbar{display:grid;min-height:calc(78px + env(safe-area-inset-top));grid-template-columns:38px minmax(0,1fr) auto;align-items:end;gap:8px;padding:calc(12px + env(safe-area-inset-top)) 14px 12px}.section-appbar-title{min-width:0;text-align:center}.section-appbar-title h1{font-size:21px}.section-appbar-title>span{margin-top:2px!important;font-size:10px!important}.mobile-topbar-actions{display:flex;align-items:center;gap:0}.mobile-page-header h1,.calendar-header h1{margin:0;font-size:24px;line-height:1.2}.mobile-page-header>div>span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.mobile-primary-icon{color:#47320f;background:var(--accent)}.mobile-filter-tabs{display:flex;flex:0 0 auto;gap:8px;padding:12px 14px;overflow-x:auto;background:var(--surface)}.mobile-category-strip{display:flex;min-height:43px;flex:0 0 auto;align-items:center;gap:7px;padding:6px 12px;overflow-x:auto;background:var(--surface);border-bottom:1px solid var(--border);scrollbar-width:none}.mobile-category-strip::-webkit-scrollbar{display:none}.mobile-category-strip button{display:flex;min-width:max-content;height:30px;align-items:center;gap:7px;padding:0 12px;color:var(--muted);background:transparent;border:1px solid var(--border);border-radius:6px;font-size:11px}.mobile-category-strip button.active{color:#7a5417;font-weight:600;background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 55%,var(--border))}.mobile-filter-tabs button{min-width:68px;height:34px;padding:0 18px;color:var(--muted);background:var(--surface-soft);border:0;border-radius:6px}.mobile-filter-tabs button.active{color:#7a5417;font-weight:600;background:var(--accent-soft)}.mobile-page-scroll{min-height:0;flex:1;overflow-y:auto;padding-bottom:calc(88px + env(safe-area-inset-bottom))}.todo-list{display:flex;flex-direction:column;gap:10px;padding:12px 12px calc(88px + env(safe-area-inset-bottom))}.todo-item{display:grid;grid-template-columns:34px minmax(0,1fr) 22px;min-height:78px;align-items:center;gap:9px;padding:12px 14px;background:var(--surface);border:1px solid var(--border);border-radius:6px}.todo-check{display:grid;width:25px;height:25px;place-items:center;color:#fff;background:transparent;border:2px solid #aeb2b8;border-radius:5px}.todo-check svg{width:16px;height:16px}.todo-item.completed .todo-check{background:var(--success);border-color:var(--success)}.todo-content{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:7px;padding:0;text-align:left;background:transparent;border:0}.todo-content strong{width:100%;overflow:hidden;font-size:15px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.todo-content span{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px}.todo-content span.overdue{color:var(--danger)}.todo-content span svg{width:13px;height:13px}.todo-item.completed .todo-content strong{color:var(--muted);text-decoration:line-through}.todo-pin{width:16px;color:var(--accent-strong)}.mobile-fab{position:fixed;z-index:7;right:20px;bottom:calc(84px + env(safe-area-inset-bottom));display:grid;width:50px;height:50px;place-items:center;color:#47320f;background:var(--accent);border:0;border-radius:50%;box-shadow:0 8px 22px #91621447}.mobile-fab svg{width:23px;height:23px}.mobile-menu-scrim{position:fixed;z-index:13;top:0;right:0;bottom:0;left:0;background:#17191b38;border:0}.mobile-popover{position:fixed;z-index:14;top:calc(64px + env(safe-area-inset-top));right:12px;display:grid;width:min(270px,calc(100vw - 32px));max-height:calc(100vh - 150px - env(safe-area-inset-bottom));padding:7px;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:7px;box-shadow:0 14px 38px #181a1d3d}.mobile-popover>button{display:grid;min-height:40px;grid-template-columns:minmax(0,1fr) 20px;align-items:center;gap:10px;padding:0 11px;text-align:left;background:transparent;border:0;border-radius:5px;font-size:13px}.mobile-popover>button:hover{background:var(--surface-soft)}.mobile-popover>button svg{width:16px;height:16px;color:var(--accent-strong)}.mobile-popover>button.popover-danger,.mobile-popover>button.popover-danger svg{color:var(--danger)}.popover-label{padding:7px 11px 4px;color:var(--muted);font-size:10px;font-weight:600}.popover-separator{height:1px;margin:5px 4px;background:var(--border)}.mobile-page-empty{display:grid;min-height:50vh;place-items:center;align-content:center;gap:12px;color:var(--muted);text-align:center}.mobile-page-empty>svg{width:42px;height:42px;color:#c2c4c8}.mobile-page-empty h2{margin:0;color:var(--text);font-size:16px}.calendar-page{background:var(--surface)}.calendar-shell-topbar{display:grid;min-height:calc(66px + env(safe-area-inset-top));flex:0 0 auto;grid-template-columns:38px minmax(0,1fr) 38px;align-items:end;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;border-bottom:1px solid var(--border)}.calendar-mode-switch{display:grid;width:min(180px,100%);height:36px;grid-template-columns:repeat(2,1fr);place-self:end center;padding:3px;background:var(--surface-soft);border:1px solid var(--border);border-radius:6px}.calendar-mode-switch button{color:var(--muted);background:transparent;border:0;border-radius:4px;font-size:12px}.calendar-mode-switch button.active{color:var(--text);font-weight:600;background:var(--surface);box-shadow:0 1px 4px #21232614}.calendar-header{display:flex;min-height:calc(88px + env(safe-area-inset-top));flex:0 0 auto;align-items:flex-end;justify-content:space-between;gap:8px;padding:calc(16px + env(safe-area-inset-top)) 10px 14px;border-bottom:1px solid var(--border)}.calendar-page .calendar-header{min-height:56px;padding:8px 10px 10px}.calendar-month-nav{display:flex;align-items:center;gap:2px}.calendar-month-nav h1{min-width:132px;font-size:21px;text-align:center}.calendar-today-button{height:34px;padding:0 10px;color:var(--accent-strong);background:var(--accent-soft);border:0;border-radius:6px;font-size:12px}.calendar-scroll{min-height:0;flex:1;overflow-y:auto;padding-bottom:calc(82px + env(safe-area-inset-bottom))}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{height:34px;align-items:center;color:var(--muted);font-size:11px;text-align:center}.calendar-grid{padding:0 5px 10px;border-bottom:1px solid var(--border)}.calendar-day{display:flex;min-width:0;min-height:72px;flex-direction:column;align-items:center;padding:4px 2px;color:var(--text);background:transparent;border:0;border-radius:6px}.calendar-day.outside{opacity:.3}.calendar-day.selected{background:var(--accent-soft)}.solar-day{display:grid;width:25px;height:25px;place-items:center;font-size:14px;font-weight:600;border-radius:50%}.calendar-day.today .solar-day{color:#47320f;background:var(--accent)}.lunar-day{max-width:100%;overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.calendar-events{display:grid;width:100%;gap:2px;margin-top:4px}.calendar-events>span{width:100%;overflow:hidden;padding:2px 3px;color:var(--event-color);background:color-mix(in srgb,var(--event-color) 11%,transparent);border-radius:3px;font-size:7px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.calendar-events small{color:var(--muted);font-size:8px}.selected-day-agenda{padding:15px 14px}.selected-day-agenda h2{margin:0 0 10px;font-size:14px}.selected-day-agenda>button{display:grid;width:100%;min-height:52px;grid-template-columns:10px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:8px 4px;text-align:left;background:transparent;border:0;border-top:1px solid var(--border)}.agenda-dot{width:8px;height:8px;background:var(--dot);border-radius:50%}.selected-day-agenda>button span:nth-child(2){display:grid;gap:3px}.selected-day-agenda strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.selected-day-agenda small,.selected-day-agenda>p{color:var(--muted);font-size:11px}.selected-day-agenda>button>svg{width:16px;color:var(--muted)}.time-view{display:flex;min-height:0;flex:1;flex-direction:column;background:var(--surface-soft)}.time-tabs{display:grid;min-height:52px;flex:0 0 auto;grid-template-columns:repeat(3,1fr);background:var(--surface);border-bottom:1px solid var(--border)}.time-tabs button{position:relative;color:var(--muted);background:transparent;border:0;font-size:13px}.time-tabs button.active{color:var(--text);font-weight:600}.time-tabs button.active:after{position:absolute;right:28%;bottom:0;left:28%;height:3px;content:"";background:var(--accent-strong);border-radius:3px 3px 0 0}.time-groups{min-height:0;flex:1;overflow-y:auto;padding-bottom:calc(84px + env(safe-area-inset-bottom))}.time-group{background:var(--surface)}.time-group+.time-group{margin-top:10px}.time-group>header{display:grid;min-height:42px;grid-template-columns:auto 1fr 18px;align-items:center;gap:7px;padding:0 15px;color:var(--muted);background:var(--surface-soft);font-size:12px}.time-group>header small{font-size:10px}.time-group>header svg{width:15px;height:15px}.time-group>button{display:grid;width:calc(100% - 28px);min-height:58px;grid-template-columns:10px minmax(0,1fr) 20px;align-items:center;gap:10px;padding:8px 0;margin:0 14px;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--border)}.time-group>button>span:nth-child(2){display:grid;min-width:0;gap:4px}.time-group strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.time-group button small,.time-group>p{color:var(--muted);font-size:10px}.time-group>button>svg{width:16px;color:var(--muted)}.time-group>p{min-height:70px;padding-top:23px;margin:0;text-align:center}.profile-title{min-height:calc(82px + env(safe-area-inset-top))}.profile-scroll{padding:0 16px calc(88px + env(safe-area-inset-bottom))}.profile-identity{display:flex;align-items:center;gap:13px;padding:24px 2px 20px}.profile-identity>div{display:grid;min-width:0;gap:4px}.profile-identity strong{font-size:18px}.profile-identity>div>span{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);padding:14px 0 18px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.profile-stats span{display:grid;gap:3px;text-align:center}.profile-stats strong{font-size:20px}.profile-stats small{color:var(--muted);font-size:10px}.profile-settings{padding-top:12px}.profile-settings h2{margin:18px 0 7px;color:var(--muted);font-size:11px;font-weight:600}.profile-settings>button{display:grid;width:100%;min-height:62px;grid-template-columns:36px minmax(0,1fr) 18px;align-items:center;gap:11px;padding:7px 2px;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--border)}.setting-icon{display:grid;width:34px;height:34px;place-items:center;color:#7a5417;background:var(--accent-soft);border-radius:6px}.setting-icon svg{width:17px;height:17px}.profile-settings>button>span:nth-child(2){display:grid;min-width:0;gap:3px}.profile-settings strong{font-size:13px;font-weight:500}.profile-settings small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.profile-settings>button>svg{width:16px;color:var(--muted)}.mobile-topbar{display:flex;min-height:48px;align-items:center;justify-content:space-between;padding-top:env(safe-area-inset-top);margin:-6px -6px 16px}.mobile-brand{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700}.small-mark{display:inline-grid;flex-basis:28px;width:28px;height:28px;border-radius:6px}.small-mark svg{width:16px;height:16px}.list-header{padding:12px 16px 14px}.list-title-row h1{font-size:22px}.new-note-button{display:none}.search-box{margin-top:14px}.note-scroll{padding:0 10px calc(96px + env(safe-area-inset-bottom))}.note-card{min-height:112px;padding:14px}.bottom-nav{position:fixed;z-index:8;right:0;bottom:0;left:0;display:grid;height:calc(66px + env(safe-area-inset-bottom));grid-template-columns:repeat(5,1fr);align-items:start;padding:6px 8px env(safe-area-inset-bottom);background:color-mix(in srgb,var(--surface) 94%,transparent);border-top:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.app-shell.editor-open .bottom-nav,.app-shell.ledger-open .bottom-nav{display:none}.bottom-nav>button:not(.bottom-add){display:flex;height:54px;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:0;color:var(--muted);font-size:9px;background:transparent;border:0}.bottom-nav>button.active{color:#b9780d}.bottom-nav svg{width:20px;height:20px}.bottom-add{display:grid;width:46px;height:46px;place-self:-20px center 0;place-items:center;color:#47320f;background:var(--accent);border:4px solid var(--surface-soft);border-radius:50%;box-shadow:0 5px 15px #91621440}.bottom-add svg{width:22px;height:22px}.editor-header{flex-basis:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 10px 0}.mobile-back{display:inline-grid}.editor-header-left{gap:6px}.editor-header-left .category-dot,.editor-header-left>svg,.editor-header-left .muted{display:none}.editor-actions{gap:0}.complete-button{width:36px;padding:0}.complete-button span{display:none}.editor-document{width:calc(100% - 32px);padding:34px 0 100px}.title-input{font-size:27px}.content-input{min-height:52vh;font-size:15px;line-height:1.9}.attachment-grid{grid-template-columns:1fr}.attachment-item.image-attachment{grid-template-columns:76px minmax(0,1fr) auto}.attachment-item>img{width:76px;height:76px}.editor-footer{position:fixed;right:0;bottom:0;left:0;min-height:calc(56px + env(safe-area-inset-bottom));padding:0 12px env(safe-area-inset-bottom);background:color-mix(in srgb,var(--surface) 95%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.editor-stats span:not(.save-dot),.category-select{display:none}.more-menu{top:calc(52px + env(safe-area-inset-top));right:10px}.toast{bottom:calc(78px + env(safe-area-inset-bottom))}}.todo-search{margin:10px 16px 0;flex-shrink:0}.hosted-app #app,.hosted-app .bottom-nav{width:min(100%,740px);margin-inline:auto}.hosted-app .mobile-fab{right:max(14px,calc((100vw - 740px)/2 + 14px))}.todo-content .todo-preview{display:-webkit-box;overflow:hidden;white-space:pre-line;-webkit-line-clamp:2;-webkit-box-orient:vertical}.today-todos{margin-bottom:10px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.today-todos h2{margin:0 0 8px;font-size:14px}.today-todos h2 small,.today-todos>p{color:var(--muted);font-size:12px}.today-todos>p{margin:0}.today-task{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;min-height:48px;border-top:1px solid var(--border)}.today-delay,.agenda-create button{min-height:32px;padding:4px 8px;background:var(--accent-soft);border:0;border-radius:6px;font-size:12px;cursor:pointer}.agenda-create{display:flex;gap:8px;margin:10px 0}.agenda-create button{display:inline-flex;align-items:center;gap:4px}.agenda-create svg{width:14px;height:14px}.content-links{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.content-links:empty{display:none}.content-links a{max-width:100%;color:var(--text);overflow-wrap:anywhere;font-size:13px}.attachment-item video{grid-column:1 / -1;width:100%;max-height:260px;border-radius:8px}.ledger-entry-edit{background:none;border:0;padding:0;text-align:start;cursor:pointer}#report-content>p{color:var(--muted)}#report-content h3{margin:16px 0 8px;font-size:14px}.report-stats,.report-days{display:grid;gap:8px}.report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.report-days{grid-template-columns:repeat(7,minmax(0,1fr))}.report-stats>span,.report-days>span{display:grid;gap:4px;text-align:center;font-size:12px}.report-stats>span{padding:10px;background:var(--surface-soft);border-radius:8px}.report-stats strong{font-size:19px}.report-days i{height:55px;background:linear-gradient(to top,var(--accent) var(--progress),var(--surface-soft) var(--progress));border-radius:5px}@media(max-width:380px){.ledger-scroll{padding-right:12px;padding-left:12px}.ledger-book-card{grid-template-columns:46px minmax(0,1fr) minmax(92px,auto);gap:9px;padding:12px 10px}.ledger-book-icon{width:46px;height:52px}.ledger-entry-row{grid-template-columns:34px minmax(0,1fr) minmax(82px,auto) 26px;gap:7px;padding-left:9px}.ledger-entry-icon{width:32px;height:32px}.editor-header-left>span:not(.category-dot){display:none}.list-title-row h1{font-size:20px}.quick-times{flex-wrap:wrap}.color-options{gap:8px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
