/* ==========================================================
   Kompita — estilos (mobile-first, sin dependencias)
   ========================================================== */
:root {
  --bg: #F4F4F8;
  --surface: #FFFFFF;
  --surface-2: #F8F8FB;
  --ink: #16142B;
  --ink-2: #4A4862;
  --muted: #7C7A93;
  --line: #E6E5EF;
  --brand: #3B2BD1;
  --brand-ink: #FFFFFF;
  --brand-soft: #ECEAFE;
  --brand-deep: #2A1DA3;
  --accent: #FFC43D;
  --accent-ink: #231A00;
  --accent-soft: #FFF3D1;
  --ok: #12A26A;
  --ok-soft: #DDF5EA;
  --warn: #B7791F;
  --warn-soft: #FFF1D6;
  --danger: #D8412F;
  --danger-soft: #FDE6E2;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(22, 20, 43, .04), 0 8px 24px rgba(22, 20, 43, .06);
  --shadow-lg: 0 20px 50px rgba(22, 20, 43, .18);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Onest", system-ui, sans-serif;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121124;
    --surface: #1C1A33;
    --surface-2: #232140;
    --ink: #F1F0FA;
    --ink-2: #C9C7DD;
    --muted: #9896B2;
    --line: #2F2C4E;
    --brand: #8D80FF;
    --brand-ink: #120E3A;
    --brand-soft: #2A2656;
    --brand-deep: #B3AAFF;
    --accent-soft: #3A3120;
    --ok-soft: #133A2C;
    --warn-soft: #3A2F18;
    --danger-soft: #3F1D1A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; font-weight: 700; }
h2 { font-size: 1.08rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75em; }
a { color: var(--brand); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.t { font-weight: 650; display: block; overflow: hidden; text-overflow: ellipsis; }
.pre { white-space: pre-line; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
.warn-text { color: var(--warn); }
.danger-text { color: var(--danger) !important; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack > * + * { margin-top: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Íconos ---------- */
.ic { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.ic.xs { width: 15px; height: 15px; }
.ic.big { width: 44px; height: 44px; }
.star-ic { color: var(--accent); fill: var(--accent); }

/* ---------- Estructura ---------- */
.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
}
.wide .app { max-width: 1100px; }
@media (min-width: 620px) {
  body:not(.wide) { background: radial-gradient(1200px 600px at 50% -10%, var(--brand-soft), transparent 70%), var(--bg); }
  body:not(.wide) .app { box-shadow: 0 0 0 1px var(--line); }
}
.appbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.appbar h1 { flex: 1; margin: 0; font: 800 1.2rem/1.2 var(--font-display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 12px 16px 28px; }
.has-nav .app { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px); }
main > .content:first-child { padding-top: 4px; }

.icon-btn {
  width: 42px; height: 42px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 14px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow);
}
.icon-btn:hover { text-decoration: none; }
.icon-btn.soft { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.icon-btn.brand { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }

/* ---------- Navegación inferior ---------- */
.bottomnav {
  position: fixed; left: 50%; bottom: 0; z-index: 40;
  transform: translateX(-50%);
  width: 100%; max-width: 560px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 8px calc(6px + var(--safe-b));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-top: 1px solid var(--line);
}
.wide .bottomnav { max-width: 1100px; }
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 2px; border-radius: 14px;
  color: var(--muted); font-size: .72rem; font-weight: 600;
}
.bottomnav a:hover { text-decoration: none; color: var(--ink); }
.bottomnav a.active { color: var(--brand); }
.bottomnav a.active .ic { stroke-width: 2.3; }
.bottomnav a.fab .ic {
  width: 50px; height: 50px; padding: 13px; margin-top: -24px;
  border-radius: 18px; background: var(--brand); color: var(--brand-ink);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 40%, transparent);
  stroke-width: 2.4;
}
.bottomnav a.fab { color: var(--ink); }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; top: calc(10px + var(--safe-t)); left: 50%; transform: translateX(-50%);
  z-index: 100; width: min(520px, calc(100% - 24px));
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 16px; border-radius: 16px;
  background: var(--ink); color: var(--bg);
  font-weight: 550; font-size: .94rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2);
  transition: opacity .3s, transform .3s;
}
.toast.ok { background: var(--ok); color: #fff; }
.toast.error { background: var(--danger); color: #fff; }
.toast.info { background: var(--brand); color: var(--brand-ink); }
.toast.hide { opacity: 0; transform: translateY(-8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }

/* ---------- Tarjetas y secciones ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.card > :last-child { margin-bottom: 0; }
.card-accent { border: 2px solid var(--brand-soft); box-shadow: none; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 2px 10px; }
.section-title h2 { margin: 0; font: 800 1.12rem/1.2 var(--font-display); }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .ic.big { color: var(--brand); margin: 0 auto 10px; }
.empty .btn { margin-top: 6px; }
.empty.sm { padding: 16px; background: var(--surface-2); border-radius: var(--radius-sm); border: 1px dashed var(--line); margin-bottom: 10px; }
.empty.sm p { margin: 0; }

/* ---------- Formularios ---------- */
.field { display: block; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > span:first-child, .field > legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); padding: 0; }
.field input, .field select, .field textarea, .filters input, .filters select, .inline-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
  font-size: 16px; /* evita zoom en iOS */
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .inline-form input:focus {
  border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span { display: grid; place-items: center; padding: 0 12px; font-weight: 700; color: var(--ink-2); background: var(--line); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--brand); }
.step-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-h h2 { margin: 0; }
.step-n { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font: 800 .9rem var(--font-display); }

.chips-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-radio label { cursor: pointer; }
.chips-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chips-radio span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface-2);
  font-weight: 600; font-size: .9rem; transition: all .15s;
}
.chips-radio .ic { width: 18px; height: 18px; }
.chips-radio input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chips-radio input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--line); border-radius: 16px; margin-bottom: 14px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span, .seg-links a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border-radius: 12px; font-weight: 650; font-size: .9rem; color: var(--ink-2); text-align: center; }
.segmented input:checked + span, .seg-links a.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.seg-links a:hover { text-decoration: none; }

/* Subida de archivos con vista previa */
.upload { display: block; margin-bottom: 12px; cursor: pointer; position: relative; }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.upload-box {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: var(--radius-sm);
  border: 2px dashed color-mix(in srgb, var(--brand) 35%, var(--line));
  background: var(--brand-soft); color: var(--ink-2); font-size: .9rem;
}
.upload-box > .ic { color: var(--brand); width: 28px; height: 28px; }
.upload.has-file .upload-box { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.upload-preview { margin-top: 8px; max-height: 190px; border-radius: 12px; object-fit: cover; width: 100%; }
.upload input:focus-visible + .upload-box { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  border: 0; border-radius: 16px; cursor: pointer;
  font-weight: 700; font-size: .98rem; text-decoration: none !important;
  transition: transform .12s, box-shadow .15s, background .15s, opacity .15s;
  background: var(--surface-2); color: var(--ink);
}
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 28%, transparent); }
.btn-primary:hover { background: var(--brand-deep); color: var(--brand-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px rgba(255, 196, 61, .4); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .88rem; border-radius: 12px; }
.btn-lg { min-height: 56px; font-size: 1.05rem; border-radius: 18px; }
.btn .ic { width: 20px; height: 20px; }
button.link { background: none; border: 0; padding: 0 0 0 8px; color: var(--brand); font-weight: 600; cursor: pointer; }
form.inline { display: inline; }

/* ---------- Alertas ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 12px; font-size: .9rem; }
.alert .ic { width: 20px; height: 20px; margin-top: 1px; }
.alert-ok { background: var(--ok-soft); color: color-mix(in srgb, var(--ok) 70%, var(--ink)); }
.alert-error { background: var(--danger-soft); color: color-mix(in srgb, var(--danger) 75%, var(--ink)); }
.alert-warn { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 75%, var(--ink)); }
.alert-info { background: var(--brand-soft); color: var(--ink-2); }
.alert-info .ic { color: var(--brand); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border: 0; }
.checklist li.ok { color: var(--ink); }
.checklist li.ok::before, .checklist li.bad::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--ok); }
.checklist li.bad::before { background: var(--danger); }
.checklist li .ic { display: none; }

/* ---------- Chips y píldoras ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.st-buscando { background: var(--accent-soft); color: var(--warn); box-shadow: none; }
.st-asignado { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.st-pagado, .st-comprado { background: #E3F0FF; color: #1F5FBF; box-shadow: none; }
.st-en_camino { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.st-entregado { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.st-cancelado { background: var(--surface-2); color: var(--muted); }
.st-disputa { background: var(--danger-soft); color: var(--danger); box-shadow: none; }
@media (prefers-color-scheme: dark) { .st-pagado, .st-comprado { background: #1B2D4D; color: #8AB6FF; } }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.pill-propuesto, .pill-v-pendiente, .pill-e-retenido { background: var(--accent-soft); color: var(--warn); }
.pill-aprobado, .pill-v-aprobado, .pill-e-pagado { background: var(--ok-soft); color: var(--ok); }
.pill-rechazado, .pill-v-rechazado, .pill-e-anulado { background: var(--danger-soft); color: var(--danger); }
.pill-v-sin_enviar { background: var(--surface-2); color: var(--muted); }
.pill-e-disponible { background: var(--brand-soft); color: var(--brand); }

/* ---------- Acceso (login / registro) ---------- */
.auth { padding: calc(28px + var(--safe-t)) 20px 32px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 1.3rem var(--font-display); margin-bottom: 26px; letter-spacing: -.02em; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text small { font: 600 .8rem/1.3 var(--font); letter-spacing: 0; color: var(--brand); margin-top: 2px; }
.mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; transform: rotate(-6deg); box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.mark .ic { transform: rotate(6deg); }
.mark.ok { background: var(--ok); color: #fff; }
.big-mark { width: 64px; height: 64px; border-radius: 22px; margin-bottom: 14px; }
.big-mark .ic { width: 32px; height: 32px; }
.auth h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); line-height: 1.05; margin-bottom: 12px; }
.lead { color: var(--ink-2); font-size: 1.02rem; margin-bottom: 22px; }
.promo { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 16px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.promo:hover { text-decoration: none; }
.promo .muted { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.promo-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .55); flex: none; }

/* ---------- Inicio ---------- */
.hello { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + var(--safe-t)) 16px 6px; font-size: 1.05rem; }
.hero {
  margin: 8px 16px 6px; padding: 22px 20px 20px;
  border-radius: 26px; color: #fff;
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(255, 196, 61, .55), transparent 70%),
    linear-gradient(145deg, #4A3AE8, #2A1DA3 70%);
  position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .08); }
.hero h1 { font-size: clamp(1.7rem, 7vw, 2.1rem); line-height: 1.05; margin-bottom: 8px; }
.hero p { color: rgba(255, 255, 255, .85); font-size: .95rem; max-width: 34ch; }
.hero-cta {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 14px 16px;
  border-radius: 18px; background: var(--accent); color: var(--accent-ink);
  font-weight: 750; box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}
.hero-cta:hover { text-decoration: none; }
.hero-cta span { flex: 1; }
.hero-cta small { font-weight: 600; opacity: .75; white-space: nowrap; }
.hero-sm { margin: 4px 0 14px; text-align: left; }
.hero-sm .big-mark { background: var(--accent); color: var(--accent-ink); }

.olist { display: flex; flex-direction: column; gap: 8px; }
.orow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-weight: 500; }
.orow:hover { text-decoration: none; transform: translateY(-1px); }
.orow .grow { display: flex; flex-direction: column; }
.orow .amount { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.tile { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 15px; background: var(--brand-soft); color: var(--brand); }
.tile.sm { width: 36px; height: 36px; border-radius: 12px; }
.tile.sm .ic { width: 19px; height: 19px; }

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .75rem; font-weight: 650; color: var(--ink-2); text-align: center; }
.cat:hover { text-decoration: none; }
.bubble { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; transition: transform .15s; }
.cat:hover .bubble { transform: translateY(-2px) rotate(-3deg); }
.bubble .ic { width: 26px; height: 26px; }
.cat-alimentos .bubble { background: #FFE9D6; color: #C2570C; }
.cat-articulos .bubble { background: #E3F0FF; color: #1F5FBF; }
.cat-ropa .bubble { background: #FCE4F1; color: #B42A78; }
.cat-tecnologia .bubble { background: var(--brand-soft); color: var(--brand); }
.cat-farmacia .bubble { background: var(--ok-soft); color: var(--ok); }
@media (prefers-color-scheme: dark) {
  .cat-alimentos .bubble { background: #3D2A1B; color: #FFB27A; }
  .cat-articulos .bubble { background: #1B2D4D; color: #8AB6FF; }
  .cat-ropa .bubble { background: #3D1D31; color: #FF8FCB; }
}
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.poi { scroll-snap-align: start; flex: 0 0 168px; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-weight: 500; }
.poi:hover { text-decoration: none; }
.poi .tile { margin-bottom: 6px; }
.poi strong { font-size: .92rem; line-height: 1.25; }

.how { margin-top: 24px; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.how h2 { font: 800 1.12rem var(--font-display); }
.how ol { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.how li { counter-increment: s; position: relative; padding: 0 0 12px 42px; font-size: .92rem; color: var(--ink-2); }
.how li:last-child { padding-bottom: 0; }
.how li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 800 .85rem var(--font-display); }
.how li b { color: var(--ink); }

/* Shopper */
.verified { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: .8rem; }
.verified .ic { width: 16px; height: 16px; }
.verified.sm { padding: 2px 8px; font-size: .7rem; margin-left: 4px; vertical-align: middle; }
.verified.sm .ic { width: 13px; height: 13px; }
.switch-card { padding: 16px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.switch input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 58px; height: 34px; border-radius: 999px; background: var(--line);
  position: relative; cursor: pointer; transition: background .2s;
}
.switch input::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(24px); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mini-stats div { background: var(--surface-2); border-radius: 14px; padding: 10px; text-align: center; }
.mini-stats b { display: block; font: 800 1.15rem var(--font-display); }
.mini-stats span { font-size: .72rem; color: var(--muted); }
.job { border-left: 4px solid var(--accent); }
.job-point { display: inline-flex; align-items: center; gap: 8px; }
.job-desc { margin: 10px 0; color: var(--ink-2); font-size: .93rem; }
.job form { margin-top: 12px; }
.radar { position: relative; width: 74px; height: 74px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: ping 2.4s ease-out infinite; }
.radar::after { animation-delay: 1.2s; }
.radar.sm { width: 54px; height: 54px; margin: 14px auto 0; }
@keyframes ping { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Pedido ---------- */
.update-bar { position: sticky; top: 64px; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 16px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); animation: toast-in .3s; }
.tabs { position: sticky; top: 62px; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; background: var(--line); border-radius: 16px; }
.tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border: 0; border-radius: 12px; background: none; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.tabs button .ic { width: 19px; height: 19px; }
.tabs button.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; display: inline-grid; place-items: center; }

.status-card h2 { font-size: 1.4rem; line-height: 1.15; margin-bottom: 4px; }
.status-card > p { font-size: .92rem; }
.st-card-en_camino { background: linear-gradient(160deg, var(--surface), var(--accent-soft)); }
.st-card-entregado { background: linear-gradient(160deg, var(--surface), var(--ok-soft)); }
.st-card-disputa, .st-card-cancelado { background: var(--surface-2); box-shadow: none; border: 1px solid var(--line); }
.stepper { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.now::before { background: var(--brand); }
.stepper span { position: relative; z-index: 1; width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); }
.stepper li.done span { background: var(--brand); border-color: var(--brand); }
.stepper li.now span { background: var(--accent); border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent); }
.stepper small { font-size: .64rem; line-height: 1.1; color: var(--muted); font-weight: 600; }
.stepper li.now small { color: var(--ink); font-weight: 750; }

.person { display: flex; align-items: center; gap: 12px; padding: 14px; }
.person .t { white-space: nowrap; }
.avatar { width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #7A6CFF); color: #fff; font: 800 1rem var(--font-display); }
.avatar.lg { width: 60px; height: 60px; border-radius: 20px; font-size: 1.25rem; }
.profile-head .chip { margin-top: 6px; }

/* Ticket del código de entrega */
.pin-ticket {
  position: relative; margin-bottom: 14px; padding: 18px 20px;
  border-radius: var(--radius); background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; gap: 6px;
  -webkit-mask: radial-gradient(circle 11px at 0 58%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 58%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 58%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 58%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.pin-ticket > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 2px dashed rgba(35, 26, 0, .3); }
.pin-ticket span { font-weight: 700; }
.pin-ticket strong { font-size: 2.3rem; letter-spacing: .1em; line-height: 1; }
.pin-ticket p { margin: 6px 0 0; opacity: .85; }
.pin-input { width: 100%; margin: 6px 0 14px; padding: 12px; text-align: center; font: 800 2rem var(--font-display); letter-spacing: .5em; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); outline: none; }
.pin-input:focus { border-color: var(--brand); }

/* Productos propuestos */
.items { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.item-rechazado { opacity: .55; }
.item-rechazado .t { text-decoration: line-through; }
.item-aprobado { box-shadow: inset 0 0 0 2px var(--ok-soft), var(--shadow); }
.item .grow { display: flex; flex-direction: column; gap: 4px; }
.thumb { width: 78px; height: 78px; flex: none; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-actions { display: flex; gap: 8px; margin-top: 6px; }
.item-actions .btn { flex: 1; }

/* Boleta con borde perforado */
.receipt {
  position: relative; margin: 18px 0 14px; padding: 20px 20px 24px;
  background: var(--surface); box-shadow: var(--shadow);
  border-radius: 6px 6px 0 0;
  --perf: radial-gradient(circle at 8px 0, transparent 7px, var(--surface) 7.5px);
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background: var(--perf) 0 0 / 16px 12px repeat-x;
  filter: drop-shadow(0 4px 3px rgba(22, 20, 43, .05));
}
.receipt-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px dashed var(--line); }
.receipt-head b { flex: 1; font: 800 1.05rem var(--font-display); }
.receipt-head .ic { color: var(--brand); }
.receipt dl { margin: 0 0 12px; }
.receipt dl div { display: flex; justify-content: space-between; padding: 5px 0; font-size: .93rem; }
.receipt dt { color: var(--ink-2); }
.receipt dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.receipt dl .total { margin-top: 8px; padding-top: 12px; border-top: 2px dashed var(--line); font: 800 1.25rem var(--font-display); }
.receipt dl .total dt { color: var(--ink); }
.receipt form { margin-bottom: 8px; }

.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(96px, 36%) 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.kv > div:last-child { border: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* Estrellas */
.stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; margin: 6px 0 14px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { cursor: pointer; color: var(--line); transition: transform .12s, color .12s; }
.stars label .ic { width: 40px; height: 40px; fill: currentColor; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--accent); }
.stars label:active { transform: scale(.9); }
.stars input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 8px; }
.stars-static { display: flex; gap: 2px; margin: 4px 0; color: var(--line); }
.stars-static .ic { fill: currentColor; }
.stars-static .ic.on { color: var(--accent); }

.stack-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
details.card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 650; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
details.card[open] > summary { margin-bottom: 14px; }
details.card[open] > summary::after { transform: rotate(-135deg); }
.dispute > summary { color: var(--danger); }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; min-height: calc(100dvh - 250px); }
.chat-safe { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 8px 12px; margin-bottom: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--ink-2); text-align: center; }
.chat-list { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.msg { max-width: 82%; align-self: flex-start; padding: 9px 12px 6px; border-radius: 18px 18px 18px 6px; background: var(--surface); box-shadow: var(--shadow); font-size: .95rem; overflow-wrap: anywhere; animation: msg-in .2s ease-out; }
.msg.mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--brand); color: var(--brand-ink); }
.msg.sys { align-self: center; max-width: 92%; background: transparent; box-shadow: none; color: var(--muted); font-size: .8rem; text-align: center; padding: 4px 8px; }
.msg-who { display: block; font-size: .72rem; font-weight: 700; color: var(--brand); margin-bottom: 2px; }
.msg-body { white-space: pre-wrap; }
.msg-time { display: block; text-align: right; font-size: .68rem; opacity: .65; margin-top: 2px; }
.msg-img { display: block; margin: 2px -4px 4px; border-radius: 12px; overflow: hidden; }
.msg-img img { max-height: 260px; width: 100%; object-fit: cover; }
.msg.sending { opacity: .6; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.chat-form {
  position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 6px);
  display: flex; align-items: center; gap: 8px; padding: 8px;
  border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg);
}
.chat-form input[name="body"] { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 10px 4px; font-size: 16px; }
.chat-form .icon-btn { cursor: pointer; }
.chat-closed { padding: 14px; }

/* ---------- Videollamada ---------- */
.call { position: fixed; inset: 0; z-index: 200; background: #0B0A18; color: #fff; display: flex; flex-direction: column; }
.call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: radial-gradient(circle at 50% 35%, #2A1DA3, #0B0A18 70%); }
.call-local { position: absolute; right: 14px; top: calc(70px + var(--safe-t)); width: 108px; height: 150px; object-fit: cover; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .7); background: #222; z-index: 2; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.call-local.mirror { transform: scaleX(-1); }
.call-top { position: relative; z-index: 2; padding: calc(18px + var(--safe-t)) 20px 30px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); display: flex; flex-direction: column; }
.call-top b { font: 800 1.3rem var(--font-display); }
.call-status { opacity: .8; font-size: .9rem; }
.call-row { display: flex; justify-content: center; gap: 18px; }
.call-live, .call-incoming { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 30px 20px calc(28px + var(--safe-b)); background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.call-incoming { text-align: center; }
.call-incoming p { font: 800 1.2rem var(--font-display); margin-bottom: 18px; }
.call.ringing .call-live { display: none; }
.round { width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .12s, background .15s; }
.round:active { transform: scale(.94); }
.round.off { background: #fff; color: #0B0A18; }
.round.danger { background: var(--danger); }
.round.ok { background: var(--ok); animation: ring 1.2s ease-in-out infinite; }
.round .ic { width: 26px; height: 26px; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(18, 162, 106, .6); } 50% { box-shadow: 0 0 0 14px rgba(18, 162, 106, 0); } }

/* ---------- Perfil, seguridad y verificación ---------- */
.menu { padding: 6px; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 12px; border: 0; border-radius: 14px; background: none; color: var(--ink); font-weight: 600; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--surface-2); text-decoration: none; }
.menu-item .ic { color: var(--brand); }
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.feature h3 { margin-bottom: 4px; }
.feature p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.verified-card { text-align: center; }
.verified-card .big-mark { margin: 0 auto 14px; }
.vsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vsteps li { display: flex; gap: 12px; align-items: center; }
.vsteps li div { display: flex; flex-direction: column; }
.vsteps .n { width: 32px; height: 32px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font: 800 .9rem var(--font-display); }
.vsteps li.ok .n { background: var(--ok); color: #fff; }
.vsteps .n .ic { width: 18px; height: 18px; }

/* Billetera */
.wallet-card {
  padding: 22px 20px; margin-bottom: 14px; border-radius: 26px; color: #fff;
  background: radial-gradient(240px 140px at 100% 0%, rgba(255, 196, 61, .45), transparent 70%), linear-gradient(145deg, #4A3AE8, #1E1580);
  box-shadow: 0 16px 36px rgba(59, 43, 209, .3);
}
.wallet-card > .small { opacity: .8; }
.wallet-card > strong { display: block; font-size: 2.4rem; line-height: 1.1; margin: 4px 0 16px; }
.wallet-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wallet-row div { background: rgba(255, 255, 255, .12); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; }
.wallet-row .small { opacity: .8; font-size: .72rem; }

/* ---------- Administración ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat b { font: 800 1.35rem var(--font-display); }
.stat b small { font-size: .8rem; color: var(--muted); }
.stat.accent { background: var(--accent); color: var(--accent-ink); }
.stat.accent span { color: inherit; opacity: .75; }
.cols { display: grid; gap: 0 20px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.table-wrap { overflow-x: auto; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.off td { opacity: .5; }
.dot-on { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); vertical-align: middle; }
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.doc { margin: 0; }
.doc img, .doc-empty { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.doc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: .85rem; border: 1px dashed var(--line); }
.doc figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters input { flex: 1 1 140px; width: auto; padding: 9px 12px; }
.filters select { flex: 1 1 180px; width: auto; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.payouts { display: grid; gap: 12px; }
@media (min-width: 760px) { .payouts { grid-template-columns: 1fr 1fr; } }
.payout { margin: 0; }
.payout .display { font-size: 1.3rem; }
.inline-form { display: flex; gap: 8px; margin-top: 12px; }
.inline-form input { flex: 1; min-width: 0; padding: 9px 12px; }

/* ---------- Accesibilidad y movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 360px) {
  .cats { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .stepper small { font-size: .58rem; }
  .pin-ticket strong { font-size: 1.9rem; }
}

/* ---------- Ilustraciones, logo y avatares (v1.1) ---------- */
.logo-img { width: 46px; height: 46px; flex: none; border-radius: 15px; transform: rotate(-6deg); box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
img.avatar { object-fit: cover; background: var(--brand-soft); padding: 0; }
.avatar.sm { width: 38px; height: 38px; border-radius: 13px; }
.hello-me { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 400; }
.hello-me:hover { text-decoration: none; }

.hero { min-height: 250px; }
.hero h1, .hero > p { position: relative; z-index: 1; max-width: 60%; }
.hero-art { position: absolute; right: -8px; top: 10px; width: 46%; max-width: 210px; height: auto; z-index: 0; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
@media (min-width: 480px) { .hero h1, .hero > p { max-width: 62%; } }

.auth-art { margin: -6px 0 18px; padding: 14px 10px 4px; border-radius: 26px; display: grid; place-items: center;
  background: radial-gradient(220px 140px at 90% 0%, rgba(255, 196, 61, .5), transparent 70%), linear-gradient(145deg, #4A3AE8, #2A1DA3 70%); }
.auth-art img { width: min(240px, 72%); height: auto; }

.how-art li { display: flex; align-items: center; gap: 12px; padding: 0 0 12px; }
.how-art li::before { display: none; }
.how-art li img { width: 52px; height: 52px; flex: none; border-radius: 17px; }

.card-art { display: block; width: 150px; height: auto; margin: 0 auto 8px; }
.art-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.art-banner img { width: 110px; height: auto; flex: none; }
.art-banner p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.empty-art { width: 150px; height: auto; margin: 0 auto 8px; }
.status-art { display: block; width: 150px; height: auto; margin: 12px auto 0; }

.avatar-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.avatar-pick label { cursor: pointer; display: grid; place-items: center; }
.avatar-pick input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-pick img { width: 100%; max-width: 64px; height: auto; border-radius: 50%; border: 3px solid transparent; transition: transform .15s, border-color .15s; }
.avatar-pick label:hover img { transform: scale(1.05); }
.avatar-pick input:checked + img { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.avatar-pick input:focus-visible + img { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }

/* ---------- Modalidad: express o ruta programada (v1.2) ---------- */
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mode-pick label { cursor: pointer; display: flex; }
.mode-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card { position: relative; flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface-2); transition: border-color .15s, background .15s, box-shadow .15s; }
.mode-card b { font-family: var(--font-display); font-size: 1.02rem; }
.mode-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 4px; }
.mode-price { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .85rem; color: var(--ink); }
.mode-tag { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 800; }
.mode-pick input:checked + .mode-card { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.mode-pick input:focus-visible + .mode-card { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }
@media (max-width: 360px) { .mode-pick { grid-template-columns: 1fr; } }
.route-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--warn); font-size: .76rem; font-weight: 700; }
.route-chip .ic { width: 14px; height: 14px; }
.route-card { border-left: 4px solid var(--brand); }
.route-card .route-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.route-card details { margin: 0 0 12px; font-size: .9rem; }
.route-card details summary { cursor: pointer; color: var(--brand); font-weight: 650; }
.route-card details p { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--line); color: var(--ink-2); }
.stops { counter-reset: stop; }
.stops .orow { position: relative; }
.stop-n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font: 800 .85rem var(--font-display); }
.route-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 2px 8px; }
.route-head b { font-family: var(--font-display); }
.route-promo { margin: 4px 0 6px; background: var(--brand-soft); color: var(--ink); }
.route-promo .promo-ic { background: var(--surface); color: var(--brand); }
.route-promo .muted { color: var(--muted); }
