:root { --ink:#152238; --navy:#102a54; --muted:#65738a; --line:#dce4ef; --canvas:#f4f7fb; --paper:#fff; --blue:#2563eb; --blue-soft:#eaf1ff; --green:#08774a; --green-soft:#e8f8ef; --red:#b42335; --red-soft:#ffedf0; --amber:#a35d00; --amber-soft:#fff2db; --shadow:0 16px 40px rgba(16,42,84,.08); }
* { box-sizing:border-box; }
body { min-width:320px; margin:0; color:var(--ink); background:var(--canvas); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,input { font:inherit; }
button { border:1px solid #cbd7e8; border-radius:8px; padding:9px 13px; color:#18345d; background:var(--paper); font-size:.82rem; font-weight:700; cursor:pointer; transition:background .15s,border-color .15s,transform .15s; }
button:hover { border-color:#9ebbf2; background:var(--blue-soft); }
button:active { transform:translateY(1px); }
button:focus-visible,input:focus-visible { outline:3px solid #8cb1ff; outline-offset:2px; }
button:disabled { opacity:.48; cursor:not-allowed; transform:none; }
h1,h2,h3,p { margin-top:0; } h1,h2,h3 { color:var(--navy); letter-spacing:-.025em; } h1 { margin-bottom:8px; font-size:clamp(1.75rem,4vw,2.45rem); } h2 { margin-bottom:7px; font-size:1.35rem; } h3 { margin-bottom:6px; font-size:1rem; }
.page-shell { width:min(1480px,100%); margin:0 auto; padding:34px 28px 64px; }
.app-header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:0 4px 26px; }
.eyebrow { margin:0 0 7px; color:var(--blue); font-size:.71rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }.subtitle,.section-copy,.help,.detail-identity { color:var(--muted); font-size:.86rem; line-height:1.55; }.subtitle { margin-bottom:0; }.section-copy { max-width:680px; margin:0; }
.header-actions,.actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }.header-actions { justify-content:flex-end; }.live-status { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid #c5e7d3; border-radius:999px; color:var(--green); background:var(--green-soft); font-size:.78rem; font-weight:750; white-space:nowrap; }.live-status.is-offline { border-color:#f3cdd2; color:var(--red); background:var(--red-soft); }.live-dot { width:8px; height:8px; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px color-mix(in srgb,currentColor 14%,transparent); }.sign-out { color:#8d2636; border-color:#edcbd1; background:#fffafb; }.sign-out:hover { color:#8d2636; background:var(--red-soft); }
.app-tabs { display:flex; gap:4px; overflow-x:auto; padding:6px; border:1px solid var(--line); border-radius:12px; background:#eaf0f8; box-shadow:0 2px 8px rgba(23,44,78,.04); }.app-tab { flex:0 0 auto; border:0; border-radius:8px; padding:10px 15px; color:#53627b; background:transparent; font-size:.82rem; }.app-tab:hover { color:var(--navy); background:#f7faff; }.app-tab.is-active { color:#123d86; background:var(--paper); box-shadow:0 2px 7px rgba(21,51,98,.12); }.app-tab:disabled { color:#9aa7b9; background:transparent; }
.console-panel { margin-top:22px; padding:27px; border:1px solid var(--line); border-radius:16px; background:var(--paper); box-shadow:var(--shadow); }.section-heading,.detail-toolbar { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:22px; }.last-updated { margin:0; color:var(--muted); font-size:.78rem; text-align:right; }.muted { color:var(--muted); font-size:.78rem; font-weight:500; }
.jobs-toolbar { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:16px; }.search-field { display:grid; gap:6px; width:min(100%,520px); color:#31415b; font-size:.78rem; font-weight:750; }.search-field input { width:100%; padding:11px 13px; border:1px solid #cbd7e8; border-radius:8px; color:var(--ink); background:#fff; }.toolbar-note { margin:0 0 10px; color:var(--muted); font-size:.78rem; }
.table-shell { overflow-x:auto; border:1px solid var(--line); border-radius:11px; background:var(--paper); }.jobs-table,.operator-table,.timing-table { width:100%; border-collapse:collapse; text-align:left; }.jobs-table { min-width:1080px; }.operator-table { min-width:800px; }.timing-table { min-width:720px; }.jobs-table th,.operator-table th,.timing-table th { padding:12px 14px; color:var(--muted); background:#f7f9fc; font-size:.68rem; font-weight:800; letter-spacing:.075em; text-transform:uppercase; white-space:nowrap; }.jobs-table td,.operator-table td,.timing-table td { padding:13px 14px; border-top:1px solid var(--line); color:#3d4b61; font-size:.79rem; font-variant-numeric:tabular-nums; vertical-align:top; }.jobs-table tbody tr:hover { background:#f8fbff; }.selected-row { background:#edf4ff !important; }.job-id { max-width:300px; margin:0; overflow-wrap:anywhere; color:var(--navy); font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size:.78rem; font-weight:800; line-height:1.4; }.file-name { max-width:320px; margin:4px 0 0; overflow-wrap:anywhere; color:var(--muted); font-size:.74rem; }.copy-job-id { margin-top:8px; padding:4px 7px; font-size:.68rem; }.status { display:inline-block; min-width:90px; padding:5px 8px; border-radius:999px; color:var(--blue); background:var(--blue-soft); font-size:.68rem; font-weight:800; letter-spacing:.03em; line-height:1.35; text-align:center; }.status--completed { color:var(--green); background:var(--green-soft); }.status--failed { color:var(--red); background:var(--red-soft); }.status--waiting { color:var(--amber); background:var(--amber-soft); }.primary-button { color:#164ea5; border-color:#b9cef7; background:#f1f6ff; white-space:nowrap; }.numeric { white-space:nowrap; }.pagination { display:flex; align-items:center; justify-content:flex-end; gap:11px; margin-top:16px; }.page-info { min-width:122px; margin:0; color:var(--muted); font-size:.8rem; text-align:center; }
.back-button { margin-bottom:14px; padding:6px 0; border:0; color:#2059b1; background:transparent; }.back-button:hover { background:transparent; text-decoration:underline; }.detail-identity { margin-bottom:0; overflow-wrap:anywhere; }.detail-toolbar .actions { justify-content:flex-end; }.metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }.metric { min-height:112px; padding:16px; border:1px solid #dbe5f3; border-radius:11px; background:#f9fbfe; }.metric-label { margin-bottom:9px; color:var(--muted); font-size:.72rem; font-weight:750; }.metric-value { margin-bottom:6px; color:var(--navy); font-size:1.45rem; font-weight:800; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }.metric-note { margin:0; color:var(--muted); font-size:.69rem; line-height:1.4; }.artifact-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin:16px 0 22px; }.artifact-grid h3 { grid-column:1/-1; margin:0; }.artifact-card { display:flex; align-items:center; gap:11px; min-height:72px; padding:13px; border:1px solid #cbdcf8; border-radius:10px; color:#174f9d; background:#f6f9ff; font-size:.8rem; font-weight:750; text-decoration:none; }.artifact-card:hover { border-color:#94b9f8; background:#edf4ff; }.artifact-icon { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; border-radius:8px; color:#fff; background:#2864c3; font-size:.65rem; font-weight:900; }.resource-link { display:block; margin:16px 0; color:#1f5ab6; font-size:.8rem; font-weight:750; text-decoration:none; }.resource-link:hover { text-decoration:underline; }.analysis-note,.help { margin:12px 0; }.notice,.error-banner { margin:13px 0; padding:12px 14px; border-radius:9px; font-size:.82rem; line-height:1.5; }.notice { color:#76510e; background:var(--amber-soft); }.error-banner { color:var(--red); background:var(--red-soft); }.stage-list { display:grid; gap:9px; margin-top:12px; }.stage-card { overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#fff; }.stage-card>summary { display:grid; grid-template-columns:minmax(220px,1.4fr) minmax(90px,1fr) 160px 125px; align-items:center; gap:14px; padding:14px; cursor:pointer; list-style:none; }.stage-card>summary::-webkit-details-marker { display:none; }.stage-name strong { color:var(--navy); font-size:.83rem; }.stage-name strong::before { content:'▸ '; color:var(--blue); }.stage-card[open] .stage-name strong::before { content:'▾ '; }.stage-name span,.stage-values span { display:block; margin-top:4px; }.stage-values { color:var(--navy); font-size:.83rem; text-align:right; }.stage-meter { display:flex; overflow:hidden; height:8px; border-radius:99px; background:#edf1f6; }.stage-meter span { display:block; min-height:8px; }.meter-active { background:var(--blue); }.meter-wait { background:#e0a233; }.parent-stage { background:#f7f9fc; }.parent-stage .meter-active { background:#aebfd6; }.stage-card .table-shell { margin:0 14px 14px; }.attempt-message { color:var(--muted); background:#fafbfd; }.retry-list { margin:0 25px 14px; color:var(--amber); font-size:.76rem; line-height:1.65; }.event-section { margin-top:20px; }.event-section>summary { color:var(--navy); font-weight:750; cursor:pointer; }.subsection-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; margin:28px 0 9px; }.subsection-heading .help { margin:0; }.settings-table td { vertical-align:middle; }.setting-input { width:min(100%,230px); padding:8px 9px; border:1px solid #cbd7e8; border-radius:7px; color:var(--ink); }.runtime-settings-card,.log-card,.history-card { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:22px; padding:18px; border:1px solid #dbe5f3; border-radius:11px; background:#f9fbfe; }.runtime-settings-card h3,.log-card h3,.history-card h3 { margin-bottom:5px; }.runtime-settings-card .help,.log-card .help,.history-card .help { margin:0; }.log-card,.history-card { display:block; background:#fff; }.history-card { margin-top:16px; }.history-card .table-shell { margin-top:15px; }.log-list { max-height:390px; overflow:auto; margin:14px 0 0; padding:0; list-style:none; border:1px solid #25334a; border-radius:8px; background:#111b2e; }.log-line { padding:9px 11px; border-top:1px solid #263852; color:#e7eef9; font:.72rem/1.5 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; overflow-wrap:anywhere; white-space:pre-wrap; }.log-line:first-child { border-top:0; }.empty-cell { min-height:110px; color:var(--muted)!important; text-align:center; }
@media (max-width:1050px) { .metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }.stage-card>summary { grid-template-columns:1fr 145px; }.stage-meter { grid-row:2; }.stage-values { grid-column:2; grid-row:1; }.stage-card .status { justify-self:end; } }
@media (max-width:700px) { .page-shell { padding:22px 14px 42px; }.app-header,.section-heading,.detail-toolbar,.jobs-toolbar { display:block; }.header-actions { justify-content:flex-start; margin-top:18px; }.console-panel { padding:19px 15px; border-radius:13px; }.last-updated { margin-top:12px; text-align:left; }.toolbar-note { margin-top:12px; }.metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.metric { min-height:96px; padding:13px; }.metric-value { font-size:1.2rem; }.detail-toolbar .actions { justify-content:flex-start; margin-top:16px; }.runtime-settings-card { display:block; }.runtime-settings-card button { margin-top:14px; }.stage-card>summary { grid-template-columns:1fr 115px; padding:12px; }.stage-name strong { font-size:.77rem; } }

.account-pill { display:inline-flex; align-items:center; max-width:250px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:8px 12px; border:1px solid #d6e1f4; border-radius:999px; color:#2d4b78; background:#f7faff; font-size:.78rem; font-weight:750; }
.health-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(255px,1fr)); gap:14px; }.health-card { min-height:178px; padding:17px; border:1px solid #dbe5f3; border-left-width:5px; border-radius:12px; background:#fbfcff; }.health-card--up { border-left-color:var(--green); }.health-card--degraded { border-left-color:#d58800; }.health-card--down { border-left-color:var(--red); }.health-card--unknown { border-left-color:#8b9ab0; }.health-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }.health-card h3 { margin:0; font-size:1rem; }.health-card .eyebrow { margin-bottom:5px; }.health-status { display:inline-block; flex:0 0 auto; padding:5px 8px; border-radius:999px; color:#53627b; background:#edf1f6; font-size:.67rem; font-weight:850; letter-spacing:.04em; }.health-card--up .health-status { color:var(--green); background:var(--green-soft); }.health-card--degraded .health-status { color:var(--amber); background:var(--amber-soft); }.health-card--down .health-status { color:var(--red); background:var(--red-soft); }.health-detail { min-height:44px; margin:18px 0 12px; color:#3d4b61; font-size:.81rem; line-height:1.5; }.health-meta { margin:0; color:var(--muted); font-size:.73rem; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.admin-card { margin:0 0 24px; padding:20px; border:1px solid #dbe5f3; border-radius:12px; background:#f9fbfe; }.admin-card h3 { margin-bottom:14px; }.user-form { display:grid; grid-template-columns:minmax(170px,1fr) minmax(150px,.7fr) minmax(240px,1.25fr) auto; align-items:end; gap:12px; }.user-form label { display:grid; gap:6px; color:#31415b; font-size:.76rem; font-weight:750; }.user-form input,.user-form select,.users-table select,.compact-password { width:100%; min-height:38px; padding:8px 9px; border:1px solid #cbd7e8; border-radius:7px; color:var(--ink); background:#fff; }.users-table td { vertical-align:middle; }.users-table select { min-width:135px; }.password-reset { display:flex; align-items:center; gap:7px; margin-top:8px; }.compact-password { min-width:155px; }.password-reset button { padding:7px 9px; font-size:.72rem; white-space:nowrap; }
.login-page { display:grid; min-height:100vh; place-items:center; padding:24px; background:radial-gradient(circle at top left,#e6f0ff 0,transparent 43%),var(--canvas); }.login-shell { width:min(100%,440px); }.login-card { padding:34px; border:1px solid var(--line); border-radius:18px; background:var(--paper); box-shadow:0 20px 60px rgba(16,42,84,.13); }.login-card h1 { margin-bottom:8px; }.login-card form { display:grid; gap:16px; margin-top:24px; }.login-card label { display:grid; gap:7px; color:#31415b; font-size:.8rem; font-weight:750; }.login-card input { width:100%; padding:11px 12px; border:1px solid #cbd7e8; border-radius:8px; color:var(--ink); background:#fff; }.login-message { min-height:24px; margin:18px 0 0; padding:9px 11px; border-radius:8px; color:#395273; background:#f2f6fc; font-size:.8rem; line-height:1.45; }.login-button { width:100%; padding:11px 15px; }
@media (max-width:900px) { .user-form { grid-template-columns:repeat(2,minmax(0,1fr)); }.user-form button { justify-self:start; } }
@media (max-width:700px) { .user-form { grid-template-columns:1fr; }.login-page { padding:16px; }.login-card { padding:25px 21px; } }

.sort-header { background: transparent; border: 0; color: inherit; font: inherit; font-weight: 700; padding: 0.35rem 0; white-space: nowrap; cursor: pointer; }
.sort-header:hover, .ip-link:hover { text-decoration: underline; }
.ip-link { background: transparent; border: 0; color: var(--accent, #2665bc); font: inherit; padding: 0.35rem 0; cursor: pointer; white-space: nowrap; }
.sort-header:focus-visible, .ip-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.ip-investigation { border: 1px solid var(--border, #ccd5df); border-radius: 12px; padding: 1.2rem; margin: 1.5rem 0; background: var(--surface, #fff); }
.service-breakdown { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.service-breakdown button { text-align: left; }
.endpoint-cell { max-width: 28rem; overflow-wrap: anywhere; }
.metric-drilldown { text-align: left; font: inherit; cursor: pointer; width: 100%; }
.metric-drilldown span { display: block; }
.metric-drilldown:hover { border-color: #2862ad; box-shadow: 0 0 0 1px #2862ad; }
.metric-drilldown:focus-visible { outline: 3px solid #2862ad; outline-offset: 3px; }
.suspect-dialog { width: min(880px, 92vw); max-height: 90vh; border: 1px solid #cbd5e1; border-radius: 12px; padding: 1.25rem; overflow: auto; color: #24354b; }
.suspect-dialog::backdrop { background: rgba(15, 23, 42, 0.55); }
.evidence-fields { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr); gap: 0.75rem; }
.evidence-fields dt { font-weight: 600; }
.evidence-fields dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .evidence-fields { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; } .evidence-fields dd { margin-bottom: 0.75rem; } }
#securityMetrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.artifact-section { margin: 1.25rem 0; border: 1px solid var(--border, #d5dbe5); border-radius: .75rem; padding: .5rem .75rem; }
.artifact-section > summary { cursor: pointer; font-weight: 650; padding: .35rem 0; }
.artifact-section > .artifact-grid { margin-top: .75rem; }

.whatsapp-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.whatsapp-form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; }
.whatsapp-form input, .whatsapp-form textarea { width: 100%; min-width: 0; padding: .65rem; border: 1px solid #cbd5e1; border-radius: .4rem; font: inherit; box-sizing: border-box; }
.whatsapp-form .whatsapp-check { flex-direction: row; align-items: center; }
.whatsapp-check input { width: auto; }
.whatsapp-wide { grid-column: 1 / -1; }
.whatsapp-preview { white-space: pre-wrap; overflow-wrap: anywhere; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: .5rem; padding: 1rem; font-size: .9rem; }
@media (max-width: 700px) { .whatsapp-form { grid-template-columns: 1fr; } }

/* Keep long connection values readable without altering other console tables. */
.settings-table { table-layout: fixed; min-width: 1100px; }
.settings-table th:nth-child(1) { width: 22%; }
.settings-table th:nth-child(2) { width: 24%; }
.settings-table th:nth-child(3) { width: 34%; }
.settings-table th:nth-child(4) { width: 12%; }
.settings-table th:nth-child(5) { width: 8%; }
.settings-table td { overflow-wrap: anywhere; }
.settings-table .setting-input { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; font: inherit; }
.settings-table textarea.setting-input { resize: vertical; min-height: 54px; line-height: 1.4; }
.settings-table td:last-child button { margin: 2px 0; }
.settings-group { margin-top: 12px; border: 1px solid #dbe5f3; border-radius: 10px; background: #fff; }
.settings-group > summary { padding: 14px 16px; color: var(--navy); font-weight: 700; cursor: pointer; }
.settings-group .table-shell { margin: 0 12px 12px; }
.settings-group tr[hidden], .settings-group[hidden] { display: none; }
#managedSettingsSearch { display: block; width: min(100%, 480px); margin: 8px 0 16px; }

.login-card [hidden] { display:none !important; }
#mfaEnrollment p, #backupSection p { color:#395273; font-size:.82rem; line-height:1.5; }
.mfa-key-label { margin-bottom:4px; font-weight:750; }
.mfa-secret, .mfa-backup-codes { overflow-wrap:anywhere; font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; }
.mfa-secret { margin-top:0; padding:12px; border:1px solid var(--line); border-radius:8px; background:#f7f9fc; }
#backupSection h2 { margin-top:24px; font-size:1.1rem; }
.mfa-backup-codes { padding:12px 12px 12px 32px; border:1px solid var(--line); border-radius:8px; background:#f7f9fc; line-height:1.8; }
#backupSection .mfa-warning { padding:12px; border:1px solid #d3a13d; border-radius:8px; color:#624611; background:#fff8e7; }
.login-card .mfa-confirm { display:flex; align-items:flex-start; gap:9px; margin:16px 0; color:#31415b; font-size:.82rem; line-height:1.5; }
.login-card .mfa-confirm input { width:auto; margin-top:3px; }
.mfa-signout { display:block; margin:18px auto 0; padding:6px; border:0; color:#164ea5; background:transparent; font:inherit; font-size:.82rem; text-decoration:underline; cursor:pointer; }
.recovery-form { display:flex; align-items:end; flex-wrap:wrap; gap:12px; margin:18px 0; }
.recovery-form[hidden] { display:none; }
.recovery-form label { display:grid; gap:6px; color:#31415b; font-size:.8rem; font-weight:750; }
.recovery-form input { padding:9px 10px; border:1px solid #cbd7e8; border-radius:7px; color:var(--ink); }
#recoveryResult { max-width:440px; }

.mfa-qr { display:block; max-width:100%; height:auto; image-rendering:pixelated; margin:.8rem auto; }
.mfa-qr[hidden] { display:none; }

.users-table .current-user-row { background:#f0f2f5; }
.users-table .current-user-row select:disabled,.users-table .current-user-row input:disabled { opacity:.55; background:#e6e9ee; cursor:not-allowed; }
dialog { width:min(480px,95vw); border:1px solid var(--line); border-radius:12px; padding:24px; box-shadow:var(--shadow); }
dialog::backdrop { background:rgba(10,20,40,.55); }
dialog form input { display:block; width:100%; margin:10px 0; padding:10px; border:1px solid #cbd7e8; border-radius:7px; }
dialog form button { margin-right:8px; }
.security-alert-banner { padding:12px 16px; margin:12px 0; border:1px solid #e6bb63; border-radius:8px; background:#fff5df; color:#6f4200; }

.ip-investigation-pair {
  grid-column:span 2;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:inherit;
}
.ip-investigation-pair .metric { min-width:0; overflow-wrap:anywhere; }
.ip-location-card { background:#edf5ff; border-color:#bbd6f2; }
.ip-location-card .metric-value { font-size:1.12rem; line-height:1.35; letter-spacing:normal; }
.ip-location-credit { margin-top:18px; text-align:right; }
.ip-location-credit a { color:inherit; }
@media (max-width:1050px) {
  .ip-investigation-pair { grid-column:1 / -1; }
}
