/* Cotizador DyP — misma identidad que DyPGestion: grafito, grilla arquitectonica, naranjo de acento.
   El amarillo se reserva para los danos marcados en el vehiculo. */
:root {
  --bg: #2A313A;
  --bg-deep: #232931;
  --surface: #333C48;
  --surface-2: #3B4451;
  --input: #232931;
  --line: #4A5565;
  --line-soft: rgba(74, 85, 101, .55);
  --text: #FFFFFF;
  --text-2: #D7DAE0;
  --silver: #B8BCC6;
  --muted: #8A93A3;
  --accent: #F16522;
  --accent-2: #D9541C;
  --accent-soft: rgba(241, 101, 34, .14);
  --damage: #FFC928;
  --damage-ink: #2A2100;
  --ok: #34D399;
  --ok-soft: rgba(52, 211, 153, .14);
  --bad: #F87171;
  --bad-soft: rgba(248, 113, 113, .14);
  --warn: #FBBF24;
  --radius: 16px;
  --radius-sm: 11px;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(74, 85, 101, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 85, 101, .16) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
body.sheet-open { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* ---------- shell ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: rgba(35, 41, 49, .86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.topbar .brand img { height: 34px; width: auto; border-radius: 6px; display: block; }
.topbar .brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.topbar .brand-text b { font-family: var(--display); font-size: 19px; letter-spacing: .04em; text-transform: uppercase; }
.topbar .brand-text span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.shop-chip {
  display: flex; align-items: center; gap: 8px; max-width: 46vw;
  padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--silver); text-decoration: none;
}
.shop-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: contain; background: #fff; }
.shop-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

main.view {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 18px 16px calc(var(--nav-h) + var(--safe-b) + 112px);
  animation: viewIn .45s var(--ease);
}
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(35, 41, 49, .94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft);
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em;
  transition: color .2s;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--text); }
.tabbar a.active::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 36px; height: 3px; margin-left: -18px;
  border-radius: 0 0 3px 3px; background: var(--accent); box-shadow: 0 0 14px rgba(241, 101, 34, .8);
}
.tabbar a.active svg { color: var(--accent); }
.tabbar .badge-dot {
  position: absolute; top: 9px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}

@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 248px 1fr; }
  .rail {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
    padding: 22px 16px; background: rgba(51, 60, 72, .7); border-right: 1px solid var(--line);
  }
  .rail .rail-logo img { width: 100%; height: auto; border-radius: 12px; display: block; margin-bottom: 6px; }
  .rail .rail-sub { font-family: var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); font-size: 13px; margin: 0 0 18px 4px; }
  .rail a.nav {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
    text-decoration: none; color: var(--silver); font-weight: 600; transition: background .2s, color .2s;
  }
  .rail a.nav svg { width: 21px; height: 21px; }
  .rail a.nav:hover { background: var(--surface-2); color: var(--text); }
  .rail a.nav.active { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(241, 101, 34, .9); }
  .rail .rail-foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 0 6px; }
  .tabbar { display: none; }
  .topbar { display: none; }
  main.view { padding: 36px 40px 140px; }
}
@media (max-width: 1023px) { .rail { display: none; } }

/* ---------- tipografia de pagina ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 20px; }
.eyebrow { font-family: var(--display); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); font-size: 13px; }
.page-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(36px, 10vw, 64px); line-height: .92; letter-spacing: -.005em; margin: 4px 0 0;
}
.page-title .stroke { color: transparent; -webkit-text-stroke: 1.2px var(--silver); }
.page-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- tarjetas / secciones ---------- */
.card {
  position: relative; background: rgba(51, 60, 72, .92); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 16px; margin-bottom: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -28px rgba(0, 0, 0, .7);
}
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec-num {
  font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px var(--accent); min-width: 36px;
}
.sec-title { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.sec-hint { color: var(--muted); font-size: 13px; line-height: 1.3; }
.sec-head .grow { flex: 1; min-width: 0; }

/* ---------- campos ---------- */
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: 1fr 1fr; }
.span2 { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .g4 { grid-template-columns: repeat(4, 1fr); }
  .g4 .span2 { grid-column: span 2; }
}
.field { position: relative; display: block; min-width: 0; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: var(--input); color: var(--text);
  border-radius: var(--radius-sm); padding: 22px 13px 8px; font-size: 16px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.4; }
.field label {
  position: absolute; left: 14px; top: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); pointer-events: none; transition: color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #1F242B; }
.field:focus-within label { color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: #5E6878; }
.field .req { color: var(--accent); }
.field.invalid input, .field.invalid textarea { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.field .msg { display: block; font-size: 12.5px; color: var(--bad); margin-top: 5px; }
.field .hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field.plate input { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; padding-top: 18px; padding-bottom: 6px; }
.field .prefix { position: absolute; left: 13px; top: 29px; color: var(--muted); font-weight: 600; }
.field.money input { padding-left: 28px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 18px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s;
  user-select: none; -webkit-user-select: none; white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(.97); }
.btn:hover { border-color: #5E6A7C; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 26px -12px rgba(241, 101, 34, .95); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ok { background: #10B981; border-color: #10B981; color: #04241A; box-shadow: 0 10px 26px -12px rgba(16, 185, 129, .9); }
.btn.danger { color: var(--bad); border-color: rgba(248, 113, 113, .45); background: transparent; }
.btn.ghost { background: transparent; }
.btn.wa { background: #1FAF5A; border-color: #1FAF5A; color: #fff; }
.btn.block { width: 100%; }
.btn.lg { min-height: 54px; font-size: 16.5px; border-radius: 14px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.icon { width: 44px; padding: 0; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.linkbtn { background: none; border: 0; color: var(--silver); font-size: 13.5px; font-weight: 600; padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.linkbtn:hover { color: var(--text); }

/* ---------- vehiculo ---------- */
/* Tipo de vehiculo: tarjetas con la foto lateral. */
.vtypes {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(128px, 1fr); gap: 8px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -16px 4px; padding: 2px 16px 10px;
}
.vtypes::-webkit-scrollbar { display: none; }
.vtype {
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  padding: 10px 10px 9px; border-radius: 14px; border: 1px solid var(--line); text-align: left;
  background: linear-gradient(180deg, #2B323C, var(--bg-deep)); color: var(--silver);
  transition: border-color .25s, background .25s, color .25s, transform .2s var(--ease), box-shadow .3s;
}
.vtype:active { transform: scale(.97); }
@media (hover: hover) { .vtype:hover { border-color: #5E6A7C; color: var(--text); } }
.vtype .vt-img { height: 46px; display: flex; align-items: flex-end; justify-content: center; }
.vtype .vt-img img {
  width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block;
  filter: grayscale(1) brightness(.78) drop-shadow(0 6px 5px rgba(0, 0, 0, .45));
  transition: filter .35s, transform .45s var(--ease);
}
.vtype .vt-name { font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.vtype .vt-name::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; transition: all .25s; }
.vtype[aria-checked="true"] {
  border-color: var(--accent); color: var(--text);
  background: radial-gradient(120% 90% at 50% 0%, rgba(241, 101, 34, .22), transparent 70%), linear-gradient(180deg, #343D49, #262D36);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 14px 30px -18px rgba(241, 101, 34, .9);
}
.vtype[aria-checked="true"] .vt-img img { filter: grayscale(0) brightness(1.04) drop-shadow(0 8px 6px rgba(0, 0, 0, .5)); transform: translateX(3px) scale(1.06); }
.vtype[aria-checked="true"] .vt-name::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px rgba(241, 101, 34, .9); }
@media (min-width: 720px) { .vtypes { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0 0 4px; padding: 2px 0 10px; } .vtype .vt-img { height: 58px; } }

/* Aviso antes de elegir el tipo. */
.stage-empty {
  display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: 14px; margin-top: 4px;
  border: 1.5px dashed #5E6A7C; color: var(--silver); font-size: 14.5px; line-height: 1.35;
}
.stage-empty svg { width: 28px; height: 28px; flex: none; color: var(--accent); }
.need-type .vtype { animation: nudge .6s var(--ease); }
@keyframes nudge { 30% { transform: translateY(-4px); } 60% { transform: translateY(1px); } }

.views-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin: 8px -2px 0; scrollbar-width: none;
}
.views-tabs::-webkit-scrollbar { display: none; }
.views-tabs button {
  flex: none; display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
  background: var(--bg-deep); border: 1px solid var(--line); color: var(--silver); font-size: 13.5px; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.views-tabs button.active { background: var(--text); color: var(--bg-deep); border-color: var(--text); }
.views-tabs .cnt {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; font-size: 11.5px; line-height: 19px; text-align: center;
  background: var(--damage); color: var(--damage-ink); font-weight: 700;
}
.views-tabs .cnt:empty { display: none; }

/* Escenario tipo estudio fotografico: foco de luz arriba, piso y sombra bajo el auto. */
.stage {
  position: relative; border-radius: 16px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 55% at 50% 38%, rgba(214, 222, 235, .13), transparent 72%),
    linear-gradient(180deg, #2C333D 0%, #232930 58%, #1B2026 100%);
  border: 1px solid var(--line);
}
.stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(122, 134, 152, .09) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(122, 134, 152, .09) 1px, transparent 1px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%);
}
.views-track {
  display: flex; align-items: flex-start; transition: height .35s var(--ease); overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.views-track::-webkit-scrollbar { display: none; }
.view-panel {
  flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; padding: 38px 10px 34px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; position: relative;
}
.view-panel .vlabel { position: absolute; display: none; }
.view-panel .car-svg {
  width: 100%; max-width: 640px; height: auto; display: block; overflow: visible;
  filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .5)) drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
  animation: carIn .6s var(--ease) both;
}
.view-panel[data-view="front"] .car-svg, .view-panel[data-view="rear"] .car-svg { max-width: 300px; }
.view-panel[data-view="top"] .car-svg { width: auto; height: min(60vh, 460px); max-width: 100%; }
@keyframes carIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.view-panel[data-view="left"] .car-svg { animation-name: carInL; }
.view-panel[data-view="right"] .car-svg { animation-name: carInR; }
@keyframes carInL { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes carInR { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.stage-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.stage-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.stage-dots i.on { width: 20px; background: var(--accent); }
.stage-hint { position: absolute; top: 12px; left: 14px; right: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; pointer-events: none; z-index: 1; }
.stage-type { position: absolute; top: 9px; right: 12px; z-index: 1; pointer-events: none; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .22); }

/* Zonas sobre la foto: se recortan con la silueta (mascara) y se tinen en modo "color",
   que conserva las luces y sombras de la carroceria. */
.car-zones { mix-blend-mode: color; }
.car-zone { fill: rgba(255, 201, 40, 0); cursor: pointer; transition: fill .3s var(--ease); -webkit-tap-highlight-color: transparent; outline: none; }
@media (hover: hover) { .car-zone:not(.on):hover { fill: rgba(255, 201, 40, .38); } }
.car-zone.on { fill: rgba(255, 201, 40, 1); }
.car-zone.passive { pointer-events: none; cursor: default; }
.car-zone:focus-visible { fill: rgba(241, 101, 34, .55); }
.car-zone.on:focus-visible { fill: #FF9A2E; }
.car-zone.pop { animation: zonePop .55s var(--ease); }
@keyframes zonePop { 0% { fill: rgba(255, 255, 255, .9); } 100% { } }
.readonly .car-zone { cursor: default; pointer-events: none; }
.car-sheet { width: 100%; height: auto; display: block; }
.car-sheet .sheet-label { font: 700 16px var(--display); letter-spacing: .2em; fill: var(--muted); }

@media (min-width: 1024px) {
  .views-tabs, .stage-dots, .stage-hint { display: none; }
  .views-track { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "left left top" "right right top" "front rear top"; overflow: visible; gap: 0; }
  .view-panel { padding: 34px 18px 22px; min-height: 0; border-right: 1px dashed var(--line-soft); border-bottom: 1px dashed var(--line-soft); }
  .view-panel[data-view="left"] { grid-area: left; } .view-panel[data-view="right"] { grid-area: right; }
  .view-panel[data-view="front"] { grid-area: front; border-bottom: 0; } .view-panel[data-view="rear"] { grid-area: rear; border-bottom: 0; }
  .view-panel[data-view="top"] { grid-area: top; border-right: 0; border-bottom: 0; }
  .view-panel .vlabel { display: block; top: 11px; left: 15px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .view-panel[data-view="top"] .car-svg { width: 100%; height: auto; max-width: 250px; }
  .view-panel[data-view="front"] .car-svg, .view-panel[data-view="rear"] .car-svg { max-width: 250px; }
}

/* Listado plegable de zonas, agrupado por lado del vehiculo. */
.zacc { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-deep); overflow: hidden; }
.zacc-head {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px;
  padding: 12px 14px; min-height: 60px; border: 0; background: transparent; text-align: left; color: var(--text);
}
.zacc-num {
  grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 22px; background: #2B323C; color: var(--muted); border: 1px solid var(--line);
  transition: background .3s, color .3s, border-color .3s;
}
.zacc.has .zacc-num { background: var(--damage); color: var(--damage-ink); border-color: var(--damage); box-shadow: 0 0 18px -4px rgba(255, 201, 40, .8); }
.zacc-title { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; }
.zacc-sum { grid-column: 2; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.zacc.has .zacc-sum { color: #F3E3B5; }
.zacc-chev { grid-row: 1 / span 2; grid-column: 3; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--silver); transition: transform .35s var(--ease), background .2s; }
.zacc-chev svg { width: 20px; height: 20px; }
.zacc.open .zacc-chev { transform: rotate(180deg); background: #2B323C; }
.zacc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.zacc.open .zacc-body { grid-template-rows: 1fr; }
.zacc-inner { min-height: 0; overflow: hidden; }
.zacc-content { padding: 2px 14px 14px; border-top: 1px solid var(--line-soft); }
.zgroup { padding-top: 12px; }
.zgroup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.zgroup-title { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.zgroup-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.zgroup-n b { color: var(--damage); }
.chips.zchips { display: grid; grid-template-columns: 1fr 1fr; }
.zchips .chip { justify-content: flex-start; min-width: 0; border-radius: 14px; text-align: left; line-height: 1.2; }
.zacc-foot { display: flex; justify-content: flex-end; padding-top: 6px; }
.zacc.open .zgroup { animation: groupIn .45s var(--ease) both; }
.zacc.open .zgroup:nth-child(2) { animation-delay: .04s; } .zacc.open .zgroup:nth-child(3) { animation-delay: .08s; }
.zacc.open .zgroup:nth-child(4) { animation-delay: .12s; } .zacc.open .zgroup:nth-child(5) { animation-delay: .16s; }
@keyframes groupIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #2B323C; color: var(--silver);
  font-size: 13.5px; font-weight: 600; line-height: 1.15; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.chip:active { transform: scale(.96); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; transition: all .2s; }
.chip.on { background: rgba(255, 201, 40, .14); border-color: rgba(255, 201, 40, .7); color: #FFE39A; }
.chip.on .dot { background: var(--damage); border-color: var(--damage); box-shadow: 0 0 10px rgba(255, 201, 40, .9); }
.chip.static { cursor: default; }

/* Marca: sugerencias propias (reemplaza al datalist nativo, que no deja agregar). */
.combo { position: relative; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 25; max-height: 264px; overflow-y: auto;
  background: #2B323C; border: 1px solid #5E6A7C; border-radius: 12px; padding: 5px;
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, .8); animation: viewIn .18s var(--ease);
}
.combo-list[hidden] { display: none; }
.combo-opt {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 11px; border: 0; border-radius: 9px;
  background: transparent; color: var(--text-2); text-align: left; font-size: 15px;
}
.combo-opt mark { background: none; color: var(--accent); font-weight: 700; }
.combo-opt.active, .combo-opt:hover { background: #3B4451; color: #fff; }
.combo-opt .tag { margin-left: auto; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.combo-opt.add { color: var(--accent); font-weight: 600; border-top: 1px solid var(--line-soft); border-radius: 0 0 9px 9px; margin-top: 3px; }
.combo-opt.add:first-child { border-top: 0; margin-top: 0; border-radius: 9px; }
.combo-opt.add svg { width: 18px; height: 18px; flex: none; }
.combo-empty { padding: 10px 11px; color: var(--muted); font-size: 13.5px; }

/* ---------- lineas de descripcion ---------- */
.lines { display: flex; flex-direction: column; gap: 8px; counter-reset: ln; }
.line-row { display: flex; align-items: flex-start; gap: 8px; animation: rowIn .3s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.line-row.out { animation: rowOut .22s var(--ease) forwards; }
@keyframes rowOut { to { opacity: 0; transform: translateX(30px); } }
.line-n {
  flex: none; width: 30px; height: 46px; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--accent);
}
.line-row textarea {
  flex: 1; min-width: 0; min-height: 46px; max-height: 220px; resize: none; overflow: hidden;
  border: 1px solid var(--line); background: var(--input); border-radius: var(--radius-sm); padding: 12px 13px;
  font-size: 16px; line-height: 1.35; outline: none; transition: border-color .2s, box-shadow .2s;
}
.line-row textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.line-del { flex: none; width: 44px; height: 46px; border-radius: 11px; border: 1px solid transparent; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.line-del:hover { color: var(--bad); border-color: rgba(248, 113, 113, .4); }
.line-del svg { width: 19px; height: 19px; }
.add-line {
  width: 100%; margin-top: 10px; min-height: 50px; border-radius: 12px; border: 1.5px dashed #5E6A7C;
  background: transparent; color: var(--silver); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .2s, color .2s, background .2s;
}
.add-line:hover, .add-line:active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.add-line svg { width: 20px; height: 20px; }
.suggest {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 201, 40, .07); border: 1px solid rgba(255, 201, 40, .25); font-size: 13.5px; color: #F3E3B5;
}
.suggest .grow { flex: 1; }

/* ---------- montos ---------- */
.money-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .money-grid { grid-template-columns: 1fr 1fr; } .money-grid .span2 { grid-column: 1 / -1; } }
.ledger { margin-top: 16px; border-radius: 14px; background: var(--bg-deep); border: 1px solid var(--line); overflow: hidden; }
.ledger .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px dashed var(--line-soft); font-size: 15px; color: var(--silver); }
.ledger .row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger .row.total { border-bottom: 0; background: linear-gradient(90deg, rgba(241, 101, 34, .2), rgba(241, 101, 34, .04)); color: var(--text); padding: 15px 16px; }
.ledger .row.total span { font-family: var(--display); font-size: 20px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.ledger .row.total b { font-family: var(--display); font-size: 32px; font-weight: 700; }
.ledger .row.minus b { color: var(--ok); }
.ledger .row.balance { border-top: 1px solid var(--line); border-bottom: 0; color: var(--text); }
.ledger .row.balance span { font-weight: 700; }
.ledger .row.balance b { font-size: 21px; font-weight: 700; color: #FFD8C5; }
.ledger .err { padding: 10px 16px; color: var(--bad); font-size: 13.5px; background: var(--bad-soft); }

/* ---------- barra de accion fija ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; z-index: 35;
  bottom: calc(var(--nav-h) + var(--safe-b));
  padding: 10px 12px; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, rgba(42, 49, 58, 0), rgba(35, 41, 49, .96) 26%);
}
.actionbar .sum { flex: 1; min-width: 0; padding-left: 4px; }
.actionbar .sum small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.actionbar .sum b { display: block; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actionbar .btn { flex: none; }
@media (min-width: 1024px) {
  .actionbar { left: 248px; bottom: 0; padding: 14px 40px 18px; }
  .actionbar-inner { max-width: 1100px; }
}

/* ---------- listado ---------- */
.searchbox { position: relative; margin-bottom: 12px; }
.searchbox input {
  width: 100%; height: 52px; padding: 0 44px 0 46px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--input); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.searchbox input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.searchbox > svg { position: absolute; left: 15px; top: 15px; width: 22px; height: 22px; color: var(--muted); }
.searchbox .clear { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; }
.filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 14px; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-deep); color: var(--silver); font-weight: 600; font-size: 14px;
}
.filters button em { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters button.active { background: var(--text); color: var(--bg-deep); border-color: var(--text); }
.filters button.active em { color: #4A5565; }

.qlist { display: flex; flex-direction: column; gap: 10px; }
.qrow {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; text-align: left; width: 100%;
  padding: 14px 14px 14px 12px; border-radius: 15px; border: 1px solid var(--line); background: rgba(51, 60, 72, .92);
  position: relative; overflow: hidden; transition: transform .15s var(--ease), border-color .2s, background .2s;
  animation: rowIn .35s var(--ease) both;
}
.qrow::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--warn); }
.qrow.aceptada::before { background: var(--ok); }
.qrow.rechazada::before { background: var(--bad); }
.qrow:hover { border-color: #5E6A7C; background: rgba(59, 68, 81, .95); }
.qrow:active { transform: scale(.985); }
.qrow .qnum { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; min-width: 52px; padding-left: 4px; }
.qrow .qnum small { font-size: 10.5px; letter-spacing: .18em; color: var(--muted); font-weight: 700; }
.qrow .qnum b { font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.qrow .qmain { min-width: 0; }
.qrow .qname { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .qveh { display: flex; align-items: center; gap: 8px; color: var(--silver); font-size: 13.5px; margin-top: 3px; min-width: 0; }
.qrow .qveh span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .qside { grid-row: 1 / 3; grid-column: 3; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.qrow .qtotal { font-family: var(--display); font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qrow .qdate { font-size: 12px; color: var(--muted); grid-column: 2; }

.plate-tag {
  flex: none; display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 5px; background: #F4F5F7; color: #111;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .1em; border: 1.5px solid #111; box-shadow: 0 0 0 1px #F4F5F7;
}
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pendiente { background: rgba(251, 191, 36, .14); color: #FCD34D; }
.pill.aceptada { background: var(--ok-soft); color: #6EE7B7; }
.pill.rechazada { background: var(--bad-soft); color: #FCA5A5; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { width: 64px; height: 64px; color: var(--line); margin-bottom: 8px; }
.empty b { display: block; color: var(--text-2); font-size: 18px; margin-bottom: 4px; }

.skeleton { height: 76px; border-radius: 15px; background: linear-gradient(90deg, #333C48 0%, #3B4451 50%, #333C48 100%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- hoja (modal inferior) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(10, 13, 17, .62);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s;
}
.sheet-backdrop.in { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column; background: #2E3640; border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .38s var(--ease);
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .6);
}
.sheet.in { transform: none; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 9px auto 0; flex: none; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px 12px; border-bottom: 1px solid var(--line-soft); flex: none; }
.sheet-head .grow { flex: 1; min-width: 0; }
.sheet-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--silver); display: flex; align-items: center; justify-content: center; flex: none; }
.sheet-close svg { width: 20px; height: 20px; }
.sheet-body { overflow-y: auto; padding: 16px 18px 18px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-foot { flex: none; padding: 12px 18px calc(12px + var(--safe-b)); border-top: 1px solid var(--line-soft); background: #2A313A; }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(760px, 94vw); max-height: 90vh; border-radius: 22px; border: 1px solid var(--line); transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .32s var(--ease), opacity .25s; }
  .sheet.in { transform: translate(-50%, -50%); opacity: 1; }
  .sheet .grab { display: none; }
  .sheet-foot { border-radius: 0 0 22px 22px; }
  .sheet.narrow { width: min(460px, 94vw); }
}

.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.dl div { min-width: 0; }
.dl dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dl dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.dl .full { grid-column: 1 / -1; }
.blk { margin-top: 18px; }
.blk > h4 { margin: 0 0 9px; font-family: var(--display); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.olist { margin: 0; padding: 0; list-style: none; counter-reset: o; }
.olist li { counter-increment: o; position: relative; padding: 7px 0 7px 32px; border-bottom: 1px dashed var(--line-soft); overflow-wrap: anywhere; }
.olist li:last-child { border-bottom: 0; }
.olist li::before { content: counter(o); position: absolute; left: 0; top: 6px; font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 17px; width: 22px; text-align: right; }
.timeline { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--silver); }
.timeline li { display: flex; gap: 10px; padding: 4px 0; }
.timeline li time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; min-width: 112px; }
.status-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; margin-bottom: 14px; font-weight: 600; }
.status-banner svg { width: 26px; height: 26px; flex: none; }
.status-banner.aceptada { background: var(--ok-soft); color: #A7F3D0; border: 1px solid rgba(52, 211, 153, .35); }
.status-banner.rechazada { background: var(--bad-soft); color: #FECACA; border: 1px solid rgba(248, 113, 113, .35); }
.foot-actions { display: grid; gap: 8px; }
.foot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.foot-row .btn { padding: 0 8px; font-size: 14px; }
.menu-list { display: flex; flex-direction: column; gap: 8px; }

/* ---------- confirmacion ---------- */
.confirm-body { padding: 22px 20px 6px; text-align: center; }
.confirm-body h3 { margin: 0 0 6px; font-family: var(--display); font-size: 26px; text-transform: uppercase; letter-spacing: .03em; }
.confirm-body p { margin: 0; color: var(--silver); }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 20px calc(18px + var(--safe-b)); }

/* ---------- exito ---------- */
.done { text-align: center; padding: 26px 20px 8px; }
.done .check { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok-soft); display: flex; align-items: center; justify-content: center; }
.done .check svg { width: 46px; height: 46px; color: var(--ok); }
.done .check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { margin: 0; font-family: var(--display); font-size: 30px; text-transform: uppercase; }
.done p { margin: 6px 0 0; color: var(--silver); }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 0; right: 0; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast {
  pointer-events: auto; max-width: 520px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: #F4F5F7; color: #1C2127; font-weight: 600; font-size: 14.5px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
  animation: toastIn .35s var(--ease);
}
.toast.err { background: #FEE2E2; color: #7F1D1D; }
.toast svg { width: 20px; height: 20px; flex: none; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- login ---------- */
.login {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 32px 20px calc(32px + var(--safe-b));
  background: radial-gradient(80% 60% at 50% 0%, rgba(241, 101, 34, .16), transparent 70%);
}
.login-card { width: 100%; max-width: 400px; animation: viewIn .6s var(--ease); }
.login-card .logo { width: 210px; max-width: 70%; height: auto; aspect-ratio: 420 / 211; object-fit: contain; display: block; margin: 0 auto 6px; border-radius: 14px; }
.login-card .kicker { text-align: center; font-family: var(--display); letter-spacing: .4em; text-transform: uppercase; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.login-card h1 { font-family: var(--display); font-size: 44px; line-height: .95; text-transform: uppercase; margin: 0 0 6px; text-align: center; }
.login-card .shopline { text-align: center; color: var(--silver); margin-bottom: 22px; font-size: 15px; }
.pw-wrap { position: relative; }
.pw-wrap .eye { position: absolute; right: 6px; top: 7px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; }
.pw-wrap .eye svg { width: 21px; height: 21px; }

/* ---------- ajustes ---------- */
.logo-tile { display: flex; align-items: center; gap: 16px; }
.logo-box {
  width: 112px; height: 112px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none;
  overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .8);
}
.logo-box img { max-width: 92%; max-height: 92%; object-fit: contain; }
.logo-box.empty { background: repeating-linear-gradient(45deg, #2E3640 0 10px, #333C48 10px 20px); color: var(--muted); font-size: 12px; text-align: center; padding: 8px; }
.logo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vars button { padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-deep); color: var(--silver); font-size: 12.5px; font-family: ui-monospace, Consolas, monospace; }
.vars button:hover { border-color: var(--accent); color: var(--text); }
.savebar { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); z-index: 20; display: flex; justify-content: flex-end; margin-top: 10px; pointer-events: none; }
.savebar .btn { pointer-events: auto; }
@media (min-width: 1024px) { .savebar { bottom: 20px; } }
.settings-grid { display: grid; gap: 14px; }
@media (min-width: 1024px) { .settings-grid { grid-template-columns: 1fr 1fr; align-items: start; } .settings-grid .card { margin-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .views-track { scroll-behavior: auto; }
}

.only-desk { display: none; }
@media (min-width: 1024px) { .only-mob { display: none; } .only-desk { display: block; width: 100%; } }
@media (min-width: 1024px) { .only-mob-inline { display: none; } }

/* Objetivos tactiles de al menos 44 px (auditoria) */
.chip, .views-tabs button, .filters button { min-height: 44px; }
.chip { padding: 9px 13px; }
.linkbtn { min-height: 44px; padding: 10px 6px; display: inline-flex; align-items: center; }
.shop-chip { min-height: 40px; }
.vars button { min-height: 40px; padding: 6px 11px; }
.suggest .btn.sm { min-height: 44px; }

/* ---------- tipo de vehiculo en la ficha y marcas propias ---------- */
.vt-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; vertical-align: 1px;
  font-family: var(--display); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent-soft); color: #FFB08A; border: 1px solid rgba(241, 101, 34, .4);
}
.mini-car {
  border-radius: 14px; border: 1px solid var(--line); padding: 10px 8px 6px;
  background: radial-gradient(70% 60% at 50% 30%, rgba(214, 222, 235, .1), transparent 70%), linear-gradient(180deg, #2C333D, #1D2228);
}
.mini-car .car-sheet { filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); }
.brand-add { display: flex; gap: 8px; align-items: stretch; }
.brand-add .grow { flex: 1; min-width: 0; }
.brand-add .btn { min-height: 54px; }
.brand-chips { margin-top: 12px; }
.chip.own { padding: 4px 4px 4px 14px; gap: 4px; background: #2B323C; color: var(--text-2); }
.chip-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.chip-x:hover { color: var(--bad); background: var(--bad-soft); }
.chip-x svg { width: 16px; height: 16px; }
