/* MailPilot dashboard UI */
:root{--ink:#172033;--muted:#64748b;--line:#e5eaf2;--panel:#fff;--page:#f5f7fb;--brand:#4f46e5;--brand-dark:#3730a3;--success:#059669;--warning:#d97706;--danger:#b91c1c;--shadow:0 8px 28px rgba(23,32,51,.07)}*{box-sizing:border-box}html{font-size:16px}body{margin:0;background:var(--page);color:var(--ink);font:14px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}header{min-height:72px;background:#111827;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,5vw,72px)}.brand{font-size:22px;font-weight:800;letter-spacing:-.04em}.brand span{font-size:10px;letter-spacing:.16em;color:#94a3b8;margin-left:10px;font-weight:700}.link{color:#cbd5e1;background:transparent;border:0;cursor:pointer;font:inherit;padding:8px 0}.link:hover{color:#fff}main{width:min(1400px,100%);margin:0 auto;padding:clamp(20px,3vw,36px) clamp(16px,5vw,72px)}h1,h2{margin:0 0 10px;letter-spacing:-.035em}h1{font-size:clamp(24px,3vw,34px)}h2{font-size:18px}.muted,.help{color:var(--muted)}.help{font-size:12px;font-weight:400}.grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);gap:22px}.wide{grid-column:1/-1}.card{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:clamp(16px,2vw,24px);box-shadow:var(--shadow)}.toolbar{display:flex;gap:14px;justify-content:space-between;align-items:center;margin-bottom:18px}.toolbar>form{display:flex;gap:8px;align-items:center}.toolbar input{min-width:220px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.stat{padding:18px}.stat strong{display:block;margin-top:4px;font-size:27px;line-height:1.15;letter-spacing:-.04em}.stat small{color:var(--muted)}.green{color:var(--success)}.orange{color:var(--warning)}.red{color:#dc2626}.alert{padding:12px 16px;border-radius:9px;margin-bottom:18px}.success{background:#dcfce7;color:#166534}.error{background:#fee2e2;color:#991b1b}label{display:block;font-weight:700;color:#334155;margin:12px 0}input,textarea,select{display:block;width:100%;margin-top:6px;border:1px solid #d7deea;border-radius:8px;padding:10px 12px;color:var(--ink);background:#fff;font:inherit;outline:none;transition:border-color .15s,box-shadow .15s}input:focus,textarea:focus,select:focus{border-color:#818cf8;box-shadow:0 0 0 3px rgba(99,102,241,.13)}textarea{min-height:105px;resize:vertical}.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.row.three{grid-template-columns:2fr 1fr 1fr}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:8px;padding:10px 15px;cursor:pointer;font:700 14px/1 inherit;white-space:nowrap;transition:background .15s,transform .05s}.primary{background:var(--brand);color:#fff}.primary:hover{background:var(--brand-dark)}.secondary{background:#e8ecf5;color:#344054}.secondary:hover{background:#dbe2f0}.danger{background:#fee2e2;color:var(--danger)}.danger:hover{background:#fecaca}.check{display:flex;gap:8px;align-items:center}.check input{width:auto;margin:0}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}table{width:100%;min-width:720px;border-collapse:collapse}th,td{text-align:left;padding:12px 9px;border-bottom:1px solid #edf0f5;vertical-align:middle}th{font-size:11px;text-transform:uppercase;color:var(--muted);letter-spacing:.06em;white-space:nowrap}tbody tr:hover{background:#fafbff}td:first-child,th:first-child{width:38px}.inline{display:flex;gap:6px;align-items:center}.inline input{margin:0;min-width:130px}.inline button{padding:8px 10px;font-size:12px}.pill{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:800;background:#dcfce7;color:#166534}.pill.paused{background:#fef3c7;color:#92400e}nav[role="navigation"]{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:16px;overflow:auto}nav[role="navigation"]>div{display:flex;align-items:center;gap:4px}nav[role="navigation"] svg{width:16px!important;height:16px!important;max-width:16px;max-height:16px;display:block}nav[role="navigation"] a,nav[role="navigation"] span{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 9px;border:1px solid #e2e8f0;border-radius:7px;background:#fff;color:#475569;text-decoration:none;font-size:13px;line-height:1}nav[role="navigation"] a:hover{background:#eef2ff;color:#4338ca}nav[role="navigation"] span[aria-current="page"]{background:var(--brand);border-color:var(--brand);color:#fff}nav[role="navigation"] span[aria-disabled="true"]{color:#94a3b8;background:#f8fafc}.login{max-width:410px;margin:12vh auto}.auth{min-height:100vh;background:linear-gradient(135deg,#eef2ff,#f8fafc)}.login h1{text-align:center}.login .primary{width:100%;margin-top:10px}.subscriber-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}.confirm-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.58)}.confirm-modal[hidden]{display:none}.confirm-box{width:min(440px,100%);padding:24px;background:#fff;border-radius:14px;box-shadow:0 24px 80px rgba(15,23,42,.25)}.confirm-box h2{margin:0 0 8px}.confirm-box p{margin:0 0 22px;color:#64748b}.confirm-actions{display:flex;justify-content:flex-end;gap:10px}@media(max-width:1000px){.grid{grid-template-columns:1fr}.wide{grid-column:auto}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){header{min-height:64px}.brand{font-size:19px}.brand span{display:none}main{padding:20px 12px}.toolbar{display:block}.toolbar>form{margin-top:12px}.toolbar input{min-width:0}.row,.row.three{grid-template-columns:1fr}.card{padding:16px}.stats{gap:10px}.stat{padding:14px}.stat strong{font-size:22px}button,.button{padding:9px 11px;font-size:13px}nav[role="navigation"]{justify-content:flex-start}nav[role="navigation"] a,nav[role="navigation"] span{min-width:30px;height:30px;padding:0 7px}.subscriber-actions form,.subscriber-actions button{width:100%}.confirm-actions{flex-direction:column-reverse}.confirm-actions button{width:100%}}
