/* SPDX-FileCopyrightText: 2026 Achraf BEN ABDESSALEM */
:root { color-scheme: dark; font: 14px/1.45 "Aptos", "Segoe UI", Inter, system-ui, sans-serif; background: #0b1119; color: #e7edf4; --bg: #0b1119; --surface: #101923; --surface-2: #15212d; --line: #293948; --line-strong: #405769; --text: #e7edf4; --muted: #a6b5c3; --dim: #8496a6; --cyan: #70cfc9; --blue: #8db9e6; --green: #8bdfb2; --red: #f1a0a8; --amber: #efc082; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--bg); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
[hidden], .scenario-row[hidden] { display: none !important; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #b2d5fa; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
h1, h2, p { margin-top: 0; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; padding: 25px 14px 18px; border-right: 1px solid var(--line); background: #0d151e; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 10px 37px; font-size: 17px; font-weight: 800; letter-spacing: -.035em; }
.brand-mark { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid #3c8e91; border-radius: 7px; background: #1b363b; color: #b1e6e2; font-size: 12px; font-weight: 900; }
.brand small { display: block; color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.side-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 7px 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); text-align: left; font-size: 12px; font-weight: 700; }
.nav-item span { width: 17px; color: var(--blue); text-align: center; font-size: 15px; }.nav-item:hover:not(:disabled), .nav-item.active { border-color: #345061; background: #192a36; color: var(--text); }.nav-item:disabled { opacity: .45; cursor: default; }
.sidebar-foot { margin-top: auto; padding: 15px 11px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 750; }.sidebar-foot span { color: var(--dim); font-weight: 550; }
.main { width: 100%; max-width: 1600px; min-width: 0; margin: 0 auto; padding: 25px clamp(20px,4vw,62px) 58px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; }.topbar-trail { color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .03em; }.topbar-trail b { color: var(--text); }.topbar-trail span { margin: 0 8px; color: #58718a; }.topbar-actions { display: flex; align-items: center; gap: 9px; }
.action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 750; }.action-link:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.connection-state, .stream-state { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 10px; font-weight: 800; white-space: nowrap; }.connection-state::before, .stream-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.connection-state.connected, .stream-state.connected { color: var(--green); }.connection-state.reconnecting, .stream-state.reconnecting { color: var(--amber); }.connection-state.error, .stream-state.error { color: var(--red); }
.surface { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }.state-panel { max-width: 600px; padding: 26px; }.state-panel h1 { margin: 7px 0; font-size: 27px; }.state-panel p { margin: 7px 0 17px; color: var(--muted); font-size: 13px; }.state-panel strong { font-size: 16px; }.login-button { display: inline-flex; align-items: center; gap: 9px; min-height: 37px; padding: 7px 13px; border: 1px solid #9b5b42; border-radius: 6px; background: #4d2d25; color: #ffe2d6; font-size: 12px; font-weight: 800; }.login-button:hover { background: #62382a; color: #fff0e8; }.gitlab-mark { color: #ff9d67; font-size: 18px; }
.eyebrow { color: var(--dim); font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 21px 24px; border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 9px; background: var(--surface); }.hero h1 { margin: 5px 0 4px; font-size: clamp(23px,2.5vw,31px); line-height: 1.18; letter-spacing: -.035em; }.hero p { margin: 0; color: var(--muted); font-size: 12px; }.hero-stamp { padding-top: 4px; color: var(--dim); font-size: 10px; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin: 10px 0 25px; }.metric { min-height: 78px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }.metric span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; }.metric strong { display: block; margin-top: 6px; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }.detail-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 11px; }.section-heading h2 { margin: 3px 0 0; font-size: 18px; letter-spacing: -.02em; }.section-counter { padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); color: var(--muted); font-size: 10px; font-weight: 800; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 11px; }.filter-field { min-width: 140px; display: grid; gap: 4px; }.filter-field.grow { flex: 1 1 260px; }.filter-field label { color: var(--dim); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }.filter-field input, .filter-field select { width: 100%; min-height: 33px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; background: #0f1923; color: var(--text); font-size: 11px; }.filter-field input::placeholder { color: #728799; }
.table-wrap { overflow-x: auto; }.runs-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }.runs-table th { padding: 10px 13px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }.runs-table td { padding: 9px 13px; border-bottom: 1px solid #23313e; color: var(--muted); white-space: nowrap; }.runs-table tr:last-child td { border-bottom: 0; }.runs-table tbody tr:hover { background: #172633; }.runs-table a { color: var(--text); font-weight: 750; }.runs-table .mono { font-family: ui-monospace,"Cascadia Code",Consolas,monospace; font-size: 10px; }.run-counts { color: var(--dim); font-size: 10px; font-variant-numeric: tabular-nums; }.empty-state { margin: 0; padding: 17px; color: var(--muted); font-size: 11px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; padding: 3px 7px; border: 1px solid #52616d; border-radius: 4px; background: #26313a; color: #b8c5d0; font-size: 9px; font-weight: 900; letter-spacing: .045em; white-space: nowrap; text-transform: uppercase; }.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.status-badge.RUNNING { border-color: #3d8583; background: #17383b; color: #a4e8e2; }.status-badge.PASSED { border-color: #367258; background: #17382b; color: var(--green); }.status-badge.FAILED, .status-badge.BLOCKED, .status-badge.ABORTED { border-color: #875360; background: #3c252d; color: var(--red); }.status-badge.SKIPPED, .status-badge.PARTIAL, .status-badge.INCOMPLETE { border-color: #886941; background: #3c2f20; color: var(--amber); }
.detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }.detail-hero h1 { overflow-wrap: anywhere; }.run-meta { display: flex; flex-wrap: wrap; gap: 10px 23px; margin: 10px 0 0; padding: 11px 15px; border: 1px solid var(--line); border-radius: 7px; background: #111c27; }.run-meta div { min-width: 95px; }.run-meta dt { color: var(--dim); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }.run-meta dd { margin: 3px 0 0; color: var(--text); font-size: 10px; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.scenario-table-head, .scenario-row > summary { display: grid; grid-template-columns: 26px minmax(150px,2fr) minmax(110px,1.3fr) minmax(70px,.8fr) 45px 67px 80px 11px; align-items: center; gap: 9px; }.scenario-table-head { min-height: 29px; padding: 5px 11px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--surface-2); color: var(--dim); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }.scenario-list { overflow: hidden; border: 1px solid var(--line); border-radius: 0 0 8px 8px; background: var(--surface); }.scenario-row { border-bottom: 1px solid #263744; }.scenario-row:last-child { border-bottom: 0; }.scenario-row > summary { min-height: 42px; padding: 5px 11px; cursor: pointer; list-style: none; }.scenario-row > summary::-webkit-details-marker { display: none; }.scenario-row > summary:hover, .scenario-row[open] > summary { background: #1a2b37; }.scenario-row[open] > summary { border-bottom: 1px solid var(--line); }
.scenario-index { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #3b5b66; border-radius: 5px; background: #1c333b; color: #a6deda; font-size: 10px; font-weight: 850; }.scenario-title { min-width: 0; display: block; color: var(--text); font-size: 11px; font-weight: 780; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.scenario-tags { min-width: 0; display: flex; align-items: center; gap: 4px; overflow: hidden; }.tag { min-width: 0; flex: 0 1 auto; display: inline-block; padding: 2px 5px; border: 1px solid #61537a; border-radius: 4px; background: #2c263d; color: #d4c8ef; font-size: 9px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.tag-more { flex: none; border-color: #41647d; background: #1b3142; color: #b6dbf2; }.scenario-worker, .scenario-progress, .scenario-duration { min-width: 0; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }.scenario-progress { text-align: right; }.scenario-chevron { color: var(--dim); font-size: 15px; line-height: 1; }.scenario-row[open] .scenario-chevron { transform: rotate(90deg); }
.scenario-body { padding: 12px 16px 15px 46px; }.scenario-extra-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }.scenario-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 13px; }.fact { padding: 3px 7px; border: 1px solid #3a5260; border-radius: 4px; background: #1b2c37; color: #c1d2dc; font-size: 9px; font-weight: 700; overflow-wrap: anywhere; }.subheading { margin: 0 0 7px; color: var(--dim); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.step-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }.step-row { display: grid; grid-template-columns: 22px minmax(0,1fr) 80px 68px; align-items: center; gap: 8px; min-height: 34px; padding: 5px 0; border-bottom: 1px solid #22313c; }.step-row:last-child { border-bottom: 0; }.step-index { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #456776; border-radius: 50%; color: #bad6df; font-size: 9px; font-weight: 800; }.step-row.RUNNING .step-index { border-color: #3d8583; color: var(--cyan); }.step-row.FAILED .step-index, .step-row.BLOCKED .step-index { border-color: #875360; color: var(--red); }.step-title { min-width: 0; color: #dce7ef; font-size: 10px; font-weight: 650; overflow-wrap: anywhere; }.step-duration { color: var(--dim); font-size: 9px; text-align: right; font-variant-numeric: tabular-nums; }.step-empty { margin: 0; padding: 9px 0; color: var(--dim); font-size: 10px; }
.evidence-note { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 11px 13px; color: var(--muted); font-size: 10px; }.evidence-note strong { color: var(--text); }.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; margin-top: 34px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--dim); font-size: 10px; }
@media (max-width: 1150px) { .metric-grid, .detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.scenario-table-head, .scenario-row > summary { grid-template-columns: 26px minmax(0,1fr) minmax(95px,130px) 45px 67px 80px 11px; }.scenario-table-head > :nth-child(4), .scenario-row > summary > :nth-child(4) { display: none; } }
@media (max-width: 800px) { .app-shell { display: block; }.sidebar { position: static; height: auto; padding: 12px 18px; border-right: 0; border-bottom: 1px solid var(--line); }.brand { margin: 0 0 10px; }.side-nav { display: flex; }.sidebar-foot { display: none; }.main { padding: 18px 16px 45px; }.scenario-table-head, .scenario-row > summary { grid-template-columns: 26px minmax(0,1fr) 90px 65px 11px; gap: 6px; }.scenario-table-head > :nth-child(5), .scenario-table-head > :nth-child(6), .scenario-row > summary > :nth-child(5), .scenario-row > summary > :nth-child(6) { display: none; }.scenario-body { padding: 10px 13px; } }
@media (max-width: 520px) { .topbar { align-items: flex-start; flex-direction: column; }.hero { padding: 16px; }.hero-stamp { display: none; }.run-meta { gap: 10px; }.scenario-table-head, .scenario-row > summary { grid-template-columns: 24px minmax(0,1fr) 64px 68px 10px; gap: 5px; padding-left: 7px; padding-right: 7px; }.scenario-title { font-size: 10px; }.tag { padding: 1px 4px; font-size: 8px; }.step-row { grid-template-columns: 20px minmax(0,1fr) 65px; }.step-duration { display: none; }.runs-table { min-width: 650px; } }
@media (prefers-reduced-motion: reduce) { .scenario-chevron { transition: none; } }
