:root {
    color-scheme: dark;
    --background: #15151a;
    --sidebar: #18181e;
    --surface: #1d1d24;
    --surface-raised: #24242d;
    --edge: #34343f;
    --edge-soft: #2b2b35;
    --text: #f0eff4;
    --muted: #aaa9b6;
    --accent: #ffbf78;
    --accent-strong: #ffd1a0;
    --accent-bg: #34291f;
    --green: #83d8aa;
    --green-bg: #1d3029;
    --red: #ffa2a7;
    --red-bg: #39262d;
    --blue: #a7b9ff;
    --blue-bg: #282d47;
    --radius: 12px;
    --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 280px;
    background: var(--background);
    color: var(--text);
}

h1, h2, p, dl, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.mono, code { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.frame {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100dvh;
    padding: 29px 18px 22px;
    border-right: 1px solid var(--edge);
    background: var(--sidebar);
}

.brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 12px;
    margin: 0 0 34px 9px;
}

.brand-mark {
    flex: none;
    width: 36px;
    height: 36px;
    display: grid;
    grid-template-columns: repeat(3, 4px);
    align-content: center;
    justify-content: center;
    align-items: end;
    gap: 3px;
    border: 1px solid #6f4f32;
    border-radius: 10px;
    background: #2b221d;
    color: var(--accent);
}

.brand-mark i {
    display: block;
    width: 4px;
    height: 9px;
    border-radius: 1px;
    background: currentColor;
    transform: skewY(-21deg);
}
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 18px; }

.brand-word {
    display: grid;
    font-size: .98rem;
    line-height: 1.15;
    letter-spacing: -.025em;
    font-weight: 720;
}

.brand-word span {
    margin-top: 5px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .69rem;
    font-weight: 500;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.navigation { display: grid; gap: 5px; }

.navigation a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 43px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    font-size: .895rem;
    font-weight: 550;
    white-space: nowrap;
}

.navigation a:hover { background: var(--surface-raised); color: var(--text); }
.navigation a[aria-current] { border-color: #543c2b; background: var(--accent-bg); color: var(--accent-strong); }

.nav-icon { position: relative; display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; }
.nav-icon::before, .nav-icon::after { content: ""; position: absolute; }
.icon-pipelines::before {
    width: 6px;
    height: 6px;
    border: 1.3px solid currentColor;
    border-radius: 2px;
    top: 1px;
    left: 6px;
    box-shadow: -5px 10px 0 -1px var(--sidebar), -5px 10px currentColor, 5px 10px 0 -1px var(--sidebar), 5px 10px currentColor;
}
.icon-pipelines::after { width: 9px; height: 3px; border: 1px solid currentColor; border-bottom: 0; left: 4.5px; top: 8px; }
.icon-logs::before { inset: 2px 3px; border: 1px solid currentColor; border-radius: 2px; }
.icon-logs::after { width: 6px; height: 1px; background: currentColor; left: 6px; top: 6px; box-shadow: 0 3px, 0 6px; }
.icon-settings::before { inset: 3px 1px; background: linear-gradient(currentColor, currentColor) 0 0 / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.icon-settings::after { width: 3px; height: 3px; background: currentColor; left: 5px; top: 2px; border-radius: 1px; box-shadow: 6px 6px, 0 12px; }

.sidebar-foot {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding: 15px 9px 0;
    border-top: 1px solid var(--edge);
    font-size: .875rem;
    color: var(--muted);
}

.environment-mark {
    width: 8px;
    height: 8px;
    border: 1px solid #8e9ba8;
    border-radius: 2px;
    background: #53606d;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 69px;
    padding: 12px clamp(18px, 3.4vw, 48px);
    background: var(--background);
    border-bottom: 1px solid var(--edge);
}

.breadcrumbs {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: .875rem;
}

.breadcrumbs a:hover { color: var(--accent-strong); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 545; }
.crumb-separator { color: #777587; }

.user-menu {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 0 0 auto;
    font-size: .875rem;
}
.user-name { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: #303044;
    border: 1px solid #484865;
    border-radius: 8px;
    color: #cbceff;
    font-weight: 650;
}

.content {
    width: min(100%, 1380px);
    margin-inline: auto;
    padding: 37px clamp(18px, 3.4vw, 48px) 48px;
}

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.page-head h1, .auth-card h1 {
    font-size: clamp(1.85rem, 3.4vw, 2.45rem);
    font-weight: 680;
    line-height: 1.13;
    letter-spacing: -.041em;
}
.page-head p { color: var(--muted); margin-top: 9px; }

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.metric {
    min-height: 98px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 13px 17px;
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
}
.metric dt { font-size: .875rem; color: var(--muted); }
.metric dd {
    margin: 0;
    font-size: 1.83rem;
    line-height: 1.05;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.045em;
}
.metric[data-metric="running"] dd { color: var(--accent-strong); }
.metric[data-metric="succeeded"] dd { color: var(--green); }
.metric[data-metric="failed"] dd { color: var(--red); }

.surface {
    min-width: 0;
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}
.content > .surface + .surface { margin-top: 18px; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 59px;
    padding: 13px 19px;
    border-bottom: 1px solid var(--edge);
}
.section-head h2 { font-size: 1.04rem; font-weight: 635; letter-spacing: -.015em; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; }

.pipeline-row {
    min-height: 83px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) max-content minmax(112px, max-content);
    align-items: center;
    gap: 16px;
    padding: 15px 19px;
    transition: background .16s ease;
}
.pipeline-row + .pipeline-row { border-top: 1px solid var(--edge-soft); }
.pipeline-row:hover { background: #25232b; }
.pipeline-row:focus-visible { outline-offset: -3px; }
.pipeline-title { display: grid; gap: 3px; }
.pipeline-title strong { font-weight: 650; color: var(--text); }
.pipeline-row:hover .pipeline-title strong { color: var(--accent-strong); }
.pipeline-title > span, .pipeline-stages, .pipeline-last { font-size: .875rem; color: var(--muted); }
.pipeline-last { justify-self: end; text-align: right; }
.pipeline-mark {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    border: 1px solid #644832;
    background: #30261f;
    color: var(--accent-strong);
}
.pipeline-mark::after {
    content: "";
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 3px;
    transform: rotate(45deg);
    box-shadow: inset 0 0 0 3px #30261f, inset 0 0 0 5px currentColor;
}
.pipeline-mark-check { color: #c3c4ff; background: #2d2b44; border-color: #4a4868; }
.pipeline-mark-check::after { width: 8px; height: 14px; border-width: 0 2px 2px 0; border-radius: 0; box-shadow: none; transform: translateY(-2px) rotate(45deg); }

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    font-size: .875rem;
    line-height: 1.25;
    padding: 5px 8px;
    border-radius: 6px;
    color: #d3d0db;
    background: #35343d;
    white-space: nowrap;
}
.status::before, .live-label i, .secret-state i {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.status[data-status="running"] { color: var(--accent-strong); background: var(--accent-bg); }
.status[data-status="queued"] { color: var(--blue); background: var(--blue-bg); }
.status[data-status="succeeded"] { color: var(--green); background: var(--green-bg); }
.status[data-status="failed"], .status[data-status="interrupted"] { color: var(--red); background: var(--red-bg); }

.table-wrap { min-width: 0; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table thead { background: #202028; }
.data-table th, .data-table td { padding: 11px 15px; vertical-align: middle; font-size: .875rem; }
.data-table td:first-child, .data-table th:first-child { padding-left: 19px; }
.data-table td:last-child, .data-table th:last-child { padding-right: 19px; }
.data-table th { color: var(--muted); font-weight: 560; }
.data-table tbody tr { border-top: 1px solid var(--edge-soft); }
.data-table tbody tr:hover { background: #22222b; }
.table-link { color: var(--accent-strong); font-weight: 555; }
.table-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 20px 19px; color: var(--muted); font-size: .925rem; }

.detail-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(270px, 340px); gap: 18px; }
.detail-content, .settings-stack { display: grid; gap: 18px; min-width: 0; }
.inline-count { color: var(--accent-strong); background: var(--accent-bg); border-radius: 6px; padding: 2px 8px; font-size: .875rem; font-variant-numeric: tabular-nums; }
.pipeline-steps, .run-steps { list-style: none; padding: 0; }
.pipeline-steps li, .run-steps li { min-height: 45px; display: flex; align-items: center; gap: 10px; padding: 9px 19px; font-size: .925rem; }
.pipeline-steps li + li, .run-steps li + li { border-top: 1px solid var(--edge-soft); }
.step-index {
    width: 23px;
    height: 23px;
    flex: none;
    display: grid;
    place-items: center;
    background: #292831;
    border: 1px solid #3e3b46;
    border-radius: 6px;
    color: var(--muted);
    font: .78rem var(--mono);
}
.run-head > .status { margin-top: 5px; }
.run-number { color: var(--accent-strong); font-size: .82em; }
.run-steps li[data-state="current"] { background: #2b251e; }
.stage-indicator {
    width: 14px;
    height: 14px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid #686779;
}
.stage-indicator::after { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; }
[data-state="current"] .stage-indicator { border-color: var(--accent); }
[data-state="current"] .stage-indicator::after { background: var(--accent); }
[data-state="complete"] .stage-indicator { border-color: var(--green); }
[data-state="complete"] .stage-indicator::after {
    width: 4px;
    height: 7px;
    transform: translateY(-1px) rotate(45deg);
    border: solid var(--green);
    border-width: 0 1.5px 1.5px 0;
    border-radius: 0;
}
[data-state="failed"] .stage-indicator { border-color: var(--red); }
[data-state="failed"] .stage-indicator::after { background: var(--red); }
.stage-state { margin-left: auto; color: var(--muted); font-size: .8rem; }
[data-state="current"] .stage-state { color: var(--accent-strong); }
[data-state="complete"] .stage-state { color: var(--green); }
[data-state="failed"] .stage-state { color: var(--red); }

.facts { display: grid; gap: 0; padding: 4px 19px; }
.facts div { min-width: 0; display: grid; grid-template-columns: minmax(74px, .75fr) minmax(0, 1.25fr); gap: 10px; padding: 9px 0; font-size: .875rem; }
.facts div + div { border-top: 1px solid var(--edge-soft); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts .mono { font-size: .8rem; }
.minor-head { border-top: 1px solid var(--edge); min-height: 48px; }
.minor-head h2 { font-size: .925rem; }

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 625;
    font-size: .875rem;
    line-height: 1.3;
    text-align: center;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.button-primary { background: var(--accent); color: #23190f; }
.button-primary:hover { background: var(--accent-strong); }
.button-primary:disabled { background: #343138; border-color: #47434c; color: #a5a1ad; cursor: not-allowed; }
.button-subtle { background: #272730; border-color: #41404e; color: var(--text); }
.button-subtle:hover { background: #31313b; border-color: #5a5868; }
.button-quiet { min-height: 32px; padding: 4px 8px; color: var(--muted); background: transparent; }
.button-quiet:hover { background: var(--surface-raised); color: var(--text); }
.button-danger { background: transparent; color: var(--red); border-color: #684249; }
.button-danger:hover { background: var(--red-bg); }

.stack-form { display: grid; gap: 15px; }
.padded-form { padding: 18px 19px 19px; }
.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.source-address { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.field { min-width: 0; display: grid; gap: 6px; align-content: start; }
.field label { color: #dedce6; font-size: .875rem; font-weight: 560; }
.field small { color: var(--muted); font-size: .8rem; }
.field input, .field select, .field textarea {
    min-width: 0;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #41404d;
    border-radius: 7px;
    background: #181820;
    color: var(--text);
    font-size: .95rem;
    line-height: 1.4;
}
.field select {
    appearance: none;
    padding-right: 32px;
    background-image: linear-gradient(45deg, transparent 49%, #a8a4b4 50%, #a8a4b4 66%, transparent 67%), linear-gradient(-45deg, transparent 49%, #a8a4b4 50%, #a8a4b4 66%, transparent 67%);
    background-size: 6px 6px;
    background-repeat: no-repeat;
    background-position: right 15px center, right 10px center;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #918e9d; opacity: 1; }
.field input:readonly { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field .mono { font-size: .84rem; }
.secret-area { -webkit-text-security: disc; }
.secret-area::placeholder { -webkit-text-security: none; }
.label-line { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; }
.webhook-secret-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.secret-state { display: inline-flex; gap: 5px; align-items: center; color: var(--green); font-size: .75rem; }
.secret-state i { width: 5px; height: 5px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.launch-surface .button-primary { width: 100%; }
.advanced { border: 1px solid var(--edge); border-radius: 7px; }
.advanced summary { padding: 9px 10px; font-size: .875rem; cursor: pointer; color: #d4d1df; }
.advanced[open] summary { border-bottom: 1px solid var(--edge); }
.detailed-fields { padding: 11px; }

.notice {
    padding: 10px 12px;
    border: 1px solid #41475e;
    border-radius: 7px;
    background: #262c3e;
    color: #dce3fb;
    font-size: .875rem;
}
.content > .notice, .auth-main > .notice { margin-bottom: 15px; }
.notice-error, .notice-danger { border-color: #704650; background: var(--red-bg); color: #ffd1d6; }
.notice-success { border-color: #3a604c; background: var(--green-bg); color: #b6eed0; }
.notice-warning { border-color: #66503a; background: var(--accent-bg); color: #ffe0bd; }
.notice a { text-decoration: underline; text-underline-offset: 2px; }

.tabs {
    display: flex;
    align-items: center;
    gap: 5px 10px;
    overflow-x: auto;
    border-bottom: 1px solid var(--edge);
    margin-bottom: 20px;
}
.tabs a { white-space: nowrap; padding: 9px 11px 11px; border-bottom: 2px solid transparent; font-size: .925rem; color: var(--muted); }
.tabs a:hover { color: var(--text); }
.tabs [aria-current] { border-color: var(--accent); color: var(--accent-strong); font-weight: 600; }
.tabs a:focus-visible { outline-offset: -3px; }
.settings-topbar { display: flex; justify-content: space-between; align-items: center; gap: 9px 12px; flex-wrap: wrap; margin-bottom: 15px; }
.webhook-url { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; font-size: .875rem; color: var(--muted); }
.webhook-url code { max-width: 100%; overflow-wrap: anywhere; color: var(--text); border: 1px solid var(--edge); background: var(--surface); padding: 4px 7px; border-radius: 6px; font-size: .85rem; }
.settings-narrow { max-width: 600px; }
.remove-target { margin: 0 19px 18px; padding-top: 13px; border-top: 1px solid var(--edge); }

.log-filters { display: grid; grid-template-columns: minmax(160px, .55fr) minmax(0, 1fr) max-content; align-items: end; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--edge); }
.log-table td { vertical-align: top; }
.log-table td:last-child { width: 100%; min-width: 240px; }
.pagination { display: flex; justify-content: flex-end; padding: 12px 19px; border-top: 1px solid var(--edge); }
.log-table code, .log-lines code { overflow-wrap: anywhere; white-space: pre-wrap; font-size: .81rem; color: #dddbe8; }
.log-level { font: .735rem var(--mono); font-weight: 650; color: #aebafa; }
.log-level[data-level="warning"], .log-level[data-level="warn"] { color: var(--accent); }
.log-level[data-level="error"] { color: var(--red); }
.log-level[data-level="debug"] { color: var(--muted); }
.live-label { display: inline-flex; gap: 6px; align-items: center; color: var(--accent-strong); font-size: .8rem; }
.live-label i { width: 5px; height: 5px; }
.log-stream { min-height: 112px; max-height: 540px; overflow: auto; background: #15151c; }
.log-lines { list-style: none; padding: 11px 14px; }
.log-lines li { display: grid; grid-template-columns: 145px 59px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 4px 0; }
.log-lines time { color: #9e9bad; font: .765rem var(--mono); white-space: nowrap; }

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 530px);
    place-items: center;
    min-height: 100dvh;
    padding: clamp(24px, 5vw, 70px);
    gap: 40px;
    max-width: 1340px;
    margin-inline: auto;
}
.auth-pattern {
    align-self: stretch;
    width: 100%;
    min-height: 350px;
    position: relative;
    background: radial-gradient(circle at center, #4a3c39 1px, transparent 1px) 50% 50% / 19px 19px, radial-gradient(ellipse at 42% 52%, #2c2522 0%, #17171d 60%);
    border: 1px solid #3c3742;
    border-radius: 16px;
    overflow: hidden;
}
.auth-pattern::before, .auth-pattern::after { content: ""; position: absolute; inset: 50% auto auto 50%; }
.auth-pattern::before {
    width: min(45%, 208px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 1px solid #ac835e;
    border-radius: 17px;
    background: linear-gradient(150deg, #332820 25%, #241e20);
    box-shadow: 0 0 0 28px #1c191a9e, 0 0 0 29px #584234, 0 0 0 56px #18171c99, 0 0 0 57px #443641;
}
.auth-pattern::after {
    width: 84px;
    height: 86px;
    transform: translate(-50%, -50%) skewY(-22deg);
    color: var(--accent);
    background: linear-gradient(currentColor, currentColor) 6px 100% / 16px 35% no-repeat,
                linear-gradient(currentColor, currentColor) 34px 100% / 16px 65% no-repeat,
                linear-gradient(currentColor, currentColor) 62px 100% / 16px 95% no-repeat;
    filter: drop-shadow(0 0 12px #cd834676);
}
.auth-main { width: min(100%, 430px); }
.auth-main .brand { margin: 0 0 24px; }
.auth-card { border: 1px solid var(--edge); border-radius: 14px; background: var(--surface); padding: clamp(20px, 4vw, 32px); }
.auth-card h1 { margin-bottom: 22px; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.auth-submit { width: 100%; margin-top: 5px; }

@media (max-width: 1080px) {
    .frame { grid-template-columns: 195px minmax(0, 1fr); }
    .sidebar { padding-inline: 13px; }
    .detail-grid { grid-template-columns: minmax(0, 1fr) minmax(232px, 275px); gap: 13px; }
    .log-lines li { grid-template-columns: 133px 57px minmax(0, 1fr); }
    .log-lines time { font-size: .7rem; }
}

@media (max-width: 920px) {
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .launch-surface { grid-row: 1; }
    .pipeline-row { grid-template-columns: auto minmax(0, 1fr) max-content; }
    .pipeline-stages { display: none; }
    .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); gap: 24px; }
    .auth-pattern::before { width: min(43%, 165px); box-shadow: 0 0 0 16px #1c191a9e, 0 0 0 17px #584234, 0 0 0 31px #18171c99, 0 0 0 32px #443641; }
    .auth-pattern::after { scale: .8; }
}

@media (max-width: 700px) {
    .frame { display: block; }
    .sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 9px;
        padding: 11px clamp(10px, 3vw, 20px);
        border-right: 0;
        border-bottom: 1px solid var(--edge);
    }
    .sidebar .brand { flex: 0 0 auto; margin: 0; gap: 7px; }
    .sidebar .brand-mark { width: 31px; height: 31px; border-radius: 8px; }
    .sidebar .brand-word { font-size: .85rem; }
    .sidebar .brand-word span { margin-top: 2px; font-size: .62rem; }
    .sidebar-foot { display: none; }
    .navigation { display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; }
    .navigation a { min-height: 36px; gap: 5px; padding: 5px 7px; font-size: .8rem; }
    .nav-icon { display: none; }
    .topbar { min-height: 53px; padding-block: 7px; }
    .content { padding-top: 24px; }
    .auth-layout { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 90dvh; }
    .auth-pattern { display: none; }
}

@media (max-width: 480px) {
    .sidebar .brand-word { display: none; }
    .navigation a { min-height: 40px; }
    .topbar { gap: 7px; padding-inline: 13px; }
    .breadcrumbs { gap: 5px; font-size: .8rem; }
    .user-name { display: none; }
    .avatar { width: 26px; height: 26px; }
    .content { padding-inline: 13px; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 17px; }
    .metric { min-height: 78px; padding: 10px 12px; }
    .metric dd { font-size: 1.55rem; }
    .page-head { margin-bottom: 18px; }
    .page-head p { font-size: .925rem; }
    .section-head { padding-inline: 13px; min-height: 49px; }
    .pipeline-row { gap: 8px 10px; grid-template-columns: auto minmax(0, 1fr); padding: 12px 13px; }
    .pipeline-mark { width: 33px; height: 33px; }
    .pipeline-last { grid-column: 2; justify-self: start; text-align: left; }
    .pipeline-title > span { font-size: .81rem; }
    .data-table td:first-child, .data-table th:first-child { padding-left: 13px; }
    .data-table td:last-child, .data-table th:last-child { padding-right: 13px; }
    .data-table th, .data-table td { padding-inline: 8px; }
    .padded-form { padding: 14px 13px; }
    .fields-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .tabs { gap: 1px; }
    .tabs a { padding-inline: 8px; font-size: .82rem; }
    .log-filters { grid-template-columns: minmax(0, 1fr) max-content; padding-inline: 13px; gap: 9px; }
    .log-filters .field:first-child { grid-column: 1 / -1; }
    .log-lines { padding-inline: 9px; }
    .log-lines li { grid-template-columns: auto auto; justify-content: start; gap: 2px 9px; border-bottom: 1px solid var(--edge-soft); padding: 6px 0; }
    .log-lines code { grid-column: 1 / -1; }
    .empty { padding-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0s !important; }
}
