:root{--bg:oklch(99% .002 240);--surface:oklch(100% 0 0);--fg:oklch(18% .012 250);--muted:oklch(54% .012 250);--border:oklch(92% .005 250);--accent:oklch(58% .18 255);--surface-muted:oklch(97% .003 250);--surface-hover:oklch(95% .004 250);--accent-soft:color-mix(in oklch, var(--accent) 10%, white);--accent-border:color-mix(in oklch, var(--accent) 28%, var(--border));--shadow-popover:0 18px 48px oklch(18% .012 250/.12);--font-display:-apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;--font-body:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;--font-mono:"SFMono-Regular", "Cascadia Code", Consolas, ui-monospace, monospace}*{box-sizing:border-box}html,body{min-width:320px;height:100%;margin:0}body{color:var(--fg);background:var(--bg);font-family:var(--font-body);text-rendering:geometricprecision;font-size:14px;line-height:1.45}button,input{font:inherit}[hidden]{display:none!important}button{color:inherit}button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app-shell{background:var(--bg);grid-template-rows:auto minmax(0,1fr);min-height:100%;display:grid}.topbar{z-index:10;border-bottom:1px solid var(--border);background:color-mix(in oklch, var(--bg) 92%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);justify-content:space-between;align-items:center;gap:16px;min-height:58px;padding:10px 18px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:10px;min-width:0;display:flex}.brand-mark{border:1px solid var(--border);width:32px;height:32px;color:var(--fg);background:var(--surface);border-radius:7px;flex:0 0 32px;place-items:center;display:grid}.brand-mark svg{stroke-width:1.8px;width:17px;height:17px}.brand-copy{min-width:0}.brand-copy h1,.brand-copy p,.panel-heading h2,.panel-heading p,.subject-strip h2,.subject-help,.eyebrow,.empty-note,.meta-list,.text-preview,.empty-card p{margin:0}.brand-copy h1{font-family:var(--font-display);font-size:14px;font-weight:650;line-height:1.2}.brand-copy p{max-width:54vw;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.4;overflow:hidden}.toolbar{justify-content:flex-end;align-items:center;gap:8px;display:flex}.download-dropdown{flex:none;position:relative}.tool-button,.tab-button,.icon-button,.menu-button{appearance:none;border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:7px;transition:background .12s,border-color .12s,color .12s}.tool-button,.tab-button{min-height:34px;color:var(--fg);white-space:nowrap;justify-content:center;align-items:center;gap:7px;padding:0 12px;font-size:13px;font-weight:520;display:inline-flex}.tool-button svg,.tab-button svg,.menu-button svg,.drop-overlay svg{stroke-width:1.8px;width:16px;height:16px}.tool-button:hover,.tab-button:hover,.icon-button:hover,.menu-button:hover{background:var(--surface-hover);border-color:color-mix(in oklch, var(--muted) 24%, var(--border))}.tool-button:disabled,.tab-button:disabled,.menu-button:disabled{cursor:not-allowed;opacity:.44}.tool-button.primary{border-color:var(--fg);color:#fff;background:var(--fg);font-weight:620}.tool-button.primary:hover{background:oklch(12% .012 250);border-color:oklch(12% .012 250)}.download-menu{z-index:15;border:1px solid var(--border);background:var(--surface);min-width:220px;box-shadow:var(--shadow-popover);border-radius:8px;gap:4px;padding:6px;display:grid;position:absolute;top:calc(100% + 6px);right:0}.download-menu[hidden]{display:none}.menu-button{width:100%;min-height:34px;color:var(--fg);text-align:left;white-space:nowrap;background:0 0;justify-content:flex-start;align-items:center;gap:8px;padding:0 10px;font-size:13px;font-weight:520;display:flex}.workspace{grid-template-columns:314px minmax(0,1fr);min-height:0;display:grid}.sidebar-collapsed .workspace{grid-template-columns:minmax(0,1fr)}.sidebar{border-right:1px solid var(--border);background:color-mix(in oklch, var(--surface-muted) 74%, var(--bg));align-content:start;gap:18px;min-width:0;padding:16px;display:grid;overflow:auto}.side-panel-toggle{flex:0 0 34px}.panel{border-bottom:1px solid var(--border);gap:12px;min-width:0;padding-bottom:18px;display:grid}.panel:last-child{border-bottom:0;padding-bottom:0}.panel-heading{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.panel-heading h2{color:var(--fg);font-size:12px;font-weight:680;line-height:1.25}.panel-heading p{color:var(--muted);margin-top:2px;font-size:12px;line-height:1.35}.count-pill,.badge{border:1px solid var(--border);min-height:22px;color:var(--muted);background:var(--surface);font-variant-numeric:tabular-nums;border-radius:999px;align-items:center;padding:0 8px;font-size:12px;font-weight:620;display:inline-flex}.meta-list{gap:2px;display:grid}.meta-list div{border-bottom:1px solid color-mix(in oklch, var(--border) 70%, transparent);grid-template-columns:78px minmax(0,1fr);align-items:start;gap:10px;min-width:0;padding:7px 0;display:grid}.meta-list div:last-child{border-bottom:0}.meta-list dt{color:var(--muted);font-size:12px;font-weight:520}.meta-list dd{overflow-wrap:anywhere;min-width:0;color:var(--fg);margin:0;font-size:12px;line-height:1.45}.check-row{width:fit-content;min-height:30px;color:var(--muted);-webkit-user-select:none;user-select:none;align-items:center;gap:8px;font-size:13px;display:inline-flex}.check-row input{width:15px;height:15px;accent-color:var(--fg);margin:0}.attachments-list{gap:8px;display:grid}.attachment-item{border:1px solid var(--border);background:var(--surface);border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:10px;display:grid}.attachment-item:hover{border-color:color-mix(in oklch, var(--muted) 24%, var(--border))}.attachment-title{min-width:0;color:var(--fg);align-items:center;gap:8px;font-size:13px;font-weight:620;display:flex}.attachment-title span:first-child{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.attachment-detail{overflow-wrap:anywhere;color:var(--muted);font-family:var(--font-mono);margin-top:4px;font-size:11px;line-height:1.35}.icon-button{width:32px;height:32px;color:var(--muted);place-items:center;padding:0;display:grid}.icon-button svg{stroke-width:1.8px;width:16px;height:16px}.badge{min-height:18px;font-family:var(--font-mono);padding:0 6px;font-size:10px;font-weight:560}.badge.inline{border-color:var(--accent-border);color:color-mix(in oklch, var(--accent) 70%, var(--fg));background:var(--accent-soft)}.empty-note{border:1px dashed var(--border);color:var(--muted);background:color-mix(in oklch, var(--surface) 72%, var(--bg));border-radius:8px;padding:13px;font-size:13px}.reader{background:var(--surface);grid-template-rows:auto auto minmax(0,1fr);min-width:0;min-height:0;display:grid}.subject-strip{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 28px 18px;display:flex}.subject-strip>div{min-width:0}.eyebrow{color:var(--muted);margin-bottom:6px;font-size:12px;font-weight:620;display:block}.subject-strip h2{overflow-wrap:anywhere;color:var(--fg);font-family:var(--font-display);font-size:26px;font-weight:680;line-height:1.22}.subject-help{color:var(--muted);margin-top:8px;font-size:13px}.remote-toggle{border:1px solid var(--border);background:var(--surface);border-radius:7px;flex:none;justify-content:center;min-height:34px;padding:0 10px}.tabs{border-bottom:1px solid var(--border);background:var(--surface);gap:6px;padding:8px 22px;display:flex}.tab-button{min-width:90px;min-height:32px;color:var(--muted);background:0 0;border-color:#0000}.tab-button.active{border-color:var(--border);color:var(--fg);background:var(--surface-hover);font-weight:620}.preview-shell{background:var(--surface);min-height:0;position:relative;overflow:hidden}.html-preview,.text-preview{background:var(--surface);border:0;width:100%;height:100%}.text-preview{color:var(--fg);font-family:var(--font-mono);white-space:pre-wrap;padding:32px 44px;font-size:12px;line-height:1.65;overflow:auto}.source-preview{word-break:break-word}.empty-state{z-index:1;color:var(--muted);background:var(--surface);place-items:center;padding:24px;display:grid;position:absolute;inset:0}.empty-card{border:1px solid var(--border);text-align:center;background:var(--surface);border-radius:8px;justify-items:center;gap:14px;width:min(500px,100%);padding:28px;display:grid}.empty-card>svg{width:32px;height:32px;color:var(--muted);stroke-width:1.7px}.empty-card strong{color:var(--fg);font-size:16px;font-weight:660;display:block}.empty-card p{max-width:360px;color:var(--muted);margin-top:6px;font-size:13px;line-height:1.55}.hidden-input{display:none}.drop-overlay{z-index:20;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:oklch(18% .012 250/.24);place-items:center;display:none;position:fixed;inset:0}.drag-over .drop-overlay{display:grid}.drop-overlay>div{border:1px solid var(--border);color:var(--fg);background:var(--surface);box-shadow:var(--shadow-popover);border-radius:8px;place-items:center;gap:10px;padding:26px 32px;font-size:15px;font-weight:620;display:grid}.drop-overlay svg{width:26px;height:26px;color:var(--accent)}.status-toast{z-index:30;border:1px solid var(--border);max-width:min(380px,100vw - 32px);color:var(--fg);background:var(--surface);box-shadow:var(--shadow-popover);opacity:0;pointer-events:none;border-radius:8px;padding:11px 13px;font-size:13px;line-height:1.42;transition:opacity .13s,transform .13s;position:fixed;bottom:16px;right:16px;transform:translateY(8px)}.status-toast-visible{opacity:1;transform:translateY(0)}@media (width<=980px){.topbar{flex-direction:column;align-items:stretch}.brand-copy p{max-width:calc(100vw - 84px)}.toolbar{justify-content:stretch}.tool-button{flex:1 1 0;min-width:0}.workspace{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--border);grid-template-columns:minmax(0,1fr) minmax(0,1fr);overflow:visible}.panel{border-bottom:0;padding-bottom:0}.reader{min-height:62vh}}@media (width<=640px){.topbar,.sidebar,.subject-strip,.tabs{padding-inline:12px}.toolbar,.tabs{scrollbar-width:none;overflow-x:auto}.toolbar::-webkit-scrollbar{display:none}.tabs::-webkit-scrollbar{display:none}.toolbar .tool-button{flex:none}.sidebar{grid-template-columns:1fr}.subject-strip{gap:14px;display:grid}.subject-strip h2{font-size:22px}.remote-toggle{justify-content:flex-start;width:fit-content}.tab-button{min-width:auto}.preview-shell{min-height:58vh}.text-preview{padding:20px}.meta-list div{grid-template-columns:1fr;gap:2px}}
