:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ink:#f4f7f2;--muted:#a8b3aa;--line:#333a35;--paper:#171a18;--surface:#0d0f0e;--surface-raised:#202521;--green:#3fc79f;--green-dark:#7fe2c6;--cyan:#69c7d4;--red:#ff8a7a;--yellow:#f4cb61;--shadow:#00000057;--account-accent:var(--cyan);--account-accent-soft:#69c7d424;--account-accent-line:#69c7d475;--account-accent-ink:#071012}*{box-sizing:border-box}body{background:var(--surface);color:var(--ink);letter-spacing:0;margin:0;font-family:Arial,Helvetica,sans-serif}button,input,select,textarea{font:inherit;letter-spacing:0}button,.button-link{border:1px solid var(--green);background:var(--green);color:#07110d;cursor:pointer;border-radius:8px;justify-content:center;align-items:center;min-height:40px;padding:0 14px;text-decoration:none;display:inline-flex}button:disabled{cursor:progress;opacity:.72}button.secondary,.secondary-link{background:var(--surface-raised);color:var(--green-dark)}button.ghost{border-color:var(--line);color:var(--ink);background:0 0}input,select,textarea{border:1px solid var(--line);width:100%;color:var(--ink);background:#101311;border-radius:8px;padding:10px 12px}button:hover,.button-link:hover,.text-link:hover{filter:brightness(1.08)}button:focus-visible,.button-link:focus-visible,input:focus-visible,textarea:focus-visible,.text-link:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}input::placeholder,textarea::placeholder{color:#79847c}textarea{resize:vertical}label{color:var(--muted);gap:6px;font-size:.9rem;display:grid}h1,h2,h3,h4,p{margin-top:0}h1{max-width:780px;margin-bottom:10px;font-size:clamp(2rem,4vw,3.15rem);line-height:1.04}h2{margin-bottom:4px;font-size:1.6rem}h3,h4,h5{margin-bottom:8px}h5{margin-top:0;font-size:1rem}.dashboard{min-height:100vh}.topbar{border-bottom:1px solid var(--line);background:#121512;justify-content:space-between;align-items:flex-start;gap:20px;padding:42px max(20px,5vw) 30px;display:flex}.command-header,.app-toolbar{border-bottom:1px solid var(--line);background:#121512;grid-template-columns:minmax(0,1fr) minmax(320px,520px);align-items:center;gap:20px;padding:18px max(20px,5vw);display:grid}.command-title{max-width:720px}.command-title h1{margin-bottom:4px;font-size:clamp(1.8rem,3vw,2.45rem);line-height:1.08}.command-title p:last-child{margin-bottom:0}.command-panel{justify-items:end;gap:10px;display:grid}.topbar.compact h1{font-size:clamp(2rem,4vw,3.4rem)}.topbar-actions,.item-actions{flex-wrap:wrap;gap:10px;display:flex}.scan-form,.draft-now-form{display:inline-flex}.defer-draft-form{grid-template-columns:minmax(88px,112px) auto;align-items:end;gap:10px;display:grid}.draft-now-form.with-feedback{gap:10px;width:min(100%,420px);display:grid}.draft-feedback-field{color:var(--muted)}.draft-feedback-field textarea{min-height:74px}.scan-summary{border:1px solid var(--line);width:min(100%,500px);color:var(--muted);background:#101311;border-radius:8px;grid-template-columns:10px minmax(0,1fr);align-items:start;gap:10px;padding:10px;display:grid}.scan-summary strong{color:var(--ink);margin-bottom:4px;display:block}.scan-summary p{margin-bottom:0}.scan-summary.success{border-color:#3fc79f6b}.scan-summary.danger{background:#ff8a7a14;border-color:#ff8a7ab8}.status-dot{background:var(--account-accent);width:10px;height:10px;box-shadow:0 0 0 4px var(--account-accent-soft);border-radius:50%;margin-top:4px}.scan-summary.idle .status-dot{background:var(--muted);box-shadow:0 0 0 4px #a8b3aa1f}.scan-summary.success .status-dot{background:var(--green);box-shadow:0 0 0 4px #3fc79f24}.scan-summary.danger .status-dot{background:var(--red);box-shadow:0 0 0 4px #ff8a7a24}.scan-chip-row{flex-wrap:wrap;gap:6px;display:flex}.result-chip{border:1px solid var(--line);min-height:28px;color:var(--muted);border-radius:8px;align-items:center;padding:0 9px;display:inline-flex}.result-chip.good{color:var(--green-dark);border-color:#3fc79f7a}.result-chip.warn{color:var(--yellow);border-color:#f4cb6185}.result-chip.danger{color:var(--red);border-color:#ff8a7a9e}.pending-button{gap:8px}.scan-button{min-width:138px}.draft-button{min-width:112px}.signout-button{min-width:92px}.save-button{min-width:78px}.mark-button{min-width:134px}.skip-button{min-width:86px}.defer-button{min-width:118px}.send-button{min-width:128px}.settings-save-button,.magic-link-button{min-width:142px}.button-spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:14px;height:14px;animation:.7s linear infinite spin}.pending-button-hint{color:var(--muted);text-align:right;flex-basis:100%;font-size:.84rem}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@keyframes spin{to{transform:rotate(360deg)}}.eyebrow{color:var(--account-accent);text-transform:uppercase;margin-bottom:8px;font-size:.78rem;font-weight:700}.muted{color:var(--muted)}.notice{border:1px solid var(--line);background:var(--paper);border-radius:8px;margin:18px max(20px,5vw);padding:12px 14px}.notice.success{border-color:var(--green);color:var(--green-dark);background:#3fc79f1a}.notice.danger{border-color:var(--red);color:var(--red);background:#ff8a7a1a}.auto-sync-report{background:#101311;border:1px solid #69c7d461;border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;margin:18px max(20px,5vw);padding:16px;display:flex}.auto-sync-report.danger{background:#ff8a7a14;border-color:#ff8a7aad}.auto-sync-report-copy{gap:10px;min-width:min(100%,420px);display:grid}.auto-sync-report-copy h2,.auto-sync-report-copy p{margin-bottom:0}.auto-sync-issues{gap:10px;display:grid}.auto-sync-issue{border-left:3px solid #ff8a7ab8;gap:4px;padding-left:12px;display:grid}.auto-sync-issue strong{color:var(--ink)}.auto-sync-issue p{color:var(--muted)}.auto-sync-report-actions{align-items:center;display:flex}.scan-result{font-weight:700}.loading-panel{border:1px solid var(--line);background:var(--surface-raised);color:var(--muted);border-radius:8px;align-items:center;gap:10px;padding:14px 16px;display:inline-flex}.stats-grid{border-bottom:1px solid var(--line);background:var(--line);grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;display:grid}.stat{background:var(--paper);min-height:120px;padding:22px max(20px,5vw)}.stat span{color:var(--muted);display:block}.stat strong{margin-top:10px;font-size:2.4rem;display:block}.metrics-strip{border-bottom:1px solid var(--line);background:#101311;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:0 max(20px,5vw);display:grid}.work-metric{border-right:1px solid var(--line);background:0 0;align-content:center;gap:6px;min-height:70px;padding:14px 0;display:grid}.work-metric:last-child{border-right:0}.work-metric span{color:var(--muted);font-weight:700}.work-metric strong{font-size:1.55rem;line-height:1}.metric-hot strong,.metric-warn strong{color:var(--yellow)}.metric-ready strong{color:var(--green-dark)}.band{border-bottom:1px solid var(--line);background:var(--paper);padding:30px max(20px,5vw)}.band.quiet{background:#101311}.section-heading{justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px;display:flex}.workspace-heading{justify-content:space-between;align-items:end;gap:20px;margin-bottom:10px;display:flex}.workspace-heading h2,.workspace-heading p{margin-bottom:0}.command-work{gap:22px;display:grid}.priority-section{gap:12px;display:grid}.priority-heading{border:0;border-bottom:1px solid var(--line);background:0 0;border-radius:0;justify-content:space-between;align-items:center;gap:16px;padding:4px 0 8px;display:flex}.priority-heading h3,.priority-heading p{margin:0}.priority-heading h3 span{color:var(--muted);margin-left:6px;font-size:.92rem;font-weight:700}.section-due .priority-heading h3 span,.section-review .priority-heading h3 span{color:var(--yellow)}.section-drafted .priority-heading h3 span{color:var(--green-dark)}.account-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.account-grid.compact{gap:12px}.account-card,.item-card,.empty-row{border:1px solid var(--line);background:var(--surface-raised);box-shadow:none;border-radius:8px;padding:16px}.account-personal{--account-accent:#3fc79f;--account-accent-soft:#3fc79f24;--account-accent-line:#3fc79f80;--account-accent-ink:#07110d}.account-zk{--account-accent:#64a8ff;--account-accent-soft:#64a8ff24;--account-accent-line:#64a8ff85;--account-accent-ink:#07111f}.account-gcm{--account-accent:#f4cb61;--account-accent-soft:#f4cb6129;--account-accent-line:#f4cb618f;--account-accent-ink:#171104}.account-card{border-color:var(--account-accent-line)}.account-card.connected{border-left:3px solid var(--account-accent);background:0 0}.account-identity{align-items:center;gap:12px;min-height:48px;margin-bottom:16px;display:flex}.account-identity img,.avatar-fallback{background:var(--account-accent);width:36px;height:36px;color:var(--account-accent-ink);border-radius:8px;flex:0 0 36px;place-items:center;font-weight:700;display:grid}.account-identity p{color:var(--muted);overflow-wrap:anywhere;margin-bottom:0}.pill{border-radius:8px;padding:5px 8px;font-size:.88rem;display:inline-flex}.pill.good{background:var(--account-accent-soft);color:var(--account-accent)}.pill.danger{color:var(--red);background:#ff8a7a1f}.account-meta-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.account-meta-row span{color:var(--muted);font-size:.88rem}.account-needs-attention{border-color:#ff8a7a9e}.account-health-detail{color:var(--muted);margin-top:10px;margin-bottom:0}.item-stack{gap:12px;display:grid}.item-card{border-left:3px solid var(--account-accent);gap:16px;display:grid}.item-card.status-error{border-color:var(--red);border-left-color:var(--red)}.item-card.status-pending{border-color:var(--account-accent-line);border-left-color:var(--account-accent)}.item-card.status-drafted{border-color:var(--line);border-left-color:var(--account-accent)}.item-card.has-reply-review{border-color:var(--yellow);background:var(--surface-raised)}.reply-review{border:0;border-left:3px solid var(--yellow);background:0 0;border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 0 10px 12px;display:flex}.reply-review p{color:var(--muted);margin:4px 0 0}.item-card.status-satisfied,.item-card.status-sent{border-color:#69c7d459;border-left-color:var(--account-accent)}.item-card.status-cancelled{opacity:.78}.item-main{grid-template-columns:minmax(0,1fr) auto;gap:16px;display:grid}.item-subject-row{grid-template-columns:44px minmax(0,1fr);align-items:start;gap:12px;display:grid}.item-meta-row{flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px;display:flex}.account-chip,.status-badge,.followup-count-badge{text-transform:uppercase;border-radius:8px;align-items:center;min-height:26px;padding:0;font-size:.78rem;font-weight:700;display:inline-flex}.account-chip{color:var(--account-accent);background:0 0;gap:6px}.account-chip:before{content:"";background:var(--account-accent);border-radius:50%;width:7px;height:7px}.status-badge{color:var(--muted);border:0}.followup-count-badge{border:1px solid var(--line);color:var(--muted);text-transform:none;background:#ffffff08;padding:0 8px;font-weight:650}.status-badge.status-drafted{color:var(--green-dark);border-color:#3fc79f7a}.status-badge.status-error,.status-badge.status-processing{color:var(--red)}.subject-icon{border:1px solid var(--account-accent-line);background:var(--account-accent-soft);width:44px;min-width:44px;height:44px;color:var(--account-accent);border-radius:8px;place-items:center;display:grid}.subject-icon svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.item-main h4{overflow-wrap:anywhere}.item-meta{color:var(--account-accent);text-transform:uppercase;margin-bottom:4px;font-size:.84rem;font-weight:700}.item-dates{text-align:right;white-space:nowrap;align-content:start;gap:6px;display:grid}.item-dates span{color:var(--muted)}.inline-form{grid-template-columns:minmax(220px,300px) auto;align-items:end;gap:10px;display:grid}.draft-editor{border-top:1px solid var(--line);background:0 0;border-radius:0;gap:12px;padding:14px 0 0;display:grid}.draft-editor-heading{justify-content:space-between;align-items:start;gap:12px;display:flex}.draft-editor-heading h5,.draft-editor-heading p{margin-bottom:0}.draft-editor-heading span{color:var(--green-dark);border:0;border-radius:8px;padding:0;font-size:.82rem}.recipient-preview{border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:6px;padding:10px 0;display:grid}.recipient-line{grid-template-columns:48px minmax(0,1fr);align-items:start;gap:10px;display:grid}.recipient-line span{color:var(--muted);text-transform:uppercase;font-size:.78rem;font-weight:700}.recipient-line p{color:var(--ink);overflow-wrap:anywhere;margin-bottom:0}.primary-actions{justify-content:flex-end}.settings-form{gap:14px;max-width:960px;display:grid}.settings-panel{border:0;border-top:1px solid var(--line);background:0 0;border-radius:0;gap:12px;padding:18px 0 4px;display:grid}.settings-style-panel{background:0 0}.settings-panel h3,.settings-panel p{margin:0}.settings-account-grid,.settings-inline-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.settings-inline-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-account{border:1px solid var(--line);border-left:3px solid var(--account-accent);background:0 0;border-radius:8px;gap:12px;padding:12px}.settings-account strong,.settings-account small{display:block}.settings-account strong{color:var(--ink)}.settings-account small{color:var(--muted);overflow-wrap:anywhere;margin-top:4px}.days-input-row{color:var(--muted);grid-template-columns:minmax(76px,110px) auto;align-items:center;gap:8px;display:grid}.checkbox-row{color:var(--ink);align-items:center;gap:10px;display:flex}.checkbox-row input{width:auto;accent-color:var(--green)}.settings-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.settings-actions p{margin-bottom:0}.activity-panel{border:1px solid var(--line);box-shadow:none;background:0 0;border-radius:8px;gap:12px;margin-top:18px;padding:14px;display:grid}.activity-panel-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding-bottom:12px;display:flex}.activity-panel-heading h3,.activity-panel-heading p{margin-bottom:0}.activity-panel-heading span{border:1px solid var(--line);color:var(--muted);border-radius:8px;padding:6px 8px;font-size:.82rem}.activity-list{gap:2px;display:grid}.activity-row{border-radius:8px;grid-template-columns:12px minmax(0,1fr);align-items:start;gap:10px;padding:9px 8px;display:grid}.activity-row:hover{background:#ffffff08}.activity-dot{background:var(--muted);border-radius:50%;width:9px;height:9px;margin-top:5px;box-shadow:0 0 0 4px #a8b3aa1a}.activity-row strong{color:var(--ink);font-size:.94rem;display:block}.activity-row p,.activity-empty{color:var(--muted);margin-bottom:0}.activity-good .activity-dot{background:var(--green);box-shadow:0 0 0 4px #3fc79f1f}.activity-warn .activity-dot{background:var(--yellow);box-shadow:0 0 0 4px #f4cb611f}.activity-danger .activity-dot{background:var(--red);box-shadow:0 0 0 4px #ff8a7a1f}.auth-shell{place-items:center;min-height:100vh;padding:20px;display:grid}.auth-panel{border:1px solid var(--line);background:var(--surface-raised);width:min(100%,520px);box-shadow:0 22px 60px var(--shadow);border-radius:8px;padding:24px}.auth-form{gap:12px;margin:20px 0;display:grid}.text-link{color:var(--green-dark)}.policy-links{color:var(--muted);flex-wrap:wrap;gap:14px;margin-top:18px;display:flex}.policy-shell{min-height:100vh;padding:48px max(20px,10vw)}.policy-panel{width:min(100%,820px)}.policy-panel h1{margin-bottom:8px}.policy-panel h2{margin-top:30px}.policy-panel p{color:var(--muted);line-height:1.6}@media (max-width:850px){.topbar,.command-header,.app-toolbar,.section-heading,.workspace-heading,.item-main{flex-direction:column;grid-template-columns:1fr;align-items:stretch}.stats-grid,.metrics-strip,.account-grid,.settings-inline-grid,.settings-account-grid{grid-template-columns:1fr}.command-panel{justify-items:stretch}.scan-summary{width:100%}.priority-heading,.draft-editor-heading{flex-direction:column;align-items:stretch}.item-dates{text-align:left}.inline-form,.defer-draft-form{grid-template-columns:1fr}}
