/* Final shell. Phone tab bar under 744px. Capsule from 744px. Split from 1100px. */

.phone.is-final {
  width: 100%;
  max-width: none;
  background: var(--grouped);
}
.final { position: relative; min-height: calc(100dvh - var(--chrome-h, 44px)); }
.final-col, .final-split { width: min(720px, 100%); margin: 0 auto; }
.final-head {
  position: sticky;
  top: var(--chrome-h, 44px);
  z-index: 12;
  background: var(--grouped);
}
.final-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 4px 12px 0;
}
.final-line h1 {
  margin: 0;
  font-size: var(--large-title-size);
  line-height: 1.15;
  letter-spacing: var(--large-title-track);
  min-width: 0;
}
.final-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; position: relative; flex: none; }
/* 36px circles inside a 44px tap area: the fill is clipped to the content box. */
.phone.is-final .final .icon-view,
.phone.is-final .final button.icon-gear,
.phone.is-final .final a.icon-gear {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  background-clip: content-box;
}
.phone.is-final .final .final-tools .btn-text { min-width: 44px; min-height: 44px; justify-content: center; }
.final .v20-menu { top: 40px; }
.final .v20-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
}
.final .v20-menu button[aria-checked="true"]::after { content: "✓"; color: var(--accent); }

.final-body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.final.is-phone .final-body,
.final.is-phone.is-detail .pad {
  padding-bottom: calc(var(--fab-clear) + 8px + env(safe-area-inset-bottom, 0px));
}

.final-switch.seg {
  border: 0;
  background: transparent;
}
.phone.is-final .final-tabs.final-switch,
.phone.is-final .final-capsule.final-switch {
  position: fixed;
}
.final-switch .seg-thumb {
  border-radius: 999px;
  background: var(--fill);
  top: 4px;
  height: calc(100% - 8px);
}
.final-tabs {
  display: flex;
}
.final-tabs button,
.final-capsule button {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.final-tabs button[aria-current="page"],
.final-capsule button[aria-current="page"] {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.final-capsule {
  position: fixed;
  z-index: 24;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  height: 44px;
  min-width: 280px;
  width: min(360px, calc(100% - 32px));
  padding: 0 4px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-lg);
}
.final-capsule button {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}
.phone.is-final .final.is-phone .nav-slot:not(.is-demo) {
  position: fixed;
  bottom: calc(16px + 60px + 12px + env(safe-area-inset-bottom, 0px));
}

.final-plans { list-style: none; margin: 0; padding: 0 0 24px; }
.final-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 0.5px solid var(--separator);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.final-row strong,
.final-row span { display: block; text-align: left; max-width: none; }
.final-row span { color: var(--muted); font-size: var(--footnote-size); }
@media (hover: hover) { .final-row:hover { background: var(--fill); } } /* touch screens keep :hover after a tap */

.final .ec-photo,
.final .v-card img,
.final .board-card .ec-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 200px;
  height: auto;
  object-fit: cover;
}
.final .ph-frame > img { width: 100%; object-fit: cover; }

.final-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 32px 24px;
  color: var(--muted);
  text-align: center;
}
.final-empty p { margin: 0; max-width: 240px; }

.final-backdrop {
  position: fixed;
  z-index: 7;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(var(--chrome-h, 44px) + var(--final-head, 96px));
  background: rgba(0, 0, 0, 0.45);
}
.final-sheet {
  position: fixed;
  z-index: 8;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  top: calc(var(--chrome-h, 44px) + var(--final-head, 96px) + 8px);
  bottom: calc(16px + 52px + 16px + env(safe-area-inset-bottom, 0px)); /* clears the 52px capsule */
  overflow: auto;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.final-sheet .nav-slot:not(.is-demo) {
  position: sticky;
  float: right;
  right: 16px;
  bottom: 16px;
  margin: 0 16px 16px auto;
}

@media (min-width: 744px) {
  .final .ph-frame > img { max-height: 280px; aspect-ratio: 3 / 2; height: auto; }
  .final-sheet .detail-new,
  .final-detail .detail-new { position: relative; }
  .final-sheet .nav-slot:not(.is-demo),
  .final-detail .nav-slot:not(.is-demo) {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: auto;
    width: 56px;
    height: 56px;
    float: none;
    margin: 0;
  }
}

@media (min-width: 1100px) {
  .final.is-split .final-split {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: 360px minmax(0, 720px);
    justify-content: center;
    align-items: start;
  }
  .final-list, .final-detail {
    min-height: calc(100dvh - var(--chrome-h, 44px));
    max-height: calc(100dvh - var(--chrome-h, 44px));
    overflow: auto;
  }
  .final-detail {
    background: var(--bg);
    border-left: 0.5px solid var(--separator);
    position: relative;
  }
  .final-head { top: 0; }
  .final.is-split .v20-itin .dayblock h2 { top: var(--final-head, 96px); }
  .final.is-split .final-body { padding-bottom: 88px; }
}

.final.is-phone .v20-itin .dayblock h2,
.final.is-tablet .v20-itin .dayblock h2 {
  top: calc(var(--chrome-h, 44px) + var(--final-head, 96px));
}

@media (max-width: 743px) {
  .final-capsule { display: none; }
}
@media (min-width: 744px) {
  .final-tabs { display: none; }
}

/* Horas: cards sit at their time on the rail. tokens.css makes .phone cards relative for stacking, which pushed each card down by the ones before it. */
.final .board-lane > .board-card,
.final .board-lane > .more-box,
.final .board-lane > .peek { position: absolute; }

/* Horas: a short card can't hold a 3:2 photo across its width, so the photo becomes a 3:2 thumbnail beside the title. */
.final .board-card .ec-a, .final .board-card .ec-b,
.final .more-box .ec-a, .final .more-box .ec-b,
.final .peek-card .ec-a, .final .peek-card .ec-b { flex-direction: row; align-items: flex-start; }
.final .board-card .ec-body, .final .more-box .ec-body, .final .peek-card .ec-body { flex: 1 1 auto; min-width: 0; }
.final .board-card .ec-photo,
.final .more-box .ec-photo,
.final .peek-card .ec-photo {
  order: 2;
  flex: none;
  width: 72px;
  height: 48px;
  aspect-ratio: 3 / 2;
  max-height: none;
  margin: 8px 8px 0 0;
  border-radius: 8px;
}
.final .board-card.is-nophoto .avatars { display: none; }

/* Card photos. Phone: 16:9 across the card (the 200px cap is a laptop rule).
   744–1099px: the single column is too wide for a 3:2 photo under 200px, so the photo sits beside the text. */
@media (max-width: 743px) {
  .final .v-card .ec-photo { aspect-ratio: 16 / 9; max-height: none; }
}
@media (min-width: 744px) and (max-width: 1099px) {
  .final .v-card .ec-b:not(.is-plain) { flex-direction: row; align-items: stretch; }
  .final .v-card .ec-b .ec-photo { flex: none; width: 300px; height: 200px; aspect-ratio: 3 / 2; }
  .final .v-card .ec-b .ec-body { flex: 1 1 auto; min-width: 0; padding: 12px 16px; }
}

/* Tablet sheet: the detail fills the sheet and only the text scrolls, so the navigate button stays inside the sheet on short screens. */
.final-sheet { overflow: hidden; }
.final-sheet .detail-new {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding-bottom: 0;
}
.final-sheet .detail-new .pad { flex: 1 1 auto; min-height: 0; overflow: auto; padding-bottom: var(--fab-clear); }

/* Stacked avatars overlap by 2px, so even wide initials like “MQ” stay readable. */
.phone.is-final .avatars.is-over .avatar + .avatar { margin-left: -2px; }

/* Day strip: one continuous row of the trip's days, Monday first, seven in view.
   It scrolls sideways on its own and follows Itinerario. */
.final .v20-strip.is-track { display: block; }
.final .v20-strip.is-track .daystrip {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 4px 4px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
}
.final .v20-strip.is-track .daystrip::-webkit-scrollbar { display: none; }
/* Weeks start on Monday: a swipe always lands on a whole Monday–Sunday week. */
.final .v20-strip.is-track .daystrip > button:nth-child(7n+1) { scroll-snap-align: start; scroll-snap-stop: always; }
.final .v20-strip.is-track .daystrip > button {
  flex: 0 0 calc((100% - 12px) / 7);
  min-width: 0;
  position: relative;
  isolation: isolate;
  transition: color 200ms ease;
}
/* The selected day's fill fades in and the previous one fades out. Nothing slides. */
.final .v20-strip.is-track .daystrip > button[aria-selected="true"] { background: transparent; color: var(--accent-on); }
.final .v20-strip.is-track .daystrip > button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--accent-button);
  opacity: 0;
  transition: opacity 200ms ease;
}
.final .v20-strip.is-track .daystrip > button[aria-selected="true"]::before { opacity: 1; }
.final .v20-strip.is-track .daystrip > button.is-arriving { animation: day-text-in 200ms ease both; }
.final .v20-strip.is-track .daystrip > button.is-arriving::before { animation: day-fill-in 200ms ease both; }
.final .v20-strip.is-track .daystrip > button.is-leaving { animation: day-text-out 200ms ease both; }
.final .v20-strip.is-track .daystrip > button.is-leaving::before { animation: day-fill-out 200ms ease both; }
@keyframes day-fill-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes day-fill-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes day-text-in { from { color: var(--ink); } }
@keyframes day-text-out { from { color: var(--accent-on); } }
/* Reduced motion keeps a short 120ms fade, like the rest of the app. */
@media (prefers-reduced-motion: reduce) {
  .final .v20-strip.is-track .daystrip > button,
  .final .v20-strip.is-track .daystrip > button::before { transition-duration: 120ms !important; animation-duration: 120ms !important; }
}

/* Agenda and Itinerario: times sit on a left rail, start in bold over the end time, like the Horas rail.
   The rail grows with Texto grande, and gap lines and notes line up with the cards. */
.final { --list-rail: calc(var(--headline-size) * 4); } /* fits "12:30pm" */
.final .v20-agenda.has-rail, .final .v20-itin .agenda.has-rail { padding-left: calc(16px + var(--list-rail) + 8px); }
.final .v-card.has-rail { position: relative; }
.final .v-rail {
  position: absolute;
  top: 6px;
  right: calc(100% + 8px);
  width: var(--list-rail);
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.final .v-rail b { display: block; font-size: var(--headline-size); font-weight: 600; color: var(--ink); white-space: nowrap; }
.final .v-rail > span { display: block; margin-top: 2px; font-size: var(--footnote-size); color: var(--muted); white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Day headings stay above the cards scrolling under them. */
.final .v20-itin .dayblock h2 { z-index: 3; }
/* Jumping to a day puts its heading right under the pinned header, so the day before is fully scrolled away. */
.final.is-phone .v20-itin .dayblock,
.final.is-tablet .v20-itin .dayblock { scroll-margin-top: calc(var(--chrome-h, 44px) + var(--final-head, 96px)); }
@media (min-width: 1100px) {
  .final.is-split .v20-itin .dayblock { scroll-margin-top: var(--final-head, 96px); }
}

/* Calendario | Planes: a glass pill on every width. The generic .seg rule had turned it into a 9px rounded rectangle with no fill. */
.phone.is-final .final-switch.seg {
  border-radius: 999px;
  padding: 4px;
  gap: 0;
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-lg);
}
.phone.is-final .final-switch.seg > button { border-radius: 999px; min-height: 0; height: 100%; }
.phone.is-final .final-tabs.final-switch { height: 56px; }
.phone.is-final .final-capsule.final-switch { height: 52px; }
.phone.is-final .final-switch .seg-thumb {
  top: 4px;
  bottom: 4px;
  left: 4px;
  height: auto;
  width: calc((100% - 8px) / var(--n, 2));
  border-radius: 999px;
  background: var(--fill);
  box-shadow: none;
}

/* Detail hero: full bleed. The sheet clips its own corners, so the photo has none of its own. */
.phone.is-final .final .ph-frame { border-radius: 0; }

/* Cómo llegar: a labeled button, not just an arrow. */
.phone.is-final .final .nav-slot:not(.is-demo) { width: auto; height: auto; padding: 0; transform: none; }
.phone.is-final .final .nav-pill {
  min-height: 50px;
  padding: 0 20px 0 16px;
  gap: 8px;
  font-size: var(--body-size);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}
.phone.is-final .final .nav-pill::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17 17 7M9 7h8v8'/></svg>") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17 17 7M9 7h8v8'/></svg>") center / 20px 20px no-repeat;
}

/* Itinerario day headings scroll with the list; they are not pinned. */
.phone.is-final .final .v20-itin .dayblock h2 {
  position: static;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: auto;
}
/* A day with nothing planned is one short row. */
.phone.is-final .final .v20-itin .dayblock.is-empty h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: var(--callout-size);
}
.phone.is-final .final .v20-itin .dayblock.is-empty h2 span { color: var(--muted); font-weight: 400; font-size: var(--footnote-size); }

/* "Todo el día" on the rail, smaller than a time. */
.final .v-rail > span:only-child { margin-top: 0; font-size: var(--footnote-size); font-weight: 600; color: var(--muted); line-height: 1.2; }

/* The large title shrinks to a 22px title as the list scrolls, like iOS. */
/* Scaled with a transform, not font-size: nothing is laid out again while scrolling, so it shrinks smoothly
   and the list under the header never shifts (Arturo, 2026-11-15: it moved in steps on the phone). */
.phone.is-final .final-line h1 {
  transform-origin: left center;
  transform: scale(calc(1 - 0.35 * var(--collapse, 0)));
  will-change: transform;
}

/* Detail: when, right under the title. */
.phone.is-final .final .detail-when {
  margin: 4px 0 12px;
  font-size: var(--headline-size);
  font-weight: 600;
  color: var(--accent);
}
.phone.is-final .final .detail-people { margin-top: 4px; }

/* Back button: dark glass with a white, heavier chevron, readable on any photo. */
.phone.is-final .final .round-back {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.phone.is-final .final .round-back::after {
  width: 22px;
  height: 22px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M14.5 6 8.5 12l6 6'/></svg>") center / 22px 22px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M14.5 6 8.5 12l6 6'/></svg>") center / 22px 22px no-repeat;
}
.phone.is-final .final .back-bar .round-back { background: var(--fill); backdrop-filter: none; -webkit-backdrop-filter: none; }
.phone.is-final .final .back-bar .round-back::after { background: var(--ink); }

/* Phone tab bar: bigger icons and labels. */
.phone.is-final .final-tabs button { gap: 8px; font-size: 16px; font-weight: 600; }
.phone.is-final .final-tabs button svg { width: 24px; height: 24px; }

/* Laptop split: the switch sits under the list it changes, clear of the detail and its Cómo llegar button. */
@media (min-width: 1100px) {
  .phone.is-final .final.is-split .final-capsule.final-switch {
    left: calc((100vw - min(1080px, 100vw)) / 2 + 180px);
    width: 320px;
    min-width: 0;
  }
}

/* Card photos have no corners of their own: the card clips its outer corners, and the inner edge meets the text square. */
.phone.is-final .final .v-card .ec-photo { border-radius: 0; }

/* Tablet (744–1099px): the detail takes over the screen like the phone. Full-width photo, text in a centered column. */
.phone.is-final .final.is-tablet.is-detail .detail-new { position: relative; min-height: calc(100dvh - var(--chrome-h, 44px)); background: var(--bg); }
.phone.is-final .final.is-tablet.is-detail .pad {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: calc(16px + 52px + 24px + env(safe-area-inset-bottom, 0px));
}
.phone.is-final .final.is-tablet.is-detail .nav-slot:not(.is-demo) {
  position: fixed;
  left: auto;
  right: 16px;
  bottom: calc(17px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
}
.phone.is-final .final.is-tablet.is-detail .map-pop {
  position: fixed;
  right: 16px;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 26;
}

/* Full-screen detail has no switch at the bottom, so Cómo llegar sits in the bottom-right corner and the text only clears that button. */
.phone.is-final .final.is-detail .nav-slot:not(.is-demo) {
  position: fixed;
  left: auto;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.phone.is-final .final.is-detail .pad { padding-bottom: calc(16px + 50px + 24px + env(safe-area-inset-bottom, 0px)); }

/* The plan open in the detail is selected in the list: one accent ring and a light accent tint.
   The card's own border turns accent and a 1px shadow thickens it to 2px, so there is a single ring
   (an outline sat outside the border and read as two). The shadow is not clipped by the card's overflow. */
.phone.is-final .final .v-card.is-selected > .ec,
.phone.is-final .final .board-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.phone.is-final .final .v-card.is-selected > .ec,
.phone.is-final .final .board-card.is-selected,
.phone.is-final .final .board-card.is-selected > .ec {
  background: color-mix(in srgb, var(--accent) 10%, var(--elevated)); /* 10%: grey meta text keeps 4.5:1 in Minimal */
}
.phone.is-final .final .final-row.is-selected,
.phone.is-final .final .pl-item.is-selected {
  background: color-mix(in srgb, var(--accent) 10%, var(--elevated));
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Horas: a short plan still gets a 44pt tap area. */
.phone.is-final .final .board-lane > .board-card { min-height: 44px; }

/* Planes designs under comparison (?planes=a|b|c). Rows get a photo thumbnail. */
.phone.is-final .final .final-row.has-thumb { flex-direction: row; align-items: center; gap: 12px; min-height: 72px; padding: 8px 16px; }
.phone.is-final .final .row-thumb { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--fill); }
.phone.is-final .final .final-row .row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--ink); font-size: inherit; }
.phone.is-final .final .row-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone.is-final .final .final-row .row-text > span { color: var(--muted); font-size: var(--footnote-size); }
.phone.is-final .final .planes-none { padding: 24px 16px; text-align: center; }
.phone.is-final .final .planes-none.is-first .btn { margin-top: 12px; }

/* A: search and Filtros. */
.phone.is-final .final .planes-tools { display: flex; gap: 8px; padding: 4px 16px 12px; }
.phone.is-final .final .planes-search { flex: 1; min-width: 0; }
.phone.is-final .final .planes-search input {
  width: 100%; height: 44px; padding: 0 14px 0 38px; border: 0; border-radius: 12px;
  background: var(--fill) no-repeat 12px center / 18px 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='6.5'/><path d='m16 16 4.5 4.5'/></svg>");
  font: inherit; color: var(--ink);
}
.phone.is-final .final .planes-filter-btn {
  flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: 12px;
  background: var(--fill); color: var(--ink); font: inherit; font-weight: 600;
}
.phone.is-final .final .planes-filter-btn.is-on { background: var(--accent-button); color: var(--accent-on); }

/* B: one row of chips, one choice at a time. */
.phone.is-final .final .planes-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none;
}
.phone.is-final .final .planes-chips::-webkit-scrollbar { display: none; }
.phone.is-final .final .planes-chips .chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap; }

/* C: grouped by day, Sin programar last. */
.phone.is-final .final .planes-group h2 {
  margin: 0; padding: 16px 16px 6px; font-size: var(--footnote-size); font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.phone.is-final .final .planes-group .final-plans { padding-bottom: 0; }
.phone.is-final .final .icon-filter {
  width: 44px; height: 44px; padding: 4px; border: 0; border-radius: 999px; background: var(--fill); background-clip: content-box;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
}
.phone.is-final .final .icon-filter::before {
  content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M4 7h16M7 12h10M10 17h4'/></svg>") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M4 7h16M7 12h10M10 17h4'/></svg>") center / 20px 20px no-repeat;
}
.phone.is-final .final .icon-filter.is-on { background-color: var(--accent-button); color: var(--accent-on); }

/* Filtros sheet. */
.phone.is-final .sheet .sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.phone.is-final .sheet .sheet-actions .btn { flex: 1; }

/* Split view: the detail fills its pane, so Cómo llegar sits at the pane's bottom right, not wherever the text ends. */
@media (min-width: 1100px) {
  .phone.is-final .final-detail .detail-new { min-height: 100%; }
}

/* Planes exploration (?planes=estantes|categoria|lista): category icons. */
.phone.is-final .cat-ico { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; vertical-align: -4px; }
.phone.is-final .cat-ico[data-cat="comer"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M7 3v7M5 3v4a2 2 0 0 0 4 0V3M7 10v11M17 3c-2.2 1.6-2.2 7 0 8.5V21'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M7 3v7M5 3v4a2 2 0 0 0 4 0V3M7 10v11M17 3c-2.2 1.6-2.2 7 0 8.5V21'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .cat-ico[data-cat="museos"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M3 9.5 12 4l9 5.5M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 20.5h18'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M3 9.5 12 4l9 5.5M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 20.5h18'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .cat-ico[data-cat="paseos"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 7 10h3l-4 6h12l-4-6h3l-5-7zM12 16v5'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 7 10h3l-4 6h12l-4-6h3l-5-7zM12 16v5'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .cat-ico[data-cat="mercados"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M5 8h14l-1.2 12H6.2L5 8zM9 8V6.5a3 3 0 0 1 6 0V8'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M5 8h14l-1.2 12H6.2L5 8zM9 8V6.5a3 3 0 0 1 6 0V8'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .cat-ico[data-cat="excursiones"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 19.5 9 8.5l4 6.5 2.5-3.5 6 8H2.5z'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 19.5 9 8.5l4 6.5 2.5-3.5 6 8H2.5z'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .cat-ico[data-cat="colecciones"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M6 19.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM18 8.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM8 17.5h7a3 3 0 0 0 0-6H9a3 3 0 0 1 0-6h7'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M6 19.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM18 8.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM8 17.5h7a3 3 0 0 0 0-6H9a3 3 0 0 1 0-6h7'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .cat-ico[data-cat="casa"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4 11 12 4l8 7M6 9.5V20h12V9.5M10 20v-5h4v5'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4 11 12 4l8 7M6 9.5V20h12V9.5M10 20v-5h4v5'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .cat-ico[data-cat="deporte"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M6.5 6v12M17.5 6v12M6.5 12h11M3.5 9v6M20.5 9v6'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M6.5 6v12M17.5 6v12M6.5 12h11M3.5 9v6M20.5 9v6'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .cat-ico[data-cat="viaje"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12.5 21 5l-4.5 16-4-6.5-9.5-2z'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12.5 21 5l-4.5 16-4-6.5-9.5-2z'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .cat-ico[data-cat="plan"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14M5 12h14'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14M5 12h14'/></svg>") center / 20px 20px no-repeat; }

/* + on the Planes title line, and its menu. */
.phone.is-final .final .icon-add {
  width: 44px; height: 44px; padding: 4px; border: 0; border-radius: 999px;
  background: var(--accent-button); background-clip: content-box; color: var(--accent-on);
  display: inline-flex; align-items: center; justify-content: center;
}
.phone.is-final .final .icon-add::before {
  content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>") center / 20px 20px no-repeat;
}
.phone.is-final .final .pl-addmenu { top: 48px; right: 48px; left: auto; min-width: 200px; }
.phone.is-final .final .pl-addmenu button { justify-content: flex-start; gap: 12px; }

/* Shared: when, and "Sin programar" in the accent. */
.phone.is-final .final .pl-when { font-size: var(--footnote-size); color: var(--muted); }
.phone.is-final .final .pl-when.is-free { color: var(--accent); font-weight: 600; }
.phone.is-final .final .pl-why { font-size: var(--footnote-size); color: var(--ink); opacity: 0.85; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phone.is-final .final .pl-cathead { display: flex; align-items: center; gap: 8px; margin: 0; padding: 16px 16px 8px; font-size: var(--headline-size); }
.phone.is-final .final .pl-cathead span:not(.cat-ico) { color: var(--muted); font-weight: 400; }

/* Estantes: one horizontal shelf per category. */
.phone.is-final .final .pl-shelf { padding: 8px 0 12px; }
.phone.is-final .final .pl-shelfhead { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 8px; }
.phone.is-final .final .pl-shelfhead h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--headline-size); }
.phone.is-final .final .pl-row-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.phone.is-final .final .pl-row-scroll::-webkit-scrollbar { display: none; }
.phone.is-final .final .pl-card {
  flex: 0 0 160px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 2px; padding: 0 0 4px;
  border: 0; background: transparent; color: inherit; font: inherit; text-align: left;
}
.phone.is-final .final .pl-card img, .phone.is-final .final .pl-noimg { width: 160px; height: 120px; border-radius: 12px; object-fit: cover; margin-bottom: 6px; background: var(--fill); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.phone.is-final .final .pl-card strong { font-size: var(--callout-size); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phone.is-final .final .pl-backcat { margin: 4px 8px 0; }

/* Una categoría a la vez: an icon bar, then big cards. */
.phone.is-final .final .pl-tabs-wrap { border-bottom: 0.5px solid var(--separator); }
.phone.is-final .final .pl-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
.phone.is-final .final .pl-tabs::-webkit-scrollbar { display: none; }
.phone.is-final .final .pl-tabs button {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 72px; min-height: 64px; padding: 8px 8px 10px;
  border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: var(--footnote-size); font-weight: 600;
}
.phone.is-final .final .pl-tabs button .cat-ico { width: 24px; height: 24px; -webkit-mask-size: 24px 24px; mask-size: 24px 24px; }
.phone.is-final .final .pl-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.phone.is-final .final .pl-bigs { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 24px; }
.phone.is-final .final .pl-big {
  display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: var(--elevated); box-shadow: var(--shadow-sm); color: inherit; font: inherit; text-align: left;
}
.phone.is-final .final .pl-big img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.phone.is-final .final .pl-big .pl-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.phone.is-final .final .pl-big strong { font-size: var(--headline-size); }
.phone.is-final .final .pl-cat { display: flex; align-items: center; gap: 6px; font-size: var(--footnote-size); color: var(--muted); }
.phone.is-final .final .pl-cat .cat-ico { width: 16px; height: 16px; -webkit-mask-size: 16px 16px; mask-size: 16px 16px; }
.phone.is-final .final .pl-big.is-selected { outline: 2px solid var(--accent); outline-offset: 1px; }
.phone.is-final .final .pl-card.is-selected img { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 744px) and (max-width: 1099px) {
  .phone.is-final .final .pl-bigs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Lista: sections by category, rows say what and why. */
.phone.is-final .final .pl-jumps { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; }
.phone.is-final .final .pl-jumps::-webkit-scrollbar { display: none; }
.phone.is-final .final .pl-jumps .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; white-space: nowrap; }
.phone.is-final .final .pl-section { scroll-margin-top: calc(var(--chrome-h, 44px) + var(--final-head, 96px)); }
.phone.is-final .final .pl-row { align-items: flex-start; padding: 10px 16px; }
.phone.is-final .final .pl-thumb { position: relative; flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--fill); }
.phone.is-final .final .pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.phone.is-final .final .pl-badge { position: absolute; left: 4px; bottom: 4px; width: 26px; height: 26px; border-radius: 999px; background: var(--elevated); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.phone.is-final .final .pl-badge .cat-ico { width: 16px; height: 16px; -webkit-mask-size: 16px 16px; mask-size: 16px 16px; }
.phone.is-final .final .pl-row .row-text { gap: 3px; }
.phone.is-final .final .pl-row .row-text strong { white-space: normal; }

/* Add sheets. */
.phone.is-final .sheet .pl-catpick .chip { display: inline-flex; align-items: center; gap: 6px; }
.phone.is-final .sheet .fset-title { margin: 16px 0 8px; font-weight: 600; }
.phone.is-final .sheet .pl-picks { list-style: none; margin: 0 0 16px; padding: 0; max-height: 40vh; overflow: auto; }
.phone.is-final .sheet .pl-pick {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 4px;
  border: 0; border-bottom: 0.5px solid var(--separator); background: transparent; color: inherit; font: inherit; text-align: left;
}
.phone.is-final .sheet .pl-num {
  flex: none; width: 26px; height: 26px; border-radius: 999px; border: 1.5px solid var(--separator);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.phone.is-final .sheet .pl-pick[aria-pressed="true"] .pl-num { background: var(--accent-button); border-color: var(--accent-button); color: var(--accent-on); }

.phone.is-final .final .final-row .row-text > .pl-why { color: var(--ink); opacity: 0.85; }
.phone.is-final .final .final-row .row-text > .pl-when.is-free { color: var(--accent); font-weight: 600; }
.phone.is-final .cat-ico[data-cat="otros"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'><circle cx='6' cy='12' r='1.6'/><circle cx='12' cy='12' r='1.6'/><circle cx='18' cy='12' r='1.6'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'><circle cx='6' cy='12' r='1.6'/><circle cx='12' cy='12' r='1.6'/><circle cx='18' cy='12' r='1.6'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .sheet .field input {
  width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 12px;
  background: var(--fill); color: var(--ink); font: inherit; font-size: var(--body-size);
}
.phone.is-final .sheet .field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Opening a plan: the detail fades in. No movement, no growing photo. */
.phone.is-final .final .ph-frame img { view-transition-name: none !important; }
.phone.is-final .final .detail-new.is-entering { animation: detail-in 200ms ease both; }
@keyframes detail-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .phone.is-final .final .detail-new.is-entering { animation-duration: 120ms; }
}

/* Laptop split: the list hugs the left edge and grows with the window; the detail takes the rest.
   The photo spans the pane, and the text sits in a centered reading column. */
@media (min-width: 1100px) {
  /* One left side for Calendario and Planes (Arturo, 2026-11-15): the floating switch stays in the same spot.
     Calendario's list fills it; in Planes the filter column takes 220px and the list the rest. */
  .final.is-split { --left-w: clamp(620px, 45vw, 760px); --list-w: var(--left-w); }
  .phone.is-final .final.is-split .final-detail .detail-new { min-height: calc(100dvh - var(--chrome-h, 44px)); }
  .phone.is-final .final.is-split .final-split {
    width: 100%;
    grid-template-columns: var(--list-w) minmax(0, 1fr);
    justify-content: stretch;
  }
  .phone.is-final .final.is-split .final-detail .ph-frame > img { max-height: 380px; aspect-ratio: auto; height: 380px; }
  .phone.is-final .final.is-split .final-detail .pad { max-width: 680px; margin: 0 auto; padding-left: 32px; padding-right: 32px; box-sizing: content-box; }
  .phone.is-final .final.is-split .final-capsule.final-switch {
    left: calc(var(--left-w) / 2);
    width: min(320px, calc(var(--list-w) - 32px));
  }
  .phone.is-final .final.is-split .final-detail .nav-slot:not(.is-demo) { right: 24px; bottom: 24px; }
}

/* Lista tools: search, category chips, then where / when / who. */
.phone.is-final .final .pl-tools { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 4px; }
.phone.is-final .final .pl-search { padding: 0 16px; }
.phone.is-final .final .pl-cats, .phone.is-final .final .pl-sels {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; align-items: center;
}
.phone.is-final .final .pl-cats::-webkit-scrollbar, .phone.is-final .final .pl-sels::-webkit-scrollbar { display: none; }
.phone.is-final .final .pl-cats .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; white-space: nowrap; }
.phone.is-final .final .pl-cats .chip { min-height: 44px; }
.phone.is-final .final .pl-cats .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.phone.is-final .final .pl-sel { position: relative; flex: none; }
.phone.is-final .final .pl-sel select {
  appearance: none; -webkit-appearance: none; height: 44px; padding: 0 34px 0 14px; border: 0; border-radius: 999px;
  background: var(--fill) no-repeat right 12px center / 12px 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23777' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='m3 4.5 3 3 3-3'/></svg>");
  color: var(--ink); font: inherit; font-size: var(--callout-size);
}
.phone.is-final .final .pl-sel.is-on select { background-color: var(--accent-button); color: var(--accent-on);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='m3 4.5 3 3 3-3'/></svg>"); }
.phone.is-final .final .pl-clear { flex: none; min-height: 44px; }
.phone.is-final .final .pl-count { margin: 8px 16px 0; color: var(--muted); font-size: var(--footnote-size); }
.phone.is-final .final .pl-noimg-sm { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--muted); }
@media (min-width: 1100px) {
  /* The list pane wraps its chips and filters instead of scrolling them sideways. */
  .phone.is-final .final.is-split .pl-cats, .phone.is-final .final.is-split .pl-sels { flex-wrap: wrap; overflow: visible; }
}


/* Laptop list: a wider pane would stretch card photos into strips under the 200px cap, so the photo sits beside the text. */
@media (min-width: 1100px) {
  .phone.is-final .final.is-split .final-list .v-card .ec-b:not(.is-plain) { flex-direction: row; align-items: stretch; }
  .phone.is-final .final.is-split .final-list .v-card .ec-b .ec-photo { flex: none; width: 180px; height: 120px; aspect-ratio: 3 / 2; max-height: none; }
  .phone.is-final .final.is-split .final-list .v-card .ec-b .ec-body { flex: 1 1 auto; min-width: 0; }
}

/* Collection stops: rows with the stop number on the photo. */
.phone.is-final .final .pl-stops { list-style: none; margin: 0 -16px; padding: 0; }
.phone.is-final .final .pl-num-badge { position: absolute; left: 4px; top: 4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--accent-button); color: var(--accent-on); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }

/* Website and Google Maps links. */
.phone.is-final .final .detail-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.phone.is-final .final .detail-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--fill); color: var(--ink); text-decoration: none; font-weight: 600; }
.phone.is-final .final .link-ico { width: 18px; height: 18px; background: currentColor; }
.phone.is-final .final .link-ico[data-kind="web"] {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3c2.5 2.7 2.5 15.3 0 18M12 3c-2.5 2.7-2.5 15.3 0 18'/></svg>") center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3c2.5 2.7 2.5 15.3 0 18M12 3c-2.5 2.7-2.5 15.3 0 18'/></svg>") center / 18px 18px no-repeat; }
.phone.is-final .final .link-ico[data-kind="maps"] {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/><circle cx='12' cy='9.5' r='2.5'/></svg>") center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/><circle cx='12' cy='9.5' r='2.5'/></svg>") center / 18px 18px no-repeat; }

/* Me interesa: a pill under Quién va; filled with the accent once you're in. */
.phone.is-final .final .detail-people.is-empty { color: var(--muted); }
.phone.is-final .final .detail-vote { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; margin: 4px 0 16px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.phone.is-final .final .detail-vote[aria-pressed="true"] { background: var(--accent-button); color: var(--accent-on); }
.phone.is-final .final .vote-ico { width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M12 20s-7.5-4.6-7.5-10A4.3 4.3 0 0 1 12 7.3 4.3 4.3 0 0 1 19.5 10c0 5.4-7.5 10-7.5 10z'/></svg>") center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M12 20s-7.5-4.6-7.5-10A4.3 4.3 0 0 1 12 7.3 4.3 4.3 0 0 1 19.5 10c0 5.4-7.5 10-7.5 10z'/></svg>") center / 18px 18px no-repeat; }
.phone.is-final .final .detail-vote[aria-pressed="true"] .vote-ico,
.phone.is-final .final .pl-heart[aria-pressed="true"] .vote-ico {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M12 20s-7.5-4.6-7.5-10A4.3 4.3 0 0 1 12 7.3 4.3 4.3 0 0 1 19.5 10c0 5.4-7.5 10-7.5 10z'/></svg>") center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M12 20s-7.5-4.6-7.5-10A4.3 4.3 0 0 1 12 7.3 4.3 4.3 0 0 1 19.5 10c0 5.4-7.5 10-7.5 10z'/></svg>") center / 18px 18px no-repeat; }

/* 12-hour times: am/pm a touch smaller on the rail; the Horas hour column fits "12pm" and grows with Texto grande. */
.final .v-rail small { font-size: 0.78em; font-weight: inherit; margin-left: 1px; }
.phone { --hour-col: calc(var(--caption-size, 12px) * 2.9); }
html[data-type="xl"] .phone { --hour-col: calc(var(--footnote-size, 13px) * 2.9); }

/* Planes spacing (Arturo, 2026-11-15: "too tight"). More air between chips, between the category chips and the
   filters, inside rows, and around section headings. Separators start at the text, not under the photo. */
.phone.is-final .final .pl-tools { gap: 12px; padding: 8px 0 12px; }
.phone.is-final .final .pl-cats, .phone.is-final .final .pl-sels { column-gap: 8px; row-gap: 10px; }
.phone.is-final .final .pl-sels { margin-top: 6px; }
.phone.is-final .final .pl-cats .chip { padding: 0 16px; }
.phone.is-final .final .pl-cathead { padding: 28px 16px 6px; }
.phone.is-final .final .pl-section:first-of-type .pl-cathead { padding-top: 20px; }
.phone.is-final .final .pl-section .final-plans { padding-bottom: 4px; }
.phone.is-final .final .final-row.pl-row { position: relative; gap: 14px; padding: 14px 16px; border-bottom: 0; }
.phone.is-final .final .final-row.pl-row::after { content: ""; position: absolute; left: calc(16px + 64px + 14px); right: 0; bottom: 0; border-bottom: 0.5px solid var(--separator); }
.phone.is-final .final .final-plans > li:last-child > .pl-row::after { display: none; }
.phone.is-final .final .pl-row .row-text { gap: 4px; padding-top: 1px; }

/* The sheet's title bar matches the sheet (it stays sticky, so it keeps a fill). */
.phone.is-final .sheet .sheet-bar { background: inherit; }
/* Search on the title line (Arturo, 2026-11-15): a field on wide screens, a magnifier on the phone. */
.phone.is-final .final .final-line.has-search h1 { flex: none; }
.phone.is-final .final .final-line .head-search { flex: 1 1 auto; min-width: 120px; margin: 0 4px 0 12px; }
.phone.is-final .final .final-line .head-search input { height: 40px; }
.phone.is-final .final .final-line.is-searching { gap: 8px; padding-top: 6px; padding-bottom: 2px; }
.phone.is-final .final .final-line.is-searching .head-search { margin: 0; }
.phone.is-final .final .icon-search {
  width: 44px; height: 44px; padding: 4px; border: 0; border-radius: 999px; background: var(--fill); background-clip: content-box; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.phone.is-final .final .icon-search::before { content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='6.5'/><path d='m16 16 4.5 4.5'/></svg>") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='6.5'/><path d='m16 16 4.5 4.5'/></svg>") center / 20px 20px no-repeat; }
/* Filters as questions (Arturo, 2026-11-15): phone and tablet get a row of buttons with small menus; the laptop gets a column. */
@keyframes pl-panel-in { from { opacity: 0; } to { opacity: 1; } }
.phone.is-final .final .pl-caret { width: 10px; height: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m3 4.5 3 3 3-3'/></svg>") center / 10px 10px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m3 4.5 3 3 3-3'/></svg>") center / 10px 10px no-repeat; }
.phone.is-final .final .pl-tools.is-dd { padding: 4px 0 8px; }
.phone.is-final .final .pl-ddrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 16px; }
.phone.is-final .final .pl-ddbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 14px; border-radius: 999px; white-space: nowrap; font-weight: 500; }
.phone.is-final .final .pl-ddbtn.is-set { background: var(--accent-button); color: var(--accent-on); box-shadow: none; border-color: var(--accent-button); }
.phone.is-final .final .pl-ddbtn .cat-ico { width: 18px; height: 18px; }
.phone.is-final .final .pl-dd-wrap { position: relative; display: inline-flex; }
.phone.is-final .final .pl-dd-wrap.is-open { z-index: 40; }
.phone.is-final .final .pl-dd-wrap > button:not(.pl-dd-back) { position: relative; z-index: 2; }
.phone.is-final .final .pl-dd-back { position: fixed; inset: 0; z-index: 1; border: 0; padding: 0; margin: 0; background: transparent; cursor: default; }
.phone.is-final .final .pl-dd { position: absolute; z-index: 3; top: calc(100% + 6px); left: 0; min-width: 230px; padding: 6px; display: flex; flex-direction: column; animation: pl-panel-in 140ms ease both; }
/* Menus open from the button's left edge; app.js slides one back in if it would run off the right (2026-11-22: the
   old right-align from the third button on put Dónde's menu off the left edge once Servicio wrapped the row). */
.phone.is-final .final .pl-dd > button[role^="menuitem"], .phone.is-final .final .pl-dd > button[role="checkbox"] { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; text-align: left; white-space: nowrap; }
@media (hover: hover) { .phone.is-final .final .pl-dd > button[role^="menuitem"]:hover, .phone.is-final .final .pl-dd > button[role="checkbox"]:hover { background: var(--fill); } }
.phone.is-final .final .pl-dd-check { width: 16px; height: 16px; flex: none; }
.phone.is-final .final [aria-checked="true"] > .pl-dd-check { background: var(--accent); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5 9-10'/></svg>") center / 16px 16px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5 9-10'/></svg>") center / 16px 16px no-repeat; }
.phone.is-final .final .pl-dd [aria-checked="true"] { font-weight: 600; }
.phone.is-final .final .pl-dd-label { flex: 1; }
.phone.is-final .final .pl-dd-n, .phone.is-final .final .side-n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--footnote-size); margin-left: 16px; }
.phone.is-final .final .cat-ico.is-blank { background: none; }
.phone.is-final .final .pl-dd-done { align-self: flex-end; min-height: 44px; }
.phone.is-final .final .pl-dd .pl-check, .phone.is-final .final .final-side .pl-check { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid var(--separator); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
/* Laptop: the filter column, left of the list. */
@media (min-width: 1100px) {
  .final.is-split.has-side { --side-w: 220px; --list-w: calc(var(--left-w) - var(--side-w)); }
  .phone.is-final .final.is-split.has-side .final-split { grid-template-columns: var(--side-w) var(--list-w) minmax(0, 1fr); }
  .phone.is-final .final .final-side { min-height: calc(100dvh - var(--chrome-h, 44px)); max-height: calc(100dvh - var(--chrome-h, 44px)); overflow: auto; padding: 14px 12px 96px; box-sizing: border-box; border-right: 0.5px solid var(--separator); /* room to scroll the last names above the switch */ background: color-mix(in srgb, var(--ink) 3%, var(--bg)); }
  .phone.is-final .final .final-side .side-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 4px; }
  .phone.is-final .final .final-side h2 { margin: 0; font-size: var(--title3-size, 20px); }
  .phone.is-final .final .final-side h3 { margin: 18px 4px 4px; font-size: var(--footnote-size); font-weight: 600; color: var(--muted); }
  .phone.is-final .final .final-side .side-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: var(--callout-size, 16px); text-align: left; }
  .phone.is-final .final .final-side .side-row:hover { background: var(--fill); }
  .phone.is-final .final .final-side .side-row[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); font-weight: 600; }
  .phone.is-final .final .final-side .side-row .cat-ico { width: 18px; height: 18px; }
  /* Comer's food types, right under it (2026-11-16). */
  .phone.is-final .final .final-side .side-sub { margin: 2px 0 6px 17px; padding-left: 11px; border-left: 1.5px solid var(--separator); }
  .phone.is-final .final .final-side .side-row.is-sub { font-size: var(--subhead-size, 15px); }
  /* Tipo de comida and Servicio, when both are under Comer (2026-11-22). */
  .phone.is-final .final .final-side .side-subh { margin: 8px 8px 2px; font-size: var(--caption-size, 12px); font-weight: 600; color: var(--muted); }
  .phone.is-final .final .final-side .side-label { flex: 1; }
  .phone.is-final .final .final-side .side-radio { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--separator); box-sizing: border-box; }
  .phone.is-final .final .final-side [aria-pressed="true"] > .side-radio { border: 5px solid var(--accent-button); }
  .phone.is-final .final .final-side [aria-checked="true"] > .pl-check { background: var(--accent-button); border-color: var(--accent-button); }
}
.phone.is-final .final [aria-checked="true"] > .pl-check { background: var(--accent-button); border-color: var(--accent-button); }
.phone.is-final .final [aria-checked="true"] > .pl-check::after { content: ""; width: 14px; height: 14px; background: var(--accent-on); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5 9-10'/></svg>") center / 14px 14px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5 9-10'/></svg>") center / 14px 14px no-repeat; }
.phone.is-final .final .pl-dd .is-zero, .phone.is-final .final .final-side .is-zero { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .phone.is-final .final .pl-dd { animation: none; } }

/* Programar (Arturo, 2026-11-15): the when line, and a day picker that shows what's on each day. */
.phone.is-final .final .detail-whenrow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; }
.phone.is-final .final .detail-whenrow .detail-when { margin: 0; }
.phone.is-final .final .detail-when.is-unscheduled { color: var(--muted); }
/* Programar leads the Sitio web / Google Maps row (Arturo, 2026-11-24): a button styled as .detail-link. */
.phone.is-final .final .detail-prog { border: 0; font: inherit; font-weight: 600; letter-spacing: inherit; cursor: pointer; }
.phone.is-final .prog-ico { width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><rect x='3.5' y='5' width='17' height='15.5' rx='2.5'/><path d='M3.5 9.5h17M8 3v4M16 3v4M12 12.5v5M9.5 15h5'/></svg>") center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><rect x='3.5' y='5' width='17' height='15.5' rx='2.5'/><path d='M3.5 9.5h17M8 3v4M16 3v4M12 12.5v5M9.5 15h5'/></svg>") center / 18px 18px no-repeat; }
/* Horas: plans without an exact hour, above the hours. */
.phone.is-final .final .h-loose { display: flex; flex-direction: column; gap: 6px; margin: 4px 16px 12px; }
.phone.is-final .final .h-loose-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--elevated, var(--bg))); color: var(--ink); font: inherit; text-align: left; }
.phone.is-final .final .h-loose-when { flex: none; min-width: 84px; font-size: var(--footnote-size); font-weight: 600; color: var(--muted); }
.phone.is-final .final .h-loose-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone.is-final .final .h-free { margin: 4px 16px 12px; padding: 0 12px; min-height: 44px; display: flex; align-items: center; border-radius: 12px; background: var(--fill); color: var(--ink); font-weight: 600; }

/* Editar, Hecho, who-and-when, Historial, Eliminar, collection routes (Arturo, 2026-11-15: "build everything we were missing"). */
.phone.is-final .final .detail-new { position: relative; }
.phone.is-final .final .round-edit { position: absolute; z-index: 5; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.45); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); display: inline-flex; align-items: center; justify-content: center; }
.phone.is-final .final .round-edit::after { content: ""; width: 20px; height: 20px; background: #fff; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4L19 9l-4-4L4 16v4z'/><path d='m13.5 6.5 4 4'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4L19 9l-4-4L4 16v4z'/><path d='m13.5 6.5 4 4'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .final .detail-new:not(:has(.ph)) .round-edit { background: var(--fill); backdrop-filter: none; -webkit-backdrop-filter: none; }
.phone.is-final .final .detail-new:not(:has(.ph)) .round-edit::after { background: var(--ink); }
.phone.is-final .final .detail-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.phone.is-final .final .detail-done { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink); font: inherit; font-weight: 600; }
.phone.is-final .final .detail-done.is-on { background: color-mix(in srgb, #2e7d32 16%, var(--elevated, var(--bg))); color: var(--ink); }
.phone.is-final .done-ico { width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='m8 12.5 2.8 2.8L16.5 9.5'/></svg>") center / 18px 18px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='m8 12.5 2.8 2.8L16.5 9.5'/></svg>") center / 18px 18px no-repeat; }
.phone.is-final .final .detail-done.is-on .done-ico { background: #2e7d32; }
.phone.is-final .final .detail-hist { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin: 16px 0 0; padding: 0; border: 0; border-top: 0.5px solid var(--separator); background: none; color: var(--muted); font: inherit; font-size: var(--footnote-size); text-align: left; }
.phone.is-final .final .detail-hist-more { color: var(--accent); font-weight: 600; }
.phone.is-final .sheet .final-hist { list-style: none; margin: 0; padding: 0; }
.phone.is-final .sheet .final-hist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 0.5px solid var(--separator); }
.phone.is-final .sheet .final-hist .hist-text { flex: 1; min-width: 0; }
.phone.is-final .sheet .final-hist .hist-when { display: block; color: var(--muted); font-size: var(--footnote-size); margin-top: 2px; }
.phone.is-final .sheet .final-hist li.is-undone .hist-text { color: var(--muted); text-decoration: line-through; }
.phone.is-final .sheet .final-hist li.is-undone .hist-when { text-decoration: none; }
.phone.is-final .sheet .final-hist .btn-text { min-height: 44px; flex: none; }
.phone.is-final .sheet .hist-toast { margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--fill); font-size: var(--footnote-size); }
.phone.is-final .sheet textarea { width: 100%; box-sizing: border-box; font: inherit; }
.phone.is-final .sheet .btn.danger { background: #b3261e; color: #fff; border-color: #b3261e; }
.phone.is-final .sheet .btn-text.danger { color: #b3261e; }
.phone.is-final .sheet .edit-delete { display: block; margin: 12px auto 0; min-height: 44px; }
.phone.is-final .route-head { margin: 12px 0 4px; color: var(--muted); font-size: var(--footnote-size); font-weight: 600; }
.phone.is-final .route-stop { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; color: var(--ink); text-decoration: none; border-radius: 10px; }
@media (hover: hover) { .phone.is-final .route-stop:hover { background: var(--fill); } }
.phone.is-final .pl-num-badge.is-inline { position: static; flex: none; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--accent-button); color: var(--accent-on); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.phone.is-final .final .map-pop.is-route { min-width: 280px; }
/* Nota matches the other fields. */
.phone.is-final .sheet .field textarea { width: 100%; min-height: 88px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--fill); color: var(--ink); font: inherit; font-size: var(--body-size); line-height: 1.35; resize: vertical; box-sizing: border-box; }
.phone.is-final .sheet .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Categoría matches the text fields; Eliminar stays readable on dark themes. */
.phone.is-final .sheet .field select { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background-color: var(--fill); color: var(--ink); font: inherit; font-size: var(--body-size); }
.phone.is-final .sheet .field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.phone.is-final.dark .sheet .btn-text.danger { color: #ff8a80; }
/* Itinerario: the trip's named days. */
.phone.is-final .final .dayblock h2 .day-tag { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--bg)); color: var(--accent); font-size: var(--footnote-size); font-weight: 700; vertical-align: 2px; }

/* Itinerario headings can carry more than one tag (a named day plus an arrival). */
.phone.is-final .final .dayblock h2 .day-tag + .day-tag { margin-left: 4px; }
/* Hover: rounded like the card, nothing moves (Arturo, 2026-11-15). */
@media (hover: hover) {
  .phone.is-final .final .v-card .ec:hover, .phone.is-final .final .board-card:hover, .phone.is-final .final .board-card .ec:hover { transform: none; background-color: var(--elevated, #fff); box-shadow: 0 0 0 1px var(--separator), var(--shadow-sm, 0 1px 2px rgba(0,0,0,.06)); border-radius: 14px; }
  .phone.is-final .final .v-card.is-selected > .ec:hover, .phone.is-final .final .board-card.is-selected:hover { background: color-mix(in srgb, var(--accent) 10%, var(--elevated)); box-shadow: 0 0 0 1px var(--accent); }
  .phone.is-final .final .final-row:hover { border-radius: 0; }
  .phone.is-final .final .v-card:hover { background: transparent; } /* the card itself shows hover, rounded; not its square wrapper */
}
/* Back to the filters: hidden until their row has scrolled under the header. */
.phone.is-final .final .icon-filtros-up { display: none; position: relative; width: 44px; height: 44px; padding: 4px; border: 0; border-radius: 999px; background: var(--fill); background-clip: content-box; color: var(--ink); align-items: center; justify-content: center; }
.phone.is-final .final .final-head.is-past-filters .icon-filtros-up { display: inline-flex; animation: pl-panel-in 160ms ease both; }
.phone.is-final .final .icon-filtros-up::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M4 7h10M18 7h2M4 17h4M12 17h8'/><circle cx='16' cy='7' r='2'/><circle cx='10' cy='17' r='2'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M4 7h10M18 7h2M4 17h4M12 17h8'/><circle cx='16' cy='7' r='2'/><circle cx='10' cy='17' r='2'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .final .icon-filtros-up .pl-count-badge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 12px; background: var(--accent-button); color: var(--accent-on); }

/* Programar, full screen (phone, tablet) or in the detail pane (laptop). One scroll. */
.phone.is-final .final .prog-page { min-height: calc(100dvh - var(--chrome-h, 44px)); background: var(--bg); }
.phone.is-final .final .prog-bar { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; min-height: 52px; padding: 4px 8px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 0.5px solid var(--separator); }
.phone.is-final.is-final .final.is-prog .prog-bar { top: var(--chrome-h, 44px); }
.phone.is-final .final .prog-bar h1 { margin: 0; font-size: var(--headline-size); font-weight: 600; text-align: center; }
.phone.is-final .final .prog-bar .btn-text { min-height: 44px; padding: 0 8px; justify-self: start; }
.phone.is-final .final .prog-bar .btn-text.is-strong { justify-self: end; font-weight: 700; }
.phone.is-final .final .prog-body { max-width: 680px; margin: 0 auto; padding: 12px 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
.phone.is-final .final .prog-for { margin: 4px 0 8px; font-size: var(--title3-size); font-weight: 700; }
.phone.is-final .final .prog-h { margin: 20px 0 8px; font-size: var(--footnote-size); font-weight: 600; color: var(--muted); text-transform: none; }
.phone.is-final .final .prog-days { display: flex; flex-direction: column; gap: 8px; }
.phone.is-final .final .prog-day { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; border: 1px solid var(--separator); border-radius: 14px; background: var(--elevated, var(--bg)); color: var(--ink); font: inherit; text-align: left; }
.phone.is-final .final .prog-day.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--elevated, var(--bg))); }
.phone.is-final .final .prog-num { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--fill); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--headline-size); font-variant-numeric: tabular-nums; }
.phone.is-final .final .prog-day.is-on .prog-num { background: var(--accent-button); color: var(--accent-on); }
.phone.is-final .final .prog-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.phone.is-final .final .prog-plans { color: var(--ink); opacity: 0.8; font-size: var(--footnote-size); }
.phone.is-final .final .prog-here { color: var(--muted); font-size: var(--footnote-size); }
.phone.is-final .final .prog-tag { font-style: normal; display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--bg)); color: var(--accent); font-size: var(--caption-size); font-weight: 700; vertical-align: 1px; }
.phone.is-final .final .prog-modes { margin-bottom: 8px; }
.phone.is-final .final .prog-mode { border-radius: 999px; padding: 0 14px; }
.phone.is-final .final .prog-mode[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.phone.is-final .final .prog-hours { display: flex; gap: 12px; margin-top: 8px; }
.phone.is-final .final .prog-hours .field { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.phone.is-final .final .prog-hours input { height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--fill); color: var(--ink); font: inherit; font-size: var(--body-size); }
.phone.is-final .final .prog-clear { width: 100%; margin-top: 24px; }
/* Quién opens in the page under the filter row: full width, two columns where there's room, one scroll. */
.phone.is-final .final .pl-dd.pl-dd-inline { position: static; flex: 1 0 100%; min-width: 0; margin-top: 2px; display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 600px) { .phone.is-final .final .pl-dd.pl-dd-inline { grid-template-columns: 1fr 1fr; } }
.phone.is-final .final .pl-dd.pl-dd-inline .pl-dd-done { grid-column: 1 / -1; justify-self: end; }
@media (prefers-reduced-motion: reduce) { .phone.is-final .final .final-head.is-past-filters .icon-filtros-up { animation: none; } }
.phone.is-final .final .pl-dd-done { min-width: 64px; padding: 0 12px; }

/* Calendario | Planes: icon and label centered on one line. */
.phone.is-final .final-switch > button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1; }
.phone.is-final .final-switch > button svg { display: block; flex: none; }
.phone.is-final .final-switch > button span { display: block; line-height: 1.2; }
/* The detail is one page: photo and text scroll together, never a text box scrolling on its own under a fixed
   photo (a shared rule from older screens capped it at the screen height; on the laptop that was a scroll in a scroll). */
.phone.is-final .final .detail-new.has-nav { display: block; max-height: none; overflow: visible; }
.phone.is-final .final .detail-new.has-nav .pad { overflow: visible; min-height: 0; }
/* The title shrink is a scroll-driven animation where the browser supports it (Safari 26+, Chrome 115+):
   the compositor ties it to the scroll position, so it can't fall behind a fast flick the way scroll events do
   (Arturo, 2026-11-15). Older browsers keep the --collapse transform above, set from a scroll listener.
   nearest = the page on phone and tablet, the list pane on the laptop. */
@keyframes final-title-shrink { from { transform: scale(1); } to { transform: scale(0.65); } }
@supports (animation-timeline: scroll()) {
  .phone.is-final .final-line h1 {
    animation: final-title-shrink linear both;
    animation-timeline: scroll(nearest block);
    animation-range: 0 52px;
  }
}

/* Café (Arturo, 2026-11-16). */
.phone.is-final .cat-ico[data-cat="cafe"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4 9h12v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V9zM16 10.5h1.5a2.5 2.5 0 0 1 0 5H16M8 3.5c-.6.8-.6 1.7 0 2.5M12 3.5c-.6.8-.6 1.7 0 2.5'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4 9h12v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V9zM16 10.5h1.5a2.5 2.5 0 0 1 0 5H16M8 3.5c-.6.8-.6 1.7 0 2.5M12 3.5c-.6.8-.6 1.7 0 2.5'/></svg>") center / 20px 20px no-repeat; }
/* Panadería (a loaf), Helado (a cone), Dulces (a wrapped sweet): 2026-11-16. */
.phone.is-final .cat-ico[data-cat="panaderia"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M5 11a4.5 4.5 0 0 1 3-7.5c1.5 0 2.6.6 4 .6s2.5-.6 4-.6a4.5 4.5 0 0 1 3 7.5V19a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8zM9.5 8.5l-1 2.5M14.5 8.5l-1 2.5'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M5 11a4.5 4.5 0 0 1 3-7.5c1.5 0 2.6.6 4 .6s2.5-.6 4-.6a4.5 4.5 0 0 1 3 7.5V19a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8zM9.5 8.5l-1 2.5M14.5 8.5l-1 2.5'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .cat-ico[data-cat="helado"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M7 10a5 5 0 0 1 10 0M6.5 10h11L12 21 6.5 10z'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M7 10a5 5 0 0 1 10 0M6.5 10h11L12 21 6.5 10z'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .cat-ico[data-cat="dulces"] { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M8.5 8.5a4.95 4.95 0 1 1 7 7 4.95 4.95 0 0 1-7-7zM8.5 8.5 7 4 3.5 6.5l3 3.5M15.5 15.5 17 20l3.5-2.5-3-3.5'/></svg>") center / 20px 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M8.5 8.5a4.95 4.95 0 1 1 7 7 4.95 4.95 0 0 1-7-7zM8.5 8.5 7 4 3.5 6.5l3 3.5M15.5 15.5 17 20l3.5-2.5-3-3.5'/></svg>") center / 20px 20px no-repeat; }

/* What a plan is, under its day: every category, then the food types (2026-11-16). */
.phone.is-final .final .detail-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 10px; color: var(--muted); font-size: var(--subhead-size, 15px); }
.phone.is-final .final .detail-cat { display: inline-flex; align-items: center; gap: 6px; }
.phone.is-final .final .detail-cat .cat-ico { width: 16px; height: 16px; -webkit-mask-size: 16px 16px; mask-size: 16px 16px; }
.phone.is-final .final .detail-foods::before { content: "·"; margin-right: 14px; }
.phone.is-final .sheet .ed-cats .hint { margin: -2px 0 8px; }
.phone.is-final .sheet .ed-main { font-size: var(--caption-size, 12px); color: var(--muted); margin-left: 2px; }

/* Where a plan's photo came from (2026-11-22). */
.phone.is-final .final .detail-credit { margin: 20px 0 0; font-size: var(--caption-size, 12px); color: var(--muted); }
.phone.is-final .final .detail-credit a { color: inherit; }
/* Editar's sheet is drawn outside .final (extras()), so these hang off .sheet. */
.phone.is-final .sheet .ed-photo-row { display: flex; align-items: center; gap: 14px; }
.phone.is-final .sheet .ed-photo-row .pl-thumb { position: relative; width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; background: var(--fill); }
.phone.is-final .sheet .ed-photo-row .pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.phone.is-final .sheet .ed-photo-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; }
/* Votar (2026-11): the Lista row. One grid, so the layouts only change its areas: photo and title side by side,
   then the note and the footer across. The title button stretches over the row (a tap anywhere opens the plan);
   the heart sits above it. */
.phone.is-final .final .pl-item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "pic hd" "ds ds" "ft ft"; column-gap: 12px; row-gap: 6px; align-items: center; padding: 14px 16px 6px; }
.phone.is-final .final .pl-item::after { content: ""; position: absolute; left: 16px; right: 0; bottom: 0; border-bottom: 0.5px solid var(--separator); }
.phone.is-final .final .pl-list > .pl-item:last-child::after { display: none; }
.phone.is-final .final .pl-item .pl-thumb { grid-area: pic; width: 56px; height: 56px; border-radius: 10px; }
.phone.is-final .final .pl-item .row-text { grid-area: hd; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.phone.is-final .final .pl-item .row-text strong { white-space: normal; font-size: var(--headline-size); line-height: var(--headline-lh, 22px); font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.phone.is-final .final .pl-open { padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.phone.is-final .final .pl-open::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.phone.is-final .final .pl-open:focus-visible { outline: none; }
.phone.is-final .final .pl-open:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.phone.is-final .final .pl-meta { font-size: var(--footnote-size); line-height: 18px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phone.is-final .final .pl-item .pl-why { grid-area: ds; margin: 0; font-size: var(--subhead-size, 15px); line-height: 20px; color: var(--ink); opacity: 1; -webkit-line-clamp: 3; }
.phone.is-final .final .pl-foot { grid-area: ft; display: flex; align-items: center; gap: 6px; min-height: 44px; min-width: 0; font-size: var(--footnote-size); line-height: 18px; color: var(--muted); }
.phone.is-final .final .pl-foot > * { min-width: 0; }
.phone.is-final .final .pl-voters { display: inline-flex; align-items: center; flex: none; }
.phone.is-final .final .pl-voters .avatar { width: 22px; min-width: 22px; height: 22px; font-size: 9px; }
.phone.is-final .final .pl-voters .avatars.is-over .avatar { box-shadow: 0 0 0 1.5px var(--grouped); }
.phone.is-final .final .pl-voters .avatars.is-over .avatar + .avatar { margin-left: -3px; }
.phone.is-final .final .pl-rows[data-filas="2col"] .pl-voters .avatars.is-over .avatar { box-shadow: 0 0 0 1.5px var(--elevated); }
.phone.is-final .final .pl-voters .avatars.is-over .avatar.is-me, .phone.is-final .final .pl-rows[data-filas="2col"] .pl-voters .avatars.is-over .avatar.is-me { box-shadow: 0 0 0 1.5px var(--accent); }
/* A very narrow footer (320 px with a time and five faces) gives way at the when text, never at the heart. */
.phone.is-final .final .pl-foot .pl-when { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone.is-final .final .pl-added { font-size: var(--caption-size, 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The map's hover highlight lights the whole row, not the buttons inside it (maps.js tags every [data-id]). */
.phone.is-final .final .final-list .pl-item .pl-open.is-maphot, .phone.is-final .final .final-list .pl-item .pl-heart.is-maphot:not(:hover) { background: none; }
.phone.is-final .final .pl-heart { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; margin: 0 -10px 0 auto; padding: 0 10px; border: 0; border-radius: 22px; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.phone.is-final .final .pl-heart .vote-ico { width: 24px; height: 24px; -webkit-mask-size: 22px 22px; mask-size: 22px 22px; }
.phone.is-final .final .pl-heart-n { min-width: 16px; text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.phone.is-final .final .pl-heart[aria-pressed="true"], .phone.is-final .final .pl-heart[aria-pressed="true"] .pl-heart-n { color: var(--accent); }
.phone.is-final .final .pl-heart:active .vote-ico { transform: scale(0.88); }
.phone.is-final .final .pl-heart:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) { .phone.is-final .final .pl-heart:hover { background: var(--fill); } }

/* Votar (2026-11): room for the list. The iPad's Planes column and the laptop's folded list frame up to 1120 px;
   the filter row, the count and the rows centre at the layout's width (Densa 720, Imagen grande 880, 2 columnas
   1120), so the title line never moves between layouts. */
.phone.is-final .final.is-tablet.is-wide .final-col { width: min(1120px, 100%); }
.phone.is-final .final[data-filas] .final-body > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.phone.is-final .final[data-filas="grande"] .final-body > * { max-width: 880px; }
.phone.is-final .final[data-filas="2col"] .final-body > * { max-width: 1120px; }
.phone.is-final .final[data-filas] .final-body > .pl-count { padding: 0 16px; box-sizing: border-box; }
.phone.is-final .final.is-folded .final-list .final-head { max-width: 1120px; margin-left: auto; margin-right: auto; }
@media (min-width: 1100px) {
  .phone.is-final .final.is-split.has-side.is-folded .final-split { grid-template-columns: var(--side-w) minmax(0, 1fr) 64px; }
}
/* The laptop's map button: fixed in the map's top-right corner (in the page between Filtros and the list, outside the
   sticky title line and the scrolling columns, which Safari would clip it to). */
.phone.is-final .final .pl-mapbtn { position: fixed; z-index: 20; top: calc(var(--chrome-h, 0px) + 10px + env(safe-area-inset-top, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); background-color: color-mix(in srgb, var(--elevated) 94%, transparent); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18)); }
@media (hover: hover) { .phone.is-final .final .pl-mapbtn:hover { background-color: color-mix(in srgb, var(--ink) 6%, var(--elevated)); } }
.phone.is-final .final .pl-mapbtn:active { transform: scale(0.94); }
/* Folded: a strip in the map's place. Clicking it brings the map back; the corner button is the keyboard way. */
.phone.is-final .final .pl-strip { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; min-height: calc(100dvh - var(--chrome-h, 44px)); padding-top: 66px; box-sizing: border-box; background: var(--grouped); color: var(--muted); cursor: pointer; }
@media (hover: hover) { .phone.is-final .final .pl-strip:hover { background: color-mix(in srgb, var(--ink) 4%, var(--grouped)); } }
.phone.is-final .final .pl-strip-ico { width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M3.5 6.5 9 4.5l6 2 5.5-2v13l-5.5 2-6-2-5.5 2v-13zM9 4.5v13M15 6.5v13'/></svg>") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M3.5 6.5 9 4.5l6 2 5.5-2v13l-5.5 2-6-2-5.5 2v-13zM9 4.5v13M15 6.5v13'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .final .pl-strip-text { writing-mode: vertical-rl; font-size: 13px; font-weight: 600; }

/* Imagen grande: a 160×120 photo beside everything else. */
.phone.is-final .final .pl-rows[data-filas="grande"] .pl-item { grid-template-columns: 160px minmax(0, 1fr); grid-template-areas: "pic hd" "pic ds" "pic ft"; grid-template-rows: auto auto 1fr; align-items: start; column-gap: 16px; padding: 16px 16px 6px; }
.phone.is-final .final .pl-rows[data-filas="grande"] .pl-thumb { width: 160px; height: 120px; border-radius: 12px; }
.phone.is-final .final .pl-rows[data-filas="grande"] .pl-why { max-height: 60px; }
.phone.is-final .final .pl-rows[data-filas="grande"] .pl-foot { align-self: end; }
.phone.is-final .final .pl-rows[data-filas="grande"] .pl-item::after { left: 192px; }

/* 2 columnas: cards, sized by the list's own width (not the window's). */
.phone.is-final .final .pl-rows[data-filas="2col"] { container-type: inline-size; }
.phone.is-final .final .pl-rows[data-filas="2col"] .pl-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 4px 16px 24px; }
.phone.is-final .final .pl-rows[data-filas="2col"] .pl-item { grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "pic hd" "pic ds" "pic ft"; grid-template-rows: auto auto 1fr; align-items: start; column-gap: 0; row-gap: 6px; padding: 0; border-radius: var(--r-card, 14px); background: var(--elevated); box-shadow: 0 0 0 0.5px var(--separator), 0 1px 3px rgba(0, 0, 0, 0.05); overflow: hidden; }
@media (hover: hover) { .phone.is-final .final .pl-rows[data-filas="2col"] .pl-item:hover { box-shadow: 0 0 0 0.5px var(--separator), 0 4px 14px rgba(0, 0, 0, 0.08); } }
.phone.is-final .final .pl-rows[data-filas="2col"] .pl-item::after { display: none; }
.phone.is-final .final .pl-rows[data-filas="2col"] .pl-thumb { width: 100%; height: 100%; min-height: 184px; border-radius: 0; }
.phone.is-final .final .pl-rows[data-filas="2col"] .row-text { padding: 14px 16px 0 14px; }
.phone.is-final .final .pl-rows[data-filas="2col"] .pl-why { margin: 0 16px 0 14px; }
.phone.is-final .final .pl-rows[data-filas="2col"] .pl-foot { align-self: end; flex-wrap: wrap; row-gap: 0; padding: 0 16px 4px 14px; }
.phone.is-final .final .pl-rows[data-filas="2col"] .pl-foot .pl-when { flex: 1 0 100%; padding-top: 6px; }
.phone.is-final .final .pl-rows[data-filas="2col"] .pl-foot .pl-when + .pl-dot { display: none; }
@container (max-width: 959px) {
  .phone.is-final .final .pl-rows[data-filas="2col"] .pl-list { gap: 16px; }
  .phone.is-final .final .pl-rows[data-filas="2col"] .pl-item { grid-template-columns: 136px minmax(0, 1fr); }
}
@container (max-width: 759px) {
  .phone.is-final .final .pl-rows[data-filas="2col"] .pl-item { grid-template-columns: 112px minmax(0, 1fr); }
  .phone.is-final .final .pl-rows[data-filas="2col"] .pl-added, .phone.is-final .final .pl-rows[data-filas="2col"] .pl-dot:has(+ .pl-added) { display: none; }
}

/* Votar (2026-11): a heart you just turned on pops once (only the one you tapped: app.js sets is-pop for one render).
   With reduced motion, nothing moves: no pop, no press scale (fold, layout and map switches already skip the view
   transition then). */
@keyframes pl-pop { 50% { transform: scale(1.18); } }
.phone.is-final .final .pl-heart.is-pop .vote-ico { animation: pl-pop 220ms var(--ease, ease) var(--pop-delay, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .phone.is-final .final .pl-heart.is-pop .vote-ico { animation: none; }
  .phone.is-final .final .pl-heart:active .vote-ico, .phone.is-final .final .pl-mapbtn:active { transform: none; }
}

/* The price right after a restaurant's name (2026-11-23): muted, regular weight, never split from its $ signs. */
.phone.is-final .final .pl-price { font-weight: 400; color: var(--muted); white-space: nowrap; letter-spacing: 0.02em; }
/* One-line rows cut a long name short but keep its price in view. */
.phone.is-final .final .row-text strong.has-price { display: flex; min-width: 0; }
.phone.is-final .final .row-text strong.has-price .pl-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.phone.is-final .final .row-text strong.has-price .pl-price { flex: none; margin-left: 0.3em; }
