/* ============================================================
   Kirkwood Fiber Response Engine — executive demo surface
   Design tokens per ARCHITECTURE.md section 9. 8px spacing grid.
   ============================================================ */

:root {
  --bg: #0A0F1A;
  --surface: #111827;
  --surface-2: #1A2332;
  --border: #1E293B;
  --text: #E2E8F0;
  --muted: #8FA3BF;
  --accent: #38BDF8;
  --ok: #34D399;
  --warn: #FBBF24;
  --fail: #F87171;
  --violet: #A78BFA;
  --pink: #F472B6;
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hidden { display: none !important; }

/* Muted, uppercase, letter-spaced section labels */
.label,
.rail-heading,
.kpi-label,
.legend-title,
.modal-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------- Top bar ---------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.wordmark {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.subtitle {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mode-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  transition: color 120ms ease, border-color 120ms ease;
}

.mode-badge.live {
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.45);
}

select#rfp-select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12.5px;
  max-width: 340px;
}

select#rfp-select:focus { outline: 1px solid var(--accent); }

/* Auto-approve switch */
.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.toggle input { display: none; }

.toggle .track {
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  transition: background 120ms ease, border-color 120ms ease;
  flex: 0 0 auto;
}

.toggle .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 120ms ease, background 120ms ease;
}

.toggle input:checked + .track { background: rgba(56, 189, 248, 0.25); border-color: var(--accent); }
.toggle input:checked + .track .thumb { transform: translateX(14px); background: var(--accent); }

.toggle-text { font-size: 12px; color: var(--muted); }

/* Buttons */
.btn {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 7px 16px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06131F;
}
.btn.primary:hover:not(:disabled) { background: #5CCBFA; border-color: #5CCBFA; }

.btn.danger {
  background: transparent;
  border-color: rgba(248, 113, 113, 0.5);
  color: var(--fail);
}
.btn.danger:hover:not(:disabled) { background: rgba(248, 113, 113, 0.1); }

.btn.ghost { background: transparent; color: var(--muted); }
.btn.small { padding: 3px 10px; font-size: 11px; }

/* ---------------- Shell / layout ---------------- */

.shell {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

/* ---------------- Left rail: pipeline tracker ---------------- */

.rail {
  flex: 0 0 280px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 16px;
  overflow-y: auto;
}

.rail-heading { margin: 0 8px 8px; }

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-item {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
  transition: background 120ms ease, color 120ms ease;
}

.rail-item.running, .rail-item.done, .rail-item.warn { color: var(--text); }

.rail-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  justify-self: center;
  background: transparent;
  border: 1.5px solid var(--border);
  transition: background 120ms ease, border-color 120ms ease;
}

.rail-item.running .dot {
  background: var(--accent);
  border-color: var(--accent);
  animation: kfa-pulse 1.6s ease-in-out infinite;
}
.rail-item.done .dot { background: var(--ok); border-color: var(--ok); }
.rail-item.warn .dot { background: var(--warn); border-color: var(--warn); }

.rail-dur {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Gate rows: amber diamond markers, visually distinct from stages */
.rail-item.gate .diamond {
  width: 8px;
  height: 8px;
  justify-self: center;
  transform: rotate(45deg);
  background: transparent;
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  transition: background 120ms ease, border-color 120ms ease;
}

.rail-item.gate { color: var(--muted); }

.rail-item.gate.waiting {
  background: rgba(251, 191, 36, 0.08);
  color: var(--warn);
  cursor: pointer; /* click reopens a minimized gate card */
}
.rail-item.gate.waiting .diamond {
  background: var(--warn);
  border-color: var(--warn);
  animation: kfa-pulse 1.6s ease-in-out infinite;
}
.rail-item.gate.approved { color: var(--text); }
.rail-item.gate.approved .diamond { background: var(--ok); border-color: var(--ok); }
.rail-item.gate.rejected { color: var(--fail); }
.rail-item.gate.rejected .diamond { background: var(--fail); border-color: var(--fail); }

@keyframes kfa-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------------- Main column ---------------- */

.main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  gap: 16px;
  overflow: hidden;
}

/* Banners */
#banners { display: flex; flex-direction: column; gap: 8px; }
#banners:empty { display: none; }

.banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
}

.banner .banner-text { flex: 1 1 auto; }
.banner .banner-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.banner .banner-dismiss:hover { color: var(--text); }

.banner.success { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.banner.warn { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }
.banner.error { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); }

/* ---------------- KPI band ---------------- */

.kpis {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 8px;
  flex: 0 0 auto;
}

@media (max-width: 1400px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px 8px;
  min-width: 0;
}

.kpi-value {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-value .unit {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.kpi-sub {
  font-size: 11px;
  color: var(--muted);
  min-height: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-sub.warn-text { color: var(--warn); }
.kpi-value.fail-text { color: var(--fail); }

/* ---------------- Workspace: map + tabs ---------------- */

.workspace {
  display: flex;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
}

.map-pane {
  flex: 3 1 0;
  min-width: 0;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

#map { position: absolute; inset: 0; background: var(--bg); }

.leaflet-container { background: var(--bg); font-family: var(--font); }
.leaflet-container .leaflet-control-attribution {
  background: rgba(17, 24, 39, 0.8);
  color: var(--muted);
  font-size: 9px;
}
.leaflet-container .leaflet-control-attribution a { color: var(--muted); }
.leaflet-tooltip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  border-radius: 6px;
  box-shadow: none;
}
.leaflet-tooltip::before { display: none; }
.leaflet-bar a {
  background: var(--surface-2);
  color: var(--text);
  border-bottom-color: var(--border);
}
.leaflet-bar a:hover { background: var(--border); }

.map-note {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--muted);
}

.map-legend {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 800;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}

.legend-title { margin-bottom: 2px; }
.legend-sep { border-top: 1px solid var(--border); margin: 4px 0; }

.legend-row { display: flex; align-items: center; gap: 8px; }

.sw { flex: 0 0 auto; }

.sw.line { width: 18px; height: 0; }
.sw.solid-accent { border-top: 2px solid var(--accent); }
.sw.dash-warn { border-top: 2px dashed var(--warn); }
.sw.solid-ok { border-top: 3px solid var(--ok); }
.sw.dash-violet { border-top: 2px dashed var(--violet); }
.sw.dot-pink { border-top: 2px dotted var(--pink); }

.sw.dot { width: 8px; height: 8px; border-radius: 50%; margin: 0 5px; }
.sw.dot-accent { background: var(--accent); }
.sw.dot-white { background: #FFFFFF; }
.sw.dot-violet { background: var(--violet); }

.sw.ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  margin: 0 4px;
}

/* ---------------- Tabs pane ---------------- */

.tabs-pane {
  flex: 2 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.tabbar {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
  overflow-x: auto;
}

.tab {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 120ms ease, border-color 120ms ease;
  position: relative;
}

.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* Unread indicator: small accent dot on tabs that received content */
.tab.unread::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.tab-panels {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.panel {
  display: none;
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 16px;
}

.panel.active { display: block; }

.empty-state {
  color: var(--muted);
  font-size: 12.5px;
  padding: 8px 0;
}

.panel-section { margin-bottom: 24px; }
.panel-section > .label { margin-bottom: 8px; }

/* Activity feed */
.activity-feed { font-family: var(--mono); font-size: 12px; }

.log-line {
  display: flex;
  gap: 8px;
  padding: 2px 0;
  align-items: baseline;
}

.log-stage {
  flex: 0 0 96px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: right;
  opacity: 0.85;
}

.log-text { color: var(--text); white-space: pre-wrap; word-break: break-word; }

.log-line.marker .log-text { color: var(--muted); }
.log-line.marker .log-stage { color: var(--muted); }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}

td.num, th.num { text-align: right; }
td.mono { font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }

tr.clickable { cursor: pointer; transition: background 120ms ease; }
tr.clickable:hover { background: var(--surface-2); }

/* Status pills */
.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
  transition: color 120ms ease, border-color 120ms ease;
}

.pill.ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.45); }
.pill.warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.45); }
.pill.fail { color: var(--fail); border-color: rgba(248, 113, 113, 0.45); }
.pill.accent { color: var(--accent); border-color: rgba(56, 189, 248, 0.45); }
.pill.violet { color: var(--violet); border-color: rgba(167, 139, 250, 0.45); }
.pill.neutral { color: var(--muted); border-color: var(--border); }

/* Cost band bar */
.band {
  margin: 8px 0 16px;
}

.band-bar {
  position: relative;
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: visible;
}

.band-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(56, 189, 248, 0.35);
  border-radius: 999px;
}

.band-mid {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--text);
  border-radius: 1px;
}

.band-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* Key figures grid (offer summary, cost roll-up) */
.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.figure {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}

.figure .f-label {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.figure .f-value {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* Verification counts row */
.check-counts { display: flex; gap: 8px; margin-bottom: 16px; }

.ledger-note { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* Provenance drawer */
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85%;
  background: var(--surface-2);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 120ms ease;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.drawer-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.drawer-body { padding: 16px; overflow-y: auto; font-size: 12.5px; }

.prov-entry {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: var(--surface);
}

.prov-entry .p-id { font-family: var(--mono); font-size: 10.5px; color: var(--accent); }
.prov-entry .p-label { font-weight: 600; margin: 2px 0; }
.prov-entry .p-value { font-variant-numeric: tabular-nums; }
.prov-entry .p-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

.drawer-check-detail { color: var(--muted); font-size: 12px; margin-bottom: 16px; }

/* Proposal tab */
.proposal-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

a.download-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 8px;
  padding: 4px 12px;
  transition: background 120ms ease;
}

a.download-link:hover { background: rgba(56, 189, 248, 0.1); }

.md-body h1 { font-size: 18px; margin: 16px 0 8px; }
.md-body h2 { font-size: 15px; margin: 16px 0 8px; }
.md-body h3 { font-size: 13px; margin: 16px 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.md-body p { margin: 8px 0; }
.md-body ul { margin: 8px 0; padding-left: 24px; }
.md-body li { margin: 2px 0; }
.md-body hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.md-body table { margin: 8px 0 16px; }
.md-body strong { font-weight: 600; }

/* ---------------- Deliverables tab ---------------- */

.deliverable-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deliverable-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: opacity 120ms ease, border-color 120ms ease;
}

.deliverable-row.unavailable { opacity: 0.45; }

.fmt-badge {
  flex: 0 0 44px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 6px;
  padding: 3px 0;
}

.deliverable-row.unavailable .fmt-badge {
  color: var(--muted);
  border-color: var(--border);
}

.d-info { flex: 1 1 auto; min-width: 0; }
.d-name { font-size: 12.5px; font-weight: 600; }
.d-desc {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.d-after {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.dl-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  transition: background 120ms ease;
}

.dl-btn:hover { background: rgba(56, 189, 248, 0.1); }

/* Banner action button (anchor styled as .btn) */
a.btn { text-decoration: none; display: inline-block; }
.banner .banner-action { flex: 0 0 auto; white-space: nowrap; }

/* ---------------- Gate modal ---------------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  width: 560px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.modal-kicker { color: var(--warn); margin-bottom: 8px; }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* Minimized-gate chip: bottom-right, amber — the run is waiting on a human. */
.gate-chip {
  position: fixed;
  right: 20px;
  bottom: 44px;
  z-index: 1001;
  background: var(--surface-2);
  border: 1px solid var(--warn);
  color: var(--warn);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(4, 8, 16, 0.6);
  animation: chip-pulse 1.6s ease-in-out infinite;
}

.gate-chip:hover { background: rgba(251, 191, 36, 0.12); }

.gate-chip.hidden { display: none; }

@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(4, 8, 16, 0.6), 0 0 0 0 rgba(251, 191, 36, 0.35); }
  50% { box-shadow: 0 6px 24px rgba(4, 8, 16, 0.6), 0 0 0 6px rgba(251, 191, 36, 0); }
}

.modal h2 { margin: 0 0 16px; font-size: 16px; font-weight: 600; }

.gate-summary table { margin-bottom: 8px; }
.gate-summary .kv-key {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.gate-question {
  margin: 16px 0 8px;
  font-weight: 600;
  font-size: 13.5px;
}

#gate-note {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  padding: 8px;
  resize: vertical;
  margin-bottom: 16px;
}

#gate-note:focus { outline: 1px solid var(--accent); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ---------------- Footer ---------------- */

.footer {
  flex: 0 0 auto;
  padding: 8px 24px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* Subtle scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2A3A52; }
