/* botfleets console — paper surfaces, mono labels, one accent. */

:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --baseline: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --accent: #2a78d6;
  --accent-wash: rgba(42, 120, 214, 0.10);
  --good: #0ca30c;
  --good-text: #006300;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --baseline: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --accent: #3987e5;
    --accent-wash: rgba(57, 135, 229, 0.14);
    --good-text: #0ca30c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --baseline: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --accent: #3987e5;
  --accent-wash: rgba(57, 135, 229, 0.14);
  --good-text: #0ca30c;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }

/* ---- header -------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  height: 52px;
  border-bottom: 1px solid var(--grid);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
}
.wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.wordmark .dot { color: var(--accent); }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; }
.nav button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: none;
  background: none;
  color: var(--ink-2);
  border-radius: 6px;
  white-space: nowrap;
}
.nav button:hover { background: var(--accent-wash); }
.nav button[aria-current="true"] {
  color: var(--ink);
  background: var(--accent-wash);
}
.sched-pill {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.sched-pill .lamp {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 2px var(--surface);
}
.theme-toggle {
  border: 1px solid var(--border);
  background: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}

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

main { max-width: 1100px; margin: 0 auto; padding: 28px 24px 80px; }
.view { display: none; }
.view.active { display: block; }

.view-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
h1 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.view-sub { color: var(--ink-2); margin: 0 0 20px; max-width: 60ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- filter row ----------------------------------------------------- */

.filter-row { display: flex; gap: 6px; margin: 0 0 16px; }
.filter-row button {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 6px;
}
.filter-row button:hover { background: var(--accent-wash); }
.filter-row button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-wash);
}

/* ---- cards & tiles -------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.tile .t-label { font-size: 12.5px; color: var(--ink-2); margin-bottom: 2px; }
.tile .t-value { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.tile .t-delta { font-size: 12px; font-family: var(--mono); margin-top: 2px; }
.t-delta.up { color: var(--good-text); }
.t-delta.down { color: var(--critical); }
.t-delta.flat { color: var(--muted); }

.chart-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 820px) { .chart-grid { grid-template-columns: 1fr; } }

.chart-card { position: relative; }
.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.chart-title { font-size: 13.5px; font-weight: 600; }
.chart-sub { font-size: 12px; color: var(--muted); }
.table-toggle {
  font-family: var(--mono);
  font-size: 10.5px;
  border: 1px solid var(--border);
  background: none;
  color: var(--ink-2);
  border-radius: 5px;
  padding: 2px 8px;
}
.table-toggle[aria-pressed="true"] { background: var(--accent-wash); color: var(--ink); }
.legend {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-2);
}
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .swatch { width: 10px; height: 10px; border-radius: 3px; }

.viz-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 8px 10px;
  font-size: 12px;
  z-index: 10;
  display: none;
  min-width: 120px;
}
.viz-tooltip .tt-day {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.viz-tooltip .tt-row { display: flex; align-items: center; gap: 7px; }
.viz-tooltip .tt-key { width: 10px; height: 3px; border-radius: 2px; }
.viz-tooltip .tt-val { font-weight: 600; }
.viz-tooltip .tt-name { color: var(--ink-2); }

.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 5px 8px;
  border-bottom: 1px solid var(--grid);
}
.data-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--grid);
  font-variant-numeric: tabular-nums;
}
.data-table tr:last-child td { border-bottom: none; }

/* ---- learn feed ------------------------------------------------------ */

.learn-feed { margin-top: 0; }
.learn-feed ul { list-style: none; margin: 8px 0 0; padding: 0; }
.learn-feed li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--grid);
  align-items: baseline;
}
.learn-feed li:last-child { border-bottom: none; }
.learn-loop {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}
.learn-note { flex: 1; }
.learn-auto { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---- fleet ----------------------------------------------------------- */

.fleet-list { display: flex; flex-direction: column; gap: 12px; }
.auto-card { padding: 18px 20px; }
.auto-head { display: flex; align-items: flex-start; gap: 14px; }
.auto-title { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.auto-desc { color: var(--ink-2); margin: 2px 0 0; max-width: 62ch; }
.auto-actions { margin-left: auto; display: flex; gap: 8px; flex-shrink: 0; }
.btn {
  border: 1px solid var(--border);
  background: none;
  border-radius: 7px;
  padding: 6px 13px;
  font-size: 13px;
  color: var(--ink);
}
.btn:hover { background: var(--accent-wash); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.danger:hover { background: rgba(208, 59, 59, 0.10); border-color: var(--critical); color: var(--critical); }

.auto-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 12px 0 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
}
.auto-meta .m-label { color: var(--muted); }
.loop-badge {
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--ink-2);
  white-space: nowrap;
}
.dag-wrap { margin: 10px 0 2px; overflow-x: auto; }
.dag-svg { display: block; }
.dag-label {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--ink-2);
}

.status-pill {
  font-family: var(--mono);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-pill.succeeded::before, .status-pill.online::before { background: var(--good); }
.status-pill.failed::before { background: var(--critical); }
.status-pill.running::before { background: var(--accent); }
.status-pill.degraded::before { background: var(--warning); }
.status-pill.offline::before, .status-pill.skipped::before { background: var(--muted); }
.status-pill.paused::before { background: var(--muted); }

.run-list { margin-top: 12px; border-top: 1px solid var(--grid); }
.run-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--grid);
  font-size: 12.5px;
  width: 100%;
  background: none;
  border-left: none; border-right: none; border-top: none;
  text-align: left;
}
.run-row:hover { background: var(--accent-wash); }
.run-row .r-when { font-family: var(--mono); font-size: 11px; color: var(--ink-2); width: 130px; flex-shrink: 0; }
.run-row .r-note { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.run-row .r-dur { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.runs-toggle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: none;
  border: none;
  padding: 6px 0 0;
}

/* ---- admin tables ---------------------------------------------------- */

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--grid);
}
.admin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--grid);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .cell-name { font-weight: 600; }
.admin-table .cell-mono { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.admin-table .cell-desc { color: var(--ink-2); max-width: 40ch; }
.admin-table .cell-actions { text-align: right; white-space: nowrap; }
.gdpr-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--good-text);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
.gdpr-badge.no { color: var(--serious); }

.switch {
  width: 34px; height: 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--grid);
  position: relative;
  padding: 0;
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: left 0.15s ease;
}
.switch[aria-checked="true"] { background: var(--good); border-color: var(--good); }
.switch[aria-checked="true"]::after { left: 16px; }

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

dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 22px 24px;
  width: min(560px, calc(100vw - 40px));
  max-height: 85vh;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.35); }
dialog h2 { margin: 0 0 4px; font-size: 16px; }
dialog .form-sub { color: var(--ink-2); margin: 0 0 16px; font-size: 13px; }
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--page);
  color: var(--ink);
  padding: 7px 10px;
  font: inherit;
}
.field textarea { font-family: var(--mono); font-size: 12px; min-height: 150px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.form-error { color: var(--critical); font-size: 12.5px; margin-top: 10px; }

/* ---- run drawer ------------------------------------------------------- */

.task-timeline { list-style: none; margin: 12px 0 0; padding: 0; }
.task-timeline li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--grid);
  align-items: baseline;
}
.task-timeline li:last-child { border-bottom: none; }
.task-timeline .t-name { width: 180px; flex-shrink: 0; font-weight: 600; font-size: 13px; }
.task-timeline .t-kind { font-family: var(--mono); font-size: 10px; color: var(--muted); display: block; font-weight: 400; }
.task-timeline .t-output { color: var(--ink-2); font-size: 12.5px; flex: 1; }

.empty {
  color: var(--ink-2);
  padding: 28px 0;
  text-align: center;
}
.empty .eyebrow { display: block; margin-bottom: 6px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.refetching { opacity: 0.55; transition: opacity 0.2s ease; }

/* ---- auth ------------------------------------------------------------ */

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card { width: min(420px, 100%); padding: 28px 30px; }
.auth-tagline { color: var(--ink-2); margin: 6px 0 18px; }
.auth-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--grid);
  margin-bottom: 18px;
}
.auth-tabs button {
  font-family: var(--mono);
  font-size: 12px;
  background: none;
  border: none;
  padding: 8px 12px;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.auth-submit { width: 100%; margin-top: 4px; padding: 9px; }
.auth-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}
.seg-row { display: flex; gap: 6px; }
.seg-row button {
  flex: 1;
  border: 1px solid var(--border);
  background: none;
  border-radius: 7px;
  padding: 7px 4px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.seg-row button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--ink);
}

/* ---- topbar user chip ------------------------------------------------- */

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.plan-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--ink-2);
}
.plan-badge.paid { color: var(--accent); border-color: var(--accent); }

/* ---- account view ------------------------------------------------------ */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 8px;
}
.section-note { font-size: 12px; color: var(--muted); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.plan-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-card.current { border-color: var(--accent); background: var(--accent-wash); }
.plan-card .p-name { font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.plan-card .p-price { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.plan-card ul { margin: 2px 0 8px; padding-left: 18px; color: var(--ink-2); font-size: 12.5px; }
.plan-card li { margin: 2px 0; }
.plan-card .btn { margin-top: auto; }

.invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--grid);
}
.invite-row:last-child { border-bottom: none; }
.invite-code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
}
.role-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- managed endpoints -------------------------------------------------- */

.managed-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 14px;
  color: var(--ink-2);
  font-size: 13px;
}
.managed-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
}
tr.locked td { opacity: 0.5; }

.key-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 14px 0 6px;
  border-top: 1px solid var(--grid);
  margin-top: 8px;
}
.test-ok { color: var(--good-text) !important; }
.test-fail { color: var(--critical) !important; }

/* ---- automation builder ----------------------------------------------- */

dialog.wide { width: min(780px, calc(100vw - 40px)); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.plan-box {
  border: 1px solid var(--accent);
  background: var(--accent-wash);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.plan-row { display: flex; gap: 8px; align-items: stretch; }
.plan-row textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 7px 10px;
  font: inherit;
  min-height: 48px;
  resize: vertical;
}
.plan-row .btn { white-space: nowrap; align-self: stretch; }
.plan-box .hint { font-size: 11.5px; color: var(--ink-2); margin-top: 6px; }
.plan-box .form-error { margin-top: 6px; }

.builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.dag-preview {
  border: 1px solid var(--grid);
  border-radius: 8px;
  background: var(--page);
  padding: 6px 10px;
  margin-bottom: 10px;
  overflow-x: auto;
}
.task-builder { display: flex; flex-direction: column; gap: 10px; }
.builder-empty {
  color: var(--muted);
  border: 1px dashed var(--baseline);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-size: 12.5px;
}
.task-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  background: var(--page);
}
.task-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.field .task-card-head .kind-select,
.kind-select {
  width: auto;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
  padding: 3px 4px;
  flex-shrink: 0;
}
.field .task-card-head .task-name,
.task-name {
  width: auto;
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  padding: 3px 6px;
  border-radius: 6px;
}
.task-name:hover, .task-name:focus { border-color: var(--border); background: var(--surface); }
.task-key { font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.icon-btn {
  border: none;
  background: none;
  color: var(--muted);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 13px;
  flex-shrink: 0;
}
.icon-btn:hover { color: var(--critical); background: rgba(208, 59, 59, 0.10); }

.task-config { display: flex; flex-direction: column; gap: 8px; margin-bottom: 9px; }
.task-config .hint { font-size: 11px; color: var(--muted); }
.cfg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cfg-grid.four { grid-template-columns: 2fr 1fr 1.2fr 1.3fr; }
@media (max-width: 640px) { .cfg-grid, .cfg-grid.four { grid-template-columns: 1fr; } }
.cfg-field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.cfg-field input, .cfg-field select, .cfg-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 6px 9px;
  font: inherit;
  font-size: 13px;
}
.cfg-field textarea { resize: vertical; min-height: 40px; }
.cfg-field .pair { display: flex; gap: 6px; }
.mono-input { font-family: var(--mono) !important; font-size: 12px !important; }
input.invalid { border-color: var(--critical) !important; }

.route-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px dashed var(--grid);
  padding-top: 8px;
}
.route-cell { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.route-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  width: 72px;
  flex-shrink: 0;
}
.route-out { font-size: 12px; color: var(--ink-2); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--surface);
  color: var(--ink-2);
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--ink);
}
.add-task-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.add-task-row .btn { font-size: 12px; padding: 4px 10px; }
.add-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
