: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-row:hover{background:#eeeee7}.record-copy{flex:1;min-width:0}.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}}
