:root{--paper:#f5f4ee;--white:#fffefb;--ink:#20352e;--muted:#65756b;--green:#255a47;--wash:#e8eee5;--line:#dce2d8;--amber:#785422;--red:#983d35;--radius:12px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:var(--green);text-underline-offset:3px}button,input,textarea,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 14px;border:1px solid var(--line);border-radius:7px;background:var(--white);color:var(--ink);font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;min-height:39px}button:hover,.button:hover{border-color:var(--green);background:var(--wash)}button:disabled{opacity:.45;cursor:wait}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#173e30;color:white}.danger{color:var(--red)}.text-button{background:transparent;border:0;padding:4px 0;justify-content:flex-start;min-height:30px}input,textarea,select{background:white;color:var(--ink);border:1px solid #cbd5ca;border-radius:7px;width:100%;padding:10px 12px}textarea{resize:vertical;min-height:100px;line-height:1.6}input[type=checkbox]{width:17px;height:17px;vertical-align:middle;accent-color:var(--green)}input[type=file]{font-size:13px}label{font-size:13px;font-weight:600;display:block;margin:12px 0 5px}label.inline{display:flex;align-items:center;gap:7px;margin:0;font-weight:400}input:focus,textarea:focus,select:focus,button:focus-visible,a:focus-visible{outline:2px solid #649782;outline-offset:3px}.shell{display:grid;grid-template-columns:242px 1fr;min-height:100vh}.sidebar{padding:34px 22px 24px;background:#edf0e8;border-right:1px solid var(--line);position:sticky;top:0;height:100dvh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:23px;font-weight:650;letter-spacing:-1px;margin:0 8px 40px}.brand small{display:block;letter-spacing:0;font-size:11px;font-weight:500;color:var(--muted)}.mark{background:var(--green);color:#fafbed;width:38px;height:42px;border-radius:12px 3px 12px 3px;display:grid;place-items:center;font:28px Georgia,serif}nav{display:flex;flex-direction:column;gap:4px}nav a{color:var(--muted);text-decoration:none;padding:11px 12px;border-radius:7px;font-size:13px;font-weight:550}nav a:hover,nav a.active{background:#dce6d9;color:var(--green)}#review-count{float:right;font-size:11px}.sidebar-foot{margin-top:auto;padding:30px 9px 0;font-size:12px;color:var(--muted)}.sidebar-foot p{font-size:11px;line-height:1.7}.sidebar-foot a{display:block;margin-top:24px}.local-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4f815d;margin-right:4px}.content{min-width:0}.topbar{height:70px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;background:#fafbf6;color:var(--muted);font-size:12px}.topbar button{padding:5px 12px;min-height:32px}main{padding:35px 38px 55px;max-width:1460px;margin:auto;min-height:calc(100vh - 120px)}h1{font:36px/1.15 Georgia,"Times New Roman",serif;letter-spacing:-1px;margin:8px 0 11px}h2{font:24px/1.3 Georgia,serif;letter-spacing:-.4px;margin:0 0 15px}h3{font-size:15px;margin:0 0 7px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:650;color:var(--muted)}.intro{margin-bottom:27px}.intro p{font-size:13px;color:var(--muted);max-width:680px;margin:0}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.grid{display:grid;grid-template-columns:minmax(240px,.83fr) minmax(360px,1.6fr);gap:22px}.two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:18px}.card.compact{padding:18px}.list{display:flex;flex-direction:column;gap:10px}.item{display:block;text-align:left;width:100%;padding:17px 18px;border:1px solid var(--line);border-radius:9px;background:var(--white);text-decoration:none;color:var(--ink)}.item:hover,.item.selected{border-color:#65927a;background:#f2f7ee}.item strong{font-size:14px;font-weight:600;display:block;overflow-wrap:anywhere}.item small,.muted,small{color:var(--muted);font-size:12px}.item p{font-size:12px;margin:7px 0 0;color:var(--muted);overflow-wrap:anywhere}.tag{display:inline-block;white-space:nowrap;border-radius:5px;background:var(--wash);color:var(--green);font-size:10px;letter-spacing:.25px;padding:3px 7px;font-weight:600}.tag.pending,.tag.needs_review,.tag.draft,.tag.stale{background:#f2ead7;color:var(--amber)}.tag.failed,.tag.interrupted,.tag.needs_attention,.tag.offline{background:#f5e4df;color:var(--red)}.tag.running,.tag.queued{background:#e4eaf4;color:#395976}.empty{padding:38px 24px;text-align:center;border:1px dashed #cdd8c9;border-radius:12px;color:var(--muted);font-size:13px}.empty strong{display:block;color:var(--ink);font:22px Georgia,serif;margin-bottom:8px}.copy{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:14px}.copy.code{font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;background:#f4f5ef;border-radius:7px;padding:15px;max-height:420px;overflow:auto}.packet{font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;min-height:350px}.notice{padding:14px 16px;background:#f3eddc;border:1px solid #e5dbbc;border-radius:8px;color:#6c5226;font-size:12px;margin:16px 0}.success{background:var(--wash);border-color:var(--line);color:var(--green)}.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}.divider{height:1px;background:var(--line);margin:23px 0}details{border-top:1px solid var(--line);padding:14px 0 0;margin-top:17px}summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--green)}.comment{border-left:2px solid #c9d8c7;padding:2px 0 3px 14px;margin:16px 0}.comment p{margin:4px 0 0;white-space:pre-wrap;font-size:13px}.chat-message{margin:16px 0;padding:20px 23px;background:white;border:1px solid var(--line);border-radius:12px}.chat-message.user{margin-left:8%;background:#e9eee2;border-color:#d9e1d0}.chat-message .eyebrow{margin-bottom:9px}.composer{position:sticky;bottom:14px;box-shadow:0 8px 25px #24413010}.composer textarea{min-height:110px}.calendar-day{margin:25px 0 10px;font:21px Georgia,serif}.calendar-event{display:grid;grid-template-columns:105px 1fr;gap:15px;padding:17px 0;border-bottom:1px solid var(--line)}.calendar-event time{font-size:12px;font-weight:600;padding-top:2px}.calendar-event p{margin:4px 0 0;font-size:12px;color:var(--muted)}.stat{padding:18px;background:#edf1e7;border-radius:9px}.stat strong{font:28px Georgia,serif;display:block}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.section-head{margin:24px 0 13px}.source{background:#f1f4ed;border-radius:7px;padding:15px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin:13px 0}.source a{font-weight:600}.loading{padding:70px 0}.checklist{display:flex;flex-direction:column;gap:10px}.task{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--line)}.task button{width:29px;min-height:29px;padding:0;flex-shrink:0}.task p{margin:0}.task small{display:block}footer{padding:17px 38px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:10px}#error,#notice{margin:18px 38px 0;padding:13px 17px;border-radius:7px;font-size:13px}#error{background:#f3e0db;color:var(--red)}#notice{background:#e3ebdb;color:var(--green)}[hidden]{display:none!important}.skip{position:absolute;left:15px;top:-50px;z-index:20;background:white;padding:10px}.skip:focus{top:10px}.wide{width:100%}.nowrap{white-space:nowrap}.connection-list{display:flex;flex-direction:column;gap:10px}.connection-row{padding:15px 0;border-bottom:1px solid var(--line)}.connection-row strong{font-size:13px}.connection-row p{font-size:12px;color:var(--muted);margin:4px 0}.history-event{padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.history-event small{display:block}.mail-preview{max-height:450px;overflow:auto}.saving{font-size:11px;color:var(--muted)}
@media(min-width:1500px){main{padding-top:48px}.topbar{padding-left:50px}}
@media(max-width:1050px){.shell{grid-template-columns:205px 1fr}.sidebar{padding:28px 13px}.brand{margin-bottom:30px}main{padding:28px 24px}.topbar{padding:0 24px}.grid,.two{grid-template-columns:1fr}.grid>.selection-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.card{padding:21px}h1{font-size:33px}}
@media(max-width:700px){.shell{display:block}.sidebar{height:auto;position:static;padding:18px 18px 0;border-right:0;border-bottom:1px solid var(--line)}.brand{margin:0 0 16px;font-size:20px}.brand small{font-size:10px}.mark{width:33px;height:35px;font-size:24px}nav{display:flex;flex-direction:row;overflow-x:auto;padding-bottom:12px;gap:6px}nav a{white-space:nowrap;padding:8px 11px;font-size:12px}#review-count{margin-left:7px}.sidebar-foot{display:none}.topbar{height:52px;padding:0 19px;font-size:11px}main{padding:24px 18px 38px}h1{font-size:32px}.intro{margin-bottom:23px}.grid>.selection-list{display:block}.card{padding:19px}.stats{gap:8px}.stat{padding:12px}.stat strong{font-size:24px}.stat small{font-size:10px}.calendar-event{grid-template-columns:86px 1fr}.actions button,.actions .button{flex-grow:1}.composer{bottom:8px}.packet{min-height:330px;font-size:12px}#error,#notice{margin:13px 18px 0}footer{padding:16px 18px}.chat-message{padding:17px}.chat-message.user{margin-left:4%}.two{gap:0}.row{gap:8px}.loading{padding-top:35px}input,textarea,select{font-size:16px}}

.conversation-select{max-width:520px}

.session-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.session-actions span{font-size:12px;color:var(--muted)}.access-card{max-width:650px}.access-card form{margin-top:24px}[hidden]{display:none!important}
.passkey-dialog{width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:26px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);color:var(--ink);box-shadow:0 15px 60px #20352e33}.passkey-dialog::backdrop{background:#20352e66}.passkey-dialog h2{margin:8px 0 14px}.passkey-dialog .actions button{min-height:46px}.passkey-dialog .copy{font-size:12px}

/* Mail: a compact inbox and reading surface, with setup kept in a dialog. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mail-main{max-width:1760px;padding:28px 30px 26px}
.mail-workspace{--mail-line:#e2e7de;--mail-muted:#778277}
.mail-workspace svg,.mail-dialog svg{width:18px;height:18px;flex-shrink:0;vertical-align:middle}
.mail-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px}
.mail-heading h1,.mail-heading h2{font-size:36px;margin:5px 0 0}.mail-heading .eyebrow{font-size:9px;letter-spacing:1.6px}
.mail-heading-actions{display:flex;gap:8px}.mail-heading-actions button{min-height:40px}
.mail-status-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 15px;border:1px solid var(--line);border-radius:9px;background:#edf2e8;margin-bottom:22px}
.mail-auto-status{display:flex;align-items:center;gap:10px;min-width:0}.mail-auto-indicator{width:7px;height:7px;border-radius:50%;background:#487d55;box-shadow:0 0 0 4px #487d5512;flex-shrink:0}.mail-auto-indicator.paused{background:#af8a42;box-shadow:0 0 0 4px #af8a4212}
.mail-auto-copy{font-size:11px;display:flex;align-items:center;gap:10px;color:var(--muted)}.mail-auto-copy strong{color:var(--green);font-size:12px;font-weight:600}.mail-status-note{font-size:10px;color:var(--muted);white-space:nowrap}
.mail-auto-status progress{appearance:none;width:64px;height:4px;border:0;border-radius:4px;background:#d7e2d1}.mail-auto-status progress::-webkit-progress-bar{background:#d7e2d1;border-radius:4px}.mail-auto-status progress::-webkit-progress-value{background:#598362;border-radius:4px}.mail-auto-status progress::-moz-progress-bar{background:#598362;border-radius:4px}
.mail-connection-note{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;padding:10px 14px;margin:-10px 0 16px;background:#f4ecdb;border-radius:7px;color:var(--amber)}.mail-connection-note button{font-size:11px;min-height:32px;padding:5px 9px}
.mail-workbench{display:grid;grid-template-columns:155px minmax(290px,.95fr) minmax(340px,1.2fr);gap:0;min-height:550px;align-items:start}
.mail-accounts{padding:13px 16px 0 0;min-width:0}.mail-accounts>.eyebrow{display:block;margin:0 0 13px 9px;font-size:9px;letter-spacing:1.4px}
.mail-account{display:flex;align-items:center;justify-content:flex-start;gap:9px;text-align:left;width:100%;border:0;background:transparent;border-radius:7px;margin-bottom:5px;padding:10px 9px;min-height:46px;color:#5c6d60;font-size:12px;font-weight:500}
.mail-account>span:last-child{min-width:0;overflow:hidden}.mail-account strong{display:block;font-size:12px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-account small{display:block;font-size:10px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:1px;color:#7c887d}
.mail-account.active{color:var(--green);background:#e3ebdc}.mail-account.active small{color:#657761}.mail-account.active strong{font-weight:650}.mail-account:first-of-type{margin-bottom:12px}
.account-dot{display:inline-block;width:6px;height:6px;border-radius:50%;flex-shrink:0;background:#739b7c}.account-dot.forest{background:#628668}.account-dot.blue{background:#6f91b5}.account-dot.plum{background:#9c80b0}.account-dot.ochre{background:#b69b5b}.account-dot.coral{background:#bb8270}
.mail-add-inbox{border:0;background:transparent;font-size:11px;padding:9px;color:var(--muted);margin-top:10px;justify-content:flex-start}.mail-rail-note{margin:38px 10px 0;color:#718268}.mail-rail-note svg{width:22px;height:22px}.mail-rail-note p{font:italic 15px/1.65 Georgia,serif;color:#7a8773}
.mail-list-panel{background:var(--white);border:1px solid var(--mail-line);border-radius:11px 0 0 11px;min-width:0;overflow:hidden}
.mail-list-tools{padding:17px 16px 0}.mail-search-wrap{display:flex;align-items:center;position:relative}.mail-search-wrap svg{position:absolute;left:11px;width:16px;color:#80917f}.mail-search-wrap input{height:39px;border:1px solid #e0e5da;background:#f6f7f1;font-size:12px;border-radius:7px;padding:8px 10px 8px 34px;min-width:0}.mail-search-wrap input::placeholder{color:#84907f}
.mail-filter-tabs{display:flex;gap:3px;margin:13px -3px 0;flex-wrap:wrap}.mail-filter-tabs button{border:0;border-radius:5px;background:transparent;min-height:31px;padding:5px 6px;font-size:10px;font-weight:550;color:#768173;gap:5px}.mail-filter-tabs button span{font-size:9px;font-weight:500;opacity:.8}.mail-filter-tabs button.active{background:#e7eddf;color:#345c3f}.mail-filter-tabs button.active span{color:#345c3f;opacity:1}.mail-filter-tabs button:hover{background:#edf1e7}
.mail-list-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 8px;font-size:10px;color:#889081}.mail-list-caption select{width:auto;max-width:145px;background:transparent;padding:3px 17px 3px 2px;font-size:10px;border:0;color:#768173}
.mail-message-list{overflow-y:auto;overscroll-behavior:contain;max-height:calc(100dvh - 348px);min-height:405px;scrollbar-width:thin;scrollbar-color:#d4ddd0 transparent}
.mail-message{display:flex;align-items:flex-start;gap:10px;padding:17px 15px;text-decoration:none;color:var(--ink);border-top:1px solid #eef0e9;border-left:3px solid transparent;transition:background .12s ease;min-width:0}.mail-message:hover{background:#f4f7ef}.mail-message.is-selected{background:#edf3e6;border-left-color:#477653}.mail-message.is-unread .mail-subject{font-weight:650;color:#263c2b}.mail-message.is-unread .mail-sender{font-weight:650;color:#344535}
.mail-avatar{width:31px;height:31px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:10px;font-weight:550;color:#4d7358;background:#e7eddf;flex-shrink:0;margin-top:2px;letter-spacing:.2px}.mail-avatar.blue{background:#e8edf3;color:#627e9b}.mail-avatar.plum{background:#ede8f1;color:#86669b}.mail-avatar.ochre{background:#f1eddf;color:#99854d}.mail-avatar.coral{background:#f2e8e2;color:#a57a65}.mail-avatar svg{width:15px;height:15px}
.mail-message-content{display:block;flex:1;min-width:0}.mail-message-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:3px}.mail-sender{font-size:11px;color:#65745f;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:5px}.mail-message-top time{font-size:9px;color:#929b8d;white-space:nowrap;flex-shrink:0}.unread-dot{width:5px;height:5px;background:#5e895d;border-radius:50%;flex-shrink:0}
.mail-subject{font-size:12px;font-weight:500;line-height:1.5;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-snippet{font-size:11px;color:#89907f;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:5px;overflow-wrap:anywhere}
.mail-message-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin-top:9px}.mail-account-label{display:inline-flex;align-items:center;gap:4px;font-size:8px;color:#909887;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.mail-account-label .account-dot{width:4px;height:4px}.mail-row-badges{display:flex;gap:4px;flex-wrap:wrap;align-items:center}.mail-badge{display:inline-flex;align-items:center;white-space:nowrap;font-size:8px;font-weight:550;line-height:1.5;background:#f1f1e9;color:#868773;border:1px solid #e8eadd;border-radius:4px;padding:2px 5px}.mail-badge.ready{color:#547655;background:#e6eede;border-color:#dce6d3}.mail-badge.urgent{color:#a76b43;background:#f5eadc;border-color:#ebdcc6}
.mail-list-empty{padding:64px 24px;text-align:center;color:var(--muted)}.mail-list-empty>svg{width:30px;height:30px;color:#98ad8d;margin-bottom:15px}.mail-list-empty h3{font:21px Georgia,serif}.mail-list-empty p{font-size:12px;line-height:1.7;margin-bottom:22px}.mail-list-empty button{font-size:11px}
.mail-load-more{padding:18px;text-align:center;border-top:1px solid var(--line)}.mail-load-more button{font-size:11px}.mail-window-note{font-size:10px;color:var(--muted);padding:12px 17px;margin:0;background:#f5f7ef;border-top:1px solid var(--line)}
.mail-reader{border:1px solid var(--mail-line);border-left:0;border-radius:0 11px 11px 0;background:#fffefb;min-height:550px;max-height:calc(100dvh - 206px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d4ddd0 transparent;min-width:0}
.mail-reader-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:550px;padding:45px 38px;color:#7f8e79}.mail-reader-empty>svg{width:40px;height:40px;color:#8ba17c;stroke-width:1;margin-bottom:28px}.mail-reader-empty .eyebrow{font-size:9px;letter-spacing:1.7px;color:#8b9982}.mail-reader-empty h2{font-size:27px;color:#526747;margin:11px 0}.mail-reader-empty p{font-size:12px;line-height:1.8;max-width:245px;margin:0;color:#8c9682}.mail-reader-tip{font-size:10px;color:#91a086;border:1px solid #ebeee4;background:#f8f9f2;border-radius:8px;display:flex;align-items:center;gap:10px;padding:13px 16px;text-align:left;max-width:280px;margin-top:35px}.mail-reader-tip svg{width:16px}
.mail-reading-content{padding:23px 27px 30px}.mail-reader-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:23px}.mail-back{display:none}.mail-account-pill{display:flex;align-items:center;gap:6px;font-size:10px;color:#839179;min-width:0;overflow-wrap:anywhere}.mail-gmail-link{font-size:10px;text-decoration:none;color:#6c8760}
.mail-reading-content h2{font:25px/1.3 Georgia,serif;margin:0 0 22px;letter-spacing:-.3px;overflow-wrap:anywhere}.mail-person{display:flex;gap:10px;align-items:flex-start;margin-bottom:17px}.mail-person>div{min-width:0;flex:1}.mail-person strong{display:block;font-size:12px;font-weight:600}.mail-person small{display:block;font-size:10px;color:#92a087;line-height:1.7;overflow-wrap:anywhere;margin-top:2px}.mail-person time{font-size:9px;color:#91a087;text-align:right;max-width:72px;flex-shrink:0;margin-top:2px}.mail-person .mail-avatar{width:33px;height:33px}
.mail-evidence{gap:5px;margin-bottom:23px}.mail-evidence .tag{font-size:9px;font-weight:500;background:#f2f4ed;color:#819072;padding:3px 6px}
.mail-assessment{background:#f0f4e9;border:1px solid #e2e9d7;border-radius:9px;padding:17px 18px;margin:20px 0}.mail-assessment>.row:first-child{margin-bottom:13px;gap:7px}.mail-assessment .eyebrow{display:flex;align-items:center;gap:5px;color:#66834f;font-size:9px;letter-spacing:1.3px}.mail-assessment .eyebrow svg{width:13px;height:13px}.mail-assessment small{font-size:9px;color:#839675}.mail-assessment p{font-size:12px;line-height:1.75;margin:10px 0;color:#516945}.mail-assessment p.muted{color:#7a8c6a;font-size:11px}.mail-assessment .tag{font-size:9px;font-weight:550;background:#e3ead8;color:#698252}.mail-assessment .tag.Urgent{background:#f3e6cf;color:#a07843}.mail-assessment .actions{align-items:center;margin-top:15px}.mail-assessment .actions button{min-height:29px;padding:5px 9px;font-size:10px;background:#fbfcf7;border-color:#d6e2c8;color:#65804f}
.mail-prepared-draft{padding:17px 18px;border:1px solid #e4e8df;border-radius:9px;margin:18px 0;background:#fbfcf7}.mail-prepared-draft h3{font:17px Georgia,serif;margin:0}.mail-prepared-draft .mail-badge{font-size:9px}.mail-prepared-draft p{font-size:12px;line-height:1.8;color:#7c8971}.mail-draft-excerpt{white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.mail-prepared-draft .actions{margin:14px 0 9px;gap:7px}.mail-prepared-draft .button{min-height:33px;font-size:10px;padding:7px 10px}.mail-prepared-draft small{font-size:9px;line-height:1.6;color:#95a18a}
.mail-original{padding-top:10px}.mail-original h3{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#90a086;font-weight:500;margin-bottom:14px}.mail-original .copy{font-size:12px;line-height:1.85;color:#6c7d60}
.mail-history,.mail-more-options{margin-top:24px;padding-top:15px;border-color:#e9ede3}.mail-history summary,.mail-more-options summary{font-size:11px;color:#7d8f70;font-weight:500}.mail-history details{margin-top:12px;border-color:#edf0e7}.mail-history .copy{font-size:11px;margin:14px 0;color:#77876b}.mail-more-options .actions button{font-size:10px;min-height:32px;padding:5px 9px}.mail-more-options p{font-size:11px}
.mail-reader-foot{font-size:9px;color:#a0aa94;margin:25px 0 0;line-height:1.8}.mail-bottom-note{font-size:10px;color:#929d89;margin:13px 0 0 155px}.mail-reading-loading{padding:32px;min-height:350px;color:var(--muted)}.mail-reading-loading p{font-size:12px}.mail-skeleton{height:18px;background:#e9eee3;border-radius:4px;margin:25px 0;width:90%}.mail-skeleton.short{width:55%;margin-top:-10px}.mail-mobile-account{display:none}
.mail-dialog{width:min(650px,calc(100% - 32px));max-height:calc(100dvh - 40px);border:1px solid var(--line);border-radius:15px;background:var(--white);color:var(--ink);padding:0;box-shadow:0 20px 70px #20352e33}.mail-dialog::backdrop{background:#20352e70;backdrop-filter:blur(3px)}.mail-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:20px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--white);z-index:1}.mail-dialog-header h2{font-size:25px;margin:0}.mail-dialog-header button{padding:7px;min-height:32px;width:32px;background:transparent;border:0}.mail-dialog-content{padding:20px}#mail-dialog-content{padding:20px 25px 27px}.mail-dialog .card{border:0;padding:0;background:transparent;margin-bottom:0}.mail-dialog .card h2{font-size:18px}.mail-dialog .notice{font-size:11px}.mail-dialog .connection-row strong{overflow-wrap:anywhere}.mail-dialog .connection-row p{font-size:11px}.mail-dialog .actions button{font-size:11px}.mail-dialog label{font-size:12px}.mail-dialog .source{font-size:11px}#mail-dialog-notice{margin:15px 25px 0}.mail-automation-settings{border-top:1px solid var(--line);margin-top:22px;padding-top:22px}.mail-automation-settings p{font-size:12px;color:var(--muted)}
@media(min-width:1600px){.mail-workbench{grid-template-columns:178px minmax(340px,1fr) minmax(390px,1.25fr)}.mail-list-tools{padding:20px 22px 0}.mail-message{padding:19px 20px}.mail-subject{font-size:13px}.mail-snippet{font-size:12px}.mail-message-top time{font-size:10px}.mail-account-label{font-size:9px}.mail-badge{font-size:9px}.mail-filter-tabs button{font-size:11px;padding:6px 9px}.mail-reading-content{padding:27px 35px}.mail-original .copy{font-size:13px}.mail-bottom-note{margin-left:178px}}
@media(max-width:1270px){.mail-main{padding:24px}.mail-workbench{grid-template-columns:minmax(280px,.95fr) minmax(340px,1.2fr)}.mail-accounts{display:none}.mail-mobile-account{display:block;margin-bottom:14px}.mail-mobile-account select{max-width:310px;height:38px;font-size:12px;background:#fffefb}.mail-bottom-note{margin-left:0}.mail-status-line{margin-bottom:15px}.mail-auto-copy{display:block}.mail-auto-copy>span{display:block;font-size:10px;margin-top:1px}.mail-message-list{max-height:calc(100dvh - 385px);min-height:420px}.mail-reader{max-height:calc(100dvh - 240px);min-height:565px}.mail-reader-empty{min-height:565px}}
@media(max-width:980px){.mail-workbench{display:block;min-height:0}.mail-reader{display:none;border:1px solid var(--line);border-radius:10px;max-height:none;min-height:0;overflow:visible}.mail-list-panel{border-radius:10px}.mail-message-list{max-height:none;min-height:300px;overflow:visible}.mail-workspace.has-selection .mail-list-panel,.mail-workspace.has-selection .mail-mobile-account{display:none}.mail-workspace.has-selection .mail-reader{display:block}.mail-back{display:inline-flex;font-size:11px;min-height:34px;padding:5px 9px}.mail-back svg{width:14px;height:14px}.mail-message{padding:18px 20px;gap:13px}.mail-avatar{width:35px;height:35px;font-size:11px}.mail-subject{font-size:13px}.mail-sender{font-size:12px}.mail-snippet{font-size:12px}.mail-account-label{font-size:9px}.mail-badge{font-size:9px}.mail-message-top time{font-size:10px}.mail-list-tools{padding:18px 20px 0}.mail-filter-tabs{gap:7px}.mail-filter-tabs button{font-size:11px;padding:6px 10px}.mail-list-caption{font-size:11px}.mail-list-caption select{font-size:11px}.mail-heading h1,.mail-heading h2{font-size:34px}.mail-heading-actions button{font-size:11px;padding:8px 10px}.mail-status-note{display:none}.mail-auto-status{width:100%}.mail-auto-status progress{margin-left:auto}.mail-reading-content h2{font-size:26px}.mail-original .copy{font-size:13px}.mail-reader-actions{margin-bottom:22px}.mail-person small{font-size:11px}.mail-assessment p{font-size:13px}.mail-assessment p.muted{font-size:12px}.mail-assessment small{font-size:10px}.mail-reader-foot{font-size:10px}}
@media(max-width:700px){.mail-main{padding:20px 14px 28px}.mail-heading{gap:12px;margin-bottom:16px}.mail-heading .eyebrow{font-size:8px;letter-spacing:1.2px}.mail-heading h1,.mail-heading h2{font-size:31px}.mail-heading-actions{gap:6px}.mail-heading-actions [data-action="mail-manage"]{width:37px;padding:8px;min-height:38px}.mail-heading-actions [data-action="mail-manage"] span{display:none}.mail-heading-actions button.primary{font-size:11px;min-height:38px;padding:8px 10px}.mail-heading-actions svg{width:16px;height:16px}.mail-status-line{padding:10px 12px;border-radius:8px;margin-bottom:12px}.mail-auto-copy strong{font-size:11px}.mail-auto-copy>span{font-size:10px}.mail-mobile-account select{max-width:none;font-size:14px;height:40px}.mail-list-tools{padding:15px 13px 0}.mail-search-wrap input{height:41px;font-size:16px;letter-spacing:-.2px}.mail-search-wrap input::placeholder{font-size:12px;letter-spacing:0}.mail-filter-tabs{gap:2px;margin-top:12px;justify-content:space-between}.mail-filter-tabs button{font-size:10px;padding:5px 7px;min-height:34px;gap:5px}.mail-filter-tabs button span{font-size:9px}.mail-list-caption{margin-top:12px;font-size:10px}.mail-list-caption select{font-size:12px;min-height:30px}.mail-message{padding:16px 12px;gap:10px}.mail-avatar{width:30px;height:30px;font-size:10px}.mail-sender{font-size:11px}.mail-message-top time{font-size:9px}.mail-subject{font-size:12px}.mail-snippet{font-size:11px;-webkit-line-clamp:2}.mail-account-label{font-size:9px}.mail-message-bottom{gap:5px}.mail-badge{font-size:8px}.mail-reading-content{padding:18px 17px 25px}.mail-reader-actions{gap:12px}.mail-account-pill{order:3;width:100%;font-size:10px}.mail-gmail-link{font-size:11px}.mail-reading-content h2{font-size:25px;margin-bottom:20px}.mail-person{gap:9px}.mail-person strong{font-size:12px}.mail-person small{font-size:10px}.mail-person time{font-size:9px;max-width:66px}.mail-assessment{padding:14px 15px}.mail-assessment>.row:first-child{display:block}.mail-assessment>.row:first-child>small{display:block;margin-top:5px}.mail-assessment p{font-size:12px}.mail-assessment p.muted{font-size:11px}.mail-assessment .actions small{font-size:9px}.mail-assessment .actions button{flex-grow:0;min-height:35px}.mail-prepared-draft{padding:15px}.mail-prepared-draft .actions .button{font-size:11px;min-height:39px}.mail-history summary,.mail-more-options summary{font-size:12px;padding:3px 0}.mail-connection-note{font-size:11px;margin:0 0 12px}.mail-bottom-note{font-size:9px;margin-top:12px}.mail-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 24px);border-radius:12px}.mail-dialog-header{padding:18px}.mail-dialog-header h2{font-size:24px}#mail-dialog-content{padding:15px 18px 23px}.mail-dialog input,.mail-dialog textarea,.mail-dialog select{font-size:16px}.mail-dialog .actions button{min-height:42px}.mail-dialog .connection-row strong{font-size:12px}.mail-dialog .notice{font-size:11px}}
@media(prefers-reduced-motion:reduce){.mail-message{transition:none}.mail-dialog::backdrop{backdrop-filter:none}}

/* Keep both desktop panes aligned and secondary text readable. */
.mail-snippet,.mail-reader-empty p,.mail-prepared-draft p{color:#69765f}
.mail-message-top time,.mail-list-caption,.mail-list-caption select,.mail-account-label,.mail-status-note,.mail-bottom-note,.mail-reader-foot,.mail-person small,.mail-person time,.mail-account-pill,.mail-reader-tip,.mail-prepared-draft small{color:#6b7961}
.mail-original .copy{color:#4f6347}.mail-assessment p.muted,.mail-assessment small,.mail-evidence .tag{color:#60764e}.mail-badge{color:#626b52}.mail-filter-tabs button{color:#66725e}.mail-history summary,.mail-more-options summary{color:#586f49}
.mail-body-note{font-size:11px;color:#65765d;margin:18px 0 0}.mail-attachments{margin-top:24px;padding-top:18px;border-top:1px solid #e2e9dc}.mail-attachments h3 span{margin-left:5px}.mail-attachments ul{list-style:none;padding:0;display:grid;gap:8px}.mail-attachments li{display:flex;gap:10px;align-items:center;padding:11px 13px;border:1px solid #e1e7dc;border-radius:8px;background:#f6f8f2;min-width:0}.mail-attachments li>span:last-child{min-width:0;overflow-wrap:anywhere}.mail-attachments svg{width:18px;height:18px}.mail-attachments strong{font-size:12px;font-weight:500}.mail-attachments small{display:block;font-size:10px;margin-top:3px;color:#607354}.mail-attachments p{font-size:11px;color:#65765d}
@media(min-width:981px){.mail-workbench{min-height:0}.mail-list-panel,.mail-reader{height:calc(100dvh - 355px);min-height:460px;max-height:none}.mail-list-panel{display:flex;flex-direction:column}.mail-list-tools,.mail-window-note{flex-shrink:0}.mail-message-list{flex:1;min-height:0;max-height:none}.mail-reader-empty{min-height:100%}.mail-subject{font-size:14px}.mail-sender{font-size:12px}.mail-snippet{font-size:12px}.mail-reading-content .mail-original .copy{font-size:13px}}
@media(min-width:981px) and (max-width:1270px){.mail-list-panel,.mail-reader{height:calc(100dvh - 405px);min-height:420px}}
@media(max-width:700px){.mail-subject{font-size:13px}.mail-snippet{font-size:12px}.mail-message-top time{font-size:10px}}
/* Mailbox controls: explicit owner actions, separate from the message link. */
.mail-row{display:flex;min-width:0;border-bottom:1px solid #e6e9e4;background:#fff}.mail-row.selected{background:#eff5f1}.mail-row .mail-message{flex:1;min-width:0;border-bottom:0;padding-left:8px}.mail-row-select{display:flex;flex-direction:column;align-items:center;gap:13px;width:38px;flex:none;padding:20px 0 12px 6px}.mail-row-select input,.mail-bulk input{width:17px;height:17px;margin:0;accent-color:#285c49;cursor:pointer}.mail-row-select input:disabled{cursor:default;opacity:.4}.mail-row-select .icon-only{width:30px;height:30px;min-height:30px;padding:6px;border:0;background:transparent;color:#718477}.mail-row-select .icon-only.is-starred{color:#a67418}.mail-action-button.is-starred svg{fill:#f5d68a;stroke:#976514}.mail-action-button:disabled{opacity:.42;cursor:default}.mail-action-button:focus-visible,.mail-row-select input:focus-visible{outline:2px solid #285c49;outline-offset:3px}.mail-action-button svg{width:17px;height:17px;flex:none}.mail-direct-controls{display:flex;flex-wrap:wrap;gap:7px;padding-top:12px}.mail-direct-controls button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 11px;font-size:12px;white-space:nowrap;background:white}.mail-direct-controls .mail-trash-action{color:#925349}.mail-action-hint{font-size:11px;color:#66776e;line-height:1.5;margin:8px 0 14px}.mail-bulk{display:flex;align-items:center;gap:8px;min-height:40px;margin-top:5px;border-top:1px solid #e8ece6;padding-top:10px}.mail-bulk .mail-select-all{display:flex;gap:7px;align-items:center;margin:0;white-space:nowrap;min-width:62px;font-size:11px;font-weight:600;color:#52675b}.mail-bulk small{font-size:10px;color:#6b7b71}.mail-bulk select{width:auto;min-width:0;flex:1;font-size:11px;min-height:34px;padding:6px;background:#fff}.mail-bulk button{font-size:10px;white-space:nowrap;min-height:34px;padding:6px 8px}.mail-action-feedback{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#edf5ef;border:1px solid #cdddce;border-radius:9px;padding:10px 13px;margin:0 0 14px;color:#2f5945;font-size:12px;line-height:1.5}.mail-action-feedback>span{flex:1}.mail-action-feedback.warning{color:#76522c;background:#fcf5e9;border-color:#e8d8b9}.mail-action-feedback button{font-size:11px;padding:6px 10px;min-height:34px;white-space:nowrap;background:transparent}.mail-list-panel>.mail-list-tools{flex:none}
@media(max-width:700px){.mail-row-select{width:34px;padding-left:3px}.mail-row .mail-avatar{display:none}.mail-row .mail-message{padding-left:7px}.mail-action-feedback{align-items:flex-start;flex-wrap:wrap}.mail-action-feedback>span{flex-basis:100%}.mail-direct-controls{gap:6px}.mail-direct-controls button{min-height:42px;flex:1;font-size:11px;padding:8px}.mail-direct-controls button svg{width:15px;height:15px}.mail-bulk select{font-size:12px}.mail-bulk button{font-size:11px}}
@media(min-width:981px){.mail-row .mail-message{padding-top:13px;padding-bottom:13px}.mail-row .mail-snippet{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mail-row-select{padding-top:15px}}
@media(max-width:700px){.mail-page .sidebar{padding-top:10px}.mail-page .brand{margin-bottom:8px}.mail-page nav{padding-bottom:8px}.mail-page nav a{display:flex;align-items:center;gap:5px;min-height:36px}.mail-page #review-count{float:none;margin:0}.mail-page main.mail-main{padding-top:16px}.mail-heading{margin-bottom:14px}.mail-heading .eyebrow{display:none}.mail-auto-copy>span{display:none}.mail-status-line{padding:8px 12px;margin-bottom:10px}.mail-mobile-account{margin-bottom:10px}.mail-mobile-account select{min-height:39px;padding:8px 10px}.mail-list-tools{padding:12px 12px 9px}.mail-list-caption{margin-top:8px}.mail-bulk{padding-top:6px;min-height:36px}.mail-direct-controls{display:grid;grid-template-columns:1fr 1fr}.mail-direct-controls button{font-size:12px}}
.mail-reader-feedback{display:none}
@media(max-width:980px){.mail-workspace.has-selection>.mail-action-feedback{display:none}.mail-reader-feedback{display:block}.mail-list-panel{overflow:visible}.mail-list-tools{position:sticky;top:0;z-index:2;background:var(--white);border-radius:12px 12px 0 0;box-shadow:0 3px 7px #22332206}}

/* Exact action review: readable on phones, with a distinct approval step. */
.approval-item strong,.approval-item small{overflow-wrap:anywhere;display:block}
.approval-review{scroll-margin-top:24px}
.approval-summary{display:grid;grid-template-columns:minmax(78px,auto) minmax(0,1fr);gap:10px 18px;margin:24px 0}
.approval-summary dt{font-size:13px;color:var(--muted,#6f7a73)}
.approval-summary dd{margin:0;overflow-wrap:anywhere}
.external-action .approval-summary dd{white-space:pre-line}
#shop-checkout-dialog{width:min(44rem,calc(100vw - 1.5rem));max-width:100%;max-height:90dvh;overflow:auto;padding:1rem;border:1px solid var(--line,#d4d9d3);border-radius:1.2rem}
#shop-checkout-dialog header{display:flex;align-items:center;justify-content:space-between;gap:1rem;position:sticky;top:-1rem;background:#fff;z-index:1;margin:-1rem -1rem 1rem;padding:.75rem 1rem;border-bottom:1px solid var(--line,#d4d9d3)}
#shop-checkout-dialog header h2{margin:0;font-size:1.25rem}
#shop-checkout-dialog .card{box-shadow:none;padding:0;border:0}
#shop-checkout-dialog fieldset{border:1px solid var(--line,#d4d9d3);border-radius:.7rem;padding:.8rem;margin:1rem 0}
.shop-payment-option{display:flex;align-items:center;gap:.8rem;padding:.75rem;overflow-wrap:anywhere}
.shop-payment-option input{width:1.2rem;height:1.2rem;flex:none}
.shop-payment-option span{white-space:pre-line}
#shop-checkout-dialog button{white-space:normal}
.approval-body{border:1px solid var(--line,#d8ddd7);background:#fafbf7;padding:18px;border-radius:12px;margin-bottom:20px;overflow-wrap:anywhere;max-height:65vh;overflow:auto}
.approval-consent{display:flex;gap:12px;align-items:flex-start;margin:24px 0;font-weight:600;line-height:1.6}
.approval-consent input{width:20px;height:20px;flex:0 0 20px;margin-top:4px;accent-color:#275847}
.approval-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.event-compose{margin:20px 0}
.event-compose summary{font-size:18px;font-weight:600}
.mail-reply-actions{margin:20px 0}
@media(max-width:640px){.approval-fields{grid-template-columns:minmax(0,1fr)}.approval-review{padding:20px}.approval-summary{gap:10px 12px}.approval-review button{white-space:normal}}

.approval-focus{max-width:880px;margin:0 auto}

.draft-sync-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:24px}
.draft-sync-header h3{margin:0}
.draft-conflict{border:1px solid #b89957;border-radius:12px;padding:18px;margin:20px 0;background:#fffaf0}
[data-form="draft"]{margin-top:24px}

/* Event times and the restricted calendar description renderer. */
.calendar-description{margin-top:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:14px;color:var(--ink)}.calendar-description p{font:inherit;color:inherit;margin:.65em 0}.calendar-description div{margin:.25em 0}.calendar-description ul,.calendar-description ol{padding-left:24px;white-space:normal}.calendar-description li{white-space:pre-wrap}.calendar-description h1,.calendar-description h2,.calendar-description h3,.calendar-description h4{font:600 15px/1.5 system-ui;margin:.8em 0 .3em;letter-spacing:normal}.calendar-description a{font-weight:550;text-decoration:underline;overflow-wrap:anywhere}.calendar-description blockquote{margin:10px 0;padding-left:14px;border-left:3px solid var(--line)}.calendar-description pre{white-space:pre-wrap}.calendar-description table{border-collapse:collapse;max-width:100%;table-layout:fixed;width:100%;white-space:normal}.calendar-description th,.calendar-description td{border:1px solid var(--line);padding:6px;vertical-align:top}.calendar-description hr{border:0;border-top:1px solid var(--line)}
/* One keyboard-accessible disclosure per calendar event. */
.calendar-agenda{padding:18px 20px}.calendar-day:first-child{margin-top:5px}.calendar-event{display:block;border:1px solid var(--line);border-radius:9px;background:var(--white);margin:8px 0;padding:0;overflow:hidden}.calendar-event-summary{display:grid;grid-template-columns:200px minmax(0,1fr) 18px;gap:16px;align-items:center;padding:12px 15px;list-style:none;color:var(--ink);font-weight:400;cursor:pointer}.calendar-event-summary::-webkit-details-marker{display:none}.calendar-event-summary:hover{background:#f0f4eb}.calendar-event-summary:focus-visible{outline:2px solid #649782;outline-offset:-3px;border-radius:8px}.calendar-when{min-width:0}.calendar-time-range{display:block;font-size:12px;font-weight:650;line-height:1.5}.calendar-time-range time{font-size:inherit;padding:0;white-space:nowrap}.calendar-duration{font-size:11px;color:var(--muted);font-weight:500;white-space:nowrap}.calendar-date-range{display:block;font-size:11px;color:var(--muted)}.calendar-event-title{min-width:0;display:flex;gap:5px 9px;align-items:center;flex-wrap:wrap;overflow-wrap:anywhere}.calendar-event-title>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;font-size:14px;line-height:1.4;font-weight:600}.calendar-event[open] .calendar-event-title>strong{-webkit-line-clamp:unset}.calendar-event-badges{display:inline-flex;gap:5px;flex-wrap:wrap}.calendar-event-badges:empty{display:none}.calendar-event-badges .tag{font-size:9px;padding:2px 6px}.calendar-expand-icon{font-size:20px;line-height:1;color:var(--green);text-align:center;transition:transform .15s}.calendar-event[open]>.calendar-event-summary{background:#eff3ea}.calendar-event[open] .calendar-expand-icon{transform:rotate(180deg)}.calendar-event-body{min-width:0;padding:4px 16px 16px;overflow-wrap:anywhere}.calendar-event-body>p{font-size:12px;margin:7px 0;color:var(--muted)}.calendar-event-body .calendar-source{font-size:11px;margin:9px 0}.calendar-event-body .calendar-description{margin-top:12px}.calendar-event-actions{margin-top:14px;font-size:12px}.calendar-conference{padding:11px 0 3px}.calendar-join-row{display:flex;gap:9px 12px;align-items:center;flex-wrap:wrap}.calendar-join{font-size:12px;min-height:36px}.calendar-meeting-address{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.calendar-entry{font-size:12px!important;margin-top:9px!important}.calendar-access-codes{display:block;font-size:12px;overflow-wrap:anywhere}.calendar-conference-notes{font-size:12px}.calendar-conference-notes p{margin:.4em 0}
@media(max-width:700px){.calendar-agenda{padding:14px 12px}.calendar-event-summary{grid-template-columns:minmax(0,1fr) 17px;gap:5px 7px;padding:11px 12px}.calendar-when{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 9px;grid-column:1}.calendar-time-range{font-size:12px}.calendar-duration{font-size:11px}.calendar-event-title{grid-column:1}.calendar-event-title>strong{font-size:13px}.calendar-expand-icon{grid-column:2;grid-row:1/3}.calendar-event-body{padding:3px 12px 14px}.calendar-description{font-size:14px}.calendar-join-row{gap:7px}.calendar-join{min-height:39px}.calendar-day{font-size:19px;margin-top:23px}.calendar-event-actions{font-size:12px}}


/* Owner email preferences and confirmed draft deletion. */
button.danger{color:#9f352a;border-color:#d9afa7;background:#fff5f2}button.danger:hover{background:#fbe7e1}
.mail-preference-actions{margin:18px 0}.mail-preference-rule{padding:18px 0;border-bottom:1px solid var(--line,#dce1da);overflow-wrap:anywhere}.mail-preference-rule strong,.mail-preference-rule small{display:block}.mail-preference-rule p{margin:8px 0}.mail-preference-rule .copy{max-height:160px;overflow:auto}

/* Summary-first mailbox. Email contents use text nodes / escaped markup only. */
.mail-summary-overview{display:flex;align-items:center;gap:12px;padding:13px 17px;border:1px solid #cedbcd;border-radius:10px;background:#edf2e9;text-decoration:none;color:var(--ink);margin-bottom:14px}.mail-summary-overview strong{display:block;font-size:14px}.mail-summary-overview small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.summary-symbol svg{width:23px;height:23px;color:var(--green)}.summary-open{margin-left:auto;white-space:nowrap;font-size:12px;font-weight:650}.mail-cleanup-settings{padding-bottom:26px;margin-bottom:22px;border-bottom:1px solid var(--line)}.mail-cleanup-settings .check-label{display:flex;align-items:flex-start;gap:10px;margin-top:16px}.mail-cleanup-settings .check-label input{width:auto;flex:0 0 auto;margin-top:4px}.mail-cleanup-settings p{font-size:13px;line-height:1.6}.mail-summary-page{max-width:1160px;margin:0 auto}.summary-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.summary-heading h1{margin-bottom:14px}.summary-heading p,.summary-scope{color:var(--muted);font-size:14px;line-height:1.6}.summary-heading>a{white-space:nowrap}.summary-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.summary-stats>div{padding:18px 22px;border:1px solid var(--line);border-radius:12px;background:#fffefb}.summary-stats strong{display:block;font:36px Georgia,serif;color:var(--green)}.summary-stats span{display:block;color:var(--muted);font-size:12px;margin-top:5px}.summary-focus{display:flex;gap:16px;justify-content:space-between;align-items:center;background:#e8eee3;padding:18px 22px;border-radius:12px}.summary-focus p{font-size:13px;margin:6px 0 0;color:var(--muted)}.summary-focus .actions{margin:0}.summary-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:26px 0 12px}.summary-toolbar select{max-width:340px;min-width:200px}.summary-toolbar label{font-size:12px}.summary-policy{display:flex;gap:12px;align-items:center}.summary-policy small{color:var(--muted)}.summary-day{margin-top:32px}.summary-day-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.summary-day-heading h2{font-size:22px;margin:0}.summary-day-heading span{font-size:12px;color:var(--muted)}.summary-category-counts{margin:12px 0 16px}.summary-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.summary-card{min-width:0;display:flex;flex-direction:column;background:#fffefb;border:1px solid var(--line);border-radius:12px;padding:22px}.summary-card h3{font-family:inherit;font-size:16px;line-height:1.4;margin:14px 0 5px}.summary-card h3 a{color:inherit;text-decoration:none}.summary-card h3 a:hover{text-decoration:underline}.summary-from{font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin:0}.summary-copy{font-size:14px;line-height:1.65;flex:1}.summary-card .actions{gap:6px;flex-wrap:wrap}.summary-card .actions .button,.summary-card .actions button{font-size:11px;padding:7px 9px;min-height:34px}.summary-state{font-size:10px;color:var(--muted);text-align:right}.summary-state.filed{color:#3b6c4b}.summary-reason{font-size:12px;color:#806236;background:#f4efe3;padding:10px;border-radius:7px}.summary-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:30px 0;font-size:12px;color:var(--muted)}
@media(max-width:980px){.summary-focus,.summary-toolbar{align-items:stretch;flex-direction:column}.summary-policy{justify-content:space-between}.summary-cards{grid-template-columns:1fr}.summary-heading{flex-wrap:wrap}.summary-heading h1{font-size:35px}.summary-toolbar select{max-width:none;width:100%}}
@media(max-width:600px){.summary-stats{gap:6px;margin:20px 0}.summary-stats>div{padding:14px 10px}.summary-stats strong{font-size:29px}.summary-stats span{font-size:10px}.summary-card{padding:18px}.summary-focus{padding:16px}.summary-open{font-size:0}.summary-open:after{content:'→';font-size:18px}.mail-summary-overview{gap:9px;padding:11px 12px}.mail-summary-overview strong{font-size:12px}.mail-summary-overview small{font-size:10px}.summary-policy{align-items:flex-start}.summary-heading h1{font-size:32px}.summary-day-heading h2{font-size:20px}}

/* Readable message links and explicit subscription controls. */
.mail-sender-actions{gap:8px;margin:14px 0}.mail-sender-actions button{font-size:12px;padding:7px 12px;min-height:36px}
.mail-original .mail-body{white-space:pre-line;overflow-wrap:anywhere;line-height:1.8}.mail-body a{color:var(--green,#285b4b);text-decoration:underline;text-underline-offset:3px}
.subscription-options section{padding:18px 0;border-top:1px solid var(--line,#dce1da)}.subscription-options section h3{margin:0 0 8px}.subscription-options small{display:block;line-height:1.6;margin:8px 0;color:#586c51}.subscription-options p{overflow-wrap:anywhere}.preference-shortcuts{padding:16px;background:#eef2e9;border-radius:10px;margin:16px 0 24px}.preference-shortcuts p{font-size:13px;line-height:1.6}
.mail-image-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:8px 0 18px;color:#607354;font-size:12px}.mail-image-controls:empty{display:none}.mail-image-controls small{flex-basis:100%;line-height:1.6}.mail-image-controls button{font-size:12px;min-height:36px}.mail-content-image{display:block;max-width:100%;height:auto;margin:8px auto;border-radius:4px}

.mail-original .mail-body:has(.mail-formatted){white-space:normal;line-height:normal;background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;color:#202124}.mail-formatted{display:block;max-width:100%;overflow:auto}
/* Owner-taught routines: a short instruction alongside a visible result. */
.routine-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.routine-heading p{max-width:620px;color:var(--muted)}
.routine-workspace{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:28px}.routine-workspace h2{font-size:23px}.routine-workspace h2 small{font:500 13px system-ui;color:var(--muted)}
.routine-rules,.routine-results{display:grid;gap:14px}.routine-rule,.routine-result{min-width:0;overflow-wrap:anywhere}.routine-rule{padding:22px}.routine-rule small{display:block;margin-top:6px}.routine-instruction{font-size:17px;line-height:1.6}.routine-rule .eyebrow{letter-spacing:.08em;font-size:10px}.routine-rule .actions{margin-bottom:0}
.routine-result{border:1px solid var(--line);border-radius:14px;background:var(--white);padding:22px}.routine-result h3{margin:16px 0 8px;font-size:19px}.routine-result>p{font-size:14px;line-height:1.7}.routine-result .row{gap:10px}.routine-result .tag{max-width:60%;white-space:normal;text-align:center}.routine-result details{margin-top:18px}.routine-result details p,.routine-result blockquote{font-size:13px}.routine-result blockquote,.routine-origin blockquote{margin:12px 0;padding:4px 0 4px 14px;border-left:3px solid #b9cbbb;color:var(--muted)}
.routine-history{margin-top:24px}.routine-history>.routine-result{margin-top:14px}.routine-calendar-fields{margin:20px 0;border:1px solid var(--line);border-radius:12px;padding:16px}.routine-calendar-fields legend{padding:0 7px;font-size:13px;font-weight:600}.routine-calendar-fields[hidden]{display:none}.routine-effect{line-height:1.6}.routine-editor{margin-bottom:28px}.routine-editor h2{margin-top:0}.routine-resolution{border-top:1px solid var(--line);padding-top:16px}.routine-resolution form{margin-top:18px}.routine-teach-entry,.routine-email,.routine-origin{padding:18px;border-radius:12px;background:#eff4ed;border:1px solid #d4e1d1;margin-bottom:24px}.routine-teach-entry p,.routine-email p{font-size:13px;line-height:1.6}.routine-email .button{margin:4px 4px 0 0}.routine-origin p{font-size:14px}.routine-origin{margin-top:22px}.routine-origin a{overflow-wrap:anywhere}
@media(max-width:1000px){.routine-workspace{grid-template-columns:minmax(0,1fr)}.routine-heading{align-items:flex-start}}
@media(max-width:640px){.routine-heading{flex-direction:column;gap:8px}.routine-rule,.routine-result{padding:18px}.routine-rule .row{align-items:flex-start}.routine-heading .primary{width:100%}}
.mail-calendar-card{margin:18px 0;padding:20px;border:1px solid var(--line,#d6ddd4);border-radius:14px;background:var(--paper,#fafbf7)}
.mail-calendar-card h3{margin:12px 0 8px;font-size:1.25rem;line-height:1.35}
.mail-calendar-card .actions{flex-wrap:wrap;gap:8px}
.mail-calendar-card .actions button{min-height:42px}
.mail-calendar-time{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-weight:600;line-height:1.6}
.mail-calendar-card small{display:block;margin-top:10px;color:var(--muted,#66756b);line-height:1.5}
@media(max-width:600px){.mail-calendar-card{padding:16px}.mail-calendar-card .actions button{flex:1 1 auto}.mail-calendar-card .row{flex-wrap:wrap;gap:8px}}

/* Catch-up digest: one brief with optional compact message lists. */
.mail-digest-page{max-width:900px;margin:0 auto}.digest-heading{display:flex;gap:20px;justify-content:space-between;align-items:start}.digest-heading h1{margin:10px 0 12px;font-size:44px}.digest-heading p{color:var(--muted);font-size:14px;line-height:1.65;max-width:600px}.digest-heading>.button{white-space:nowrap}.digest-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0 18px}.digest-toolbar label{margin:0}.digest-toolbar select{max-width:300px;min-height:44px;font-size:13px}.digest-tabs{display:flex;gap:4px;background:#e7ebe3;padding:4px;border-radius:12px}.digest-tabs button{border:0;background:transparent;padding:9px 15px;min-height:40px;font-size:13px}.digest-tabs button[aria-pressed=true]{background:#fffdf7;box-shadow:0 1px 4px #1232;color:var(--green)}.digest-brief{background:#e8eee3;border:1px solid #d7e1d2;border-radius:16px;padding:26px 28px;margin-bottom:20px}.digest-brief h2{font:29px Georgia,serif;margin:11px 0}.digest-brief>p{font-size:15px;line-height:1.65;margin:12px 0 18px}.digest-finish{display:flex;align-items:center;gap:16px}.digest-finish>span{font-size:12px;line-height:1.5;color:var(--muted);max-width:220px}.digest-groups{border-top:1px solid var(--line)}.digest-group{padding:22px 4px;border-bottom:1px solid var(--line)}.digest-group-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.digest-group h2{font-size:17px;font-weight:650;line-height:1.5;margin:0;font-family:inherit}.digest-group h2 span{display:inline-flex;align-items:center;justify-content:center;min-width:25px;padding:1px 6px;margin-left:7px;font-size:12px;border-radius:20px;background:#e8ece6;color:var(--green)}.digest-important h2{color:var(--green)}.digest-synopsis{line-height:1.7;font-size:14px;color:#53605b;margin:10px 0 14px;overflow-wrap:anywhere}.digest-group button.quiet,.digest-footer button.quiet{background:none;border:0;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;padding:8px 3px;font-size:12px;min-height:40px}.digest-group details{border:0;margin:4px 0 0;padding:0}.digest-group details>summary{font-size:13px;font-weight:600;color:var(--green);padding:7px 0;cursor:pointer;min-height:36px}.digest-group details>summary span{font-weight:400;color:var(--muted)}.digest-items{list-style:none;padding:0;margin:8px 0 0}.digest-item{border-top:1px solid var(--line);display:flex;gap:16px;align-items:start;padding:15px 0}.digest-item-copy{flex:1;min-width:0}.digest-item-copy>strong{font-size:13px}.digest-item-copy>p{font-size:13px;line-height:1.65;margin:5px 0;overflow-wrap:anywhere}.digest-item-copy>small{font-size:10px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.digest-item-actions{display:flex;flex-wrap:wrap;gap:5px;max-width:225px}.digest-item-actions button,.digest-item-actions .button{font-size:11px;min-height:38px;padding:8px 10px}.digest-footer{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:22px 0;font-size:12px;color:var(--muted);line-height:1.6}.digest-pending{font-size:13px;color:var(--muted);margin:20px 0}.digest-toolbar select{width:100%}
@media(max-width:650px){.digest-heading{flex-wrap:wrap;gap:10px}.digest-heading h1{font-size:33px}.digest-heading p{font-size:13px;margin:0}.digest-heading>.button{font-size:12px;min-height:40px;padding:9px 12px}.digest-toolbar{flex-wrap:wrap;margin-top:20px}.digest-toolbar label{flex:1;min-width:155px}.digest-toolbar select{font-size:11px;max-width:100%}.digest-tabs button{padding:8px 11px;font-size:12px}.digest-brief{padding:20px}.digest-brief h2{font-size:25px}.digest-brief>p{font-size:14px}.digest-finish{align-items:stretch;flex-direction:column;gap:9px}.digest-finish>span{max-width:none;font-size:11px}.digest-group{padding:18px 0}.digest-group h2{font-size:16px}.digest-synopsis{font-size:13px;margin:8px 0}.digest-item{flex-direction:column;gap:9px}.digest-item-actions{max-width:none}.digest-item-actions button,.digest-item-actions .button{min-height:42px}.digest-footer{flex-wrap:wrap}.digest-footer>span{flex-basis:100%}}

/* Owner-managed reference context and evidence for learned writing habits. */
.knowledge-page{max-width:1160px;margin:auto}.knowledge-overview{display:flex;flex-wrap:wrap;gap:12px 28px;padding:16px 20px;background:#eaf0e6;border:1px solid var(--line);border-radius:10px;margin-bottom:20px;font-size:12px;color:var(--muted)}.knowledge-overview strong{color:var(--ink);font-size:19px;margin-right:5px}.knowledge-tabs{display:flex;gap:8px;margin-bottom:22px}.knowledge-tabs button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.knowledge-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:22px;align-items:start}.knowledge-columns>*{min-width:0}.knowledge-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.knowledge-page h2{font-size:23px}.knowledge-row{border-bottom:1px solid var(--line);padding:13px 0;margin:0}.knowledge-row summary{display:flex;align-items:flex-start;gap:10px;list-style:none;cursor:pointer}.knowledge-row summary:before{content:'›';font-size:19px;color:var(--green);line-height:1.2;transform-origin:center;transition:transform .1s}.knowledge-row[open]>summary:before{transform:rotate(90deg)}.knowledge-row summary>span:first-of-type{flex:1;min-width:0}.knowledge-row summary strong{font-size:13px;display:block;overflow-wrap:anywhere}.knowledge-row small,.knowledge-history small{display:block;font-size:11px;overflow-wrap:anywhere;margin-top:3px}.knowledge-row-body{padding:12px 0 2px 22px;font-size:13px}.knowledge-row-body .copy{font-size:13px}.knowledge-row-body p{margin:5px 0 10px}.knowledge-row summary .tag{font-size:9px}.knowledge-checks{display:grid;gap:9px;margin:16px 0}.knowledge-checks label{display:flex;gap:8px;align-items:flex-start;margin:0;font-size:12px;font-weight:500;line-height:1.5}.knowledge-checks input{flex:none;margin-top:1px}.knowledge-history{display:flex;gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.knowledge-history>div{flex:1;min-width:0}.knowledge-history strong{font-size:12px;overflow-wrap:anywhere}.knowledge-history button{font-size:11px;padding:6px 9px;min-height:34px}.evidence-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.evidence-links button{font-size:11px;min-height:34px;padding:6px 9px}.correction-detail{scroll-margin-top:20px}.correction-detail .knowledge-fields{grid-template-columns:minmax(0,1fr);gap:18px}.correction-text{max-height:260px;overflow:auto;border:1px solid var(--line);background:#f6f7f1;padding:12px;border-radius:7px;font-size:12px}.knowledge-preview{border-top:1px solid var(--line);margin-top:20px;padding-top:20px;font-size:13px}.knowledge-preview .copy{font-size:13px}.draft-personal-context{background:#f5f7f0;border:1px solid var(--line);padding:13px 16px;border-radius:9px;margin:18px 0;font-size:13px}.draft-personal-context p{font-size:12px;margin:9px 0}.source-reference{overflow-wrap:anywhere}.knowledge-page .card>details:not(.knowledge-row){margin-top:20px}.knowledge-page select{font-size:12px}.knowledge-page textarea{min-height:100px}
@media(max-width:1100px){.knowledge-columns{grid-template-columns:minmax(0,1fr)}.knowledge-columns .writing-card{margin-bottom:0}}@media(max-width:600px){.knowledge-page .card{padding:18px}.knowledge-fields{grid-template-columns:minmax(0,1fr)}.knowledge-overview{gap:8px 20px;padding:12px 15px}.knowledge-tabs button{flex:1;min-height:44px;font-size:12px}.knowledge-row summary{flex-wrap:wrap}.knowledge-row summary .tag{margin-left:22px}.knowledge-page button{min-height:42px}.knowledge-history{flex-wrap:wrap}.knowledge-history>div{flex-basis:100%}.knowledge-page select{font-size:14px}.knowledge-row-body{padding-left:10px}}

/* Manage email keeps saved teaching tucked away until the owner needs it. */
.draft-rewrite{padding:20px;margin:20px 0;background:#f0f4ea;border:1px solid var(--line);border-radius:12px}.draft-rewrite h3{margin:0 0 9px}.draft-rewrite p{font-size:13px;line-height:1.6}.draft-rewrite textarea{min-height:90px}.draft-rewrite .actions{margin-bottom:8px}.draft-rewrite details{font-size:13px}.draft-rewrite .copy{max-height:250px;overflow:auto}.rewrite-progress{border-left:3px solid var(--green);padding:8px 0 8px 14px;margin:15px 0}.rewrite-progress strong{font-size:14px}.rewrite-progress p{margin:6px 0}.rewrite-progress small{display:block;line-height:1.6;margin-bottom:12px}.rewrite-result{color:var(--green);font-weight:600}.draft-rewrite .comment{overflow-wrap:anywhere}.draft-rewrite textarea[readonly]{opacity:.65}
@media(max-width:600px){.draft-rewrite{padding:16px}.draft-rewrite .actions button{flex:1}}
.briefing-page{max-width:900px;margin:auto}.briefing-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:0 0 24px}.briefing-toolbar strong{font-size:13px}.briefing-toolbar small{display:block;font-size:12px;margin-top:5px;color:var(--muted);line-height:1.6}.briefing-toolbar button{flex-shrink:0}.briefing-edition{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:30px 36px}.briefing-edition header{border-bottom:1px solid var(--line);padding-bottom:16px}.briefing-edition header h2{font:28px Georgia,serif;margin:12px 0}.briefing-edition header .row{gap:14px;flex-wrap:wrap}.briefing-edition header .muted{font-size:12px;margin:0}.briefing-copy{font-size:15px;line-height:1.8;overflow-wrap:anywhere}.briefing-copy h3{font:600 17px system-ui;margin:28px 0 10px;color:var(--green)}.briefing-copy p{margin:10px 0}.briefing-copy ul,.briefing-copy ol{padding-left:23px;margin:10px 0}.briefing-copy li{padding-left:3px;margin:8px 0}.briefing-copy a{text-underline-offset:3px}.briefing-copy code{font-size:13px}.briefing-links{display:flex;gap:12px 25px;flex-wrap:wrap;padding:22px 0;font-size:13px}.briefing-history,.briefing-settings{border-top:1px solid var(--line);padding:18px 0;margin:0}.briefing-history>summary,.briefing-settings>summary{cursor:pointer;font-size:14px;font-weight:600;min-height:26px}.briefing-history-row{display:flex;justify-content:space-between;gap:15px;align-items:center;text-decoration:none;padding:14px 10px;border-bottom:1px solid var(--line)}.briefing-history-row.selected{background:#eaf0e6;border-radius:6px}.briefing-history-row strong{font-size:13px}.briefing-history-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.briefing-history-row .tag{font-size:10px}.briefing-settings p{font-size:13px;color:var(--muted)}.briefing-shortcut{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;margin:0 0 24px;background:#e8eee3;border:1px solid #d7e1d2;border-radius:12px;text-decoration:none}.briefing-shortcut strong{display:block;font:25px Georgia,serif;margin:8px 0}.briefing-shortcut small{display:block;font-size:12px;color:var(--muted)}.briefing-shortcut>span:last-child{font-size:13px;font-weight:600}.briefing-shortcut .eyebrow{font-size:10px}
@media(max-width:650px){.briefing-toolbar{align-items:flex-start;flex-direction:column;gap:14px}.briefing-toolbar button{width:100%}.briefing-edition{padding:22px 20px}.briefing-edition header h2{font-size:24px}.briefing-edition header .row{gap:3px}.briefing-copy{font-size:14px;line-height:1.75}.briefing-copy h3{font-size:16px;margin-top:22px}.briefing-history-row{padding:14px 4px;align-items:flex-start}.briefing-history-row strong{font-size:12px}.briefing-shortcut{padding:18px;flex-wrap:wrap;gap:12px}.briefing-shortcut strong{font-size:23px}}
.mail-preferences{margin:18px 0;border:1px solid var(--line);border-radius:9px;padding:0;background:#f7f9f2}.mail-preferences>summary{padding:13px 14px;display:flex;gap:11px;align-items:center;list-style:none;cursor:pointer}.mail-preferences>summary::-webkit-details-marker,.mail-preference-rule>summary::-webkit-details-marker{display:none}.mail-preferences>summary:before,.mail-preference-rule>summary:before{content:'›';font-size:20px;line-height:1;color:var(--green);flex:none}.mail-preferences[open]>summary:before,.mail-preference-rule[open]>summary:before{transform:rotate(90deg)}.mail-preferences>summary>span:first-of-type,.mail-preference-rule>summary>span{min-width:0;flex:1}.mail-preferences>summary strong{display:block;font-size:13px}.mail-preferences>summary small{display:block;font-size:11px;margin-top:2px;line-height:1.45}.mail-preferences>summary:focus-visible,.mail-preference-rule>summary:focus-visible{outline:2px solid #649782;outline-offset:2px;border-radius:6px}.mail-preferences-body{padding:0 14px 14px}.mail-preferences-body>p{font-size:12px;margin:8px 0}.mail-preference-list{max-height:min(360px,50dvh);overflow:auto;overscroll-behavior:contain;border-top:1px solid var(--line);margin-top:12px}.mail-preference-list .mail-preference-rule{margin:0;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}.mail-preference-rule>summary{padding:11px 0;display:flex;gap:10px;align-items:flex-start;list-style:none;cursor:pointer}.mail-preference-rule>summary strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}.mail-preference-rule[open]>summary strong{white-space:normal;overflow-wrap:anywhere}.mail-preference-rule>summary small{font-size:10px;margin-top:2px}.mail-preference-body{padding:0 0 13px 19px}.mail-preference-body .copy{font-size:12px}.mail-preference-body>small{font-size:11px;overflow-wrap:anywhere}
@media(max-width:600px){.mail-preferences>summary{padding:12px 10px;gap:8px}.mail-preferences>summary small{font-size:10px}.mail-preferences>summary .tag{font-size:9px}.mail-preferences-body{padding:0 10px 12px}}

.assistant-overview{margin:20px 0}.assistant-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.assistant-shortcuts>a{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid #d9e2df;border-radius:14px;text-decoration:none;color:inherit;background:#fff}.assistant-shortcuts>a:hover{border-color:#487567}.assistant-shortcuts span{font-size:12px;color:#586a63}.assistant-working{margin-top:14px}.assistant-working>a{display:block;margin:12px 0}@media(max-width:600px){.assistant-shortcuts{gap:6px}.assistant-shortcuts>a{padding:12px 8px}.assistant-shortcuts span{font-size:11px}}

#booking-browser{box-sizing:border-box;width:min(470px,calc(100vw - 16px));max-height:92dvh;padding:18px;border:1px solid #d9dfd6;border-radius:20px;overflow:auto}#booking-browser::backdrop{background:#14251ccc}#booking-browser header{display:flex;justify-content:space-between;gap:12px;align-items:start}#booking-browser h2{font-size:1.2rem;margin:0}#booking-host{font-size:.85rem;color:#536458;overflow-wrap:anywhere}#booking-screen{display:block;width:100%;height:auto;min-height:0;border-radius:8px;background:#f1f3ed;user-select:none}#booking-screen:not([src]){display:none}#booking-browser .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}#booking-browser button{min-height:44px}#booking-browser p{overflow-wrap:anywhere}#booking-browser [data-booking=end]{width:100%}

/* Email reviews stay usable while the DGX processes earlier choices. */
.email-review-queue{position:sticky;top:env(safe-area-inset-top,0px);z-index:8;margin:8px 24px 0;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--wash);font-size:13px;flex-shrink:0}
.email-review-queue>details{margin:0;padding:0;border:0}.email-review-queue summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;min-height:44px;align-items:center}.email-review-queue summary>span:first-child{display:flex;flex-wrap:wrap;gap:8px}.email-review-queue p{margin:0 0 10px;font-size:12px}.email-review-queue ol{list-style:none;padding:0;margin:0;max-height:32vh;overflow:auto}.email-review-queue li{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:10px 0;border-top:1px solid var(--line)}.email-review-queue li>span{min-width:0;overflow-wrap:anywhere}.email-review-queue small{display:block}.email-review-queue button,.email-review-queue .button{flex-shrink:0;min-height:44px}.email-review-queue .uncertain,.email-review-queue .failed{color:#81400e}.email-review-queue [data-review-queue-clear]{margin:8px 0}
@media(max-width:700px){.email-review-queue{margin:6px 12px 0;font-size:12px}.email-review-queue li{align-items:flex-start}.email-review-queue summary>span:first-child{gap:4px 8px}.email-review-queue summary>span:last-child{font-size:11px}}

#booking-profile-dialog{box-sizing:border-box;width:min(470px,calc(100vw - 16px));max-height:92dvh;padding:20px;border:1px solid #d9dfd6;border-radius:20px;overflow:auto}#booking-profile-dialog::backdrop{background:#14251ccc}#booking-profile-dialog header{display:flex;justify-content:space-between;gap:12px;align-items:start}#booking-profile-dialog h2{font-size:1.2rem;margin:0}#booking-profile-dialog input{box-sizing:border-box;width:100%;min-height:44px;font-size:16px}#booking-profile-dialog label{display:block;margin:14px 0 6px}#booking-profile-dialog button{min-height:44px}#booking-profile-dialog form button{width:100%;margin:12px 0}#booking-profile-dialog p{overflow-wrap:anywhere}

#private-card-dialog{box-sizing:border-box;width:min(470px,calc(100vw - 16px));max-height:92dvh;padding:20px;border:1px solid #d9dfd6;border-radius:20px;overflow:auto}#private-card-dialog::backdrop{background:#14251ccc}#private-card-dialog header{display:flex;justify-content:space-between;gap:12px;align-items:start}#private-card-dialog h2{font-size:1.2rem;margin:0}#private-card-dialog input{box-sizing:border-box;width:100%;min-height:44px;font-size:16px}#private-card-dialog label{display:block;margin:14px 0 6px}#private-card-dialog button{min-height:44px}#private-card-dialog form button{width:100%;margin:12px 0}#private-card-dialog p{overflow-wrap:anywhere}
#private-card-review{white-space:pre-wrap}

#delivery-profile-dialog{box-sizing:border-box;width:min(470px,calc(100vw - 16px));max-height:92dvh;padding:20px;border:1px solid #d9dfd6;border-radius:20px;overflow:auto}#delivery-profile-dialog::backdrop{background:#14251ccc}#delivery-profile-dialog header{display:flex;justify-content:space-between;gap:12px;align-items:start}#delivery-profile-dialog h2{font-size:1.2rem;margin:0}#delivery-profile-dialog input{box-sizing:border-box;width:100%;min-height:44px;font-size:16px}#delivery-profile-dialog label{display:block;margin:14px 0 6px}#delivery-profile-dialog button{min-height:44px}#delivery-profile-dialog form button{width:100%;margin:12px 0}#delivery-profile-dialog p{overflow-wrap:anywhere}
#delivery-profile-dialog fieldset{min-width:0;margin:18px 0;padding:12px;border:1px solid #d9dfd6;border-radius:12px}#delivery-profile-dialog legend{padding:0 6px}#delivery-profile-dialog .delivery-checkbox{display:flex;gap:10px;align-items:center}#delivery-profile-dialog input[type=checkbox]{width:22px;min-height:22px;flex-shrink:0}

#shop-connection-dialog{box-sizing:border-box;width:min(470px,calc(100vw - 16px));max-height:92dvh;padding:20px;border:1px solid #d9dfd6;border-radius:20px;overflow:auto}#shop-connection-dialog::backdrop{background:#15261db3}#shop-connection-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}#shop-connection-dialog h2{margin:0}#shop-connection-dialog header button{flex:none;min-width:44px;min-height:44px}#shop-connection-dialog p{overflow-wrap:anywhere}#shop-connection-code{display:block;padding:12px;background:#edf3e9;border-radius:10px;font-size:1.25rem;letter-spacing:.08em;overflow-wrap:anywhere}#shop-connection-link{display:block;text-align:center;padding:14px;border-radius:12px;background:#255a47;color:white;text-decoration:none}#shop-connection-link:not([href]){pointer-events:none}.shop-connection-actions{display:flex;flex-wrap:wrap;gap:10px}.shop-connection-actions button{min-height:44px;white-space:normal;flex:1 1 180px}#shop-connection-dialog [hidden]{display:none!important}
/* Merchant requirements stay beside their exact item, price or delivery fact. */
.merchant-disclosure{margin:.7rem 0;padding:.8rem;border:1px solid var(--line,#c8cfc7);border-left:4px solid #996e1e;border-radius:.6rem;background:#fff9e9;color:#302b20;overflow-wrap:anywhere}
.merchant-disclosure-content{white-space:pre-wrap}
.merchant-disclosure-content p:first-child{margin-top:.5rem}
.merchant-disclosure-content p:last-child{margin-bottom:0}
.merchant-visual{margin:.7rem 0 0;max-width:100%}
.merchant-visual img{display:block;width:auto;max-width:100%;height:auto}
.merchant-visual img[hidden]{display:none}
.merchant-visual p{font-size:.85rem}
.merchant-visual-gate{font-size:.9rem}
.approval-summary dd:has(>.merchant-disclosure){grid-column:1/-1}

.chat-earlier{text-align:center;padding:8px}.chat-earlier button{font-size:13px}.chat-page #chat-history{min-height:140px}

/* Follow the device directly, including appearance changes while Spark is open.
   No saved override or JavaScript is needed to choose the initial theme. */
:root{color-scheme:light dark}
@media screen and (prefers-color-scheme:dark){
  :root{
    --paper:#111916;--white:#1b2620;--ink:#edf2ef;--muted:#b2c0b7;
    --green:#96d9b7;--wash:#293d31;--line:#405448;
    --amber:#f2c47d;--red:#ffafa5;
    --dark-accent:#30634d;--dark-accent-hover:#3a745b;
    --dark-warning:#392e1c;--dark-warning-line:#76613b;
    --dark-error:#3d2724;--dark-error-line:#85574f;
    --dark-blue:#253344;--dark-blue-ink:#b2d2f3;
    --dark-plum:#34293f;--dark-plum-ink:#d8bcea;
  }
  input,textarea,select,.chat-message,.skip,.mail-reader,.mail-row,
  .mail-mobile-account select,.mail-direct-controls button,.mail-bulk select,
  #shop-checkout-dialog header,.summary-stats>div,.summary-card,
  .digest-tabs button[aria-pressed=true],.assistant-shortcuts>a{background:var(--white)}
  input,textarea,select{border-color:var(--line)}
  input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
  dialog{background:var(--white);color:var(--ink)}
  .sidebar,.topbar{background:#16211b}
  .primary,.mark,.knowledge-tabs button[aria-pressed=true],#shop-connection-link{
    background:var(--dark-accent);border-color:var(--dark-accent);color:#fff;
  }
  .primary:hover,#shop-connection-link:hover{background:var(--dark-accent-hover);color:#fff}
  nav a:hover,nav a.active,.item:hover,.item.selected,.chat-message.user,
  .stat,.source,#notice,.mail-status-line,.mail-account.active,
  .mail-filter-tabs button.active,.mail-filter-tabs button:hover,
  .mail-message:hover,.mail-message.is-selected,.mail-avatar,
  .mail-row.selected,.mail-action-feedback,.calendar-event-summary:hover,
  .calendar-event[open]>.calendar-event-summary,.mail-summary-overview,
  .summary-focus,.preference-shortcuts,.routine-teach-entry,.routine-email,
  .routine-origin,.digest-tabs,.digest-brief,.digest-group h2 span,
  .knowledge-overview,.briefing-history-row.selected,.briefing-shortcut,
  #shop-connection-code{background:var(--wash)}
  .chat-message.user,.item:hover,.item.selected,.mail-message.is-selected,
  .mail-badge.ready,.mail-action-feedback,.mail-summary-overview,.routine-teach-entry,
  .routine-email,.routine-origin,.digest-brief,.briefing-shortcut{border-color:var(--line)}
  .mail-message.is-selected{border-left-color:var(--green)}
  .mail-workspace{--mail-line:var(--line);--mail-muted:var(--muted)}
  .mail-message,.mail-row,.mail-reader-tip,.mail-assessment,.mail-prepared-draft,
  .mail-history,.mail-more-options,.mail-history details,.mail-attachments,
  .mail-attachments li,.mail-bulk,.empty,.comment,.assistant-shortcuts>a,
  #booking-browser,#booking-profile-dialog,#private-card-dialog,
  #delivery-profile-dialog,#delivery-profile-dialog fieldset,#shop-connection-dialog{border-color:var(--line)}
  .copy.code,.mail-search-wrap input,.mail-window-note,.mail-reader-tip,
  .mail-evidence .tag,.mail-assessment,.mail-assessment .tag,.mail-prepared-draft,
  .mail-attachments li,.approval-body,.correction-text,.draft-personal-context,
  .draft-rewrite,.mail-preferences,#booking-screen{background:#202e25}
  .mail-search-wrap input{border-color:var(--line)}
  .mail-assessment .actions button{background:var(--white);border-color:var(--line);color:var(--green)}
  .mail-skeleton{background:var(--wash)}
  .mail-auto-status progress,.mail-auto-status progress::-webkit-progress-bar{background:var(--line)}
  .mail-auto-status progress::-webkit-progress-value{background:var(--green)}
  .mail-auto-status progress::-moz-progress-bar{background:var(--green)}
  .mail-message-list,.mail-reader{scrollbar-color:var(--line) transparent}

  /* Text in the email workspace has several deliberately subdued light colors. */
  .mail-account,.mail-account small,.mail-account.active small,.mail-rail-note,
  .mail-rail-note p,.mail-search-wrap svg,.mail-search-wrap input::placeholder,
  .mail-filter-tabs button,.mail-list-caption,.mail-list-caption select,
  .mail-sender,.mail-message-top time,.mail-snippet,.mail-account-label,
  .mail-reader-empty,.mail-reader-empty>svg,.mail-reader-empty .eyebrow,
  .mail-reader-empty p,.mail-reader-tip,.mail-account-pill,.mail-person small,
  .mail-person time,.mail-evidence .tag,.mail-assessment small,
  .mail-assessment p.muted,.mail-prepared-draft p,.mail-prepared-draft small,
  .mail-original h3,.mail-history .copy,.mail-reader-foot,.mail-bottom-note,
  .mail-status-note,.mail-body-note,.mail-attachments small,.mail-attachments p,
  .mail-row-select .icon-only,.mail-action-hint,.mail-bulk .mail-select-all,
  .mail-bulk small,.subscription-options small,.mail-image-controls,
  .digest-synopsis,.assistant-shortcuts span,#booking-host{color:var(--muted)}
  .mail-message.is-unread .mail-subject,.mail-message.is-unread .mail-sender,
  .mail-reader-empty h2,.mail-assessment p,.mail-original .copy{color:var(--ink)}
  .mail-filter-tabs button.active,.mail-filter-tabs button.active span,
  .mail-avatar,.mail-gmail-link,.mail-assessment .eyebrow,.mail-assessment .tag,
  .mail-history summary,.mail-more-options summary,.mail-action-feedback,
  .summary-state.filed{color:var(--green)}
  .mail-badge{background:var(--white);border-color:var(--line);color:var(--muted)}
  .mail-badge.ready{background:var(--wash);color:var(--green)}
  .mail-avatar.blue,.tag.running,.tag.queued{background:var(--dark-blue);color:var(--dark-blue-ink)}
  .mail-avatar.plum{background:var(--dark-plum);color:var(--dark-plum-ink)}
  .mail-avatar.ochre{background:var(--dark-warning);color:var(--amber)}
  .mail-avatar.coral{background:var(--dark-error);color:var(--red)}
  .mail-list-empty>svg{color:var(--muted)}

  .notice,.mail-connection-note,.draft-conflict,.mail-action-feedback.warning,
  .summary-reason,.merchant-disclosure,.mail-badge.urgent,
  .tag.pending,.tag.needs_review,.tag.draft,.tag.stale,.mail-assessment .tag.Urgent{
    background:var(--dark-warning);border-color:var(--dark-warning-line);color:var(--amber);
  }
  .success{background:var(--wash);border-color:var(--line);color:var(--green)}
  .tag.failed,.tag.interrupted,.tag.needs_attention,.tag.offline,#error,
  button.danger{background:var(--dark-error);border-color:var(--dark-error-line);color:var(--red)}
  button.danger:hover{background:#53312d}
  .mail-direct-controls .mail-trash-action{color:var(--red)}
  .email-review-queue .uncertain,.email-review-queue .failed,
  .mail-row-select .icon-only.is-starred{color:var(--amber)}
  .mail-action-button.is-starred svg{fill:var(--amber);stroke:var(--amber)}
  .routine-result blockquote,.routine-origin blockquote{border-color:var(--line)}
  input:focus,textarea:focus,select:focus,button:focus-visible,a:focus-visible,
  .mail-action-button:focus-visible,.mail-row-select input:focus-visible,
  .calendar-event-summary:focus-visible,.mail-preferences>summary:focus-visible,
  .mail-preference-rule>summary:focus-visible{outline-color:var(--green)}
  .mail-row-select input,.mail-bulk input,.approval-consent input{accent-color:var(--green)}
  .assistant-shortcuts>a:hover{border-color:var(--green)}
  .composer{box-shadow:0 8px 25px #0004}
  .passkey-dialog,.mail-dialog{box-shadow:0 20px 70px #0008}
  dialog::backdrop,#phone-dialog::backdrop,#booking-browser::backdrop,
  #booking-profile-dialog::backdrop,#private-card-dialog::backdrop,
  #delivery-profile-dialog::backdrop,#shop-connection-dialog::backdrop{background:#0009}
  /* Preserve the sender's original colors inside isolated formatted emails. */
  .mail-original .mail-body:has(.mail-formatted){color-scheme:only light;background:#fff;color:#202124;border-color:var(--line)}
}

/* Keep native iPhone text selection and provide copying without a long press. */
.chat-message .copy{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
.chat-message-actions{display:flex;justify-content:flex-end;margin-top:8px}
.chat-copy-button{min-height:44px;min-width:60px;padding:6px 10px;background:transparent;color:var(--muted);font-size:12px;font-weight:500}
.chat-copy-dialog{width:min(560px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);color:var(--ink);padding:22px}
.chat-copy-dialog::backdrop{background:#07110cc0}
.chat-copy-dialog textarea{min-height:180px;-webkit-user-select:text;user-select:text}

/* Ventures: the overview explains Spark's work; detailed records stay one tap away. */
.venture-workspace{max-width:1080px;margin:0 auto;min-width:0;overflow-wrap:anywhere}
.venture-heading{margin:2px 0 27px}.venture-heading h1{margin-top:8px}.venture-heading>p{margin:0;color:var(--muted);font-size:14px}
.venture-eyebrow{font-size:10px;font-weight:650;letter-spacing:1.5px;color:var(--muted)}
.venture-operator{padding:27px 29px;background:var(--wash);border-color:var(--line)}
.venture-operator-top,.venture-section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.venture-operator-top>div{min-width:0}.venture-operator-top h2{font-size:29px;margin:7px 0 0}.venture-operator-top button{flex-shrink:0;min-height:44px;background:var(--white)}
.venture-summary{font-size:15px;max-width:720px;margin:17px 0 15px}.venture-next{font-size:13px;margin:0;padding-top:14px;border-top:1px solid var(--line)}.venture-next strong{margin-right:8px}
.venture-operator-foot{display:flex;flex-wrap:wrap;gap:5px 22px;color:var(--muted);font-size:11px;margin-top:18px}
.venture-section-heading h2{font-size:23px;margin:0}.venture-section-heading{margin-bottom:18px}.venture-badge{background:var(--wash);border:1px solid var(--line);padding:4px 9px;border-radius:20px;color:var(--muted);font-size:11px;line-height:1.4}
.venture-money{padding:23px 27px}.venture-money-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:24px 0 17px}.venture-money-grid dt{font-size:11px;color:var(--muted);margin-bottom:6px}.venture-money-grid dd{font-size:25px;letter-spacing:-.7px;margin:0;line-height:1.2;font-variant-numeric:tabular-nums}
.venture-small{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0 0}.venture-money>.venture-small{border-top:1px solid var(--line);padding-top:14px}
.venture-needs{border-color:var(--line);border-left:4px solid var(--amber)}.venture-need{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:15px 0;border-top:1px solid var(--line)}.venture-need:first-of-type{border-top:0;padding-top:0}.venture-need:last-child{padding-bottom:0}.venture-need h3{font-size:14px;margin-bottom:4px}.venture-need p{font-size:12px;color:var(--muted);margin:0}.venture-need .button{flex-shrink:0;min-height:44px}.venture-needs>.venture-section-heading{margin-bottom:15px}
.venture-experiments{margin-top:29px}.venture-count{font-size:11px;color:var(--muted)}.venture-experiment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.venture-experiment{margin:0;padding:22px;display:flex;flex-direction:column;min-width:0}.venture-experiment-active{border-color:var(--green)}
.venture-experiment-meta{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);letter-spacing:.6px;margin-bottom:15px}.venture-experiment h3{font:22px/1.3 Georgia,serif;letter-spacing:-.3px;margin:0 0 10px}.venture-experiment h3 a{color:var(--ink);text-decoration:none}.venture-experiment h3 a:hover{text-decoration:underline}.venture-status{font-size:12px;font-weight:600;color:var(--green);margin:0 0 8px}.venture-card-copy{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 20px}.venture-detail-link{font-size:12px;font-weight:600;margin-top:auto;display:flex;justify-content:space-between;align-items:center;text-decoration:none;min-height:32px}
.venture-empty{border:1px dashed var(--line);border-radius:12px;padding:25px}.venture-empty p{font-size:13px;color:var(--muted);margin:7px 0 0;max-width:620px}
.venture-disclosure>summary{font-size:13px;min-height:32px;line-height:1.5}.venture-disclosure[open]>summary{margin-bottom:17px}.venture-disclosure.card{padding:20px 24px}.venture-disclosure .venture-disclosure{margin-top:17px}.venture-advanced{margin-top:30px;color:var(--muted)}.venture-advanced h3{color:var(--ink);margin-top:8px}.venture-advanced>.copy{font-size:12px;max-width:800px}.venture-workspace textarea{font-size:14px}.venture-workspace button{min-height:44px}.venture-workspace button:disabled{cursor:not-allowed}
.venture-back{display:inline-block;font-size:13px;margin:0 0 18px;text-decoration:none}.venture-attempt-head h2{font-size:29px;margin:9px 0 13px}.venture-attempt-head>p:not(.venture-status){font-size:14px;max-width:740px}.venture-stage{display:flex;flex-wrap:wrap;gap:8px 20px;border-top:1px solid var(--line);padding-top:16px;margin-top:20px;font-size:12px}.venture-stage span{color:var(--muted)}.venture-stage+button{margin-top:18px}.venture-exact-draft{padding:20px;border:1px solid var(--line);background:var(--wash);border-radius:9px;margin:18px 0}.venture-exact-draft h3{font-size:12px;margin-bottom:14px}.venture-exact-draft .copy{font-size:14px;max-height:none;overflow:visible}.venture-message{border-top:1px solid var(--line);padding:18px 0}.venture-message>strong{font-size:12px}.venture-message>.copy{margin-top:8px;font-size:13px}.venture-source{margin:20px 0}.venture-source blockquote{border-left:2px solid var(--line);padding-left:15px;margin-left:0;font-size:13px}.venture-source p,.venture-events{font-size:12px}.venture-events{padding-left:20px}.venture-events li{margin:9px 0}.venture-events small{display:block}.venture-workspace .copy h3{margin:12px 0 7px}
@media(max-width:700px){.venture-heading{margin-bottom:21px}.venture-heading h1{font-size:32px}.venture-operator,.venture-money{padding:21px 18px}.venture-operator-top{align-items:flex-start;flex-direction:column;gap:18px}.venture-operator-top h2{font-size:26px}.venture-operator-top button{width:100%}.venture-summary{font-size:14px;margin-top:18px}.venture-operator-foot{font-size:11px;flex-direction:column;gap:7px}.venture-money-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 16px;margin-top:20px}.venture-money-grid dd{font-size:24px}.venture-section-heading{gap:12px;align-items:flex-start}.venture-section-heading h2{font-size:22px}.venture-badge{font-size:10px;max-width:145px;text-align:center}.venture-experiment-grid{grid-template-columns:1fr}.venture-experiment{padding:20px}.venture-need{align-items:flex-start;gap:12px}.venture-need .button{padding:8px 11px}.venture-disclosure.card{padding:18px}.venture-workspace textarea{font-size:16px}.venture-exact-draft{padding:16px}.venture-exact-draft .copy{font-size:14px}.venture-attempt-head{padding:22px 18px}.venture-attempt-head h2{font-size:27px}.venture-needs{padding:20px 18px}.venture-advanced>summary{font-size:12px}.venture-eyebrow{font-size:9px;letter-spacing:1.2px}}

/* Career: opportunities, advice, and writing prepared for Jason's review. */
.career-workspace .venture-heading{margin-bottom:25px}
.career-operator .venture-operator-top{align-items:flex-start}
.career-operator .venture-operator-top h2{max-width:600px;font-size:27px;line-height:1.25}
.career-operator-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;flex:0 0 auto}
.career-operator-actions button{white-space:nowrap}
.career-operator-actions button:first-child{background:var(--green);color:var(--white);border-color:var(--green)}
.career-operator-actions button:disabled{opacity:.55}
.career-request-note{font-size:12px;line-height:1.7;padding:12px 0 0;margin:12px 0 0;border-top:1px solid var(--line)}
.career-lane,.career-feeds,.career-pending{margin:32px 0}
.career-lane>.venture-section-heading,.career-feeds>.venture-section-heading,.career-pending>.venture-section-heading{margin-bottom:16px}
.career-lane .venture-section-heading .venture-small{margin-top:6px}
.career-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.career-card{margin:0;padding:23px;min-width:0;display:flex;flex-direction:column}
.career-card h3{font:23px/1.3 Georgia,serif;letter-spacing:-.3px;margin:0 0 10px}
.career-card h3 a{color:var(--ink);text-decoration:none}
.career-card h3 a:hover{text-decoration:underline}
.career-card h4,.career-detail-work h4{font-size:12px;line-height:1.5;margin:0 0 7px}
.career-card .venture-experiment-meta{align-items:flex-start;text-transform:uppercase}
.career-card .venture-experiment-meta span:last-child{white-space:nowrap}
.career-target{font-size:13px;font-weight:600;color:var(--muted);margin:2px 0 18px}
.career-fit,.career-unknowns,.career-evidence{margin:0 0 18px}
.career-fit p{font-size:13px;line-height:1.75;margin:0 0 7px}
.career-unknowns{color:var(--muted)}
.career-unknowns ul{font-size:12px;line-height:1.7;padding-left:18px;margin:0}
.career-source{margin-top:11px}
.career-source blockquote{margin:0 0 6px;padding-left:13px;border-left:2px solid var(--line);font-size:12px;line-height:1.7;color:var(--muted)}
.career-source a{font-size:11px;text-underline-offset:3px}
.career-draft{border:1px solid var(--line);border-radius:9px;padding:17px;background:var(--wash);margin-bottom:18px}
.career-draft-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}
.career-draft-heading h4{margin:0}
.career-draft-heading>span{font-size:10px;color:var(--muted);text-align:right}
.career-draft .copy{font-size:13px;line-height:1.8;white-space:pre-wrap;max-height:none;overflow:visible}
.career-next-step{font-size:13px;line-height:1.75;padding-top:16px;margin:0 0 18px;border-top:1px solid var(--line)}
.career-next-step strong{display:block;font-size:12px;margin-bottom:5px}
.career-lane-empty{padding:19px 22px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);font-size:13px;line-height:1.75;margin:0}
.career-detail-work{padding:26px}
.career-detail-work .career-fit p,.career-detail-work .career-draft .copy{font-size:14px}
.career-detail-work .career-next-step{margin-bottom:0}
.career-feed{padding:22px 25px}
.career-feed-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.career-feed-header h3{font-size:18px;margin:0 0 6px}
.career-feed-header p{font-size:12px;line-height:1.75;margin:0;color:var(--muted)}
.career-feed-item{border-top:1px solid var(--line);padding-top:14px;margin-top:15px}
.career-feed-item>summary{font-weight:600}
.career-feed-item>p,.career-feed-body{font-size:13px;line-height:1.8}
.career-feed-body{white-space:pre-wrap;max-height:none;overflow:visible}
.career-legacy{margin:30px 0;padding-top:22px;border-top:1px solid var(--line);color:var(--muted)}
.career-legacy .venture-experiment-grid{margin-top:18px}
.career-legacy .venture-experiment{background:transparent}
.career-profile{border-top:1px solid var(--line);padding-top:16px;margin-top:22px}
.career-profile p,.career-profile ul{font-size:13px;line-height:1.8}
.career-profile h4{font-size:12px;margin:16px 0 5px}
.career-workspace .venture-advanced{border-top:1px solid var(--line);padding-top:20px}
@media(max-width:700px){
  .career-operator-actions{flex-direction:row;flex-wrap:wrap;gap:8px;width:100%}
  .career-operator .venture-operator-actions button{flex:1 1 150px;width:auto;white-space:normal;font-size:12px}
  .career-operator .venture-operator-top h2{font-size:25px}
  .career-card-grid{grid-template-columns:1fr}
  .career-card{padding:20px}
  .career-lane,.career-feeds,.career-pending{margin:27px 0}
  .career-draft{padding:15px}
  .career-draft-heading{flex-direction:column;gap:4px}
  .career-draft-heading>span{text-align:left}
  .career-feed{padding:20px 18px}
  .career-feed-header{gap:10px}
  .career-feed-header .venture-badge{max-width:110px}
  .career-detail-work{padding:21px 18px}
}

/* One inbox: decisions first, then the existing email workspace. */
.inbox-reviews{margin-bottom:30px;padding-bottom:26px;border-bottom:1px solid var(--line)}
.inbox-review-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.inbox-review-heading h1{margin:7px 0 8px;font-size:36px}.inbox-review-heading p{margin:0;color:var(--muted)}
.inbox-review-heading>.tag{flex-shrink:0}.inbox-review-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}
.inbox-review-list .item{min-width:0;overflow-wrap:anywhere}.inbox-review-list strong,.inbox-review-list small{display:block}
.inbox-review-open{display:block;margin-top:12px;font-weight:600;color:var(--green)}
.inbox-earlier-reviews{margin-top:14px}.inbox-earlier-reviews>.inbox-review-list{margin-top:12px}
.mail-heading h2{font-size:30px;margin:0}
@media(max-width:700px){.inbox-reviews{margin-bottom:22px;padding-bottom:20px}.inbox-review-heading{align-items:flex-start;gap:10px}.inbox-review-heading h1{font-size:29px}.inbox-review-heading p{font-size:13px}.inbox-review-heading>.tag{font-size:11px}.inbox-review-list{grid-template-columns:1fr}.mail-heading h2{font-size:26px}}

/* Keep Catch up in place while reading a message. */
.email-popup{width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:0 24px 24px;overscroll-behavior:contain}
.email-popup .mail-dialog-header{position:sticky;top:0;z-index:2;background:var(--white,#fff);padding:16px 0;margin:0 0 20px}
.email-popup-message h3{font-size:1.4rem;overflow-wrap:anywhere}
.email-popup .mail-body{overflow-wrap:anywhere;max-width:100%}
html:has(#email-popup[open]){overflow:hidden}
@media(max-width:600px){.email-popup{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:0 16px 20px}.email-popup .mail-dialog-header{padding-top:12px}}


#email-popup-training{margin:1rem 0;padding:1rem;border:1px solid var(--line);border-radius:12px}#popup-training-notice:not(:empty){padding:.8rem 0;color:var(--green)}

/* Career workspace: saved work first, compact research history, explicit feed state. */
.career-totals{display:flex;flex-wrap:wrap;gap:10px 28px;margin:0 0 22px;color:var(--muted);font-size:12px}
.career-totals strong{color:var(--ink);font-size:19px;font-weight:600;margin-right:5px}
.career-workspace .career-operator{padding:22px 25px;background:var(--wash)}
.career-workspace .career-operator h2{font-size:22px;line-height:1.3}
.career-workspace .career-operator .venture-eyebrow{display:none}
.career-workspace .career-operator .venture-summary{font-size:13px;margin:12px 0 6px}
.career-workspace .career-operator .venture-next{font-size:13px;line-height:1.65;margin:5px 0}
.career-workspace .career-operator .venture-operator-foot{margin-top:14px;padding-top:12px}
.career-saved,.career-recent{margin:32px 0}
.career-saved>.venture-section-heading{margin-bottom:18px}
.career-saved .venture-small{margin:6px 0 0}
.career-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.career-filters button{min-height:40px;border:1px solid var(--line);background:transparent;border-radius:100px;padding:8px 14px;color:var(--muted);font-size:12px}
.career-filters button[aria-pressed="true"]{color:var(--white);background:var(--green);border-color:var(--green)}
.career-filters button span{display:inline-flex;min-width:18px;justify-content:center;margin-left:5px;font-size:11px;opacity:.8}
.career-filters button:focus-visible,.career-card a:focus-visible{outline:2px solid var(--green);outline-offset:4px}
.career-card .career-target{margin:4px 0 12px;font-size:12px}
.career-card .career-card-copy{margin-bottom:16px}
.career-draft-preview{background:var(--wash);border-left:2px solid var(--green);padding:12px 14px;margin-bottom:19px;font-size:12px;line-height:1.7}
.career-draft-preview strong{display:block;font-size:11px;margin-bottom:5px}
.career-draft-preview p{margin:0;color:var(--muted)}
.career-card-note{font-size:12px;line-height:1.7;padding:12px 0;border-top:1px solid var(--line);color:var(--muted)}
.career-card .venture-detail-link{border-top:1px solid var(--line);padding-top:13px}
.career-feed-result{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.career-feed-result h4{font-size:15px;line-height:1.5;margin:0 0 8px}
.career-feed-result p{font-size:13px;line-height:1.8;margin:8px 0}
.career-feed-result .career-feed-excerpt{color:var(--ink)}
.career-feed-result .career-feed-item{border:0;margin:10px 0 0;padding:0}
.career-feed-result .career-feed-body{overflow-wrap:anywhere}
.career-feed-health{border:1px solid var(--line);border-radius:12px;padding:20px 24px}
.career-feed-health>h3{font-size:14px;margin:0 0 15px}
.career-feed-issue{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:16px 0;border-top:1px solid var(--line)}
.career-feed-issue:last-child{padding-bottom:0}
.career-feed-issue h4{font-size:13px;margin:0 0 7px}
.career-feed-issue p{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 8px}
.career-feed-issue .venture-badge{flex-shrink:0}
.career-check{padding:20px 0;border-top:1px solid var(--line);display:flex;align-items:center;gap:28px;justify-content:space-between}
.career-check>div{min-width:0;max-width:680px}
.career-check h3{font-size:15px;line-height:1.5;margin:7px 0}
.career-check h3 a{color:var(--ink);text-decoration:none}
.career-check p{font-size:12px;line-height:1.8;color:var(--muted);margin:6px 0 0}
.career-check p.career-check-status{font-size:11px;font-weight:600}
.career-check>.venture-detail-link{gap:18px;white-space:nowrap;margin:0}
.career-earlier-checks{border-top:1px solid var(--line);padding-top:16px}
.career-research-outcome{padding:24px}
.career-research-outcome h2{font-size:20px;margin-top:0}
.career-research-outcome>.copy{font-size:14px;line-height:1.85;white-space:pre-wrap;overflow:visible;max-height:none}
.career-source-summary{font-size:12px;color:var(--muted);line-height:1.75;margin:14px 0 0}
.career-source-record{border-top:1px solid var(--line);padding-top:13px;margin-top:13px}
.career-source-record h4{font-size:14px;margin:0 0 6px}
.career-source-record p{font-size:12px;color:var(--muted);line-height:1.75;overflow-wrap:anywhere}
.career-draft>button{margin-top:15px}
@media(max-width:700px){
  .career-workspace .career-operator{padding:19px}
  .career-totals{gap:8px 17px;font-size:11px}
  .career-totals strong{font-size:17px}
  .career-filters{gap:7px}
  .career-filters button{padding:8px 12px;font-size:11px}
  .career-check{display:block;padding:18px 0}
  .career-check>.venture-detail-link{margin-top:9px;justify-content:flex-start}
  .career-feed-health{padding:18px}
  .career-feed-issue{gap:10px}
  .career-feed-issue .venture-badge{font-size:9px;max-width:95px;white-space:normal}
  .career-research-outcome{padding:20px}
}
.career-workspace .venture-count{white-space:nowrap;flex-shrink:0}
.career-checked-sources{padding:24px}
.career-checked-sources h2{font-size:20px;margin-top:0}
@media(max-width:700px){.career-checked-sources{padding:20px}}

/* Cover every width above the phone breakpoint, including zoomed desktop windows. */
@media(min-width:701px){
 .chat-page{overflow:hidden}
 .chat-page .shell{height:100dvh;min-height:0}
 .chat-page .sidebar{overflow-y:auto}
 .chat-page .content{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
 .chat-page .topbar{flex:none}
 .chat-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;overflow:hidden;padding-bottom:12px;padding-top:12px}
 .chat-page footer{display:none}
 .chat-page #chat-approvals{flex:none;max-height:22vh;overflow:auto;margin:0}
 .chat-page #chat-approvals:empty{display:none}
 .chat-page #chat-history{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none}
 .chat-page .composer{position:relative;bottom:auto;flex:none;margin:8px 0 0;padding:12px 18px}
 .chat-page .composer textarea{min-height:44px;max-height:140px}
 .chat-page #notice,.chat-page #error{flex:none;max-height:18vh;overflow:auto}
}
.chat-page #chat-history{overflow-anchor:none}
.chat-task-review>.card{margin-bottom:0}

.unsubscribe-attention .actions{display:flex;flex-wrap:wrap;gap:.5rem}.unsubscribe-attention details{margin-top:1rem}.unsubscribe-attention p{overflow-wrap:anywhere}

/* Keep everyday destinations visible; specialist tools stay one click away. */
.more-navigation{border:0;margin:0;padding:0}
.more-navigation>summary{padding:11px 12px;color:var(--muted);font-size:13px;min-height:42px;border-radius:7px;list-style:none;display:flex;justify-content:space-between;align-items:center}
.more-navigation>summary::after{content:'+';font-size:17px}
.more-navigation[open]>summary::after{content:'−'}
.more-navigation>summary::-webkit-details-marker{display:none}
.more-navigation>summary:hover,.more-navigation>summary:focus-visible{background:var(--wash);color:var(--green)}
.more-navigation>div{display:flex;flex-direction:column;gap:4px;padding-left:10px}
