.app-shell { min-height: 100dvh; }
.app-header {
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(22px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: min(100% - 1.5rem, var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 .65rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-weight: 900;
  letter-spacing: -.07em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  box-shadow: var(--glow);
  font-size: 1.25rem;
}
.header-actions {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
}
.header-pill,
.location-chip,
.icon-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0 .9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  font-weight: 800;
}
.icon-button { width: 46px; padding: 0; }
.fuel-row {
  width: min(100% - 1.5rem, var(--max-width));
  margin: 0 auto;
  padding: 0 0 .8rem;
}
.main {
  width: min(100% - 1.5rem, var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 6.8rem;
}
.dashboard { display: grid; gap: 1rem; }
.top-panel { display: grid; gap: .9rem; }
.headline-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  align-items: end;
}
.headline-row h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: .96;
  letter-spacing: -.08em;
}
.headline-row p { margin: .3rem 0 0; color: var(--muted); }
.section,
.glass-section {
  margin-top: .25rem;
  display: grid;
  gap: .8rem;
}
.glass-section {
  padding: .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-soft) 65%, transparent));
  box-shadow: var(--shadow);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.section-title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -.04em;
}
.section-subtitle {
  margin: .15rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 1rem;
  align-items: start;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .45fr);
  gap: 1rem;
}
.stack { display: grid; gap: 1rem; }
@media (max-width: 760px) {
  .header-pill { display: none; }
  .headline-row { grid-template-columns: 1fr; }
  .location-chip { justify-content: flex-start; }
  .grid-two, .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .header-inner, .fuel-row, .main { width: min(100% - 1rem, var(--max-width)); }
  .brand { font-size: 1.55rem; }
  .brand-mark { display: none; }
  .section-head { align-items: start; flex-direction: column; }
}

/* Minimal layout refresh */
.app-header { border-bottom: 0; background: color-mix(in srgb, var(--bg) 76%, transparent); }
.header-inner { padding: .8rem 0 .55rem; }
.brand { font-size: clamp(1.35rem, 4.5vw, 1.8rem); }
.brand-mark { width: 34px; height: 34px; border-radius: 13px; box-shadow: none; }
.fuel-row { padding-bottom: .6rem; }
.main { padding-top: .75rem; }
.dashboard { gap: .78rem; }
.top-panel { gap: .72rem; }
.headline-row { align-items: center; }
.headline-row h1 { font-size: clamp(2rem, 7vw, 2.8rem); letter-spacing: -.075em; }
.headline-row p { font-size: .95rem; }
.glass-section { padding: .78rem; border-radius: 21px; box-shadow: var(--shadow); }
.section-title { font-size: 1rem; }
.section-subtitle { font-size: .82rem; }
.compact-head { align-items: center; }
.compact-head .section-subtitle { margin: 0; }
.favorites-strip { gap: .55rem; padding: .7rem; }
@media (max-width: 760px) {
  .headline-row { gap: .6rem; }
}

/* Radar v6 layout */
.app-header {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 0;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(24px);
}
.header-inner {
  width: min(100% - 2rem, var(--max-width));
  padding: 1.25rem 0 .72rem;
  grid-template-columns: minmax(0, 1fr) auto;
}
.brand {
  font-size: clamp(1.82rem, 6vw, 2.25rem);
  line-height: 1;
  letter-spacing: -.075em;
}
.header-actions { gap: .6rem; }
.header-location-pill {
  max-width: min(38vw, 190px);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 0 .95rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  box-shadow: none;
}
.header-location-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-location-icon { color: var(--brand-dark); font-weight: 900; }
.icon-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  box-shadow: none;
  font-size: 1.18rem;
}
.fuel-row {
  width: min(100% - 2rem, var(--max-width));
  padding-bottom: .72rem;
}
.main {
  width: min(100% - 2rem, var(--max-width));
  padding: .35rem 0 7.15rem;
}
.dashboard.home-radar { gap: .82rem; }
.glass-section {
  padding: .92rem;
  border-radius: 23px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 72%, transparent), color-mix(in srgb, var(--surface) 88%, transparent));
  box-shadow: none;
}
.section-head { align-items: center; }
.section-title { font-size: 1.04rem; font-weight: 850; }
.section-subtitle { font-size: .84rem; }
@media (max-width: 540px) {
  .header-inner, .fuel-row, .main { width: min(100% - 1.15rem, var(--max-width)); }
  .brand { font-size: 1.55rem; }
  .header-location-pill { max-width: 142px; min-height: 42px; padding-inline: .7rem; font-size: .92rem; }
  .icon-button { width: 42px; height: 42px; min-height: 42px; }
}

/* Radar v7: layout más pequeño y parecido a app móvil */
.header-inner {
  width: min(100% - 1.35rem, var(--max-width));
  padding: .9rem 0 .48rem;
}
.brand { font-size: clamp(1.45rem, 5vw, 1.78rem); letter-spacing: -.07em; }
.header-actions { gap: .45rem; }
.header-location-pill {
  min-height: 40px;
  max-width: min(40vw, 155px);
  padding: 0 .72rem;
  font-size: .88rem;
}
.icon-button { width: 40px; height: 40px; min-height: 40px; font-size: 1rem; }
.fuel-row {
  width: min(100% - 1.35rem, var(--max-width));
  padding-bottom: .5rem;
}
.main {
  width: min(100% - 1.35rem, var(--max-width));
  padding: .18rem 0 5.75rem;
}
.dashboard.home-radar { gap: .62rem; }
.glass-section {
  padding: .72rem .82rem;
  border-radius: 19px;
}
.section-head { gap: .65rem; }
.section-title { font-size: .94rem; }
.section-subtitle { font-size: .76rem; }
@media (max-width: 540px) {
  .header-inner, .fuel-row, .main { width: min(100% - .9rem, var(--max-width)); }
  .brand { font-size: 1.42rem; }
  .header-location-pill { max-width: 122px; min-height: 38px; font-size: .82rem; }
  .icon-button { width: 38px; height: 38px; min-height: 38px; }
}

/* v8 compact desktop/mobile scale */
.header-inner {
  width: min(100% - 1.1rem, var(--max-width));
  padding: .72rem 0 .36rem;
}
.brand {
  font-size: clamp(1.28rem, 4vw, 1.62rem);
  letter-spacing: -.065em;
}
.header-location-pill {
  min-height: 36px;
  max-width: min(34vw, 142px);
  padding: 0 .64rem;
  font-size: .78rem;
}
.header-location-icon { font-size: .9rem; }
.icon-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  font-size: .92rem;
}
.fuel-row {
  width: min(100% - 1.1rem, var(--max-width));
  padding-bottom: .42rem;
}
.main {
  width: min(100% - 1.1rem, var(--max-width));
  padding: .12rem 0 5.45rem;
}
.dashboard.home-radar { gap: .54rem; }
.glass-section {
  padding: .62rem .72rem .18rem;
  border-radius: 17px;
}
.section, .glass-section { gap: .56rem; }
.section-head { gap: .55rem; }
.section-title { font-size: .9rem; }
.section-subtitle { font-size: .72rem; }
.hero {
  padding: .9rem !important;
  border-radius: 18px !important;
}
.hero h1 { font-size: clamp(1.5rem, 5vw, 2.2rem) !important; }
.detail-layout, .grid-two { gap: .75rem; }
.stack { gap: .75rem; }
@media (max-width: 540px) {
  .header-inner, .fuel-row, .main { width: min(100% - .8rem, var(--max-width)); }
  .brand { font-size: 1.32rem; }
  .header-location-pill { max-width: 116px; min-height: 34px; padding-inline: .58rem; }
  .icon-button { width: 34px; height: 34px; min-height: 34px; }
}

/* v9 breathing room */
.main { padding-top: .35rem; }
.dashboard.home-radar { gap: .82rem; }
.section, .glass-section { gap: .72rem; }
.grid-two, .detail-layout { gap: 1rem; }
.stack { gap: 1rem; }
.section-head { gap: .8rem; }
@media (max-width: 540px) {
  .dashboard.home-radar { gap: .72rem; }
}

/* v10 breathing room */
.main {
  padding-top: .42rem;
}
.dashboard.home-radar {
  gap: 1rem;
}
.section-head {
  margin-bottom: .15rem;
}
.hero {
  display: grid;
  gap: .5rem;
  margin: .8rem 0 1rem;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 7vw, 3rem);
  line-height: 1;
  letter-spacing: -.075em;
}
.hero p { margin: 0; color: var(--muted); }
@media (min-width: 860px) {
  .main, .fuel-row, .header-inner { width: min(100% - 2.2rem, var(--max-width)); }
}
