/* ============================================================
   LONA — Credit as a Service
   Design tokens & global styles
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --surface-1: #fafbfc;
  --surface-2: #f4f6f8;
  --surface-3: #eef1f4;
  --surface-inverse: #0b1620;

  /* Borders */
  --border: #e6e9ed;
  --border-strong: #d5dade;
  --border-focus: oklch(0.55 0.13 155);

  /* Text */
  --text: #0b1620;
  --text-2: #455463;
  --text-3: #7a8694;
  --text-4: #a5adb7;
  --text-inverse: #ffffff;

  /* Brand (green, tweakable) */
  --primary: oklch(0.55 0.13 155);
  --primary-strong: oklch(0.46 0.13 155);
  --primary-soft: oklch(0.96 0.04 155);
  --primary-soft-2: oklch(0.92 0.06 155);
  --on-primary: #ffffff;

  /* Semantic */
  --success: oklch(0.6 0.14 155);
  --success-soft: oklch(0.96 0.04 155);
  --warning: oklch(0.74 0.13 75);
  --warning-soft: oklch(0.97 0.05 80);
  --danger: oklch(0.58 0.18 25);
  --danger-soft: oklch(0.96 0.04 25);
  --info: oklch(0.6 0.12 240);
  --info-soft: oklch(0.96 0.04 240);
  --pending: oklch(0.65 0.05 280);
  --pending-soft: oklch(0.96 0.02 280);

  /* Radii */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 22, 32, 0.04);
  --shadow-md: 0 2px 8px rgba(11, 22, 32, 0.06), 0 1px 2px rgba(11, 22, 32, 0.04);
  --shadow-lg: 0 12px 32px rgba(11, 22, 32, 0.08), 0 2px 6px rgba(11, 22, 32, 0.04);
  --shadow-popover: 0 16px 48px rgba(11, 22, 32, 0.14);

  /* Typography */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --rail-w: 248px;
  --topbar-h: 56px;
  --subnav-h: 48px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   App shell
   ============================================================ */

.app-shell {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  min-height: 100vh;
  background: var(--surface-1);
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  height: var(--topbar-h);
  padding: 0 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  gap: 16px;
  z-index: 5;
  position: sticky;
  top: 0;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.lona-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
}

.lona-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, var(--primary) 40%, var(--primary) 60%, transparent 60%);
  opacity: 0.85;
}

.lona-mark span {
  position: relative;
  z-index: 1;
}

.topbar-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
}

.tenant-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.tenant-switch:hover {
  background: var(--surface-2);
}

.tenant-mark {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.env-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--warning-soft);
  color: oklch(0.4 0.13 75);
  border: 1px solid oklch(0.85 0.1 75);
}

.env-pill.live {
  background: var(--success-soft);
  color: var(--success);
  border-color: oklch(0.85 0.1 155);
}

.env-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--text-2);
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
}

/* ============================================================
   Side rail
   ============================================================ */

.rail {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
}

.rail-section {
  padding: 14px 10px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.rail-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.rail-item.active {
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 600;
}

.rail-item .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.rail-item .count {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--text-3);
  font-weight: 600;
}

.rail-item.active .count {
  background: white;
  color: var(--primary-strong);
}

/* Persona switcher in rail */
.persona-card {
  margin-top: auto;
  padding: 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.persona-card:hover {
  background: var(--surface-2);
}

.persona-card .meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.persona-card .meta .name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.persona-card .meta .role {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

.persona-card .chev {
  margin-left: auto;
  color: var(--text-3);
}

/* ============================================================
   Main content area
   ============================================================ */

.main {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.page-head {
  padding: 24px 32px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.page-head .titles h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.page-head .titles p {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 13.5px;
}

.page-head .actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.subnav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--subnav-h);
  overflow-x: auto;
}

.subnav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.subnav-item:hover {
  color: var(--text);
}

.subnav-item.active {
  color: var(--text);
  border-color: var(--primary);
  font-weight: 600;
}

.page-body {
  padding: 24px 32px 64px;
  flex: 1;
}

.page-body.flush {
  padding: 0;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.btn-lg {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   Cards & panels
   ============================================================ */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.card-head .sub {
  margin: 2px 0 0;
  color: var(--text-3);
  font-size: 12.5px;
}

.card-head .actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.card-body {
  padding: 18px;
}

.card-body.flush {
  padding: 0;
}

/* Grid utilities */
.grid {
  display: grid;
  gap: 16px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   Stats / KPIs
   ============================================================ */

.kpi {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.kpi .label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.kpi .value {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.kpi .trend {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* Sparkline */
.spark {
  height: 32px;
  width: 100%;
  display: block;
  margin-top: 8px;
}

/* ============================================================
   Tables
   ============================================================ */

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tbl th {
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}

.tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.tbl tr:last-child td {
  border-bottom: none;
}

.tbl tr:hover td {
  background: var(--surface-1);
}

.tbl .num {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.tbl-compact th, .tbl-compact td {
  padding: 8px 12px;
}

/* ============================================================
   Badges
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warning { background: var(--warning-soft); color: oklch(0.42 0.13 75); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.pending { background: var(--pending-soft); color: oklch(0.4 0.05 280); }
.badge.outline { background: var(--bg); border-color: var(--border-strong); color: var(--text-2); }

/* ============================================================
   Form controls
   ============================================================ */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.field .hint {
  font-size: 11.5px;
  color: var(--text-3);
}

.input, .select, .textarea {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 13.5px;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.input::placeholder {
  color: var(--text-4);
}

.input-prefix {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
}

.input-prefix .px {
  padding: 0 12px;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  border-right: 1px solid var(--border);
  align-self: stretch;
}

.input-prefix input {
  flex: 1;
  border: none;
  padding: 8px 12px;
  background: transparent;
  font-size: 13.5px;
}

.input-prefix input:focus {
  outline: none;
}

.input-prefix:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Toggle */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--surface-3);
  transition: background 0.15s;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: transform 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle.on {
  background: var(--primary);
}

.toggle.on::after {
  transform: translateX(16px);
}

/* Segmented control */
.seg {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 3px;
  gap: 2px;
}

.seg-item {
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}

.seg-item.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* ============================================================
   Misc
   ============================================================ */

.mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.muted {
  color: var(--text-3);
}

.sep {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.vsep {
  width: 1px;
  height: 18px;
  background: var(--border);
}

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* Avatar group */
.av-group {
  display: flex;
}
.av-group .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
  border: 2px solid var(--bg);
  margin-left: -8px;
}
.av-group .avatar:first-child { margin-left: 0; }

/* Progress */
.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-4); background-clip: padding-box; border: 2px solid transparent; }

/* Empty state */
.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-3);
}

/* Tooltip */
[data-tip] {
  position: relative;
}

/* ============================================================
   Workflow node editor
   ============================================================ */

.canvas {
  position: relative;
  width: 100%;
  height: 640px;
  background:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0) 0 0/16px 16px,
    var(--surface-1);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.canvas-inner {
  position: absolute;
  inset: 0;
}

.node {
  position: absolute;
  width: 200px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  cursor: grab;
  user-select: none;
}

.node.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.node-head {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.node-head .ico {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11px;
}

.node-body {
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--text-3);
}

.node-port {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--primary);
}

.node-port.in { top: -6px; left: 50%; transform: translateX(-50%); }
.node-port.out { bottom: -6px; left: 50%; transform: translateX(-50%); }

.canvas-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.canvas-mini {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 140px;
  height: 90px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.canvas-tool-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Borrower-facing styles
   ============================================================ */

.borrower-app {
  background: var(--surface-1);
  min-height: calc(100vh - var(--topbar-h));
}

.borrower-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.b-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 0 24px;
  overflow-x: auto;
}

.b-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}

.b-step.done { color: var(--success); }
.b-step.active {
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 600;
}

.b-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}

.b-step.done .b-step-num {
  background: var(--success);
  color: white;
}

.b-step.active .b-step-num {
  background: var(--primary);
  color: white;
}

.b-step-arrow {
  color: var(--text-4);
  font-size: 12px;
}

/* Image placeholder */
.placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      var(--surface-2),
      var(--surface-2) 8px,
      var(--surface-1) 8px,
      var(--surface-1) 16px
    );
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  padding: 12px;
}

/* Pulse animation */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.pulse-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  animation: pulse-dot 1.5s infinite;
  z-index: -1;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
  box-shadow: 0 0 0 4px var(--success-soft);
}

/* Code/json viewer */
.code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-inverse);
  color: #d6deea;
  padding: 14px 16px;
  border-radius: var(--r-md);
  overflow-x: auto;
  line-height: 1.65;
}

.code .k { color: #7fc4ff; }
.code .s { color: #b6e6a2; }
.code .n { color: #ffc285; }
.code .c { color: #6b7a8a; font-style: italic; }

/* Section title */
.sec-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

/* Hovercard */
.callout {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--info-soft);
  color: oklch(0.35 0.1 240);
  font-size: 12.5px;
  border-left: 3px solid var(--info);
  display: flex;
  gap: 10px;
}

.callout.warn { background: var(--warning-soft); border-color: var(--warning); color: oklch(0.35 0.13 75); }
.callout.success { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.callout.danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }

/* Slider */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--surface-3);
  border-radius: 999px;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  cursor: pointer;
}
