:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#172b35;background:#f4f7f7;font-synthesis:none;--ink:#172b35;--muted:#6b7b83;--teal:#087f7d;--border:#dce6e6;--paper:#fff}*{box-sizing:border-box}body{margin:0}a{color:var(--teal);text-decoration:none}button,input,textarea{font:inherit}button,a.primary,a.secondary,a.ghost{cursor:pointer;border-radius:8px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 16px;text-decoration:none;border:1px solid transparent;line-height:1.2}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--teal);color:white;border-color:var(--teal)}.primary:hover:not(:disabled){background:#056b69}.secondary{background:white;color:var(--ink);border-color:var(--border)!important}.ghost{background:transparent;color:var(--muted)}.ghost:hover{background:#edf3f3}.small{min-height:32px!important;padding:7px 10px!important;font-size:13px}.full{width:100%}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(26px,3vw,35px);letter-spacing:-1px;margin-bottom:10px;line-height:1.2}h2{font-size:20px;letter-spacing:-.4px;margin-bottom:12px}h3{font-size:17px}p{line-height:1.6}small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.muted,.note{color:var(--muted);font-size:13px}.note{line-height:1.65}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.6px;color:var(--teal);margin-bottom:12px}.workspace{display:flex;min-height:100vh}.sidebar{width:235px;background:#152e39;color:#ecf3f4;padding:28px 18px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;color:white;font-size:23px;font-weight:700;padding:4px 12px}.brand small{font-size:8px;letter-spacing:1.8px;color:#a0b8bf}.brand-icon{background:var(--teal);color:white;width:38px;height:38px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-size:21px;font-weight:700}.sidebar nav{display:flex;flex-direction:column;gap:7px;margin-top:38px}.sidebar nav a{padding:13px 14px;border-radius:8px;color:#b9ccd2;font-size:13px;display:flex;gap:14px;align-items:center}.sidebar nav a span{font-size:20px;width:20px;text-align:center}.sidebar nav a.active{background:#264753;color:#fff}.sidebar nav a:hover{background:#213f4b}.sidebar-bottom{margin-top:auto;padding:20px 12px 0;font-size:12px;color:#a6bdc5}.manual-pill{color:#7bd5bc;font-size:11px}.sidebar-bottom p{margin:12px 0 0}.content{margin-left:235px;min-width:0;width:calc(100% - 235px)}header{height:66px;background:white;border-bottom:1px solid var(--border);display:flex;justify-content:flex-end;gap:24px;align-items:center;padding:0 36px;font-size:13px}header form{margin:0}main{max-width:1280px;margin:auto;padding:36px 38px}.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:26px}.page-heading p:not(.eyebrow){font-size:14px;color:var(--muted);margin-bottom:0}.connection{display:flex;gap:14px;align-items:center;padding:17px 20px;border:1px solid var(--border);background:#fff;border-radius:10px;margin-bottom:26px;font-size:13px}.connection p{margin:5px 0 0;font-size:12px;color:var(--muted)}.connection a{margin-left:auto;font-size:12px}.mail-icon{display:flex;justify-content:center;align-items:center;background:#edf7f4;color:var(--teal);border-radius:10px;width:42px;height:42px;font-size:24px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.stats>div{background:white;border:1px solid var(--border);padding:20px;border-radius:10px}.stats span{font-size:12px;color:var(--muted)}.stats b{display:block;font-size:33px;margin-top:12px;font-weight:650}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:24px 0 14px}.section-heading h2{margin:0}.card{background:var(--paper);border:1px solid var(--border);border-radius:12px;padding:26px;margin-bottom:22px;box-shadow:0 2px 6px #14313b03}.table-wrap{padding:0;overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th{font-size:10px;letter-spacing:1px;font-weight:650;color:var(--muted);padding:16px 20px;border-bottom:1px solid var(--border);background:#fbfcfc;text-transform:uppercase}td{padding:18px 20px;border-bottom:1px solid #edf2f2}tr:last-child td{border-bottom:0}.badge{padding:6px 10px;border-radius:6px;font-size:11px;font-weight:600;white-space:nowrap;background:#eff3f3;color:#637b83}.badge.ready,.badge.sent,.badge.completed{background:#e3f4eb;color:#287256}.badge.needs_attention,.badge.unknown,.badge.failed{background:#fff0e8;color:#a05b35}.badge.sending{background:#e6effb;color:#466b9f}.empty{text-align:center;padding:45px 20px;color:var(--muted)}.empty h3{color:var(--ink)}.empty p{max-width:460px;margin:10px auto 24px}.alert{border:1px solid #c6dcdc;border-radius:9px;background:#edf7f5;padding:15px 18px;font-size:13px;line-height:1.6;margin-bottom:20px}.alert.error{border-color:#efcfc7;background:#fff0ed;color:#9b493c}.alert.success{color:#28694f;border-color:#b9decf}.danger{color:#a6473b}label{display:block;font-size:12px;font-weight:600;margin-bottom:18px}input:not([type=checkbox]),textarea{display:block;width:100%;border:1px solid #cad9da;border-radius:7px;background:white;padding:11px 12px;color:var(--ink);margin-top:8px;font-size:14px}input:focus,textarea:focus{outline:2px solid #b6ddda;outline-offset:1px;border-color:var(--teal)}textarea{resize:vertical;line-height:1.65}.checkbox{display:flex;gap:12px;align-items:flex-start;line-height:1.5;font-weight:400;font-size:13px;margin:0;padding:10px 0}.checkbox input{width:16px;height:16px;margin:2px 0 0;accent-color:var(--teal);flex:none}.checkbox small{font-weight:400}.form-row{display:flex;gap:20px;align-items:center}.form-row>label{flex:1}.form-row .text-link{font-size:13px}.columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:start}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:18px}.template p{font-size:13px;white-space:pre-wrap;color:var(--muted);margin:12px 0 16px}.attachments{border:1px solid var(--border);border-radius:8px;padding:16px;margin:20px 0}legend{font-size:12px;font-weight:600;padding:0 6px}.attachment-list{max-height:180px;overflow:auto}.upload-label{font-size:12px;margin:14px 0 0}.recipients{max-height:350px;overflow:auto;margin:12px 0 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.campaign-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.campaign-head p{font-size:13px;color:var(--muted)}.send-card{border-color:#9ecfc6;background:linear-gradient(140deg,#fff,#f0faf6)}.send-card details{margin:20px 0}details{margin:15px 0}summary{font-size:13px;font-weight:600;cursor:pointer;color:var(--teal);padding:8px 0}details label:first-of-type{margin-top:15px}pre{font:inherit;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f8f8;border:1px solid var(--border);border-radius:8px;padding:18px;color:#34505c}.callback{display:block;background:#eef4f4;font-size:12px;word-break:break-all;border-radius:7px;padding:13px;color:#315760}ol{font-size:13px;color:var(--muted);line-height:1.8;padding-left:20px}li{padding-bottom:10px}.mode-note{background:#eef7f2;padding:16px;border-radius:8px;font-size:12px;margin-top:22px}.mode-note p{margin:7px 0 0;color:var(--muted)}footer{display:flex;justify-content:space-between;gap:16px;font-size:10px;color:#8b9ca4;border-top:1px solid var(--border);padding-top:20px;margin-top:36px}.auth{max-width:none;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(ellipse at top left,#e1f1eb,transparent 60%),#f4f7f7}.auth-card{background:white;border:1px solid var(--border);border-radius:16px;padding:38px;max-width:410px;width:100%;box-shadow:0 14px 70px #23443a0b}.auth-card .brand-icon{margin-bottom:22px}.auth-card h1{font-size:29px}.auth-card>p:not(.eyebrow){font-size:13px;color:var(--muted);margin-bottom:26px}dialog{border:1px solid var(--border);border-radius:13px;max-width:700px;width:calc(100% - 32px);padding:26px;color:var(--ink)}dialog::backdrop{background:#0d253f66}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-header h2{margin:0}#preview-subject{font-weight:650;margin:20px 0}body.busy button.action{pointer-events:none}button:focus-visible,a:focus-visible{outline:3px solid #8fcfc4;outline-offset:3px}
@media(max-width:1000px){.sidebar{width:195px}.content{margin-left:195px;width:calc(100% - 195px)}main{padding:28px 24px}.columns{grid-template-columns:1fr}.stats{gap:10px}.stats>div{padding:15px}.brand{font-size:20px;padding:4px}.sidebar nav a{padding:12px 8px}.page-heading{align-items:flex-start}.page-heading>.primary{font-size:12px;white-space:nowrap}}
@media(max-width:680px){.workspace{display:block}.sidebar{position:static;width:100%;padding:16px}.brand{font-size:20px}.brand-icon{width:32px;height:32px}.sidebar nav{margin-top:15px;flex-direction:row;overflow-x:auto;gap:3px}.sidebar nav a{white-space:nowrap;gap:6px;padding:9px 10px;font-size:11px}.sidebar nav a span{display:none}.sidebar-bottom{display:none}.content{margin:0;width:100%}header{height:50px;padding:0 20px;gap:18px}main{padding:24px 16px}.page-heading{display:block}.page-heading>.primary{margin-top:18px}.connection{padding:13px;flex-wrap:wrap;gap:10px}.connection a{margin-left:52px}.stats{grid-template-columns:repeat(2,1fr)}.stats b{font-size:29px}.card{padding:20px}.table-wrap{padding:0}th,td{padding:13px}.form-row{display:block}.form-row .text-link{display:block;margin:0 0 20px}.recipients{grid-template-columns:1fr}.campaign-head{align-items:flex-start;flex-direction:column}.campaign-head .actions{margin-top:0}footer{flex-direction:column;gap:8px}.section-heading{align-items:flex-start;gap:12px}.auth-card{padding:28px}.send-card .actions{align-items:flex-start;flex-direction:column}}
.template p{max-height:90px;overflow:hidden;overflow-wrap:anywhere}
#batch-sender[hidden],#batch-sender [hidden]{display:none!important}#batch-summary{font-variant-numeric:tabular-nums;line-height:1.7}#batch-next{overflow-wrap:anywhere}#send-wait{font-variant-numeric:tabular-nums}#batch-result{margin-top:18px;margin-bottom:0}#batch-sender .actions{align-items:center}#batch-sender .actions button{white-space:normal}@media(max-width:680px){#batch-sender .actions button{width:100%}}
select{font:inherit;display:block;width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:7px;background:white;color:var(--ink)}.signature-settings{margin-top:24px}.signature-preview{margin-top:24px;padding:20px;background:#fff;border:1px solid var(--border);border-radius:8px}.signature-preview img{max-width:100%;height:auto}.signature-settings form{max-width:720px}dialog{max-width:950px}
