:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#172033;background:#f6f7f9;--ink:#172033;--muted:#6b7280;--line:#e7e9ee;--soft:#f3f5f7;--success:#0f9d58;--danger:#b42318;--radius:18px}*{box-sizing:border-box}html{background:#f6f7f9}body{margin:0;min-height:100vh;background:#f6f7f9;color:var(--ink);font-size:15px;padding-bottom:84px}button,input,select,textarea{font:inherit}.topbar{position:sticky;top:0;z-index:30;height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.top-brand,.setup-brand{display:flex;align-items:center;gap:10px}.brand{font-weight:850;font-size:19px;letter-spacing:-.02em}.topbar small,.muted,small{color:var(--muted)}.app-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eaf8ef;font-size:19px}.app-icon.large{width:54px;height:54px;margin:0 auto 12px;font-size:27px}.top-actions{display:flex;align-items:center;gap:10px}.logout-link,.text-link{color:var(--muted);text-decoration:none;font-weight:700;font-size:13px}.tabs{position:fixed;left:0;right:0;bottom:0;z-index:50;display:grid;grid-template-columns:repeat(5,1fr);height:70px;padding:7px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:rgba(255,255,255,.98);border-top:1px solid var(--line);box-shadow:0 -8px 25px rgba(20,31,52,.06)}.tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#8a93a3;text-decoration:none;font-size:10px;border-radius:12px}.tabs a span{font-size:18px;line-height:1}.tabs a b{font-weight:750}.tabs a.active{color:var(--ink);background:#f1f3f5}.container{width:100%;max-width:1120px;margin:0 auto;padding:18px 12px 110px}.mobile-hero,.page-heading{padding:8px 4px 14px}.mobile-hero h1,.page-heading h1{font-size:25px;line-height:1.15;margin:6px 0 4px;letter-spacing:-.035em}.page-heading p{margin:0}.eyebrow{display:inline-block;font-size:10px;font-weight:900;letter-spacing:.13em;color:#8b94a3}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:12px;box-shadow:0 4px 16px rgba(20,31,52,.035)}.card h2{font-size:18px;margin:0 0 6px}.card h3{font-size:15px;margin:0}.section-title{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}.section-title p{margin:0}.form-stack{display:flex;flex-direction:column;gap:12px}label{display:block;font-weight:750;font-size:13px}input,select,textarea{width:100%;margin-top:6px;padding:13px 14px;border:1px solid #d9dde5;border-radius:13px;background:#fff;color:var(--ink);outline:none;transition:.15s;border-color:#d7dce4}input:focus,select:focus,textarea:focus{border-color:#7d8796;box-shadow:0 0 0 3px rgba(23,32,51,.06)}textarea{resize:vertical}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:0;border-radius:13px;padding:11px 16px;font-weight:800;text-decoration:none;cursor:pointer;background:#eef1f4;color:var(--ink)}.btn.primary,.send-btn{background:var(--ink);color:#fff}.btn.ghost{background:#f0f2f5;color:var(--ink)}.btn.compact{min-height:38px;padding:8px 12px;font-size:12px}.btn.wide{width:100%}.btn:disabled{opacity:.55;cursor:not-allowed}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:12px}.stats div{background:#fff;border:1px solid var(--line);border-radius:15px;padding:13px}.stats b{display:block;font-size:23px;line-height:1.1;letter-spacing:-.03em}.stats span{display:block;margin-top:3px;color:var(--muted);font-size:11px}.alert{padding:12px 14px;border-radius:13px;margin-bottom:12px;font-weight:650}.alert.success{background:#eaf8ef;color:#176b3a}.alert.danger{background:#fff0f0;color:#9e2222}.preview{background:#f7f8fa;border:1px dashed #cbd1db;border-radius:14px;padding:14px;white-space:pre-wrap;margin:12px 0 16px;color:#3d4758;min-height:70px}.recipient-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:4px}.check{display:flex;align-items:center;gap:8px;font-weight:700}.check input{width:auto;margin:0}.select-all{white-space:nowrap}.contact-search{margin:11px 0}.contact-grid{display:flex;flex-direction:column;gap:8px;max-height:52vh;overflow:auto;padding-bottom:4px}.contact-item{display:flex;align-items:center;gap:11px;border:1px solid #e7e9ee;border-radius:14px;padding:12px;margin:0;background:#fff}.contact-item input{width:19px;height:19px;margin:0;flex:0 0 auto}.contact-item span{display:flex;flex-direction:column;min-width:0}.contact-item b{font-size:14px}.contact-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-item.disabled{opacity:.42}.sticky-action{position:fixed;left:10px;right:10px;bottom:78px;z-index:45;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 10px 10px 14px;border-radius:17px;background:#172033;color:#fff;box-shadow:0 12px 35px rgba(17,24,39,.25)}.sticky-action span{white-space:nowrap}.sticky-action small{color:#c9ced6}.sticky-action .send-btn{background:#fff;color:#172033;min-width:145px}.desktop-grid{display:flex;flex-direction:column;gap:0}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.file-field input{padding:10px}.text-link{display:inline-block;text-align:center;color:#445064}.mobile-list{display:flex;flex-direction:column}.contact-row{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid #eef0f3}.contact-row:last-child{border-bottom:0}.avatar{width:38px;height:38px;border-radius:12px;background:#f0f2f5;display:grid;place-items:center;font-weight:850}.grow{flex:1;min-width:0;display:flex;flex-direction:column}.grow small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto}.status-dot.on{background:#24a866}.status-dot.off{background:#c3c8d0}.icon-button{width:34px;height:34px;border:0;border-radius:10px;background:#f5f6f8;font-size:20px;cursor:pointer}.danger-text{color:var(--danger)}.template-card{border:1px solid var(--line);border-radius:15px;padding:13px;margin-top:10px}.template-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.template-head small{display:block;margin-top:2px}.template-card pre{white-space:pre-wrap;background:#f7f8fa;padding:11px;border-radius:11px;margin:10px 0 0;font:inherit;font-size:13px;color:#4d5767}.history-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #edf0f3}.history-row:last-child{border-bottom:0}.history-metrics{display:flex;gap:8px;font-size:11px;color:var(--muted);width:100%;order:3}.badge{padding:5px 9px;border-radius:999px;background:#eef1f5;font-size:10px;font-weight:800;text-transform:uppercase}.badge.completed{background:#e8f7ee;color:#167240}.badge.running{background:#fff4d8;color:#8b6410}.badge.queued{background:#edf2ff;color:#415c9b}.settings-list code{display:block;word-break:break-all;font-size:11px;line-height:1.45}.copy-box{margin-top:6px;background:#f5f6f8;padding:11px;border-radius:11px}.empty-state{padding:24px 12px;text-align:center;color:var(--muted);font-size:13px}.desktop-only{display:none}.setup-body{padding:0;min-height:100vh;display:grid;place-items:center;background:#f6f7f9}.setup-shell,.login-shell{width:100%;max-width:780px;padding:16px}.setup-card,.login-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px;box-shadow:0 18px 55px rgba(20,31,52,.08)}.login-card{max-width:420px;margin:auto;text-align:center}.login-card form{text-align:left}.setup-brand{margin-bottom:18px}.wizard-progress{display:flex;align-items:center;margin:16px 0 26px}.wizard-progress i{height:2px;flex:1;background:#e4e7eb}.wizard-dot{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#eef0f3;color:#9098a5;font-size:12px;font-weight:850}.wizard-dot.active{background:#172033;color:#fff}.wizard-step{display:none}.wizard-step.active{display:block}.wizard-step h1{font-size:26px;line-height:1.1;margin:7px 0}.wizard-step>p{margin-top:0}.wizard-actions{display:grid;grid-template-columns:1fr 1.6fr;gap:9px;margin-top:14px}.tiny-note{text-align:center;font-size:11px;color:var(--muted);margin-top:14px!important}
@media(min-width:760px){body{padding-bottom:0}.topbar{height:72px;padding:0 5vw}.tabs{position:sticky;top:72px;bottom:auto;height:auto;display:flex;justify-content:flex-start;gap:7px;padding:10px 5vw;background:#fff;border-top:0;border-bottom:1px solid var(--line);box-shadow:none}.tabs a{flex-direction:row;gap:7px;padding:9px 13px;font-size:13px}.tabs a span{font-size:14px}.container{padding:24px 20px 70px}.mobile-hero h1,.page-heading h1{font-size:31px}.stats{grid-template-columns:repeat(4,1fr);gap:12px}.stats div{padding:17px}.card{padding:20px;margin-bottom:16px}.desktop-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.contact-grid{display:grid;grid-template-columns:repeat(2,1fr);max-height:460px}.sticky-action{position:sticky;left:auto;right:auto;bottom:12px;margin-top:16px}.history-row{flex-wrap:nowrap}.history-metrics{width:auto;order:0;margin-left:auto}.desktop-only{display:inline}.setup-shell{padding:30px}.setup-card{padding:30px}.field-row{gap:14px}}
.info-box{display:flex;flex-direction:column;gap:4px;margin-top:14px;padding:13px 14px;border:1px solid #dfe4eb;border-radius:14px;background:#f7f8fa}.info-box b{font-size:13px}.info-box span{font-size:12px;line-height:1.5;color:var(--muted)}.connection-card{display:flex;align-items:center;justify-content:space-between;gap:12px}.connection-state{display:flex;align-items:center;gap:10px}.connection-state i{display:block;width:11px;height:11px;border-radius:50%}.connection-state i.on{background:#24a866;box-shadow:0 0 0 5px #e9f8ef}.connection-state i.off{background:#d29a2b;box-shadow:0 0 0 5px #fff6df}.connection-state small{display:block;margin-top:2px}.guide-steps{margin:10px 0 0;padding-left:20px;color:#3f4857}.guide-steps li{margin:8px 0;line-height:1.5}.guide-steps b{color:var(--ink)}details.api-guide summary{cursor:pointer;font-weight:850;list-style:none}details.api-guide summary::-webkit-details-marker{display:none}details.api-guide summary:after{content:'＋';float:right;color:var(--muted)}details.api-guide[open] summary:after{content:'−'}
