:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;background:#f5f7fb;font-size:15px}*{box-sizing:border-box}body{margin:0}.topbar{min-height:64px;background:#111827;color:white;display:flex;align-items:center;gap:24px;padding:12px 24px;position:sticky;top:0;z-index:10}.brand{font-weight:800;white-space:nowrap}.topbar nav{display:flex;gap:16px;flex:1;flex-wrap:wrap}.topbar a{color:#dbeafe;text-decoration:none}.topbar a:hover{color:white}.container{max-width:1440px;margin:0 auto;padding:28px}.login-wrap{max-width:520px;padding-top:10vh}.card{background:white;border:1px solid #e5e7eb;border-radius:14px;padding:22px;margin-bottom:22px;box-shadow:0 6px 24px rgba(15,23,42,.04)}.login-card{padding:30px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}h1,h2,h3{margin-top:0}h1{font-size:1.8rem}h2{font-size:1.2rem}.muted,.hint{color:#6b7280}.hint{font-size:.9rem}.stack{display:flex;flex-direction:column;gap:16px}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}label{display:flex;flex-direction:column;gap:7px;font-weight:650}input,textarea,select{width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:8px;background:white;color:#111827;font:inherit}textarea{resize:vertical}button,.button{border:0;border-radius:8px;padding:10px 14px;background:#2563eb;color:white;font-weight:750;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}button:hover,.button:hover{filter:brightness(.95)}button:disabled{opacity:.5;cursor:not-allowed}.secondary{background:#e5e7eb;color:#111827}.danger{background:#b91c1c}.inline{display:inline}.actions{display:flex;gap:7px;flex-wrap:wrap}.actions form{margin:0}.alert{border-radius:9px;padding:12px 14px;margin-bottom:18px}.alert.success{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}.alert.error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:22px}.stat{background:white;border:1px solid #e5e7eb;border-radius:12px;padding:18px}.stat span{display:block;font-size:1.45rem;font-weight:800;overflow-wrap:anywhere}.stat small{color:#64748b}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:800px}th,td{text-align:left;padding:11px;border-bottom:1px solid #e5e7eb;vertical-align:top}th{font-size:.82rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b}.badge{display:inline-block;border-radius:999px;padding:4px 8px;background:#e5e7eb;font-size:.78rem;font-weight:800}.badge.completed,.badge.sent{background:#dcfce7;color:#166534}.badge.running{background:#dbeafe;color:#1d4ed8}.badge.queued,.badge.pending{background:#fef3c7;color:#92400e}.badge.failed,.badge.paused_rate_limit{background:#fee2e2;color:#991b1b}.badge.stopped{background:#e5e7eb;color:#374151}.error-text{color:#991b1b;max-width:420px;overflow-wrap:anywhere}.small{font-size:.88rem;overflow-wrap:anywhere}.compact-form{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;min-width:420px}.check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.check{display:flex;flex-direction:row;align-items:flex-start;gap:9px;border:1px solid #e5e7eb;padding:10px;border-radius:9px;font-weight:600}.check input{width:auto;margin-top:3px}.check small{display:block;color:#64748b;font-weight:400}.confirm{background:#eff6ff;border-color:#bfdbfe}.separator{text-align:center;color:#94a3b8;border-bottom:1px solid #e5e7eb;line-height:.1em;margin:6px 0}.separator::first-line{background:white}.message-preview{white-space:pre-wrap;background:#f8fafc;padding:14px;border-radius:8px;border:1px solid #e2e8f0}.details>div{background:#f8fafc;padding:12px;border-radius:8px}.note ol{padding-left:22px}code{background:#f1f5f9;padding:2px 5px;border-radius:4px}@media(max-width:900px){.topbar{align-items:flex-start;flex-direction:column}.topbar nav{width:100%}.container{padding:16px}.grid.two,.stats,.check-grid{grid-template-columns:1fr}.compact-form{grid-template-columns:1fr;min-width:260px}.page-head{align-items:flex-start;flex-direction:column}}
