/* ==========================================================================
   Pigeon UI: shadcn/ui design system (zinc, new-york), white / black / yellow.
   Yellow (--highlight) is an accent only: fills under black text, focus rings,
   active and live states, progress, motion. Never yellow text on white.
   Theme: light default, dark via prefers-color-scheme or [data-theme].
   ========================================================================== */

:root {
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 0.625rem;

  --background: #ffffff;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --popover: #ffffff;
  --primary: #18181b;
  --primary-foreground: #fafafa;
  --secondary: #f4f4f5;
  --secondary-foreground: #18181b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --accent: #f4f4f5;
  --accent-foreground: #18181b;
  --destructive: #dc2626;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --ring: #a1a1aa;
  --sidebar: #fafafa;
  --sidebar-border: #e4e4e7;

  --highlight: #facc15;            /* yellow-400 */
  --highlight-strong: #eab308;     /* yellow-500 */
  --highlight-soft: #fef9c3;       /* yellow-100 */
  --highlight-foreground: #09090b;

  --ok: #16a34a;      --ok-soft: #dcfce7;
  --warn: #a16207;    --warn-soft: #fef3c7;
  --bad: #dc2626;     --bad-soft: #fee2e2;
  --info: #2563eb;    --info-soft: #dbeafe;

  --grid-line: rgba(9, 9, 11, .06);
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, .05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, .08), 0 1px 2px -1px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .08), 0 2px 4px -2px rgba(0, 0, 0, .06);
  --shadow-lg: 0 18px 40px -16px rgba(0, 0, 0, .25), 0 4px 10px -4px rgba(0, 0, 0, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #09090b;
    --foreground: #fafafa;
    --card: #0c0c0e;
    --card-foreground: #fafafa;
    --popover: #0c0c0e;
    --primary: #fafafa;
    --primary-foreground: #18181b;
    --secondary: #27272a;
    --secondary-foreground: #fafafa;
    --muted: #18181b;
    --muted-foreground: #a1a1aa;
    --accent: #27272a;
    --accent-foreground: #fafafa;
    --destructive: #f87171;
    --border: #27272a;
    --input: #27272a;
    --ring: #52525b;
    --sidebar: #0c0c0e;
    --sidebar-border: #27272a;
    --highlight-soft: rgba(250, 204, 21, .14);
    --ok: #4ade80;      --ok-soft: rgba(74, 222, 128, .12);
    --warn: #fbbf24;    --warn-soft: rgba(251, 191, 36, .12);
    --bad: #f87171;     --bad-soft: rgba(248, 113, 113, .12);
    --info: #60a5fa;    --info-soft: rgba(96, 165, 250, .12);
    --grid-line: rgba(255, 255, 255, .06);
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, .5);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, .5);
    --shadow-md: 0 4px 10px -2px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 50px -20px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #0c0c0e;
  --card-foreground: #fafafa;
  --popover: #0c0c0e;
  --primary: #fafafa;
  --primary-foreground: #18181b;
  --secondary: #27272a;
  --secondary-foreground: #fafafa;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --accent-foreground: #fafafa;
  --destructive: #f87171;
  --border: #27272a;
  --input: #27272a;
  --ring: #52525b;
  --sidebar: #0c0c0e;
  --sidebar-border: #27272a;
  --highlight-soft: rgba(250, 204, 21, .14);
  --ok: #4ade80;      --ok-soft: rgba(74, 222, 128, .12);
  --warn: #fbbf24;    --warn-soft: rgba(251, 191, 36, .12);
  --bad: #f87171;     --bad-soft: rgba(248, 113, 113, .12);
  --info: #60a5fa;    --info-soft: rgba(96, 165, 250, .12);
  --grid-line: rgba(255, 255, 255, .06);
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, .5);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, .5);
  --shadow-md: 0 4px 10px -2px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 50px -20px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font: 14px/1.5 var(--font);
  font-feature-settings: "ss01", "cv11", "rlig" 1, "calt" 1;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a.link, .prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--highlight-strong); text-decoration-thickness: 2px; }
code, pre, .mono, kbd { font-family: var(--mono); font-size: 12.5px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; }
::selection { background: var(--highlight); color: var(--highlight-foreground); }
:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; border-radius: 4px; }
.backdrop { display: none; }

/* ---------- layout: sidebar + inset ---------- */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.shell.collapsed { grid-template-columns: 64px minmax(0, 1fr); }
.nav {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  background: var(--sidebar); border-right: 1px solid var(--sidebar-border); padding: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: calc(var(--radius) - 2px); font-weight: 600; font-size: 14px; }
.brand:hover { background: var(--accent); }
.brand .meta { display: grid; line-height: 1.2; min-width: 0; }
.brand .meta small { color: var(--muted-foreground); font-weight: 400; font-size: 12px; }
.mark {
  width: 32px; height: 32px; border-radius: 8px; flex: none; position: relative;
  background: var(--highlight); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.mark::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 15.5c4.2-.8 6.4-4.6 8.4-9 1 3 3.8 5 7.6 5.2-2.8 2.4-7 4.4-12.6 4.6z' fill='%2309090b'/></svg>") center / contain no-repeat;
}
.nav-group { display: grid; gap: 1px; margin-top: 12px; }
.nav-label { font-size: 12px; font-weight: 500; color: var(--muted-foreground); padding: 0 8px; height: 28px; display: flex; align-items: center; }
.nav-group a {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; border-radius: calc(var(--radius) - 2px);
  color: var(--foreground); font-size: 13.5px; position: relative; transition: background .15s;
}
.nav-group a svg { width: 16px; height: 16px; flex: none; color: var(--muted-foreground); }
.nav-group a:hover { background: var(--accent); }
.nav-group a.active { background: var(--accent); font-weight: 500; }
.nav-group a.active svg { color: var(--foreground); }
.nav-group a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--highlight); }
.nav-group a .count { margin-left: auto; font-size: 11.5px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.nav-foot { margin-top: auto; display: grid; gap: 6px; }
.nav-card { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; box-shadow: var(--shadow-xs); }
.nav-card .t { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.nav-card p { margin: 0; font-size: 12px; color: var(--muted-foreground); }
.who { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: calc(var(--radius) - 2px); cursor: pointer; min-width: 0; }
.who:hover { background: var(--accent); }
.who .meta { display: grid; line-height: 1.25; min-width: 0; }
.who .meta b { font-size: 13px; font-weight: 600; }
.who .meta span { font-size: 12px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--primary); color: var(--primary-foreground); }
.shell.collapsed .nav .meta, .shell.collapsed .nav-label, .shell.collapsed .nav-group a span, .shell.collapsed .nav-group a .count, .shell.collapsed .nav-card { display: none; }
.shell.collapsed .nav-group a { justify-content: center; padding: 0; }

.inset { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 10; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 20px;
  background: color-mix(in srgb, var(--background) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .vsep { width: 1px; height: 16px; background: var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted-foreground); min-width: 0; }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb .cur { color: var(--foreground); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb svg { width: 14px; height: 14px; }
.topbar .spacer { flex: 1; }
/* Background refresh of last-known data: quiet, never blocking. */
.sync-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; color: var(--muted-foreground); white-space: nowrap; animation: fade .2s; }
.sync-pill[hidden] { display: none; }
.sync-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--highlight-strong); animation: live 1.4s infinite; }
.sync-pill.offer { padding: 0; border-color: var(--highlight); }
.sync-pill.offer button { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 10px; border: 0; background: color-mix(in srgb, var(--highlight) 14%, transparent); color: var(--foreground); font: 500 12px var(--font); border-radius: 999px; cursor: pointer; }
@media (max-width: 600px) { .sync-pill { margin-left: 6px; } }
.search-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; width: 260px; padding: 0 8px 0 10px; border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--input); background: var(--background); color: var(--muted-foreground); font: 13px var(--font); cursor: pointer; box-shadow: var(--shadow-xs);
}
.search-trigger:hover { background: var(--accent); }
.search-trigger svg { width: 15px; height: 15px; }
.search-trigger kbd { margin-left: auto; }
kbd { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--border); background: var(--muted); color: var(--muted-foreground); font-size: 11px; font-weight: 500; }

.main { padding: 28px 28px 80px; max-width: 1320px; width: 100%; margin: 0 auto; }
.page { animation: page-in .35s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.page-head .sub { color: var(--muted-foreground); margin-top: 6px; max-width: 72ch; font-size: 14px; }
.crumb { display: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.meta-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: -12px 0 20px; }

/* ---------- card ---------- */
.panel {
  background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-xs); position: relative; overflow: hidden;
}
.panel > .hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 0; }
.panel > .hd h2 { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.panel > .hd .hint { color: var(--muted-foreground); font-size: 13px; margin-top: 4px; }
.panel > .bd { padding: 16px 20px 20px; }
.panel > .bd.flush { padding: 12px 0 4px; }
.panel.lift { transition: box-shadow .25s var(--ease), border-color .25s; }
.panel.lift:hover { box-shadow: var(--shadow-md); border-color: var(--ring); }

/* spotlight (rare-style): radial highlight that follows the cursor */
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(250, 204, 21, .14), transparent 45%);
}
.spot:hover::after { opacity: 1; }

/* border beam (rare-style): a yellow light that travels around the border */
.beam { isolation: isolate; }
.beam::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--beam-angle, 0deg), transparent 0 78%, var(--highlight) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 5s linear infinite;
}
@property --beam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes beam { to { --beam-angle: 360deg; } }

/* grid backdrop with radial fade */
.gridbg { position: relative; }
.gridbg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 30%, transparent 75%);
}

.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; }
.grid > *, .stack > *, .wf-shell > * { min-width: 0; }
.data-table td { white-space: nowrap; }
.tick.no { background: var(--muted); color: var(--muted-foreground); border-color: transparent; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.muted { color: var(--muted-foreground); }
.faint { color: var(--muted-foreground); opacity: .8; }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.sep { height: 1px; background: var(--border); margin: 16px 0; }
.tilt .pop { transform: none; }

/* ---------- stats ---------- */
.stat { padding: 20px; display: grid; gap: 6px; }
.stat .label { font-size: 13px; color: var(--muted-foreground); font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat .label svg { width: 16px; height: 16px; }
.stat .label i { display: none; }
.stat .value { font-size: 30px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .foot { font-size: 12.5px; color: var(--muted-foreground); }
.stat .spark { height: 36px; margin-top: 6px; }
.stat::before { display: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 340px; }
.hero .copy { padding: 32px; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; font-weight: 600; letter-spacing: -.045em; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--foreground) 0%, var(--foreground) 35%, var(--highlight-strong) 50%, var(--foreground) 65%, var(--foreground) 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer-text 6s ease-in-out infinite;
}
@keyframes shimmer-text { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
.hero p { margin: 0; color: var(--muted-foreground); max-width: 48ch; font-size: 15px; }
.hero .globe { position: relative; min-height: 300px; border-left: 1px solid var(--border); background: radial-gradient(circle at 50% 50%, var(--muted), transparent 70%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .legend { position: absolute; bottom: 14px; left: 16px; right: 16px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted-foreground); }
.hero .legend span { display: inline-flex; align-items: center; gap: 6px; }
.hero .legend i { width: 8px; height: 8px; border-radius: 2px; }
.pulse-line { display: flex; gap: 28px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--border); }
.pulse-line .kv { display: grid; gap: 2px; }
.pulse-line .kv b { font-size: 22px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pulse-line .kv span { font-size: 12px; color: var(--muted-foreground); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; min-height: 28px; padding: 3px 12px 3px 4px; line-height: 1.3; border-radius: 999px; border: 1px solid var(--border); background: var(--background); font-size: 12.5px; font-weight: 500; box-shadow: var(--shadow-xs); }
.eyebrow b { height: 20px; padding: 0 8px; border-radius: 999px; background: var(--highlight); color: var(--highlight-foreground); display: inline-flex; align-items: center; font-size: 11.5px; }

/* ---------- button ---------- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 36px; padding: 0 16px; border-radius: calc(var(--radius) - 2px); font: 500 14px/1 var(--font); cursor: pointer;
  background: var(--primary); color: var(--primary-foreground); border: 1px solid transparent; box-shadow: var(--shadow-xs);
  transition: background .15s, color .15s, box-shadow .15s, transform .1s, opacity .15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--highlight); }
/* default (unclassed in markup) = outline, matching most secondary actions */
.btn:not(.primary):not(.ghost):not(.danger):not(.highlight):not(.secondary) { background: var(--background); color: var(--foreground); border-color: var(--input); }
.btn:not(.primary):not(.ghost):not(.danger):not(.highlight):not(.secondary):hover { background: var(--accent); opacity: 1; }
.btn.primary { background: var(--primary); color: var(--primary-foreground); }
.btn.highlight { background: var(--highlight); color: var(--highlight-foreground); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 6px 16px -8px rgba(234, 179, 8, .9); }
.btn.highlight:hover { background: var(--highlight-strong); opacity: 1; }
.btn.secondary { background: var(--secondary); color: var(--secondary-foreground); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--foreground); box-shadow: none; }
.btn.ghost:hover { background: var(--accent); opacity: 1; }
.btn.danger { background: var(--background); color: var(--destructive); border-color: var(--input); }
.btn.danger:hover { background: var(--bad-soft); opacity: 1; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn.xs { height: 28px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.btn.lg { height: 40px; padding: 0 22px; }
.btn.icon { width: 36px; padding: 0; }
.btn.icon.sm { width: 32px; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.google { width: 100%; height: 40px; background: var(--background); color: var(--foreground); border-color: var(--input); }

/* ---------- badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; white-space: nowrap;
  font-size: 12px; font-weight: 500; border: 1px solid var(--border); background: var(--background); color: var(--foreground);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted-foreground); }
.badge.plain::before { display: none; }
.badge.ok::before { background: var(--ok); }
.badge.warn::before { background: var(--highlight-strong); }
.badge.bad { color: var(--destructive); }
.badge.bad::before { background: var(--destructive); }
.badge.info::before { background: var(--info); }
.badge.solid { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.badge.yellow { background: var(--highlight); color: var(--highlight-foreground); border-color: transparent; }
.badge.yellow::before { background: var(--highlight-foreground); }
.badge.live::before { box-shadow: 0 0 0 0 currentColor; animation: live 1.8s infinite; background: var(--ok); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th { text-align: left; font-weight: 500; color: var(--muted-foreground); height: 40px; padding: 0 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: color-mix(in srgb, var(--muted) 60%, transparent); }
tr.link { cursor: pointer; }
td .title { font-weight: 500; }
.panel > .bd.flush > table, .panel > .bd.flush > div > table { border-top: 1px solid var(--border); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: calc(var(--radius) - 2px); }
a.list-item:hover { background: var(--accent); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted-foreground); display: grid; gap: 12px; justify-items: center; }
.empty .art { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--foreground); background: var(--background); box-shadow: var(--shadow-sm); position: relative; }
.empty .art::after { content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--highlight); border: 2px solid var(--background); }
.empty .art svg { width: 22px; height: 22px; }

/* checklist + progress */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.tick { width: 20px; height: 20px; border-radius: 6px; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 1px; border: 1px solid var(--border); }
.tick.ok { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.tick.bad { background: var(--highlight-soft); color: var(--warn); border-color: transparent; }
.progress { height: 8px; border-radius: 99px; background: var(--muted); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--highlight); border-radius: inherit; transition: width .8s var(--ease); }

/* ---------- form controls ---------- */
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field > span { font-weight: 500; font-size: 13.5px; line-height: 1; display: flex; align-items: center; gap: 8px; }
.field > small { color: var(--muted-foreground); font-size: 12.5px; }
input, textarea, select {
  width: 100%; height: 36px; font: 14px/1.4 var(--font); color: var(--foreground); background: transparent;
  border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); padding: 0 12px; box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; }
select { appearance: none; padding-right: 32px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>") right 10px center / 14px no-repeat; }
select option { background: var(--popover); color: var(--foreground); }
input::placeholder, textarea::placeholder { color: var(--muted-foreground); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--foreground); box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight) 45%, transparent); }
input:disabled, textarea:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
textarea.code, .code { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
textarea.code { min-height: 220px; tab-size: 2; background: var(--muted); }
input[type=checkbox] {
  appearance: none; width: 16px; height: 16px; padding: 0; border-radius: 4px; border: 1px solid var(--primary); box-shadow: var(--shadow-xs); cursor: pointer; display: inline-grid; place-items: center; flex: none;
}
input[type=checkbox]:checked { background: var(--primary); }
input[type=checkbox]:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--primary-foreground); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
input[type=checkbox].switch { width: 36px; height: 20px; border-radius: 999px; border: 0; background: var(--input); position: relative; transition: background .2s; }
input[type=checkbox].switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--background); box-shadow: var(--shadow-sm); transform: none; border: 0; transition: transform .2s var(--ease); }
input[type=checkbox].switch:checked { background: var(--highlight); }
input[type=checkbox].switch:checked::after { transform: translateX(16px); width: 16px; height: 16px; border: 0; }
input[type=number] { font-variant-numeric: tabular-nums; }
input[type=time] { width: auto; }
.inline { display: inline-flex; align-items: center; gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: 500 12px var(--mono); height: 26px; padding: 0 8px; border-radius: 6px; cursor: pointer; border: 1px dashed var(--input);
  background: var(--background); color: var(--foreground); transition: all .15s;
}
.chip:hover { border-style: solid; background: var(--highlight); border-color: var(--highlight); color: var(--highlight-foreground); }

/* code / request preview */
pre.out { margin: 0; padding: 14px; border-radius: var(--radius); background: var(--muted); border: 1px solid var(--border); overflow: auto; max-height: 440px; font-size: 12.5px; }
.request { border-radius: var(--radius); overflow: hidden; border: 1px solid #27272a; background: #09090b; color: #e4e4e7; }
.request .bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #27272a; font: 12.5px var(--mono); }
.request .bar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); box-shadow: 14px 0 0 #3f3f46, 28px 0 0 #3f3f46; margin-right: 28px; }
.request .verb { color: var(--highlight); font-weight: 600; }
.request .bar > :not(.verb) { min-width: 0; overflow-wrap: anywhere; }
.request pre { margin: 0; padding: 14px; font-size: 12.5px; overflow: auto; max-height: 340px; white-space: pre-wrap; word-break: break-word; }
.request .k { color: #a1a1aa; }
.request .miss { color: var(--highlight); }
.copy-row { display: flex; align-items: center; gap: 8px; }
.copy-row code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; height: 36px; display: flex; align-items: center; padding: 0 12px; border-radius: calc(var(--radius) - 2px); background: var(--muted); border: 1px solid var(--border); }

/* alert */
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); color: var(--foreground); font-size: 13.5px; }
.callout::before { content: ""; flex: none; width: 3px; border-radius: 3px; background: var(--muted-foreground); align-self: stretch; }
.callout > * { min-width: 0; }
.callout.warn::before { background: var(--highlight); }
.callout.warn { background: color-mix(in srgb, var(--highlight-soft) 60%, var(--card)); }
.callout.bad { color: var(--destructive); }
.callout.bad::before { background: var(--destructive); }
.callout.ok::before { background: var(--ok); }
.callout ul { margin: 0; padding-left: 18px; }

/* tabs */
.tabs { display: inline-flex; gap: 2px; padding: 3px; height: 36px; align-items: center; border-radius: var(--radius); background: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; height: 30px; padding: 0 12px; border-radius: calc(var(--radius) - 3px); font: 500 13.5px var(--font); color: var(--muted-foreground); cursor: pointer; transition: all .15s; }
.tabs button:hover { color: var(--foreground); }
.tabs button.active { background: var(--background); color: var(--foreground); box-shadow: var(--shadow-sm); }
details.more { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
details.more summary { cursor: pointer; font-weight: 500; font-size: 13.5px; list-style: none; display: flex; align-items: center; gap: 8px; }
details.more summary::before { content: "›"; display: inline-block; transition: transform .2s; color: var(--muted-foreground); font-size: 16px; }
details.more[open] summary::before { transform: rotate(90deg); }
details.more[open] summary { margin-bottom: 12px; }

/* slots / messages / presets */
.slot { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; background: var(--card); }
.slot-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; border-radius: calc(var(--radius) - 2px); border: 1px solid var(--border); background: var(--muted); font-size: 13.5px; }
.msg { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; }
.presets { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.preset { text-align: left; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--card); cursor: pointer; font: inherit; color: inherit; display: grid; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.preset:hover { border-color: var(--ring); }
.preset.selected { border-color: var(--foreground); box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight) 45%, transparent); }
.preset .ico, .kind-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; border: 1px solid var(--border); background: var(--background); color: var(--foreground); box-shadow: var(--shadow-xs); }
.preset .ico svg, .kind-ico svg { width: 16px; height: 16px; }
.conn-row { display: flex; align-items: center; gap: 12px; }

/* ---------- overlays: dialog, sheet, menu, command, toast ---------- */
dialog { border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--popover); color: var(--foreground); box-shadow: var(--shadow-lg); }
dialog.wide { width: min(760px, calc(100vw - 32px)); }
dialog[open] { animation: zoom-in .18s var(--ease); }
@keyframes zoom-in { from { opacity: 0; transform: scale(.96); } }
dialog::backdrop { background: rgba(0, 0, 0, .5); }
dialog .hd { padding: 22px 24px 0; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
dialog .bd { padding: 16px 24px; max-height: 70vh; overflow: auto; }
dialog .ft { padding: 8px 24px 22px; display: flex; justify-content: flex-end; gap: 8px; }

.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 40; background: var(--popover); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide-in .25s var(--ease); }
@keyframes slide-in { from { transform: translateX(100%); } }
.sheet .hd { padding: 20px 24px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--border); }
.sheet .hd h2 { font-size: 16px; font-weight: 600; }
.sheet .bd { padding: 8px 24px 24px; overflow: auto; flex: 1; }
.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .4); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }

.menu { position: absolute; z-index: 30; min-width: 220px; padding: 4px; border-radius: var(--radius); background: var(--popover); border: 1px solid var(--border); box-shadow: var(--shadow-md); animation: zoom-in .12s var(--ease); }
.menu .lbl { padding: 6px 8px; font-size: 12px; color: var(--muted-foreground); font-weight: 500; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border: 0; background: none; border-radius: 6px; font: 13.5px var(--font); color: var(--foreground); cursor: pointer; text-align: left; }
.menu button:hover, .menu button.on { background: var(--accent); }
.menu .sw { width: 10px; height: 10px; border-radius: 3px; }
.node-menu { min-width: 236px; max-height: min(600px, 75vh); overflow-y: auto; }
.menu .menu-label { padding: 8px 8px 4px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-foreground); font-weight: 600; }
.menu .menu-label:first-child { padding-top: 4px; }
.menu .menu-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--muted); }
.menu .menu-ico svg { width: 13px; height: 13px; }
.menu button:hover .menu-ico { background: var(--highlight); color: #09090b; }

/* node settings form */
.toggle-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--input); font-size: 12.5px; cursor: pointer; user-select: none; }
.toggle-chip input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chip:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight) 45%, transparent); }
.toggle-chip:has(input:checked) { background: var(--highlight); border-color: var(--highlight); color: #09090b; }
.pair { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr) auto; gap: 6px; align-items: start; }
.pair > .faint { line-height: 36px; }
.pair > * { min-width: 0; }
/* Template values ({{contact.properties.x}}) are long: name on top, value full width under it. */
.pair.wide-val { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k x" "v v"; row-gap: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line, rgba(127,127,127,.15)); }
.pair.wide-val > :nth-child(1) { grid-area: k; }
.pair.wide-val > .faint { display: none; }
.pair.wide-val > :nth-child(3) { grid-area: v; font-family: var(--mono, ui-monospace, monospace); font-size: 12.5px; }
.pair.wide-val > button { grid-area: x; }
.rule-card { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }
.filter-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: start; }
.filter-row > * { min-width: 0; }
.node-menu .menu-sub { color: var(--muted-foreground); font-size: 11.5px; margin-left: auto; padding-left: 10px; }

.cmdk-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .5); display: grid; justify-items: center; align-items: start; padding-top: 12vh; animation: fade .15s; }
.cmdk { width: min(620px, calc(100vw - 32px)); border-radius: calc(var(--radius) + 4px); background: var(--popover); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; animation: zoom-in .16s var(--ease); }
.cmdk .in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.cmdk .in svg { width: 16px; height: 16px; color: var(--muted-foreground); }
.cmdk .in input { border: 0; box-shadow: none; height: 48px; padding: 0; font-size: 15px; background: transparent; }
.cmdk .in input:focus { box-shadow: none; }
.cmdk .list { max-height: 380px; overflow: auto; padding: 6px; display: block; }
.cmdk .grp { padding: 8px 8px 4px; font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.cmdk .item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.cmdk .item svg { width: 16px; height: 16px; color: var(--muted-foreground); }
.cmdk .item .hint { margin-left: auto; font-size: 12px; color: var(--muted-foreground); }
.cmdk .item.on { background: var(--accent); }
.cmdk .item.on::before { content: ""; width: 3px; height: 18px; border-radius: 3px; background: var(--highlight); margin-left: -6px; }
.cmdk .none { padding: 26px; text-align: center; color: var(--muted-foreground); }
.cmdk .foot { display: flex; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-foreground); }

.toaster { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: grid; gap: 8px; width: min(360px, calc(100vw - 40px)); pointer-events: none; }
.toast-item {
  pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  background: var(--popover); color: var(--foreground); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 13.5px;
  animation: toast-in .3s var(--ease); transition: opacity .25s, transform .25s;
}
.toast-item svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.toast-item.ok svg { color: var(--ok); }
.toast-item.bad { border-color: color-mix(in srgb, var(--destructive) 40%, var(--border)); }
.toast-item.bad svg { color: var(--destructive); }
.toast-item.out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.toast { display: none; }

/* tooltip via data-tip */
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 50;
  padding: 4px 8px; border-radius: 6px; background: var(--primary); color: var(--primary-foreground); font: 500 12px var(--font); pointer-events: none;
}

/* skeleton */
.skel { border-radius: var(--radius); background: var(--muted); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- sign-in (split) ---------- */
.signin { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.signin-art {
  position: relative; overflow: hidden; background: #09090b; color: #fafafa; padding: 36px; display: flex; flex-direction: column; justify-content: space-between;
}
.signin-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 40% 60%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 40% 60%, #000 30%, transparent 80%);
}
.signin-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.signin-art .brand { position: relative; z-index: 1; color: #fafafa; padding: 0; }
.signin-art .brand:hover { background: none; }
.signin-art blockquote { position: relative; z-index: 1; margin: 0; max-width: 46ch; }
.signin-art blockquote p { font-size: 20px; line-height: 1.45; letter-spacing: -.02em; margin: 0 0 10px; }
.signin-art blockquote footer { color: #a1a1aa; font-size: 13.5px; }
.signin-art mark { background: var(--highlight); color: #09090b; padding: 0 4px; border-radius: 3px; }
.signin-form { display: grid; place-items: center; padding: 32px 20px; }
.signin-card { width: min(360px, 100%); display: grid; gap: 22px; text-align: center; animation: page-in .5s var(--ease) both; }
.signin-card h1 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.signin-card p { margin: 6px 0 0; color: var(--muted-foreground); font-size: 14px; }
.signin-card .mark { display: none; }
.signin-alt { display: flex; align-items: center; gap: 12px; color: var(--muted-foreground); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.signin-alt::before, .signin-alt::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.signin-foot { font-size: 12.5px; color: var(--muted-foreground); line-height: 1.6; }

/* ==========================================================================
   Workflow canvas
   ========================================================================== */
.wf-shell { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.wf-canvas {
  position: relative; overflow: auto; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--border); min-height: 580px; max-height: calc(100vh - 230px);
  background-color: var(--muted);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--muted-foreground) 35%, transparent) 1px, transparent 0);
  background-size: 20px 20px;
}
.wf-stage { position: relative; margin: 0 auto; }
.wf-stage svg.edges { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.wf-edge { fill: none; stroke: color-mix(in srgb, var(--muted-foreground) 55%, transparent); stroke-width: 1.5; }
.wf-edge.flow { stroke: var(--foreground); stroke-opacity: .5; stroke-dasharray: 4 6; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.wf-edge-label { font: 600 11px var(--font); fill: var(--muted-foreground); text-transform: uppercase; letter-spacing: .05em; }
.wf-dot { fill: var(--highlight); stroke: #09090b; stroke-width: 1.5; filter: drop-shadow(0 0 5px rgba(250, 204, 21, .9)); }
.wf-node {
  position: absolute; width: 232px; border-radius: var(--radius); padding: 12px 14px; cursor: pointer; user-select: none;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s, transform .2s var(--ease);
}
.wf-node:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.wf-node.selected { border-color: var(--foreground); box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight) 55%, transparent), var(--shadow-md); }
.wf-node.bad { border-color: var(--destructive); }
.wf-node .top { display: flex; align-items: center; gap: 10px; }
.wf-node .ico { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; flex: none; border: 1px solid var(--border); background: var(--background); }
.wf-node .ico svg { width: 15px; height: 15px; color: var(--foreground); }
.wf-node .type { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); font-weight: 500; }
.wf-node .name { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.wf-node .detail { font-size: 12.5px; color: var(--muted-foreground); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); line-height: 1.4; }
.wf-node .count {
  position: absolute; top: -10px; right: 10px; min-width: 24px; height: 20px; padding: 0 7px; border-radius: 6px; display: grid; place-items: center;
  font: 600 11.5px var(--font); color: var(--highlight-foreground); background: var(--highlight); box-shadow: var(--shadow-sm);
  font-variant-numeric: tabular-nums; transform: scale(0); transition: transform .25s var(--ease);
}
.wf-node .count.on { transform: scale(1); }
.wf-node .count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.wf-node.glow::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--highlight); opacity: 0; animation: ping 1s var(--ease); pointer-events: none; }
@keyframes ping { 0% { opacity: 1; } 100% { opacity: 0; transform: scale(1.05); } }
.wf-node[data-type=trigger] { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.wf-node[data-type=trigger] .type, .wf-node[data-type=trigger] .detail { color: color-mix(in srgb, var(--primary-foreground) 65%, transparent); }
.wf-node[data-type=trigger] .detail { border-top-color: color-mix(in srgb, var(--primary-foreground) 20%, transparent); }
.wf-node[data-type=trigger] .ico { background: var(--highlight); border-color: transparent; }
.wf-node[data-type=trigger] .ico svg { color: #09090b; }
.wf-node[data-type=send] .ico { background: var(--highlight-soft); border-color: transparent; }
.wf-node[data-type=exit] { border-style: dashed; }
.wf-add {
  position: absolute; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border); background: var(--background); color: var(--muted-foreground);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-xs); transform: translate(-50%, -50%); transition: all .15s; font-size: 15px; line-height: 1; z-index: 2; padding: 0;
}
.wf-add:hover { color: var(--highlight-foreground); background: var(--highlight); border-color: var(--highlight); transform: translate(-50%, -50%) scale(1.12); }
.wf-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.wf-toolbar .spacer { flex: 1; }
.seg { display: inline-flex; padding: 3px; height: 36px; align-items: center; border-radius: var(--radius); background: var(--muted); }
.seg button { border: 0; background: none; height: 30px; padding: 0 12px; border-radius: calc(var(--radius) - 3px); font: 500 13px var(--font); color: var(--muted-foreground); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button.active { background: var(--background); color: var(--foreground); box-shadow: var(--shadow-sm); }
.seg button svg { width: 14px; height: 14px; }
.seg button.active svg { color: var(--highlight-strong); }
.inspector { position: sticky; top: 72px; }
.wf-mini { height: 72px; border-radius: var(--radius); background: var(--muted); border: 1px solid var(--border); position: relative; overflow: hidden; color: var(--foreground); }
.wf-mini svg { width: 100%; height: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .wf-shell { grid-template-columns: 1fr; }
  .inspector { position: static; }
  .search-trigger { width: 180px; }
}
@media (max-width: 900px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .nav { position: fixed; z-index: 45; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  .shell.mobile-open .nav { transform: none; }
  .topbar { padding: 0 12px; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero .globe { min-height: 260px; border-left: 0; border-top: 1px solid var(--border); }
  .cols-2, .cols-3, .cols-4, .two, .three { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 64px; }
  thead th, tbody td { padding-left: 12px; padding-right: 12px; }
  .hide-sm { display: none; }
  .signin { grid-template-columns: 1fr; }
  .signin-art { display: none; }
  .breadcrumb .mid { display: none; }
}
@media (min-width: 901px) { .mobile-only { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- data viewer (full screen) ---------- */
.main.full { max-width: none; padding: 0; }
.main.full > .page { height: calc(100vh - 56px); height: calc(100dvh - 56px); }
.dv { height: 100%; display: flex; flex-direction: column; min-width: 0; }
.dv-tabs {
  display: flex; align-items: center; gap: 2px; padding: 0 16px; min-height: 46px; overflow-x: auto; scrollbar-width: thin;
  border-bottom: 1px solid var(--border); background: var(--background); flex-shrink: 0;
}
.dv-tab-group { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); font-weight: 600; padding: 0 6px 0 4px; white-space: nowrap; }
.dv-tab-sep { width: 1px; height: 18px; background: var(--border); margin: 0 8px; flex-shrink: 0; }
.dv-tab {
  display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 10px; white-space: nowrap; font-size: 13px; color: var(--muted-foreground);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.dv-tab:hover { color: var(--foreground); }
.dv-tab.on { color: var(--foreground); border-bottom-color: var(--highlight); font-weight: 500; }
.dv-count { font: 500 11px var(--mono); padding: 1px 6px; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); }
.dv-tab.on .dv-count { background: var(--highlight); color: #09090b; }

.dv-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; flex-shrink: 0; }
.dv-toolbar .spacer { flex: 1; }
.dv-search-wrap { position: relative; display: flex; align-items: center; width: min(340px, 100%); }
.dv-search-wrap svg { position: absolute; left: 10px; color: var(--muted-foreground); pointer-events: none; }
.dv-search { height: 32px; padding-left: 32px; font-size: 13px; }
.dv-status { font-variant-numeric: tabular-nums; }
.badge.highlight { background: var(--highlight); color: #09090b; border-color: transparent; }
.dv-x { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 2px; margin-left: 4px; opacity: .6; font-size: 14px; line-height: 1; }
.dv-x:hover { opacity: 1; }

.dv-grid { flex: 1; min-height: 0; overflow: auto; position: relative; outline: none; }
.dv-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.dv-table th, .dv-table td { border-bottom: 1px solid var(--border); border-right: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.dv-table td { padding: 0 12px; height: 34px; white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; background: var(--background); }
.dv-table tbody tr { cursor: pointer; }
.dv-table tbody tr:hover td { background: color-mix(in srgb, var(--muted) 70%, var(--background)); }
.dv-table tbody tr:hover td.dv-sticky, .dv-table tbody tr:hover td.dv-rownum { background: color-mix(in srgb, var(--muted) 85%, var(--background)); }
.dv-table .num { font-variant-numeric: tabular-nums; }
.dv-table td:has(.num) { text-align: right; }

/* frozen header rows */
.dv-table thead th { position: sticky; z-index: 2; background: var(--muted); padding: 0; height: auto; text-align: left; font-weight: 500; }
.dv-hrow th { top: 0; height: 36px; }
.dv-frow th { top: 36px; height: 38px; background: color-mix(in srgb, var(--muted) 55%, var(--background)); box-shadow: 0 1px 0 var(--border); }
/* frozen row number + first column */
.dv-rownum { position: sticky; left: 0; z-index: 1; width: 52px; min-width: 52px; text-align: right; padding: 0 10px !important; color: var(--muted-foreground); font: 11px var(--mono); background: var(--background); }
.dv-sticky { position: sticky; left: 52px; z-index: 1; box-shadow: 1px 0 0 var(--border); }
.dv-table thead th.dv-rownum, .dv-table thead th.dv-sticky { z-index: 3; }
.dv-table thead th.dv-rownum { background: var(--muted); }
.dv-table thead .dv-frow th.dv-rownum { background: color-mix(in srgb, var(--muted) 55%, var(--background)); }
.dv-table thead .dv-frow th.dv-rownum svg { color: var(--muted-foreground); }

.dv-sort { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 36px; padding: 0 12px; border: 0; background: none; cursor: pointer; font: 500 12.5px var(--mono); color: var(--foreground); white-space: nowrap; text-align: left; }
.dv-sort:disabled { cursor: default; }
.dv-sort:not(:disabled):hover { background: color-mix(in srgb, var(--accent) 80%, transparent); }
.dv-sort.on { color: var(--foreground); box-shadow: inset 0 -2px 0 var(--highlight); }
.dv-kind { font: 10.5px var(--mono); color: var(--muted-foreground); opacity: .75; }
.dv-arrow { font-size: 13px; }

.dv-filter { display: flex; align-items: center; gap: 4px; padding: 4px 6px; min-width: 150px; }
.dv-filter input { height: 28px; font-size: 12.5px; padding: 0 8px; border-radius: 6px; min-width: 0; flex: 1; background: var(--background); }
.dv-op {
  flex-shrink: 0; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--input); background: var(--background);
  font: 500 12px var(--mono); color: var(--muted-foreground); cursor: pointer;
}
.dv-op:hover { color: var(--foreground); border-color: var(--ring); }
.dv-op.on { background: var(--highlight); border-color: var(--highlight); color: #09090b; }

.dv-empty { position: sticky; left: 0; width: min(100%, 100vw); padding: 40px 0; }
.dv-foot { display: flex; gap: 16px; align-items: center; padding: 6px 16px; border-top: 1px solid var(--border); flex-shrink: 0; font-variant-numeric: tabular-nums; }

.dv-cols { width: 280px; max-height: min(520px, 70vh); display: flex; flex-direction: column; }
.dv-cols-list { overflow-y: auto; padding: 2px 0; }
.dv-col { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; font-size: 12.5px; cursor: pointer; }
.dv-col:hover { background: var(--accent); }
.dv-col input { appearance: auto; -webkit-appearance: checkbox; width: 14px; height: 14px; padding: 0; margin: 0; box-shadow: none; accent-color: var(--highlight); flex-shrink: 0; }
.menu .dv-mini { width: auto; height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; justify-content: center; }
.dv-col .dv-kind { margin-left: auto; }
@media (max-width: 900px) {
  .dv-toolbar .dv-status { display: none; }
}

/* ---------- workflow: tabs, pools, messages, results ---------- */
.tabs button { display: inline-flex; align-items: center; gap: 6px; }
.tabs button svg { width: 14px; height: 14px; }
.tabs button.active svg { color: var(--highlight-strong); }
.wf-summary { display: grid; gap: 8px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--muted); }
.wf-summary > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; font-size: 13px; }
.wf-summary > div span { color: var(--muted-foreground); }
.wf-summary > div b { font-weight: 500; overflow-wrap: anywhere; }
.wf-summary .btn { justify-self: start; }
.pool { display: grid; gap: 8px; }
.pool-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px 64px auto auto; gap: 6px; align-items: center; }
.pool-row > * { min-width: 0; }
.pool-main { display: grid; gap: 3px; }
.pool-share { font: 500 12px var(--mono); color: var(--muted-foreground); text-align: right; }
.msg-pick { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.msg-opt { display: grid; grid-template-columns: auto 20px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; cursor: pointer; }
.msg-opt:has(input:checked) { border-color: var(--highlight); background: color-mix(in srgb, var(--highlight) 12%, transparent); }
.msg-opt input { appearance: auto; -webkit-appearance: checkbox; width: 14px; height: 14px; padding: 0; margin: 2px 0 0; box-shadow: none; accent-color: var(--highlight); }
.msg-opt .n { font: 600 11px var(--mono); color: var(--muted-foreground); padding-top: 2px; }
.msg-opt .t { overflow-wrap: anywhere; }
.msg-opt.off .t { opacity: .6; }
table.results th.num, table.results td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.results td.neg { color: var(--destructive); }
.wf-defaults { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .wf-defaults { grid-template-columns: minmax(0, 1fr); } }
.pool-row { grid-template-columns: minmax(0, 1fr) 40px 56px auto auto; }

/* ---------- brands ---------- */
.brand-preview { padding: 8px 10px; border-radius: 8px; background: var(--muted); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.brand-preview .xs { display: block; margin-bottom: 2px; }
table.numbers td { padding-top: 6px; padding-bottom: 6px; }
table.numbers select { height: 32px; font-size: 13px; }
table.numbers td.mono { white-space: nowrap; }
/* Phones: one card-like row per number (number on top, API node + status below). */
@media (max-width: 600px) {
  table.numbers thead { display: none; }
  table.numbers, table.numbers tbody { display: block; }
  table.numbers tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 104px) auto; gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  table.numbers td { display: block; padding: 0 !important; border: 0; min-width: 0; }
  table.numbers td.mono { grid-column: 1 / -1; font-weight: 500; }
  table.numbers select { width: 100%; }
}

/* ---------- leads ---------- */
.ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.split-2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .lead-grid, .split-2 { grid-template-columns: minmax(0, 1fr); } }
.run-card { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .15s, background .15s; min-width: 0; }
.run-card:hover { border-color: var(--highlight); background: color-mix(in srgb, var(--highlight) 6%, transparent); }
.run-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.run-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.run-name { flex-wrap: wrap; }
.run-name .title { font-weight: 600; overflow-wrap: anywhere; }
.run-top { align-items: flex-start; }
.run-top > .badge { flex-shrink: 0; }
.run-step { display: flex; align-items: center; gap: 10px; min-width: 0; }
.run-step .ico { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: var(--muted); border: 1px solid var(--border); }
.run-step-name { font-weight: 500; overflow-wrap: anywhere; }
.run-lines { display: grid; gap: 4px; font-size: 12.5px; }
.run-lines > div { display: flex; gap: 6px; align-items: flex-start; color: var(--muted-foreground); }
.run-lines > div svg { flex-shrink: 0; margin-top: 2px; }
.run-lines > div span { overflow-wrap: anywhere; min-width: 0; }
/* Filter chips wrap on narrow screens instead of running off the side. */
.tl-filters .seg { display: flex; flex-wrap: wrap; height: auto; width: fit-content; max-width: 100%; }
.tl-filters .seg button { white-space: nowrap; }
.tl { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; position: relative; padding-bottom: 14px; }
.tl-item::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 1px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--muted); border: 1px solid var(--border); color: var(--muted-foreground); }
.tl-item.ok .tl-dot { color: var(--ok); }
.tl-item.bad .tl-dot { color: var(--destructive); }
.tl-main { min-width: 0; display: grid; gap: 4px; padding-top: 3px; }
.tl-head { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; }
.tl-title { font-weight: 500; font-size: 13.5px; overflow-wrap: anywhere; }
.tl-time { font-size: 12px; color: var(--muted-foreground); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-body { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted-foreground); min-width: 0; }
.tl-meta > * { overflow-wrap: anywhere; min-width: 0; }
.tl-meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lead-seg { display: grid; gap: 4px; margin-bottom: 14px; }
.lead-seg-name { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.lead-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lead-stat { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; min-width: 0; }
.lead-stat span { font-size: 11.5px; color: var(--muted-foreground); }
.lead-stat b { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lead-kv { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 13px; }
.lead-kv dt { color: var(--muted-foreground); overflow-wrap: anywhere; }
.lead-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.lead-kv pre.out { max-height: 220px; padding: 8px 10px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 520px) { .lead-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lead-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .lead-kv dd { margin-bottom: 8px; } }

/* ---------- n8n-style node editor ---------- */
.node-sec { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); }
.node-sec-t { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 10px; }
.kv-rows { display: grid; gap: 6px; margin-bottom: 4px; }
.kv-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) 34px; gap: 6px; align-items: center; }
.kv-row > * { min-width: 0; }
.kv-row input { height: 34px; font-size: 12.5px; }
.kv-row input.pinned { background: var(--muted); color: var(--foreground); font-weight: 600; }
.kv-req { font-size: 10.5px; color: var(--muted-foreground); text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.exec-result { display: grid; gap: 6px; min-width: 0; }
.jt-wrap { max-height: 420px; overflow: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--muted); font: 12.5px/1.6 var(--mono); }
.jt { display: grid; padding-left: 14px; border-left: 1px dashed var(--border); }
.jt-wrap > .jt { padding-left: 0; border-left: 0; }
.jt-row { min-width: 0; }
.jt-k { color: var(--muted-foreground); }
.jt-leaf { display: inline-flex; gap: 2px; max-width: 100%; padding: 1px 6px; margin: 1px 0; border: 1px solid transparent; border-radius: 6px; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.jt-leaf:hover { border-color: var(--highlight); background: color-mix(in srgb, var(--highlight) 14%, transparent); }
.jt-v { overflow-wrap: anywhere; }
.jt-v.string { color: #15803d; }
.jt-v.number, .jt-v.boolean { color: #b45309; }
:root[data-theme="dark"] .jt-v.string { color: #4ade80; }
:root[data-theme="dark"] .jt-v.number, :root[data-theme="dark"] .jt-v.boolean { color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .jt-v.string { color: #4ade80; } :root:not([data-theme="light"]) .jt-v.number, :root:not([data-theme="light"]) .jt-v.boolean { color: #fbbf24; } }
.link-preview { display: block; padding: 12px; border-radius: var(--radius); background: var(--muted); border: 1px solid var(--border); font-size: 12.5px; overflow-wrap: anywhere; white-space: normal; }
@media (max-width: 520px) { .kv-row { grid-template-columns: minmax(0, 1fr) 34px; } .kv-row > input:nth-child(2) { grid-column: 1 / 2; grid-row: 2; } }

/* Write-only key fields: masked text, not type=password, so browsers never autofill a login into them */
.secret-input { -webkit-text-security: disc; text-security: disc; }
.secret-input::placeholder { -webkit-text-security: none; }

/* ---- Workflow runs (execution view) */
.wf-node.not-ran { opacity: .38; }
.wf-node.ran { border-color: color-mix(in srgb, var(--foreground) 45%, var(--border)); }
.wf-node.current { box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight) 55%, transparent); border-color: var(--highlight); }
.wf-node.failed { border-color: var(--destructive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--destructive) 30%, transparent); }
.wf-edge.ran { stroke: var(--foreground); stroke-opacity: .75; stroke-width: 2; }
.runs-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.runs-shell > * { min-width: 0; }
.run-list { max-height: 78vh; overflow: auto; }
.run-row { display: grid; gap: 3px; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--border); background: none; color: inherit; cursor: pointer; font: inherit; }
.run-row:hover { background: color-mix(in srgb, var(--foreground) 5%, transparent); }
.run-row.active { background: color-mix(in srgb, var(--highlight) 14%, transparent); }
.run-row .who { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-row .meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted-foreground); flex-wrap: wrap; }
.run-filters { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.run-filters > input { flex: 1 1 auto; width: auto; min-width: 0; }
.run-filters > select { flex: 0 0 112px; width: 112px; }
.run-canvas { height: 360px; }
.trail { display: grid; gap: 0; }
.trail-step { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.trail-step .rail { display: flex; flex-direction: column; align-items: center; }
.trail-step .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted-foreground); margin-top: 16px; flex: none; }
.trail-step .dot.ok { background: var(--foreground); }
.trail-step .dot.bad { background: var(--destructive); }
.trail-step .dot.warn { background: var(--highlight); }
.trail-step .line { flex: 1; width: 1.5px; background: var(--border); margin-top: 4px; }
.trail-step .body { padding: 10px 0 14px; border-bottom: 1px dashed var(--border); min-width: 0; }
.trail-step .head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.trail-step .head b { font-size: 13.5px; }
.trail-step .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.trail-step details { margin-top: 8px; }
.trail-step summary { cursor: pointer; font-size: 12.5px; color: var(--muted-foreground); }
.kv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 6px; }
.kv-table td { padding: 4px 8px 4px 0; vertical-align: top; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.kv-table td:first-child { color: var(--muted-foreground); white-space: nowrap; width: 1%; font-family: var(--mono, ui-monospace, monospace); }
.data-pre { margin: 6px 0 0; padding: 10px; border-radius: 8px; background: color-mix(in srgb, var(--foreground) 5%, transparent); font: 12px/1.45 var(--mono, ui-monospace, monospace); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; }
@media (max-width: 900px) { .runs-shell { grid-template-columns: 1fr; } .run-list { max-height: 40vh; } }
