:root{--bg:#f7f7f5;--surface:#fff;--border:#e4e3df;--text:#1c1c1a;--muted:#6b6a66;--accent:#2f5bd3;--accent-text:#fff;--ok:#2e7d4f;--error:#b42318;--error-bg:#fdecea;--named-bg:#e3f1e8;--named:#24663f;--role-bg:#e6edfb;--role:#2a4fb3;--generic-bg:#efeeea;--generic:#55544f;--unverified-bg:#fdf1dc;--unverified:#8a5a00;--accent-hover:#264bb4;--accent-ring:#2f5bd359;--hover-bg:#f1f0ec;--border-strong:#cfcdc7;--shadow-xs:0 1px 2px #1c1c1a0f;--shadow-sm:0 1px 2px #1c1c1a14, 0 2px 6px #1c1c1a0f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#141413;--surface:#1d1d1b;--border:#33332f;--text:#ecebe6;--muted:#9b9a94;--accent:#7b9cf0;--accent-text:#10172b;--ok:#6cc292;--error:#f08b80;--error-bg:#3a1d1a;--named-bg:#1f3428;--named:#8fd3ab;--role-bg:#1f2a45;--role:#a9bff5;--generic-bg:#2a2a27;--generic:#bdbcb5;--unverified-bg:#3a2e17;--unverified:#f0c470;--accent-hover:#93aff4;--accent-ring:#7b9cf066;--hover-bg:#262624;--border-strong:#46463f;--shadow-xs:0 1px 2px #0000004d;--shadow-sm:0 1px 2px #00000059, 0 2px 8px #00000040;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font:15px/1.5 ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}.page{max-width:1040px;margin:0 auto;padding:40px 16px 64px}.masthead h1{letter-spacing:-.01em;margin:0 0 6px;font-size:28px}.masthead p{color:var(--muted);max-width:60ch;margin:0 0 28px}h2{margin:0;font-size:16px}.muted{color:var(--muted);font-weight:400}code{font:13px ui-monospace,SFMono-Regular,Menlo,monospace}.search{flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:20px;display:flex}.field{color:var(--muted);flex-direction:column;gap:4px;font-size:13px;display:flex}.field.grow{flex:320px}.field.narrow{width:90px}.field input{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;width:100%;height:42px;padding:0 12px;font-size:15px}.field input:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:#0000}.button{min-height:42px;font:inherit;letter-spacing:.005em;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--accent-text);background:var(--accent);box-shadow:var(--shadow-sm), inset 0 1px 0 #ffffff24;border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:8px;padding:0 18px;font-size:14px;font-weight:600;line-height:1.2;text-decoration:none;transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s,transform 80ms;display:inline-flex}.button:hover:not(:disabled){background:var(--accent-hover)}.button:active:not(:disabled){box-shadow:var(--shadow-xs);transform:translateY(1px)}.button:focus-visible{box-shadow:0 0 0 3px var(--accent-ring), var(--shadow-xs);outline:none}.button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.button svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:16px;height:16px}.button.small{border-radius:8px;gap:6px;min-height:32px;padding:0 12px;font-size:13px}.button.small svg{width:14px;height:14px}.button.secondary{color:var(--text);background:var(--surface);border-color:var(--border);box-shadow:var(--shadow-xs)}.button.secondary:hover:not(:disabled){background:var(--hover-bg);border-color:var(--border-strong)}.button.danger{color:var(--error);background:var(--surface);border-color:color-mix(in srgb, var(--error) 35%, var(--border));box-shadow:var(--shadow-xs)}.button.danger:hover:not(:disabled){background:var(--error-bg);border-color:color-mix(in srgb, var(--error) 60%, transparent)}.button.danger:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb, var(--error) 30%, transparent)}.button.ghost{color:var(--muted);box-shadow:none;background:0 0}.button.ghost:hover:not(:disabled){color:var(--text);background:var(--hover-bg)}.button[aria-busy=true]{cursor:progress}.button[aria-busy=true]:before{content:"";border:2px solid;border-right-color:#0000;border-radius:50%;flex:none;width:13px;height:13px;animation:.7s linear infinite spin}@media (prefers-reduced-motion:reduce){.button{transition:none}.button:active:not(:disabled){transform:none}.button[aria-busy=true]:before{animation-duration:2s}}.alert{background:var(--error-bg);color:var(--error);border-radius:8px;margin-bottom:20px;padding:10px 14px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin-bottom:20px;padding:18px 20px}.panel-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.actions{gap:8px;display:flex}.steps{max-height:280px;margin:0;padding:0;list-style:none;overflow-y:auto}.step{align-items:baseline;gap:10px;min-width:0;padding:5px 0;font-size:14px;display:flex}.step-name{flex:none;width:56px;font-weight:600}.step-detail{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.step-error{color:var(--error);text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;font-size:12px;overflow:hidden}.dot{background:var(--muted);border-radius:50%;flex:none;align-self:center;width:8px;height:8px}.step.running .dot{background:var(--accent);animation:1s ease-in-out infinite pulse}.step.ok .dot{background:var(--ok)}.step.error .dot{background:var(--error)}.spinner{border:2px solid var(--border);border-top-color:var(--accent);vertical-align:-1px;border-radius:50%;width:10px;height:10px;margin-right:4px;animation:.8s linear infinite spin;display:inline-block}.table-wrap{margin:0 -20px;padding:0 20px;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-size:12px;font-weight:600}th,td{border-bottom:1px solid var(--border);vertical-align:top;padding:9px 12px 9px 0}tr:last-child td{border-bottom:none}td.email{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}td a{color:var(--accent);word-break:break-all;text-decoration:none}td a:hover{text-decoration:underline}.badge{white-space:nowrap;background:var(--generic-bg);color:var(--generic);border-radius:999px;padding:1px 8px;font-size:12px;display:inline-block}.badge.named{background:var(--named-bg);color:var(--named)}.badge.role{background:var(--role-bg);color:var(--role)}.badge.unverified{background:var(--unverified-bg);color:var(--unverified)}.notes{border-top:1px solid var(--border);color:var(--muted);margin-top:14px;padding-top:12px;font-size:13px}.notes p{margin:0 0 6px}.raw{white-space:pre-wrap;margin-top:10px;font-size:14px}.footer{font-size:13px}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.35}}@media (prefers-reduced-motion:reduce){.spinner,.step.running .dot{animation:none}}th.check,td.check{width:28px;padding-right:8px}td.check input,th.check input{vertical-align:middle;margin:0}.notice{background:var(--named-bg);color:var(--named);border-radius:8px;margin-bottom:14px;padding:10px 14px}.hint{color:var(--muted);margin:6px 0 0;font-size:13px}.hint code{margin:0 3px}.error-text{color:var(--error)}.compose-grid{grid-template-columns:1fr 1fr;gap:20px;margin-bottom:16px;display:grid}@media (max-width:760px){.compose-grid{grid-template-columns:1fr}}.compose-edit{flex-direction:column;gap:12px;min-width:0;display:flex}.field textarea{font:inherit;color:var(--text);resize:vertical;background:var(--surface);border:1px solid var(--border);border-radius:8px;width:100%;padding:10px 12px;font-size:14px}.field textarea:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:#0000}.compose-preview{min-width:0}.preview-head{justify-content:space-between;align-items:center;margin-bottom:6px;font-size:13px;display:flex}.pager{align-items:center;gap:8px;display:flex}.email-preview{border:1px solid var(--border);background:var(--bg);border-radius:8px;padding:12px 14px;font-size:13px}.preview-subject{margin:8px 0;font-size:15px;font-weight:600}.email-preview pre{white-space:pre-wrap;word-break:break-word;font:inherit;margin:0;font-size:14px}.recipients{border-top:1px solid var(--border);max-height:220px;margin:0 0 16px;padding:0;list-style:none;overflow-y:auto}.recipients li{border-bottom:1px solid var(--border);align-items:baseline;gap:12px;min-width:0;padding:6px 0;font-size:13px;display:flex}.recipients li.blocked .email{color:var(--muted);text-decoration:line-through}.recipients .email{overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.recipients .badge{margin-left:auto}.send-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.log-table td{font-size:13px}.inline-form{flex-wrap:wrap;gap:8px;margin-bottom:12px;display:flex}.inline-form input{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;min-width:240px;padding:6px 10px;font-size:14px}.topbar{z-index:10;background:color-mix(in srgb, var(--bg) 82%, transparent);-webkit-backdrop-filter:saturate(1.6)blur(12px);border-bottom:1px solid var(--border);position:sticky;top:0}.topbar-inner{justify-content:space-between;align-items:center;gap:16px;max-width:1040px;margin:0 auto;padding:10px 16px;display:flex}.brand{color:var(--text);letter-spacing:-.01em;align-items:center;gap:10px;font-weight:700;text-decoration:none;display:flex}.brand-mark{background:linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #8b5cf6));border-radius:8px;place-items:center;width:30px;height:30px;display:grid;box-shadow:0 1px 2px #0000001f,inset 0 1px #fff3}.brand-mark svg{fill:none;stroke:#fff;stroke-width:2px;stroke-linejoin:round;width:18px;height:18px}.tabs{background:color-mix(in srgb, var(--border) 55%, transparent);border-radius:10px;gap:2px;padding:3px;display:flex}.tab{color:var(--muted);border-radius:7px;align-items:center;gap:7px;padding:6px 12px;font-size:14px;font-weight:500;text-decoration:none;transition:color .15s,background-color .15s,box-shadow .15s;display:flex}.tab svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:16px;height:16px}.tab:hover{color:var(--text)}.tab.active{color:var(--text);background:var(--surface);box-shadow:0 1px 2px #00000014, 0 0 0 1px var(--border)}.tab.active svg{color:var(--accent)}.tab:focus-visible,.brand:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (max-width:760px){.brand-name{display:none}}@media (max-width:600px){.tab span{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.tab{padding:7px 11px}}@media (prefers-reduced-motion:reduce){.tab{transition:none}}.page{padding-top:32px}.template-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;display:grid}.template-card{flex-direction:column;gap:10px;min-width:0;margin-bottom:0;display:flex}.template-card .panel-head{margin-bottom:0}.template-desc{margin:0;font-size:14px}.template-card .email-preview pre{max-height:220px;overflow-y:auto}.template-card .hint{margin-top:auto}.settings{grid-template-columns:max-content 1fr;gap:6px 16px;margin:0 0 10px;font-size:14px;display:grid}.settings dt{color:var(--muted)}.settings dd{overflow-wrap:anywhere;margin:0}.template-bar{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;margin-bottom:16px;padding:14px 16px;display:flex}.field select{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;width:100%;height:42px;padding:0 12px;font-size:15px}.field select:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:#0000}.template-bar-hint{flex-basis:100%;margin:0}.segmented{background:color-mix(in srgb, var(--border) 55%, transparent);border-radius:9px;gap:2px;padding:3px;display:flex}.segmented button{font:inherit;color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:6px;padding:7px 12px;font-size:14px;font-weight:500}.segmented button:hover{color:var(--text)}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #00000014, 0 0 0 1px var(--border)}.segmented button:disabled{opacity:.5;cursor:default}.segmented button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.countdown{background:var(--role-bg);color:var(--role);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:10px 14px;display:flex}.test-to{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;min-width:220px;height:42px;padding:0 12px;font-size:14px}.test-to:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:#0000}.field>label{color:var(--muted);font-size:13px}.select-row{gap:8px;display:flex}.select-row select{flex:1;min-width:0}.preview-btn{padding:0 14px;font-weight:500}.preview-dialog{border:1px solid var(--border);background:var(--surface);width:min(720px,100vw - 32px);max-height:calc(100vh - 48px);color:var(--text);border-radius:14px;padding:0;box-shadow:0 20px 60px #00000040}.preview-dialog::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#00000073}.preview-dialog-inner{padding:18px 20px 20px}.preview-dialog .email-preview pre{max-height:55vh;overflow-y:auto}.login{place-items:center;min-height:100vh;padding:16px;display:grid}.login-card{flex-direction:column;gap:14px;width:min(380px,100%);margin:0;padding:28px;display:flex}.login-card h1{margin:0;font-size:22px}.login-card p{margin:-8px 0 4px}.login-mark{border-radius:10px;width:40px;height:40px}.login-mark svg{width:22px;height:22px}button.tab{font:inherit;cursor:pointer;background:0 0;border:0;font-size:14px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.masthead-row{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.icon-link{font-weight:500}.label-row{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.small-link{color:var(--accent);font-size:13px;text-decoration:none}.small-link:hover{text-decoration:underline}.leads-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.segmented .count{color:var(--muted);margin-left:6px;font-size:12px;font-weight:500}.small{font-size:13px}.nowrap{white-space:nowrap}.status-select{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:6px 10px;font-size:14px}.row-actions{white-space:nowrap;justify-content:flex-end;gap:6px;display:flex}.sender-list{flex-direction:column;gap:10px;display:flex}.sender-card{border:1px solid var(--border);background:var(--bg);border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:14px;padding:12px 14px;display:flex}.sender-card.is-default{border-color:color-mix(in srgb, var(--accent) 45%, var(--border))}.sender-main{flex-direction:column;flex:320px;gap:4px;min-width:0;display:flex}.sender-title{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.sender-meta{overflow-wrap:anywhere;flex-direction:column;gap:2px;font-size:13px;display:flex}.sender-actions{flex-wrap:wrap;gap:6px;display:flex}.sender-result{margin-top:4px;font-size:13px}.sender-result.ok{color:var(--ok)}.sender-result.bad{color:var(--error)}.sender-form .form-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.sender-form .span-2{grid-column:span 2}@media (max-width:620px){.sender-form .form-grid{grid-template-columns:1fr}.sender-form .span-2{grid-column:auto}}.smtp-box{border:1px solid var(--border);border-radius:10px;margin:16px 0 0;padding:12px 14px 14px}.smtp-box legend{color:var(--muted);padding:0 6px;font-size:13px;font-weight:600}.preset-row{flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:10px;display:flex}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.masthead h1:last-child{margin-bottom:24px}.token-count{cursor:help;text-underline-offset:3px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.button.icon-only{width:42px;padding:0}.button.icon-only.spinning svg{animation:.8s linear infinite spin}@media (prefers-reduced-motion:reduce){.button.icon-only.spinning svg{animation-duration:2s}}.panel,.notice,.alert,.countdown,.send-bar,.recipients,.composer-messages,.sender-list{scroll-margin-top:76px}.tab.busy svg{animation:.8s linear infinite spin}.attachments{flex-wrap:wrap;gap:6px;margin:10px 0 0;padding:0;list-style:none;display:flex}.attachment{border:1px solid var(--border);background:var(--surface);border-radius:999px;align-items:center;gap:6px;max-width:100%;padding:4px 6px 4px 10px;font-size:13px;display:inline-flex}.attachment svg{fill:none;width:14px;height:14px;stroke:var(--muted);stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;flex:none}.attachment a{color:var(--text);text-overflow:ellipsis;white-space:nowrap;text-decoration:none;overflow:hidden}.attachment a:hover{text-decoration:underline}.attachment-remove{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:50%;width:22px;height:22px;font-size:16px;line-height:1}.attachment-remove:hover{background:var(--hover-bg);color:var(--error)}.muted-files .attachment{opacity:.55}.attach-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.segmented.small button{padding:5px 10px;font-size:13px}.sender-bar{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-wrap:wrap;align-items:center;gap:10px 12px;margin-bottom:12px;padding:10px 16px;display:flex}.sender-bar-label{color:var(--muted);font-size:13px;font-weight:600}.sender-bar select{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;flex:0 380px;min-width:0;max-width:100%;height:36px;padding:0 10px;font-size:14px}.sender-bar select:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:#0000}.sender-bar-meta{color:var(--muted)}.sender-bar-manage{margin-left:auto}@media (max-width:600px){.sender-bar select{flex-basis:100%}.sender-bar-manage{margin-left:0}}
