/* Vendo Conecta · panel de inventario QR
   Usa los tokens y el sistema de botones de main.css. */

:root {
  --forest-dark: #002618;
  --line: rgba(206, 241, 123, 0.14);
  --line-strong: rgba(206, 241, 123, 0.34);
  --danger: #f2a09a;
  --mono: "Space Mono", ui-monospace, monospace;
  --display: "Fredoka", "Trebuchet MS", sans-serif;
}

html { background: var(--ink); }
body {
  min-height: 100dvh;
  background:
    radial-gradient(90% 60% at 12% 0%, rgba(206, 241, 123, 0.08), transparent 62%),
    radial-gradient(70% 50% at 100% 30%, rgba(1, 68, 44, 0.55), transparent 70%),
    var(--ink);
  background-repeat: no-repeat;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(206, 241, 123, 0.16) 0.6px, transparent 0.6px);
  background-size: 26px 26px;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip:focus { transform: translateY(0); }

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(1, 17, 10, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(206, 241, 123, 0.1);
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .logo { flex: none; }
.product {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  background: var(--forest);
  border: 1px solid rgba(206, 241, 123, 0.28);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.topbar__right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
}
.live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(206, 241, 123, 0.5);
  animation: livePulse 2.4s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(206, 241, 123, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(206, 241, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(206, 241, 123, 0); }
}
.who {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mut);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-btn {
  border: 0;
  background: none;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 4px;
  min-height: 44px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.link-btn:hover { color: var(--lime); }

/* ------------------------------------------------------------------ gate */
.acceso { display: grid; place-items: center; min-height: 68dvh; }
.acceso__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(165deg, #022216, #01170f);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 38px 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(206, 241, 123, 0.04) inset;
}
.acceso__card .kicker { margin-bottom: 14px; }
.acceso__card h1 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 12px; }
.acceso__lede { color: var(--mut); font-size: 14.5px; margin-bottom: 26px; }
.acceso__gsi { display: flex; justify-content: center; min-height: 44px; }
.acceso__error { color: var(--danger); font-size: 13px; margin-top: 16px; }
.acceso__note { color: var(--mut); font-size: 13px; margin-top: 22px; }
.acceso__note a { color: var(--lime); }

/* ------------------------------------------------------------------ hero */
.page { padding-bottom: 40px; }
.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 30px;
  align-items: center;
  padding: 48px 0 32px;
}
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--cream);
}
.hero .hl { color: var(--lime); }
.hero .kicker { color: var(--lime); margin: 0 0 16px; }
.hero .lede {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--mut);
  font-size: 15px;
  line-height: 1.6;
}
.supervisor {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(80% 70% at 50% 78%, rgba(206, 241, 123, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(2, 34, 22, 0.9), rgba(0, 38, 24, 0.75));
  overflow: hidden;
}
.supervisor__do {
  width: 148px;
  height: auto;
  order: 2;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.5));
  animation: doFloat 7s ease-in-out infinite;
}
.hero .supervisor__bubble {
  order: 1;
  margin: 0;
  animation: none;
  width: 100%;
  background: var(--lime);
  color: var(--ink);
  border-radius: 16px 16px 16px 6px;
  padding: 12px 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
@keyframes doFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ------------------------------------------------------------------ kpis */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}
.kpi {
  position: relative;
  background: var(--forest-dark);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.kpi:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.kpi--lead {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(206, 241, 123, 0.16);
}
.kpi--lead:hover { transform: translateY(-2px); }
.kpi__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(206, 241, 123, 0.1);
  color: var(--lime);
  margin-bottom: 10px;
}
.kpi--lead .kpi__icon { background: rgba(1, 17, 10, 0.12); color: var(--ink); }
.kpi__icon svg { width: 17px; height: 17px; }
.kpi__label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
}
.kpi--lead .kpi__label { color: rgba(1, 17, 10, 0.66); }
.kpi__value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.kpi--lead .kpi__value { color: var(--ink); }
.kpi__sub {
  font-size: 11.5px;
  color: var(--mut);
  letter-spacing: 0.01em;
}
.kpi--lead .kpi__sub { color: rgba(1, 17, 10, 0.6); }

/* --------------------------------------------------------------- toolbar */
.inventory { display: block; }
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  background: rgba(0, 38, 24, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 14px;
}
.search { position: relative; min-width: 0; }
.search__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--mut);
  pointer-events: none;
}
.search input {
  width: 100%;
  min-height: 44px;
  padding: 11px 16px 11px 42px;
  background: rgba(1, 17, 10, 0.55);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 13.5px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.search input::placeholder { color: rgba(169, 194, 160, 0.7); }
.search input:hover { border-color: var(--line); }
.search input:focus {
  outline: none;
  border-color: var(--line-strong);
  background: rgba(1, 17, 10, 0.8);
}
.search input::-webkit-search-cancel-button { filter: invert(0.7) sepia(0.3) hue-rotate(50deg); }

.chips { display: flex; gap: 6px; min-width: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mut);
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.chip:hover { color: var(--cream); border-color: var(--line-strong); }
.chip.is-active { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.chip__count {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(1, 17, 10, 0.5);
  color: var(--lime);
  border-radius: 999px;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}
.chip.is-active .chip__count { background: rgba(1, 17, 10, 0.14); color: var(--ink); }
.refresh {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mut);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.refresh:hover { color: var(--lime); border-color: var(--line-strong); }
.refresh svg { width: 17px; height: 17px; }
.refresh.is-loading svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 0 0 14px 4px;
}

/* ----------------------------------------------------------------- cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}
.tcard {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(2, 34, 22, 0.95), rgba(1, 24, 15, 0.95));
  animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tcard:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.tcard.is-disponible { border-style: dashed; background: linear-gradient(165deg, rgba(1, 24, 15, 0.85), rgba(1, 17, 10, 0.9)); }
.tcard.is-pausado { opacity: 0.86; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.tcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.serial {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lime);
  background: rgba(206, 241, 123, 0.08);
  border: 1px solid rgba(206, 241, 123, 0.2);
  border-radius: 8px;
  padding: 4px 9px;
}
.tcard.is-disponible .serial { color: var(--mut); border-color: rgba(169, 194, 160, 0.24); background: transparent; }
.state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
}
.state__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state--activo { color: var(--lime); }
.state--activo .state__dot { animation: statePulse 2.2s ease-out infinite; }
.state--pausado { color: var(--cream); }
.state--pausado .state__dot { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.state--disponible .state__dot { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
@keyframes statePulse {
  0% { box-shadow: 0 0 0 0 rgba(206, 241, 123, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(206, 241, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(206, 241, 123, 0); }
}
.tcard__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.tcard__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tcard__qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}
.tcard__qr-wrap:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--lime), 0 8px 20px rgba(0, 0, 0, 0.45);
}
.tcard__qr-img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.tcard__client {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  color: var(--cream);
  overflow-wrap: anywhere;
}
.tcard.is-disponible .tcard__client { color: var(--mut); font-weight: 500; }
.tcard__dest { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tcard__link {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mut);
  text-decoration: underline;
  text-decoration-color: rgba(169, 194, 160, 0.4);
  text-underline-offset: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.tcard__link:hover { color: var(--lime); text-decoration-color: var(--lime); }
.tcard__nourl { font-family: var(--mono); font-size: 12.5px; color: rgba(169, 194, 160, 0.75); flex: 1; }
.copy {
  flex: none;
  min-height: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy:hover { color: var(--lime); border-color: var(--line-strong); }
.tcard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mut);
  padding-top: 12px;
  border-top: 1px dashed rgba(206, 241, 123, 0.12);
}
.scans__num { color: var(--cream); font-size: 14px; font-weight: 700; }
.last { font-size: 11px; }
.tcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.btn--sm {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14.5px;
  text-align: center;
  line-height: 1.15;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn--ghost { background: none; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--lime); color: var(--lime); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  padding: 48px 24px;
  text-align: center;
  margin-top: 4px;
}
.empty__title { font-family: var(--display); font-size: 22px; color: var(--cream); margin-bottom: 6px; }
.empty__text { color: var(--mut); font-size: 13.5px; margin-bottom: 20px; }

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(169, 194, 160, 0.72);
}
.foot a { color: var(--mut); text-decoration: none; }
.foot a:hover { color: var(--lime); }

/* ----------------------------------------------------------------- modal */
.modal {
  width: min(540px, calc(100% - 24px));
  max-height: min(92dvh, 780px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #022216;
  color: var(--cream);
  overflow: auto;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}
.modal[open] { animation: modalIn 0.26s cubic-bezier(0.16, 1, 0.3, 1); }
.modal::backdrop {
  background: rgba(1, 17, 10, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__form { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal__head .kicker { margin-bottom: 8px; }
.modal__head h2 { font-family: var(--display); font-size: 25px; font-weight: 600; line-height: 1.15; }
.modal__close {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mut);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.modal__close:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.modal__desc { color: var(--mut); font-size: 13px; margin-top: -6px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
}
.field__opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: rgba(169, 194, 160, 0.7); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(206, 241, 123, 0.18);
  background: #002618;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 13.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 68px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(169, 194, 160, 0.55); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(206, 241, 123, 0.14);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.field__paste {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cream);
  font-family: var(--display);
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.field__paste:hover { background: rgba(206, 241, 123, 0.08); color: var(--lime); }
.modal__error { color: var(--danger); font-size: 12.5px; line-height: 1.45; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.modal__actions .btn { min-height: 46px; padding: 12px 22px; font-size: 15px; border: 0; cursor: pointer; }

/* ----------------------------------------------------------------- toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 150%);
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast.is-error { background: var(--danger); }

/* --------------------------------------------------------------- mobile */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding: 34px 0 24px; }
  .supervisor {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px;
  }
  .supervisor__bubble { order: 2; flex: 1; border-radius: 16px 16px 6px 16px; }
  .supervisor__do { order: 1; width: 86px; flex: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi--lead { grid-column: span 2; }
  .kpi:nth-child(4) { grid-column: span 2; }
  .toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .search { grid-column: 1; grid-row: 1; }
  .refresh { grid-column: 2; grid-row: 1; }
  .chips { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
}
@media (max-width: 620px) {
  .shell { padding: 0 18px; }
  .topbar__in { min-height: 62px; }
  .who { display: none; }
  .product { font-size: 10px; letter-spacing: 0.12em; padding: 4px 10px; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .lede { font-size: 14px; }
  .kpi { padding: 15px 15px 14px; }
  .kpi__value { font-size: 30px; }
  .chip { padding: 0 12px; font-size: 13px; }
  .tcard { padding: 17px; }
  .tcard__actions { grid-template-columns: 1fr; }
  .tcard__actions .btn:last-child { order: -1; }
  .modal__form { padding: 20px; gap: 14px; }
  .modal__actions { flex-direction: column-reverse; }
  .modal__actions .btn { width: 100%; }
  .acceso__card { padding: 28px 20px; }
  .foot { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .tcard { animation: none; }
}
