/* MeMudo — tema oscuro (portado del diseño v0) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: dark;
  --background: oklch(0.16 0.014 264);
  --foreground: oklch(0.97 0.004 264);
  --card: oklch(0.204 0.016 264);
  --sidebar: oklch(0.185 0.015 264);
  --popover: oklch(0.22 0.016 264);
  --primary: oklch(0.82 0.16 168);
  --primary-foreground: oklch(0.19 0.04 168);
  --muted: oklch(0.25 0.016 264);
  --muted-foreground: oklch(0.68 0.02 264);
  --destructive: oklch(0.68 0.19 22);
  --border: oklch(1 0 0 / 9%);
  --input: oklch(1 0 0 / 12%);
  --ring: oklch(0.82 0.16 168 / 60%);
  --argenprop: oklch(0.78 0.17 148);
  --zonaprop: oklch(0.68 0.2 292);
  --meli: oklch(0.83 0.16 82);
  --radius: 0.875rem;
  --radius-sm: 0.55rem;
  --radius-lg: 1.25rem;
  --font: "Geist", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow-card: 0 18px 40px -24px oklch(0 0 0 / 0.9);
}

html { background: var(--background); }
body {
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100svh;
}
a { color: inherit; }
::selection { background: color-mix(in oklab, var(--primary) 25%, transparent); }
button, input, select { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { from { background-position: -160% 0; } to { background-position: 160% 0; } }
@keyframes pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.topbar-inner { max-width: 1600px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 16px; }
@media (min-width: 768px) { .topbar-inner { padding: 0 24px; } }
.brand { font-size: 24px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.brand span { color: var(--primary); }
.tagline { display: none; font-size: 12px; color: var(--muted-foreground); }
@media (min-width: 1024px) { .tagline { display: block; } }
.tagline-sources { opacity: 0.8; }
.nav-config {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--radius-sm); font-size: 13px;
  color: var(--muted-foreground); text-decoration: none; transition: background 0.15s, color 0.15s;
}
.nav-config:hover { background: var(--muted); color: var(--foreground); }
.nav-config svg { width: 15px; height: 15px; }

/* ---------- layout ---------- */
.layout { max-width: 1600px; margin: 0 auto; display: flex; gap: 24px; padding: 24px 16px 96px; }
@media (min-width: 768px) { .layout { padding: 24px 24px 96px; } }
.sidebar { display: none; width: 320px; flex-shrink: 0; }
@media (min-width: 1024px) { .sidebar { display: block; } .layout { padding-bottom: 24px; } }
.sidebar-inner {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 88px;
  border: 1px solid var(--border); background: var(--sidebar);
  border-radius: var(--radius-lg); padding: 16px;
  max-height: calc(100svh - 104px); overflow-y: auto;
}
.results { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1023px) { .input, .select { font-size: 16px; } .sheet-body .btn-lg { height: 48px; } }

/* ---------- filters ---------- */
.filters { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label { font-size: 13px; font-weight: 500; }
.label-xs { font-size: 12px; }
.hint { font-size: 12px; color: var(--muted-foreground); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.input {
  width: 100%; height: 36px; padding: 0 12px;
  border: 1px solid var(--input); border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--input) 30%, transparent);
  color: var(--foreground); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--muted-foreground); }
.input:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 40%, transparent); }
.input[type=number] { -moz-appearance: textfield; }
.input::-webkit-outer-spin-button, .input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* segmented control (radios) */
.segment { display: flex; padding: 4px; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: color-mix(in oklab, var(--muted) 40%, transparent); }
.segment label { flex: 1; position: relative; }
.segment input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.segment span {
  display: flex; align-items: center; justify-content: center; height: 28px; padding: 0 10px;
  border-radius: calc(var(--radius-sm) - 2px); font-size: 12px; color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.segment input:checked + span { background: color-mix(in oklab, var(--primary) 15%, transparent); color: var(--primary); }
.segment input:focus-visible + span { box-shadow: 0 0 0 2px var(--ring); }
.segment.compact label { flex: 0 0 auto; }
.segment.compact span { width: 36px; padding: 0; }

/* chips (radios, single-select) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--foreground);
  background: transparent; transition: all 0.15s;
}
.chips input:hover + span { background: var(--muted); }
.chips input:checked + span { border-color: color-mix(in oklab, var(--primary) 40%, transparent); background: color-mix(in oklab, var(--primary) 15%, transparent); color: var(--primary); }
.chips input:focus-visible + span { box-shadow: 0 0 0 2px var(--ring); }

/* price row */
.price-row { display: flex; align-items: center; gap: 8px; }
.price-row .input { min-width: 0; }
.price-row .segment { flex-shrink: 0; }

/* sites switches */
.sites { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: color-mix(in oklab, var(--muted) 20%, transparent); }
.site-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { position: relative; width: 32px; height: 18px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--input); transition: background 0.15s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--foreground); transition: transform 0.15s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(14px); background: var(--primary-foreground); }
.switch input:focus-visible + span { box-shadow: 0 0 0 2px var(--ring); }

/* source badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  border: 1px solid; border-radius: 999px; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-argenprop { color: var(--argenprop); border-color: color-mix(in oklab, var(--argenprop) 30%, transparent); background: color-mix(in oklab, var(--argenprop) 15%, transparent); }
.badge-zonaprop { color: var(--zonaprop); border-color: color-mix(in oklab, var(--zonaprop) 30%, transparent); background: color-mix(in oklab, var(--zonaprop) 15%, transparent); }
.badge-mercadolibre { color: var(--meli); border-color: color-mix(in oklab, var(--meli) 30%, transparent); background: color-mix(in oklab, var(--meli) 15%, transparent); }
.badge-blur { backdrop-filter: blur(8px); background: color-mix(in oklab, var(--background) 55%, transparent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 88%, white); }
.btn-lg { height: 44px; font-size: 14px; width: 100%; }
.btn-outline { border-color: var(--border); background: transparent; color: var(--foreground); }
.btn-outline:hover { background: var(--muted); }
.btn-ghost { background: transparent; color: var(--muted-foreground); padding: 0 8px; }
.btn-ghost:hover { background: var(--muted); color: var(--foreground); }
.btn-icon { width: 28px; height: 28px; padding: 0; border-radius: 6px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.separator { height: 1px; background: var(--border); }

/* saved searches */
.save-form { display: flex; gap: 8px; }
.save-form .input { flex: 1; }
.saved-title { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.saved-list { list-style: none; display: flex; flex-direction: column; margin-top: 4px; }
.saved-list li { display: flex; align-items: center; gap: 4px; border-radius: var(--radius-sm); transition: background 0.15s; }
.saved-list li:hover { background: color-mix(in oklab, var(--muted) 50%, transparent); }
.saved-list a { flex: 1; min-width: 0; padding: 8px; font-size: 13px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: color-mix(in oklab, var(--foreground) 90%, transparent); }
.saved-list li:hover a { color: var(--primary); }
.saved-list form { display: flex; margin-right: 4px; }
.saved-list .btn-icon { opacity: 0; }
.saved-list li:hover .btn-icon, .saved-list .btn-icon:focus-visible { opacity: 1; }
.saved-empty { padding: 8px 0; font-size: 12px; color: var(--muted-foreground); }

/* location tags */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tags:empty { display: none; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; height: 28px; padding: 0 4px 0 10px;
  border: 1px solid color-mix(in oklab, var(--primary) 35%, transparent); border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 12%, transparent); color: var(--primary); font-size: 12px; font-weight: 500;
}
.tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-warn { border-color: color-mix(in oklab, var(--meli) 40%, transparent); background: color-mix(in oklab, var(--meli) 12%, transparent); color: var(--meli); }
.tag-x { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; opacity: 0.7; }
.tag-x:hover { opacity: 1; background: color-mix(in oklab, currentColor 15%, transparent); }

/* location autocomplete */
.ac { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50;
  max-height: 280px; overflow-y: auto; list-style: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--popover);
  box-shadow: 0 16px 40px -16px oklch(0 0 0 / 0.8); padding: 4px; display: none;
}
.ac-list.open { display: block; }
.ac-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.ac-item[aria-selected="true"], .ac-item:hover { background: color-mix(in oklab, var(--primary) 12%, transparent); color: var(--primary); }
.ac-item small { color: var(--muted-foreground); font-size: 11px; white-space: nowrap; }
.ac-item[aria-selected="true"] small, .ac-item:hover small { color: inherit; opacity: 0.8; }
.ac-status { padding: 8px 10px; font-size: 12px; color: var(--muted-foreground); }
.ac-badge { display: inline-flex; gap: 4px; align-items: center; }
.ac-badge i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; opacity: 0.3; }
.ac-badge i.on { opacity: 1; }
.ac-badge .ap { background: var(--argenprop); } .ac-badge .zp { background: var(--zonaprop); } .ac-badge .ml { background: var(--meli); }
.loc-ok { color: var(--primary); }
.loc-warn { color: var(--meli); }

/* ---------- results ---------- */
.status-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chips-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px;
  border: 1px solid; border-radius: 999px; font-size: 12px; font-weight: 500;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--primary); border-color: color-mix(in oklab, var(--primary) 25%, transparent); background: color-mix(in oklab, var(--primary) 10%, transparent); }
.chip.ok::before { animation: pulse 2s ease-in-out infinite; }
.chip.fail { color: var(--destructive); border-color: color-mix(in oklab, var(--destructive) 30%, transparent); background: color-mix(in oklab, var(--destructive) 10%, transparent); }
.chip a { display: inline-flex; opacity: 0.7; transition: opacity 0.15s; }
.chip a:hover { opacity: 1; }
.chip a svg { width: 12px; height: 12px; }
.sort { margin-left: auto; }
.select {
  height: 32px; padding: 0 30px 0 10px; border: 1px solid var(--input); border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--input) 30%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a3a8b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none; -webkit-appearance: none; font-size: 12px; cursor: pointer;
}
.select:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 40%, transparent); }
.select option { background: var(--popover); }

.alert {
  display: grid; grid-template-columns: 20px 1fr; gap: 4px 10px; padding: 12px 14px;
  border: 1px solid color-mix(in oklab, var(--destructive) 25%, transparent);
  background: color-mix(in oklab, var(--destructive) 8%, transparent);
  border-radius: var(--radius); font-size: 13px;
}
.alert svg { width: 16px; height: 16px; color: var(--destructive); margin-top: 2px; }
.alert strong { font-weight: 600; }
.alert p { grid-column: 2; color: var(--muted-foreground); text-wrap: pretty; }
.alert a { color: var(--primary); font-weight: 500; text-decoration: none; }
.alert a:hover { text-decoration: underline; text-underline-offset: 4px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1536px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border); background: var(--card); border-radius: var(--radius-lg);
  text-decoration: none; animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--primary) 30%, transparent); box-shadow: var(--shadow-card); }
.card:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: color-mix(in oklab, var(--muted) 50%, transparent); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.card:hover .photo img { transform: scale(1.04); }
.noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; color: var(--muted-foreground); font-size: 12px; }
.noimg svg { width: 20px; height: 20px; }
.photo-top {
  position: absolute; inset: 0 0 auto 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 10px;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--background) 80%, transparent), transparent);
}
.photo-top .arrow { width: 16px; height: 16px; color: color-mix(in oklab, var(--foreground) 70%, transparent); opacity: 0; transition: opacity 0.2s; }
.card:hover .arrow { opacity: 1; }
.age { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; background: color-mix(in oklab, var(--background) 75%, transparent); backdrop-filter: blur(8px); color: var(--foreground); }
.age.fresh { color: var(--primary); }
.body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--primary); font-variant-numeric: tabular-nums; }
.expenses { font-size: 12px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.address { font-size: 13px; font-weight: 500; color: color-mix(in oklab, var(--foreground) 90%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title { font-size: 13px; line-height: 1.55; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.features { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 8px; font-size: 12px; color: var(--muted-foreground); }
.features span { display: inline-flex; align-items: center; gap: 4px; }
.features svg { width: 14px; height: 14px; }

.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 56px 24px; border: 1px dashed var(--border); border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--card) 40%, transparent);
}
.empty-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--muted); color: var(--muted-foreground); margin-bottom: 4px; }
.empty-icon svg { width: 20px; height: 20px; }
.empty h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.empty p { color: var(--muted-foreground); max-width: 480px; text-wrap: pretty; }
.empty p strong { color: var(--foreground); }

/* skeleton (mientras carga una búsqueda) */
.skeleton { display: flex; flex-direction: column; gap: 20px; }
.sk-chip { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in oklab, var(--muted) 40%, transparent); font-size: 12px; color: var(--muted-foreground); animation: pulse 1.6s ease-in-out infinite; }
.sk-chip i { width: 6px; height: 6px; border-radius: 50%; }
.sk-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); position: relative; }
.sk-card::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(100deg, transparent 20%, color-mix(in oklab, var(--foreground) 7%, transparent) 45%, transparent 70%); background-size: 220% 100%; background-repeat: no-repeat; animation: shimmer 1.6s linear infinite; }
.sk { background: var(--muted); border-radius: 6px; }
.sk-photo { aspect-ratio: 4 / 3; border-radius: 0; }
.sk-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; }

/* ---------- mobile filters (bottom sheet) ---------- */
.fab {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 40;
  height: 48px; padding: 0 20px; border-radius: 999px; box-shadow: 0 10px 30px -10px oklch(0 0 0);
}
.fab .count { margin-left: 4px; padding: 2px 6px; border-radius: 999px; font-size: 11px; background: color-mix(in oklab, var(--primary-foreground) 20%, transparent); }
@media (min-width: 1024px) { .fab, .sheet { display: none !important; } }
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet.open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: oklch(0 0 0 / 0.6); backdrop-filter: blur(2px); }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88svh; overflow-y: auto;
  background: var(--sidebar); border: 1px solid var(--border); border-bottom: 0;
  border-radius: 24px 24px 0 0; animation: rise 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--sidebar); font-weight: 600; }
.sheet-body { padding: 16px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- páginas secundarias (config, diag) ---------- */
.config-page { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
.config-page h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.config-page .lead { color: var(--muted-foreground); }
.config-page .panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; }
.config-page .panel.disabled { opacity: 0.55; }
.config-page h2 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.config-page ol, .config-page ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.config-page code { background: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 12px; font-family: "Geist Mono", ui-monospace, monospace; }
.config-page a { color: var(--primary); }
.config-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.config-form label { font-size: 13px; color: var(--muted-foreground); display: flex; flex-direction: column; gap: 4px; }
.config-form input { height: 36px; padding: 0 12px; border: 1px solid var(--input); border-radius: var(--radius-sm); background: color-mix(in oklab, var(--input) 30%, transparent); color: var(--foreground); }
.config-form input:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 40%, transparent); }
.config-form .btn-primary { align-self: flex-start; }
.btn-inline { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--primary); color: var(--primary-foreground) !important; font-weight: 500; text-decoration: none; }
.btn-link { border: 0; background: none; color: var(--destructive); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.flash { border: 1px solid color-mix(in oklab, var(--primary) 35%, transparent); background: color-mix(in oklab, var(--primary) 10%, transparent); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; }
.status-line { font-size: 14px; }
.ok-text { color: var(--primary); }
.fail-text { color: var(--destructive); }
.diag-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.diag-table th, .diag-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.diag-table th { color: var(--muted-foreground); font-weight: 500; }
