/* ─────────────────────────────────────────────────────
   Liquid glass design system
   Translucent surfaces with backdrop-blur and inner highlights.
   ───────────────────────────────────────────────────── */

/* ── Surfaces ──────────────────────────────────────── */

.liquid-surface {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(220, 225, 240, 0.35) 40%,
    rgba(240, 245, 255, 0.4) 70%,
    rgba(255, 255, 255, 0.5) 100%
  );
  border-top: 1.5px solid rgba(255, 255, 255, 0.9);
  border-left: 1.5px solid rgba(255, 255, 255, 0.7);
  border-right: 1.5px solid rgba(200, 200, 210, 0.3);
  border-bottom: 1.5px solid rgba(200, 200, 210, 0.25);
  box-shadow:
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.04),
    0 4px 16px -2px rgba(0, 0, 0, 0.10),
    0 12px 40px -8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  transition: background 0.2s, box-shadow 0.2s;
}

.liquid-surface:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(220, 225, 240, 0.42) 40%,
    rgba(240, 245, 255, 0.48) 70%,
    rgba(255, 255, 255, 0.58) 100%
  );
  box-shadow:
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.04),
    0 4px 20px -2px rgba(0, 0, 0, 0.12),
    0 16px 48px -8px rgba(0, 0, 0, 0.08);
}

.dark .liquid-surface {
  background: linear-gradient(
    140deg,
    rgba(30, 41, 59, 0.7) 0%,
    rgba(15, 23, 42, 0.6) 45%,
    rgba(20, 30, 50, 0.55) 100%
  );
  border-top: 1.5px solid rgba(255, 255, 255, 0.2);
  border-left: 1.5px solid rgba(255, 255, 255, 0.12);
  border-right: 1.5px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 40px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

.dark .liquid-surface:hover {
  background: linear-gradient(
    140deg,
    rgba(51, 65, 85, 0.7) 0%,
    rgba(30, 41, 59, 0.6) 45%,
    rgba(30, 41, 59, 0.55) 100%
  );
}

/* ── Workflow Node States ─────────────────────────── */
/* These override liquid-surface border/shadow on hover and selection */

.node-card-hover:hover {
  border-color: rgba(99, 102, 241, 0.6) !important;
  box-shadow:
    0 0 0 2px rgb(99, 102, 241),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.04),
    0 4px 20px -2px rgba(0, 0, 0, 0.12) !important;
}

.dark .node-card-hover:hover {
  border-color: rgba(99, 102, 241, 0.6) !important;
  box-shadow:
    0 0 0 2px rgb(99, 102, 241),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 40px -12px rgba(0, 0, 0, 0.5) !important;
}

.node-card-selected {
  border-color: rgba(99, 102, 241, 0.6) !important;
  box-shadow:
    0 0 0 2px rgb(99, 102, 241),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.04),
    0 4px 20px -2px rgba(0, 0, 0, 0.12) !important;
}

.dark .node-card-selected {
  border-color: rgba(99, 102, 241, 0.6) !important;
  box-shadow:
    0 0 0 2px rgb(99, 102, 241),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 40px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Active state with colored glass border — uses --glass-accent CSS variable (R, G, B) */
.liquid-surface-active {
  --glass-accent: 99, 102, 241;
  border-color: rgba(var(--glass-accent), 0.5);
  box-shadow:
    inset 0 0 0 0.5px rgba(var(--glass-accent), 0.4),
    inset 0 1px 2px 0 rgba(255,255,255,0.7),
    inset 0 -1px 2px 0 rgba(0,0,0,0.04),
    0 0 12px -2px rgba(var(--glass-accent), 0.25),
    0 4px 16px -2px rgba(0,0,0,0.10);
}

.dark .liquid-surface-active {
  border-color: rgba(var(--glass-accent), 0.45);
  box-shadow:
    inset 0 0 0 0.5px rgba(var(--glass-accent), 0.35),
    inset 0 1px 2px 0 rgba(255,255,255,0.08),
    inset 0 -1px 2px 0 rgba(0,0,0,0.2),
    0 0 16px -2px rgba(var(--glass-accent), 0.3),
    0 4px 16px -2px rgba(0,0,0,0.3);
}

/* Indigo-accent glass selection helper */
.liquid-glass-indigo {
  --glass-accent: 99, 102, 241;
}

.liquid-surface-strong {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(215, 220, 238, 0.42) 40%,
    rgba(235, 240, 255, 0.48) 70%,
    rgba(255, 255, 255, 0.58) 100%
  );
  border-top: 1.5px solid rgba(255, 255, 255, 0.95);
  border-left: 1.5px solid rgba(255, 255, 255, 0.8);
  border-right: 1.5px solid rgba(190, 190, 205, 0.35);
  border-bottom: 1.5px solid rgba(190, 190, 205, 0.3);
  box-shadow:
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.05),
    0 6px 20px -2px rgba(0, 0, 0, 0.12),
    0 16px 48px -8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  transition: background 0.2s, box-shadow 0.2s;
}

.liquid-surface-strong:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(215, 220, 238, 0.50) 40%,
    rgba(235, 240, 255, 0.55) 70%,
    rgba(255, 255, 255, 0.65) 100%
  );
  box-shadow:
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.05),
    0 6px 24px -2px rgba(0, 0, 0, 0.14),
    0 20px 56px -8px rgba(0, 0, 0, 0.10);
}

.dark .liquid-surface-strong {
  background: linear-gradient(
    140deg,
    rgba(30, 41, 59, 0.78) 0%,
    rgba(15, 23, 42, 0.68) 45%,
    rgba(20, 30, 50, 0.62) 100%
  );
  border-top: 1.5px solid rgba(255, 255, 255, 0.25);
  border-left: 1.5px solid rgba(255, 255, 255, 0.15);
  border-right: 1.5px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.15),
    0 16px 48px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
}

.dark .liquid-surface-strong:hover {
  background: linear-gradient(
    140deg,
    rgba(51, 65, 85, 0.78) 0%,
    rgba(30, 41, 59, 0.68) 45%,
    rgba(30, 41, 59, 0.62) 100%
  );
}

.liquid-surface-container {
  background: rgb(255 255 255 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.6);
  box-shadow:
    0 25px 50px -12px rgb(0 0 0 / 0.06),
    inset 0 1px 2px 0 rgb(255 255 255 / 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark .liquid-surface-container {
  background: linear-gradient(
    140deg,
    rgba(30, 41, 59, 0.5) 0%,
    rgba(15, 23, 42, 0.4) 45%,
    rgba(15, 23, 42, 0.3) 100%
  );
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 40px -26px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.liquid-divider {
  border-color: rgba(148, 163, 184, 0.26);
}

.dark .liquid-divider {
  border-color: rgba(148, 163, 184, 0.24);
}

/* ── Buttons — shared base ─────────────────────────── */

.liquid-button,
.liquid-button-primary {
  background: rgb(255 255 255 / 0.35);
  border: 1px solid rgb(255 255 255 / 0.5);
  box-shadow:
    0 8px 32px -8px rgb(0 0 0 / 0.12),
    inset 0 1px 2px 0 rgb(255 255 255 / 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.dark .liquid-button,
.dark .liquid-button-primary {
  background: linear-gradient(
    140deg,
    rgba(30, 41, 59, 0.5) 0%,
    rgba(15, 23, 42, 0.4) 45%,
    rgba(15, 23, 42, 0.3) 100%
  );
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px -16px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ── Button — outline (secondary) hover ────────────── */

.liquid-button:hover {
  background: rgb(255 255 255 / 0.5);
  box-shadow:
    0 8px 32px -8px rgb(0 0 0 / 0.16),
    inset 0 1px 2px 0 rgb(255 255 255 / 0.3);
}

.dark .liquid-button:hover {
  background: linear-gradient(
    140deg,
    rgba(51, 65, 85, 0.55) 0%,
    rgba(30, 41, 59, 0.45) 45%,
    rgba(30, 41, 59, 0.35) 100%
  );
}

/* ── Button — primary (blue CTA) hover ─────────────── */

.liquid-button-primary:hover {
  background: rgb(37 99 235 / 0.78);
  border-color: rgb(96 165 250 / 0.5);
  box-shadow:
    0 8px 32px -8px rgb(37 99 235 / 0.4),
    inset 0 1px 2px 0 rgb(255 255 255 / 0.3);
  color: white;
}

.dark .liquid-button-primary:hover {
  background: linear-gradient(
    140deg,
    rgba(59, 130, 246, 0.78) 0%,
    rgba(37, 99, 235, 0.74) 50%,
    rgba(59, 130, 246, 0.68) 100%
  );
  border-color: rgba(147, 197, 253, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 30px -16px rgba(59, 130, 246, 0.7);
  color: white;
}


/* ── Button — destructive (red) — same glass base, fills red on hover ── */

.liquid-button-red:hover {
  background: rgb(239 68 68 / 0.78);
  border-color: rgb(252 165 165 / 0.5);
  box-shadow:
    0 8px 32px -8px rgb(239 68 68 / 0.4),
    inset 0 1px 2px 0 rgb(255 255 255 / 0.3);
  color: white;
}

.dark .liquid-button-red:hover {
  background: linear-gradient(
    140deg,
    rgba(248, 113, 113, 0.78) 0%,
    rgba(239, 68, 68, 0.74) 50%,
    rgba(248, 113, 113, 0.68) 100%
  );
  border-color: rgba(252, 165, 165, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 30px -16px rgba(248, 113, 113, 0.7);
  color: white;
}

/* ── Button — success (green) — same glass base, fills green on hover ── */

.liquid-button-green:hover {
  background: rgb(34 197 94 / 0.78);
  border-color: rgb(134 239 172 / 0.5);
  box-shadow:
    0 8px 32px -8px rgb(34 197 94 / 0.4),
    inset 0 1px 2px 0 rgb(255 255 255 / 0.3);
  color: white;
}

.dark .liquid-button-green:hover {
  background: linear-gradient(
    140deg,
    rgba(74, 222, 128, 0.78) 0%,
    rgba(34, 197, 94, 0.74) 50%,
    rgba(74, 222, 128, 0.68) 100%
  );
  border-color: rgba(134, 239, 172, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 30px -16px rgba(74, 222, 128, 0.7);
  color: white;
}

/* ── Filter pills — colored glassmorphism ──────────── */

.liquid-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  cursor: pointer;
}

.liquid-pill-blue {
  background: rgb(59 130 246 / 0.15);
  border: 1px solid rgb(96 165 250 / 0.3);
  color: rgb(29 78 216);
}
.liquid-pill-blue:hover { background: rgb(59 130 246 / 0.25); }
.dark .liquid-pill-blue {
  background: rgb(59 130 246 / 0.2);
  border-color: rgb(96 165 250 / 0.2);
  color: rgb(147 197 253);
}
.dark .liquid-pill-blue:hover { background: rgb(59 130 246 / 0.3); }

.liquid-pill-emerald {
  background: rgb(16 185 129 / 0.15);
  border: 1px solid rgb(52 211 153 / 0.3);
  color: rgb(4 120 87);
}
.liquid-pill-emerald:hover { background: rgb(16 185 129 / 0.25); }
.dark .liquid-pill-emerald {
  background: rgb(16 185 129 / 0.2);
  border-color: rgb(52 211 153 / 0.2);
  color: rgb(110 231 183);
}
.dark .liquid-pill-emerald:hover { background: rgb(16 185 129 / 0.3); }

.liquid-pill-orange {
  background: rgb(249 115 22 / 0.15);
  border: 1px solid rgb(251 146 60 / 0.3);
  color: rgb(194 65 12);
}
.liquid-pill-orange:hover { background: rgb(249 115 22 / 0.25); }
.dark .liquid-pill-orange {
  background: rgb(249 115 22 / 0.2);
  border-color: rgb(251 146 60 / 0.2);
  color: rgb(253 186 116);
}
.dark .liquid-pill-orange:hover { background: rgb(249 115 22 / 0.3); }

.liquid-pill-purple {
  background: rgb(168 85 247 / 0.15);
  border: 1px solid rgb(192 132 252 / 0.3);
  color: rgb(107 33 168);
}
.liquid-pill-purple:hover { background: rgb(168 85 247 / 0.25); }
.dark .liquid-pill-purple {
  background: rgb(168 85 247 / 0.2);
  border-color: rgb(192 132 252 / 0.2);
  color: rgb(216 180 254);
}
.dark .liquid-pill-purple:hover { background: rgb(168 85 247 / 0.3); }

.liquid-pill-violet {
  background: rgb(139 92 246 / 0.15);
  border: 1px solid rgb(167 139 250 / 0.3);
  color: rgb(91 33 182);
}
.liquid-pill-violet:hover { background: rgb(139 92 246 / 0.25); }
.dark .liquid-pill-violet {
  background: rgb(139 92 246 / 0.2);
  border-color: rgb(167 139 250 / 0.2);
  color: rgb(196 181 253);
}
.dark .liquid-pill-violet:hover { background: rgb(139 92 246 / 0.3); }

.liquid-pill-amber {
  background: rgb(245 158 11 / 0.15);
  border: 1px solid rgb(252 211 77 / 0.3);
  color: rgb(146 64 14);
}
.liquid-pill-amber:hover { background: rgb(245 158 11 / 0.25); }
.dark .liquid-pill-amber {
  background: rgb(245 158 11 / 0.2);
  border-color: rgb(252 211 77 / 0.2);
  color: rgb(252 211 77);
}
.dark .liquid-pill-amber:hover { background: rgb(245 158 11 / 0.3); }

.liquid-pill-red { background: rgb(239 68 68 / 0.15); border: 1px solid rgb(252 165 165 / 0.3); color: rgb(153 27 27); }
.liquid-pill-red:hover { background: rgb(239 68 68 / 0.25); }
.dark .liquid-pill-red { background: rgb(239 68 68 / 0.2); border-color: rgb(252 165 165 / 0.2); color: rgb(252 165 165); }
.dark .liquid-pill-red:hover { background: rgb(239 68 68 / 0.3); }

.liquid-pill-indigo { background: rgb(99 102 241 / 0.15); border: 1px solid rgb(165 180 252 / 0.3); color: rgb(55 48 163); }
.liquid-pill-indigo:hover { background: rgb(99 102 241 / 0.25); }
.dark .liquid-pill-indigo { background: rgb(99 102 241 / 0.2); border-color: rgb(165 180 252 / 0.2); color: rgb(165 180 252); }
.dark .liquid-pill-indigo:hover { background: rgb(99 102 241 / 0.3); }

.liquid-pill-cyan { background: rgb(6 182 212 / 0.15); border: 1px solid rgb(103 232 249 / 0.3); color: rgb(21 94 117); }
.liquid-pill-cyan:hover { background: rgb(6 182 212 / 0.25); }
.dark .liquid-pill-cyan { background: rgb(6 182 212 / 0.2); border-color: rgb(103 232 249 / 0.2); color: rgb(103 232 249); }
.dark .liquid-pill-cyan:hover { background: rgb(6 182 212 / 0.3); }

.liquid-pill-teal { background: rgb(20 184 166 / 0.15); border: 1px solid rgb(94 234 212 / 0.3); color: rgb(17 94 89); }
.liquid-pill-teal:hover { background: rgb(20 184 166 / 0.25); }
.dark .liquid-pill-teal { background: rgb(20 184 166 / 0.2); border-color: rgb(94 234 212 / 0.2); color: rgb(94 234 212); }
.dark .liquid-pill-teal:hover { background: rgb(20 184 166 / 0.3); }

.liquid-pill-pink { background: rgb(236 72 153 / 0.15); border: 1px solid rgb(249 168 212 / 0.3); color: rgb(157 23 77); }
.liquid-pill-pink:hover { background: rgb(236 72 153 / 0.25); }
.dark .liquid-pill-pink { background: rgb(236 72 153 / 0.2); border-color: rgb(249 168 212 / 0.2); color: rgb(249 168 212); }
.dark .liquid-pill-pink:hover { background: rgb(236 72 153 / 0.3); }

.liquid-pill-rose { background: rgb(244 63 94 / 0.15); border: 1px solid rgb(253 164 175 / 0.3); color: rgb(159 18 57); }
.liquid-pill-rose:hover { background: rgb(244 63 94 / 0.25); }
.dark .liquid-pill-rose { background: rgb(244 63 94 / 0.2); border-color: rgb(253 164 175 / 0.2); color: rgb(253 164 175); }
.dark .liquid-pill-rose:hover { background: rgb(244 63 94 / 0.3); }

.liquid-pill-green { background: rgb(34 197 94 / 0.15); border: 1px solid rgb(134 239 172 / 0.3); color: rgb(21 128 61); }
.liquid-pill-green:hover { background: rgb(34 197 94 / 0.25); }
.dark .liquid-pill-green { background: rgb(34 197 94 / 0.2); border-color: rgb(134 239 172 / 0.2); color: rgb(134 239 172); }
.dark .liquid-pill-green:hover { background: rgb(34 197 94 / 0.3); }

.liquid-pill-yellow { background: rgb(234 179 8 / 0.15); border: 1px solid rgb(253 224 71 / 0.3); color: rgb(133 77 14); }
.liquid-pill-yellow:hover { background: rgb(234 179 8 / 0.25); }
.dark .liquid-pill-yellow { background: rgb(234 179 8 / 0.2); border-color: rgb(253 224 71 / 0.2); color: rgb(253 224 71); }
.dark .liquid-pill-yellow:hover { background: rgb(234 179 8 / 0.3); }

.liquid-pill-slate { background: rgb(100 116 139 / 0.15); border: 1px solid rgb(148 163 184 / 0.3); color: rgb(51 65 85); }
.liquid-pill-slate:hover { background: rgb(100 116 139 / 0.25); }
.dark .liquid-pill-slate { background: rgb(100 116 139 / 0.2); border-color: rgb(148 163 184 / 0.2); color: rgb(148 163 184); }
.dark .liquid-pill-slate:hover { background: rgb(100 116 139 / 0.3); }

.liquid-pill-gray { background: rgb(107 114 128 / 0.15); border: 1px solid rgb(156 163 175 / 0.3); color: rgb(55 65 81); }
.liquid-pill-gray:hover { background: rgb(107 114 128 / 0.25); }
.dark .liquid-pill-gray { background: rgb(107 114 128 / 0.2); border-color: rgb(156 163 175 / 0.2); color: rgb(156 163 175); }
.dark .liquid-pill-gray:hover { background: rgb(107 114 128 / 0.3); }

.liquid-pill-sky { background: rgb(14 165 233 / 0.15); border: 1px solid rgb(125 211 252 / 0.3); color: rgb(3 105 161); }
.liquid-pill-sky:hover { background: rgb(14 165 233 / 0.25); }
.dark .liquid-pill-sky { background: rgb(14 165 233 / 0.2); border-color: rgb(125 211 252 / 0.2); color: rgb(125 211 252); }
.dark .liquid-pill-sky:hover { background: rgb(14 165 233 / 0.3); }

.liquid-pill-fuchsia { background: rgb(217 70 239 / 0.15); border: 1px solid rgb(232 121 249 / 0.3); color: rgb(134 25 143); }
.liquid-pill-fuchsia:hover { background: rgb(217 70 239 / 0.25); }
.dark .liquid-pill-fuchsia { background: rgb(217 70 239 / 0.2); border-color: rgb(232 121 249 / 0.2); color: rgb(232 121 249); }
.dark .liquid-pill-fuchsia:hover { background: rgb(217 70 239 / 0.3); }

/* Dismiss icon inside pill — inherits pill color at reduced opacity */
.liquid-pill-dismiss {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}
.liquid-pill:hover .liquid-pill-dismiss { opacity: 0.8; }

/* ── Focus ring utilities ────────────────────────────
   Replace verbose inline focus ring Tailwind classes with a single class.
   Uses CSS outline (non-conflicting with box-shadow) for focus indicators.
   ───────────────────────────────────────────────────── */

.focus-ring-blue:focus { outline: none; }
.focus-ring-blue:focus-visible {
  outline: 2px solid var(--color-blue-500);
  outline-offset: 2px;
}

.focus-ring-indigo:focus { outline: none; }
.focus-ring-indigo:focus-visible {
  outline: 2px solid var(--color-indigo-500);
  outline-offset: 2px;
}

.focus-ring-emerald:focus { outline: none; }
.focus-ring-emerald:focus-visible {
  outline: 2px solid var(--color-emerald-500);
  outline-offset: 2px;
}

.focus-ring-purple:focus { outline: none; }
.focus-ring-purple:focus-visible {
  outline: 2px solid var(--color-purple-500);
  outline-offset: 2px;
}

.focus-ring-amber:focus { outline: none; }
.focus-ring-amber:focus-visible {
  outline: 2px solid var(--color-amber-500);
  outline-offset: 2px;
}

/* ── iOS checkbox ────────────────────────────────────
   Shared bare-checkbox styling (indigo accent, glass border).
   Use with Tailwind size overrides: `ios-checkbox h-4 w-4`.
   ───────────────────────────────────────────────────── */

.ios-checkbox {
  border-radius: 0.25rem;
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.4);
  color: var(--color-indigo-600);
}

.ios-checkbox:focus { outline: none; }
.ios-checkbox:focus-visible {
  outline: 2px solid var(--color-indigo-500);
  outline-offset: 2px;
}

.ios-checkbox:disabled {
  opacity: 0.5;
}

:is(.dark) .ios-checkbox {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.06);
}

:is(.dark) .ios-checkbox:checked {
  background-color: var(--color-indigo-500);
}

/* ── Custom scrollbar ──────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

.dark ::-webkit-scrollbar-track {
  background: var(--color-gray-800);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
  background: var(--color-gray-600);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-500);
}
