:root{--bg:#f5f7fb;--surface:#fff;--surface-muted:#f8fafc;--border:#dce3ee;--text:#172033;--muted:#667085;--blue:#2563eb;--blue-soft:#dbeafe;--green:#15803d;--green-soft:#dcfce7;--orange:#c2410c;--orange-soft:#ffedd5;--red:#b91c1c;--red-soft:#fee2e2;--shadow:0 12px 30px #0f172a14;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:linear-gradient(180deg, #dbeafe8c, #f5f7fb00 340px), var(--bg);min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}.dashboard{width:min(1320px,100% - 24px);margin:0 auto;padding:32px 0}.app-header{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px;display:flex}.title-block{grid-template-columns:58px 1fr;align-items:center;column-gap:14px;display:grid}.header-logo{object-fit:contain;grid-row:span 3;width:58px;height:70px}.title-block h1{letter-spacing:0;margin:8px 0 6px;font-size:40px;line-height:1.05}.title-block p{color:var(--muted);margin:0;font-size:16px}.app-kicker{color:var(--blue);text-transform:uppercase;align-items:center;font-size:13px;font-weight:700;display:inline-flex}.header-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;display:flex}.backend-status{border:1px solid var(--border);background:var(--surface);height:40px;color:var(--muted);border-radius:8px;align-items:center;gap:8px;padding:0 14px;font-weight:700;display:inline-flex}.backend-status span{background:var(--muted);border-radius:999px;width:9px;height:9px}.backend-status.online{color:var(--green)}.backend-status.online span{background:var(--green)}.backend-status.offline{color:var(--red)}.backend-status.offline span{background:var(--red)}.refresh-button{background:var(--blue);color:#fff;cursor:pointer;border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;height:40px;padding:0 16px;font-weight:700;display:inline-flex;box-shadow:0 8px 18px #2563eb3d}.refresh-button:disabled{cursor:progress;opacity:.72}.logout-button{border:1px solid var(--border);background:var(--surface);height:40px;color:var(--text);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:0 14px;font-weight:700;display:inline-flex}.secondary-button,.primary-button{cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0 14px;font-weight:700;display:inline-flex}.secondary-button{border:1px solid var(--border);background:var(--surface);color:var(--text)}.primary-button{background:var(--blue);color:#fff;border:0}.primary-button:disabled{cursor:progress;opacity:.72}.user-chip{border:1px solid var(--border);background:var(--surface-muted);min-height:40px;color:var(--muted);border-radius:8px;align-items:center;padding:0 12px;font-weight:800;display:inline-flex}.alert{color:var(--red);background:#fff1f2;border:1px solid #fecaca;border-radius:8px;align-items:center;gap:10px;margin-bottom:18px;padding:14px 16px;font-weight:700;display:flex}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px;display:grid}.stat-card{border:1px solid var(--border);background:var(--surface);min-height:112px;box-shadow:var(--shadow);border-radius:8px;align-items:center;gap:14px;padding:20px;display:flex}.stat-card p{color:var(--muted);margin:0 0 6px;font-weight:700}.stat-card strong{font-size:32px;line-height:1;display:block}.stat-icon{border-radius:8px;flex:0 0 46px;place-items:center;width:46px;height:46px;display:grid}.stat-sent .stat-icon,.status-sent{background:var(--green-soft);color:var(--green)}.stat-deferred .stat-icon,.status-deferred{background:var(--orange-soft);color:var(--orange)}.stat-bounced .stat-icon,.status-bounced{background:var(--red-soft);color:var(--red)}.stat-total .stat-icon,.status-unknown{background:var(--blue-soft);color:var(--blue)}.panel{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:8px}.panel-heading{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:18px 20px;display:flex}.panel-heading h2{letter-spacing:0;margin:0;font-size:18px}.panel-heading span{color:var(--muted);font-size:14px;font-weight:700}.empty-panel{color:var(--muted);text-align:center;padding:34px 20px;font-weight:700}.table-toolbar{border-bottom:1px solid var(--border);grid-template-columns:minmax(240px,1fr) 190px;gap:12px;padding:16px 20px;display:grid}.search-field,.status-filter{border:1px solid var(--border);background:var(--surface);border-radius:8px;align-items:center;height:42px;display:flex}.search-field{color:var(--muted);gap:10px;padding:0 12px}.search-field input{width:100%;min-width:0;color:var(--text);background:0 0;border:0;outline:0}.status-filter{overflow:hidden}.status-filter span{border-right:1px solid var(--border);color:var(--muted);align-self:stretch;align-items:center;padding:0 12px;font-size:13px;font-weight:800;display:inline-flex}.status-filter select{min-width:0;height:100%;color:var(--text);background:0 0;border:0;outline:0;flex:1;padding:0 10px}.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}.table-scroll{overflow-x:auto}table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:1080px}th,td{border-bottom:1px solid var(--border);text-align:left;vertical-align:top;overflow-wrap:anywhere;word-break:normal;padding:9px 10px}th{background:var(--surface-muted);color:var(--muted);text-transform:uppercase;font-size:10.5px;line-height:1.2}th:first-child{width:11%}th:nth-child(2){width:9%}th:nth-child(3){width:15%}th:nth-child(4){width:18%}th:nth-child(5){width:9%}th:nth-child(6),th:nth-child(7){width:7%}th:nth-child(8){width:24%}td{font-size:11.5px;line-height:1.35}tbody tr:last-child td{border-bottom:0}.mono{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace}.response-cell{color:var(--muted)}.status-badge{border-radius:999px;justify-content:center;align-items:center;min-width:68px;padding:4px 7px;font-size:10.5px;font-weight:800;display:inline-flex}.empty-filter{color:var(--muted);text-align:center;padding:34px 20px;font-weight:700}.pagination-bar{border-top:1px solid var(--border);color:var(--muted);justify-content:space-between;align-items:center;gap:16px;padding:14px 20px;font-size:14px;display:flex}.pagination-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.pagination-actions button{border:1px solid var(--border);background:var(--surface);min-height:36px;color:var(--text);cursor:pointer;border-radius:8px;align-items:center;gap:6px;padding:0 12px;font-weight:800;display:inline-flex}.pagination-actions button:disabled{cursor:not-allowed;opacity:.48}.pagination-actions strong{color:var(--text);font-size:13px}.dashboard-footer{color:var(--muted);align-items:center;gap:8px;margin-top:16px;font-size:13px;display:flex}.login-page,.session-loading{place-items:center;min-height:100vh;padding:24px;display:grid}.session-loading{color:var(--muted);font-weight:800}.login-panel{border:1px solid var(--border);background:var(--surface);width:min(100%,430px);box-shadow:var(--shadow);border-radius:8px;padding:28px}.login-brand{align-items:center;gap:14px;margin-bottom:24px;display:flex}.login-logo{object-fit:contain;flex:none;width:72px;height:88px}.login-brand span{color:var(--blue);letter-spacing:0;margin-bottom:5px;font-size:12px;font-weight:900;display:block}.login-brand h1{letter-spacing:0;margin:0 0 4px;font-size:28px;line-height:1.1}.login-brand p{color:var(--muted);margin:0;font-size:14px}.login-form{gap:16px;display:grid}.login-form label{color:var(--muted);gap:7px;font-size:14px;font-weight:800;display:grid}.login-form input{border:1px solid var(--border);background:var(--surface);width:100%;height:44px;color:var(--text);border-radius:8px;outline:0;padding:0 12px}.login-form input:focus,.search-field:focus-within,.status-filter:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #2563eb1f}.login-error{color:var(--red);background:#fff1f2;border:1px solid #fecaca;border-radius:8px;align-items:center;gap:8px;padding:10px 12px;font-size:14px;font-weight:800;display:flex}.login-form button{background:var(--blue);color:#fff;cursor:pointer;border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;height:44px;font-weight:800;display:inline-flex}.login-form button:disabled{cursor:progress;opacity:.72}.modal-backdrop{z-index:40;background:#0f172a6b;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal-panel{border:1px solid var(--border);background:var(--surface);border-radius:8px;width:min(100%,460px);box-shadow:0 24px 70px #0f172a47}.modal-heading{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:16px;padding:20px;display:flex}.modal-heading h2{letter-spacing:0;margin:0 0 4px;font-size:20px}.modal-heading p{color:var(--muted);margin:0;font-size:14px}.icon-button{border:1px solid var(--border);background:var(--surface);width:36px;height:36px;color:var(--text);cursor:pointer;border-radius:8px;place-items:center;display:grid}.password-form{gap:14px;padding:20px;display:grid}.password-form label{color:var(--muted);gap:7px;font-size:14px;font-weight:800;display:grid}.password-form input{border:1px solid var(--border);background:var(--surface);width:100%;height:42px;color:var(--text);border-radius:8px;outline:0;padding:0 12px}.password-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #2563eb1f}.form-error,.form-success{border-radius:8px;padding:10px 12px;font-size:14px;font-weight:800}.form-error{color:var(--red);background:#fff1f2;border:1px solid #fecaca}.form-success{color:var(--green);background:#f0fdf4;border:1px solid #bbf7d0}.modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:4px;display:flex}@media (width<=900px){.dashboard{width:min(100% - 24px,1180px);padding:24px 0}.app-header{flex-direction:column}.title-block{grid-template-columns:48px 1fr}.header-logo{width:48px;height:58px}.header-actions{justify-content:flex-start;width:100%}.title-block h1{font-size:32px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.table-toolbar{grid-template-columns:1fr}.pagination-bar{flex-direction:column;align-items:flex-start}.pagination-actions{justify-content:flex-start}}@media (width<=560px){.stats-grid{grid-template-columns:1fr}.login-brand{align-items:flex-start}.login-logo{width:58px;height:72px}.header-actions,.refresh-button,.backend-status,.logout-button,.secondary-button,.user-chip{width:100%}.backend-status,.refresh-button,.logout-button,.secondary-button,.user-chip{justify-content:center}.modal-actions .secondary-button,.modal-actions .primary-button{width:100%}}
