:root{color:#292c2a;font-synthesis:none;text-rendering:optimizelegibility;--ink:#292c2a;--muted:#626b64;--green:#496653;--surface:#fffdfc;--border:#dddcd4;--danger:#8e352e;background:#f7f4ef;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Noto Sans CJK SC,sans-serif;font-size:16px;line-height:1.65}*{box-sizing:border-box}body{min-width:300px;margin:0}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.58}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline-offset:3px;outline:3px solid #8a6741}h1,h2,p,figure{margin:0}h1{letter-spacing:-.8px;font-size:28px;font-weight:650;line-height:1.4}h2{font-size:19px;font-weight:600;line-height:1.5}p{overflow-wrap:anywhere}.muted,.small-note{color:var(--muted)}.small-note{font-size:14px;line-height:1.7}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{z-index:100;background:var(--surface);padding:12px;position:fixed;top:-100px;left:12px}.skip-link:focus{top:10px}.app-header{max-width:900px;padding:calc(22px + env(safe-area-inset-top)) 28px 22px;border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;margin:auto;display:flex}.brand{letter-spacing:-1px;align-items:center;gap:10px;font-family:Georgia,Times New Roman,serif;font-size:26px;display:flex}.brand-mark{width:34px;height:38px;color:var(--green);text-align:center;border:1px solid #a8b5a8;border-radius:11px 11px 3px 3px;font-size:30px;line-height:35px;position:relative}.brand-mark span{background:#748b7a;border-radius:0 8px;width:10px;height:6px;position:absolute;top:-3px;right:-4px}.app-header nav{align-items:center;gap:10px;display:flex}.button{border:1px solid #0000;border-radius:12px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:11px 19px;font-size:16px;font-weight:550;line-height:1.4;display:inline-flex}.primary{background:var(--green);color:#fff}.primary:hover:not(:disabled){background:#3f5a49}.secondary{background:var(--surface);color:#36553f;border-color:#b8c1b8}.quiet{color:var(--green);background:0 0;padding-left:0;padding-right:8px}.small{padding:10px 14px;font-size:14px}.danger{color:var(--danger);background:#fff4f0;border:1px solid #c08b80}.icon-button{min-width:44px;min-height:44px;color:var(--muted);background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;display:inline-flex}.icon-button:hover{background:#e9ede5}.text-button{background:0 0;border:0;min-height:44px;padding:8px;font-size:14px}.text-link{color:var(--green);text-underline-offset:4px;min-height:44px;padding:8px 2px;font-size:14px;text-decoration:underline;display:inline-block}.page{max-width:760px;margin:auto;padding:42px 24px 32px}.eyebrow{color:var(--muted);letter-spacing:1px;margin-bottom:8px;font-size:14px}.page-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.count-label{color:var(--muted);white-space:nowrap;font-size:14px}.page-intro{color:var(--muted);margin:12px 0 32px}.section-heading{justify-content:space-between;align-items:center;gap:16px;margin:26px 0 12px;display:flex}.section-heading>span{color:var(--muted);font-size:14px}.record-list{border-top:1px solid var(--border)}.record-row{border-bottom:1px solid var(--border);align-items:center;gap:16px;min-height:94px;padding:20px 3px;display:flex}.record-copy strong{-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;font-size:16px;font-weight:550;display:-webkit-box;overflow:hidden}.record-copy p{color:var(--muted);margin-top:4px;font-size:14px}.row-symbol{width:38px;height:42px;color:var(--green);background:#e9eee5;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;font-size:23px;display:flex}.draft-row .row-symbol{color:#756246;background:#eee9dc}.row-chevron{color:#69756a;font-size:23px}.draft-section{margin-bottom:26px}.empty-state{text-align:center;padding:18px 0 36px}.empty-illustration{width:180px;height:134px;margin:0 auto 25px;position:relative}.paper{background:#eff1e8;border:1px solid #c2ccb9;border-radius:6px;width:88px;height:108px;position:absolute;top:12px;left:42px;transform:rotate(-12deg)}.front-paper{background:var(--surface);color:var(--green);flex-direction:column;gap:8px;padding:17px;display:flex;top:20px;left:65px;transform:rotate(7deg);box-shadow:0 7px 18px #454c3610}.front-paper span{background:#ccd3c6;width:100%;height:1px}.front-paper span:last-child{width:68%}.empty-state h2{margin-bottom:12px;font-size:21px}.empty-state>p:not(.small-note){color:var(--muted);line-height:1.9}.empty-state .button{margin:24px 0 14px;padding-inline:28px}.preview-note{color:var(--muted);border-top:1px solid var(--border);align-items:baseline;gap:9px;margin-top:30px;padding-top:18px;font-size:14px;line-height:1.8;display:flex}.status-dot{background:#748b7a;border-radius:50%;flex-shrink:0;width:6px;height:6px;margin-right:5px;display:inline-block}.preview-note .status-dot{background:#9d845b}.app-footer{border-top:1px solid var(--border);max-width:712px;padding:22px 0 calc(26px + env(safe-area-inset-bottom));color:var(--muted);justify-content:space-between;margin:12px auto 0;font-size:14px;display:flex}.app-footer a{align-items:flex-start;min-height:44px;display:inline-flex}.offline-banner{color:#3f5946;background:#e9eee5;max-width:900px;margin:0 auto;padding:10px 24px;font-size:14px}.notice{white-space:pre-wrap;background:#eeeee4;border-left:3px solid #8c9f82;border-radius:4px;margin:16px 0;padding:12px 15px;font-size:14px}.notice.error{color:#763a30;background:#fff2ed;border-color:#9b5448}.notice p+p{margin-top:8px}.notice .text-link{margin-left:8px}.notice.success{color:#36543e;background:#eaf0e6}.back-link{min-height:44px;color:var(--green);align-items:center;gap:5px;margin:-10px 0 25px;font-size:14px;display:inline-flex}.record-meta{color:var(--muted);margin:12px 0 25px;font-size:14px}.capture-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px;line-height:1.95}.detail-page h1{overflow-wrap:anywhere;font-size:25px}.detail-actions{gap:12px;margin:28px 0 12px;display:flex}.settings-page section{margin:30px 0}.settings-page section>p{margin-top:14px}.settings-list{border-top:1px solid var(--border);margin:16px 0}.settings-list>div{border-bottom:1px solid var(--border);justify-content:space-between;gap:20px;padding:13px 0;display:flex}.settings-list dt{color:var(--muted)}.settings-list dd{text-align:right;margin:0}.loading{padding-top:100px}.recovery-page h1{margin:30px 0 20px}.recovery-page p{margin-bottom:20px}.capture-dialog{width:min(100%,660px);max-width:100%;max-height:94dvh;color:var(--ink);background:0 0;border:0;border-radius:24px 24px 0 0;margin:auto auto 0;padding:0;position:fixed;bottom:0;overflow:visible}.capture-dialog::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#333c3159}.editor{background:var(--surface);flex-direction:column;max-height:94dvh;display:flex;overflow:hidden}.sheet-editor{border-radius:24px 24px 0 0;box-shadow:0 -10px 60px #28302412}.sheet-handle{background:#bfc7bb;border-radius:4px;flex-shrink:0;width:34px;height:4px;margin:12px auto 0}.editor-header{flex-shrink:0;justify-content:space-between;align-items:center;padding:18px 24px 10px;display:flex}.editor-header h1{font-size:24px}.editor-header .eyebrow{margin-bottom:3px;font-size:14px}.editor-header-actions{gap:4px;display:flex}.save-status{color:var(--muted);flex-shrink:0;padding:0 24px 12px;font-size:14px;line-height:1.6}.save-status.error{color:var(--danger)}.save-status.error .status-dot{background:var(--danger)}.save-status.dirty .status-dot,.save-status.saving .status-dot{background:#9d845b}.save-status.conflict{color:#78532c}.editor-scroll{overscroll-behavior:contain;flex:1;min-height:0;padding:0 24px 18px;overflow-y:auto}.editor textarea{resize:vertical;width:100%;min-height:180px;max-height:50dvh;color:var(--ink);background:0 0;border:0;border-top:1px solid #e4e4dc;border-radius:0;padding:18px 0;font-size:17px;line-height:1.85;display:block}.editor textarea::placeholder{color:#727b70}.editor textarea:focus{outline-offset:0;border-top-color:var(--green);outline:0}.editor-footer{padding:12px 24px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface);flex-shrink:0}.editor-tools{justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}.editor-footer>.primary{width:100%}.editor-page{max-width:800px;margin:0 auto}.full-editor{min-height:100dvh;max-height:100dvh;padding-top:env(safe-area-inset-top)}.full-editor .sheet-handle{display:none}.full-editor textarea{resize:none;min-height:40dvh;max-height:none}.attachment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px;display:grid}.attachment{border:1px solid var(--border);background:#f1f0e9;border-radius:10px;min-width:0;overflow:hidden}.attachment img{object-fit:contain;background:#eeeee7;width:100%;height:160px;display:block}.attachment figcaption{min-height:44px;color:var(--muted);justify-content:space-between;align-items:center;gap:5px;padding-left:9px;font-size:12px;display:flex}.attachment figcaption>span:first-child{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.attachment-actions{display:flex}.attachment-actions .icon-button{width:36px;min-width:36px;min-height:44px}.image-placeholder{height:160px;color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:12px;font-size:13px;display:flex}.recovery-actions{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.recovery-actions .button{font-size:14px}@media (width>=768px){.inbox-page{padding-top:52px}.empty-state{padding-top:30px}.capture-dialog{border-radius:24px;margin:auto;bottom:auto}.sheet-editor{border-radius:24px}.editor-page{padding:24px}.full-editor{border:1px solid var(--border);border-radius:20px;min-height:calc(100dvh - 48px);max-height:calc(100dvh - 48px)}.app-footer{margin-top:24px}}@media (width<=600px){.app-header{padding-left:18px;padding-right:16px}.page{padding:32px 18px 24px}.app-footer{margin:12px 18px 0}.page-heading{align-items:baseline}.empty-state h2{font-size:20px}.count-label{white-space:normal;text-align:right}.editor-header,.editor-scroll,.editor-footer,.save-status{padding-inline:18px}.attachment-grid{gap:10px}.settings-list{font-size:14px}.app-header nav{gap:4px}}@media (prefers-reduced-motion:no-preference){.button,.record-row{transition:background-color .15s}.capture-dialog[open]{animation:.18s ease-out appear}@keyframes appear{0%{opacity:.5;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}}.field-label{margin:1rem 0;font-weight:500;display:block}.field-label input{color:#292c2a;width:100%;font:inherit;background:#fffdfc;border:1px solid #929c93;border-radius:8px;min-height:44px;margin-top:.5rem;padding:.7rem;display:block}.history-row{overflow-wrap:anywhere;border-bottom:1px solid #d6dcd4;padding:1rem 0}.history-row summary{cursor:pointer;min-height:44px;padding:.5rem 0}.detail-actions{flex-wrap:wrap;gap:.75rem}.settings-page section{overflow-wrap:anywhere}.item-form label,.page>label,.notice label{margin:1rem 0;font-size:.95rem;display:block}.item-form input,.item-form textarea,.item-form select,.page>label input,.page>label select,.notice label select,.notice label textarea{border:1px solid var(--border,#ddd);background:var(--surface,#fff);width:100%;color:inherit;font:inherit;border-radius:.5rem;margin-top:.4rem;padding:.65rem;display:block}.item-form textarea{min-height:7rem}.page pre{white-space:pre-wrap;overflow-wrap:anywhere}.item-row{margin:.5rem 0}@media (width<=480px){.app-header nav{flex-wrap:wrap;gap:.4rem;font-size:.8rem}.app-header{align-items:center}.app-header .brand{margin-right:.4rem}}.diary-calendar{text-align:center;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:16px 0;display:grid}.diary-calendar button{border:1px solid var(--border);background:var(--surface);min-height:44px;color:inherit;border-radius:8px}.diary-calendar button[aria-pressed=true]{background:var(--green);color:#fff}.module-nav{z-index:30;padding:8px 12px calc(8px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fbfaf7f5;border-top:1px solid #dddcd4;grid-template-columns:repeat(5,minmax(0,1fr));display:grid;position:fixed;bottom:0;left:0;right:0}.module-nav a{color:#626b64;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:1px;min-height:50px;font-size:12px;display:flex}.module-nav a>span:first-child{font-size:23px;line-height:1.2}.module-nav a.active{color:#3e5b48;background:#e8eee5;font-weight:600}.app-footer{margin-bottom:88px}:root{--color-background:#f7f5f0;--color-surface:#fffdf9;--color-elevated:#fffefa;--color-text:#303630;--color-secondary:#616b62;--color-muted:#68736a;--color-border:#dedfd6;--color-primary:#4d6b58;--color-destructive:#963e37;--accent-sage:#e9eee4;--accent-blue:#eaf0f3;--accent-lavender:#eeebf3;--accent-peach:#f5eae1;--ink:var(--color-text);--muted:var(--color-secondary);--green:var(--color-primary);--surface:var(--color-surface);--border:var(--color-border);--danger:var(--color-destructive);--blue:var(--accent-blue);--lavender:var(--accent-lavender);--peach:var(--accent-peach);--font-page:2rem;--font-secondary-page:1.5rem;--font-section:1.25rem;--font-body:1rem;--font-reading:1.0625rem;--font-secondary:.9375rem;--font-caption:.875rem;--line-heading:1.35;--line-body:1.65;--line-reading:1.9;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-12:48px;--radius-control:12px;--radius-card:20px;--radius-sheet:24px;--border-width:1px;--shadow-elevated:0 8px 32px #30363012;--nav-height:76px;--visible-height:100dvh;--touch:44px;color:var(--color-text);background:var(--color-background);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Noto Sans CJK SC,sans-serif;font-size:100%;line-height:var(--line-body)}button,input,textarea,select{font:inherit}a,button,input,select,textarea,summary{touch-action:manipulation}.page{width:100%;max-width:720px;padding:var(--space-6) var(--space-6) calc(var(--nav-height) + var(--space-8));margin:auto}.page h1{font-size:var(--font-secondary-page);font-weight:600;line-height:var(--line-heading);letter-spacing:-.02em;margin:0 0 var(--space-6)}.page h1.page-title:not(.secondary-title),.page.module-landing h1,.page.home-page h1,.page.space-page h1{font-size:var(--font-page);font-weight:600}.page h2{font-size:var(--font-section);font-weight:600;line-height:var(--line-heading);letter-spacing:-.01em}.page h3{font-size:var(--font-body);font-weight:600;line-height:var(--line-body)}.page p,.page a,.page strong,.page h1,.page h2,.page h3{overflow-wrap:anywhere}.page>section,.page>.module-section{margin:var(--space-8) 0}.page>p{margin:var(--space-3) 0}.page>label{margin:var(--space-5) 0}.page-heading,.section-heading,.sheet-heading{justify-content:space-between;align-items:center;gap:var(--space-4);flex-wrap:wrap;display:flex}.page-heading{margin-bottom:var(--space-6)}.page-heading h1{margin:0}.section-heading{margin:var(--space-8) 0 var(--space-3)}.section-heading>span,.list-context,.small-note,.eyebrow,.record-meta,.scope-note{font-size:var(--font-caption);line-height:var(--line-body);color:var(--color-secondary);letter-spacing:0}.page-intro{font-size:var(--font-body);margin:var(--space-3) 0 var(--space-6)}.app-header{max-width:720px;padding:calc(var(--space-3) + env(safe-area-inset-top)) var(--space-6) var(--space-3);gap:var(--space-3);border:0}.brand{gap:var(--space-2);flex-shrink:0;font-size:1.5rem}.brand-mark{border-radius:10px 10px 3px 3px;width:28px;height:32px;font-size:26px;line-height:29px}.app-header nav{gap:var(--space-1);flex-wrap:nowrap}.icon-button{width:var(--touch);height:var(--touch);min-width:var(--touch);padding:var(--space-3);border-radius:var(--radius-control);color:var(--color-primary);background:0 0;border:0;justify-content:center;align-items:center;display:inline-flex}.button{min-height:var(--touch);font-size:var(--font-body);padding:var(--space-3) var(--space-5);gap:var(--space-2);border-radius:var(--radius-control);text-align:center;border:1px solid #0000;justify-content:center;align-items:center;font-weight:550;line-height:1.4;display:inline-flex}.button.primary{background:var(--color-primary);color:var(--color-surface);min-height:48px}.button.secondary{background:var(--color-surface);color:var(--color-primary);border-color:var(--color-border)}.button.quiet,.button.small,.text-link,.text-button{font-size:var(--font-secondary)}.button.quiet{padding:var(--space-3) var(--space-2);color:var(--color-primary);background:0 0}.button.danger{color:var(--color-destructive);border-color:var(--color-border);background:0 0}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--color-primary);outline-offset:3px}.button:hover:not(:disabled),.icon-button:hover{filter:brightness(.96)}.page label,.nook-sheet label,.filter-dialog label{font-size:var(--font-secondary);line-height:var(--line-body);color:var(--color-text);margin:var(--space-4) 0;display:block}.page .nook-input:not([type=checkbox]):not([type=radio]),.page .nook-textarea,.page .nook-picker,.nook-sheet input:not([type=checkbox]),.nook-sheet textarea,.nook-sheet select{width:100%;min-width:0;max-width:100%;min-height:48px;padding:var(--space-3) var(--space-4);margin:var(--space-2) 0 0;border:var(--border-width) solid var(--color-border);border-radius:var(--radius-control);background:var(--color-surface);color:var(--color-text);font-size:var(--font-body);line-height:var(--line-body);scroll-margin:var(--space-12) 0 calc(var(--nav-height) + var(--space-6));box-shadow:none;display:block}.page .nook-picker,.nook-sheet select{appearance:none;padding-right:var(--space-10);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234d6b58' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right var(--space-4) center}.page .nook-textarea,.nook-sheet textarea{resize:vertical;min-height:120px}.page .nook-input[type=checkbox],.page .nook-input[type=radio]{appearance:auto;width:22px;height:22px;accent-color:var(--color-primary);margin:var(--space-3) var(--space-3) var(--space-3) 0;vertical-align:middle;flex-shrink:0}:is(.page label:has(>input[type=checkbox]),.page label:has(>input[type=radio])){min-height:var(--touch);align-items:center;display:flex}.page [aria-invalid=true]{border-color:var(--color-destructive)!important}.page input:disabled,.page textarea:disabled,.page select:disabled{opacity:.6;background:var(--accent-sage)}.page fieldset{margin:var(--space-6) 0;border:0;min-width:0;padding:0}.page legend{font-size:var(--font-section);margin-bottom:var(--space-3);font-weight:600}.form-section,.item-form>fieldset>section,.sop-editor .history-row{margin:var(--space-6) 0;padding:var(--space-5) 0;border-top:1px solid var(--color-border)}.form-section h2,.sop-editor .history-row h2{margin-bottom:var(--space-4)}.item-form,.content-editor,.study-editor{padding-top:var(--space-6);padding-bottom:var(--space-12)}.item-form>h1,.study-editor>h1,.content-editor>h1{margin-bottom:var(--space-4)}.back-link,.context-back{min-height:var(--touch);align-items:center;gap:var(--space-2);color:var(--color-primary);font-size:var(--font-secondary);margin:0 0 var(--space-3);display:inline-flex}.context-bar{max-width:720px;padding:0 var(--space-6);margin:auto}.context-bar .back-link{margin:0}.context-bar+.page{padding-top:var(--space-3)}.record-row,.sop-page .record-row,.study-link{justify-content:space-between;align-items:center;gap:var(--space-4);min-height:72px;padding:var(--space-4) 0;border:0;border-bottom:1px solid var(--color-border);color:var(--color-text);background:0 0;border-radius:0;margin:0;display:flex}.record-row strong,.study-link strong{font-size:var(--font-body);line-height:var(--line-body);font-weight:550}.record-copy{flex:1;min-width:0}.record-row p{font-size:var(--font-caption);line-height:var(--line-body);color:var(--color-secondary);margin-top:var(--space-1)}.record-row>svg,.row-chevron{color:var(--color-secondary);flex-shrink:0}.record-row:hover{background:var(--accent-sage)}.record-row .entry-excerpt,.result-snippet{font-size:var(--font-secondary);line-height:var(--line-body);margin-top:var(--space-2);color:var(--color-text);-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.quiet-empty,.study-empty{color:var(--color-secondary);padding:var(--space-4) 0;line-height:var(--line-body);margin:0}.focus-surface,.home-page .home-next,.study-hero.focus-surface{background:var(--accent-sage);border-radius:var(--radius-card);padding:var(--space-6);margin:var(--space-6) 0}.focus-surface .record-row{padding:var(--space-3) 0;border:0}.focus-surface h2{margin-bottom:var(--space-3)}.study-hero.empty-focus{margin:0 0 var(--space-8);background:0 0;border-radius:0;padding:0}.study-hero.empty-focus .quiet-empty{padding:0 0 var(--space-4)}.study-hero .primary{margin:var(--space-3) 0}.study-hero>.text-link{align-items:center;min-height:44px;display:flex}.study-subnav,.utility-links{gap:var(--space-2) var(--space-4);margin:var(--space-4) 0;color:var(--color-primary);font-size:var(--font-secondary);flex-wrap:wrap;display:flex}.study-subnav a,.utility-links a,.text-link{min-height:44px;padding:var(--space-2) 0;align-items:center;display:inline-flex}.study-card{box-shadow:none;margin:var(--space-6) 0;background:0 0;border:0;border-radius:0;padding:0}.study-fields label{margin:var(--space-4) 0}.study-fields .study-body{min-height:230px}.study-status{font-size:var(--font-secondary);padding:var(--space-3) 0}.study-check{min-height:44px}.study-save{gap:var(--space-3);margin:var(--space-6) 0;flex-wrap:wrap;display:flex}.study-save>.primary{width:auto}.home-heading{margin-bottom:var(--space-6);justify-content:space-between;align-items:center;display:flex}.home-heading h1{margin:0}.home-page .home-next h2{font-size:var(--font-section);margin:var(--space-3) 0;line-height:1.5}.next-reason{margin:var(--space-3) 0 var(--space-5);color:var(--color-secondary);font-size:var(--font-body)}.home-shortcuts{gap:var(--space-3);margin:var(--space-6) 0;flex-wrap:wrap;display:flex}.home-shortcuts a{align-items:center;gap:var(--space-2);min-height:44px;padding:var(--space-3) 0;color:var(--color-primary);font-size:var(--font-secondary);display:flex}.home-shortcuts a>span{margin-left:auto}.home-at-rest>svg{color:var(--color-primary)}.home-at-rest>p{margin:var(--space-3) 0 var(--space-5)}.home-at-rest>.text-link{margin-left:var(--space-3)}.home-options{margin:var(--space-4) 0}.filter-tabs{gap:var(--space-1);margin:var(--space-5) 0;flex-wrap:wrap;display:flex}.filter-tabs button[aria-pressed=true]{background:var(--accent-sage);border-color:var(--color-primary)}.space-categories{gap:var(--space-3);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.category-entry{justify-content:center;align-items:flex-start;gap:var(--space-3);min-height:120px;padding:var(--space-4);border-radius:var(--radius-card);background:var(--accent-sage);flex-direction:column;display:flex}.category-entry.blue{background:var(--accent-blue)}.category-entry.peach{background:var(--accent-peach)}.category-entry h2{font-size:var(--font-body)}.category-entry>span:last-child{display:none}.category-icon{color:var(--color-primary);display:flex}.diary-write{margin-bottom:var(--space-2)}.diary-list .diary-entry{border-bottom:1px solid var(--color-border);padding:var(--space-5) 0;background:0 0;border-radius:0;min-height:0;margin:0}.content-detail>.capture-body,.diary-detail>.capture-body{font-size:var(--font-reading);line-height:var(--line-reading);padding:var(--space-6) 0;white-space:pre-wrap}.diary-detail>h1{font-family:inherit}.page .capture-body{font-size:var(--font-reading);line-height:var(--line-reading)}.page.diary-editor .content-title-input input{border:0;border-bottom:1px solid var(--color-border);padding:var(--space-3) 0;font-size:var(--font-section);background:0 0;border-radius:0}.page.diary-editor .prose-input textarea{padding:var(--space-3) 0;min-height:320px;font-size:var(--font-reading);line-height:var(--line-reading);background:0 0;border:0;border-radius:0}.content-metadata{margin:var(--space-6) 0}.image-picker{padding:var(--space-4);background:var(--color-surface);border-radius:var(--radius-control)}.page .image-picker input{background:0 0;border:0;padding-left:0}.history-row{padding:var(--space-5) 0}.history-row p{margin:var(--space-3) 0}.page pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:var(--font-secondary);line-height:var(--line-reading)}.attachment-grid{gap:var(--space-4);max-width:100%}.attachment-card{min-width:0}.attachment-card img{object-fit:contain;max-width:100%;height:auto}.detail-actions{gap:var(--space-2) var(--space-3);margin:var(--space-5) 0;flex-wrap:wrap;align-items:center;display:flex}.detail-actions>a:not(.button){min-height:44px;color:var(--color-primary);align-items:center;display:inline-flex}summary{justify-content:space-between;align-items:center;gap:var(--space-3);min-height:44px;padding:var(--space-3) 0;font-size:var(--font-secondary);color:var(--color-primary);cursor:pointer;list-style:none;display:flex}summary::-webkit-details-marker{display:none}summary:after{content:"";width:8px;height:8px;margin-right:var(--space-1);border-bottom:1.5px solid;border-right:1.5px solid;flex-shrink:0;transform:rotate(45deg)}details[open]>summary:after{transform:rotate(225deg)}details[open]>summary{margin-bottom:var(--space-3)}.secondary-panel{border-top:1px solid var(--color-border);margin-top:var(--space-6);padding-top:var(--space-2)}.global-more{position:relative}.global-menu{min-width:220px;max-width:calc(100vw - 48px);padding:var(--space-2);z-index:60;background:var(--color-elevated);border:1px solid var(--color-border);border-radius:var(--radius-card);box-shadow:var(--shadow-elevated);position:absolute;top:48px;right:0}.global-menu a{justify-content:space-between;align-items:center;gap:var(--space-4);padding:var(--space-3);border-radius:var(--radius-control);min-height:48px;font-size:var(--font-secondary);display:flex}.global-menu a:hover{background:var(--accent-sage)}.nook-sheet,.filter-dialog{border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;background:var(--color-elevated);color:var(--color-text);width:min(100%,560px);max-width:100%;max-height:calc(var(--visible-height) - 24px);padding:var(--space-6) var(--space-6) calc(var(--space-6) + env(safe-area-inset-bottom));overscroll-behavior:contain;box-shadow:var(--shadow-elevated);border:0;margin:auto auto 0;overflow:auto}.nook-sheet::backdrop,.filter-dialog::backdrop{background:#30363055}.sheet-heading{margin-bottom:var(--space-4);flex-wrap:nowrap}.sheet-body>section:first-child{margin-top:0}.sheet-done{width:100%;margin-top:var(--space-6)}.nook-sheet-control.content-tools{margin-top:var(--space-6)}.search-input-row{align-items:center;gap:var(--space-2);margin:var(--space-6) 0 var(--space-3);display:flex}.search-box{align-items:center;gap:var(--space-3);padding:0 var(--space-4);border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-surface);flex:1;min-width:0;margin:0!important;display:flex!important}.page .search-box input{padding:var(--space-3) 0;background:0 0;border:0;margin:0}.search-box:focus-within{outline:2px solid var(--color-primary)}.scope-note,.index-note{font-size:var(--font-caption)}.search-status:empty{display:none}.search-type-links{gap:var(--space-3);margin-top:var(--space-6);grid-template-columns:1fr 1fr;display:grid}.search-type-links a{min-height:48px;color:var(--color-primary);justify-content:space-between;align-items:center;display:flex}.row-symbol{color:var(--color-primary);flex-shrink:0;display:flex}.search-maintenance{margin-top:var(--space-8)}.filter-count{font-size:var(--font-caption)}.module-nav{z-index:30;align-items:stretch;gap:var(--space-1);width:100%;max-width:720px;padding:var(--space-2) max(var(--space-2),env(safe-area-inset-left)) calc(var(--space-2) + env(safe-area-inset-bottom));background:var(--color-surface);border-top:1px solid var(--color-border);display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.module-nav a{justify-content:center;align-items:center;gap:var(--space-1);min-width:0;min-height:52px;padding:var(--space-1);font-size:var(--font-caption);color:var(--color-secondary);border-radius:var(--radius-control);flex-direction:column;flex:1;line-height:1.4;display:flex}.module-nav a.active{background:var(--accent-sage);color:var(--color-primary);font-weight:600}.module-nav a svg{width:24px;height:24px}.module-nav a>span:first-child{font-size:inherit}.offline-banner{max-width:720px;padding:var(--space-2) var(--space-6);font-size:var(--font-secondary);margin:auto}.notice{padding:var(--space-4);font-size:var(--font-secondary);line-height:var(--line-body);border-radius:var(--radius-control)}.notice:empty,[role=status]:empty,[role=alert]:empty{display:none}.settings-list>div{gap:var(--space-2);flex-wrap:wrap}.settings-list dd{margin-left:0}.loading-state{padding:var(--space-6) 0}html[data-keyboard=true] .module-nav{display:none}html[data-keyboard=true] .page{padding-bottom:var(--space-12)}@media (width<=360px){.page,.app-header{padding-left:var(--space-5);padding-right:var(--space-5)}.space-categories{gap:var(--space-2)}.category-entry{padding:var(--space-3)}.brand{font-size:1.375rem}.app-header nav{gap:0}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.search-input-row{z-index:20;background:var(--color-background);padding:var(--space-2) 0;position:sticky;top:0}.text-link{border:0;text-decoration:none}.study-subnav{border-top:1px solid var(--color-border);padding-top:var(--space-3);margin-top:var(--space-6)}.page a.text-link{color:var(--color-primary)}.study-status,.item-form>[role=status],.content-editor>[role=status]{padding:var(--space-1) 0;margin:var(--space-3) 0;font-size:var(--font-secondary);color:var(--color-secondary);background:0 0;border:0;border-radius:0}.page [role=alert]{color:var(--color-destructive)}.page.diary-editor .diary-date-field{justify-content:space-between;align-items:center;gap:var(--space-4);font-size:var(--font-caption);display:flex}.page.diary-editor .diary-date-field input{width:auto;max-width:65%;min-height:44px;padding:var(--space-2) var(--space-3);margin:0}.page.diary-editor .prose-input textarea{padding:var(--space-4);background:var(--color-surface);border-radius:var(--radius-control);outline-offset:0}.page .nook-input[role=switch]{appearance:none;border:1px solid var(--color-border);background:var(--color-border);border-radius:16px;width:44px;height:28px;position:relative}.page .nook-input[role=switch]:before{content:"";background:var(--color-surface);border-radius:50%;width:22px;height:22px;position:absolute;top:2px;left:2px}.page .nook-input[role=switch]:checked{background:var(--color-primary)}.page .nook-input[role=switch]:checked:before{left:18px}.page [hidden]{display:none!important}.page input.file-picker-input{opacity:0;pointer-events:none;height:1px;position:absolute;width:1px!important;min-height:0!important;padding:0!important}.diary-date-field>span{white-space:nowrap;flex-shrink:0}.page.diary-editor .diary-date-field input{flex:1;width:0;max-width:100%}.detail-section{margin:var(--space-8) 0}.detail-section h2{margin-bottom:var(--space-3)}[hidden]{display:none!important}
