/* Rata — дизайн-система. Темна тема, зелений акцент, mobile-first. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Поверхні */
  --bg: #141414;
  --bg-nav: #1b1b1b;
  --surface: #1f1f1f;
  --surface-2: #181818;
  --surface-3: #222222;
  --border: #2c2c2c;
  --border-strong: #3a3a3a;
  /* Текст */
  --text: #ededed;
  --text-2: #cfcfcf;
  --muted: #a3a3a3;
  --disabled: #8c8c8c;
  /* Акцент */
  --accent: #5ccf1f;
  --accent-text: #7ddb4a;
  --accent-ink: #0f1a06;
  --accent-soft: #1e2a17;
  --accent-nav: #26331e;
  /* Стани */
  --warn: #f5c451;  --warn-bg: #2a2310;  --warn-border: #6b5418;
  --info: #8ec5ff;  --info-bg: #102338;  --info-border: #23507e;
  --danger: #ff9a90; --danger-bg: #3a1512; --danger-border: #7a2c25; --danger-solid: #c2392e;
  --violet: #cdb3ff; --violet-bg: #33224a;
  /* Форма */
  --r-sm: 8px; --r: 10px; --r-md: 12px; --r-lg: 14px; --r-xl: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; }
a { color: var(--accent-text); }
a:hover { color: #9be86e; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 800; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }

/* --- Каркас -------------------------------------------------------------- */
.app { min-height: 100vh; display: flex; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #262626; }
.topbar-title { display: none; }
.content { padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1240px; }
.logo { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; text-decoration: none; }
.logo:hover { color: var(--accent-ink); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #2c2c2c; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--text-2); }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg-nav); border-top: 1px solid #2a2a2a; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; }
.bottom-nav a { text-decoration: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; border-top: 2px solid transparent; position: relative; }
.bottom-nav a[aria-current="page"] { color: var(--accent-text); border-top-color: var(--accent); font-weight: 700; }

@media (min-width: 960px) {
  .sidebar { display: flex; flex-direction: column; gap: 6px; width: 240px; flex: none; background: var(--bg-nav); border-right: 1px solid #262626; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
  .sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 18px; font-weight: 800; font-size: 20px; }
  .sidebar a.nav { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: var(--r); text-decoration: none; color: #bdbdbd; font-size: 14px; font-weight: 600; }
  .sidebar a.nav:hover { background: #222; }
  .sidebar a.nav[aria-current="page"] { background: var(--accent-nav); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
  .sidebar a.nav[aria-current="page"] .icon { color: var(--accent-text); }
  .main { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .topbar { padding: 16px 32px; }
  .topbar-title { display: block; }
  .topbar .logo { display: none; }
  .content { padding: 28px 32px 40px; }
}

.badge-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn); color: #2b2006; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
.bottom-nav .badge-count { position: absolute; top: 8px; left: calc(50% + 6px); margin: 0; }

/* --- Елементи ------------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 960px) { .card { padding: 20px; gap: 16px; } }
.card-inner { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; }
.desc { margin: 0; font-size: 13px; color: var(--muted); }
.label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hint { font-size: 12px; color: var(--muted); }
.row { display: flex; justify-content: space-between; gap: 12px; }
.row .k { color: var(--muted); }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.input, select.input, textarea.input { width: 100%; min-height: 48px; border-radius: var(--r); border: 1px solid var(--border-strong); background: #1b1b1b; color: var(--text); font-size: 16px; font-weight: 500; padding: 0 14px; }
textarea.input { padding: 12px 14px; min-height: 88px; }
.input:focus { border-color: var(--accent); outline: none; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); margin-top: 6px; }
@media (min-width: 960px) { .input, select.input { min-height: 44px; font-size: 15px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: var(--r-md); border: 1px solid transparent;
  font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; background: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #6bdc2c; color: var(--accent-ink); }
.btn-secondary { border-color: var(--border-strong); color: var(--text); font-weight: 700; letter-spacing: .06em; }
.btn-secondary:hover { background: #222; color: var(--text); }
.btn-danger { background: var(--danger-solid); color: #fff; }
.btn-danger-outline { border-color: #5a2a26; color: var(--danger); font-weight: 700; }
.btn-dashed { border: 1px dashed #3f3f3f; color: var(--accent-text); font-weight: 700; letter-spacing: .06em; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 15px; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; border: 1px solid #333; border-radius: var(--r); background: transparent; color: var(--text-2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.htmx-request.btn, .htmx-request .btn-submit { opacity: .6; pointer-events: none; }

.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid #333; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-text); }

.status { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.status-waiting_client { background: #14304d; color: var(--info); }
.status-waiting_issue { background: #4a3a0e; color: var(--warn); }
.status-active { background: #1e3a12; color: #8be65a; }
.status-paid { background: #263021; color: #b9d8a6; }
.status-partially_returned, .status-returned { background: var(--violet-bg); color: var(--violet); }
.status-cancelled, .status-created { background: #2e2e2e; color: #bdbdbd; }
.status-rejected, .status-error { background: #4a1a17; color: var(--danger); }

.bank-tile { width: 32px; height: 32px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex: none; }
.bank-mono { background: #0e0e0e; border: 1px solid var(--border-strong); color: #fff; }
.bank-privat { background: #2d4a22; color: #cff5b8; }
.bank-abank { background: #3a3a3a; color: var(--text); }

.switch { position: relative; display: inline-flex; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 12px; background: var(--border-strong); transition: background .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--accent-ink); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-md); background: #161616; }
.segmented label { min-height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented input:checked + label { background: #2e2e2e; color: var(--text); font-weight: 700; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 14px; border: 1px solid; }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-border); color: #e2d3a8; }
.alert-danger { background: var(--danger-bg); border-color: var(--danger-border); color: #f0c4be; }
.alert-info { background: var(--info-bg); border-color: var(--info-border); color: #b9d3ee; }
.alert-ok { background: var(--accent-soft); border-color: #33501f; color: #9be86e; }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid #262626; font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

.tabs { display: flex; gap: 24px; overflow-x: auto; }
.tabs a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; padding: 14px 4px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

.sticky-action { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 10; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 18px); }
@media (min-width: 960px) { .sticky-action { position: static; background: none; padding: 0; } }

.toast-region { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@media (min-width: 960px) { .toast-region { left: auto; right: 24px; bottom: 24px; width: 380px; } }
.toast { pointer-events: auto; }

/* --- Вхід --- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 20px; display: flex; flex-direction: column; gap: 20px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.auth-title { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.auth-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 14px; }
.auth-foot { text-align: center; }
.input-code { font-size: 24px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.btn-link { background: none; border: 0; padding: 8px 0; color: var(--accent-text); font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-link[disabled] { color: var(--muted); cursor: default; }

/* --- Налаштування --- */
.settings-tabs { border-bottom: 1px solid var(--border); margin-top: -8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { align-items: center; text-align: center; padding: 32px 16px; }
.empty > .icon { width: 32px; height: 32px; color: var(--muted); }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #262626; color: var(--text); text-decoration: none; flex-wrap: wrap; }
.list-row:first-child { border-top: 0; }
.list-row:hover { color: var(--text); }
.list-row:hover .list-title { color: var(--accent-text); }
.list-row > .icon { color: var(--muted); margin-left: auto; }
.list-main { flex: 1; min-width: 180px; }
.list-title { font-weight: 600; font-size: 15px; }
.list-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: #262626; color: var(--muted); white-space: nowrap; vertical-align: middle; }
.tag-on { background: #1e3a12; color: #8be65a; }
.tag-warn { background: #3a2f10; color: var(--warn); }
.tag-danger { background: #4a1a17; color: var(--danger); }
.tag-role-admin { background: #3a2f10; color: var(--warn); }
.tag-role-senior { background: #14304d; color: var(--info); }
.tag-role-accountant { background: var(--violet-bg); color: var(--violet); }
.tag-role-manager { background: #2e2e2e; color: var(--text-2); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.back:hover { color: var(--text); }
.page-h1 { font-size: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-grid { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 0; }
.stepper-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .input { width: 72px; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.stepper .input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper .btn-icon { font-size: 20px; cursor: pointer; }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.cell-acc { display: flex; align-items: center; gap: 10px; }
.nowrap { white-space: nowrap; }
.seg-link { min-height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.seg-link[aria-current="true"] { background: #2e2e2e; color: var(--text); font-weight: 700; }
.segmented-wrap { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .segmented-wrap { grid-template-columns: repeat(4, 1fr); } }
.grid-2, .grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.check-row { display: flex; flex-direction: column; gap: 10px; }
.tariffs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; }
.tariff { display: flex; flex-direction: column; gap: 6px; }
.tariff label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tariff[hidden] { display: none; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 32px; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.row-link { cursor: pointer; }
.row-link:hover td { background: #232323; }
.row-muted td { color: var(--muted); }
.link-plain { color: inherit; text-decoration: none; }
.inline-form { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; width: 100%; }
[data-roles][hidden] { display: none; }
.cell-acc .list-title, .cell-acc .hint { white-space: nowrap; }

/* --- Нова заявка --- */
.new-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1100px) { .new-grid { grid-template-columns: minmax(0, 1fr) 400px; } .new-side { position: sticky; top: 16px; } }
.new-side { display: flex; flex-direction: column; gap: 16px; }
.input-lg { font-size: 20px; font-weight: 600; min-height: 54px; letter-spacing: .02em; }
.items { display: flex; flex-direction: column; gap: 10px; }
.item-head { display: none; }
.item-row { display: grid; grid-template-columns: 1fr 1fr 44px; grid-template-areas: "name name del" "count price price" "sum sum sum"; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #262626; }
.item-row > :nth-child(1) { grid-area: name; }
.item-row > :nth-child(2) { grid-area: count; }
.item-row > :nth-child(3) { grid-area: price; }
.item-row > :nth-child(4) { grid-area: sum; }
.item-row > :nth-child(5) { grid-area: del; }
.item-sum { color: var(--muted); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .item-head { display: grid; grid-template-columns: 1fr 72px 130px 120px 44px; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
  .item-row { grid-template-columns: 1fr 72px 130px 120px 44px; grid-template-areas: "name count price sum del"; align-items: center; padding: 0; border: 0; }
  .item-sum { font-size: 15px; color: var(--text); }
}
.bank-pick { display: grid; gap: 8px; grid-template-columns: 1fr; }
.bank-pick input, .parts-pick input, .acc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bank-opt { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--r-md); cursor: pointer; }
.bank-opt .hint { display: block; }
.bank-pick input:checked + .bank-opt { border-color: var(--accent); background: var(--accent-soft); }
.bank-pick input:disabled + .bank-opt { opacity: .45; cursor: not-allowed; }
.bank-pick input:focus-visible + .bank-opt, .parts-pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r); cursor: pointer; position: relative; }
.acc-opt .hint { display: block; }
.acc-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.acc-opt.is-off { opacity: .5; cursor: not-allowed; }
.parts-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.parts-pick label { min-width: 48px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: var(--r); font-weight: 700; cursor: pointer; }
.parts-pick input:checked + label { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.summary .row b { font-size: 16px; }
.accent { color: var(--accent-text); }

/* --- Екран заявки --- */
.tx-page { display: flex; flex-direction: column; gap: 16px; }
.tx-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1100px) { .tx-grid { grid-template-columns: minmax(0, 1fr) 400px; } }
.hero { gap: 10px; }
.hero h2 { font-size: 20px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.hero-wait { border-color: var(--info-border); }
.hero-issue { border-color: var(--warn-border); background: var(--warn-bg); }
.hero-done { border-color: #33501f; background: var(--accent-soft); }
.hero-fail { border-color: var(--danger-border); background: var(--danger-bg); }
.hero-sum { font-size: 30px; font-weight: 800; }
.timer { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--info); }
.tx-actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 960px) { .tx-actions { flex-direction: row; } }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 10px 26px; position: relative; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border-strong); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 29px; bottom: -11px; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--text); }
.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline li.now { color: var(--warn); }
.timeline li.now::before { border-color: var(--warn); }
.timeline li.fail { color: var(--danger); }
.timeline li.fail::before { background: var(--danger-solid); border-color: var(--danger-solid); }
.timeline time { font-variant-numeric: tabular-nums; }
details.card summary { cursor: pointer; }
