/* Test de Huésped prototype
   Scene: a host taps a link from the hosts' WhatsApp group, phone in one hand.
   The idea: a friend marked up your listing by hand.
   Brand: turquoise. A dark teal pen for what is written, a bright turquoise highlighter behind
   it, teal buttons, light grey blocks. Type: Host Grotesk + Shantell Sans.
   Red, yellow and green belong to the score levels and are not used for anything else.
   Handwriting only for short notes: photo slips (the prompt asks for 3 to 8 words), ticks and
   asides of a few words. Anything a host reads as a paragraph is set in print. */

/* Fonts served from the app (OFL, files from Google Fonts), so no visitor's browser asks Google
   for them. Variable fonts: one file per subset covers every weight in the range. Latin covers
   Spanish; latin-ext the rest of what hosts write. */
@font-face {
  font-family: "Host Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/host-grotesk-latin-5602e896.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Host Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/host-grotesk-latin-ext-33d67b6c.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Shantell Sans"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/assets/shantell-sans-latin-cdbb68a0.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Shantell Sans"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/assets/shantell-sans-latin-ext-ce6ca5cd.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.008 215);
  --line: oklch(0.88 0.015 215);
  --ink: oklch(0.22 0.025 215);
  --muted: oklch(0.46 0.025 215);
  --alert: oklch(0.5 0.19 27);

  --pen: oklch(0.43 0.08 215);          /* handwriting, drawn strokes, links */
  --marker: oklch(0.87 0.11 205);       /* highlighter: marks behind words and notes, score sticker */
  --marker-soft: oklch(0.95 0.045 205);
  --hand-mark: var(--marker);           /* the stripe behind every handwritten note */
  --link: var(--pen);

  /* Primary buttons: teal, never black. Hover gets brighter, not darker. */
  --btn-bg: oklch(0.45 0.085 215);
  --btn-fg: oklch(1 0 0);
  --btn-hover: oklch(0.53 0.09 212);

  /* Filled blocks (unlock box, price band): quiet grey, so the button is the strong colour in them */
  --block: var(--surface);
  --on-block: var(--ink);

  /* Score levels. Always paired with a text label, never color alone. */
  --score-low: oklch(0.64 0.21 27);
  --score-mid: oklch(0.87 0.17 92);
  --score-high: oklch(0.72 0.17 150);

  --font: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--font);
  --display-weight: 800;
  --display-weight-2: 700;
  --display-tracking: -0.03em;
  --hand: "Shantell Sans", "Comic Sans MS", cursive;
  --hand-weight: 600;

  /* The two small sizes. Nothing a host reads goes below --text-xs (14px). */
  --text-sm: 0.9375rem;
  --text-xs: 0.875rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-paper: 0 0 0 1px var(--line), 0 22px 34px -22px oklch(0.22 0.025 215 / 0.5);

  --z-sticky: 10;
  --z-toast: 40;
  --z-proto: 50;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; overflow-x: clip; }

[hidden] { display: none !important; }

img { display: block; max-width: 100%; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 { text-wrap: balance; }

h1, h2, .brand, .score-big, .sticker strong, .part-score strong, .paper-title {
  font-family: var(--display); font-synthesis-weight: none;
}

h1 {
  font-size: clamp(2.25rem, 6.4vw + 0.5rem, 4.25rem);
  font-weight: var(--display-weight);
  line-height: 1.1;
  letter-spacing: var(--display-tracking);
}

h2 {
  font-size: clamp(1.5rem, 2.4vw + 0.9rem, 2.375rem);
  font-weight: var(--display-weight-2);
  line-height: 1.15;
  letter-spacing: calc(var(--display-tracking) * 0.7);
}

h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }

h1:focus { outline: none; }

p, li, dd, summary, .note, .todo label strong { text-wrap: pretty; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: var(--z-proto);
  background: var(--ink); color: var(--bg); padding: 0.75rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 38rem); }

.lead { font-size: clamp(1.125rem, 1vw + 0.95rem, 1.3125rem); line-height: 1.45; max-width: 34em; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: var(--text-sm); }
.hand {
  font-family: var(--hand); font-weight: 600; color: var(--pen);
  text-decoration: underline var(--hand-mark); text-decoration-thickness: 0.6em;
  text-underline-offset: -0.4em; text-decoration-skip-ink: none;
}
/* Every handwritten bit: same x-height across brands, never a faked bold */
.hand, .slip, .steps-how li::before, .thumbs .more, .amen li::before {
  font-weight: var(--hand-weight); font-synthesis-weight: none;
}

/* Highlighter swipe: a real mark, not a gradient */
mark {
  background: none; color: inherit; position: relative;
  white-space: nowrap; isolation: isolate;
}
mark::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0.12em -0.16em 0.02em;
  background: var(--marker);
  clip-path: polygon(1% 18%, 99% 8%, 100% 84%, 62% 90%, 0% 96%);
}

/* ---------- Top bar ---------- */

.top-in {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.125rem;
}
.brand { font-weight: var(--display-weight); font-size: 1.1875rem; letter-spacing: -0.02em; text-decoration: none; }
.brand mark { margin-inline: 0.14em; }
.top-in { gap: 1rem; }
@media (max-width: 23rem) { .top-link .acc-label { display: none; } }
.top-link {
  white-space: nowrap;
  font-weight: 600; font-size: var(--text-sm); text-underline-offset: 0.25em;
  padding: 0.65rem 0; min-height: 44px; display: inline-flex; align-items: center;
}

/* ---------- Buttons and fields ---------- */

.btn {
  appearance: none; border: 2px solid var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.375rem; padding: 0.75rem 1.375rem;
  background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 700; line-height: 1.15; text-decoration: none; text-align: center;
  border-radius: 10px;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn.wide { width: 100%; }
.btn[disabled] { background: var(--surface); border-color: var(--line); color: var(--muted); cursor: not-allowed; }

.link {
  appearance: none; background: none; border: 0; padding: 0.4rem 0; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--link);
  text-decoration: underline; text-underline-offset: 0.22em;
}

form label { display: block; font-weight: 600; font-size: var(--text-sm); margin-bottom: 0.4rem; }

.field-row { display: flex; flex-direction: column; gap: 0.625rem; }

input[type="url"], input[type="email"] {
  appearance: none; flex: 1; min-width: 0; width: 100%;
  min-height: 3.375rem; padding: 0.75rem 1rem;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 2px solid var(--ink); border-radius: 10px;
}
input::placeholder { color: var(--muted); opacity: 1; }
input[aria-invalid="true"] { border-color: var(--alert); }

.field-error { color: var(--alert); font-weight: 600; font-size: var(--text-sm); margin-top: 0.5rem; }

@media (min-width: 34rem) {
  .field-row { flex-direction: row; }
  .field-row .btn { flex: none; }
  /* The link form wraps so a third item (the Pegar button on a touch tablet) goes under the field instead of squeezing it. */
  .url-form .field-row { flex-wrap: wrap; }
  .url-form .field-row input { flex: 1 1 14rem; min-width: 0; }
  .url-form .paste-note { flex-basis: 100%; }
}

/* ---------- Annotated printout ---------- */

.print {
  position: relative; margin: 0; padding: 0.5rem;
  background: var(--bg); box-shadow: var(--shadow-paper);
  rotate: -1.2deg;
}
.print-photo { position: relative; aspect-ratio: 3 / 2; container-type: inline-size; }
.print-photo img { width: 100%; height: 100%; object-fit: cover; }
.print figcaption { margin: 0; }

.marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.marks path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.marks .pen { stroke: var(--pen); stroke-width: 11; stroke-dasharray: 1; animation: draw 0.7s var(--ease) both; }
.marks .halo { stroke: var(--bg); stroke-width: 22; opacity: 0.85; animation: fade 0.5s linear both; }
@container (min-width: 27rem) {
  .marks .pen { stroke-width: 7.5; }
  .marks .halo { stroke-width: 16; }
}

.mark-1 path:nth-child(1) { animation-delay: 0.45s; }
.mark-1 path:nth-child(2) { animation-delay: 0.35s; }
.mark-1 path:nth-child(3) { animation-delay: 1.05s; }
.mark-1 path:nth-child(4) { animation-delay: 1s; animation-duration: 0.45s; }
.mark-2 path:nth-child(1) { animation-delay: 1.75s; }
.mark-2 path:nth-child(2) { animation-delay: 1.7s; animation-duration: 0.45s; }

.slip {
  position: absolute; max-width: 48%; margin: 0; padding: 0.35em 0.6em;
  background: var(--bg); color: var(--pen);
  font-family: var(--hand); font-weight: 600; line-height: 1.15;
  font-size: clamp(0.8125rem, 4.5cqi, 1.1875rem);
  box-shadow: 0 0 0 1px var(--line), 0 10px 16px -10px oklch(0.22 0.025 215 / 0.6);
  animation: pop 0.45s var(--ease) both;
}
/* Good and bad read apart without reading: a highlighted slip with a tick, a plain one with a cross.
   The mark is the bare pen stroke, no disc behind it. */
.slip.is-good, .slip.is-bad { display: flex; gap: 0.3em; align-items: flex-start; }
.slip-mark {
  flex: none; width: 1.35em; height: 1.35em; margin-top: -0.1em;
  fill: none; stroke: var(--pen); stroke-width: 3.25; stroke-linecap: round; stroke-linejoin: round;
}
.slip.is-good { background: var(--marker-soft); }
/* A v6 finding: what works with a tick, each gap with a cross, the slips' marks */
.finding { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.finding li { display: grid; grid-template-columns: 1.35em 1fr; gap: 0.4rem; align-items: start; line-height: 1.4; text-wrap: pretty; }
.finding .slip-mark { margin-top: 0.025em; }
/* A checklist category (Confianza from code): the points a missing line adds, and "No cuenta" lines in small type */
/* Missing lines: mark, what is missing with what we saw under it, and its points in a right column,
   so the points read down as a sum. Met lines follow after a rule, quieter. */
.part-head .checklist-lead { margin-top: 1.25rem; font-weight: 700; font-size: 1.0625rem; }
.part-head .checklist-lead + .checklist { margin-top: 0.75rem; }
.checklist { gap: 0.625rem; }
.checklist li.is-bad { grid-template-columns: 1.35em 1fr auto; column-gap: 0.5rem; }
.checklist li.is-bad + li.is-bad { margin-top: 0.5rem; }
.checklist .body { display: grid; gap: 0.2rem; }
.checklist .body strong { font-weight: 700; }
.checklist .seen { color: var(--muted); font-size: var(--text-sm); line-height: 1.45; }
.checklist .go { font-size: var(--text-sm); margin-top: 0.15rem; }
.checklist .gain { white-space: nowrap; justify-self: end; font-size: 1.125rem; line-height: 1.2; }
.checklist li.is-bad + li:not(.is-bad) { margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.checklist li.is-good { line-height: 1.35; }
.checklist li.is-na { font-size: var(--text-sm); color: var(--muted); }
.checklist .na-mark { text-align: center; }
.slip-1 { left: -3%; top: 7%; rotate: -4deg; animation-delay: 1.25s; }
.slip-2 { right: -3%; bottom: 8%; rotate: 3deg; animation-delay: 1.95s; }

.sticker {
  position: absolute; top: -1.375rem; right: -0.625rem;
  width: 5.25rem; height: 5.25rem; border-radius: 50%;
  background: var(--marker); color: var(--ink);
  display: grid; place-content: center; text-align: center; line-height: 1;
  rotate: 9deg; box-shadow: 0 10px 18px -10px oklch(0.22 0.025 215 / 0.6);
  animation: pop 0.5s var(--ease) 2.3s both;
}
.sticker strong { font-size: 2.125rem; font-weight: var(--display-weight); letter-spacing: -0.03em; }
.sticker span { font-size: var(--text-xs); font-weight: 600; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; scale: 0.9; translate: 0 6px; } }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- Landing ---------- */

.hero {
  display: grid; gap: clamp(2.5rem, 7vw, 4rem); align-items: center;
  padding-block: clamp(1.5rem, 5vw, 4.5rem) clamp(3rem, 8vw, 6rem);
}
.hero-copy { display: grid; gap: 1.375rem; }
.hero-print { padding-inline: 0.25rem; max-width: 38rem; }
.caption { margin-top: 1.125rem; color: var(--muted); font-size: var(--text-sm); }

@media (min-width: 60rem) {
  .hero { grid-template-columns: 1.08fr 0.92fr; gap: 4.5rem; }
}

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section > h2 { max-width: 20em; margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.checks {
  margin: 0; display: grid; gap: 1.75rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}
.checks > div { border-top: 2px solid var(--ink); padding-top: 1rem; display: grid; gap: 0.3rem; align-content: start; }
.checks dt { font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.01em; }
.checks dd { margin: 0; }
.checks dd.hand { margin-top: 0.35rem; }

.split { display: grid; gap: 3rem; align-items: center; }
.split h2 { margin-bottom: 1.75rem; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; }
}

.steps-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; counter-reset: paso; }
.steps-how li {
  counter-increment: paso; display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 1rem; row-gap: 0.2rem;
}
.steps-how li::before {
  content: counter(paso); grid-row: span 2;
  width: 2.75rem; height: 2.75rem; display: grid; place-content: center;
  font-family: var(--hand); font-weight: 700; font-size: 1.375rem; color: var(--pen);
  border: 2.5px solid var(--pen); border-radius: 52% 48% 56% 44% / 46% 56% 44% 54%;
  rotate: -5deg;
}
.steps-how p { grid-column: 2; max-width: 30em; }

.paper {
  background: var(--bg); box-shadow: var(--shadow-paper);
  padding: clamp(1.25rem, 4vw, 2rem); rotate: 1.2deg;
}
.paper-title { font-weight: var(--display-weight); font-size: 1.3125rem; letter-spacing: -0.01em; margin-bottom: 1rem; }
.paper-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.paper-list li { display: grid; grid-template-columns: 1.625rem 1fr; gap: 0.75rem; }
.paper-list strong { display: block; font-weight: 600; line-height: 1.3; }
.paper-list small { color: var(--muted); font-size: var(--text-xs); }
.paper-list .is-done strong { text-decoration: line-through; text-decoration-color: var(--pen); text-decoration-thickness: 2px; }
.paper-note { margin-top: 1rem; padding-left: 2.375rem; }

.box {
  width: 1.625rem; height: 1.625rem; flex: none; margin-top: 0.05rem;
  border: 2px solid var(--ink); border-radius: 5px; position: relative; background: var(--bg);
}
.box svg { position: absolute; inset: -0.4rem -0.45rem -0.1rem -0.1rem; overflow: visible; }
.box path { fill: none; stroke: var(--pen); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.band { background: var(--block); color: var(--on-block); }
.band-in { display: grid; gap: 2.25rem; padding-block: clamp(3rem, 8vw, 5.5rem); align-items: center; }
.band-in h2 { margin-bottom: 1rem; }
.band-in p { max-width: 30em; font-size: 1.125rem; }
.prices { list-style: none; margin: 0; padding: 0; }
.prices li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: 0.875rem; border-top: 2px solid currentColor; font-size: 1.125rem;
}
.prices li:last-child { border-bottom: 2px solid currentColor; }
.prices strong { font-weight: 800; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
@media (min-width: 56rem) {
  .band-in { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.faq > * { max-width: 46rem; }
.faq details { border-top: 1.5px solid var(--line); }
.faq details:last-child { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.125rem; padding: 1.125rem 0; }
.faq details p { padding-bottom: 1.25rem; max-width: 36em; }

.closing { padding-top: 0; }
.closing h2 { margin-bottom: 1.5rem; }
.closing .url-form { max-width: 38rem; }

.foot { border-top: 1.5px solid var(--line); padding-block: 1.75rem 5rem; color: var(--muted); font-size: var(--text-xs); }

/* ---------- App screens ---------- */

.app { padding-block: clamp(1.25rem, 4vw, 3.5rem) 5rem; }
.app h1 { font-size: clamp(2rem, 4.5vw + 0.8rem, 3.25rem); }
.app h1 + .lead { margin-top: 1rem; }

.cols { display: grid; gap: 2.75rem; }
.col-main, .col-side { min-width: 0; }
@media (min-width: 62rem) {
  .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; align-items: start; }
  .col-main.sticky { position: sticky; top: 1.5rem; }
}

.listing-line { color: var(--muted); font-size: var(--text-sm); }
.listing-line span { color: var(--ink); font-weight: 600; }

.score-h { display: flex; align-items: baseline; gap: 0.25rem; margin-top: 0.75rem; }
.score-big {
  position: relative; display: inline-block; padding: 0.14em 0.3em 0.1em;
  font-size: clamp(5rem, 22vw, 7.5rem); font-weight: var(--display-weight); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.ring { position: absolute; inset: -0.04em -0.1em -0.06em; width: calc(100% + 0.2em); height: calc(100% + 0.1em); overflow: visible; pointer-events: none; }
.ring path {
  fill: none; stroke: var(--pen); stroke-width: 3.2; stroke-linecap: round;
  stroke-dasharray: 1; animation: draw 0.9s var(--ease) 0.9s both;
}
.score-of { font-size: 1.5rem; font-weight: 700; color: var(--muted); }
/* Score header: a small gap (12px) inside a group, a big one (28px) between groups.
   The verdict has no margin: the score's bottom padding, the h1's line box and the verdict's half-leading
   already leave about 12px between the ring's stroke and the verdict's capitals (10px at 360px wide, 13px at 1280px). */
.verdict { margin-top: 0; max-width: 24em; font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); font-weight: 600; line-height: 1.4; color: var(--ink); }
.score-note { color: var(--muted); font-size: var(--text-sm); line-height: 1.5; margin-top: 1.75rem; max-width: 34em; }
.col-main .print { margin-top: 2rem; }
.col-main .scores { margin-top: 2rem; }

.scope { margin-top: 1.5rem; display: grid; gap: 0.875rem; }
.scope p { font-size: var(--text-sm); color: var(--muted); max-width: 34em; }
.scope strong { color: var(--ink); font-weight: 700; }
.thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; }
.thumbs li { flex: 1 1 0; max-width: 5.5rem; aspect-ratio: 4 / 3; background: var(--bg); padding: 0.1875rem; box-shadow: 0 0 0 1px var(--line), 0 8px 12px -9px oklch(0.22 0.025 215 / 0.5); }
.thumbs li:nth-child(odd) { rotate: -1.5deg; }
.thumbs li:nth-child(even) { rotate: 1.2deg; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .more { display: grid; place-content: center; font-family: var(--hand); font-weight: 700; color: var(--pen); font-size: 1.125rem; }

.col-side h2 { font-size: clamp(1.375rem, 1.4vw + 1rem, 1.75rem); }
.col-side > h2 { margin-bottom: 1.25rem; }

.scores { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; align-items: baseline; }
.score-row .name { font-weight: 700; font-size: 1.0625rem; }
.score-row .name em { font-style: normal; margin-left: 0.5rem; font-size: 1rem; }
.score-row .num { font-weight: 800; font-size: 1.3125rem; font-variant-numeric: tabular-nums; }
.score-row .what { grid-column: 1 / -1; color: var(--muted); font-size: var(--text-xs); }
.score-row .bar {
  grid-column: 1 / -1; height: 0.875rem; overflow: hidden; margin-block: 0.5rem 0.4rem;
  border: 2px solid var(--ink); border-radius: 4px; background: var(--bg);
}
.score-row .bar i {
  display: block; height: 100%; background: var(--score-mid);
  transform-origin: left; transform: scaleX(calc(var(--v) / 100));
  animation: grow 0.9s var(--ease) 0.3s both;
}
.lvl-low .bar i, .lvl-low > i { background: var(--score-low); }
.lvl-mid .bar i, .lvl-mid > i { background: var(--score-mid); }
.lvl-high .bar i, .lvl-high > i { background: var(--score-high); }
.score-row .note { grid-column: 1 / -1; font-size: var(--text-sm); }
.score-row .note strong { font-weight: 700; }
.score-row .finding { grid-column: 1 / -1; font-size: var(--text-sm); }
.score-row.locked .name { color: var(--muted); }
.score-row.locked .num { display: inline-flex; color: var(--muted); }
.score-row.locked .num svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.redacted { grid-column: 1 / -1; justify-self: start; position: relative; max-width: 100%; font-size: var(--text-sm); margin-top: 0.4rem; }
.redacted > span { display: block; color: var(--ink); font-weight: 500; filter: blur(3px); user-select: none; }
.strike { position: absolute; inset: 0 -0.5rem; width: calc(100% + 1rem); height: 100%; overflow: visible; pointer-events: none; }
.strike path { fill: none; stroke: var(--pen); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.unlock {
  background: var(--block); color: var(--on-block); margin-top: 2rem; padding: clamp(1.25rem, 4vw, 1.75rem);
  border-radius: 14px; border: 1.5px solid var(--line); display: grid; gap: 0.875rem;
}
.unlock .fine { color: var(--on-block); }
.unlock :focus-visible { outline-color: var(--on-block); }
.unlock input { border-color: var(--ink); }
.unlock .field-error { color: var(--on-block); text-decoration: underline; text-decoration-color: var(--alert); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.unlock + .btn { margin-top: 1rem; width: 100%; }

/* Report: score and annotated photos first, then the listing part by part */

/* Header nav of the report: sticks to the top, marks the part in view */
.report-nav { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--bg); border-bottom: 1.5px solid var(--line); }
.report-nav ul {
  list-style: none; margin-block: 0; padding: 0; display: flex; gap: clamp(1rem, 2.4vw, 1.75rem);
  overflow-x: auto; scrollbar-width: none; position: relative;
}
.report-nav ul::-webkit-scrollbar { display: none; }
.report-nav li { flex: none; }
.report-nav button {
  appearance: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 3rem; padding: 0.25rem 0;
  font: inherit; font-size: var(--text-sm); font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.report-nav button:hover { color: var(--ink); }
.report-nav button[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.report-nav i { width: 0.6875rem; height: 0.6875rem; border: 1.5px solid var(--ink); border-radius: 3px; }
.report-nav b { font-weight: 800; font-variant-numeric: tabular-nums; }

.report-hero { display: grid; gap: 2.25rem; grid-template-areas: "score" "viewer" "index"; scroll-margin-top: 4.5rem; }
.report-score { grid-area: score; }
.report-index { grid-area: index; }
.report-index h2 { font-size: 1.375rem; }
.report-index > p { font-size: var(--text-sm); margin-top: 0.25rem; }
.report-index > ul:first-of-type { list-style: none; margin: 1rem 0 0; padding: 0; border-bottom: 1.5px solid var(--line); }
.viewer { grid-area: viewer; min-width: 0; }
@media (min-width: 62rem) {
  .report-hero {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); column-gap: 5rem; row-gap: 2.5rem;
    grid-template-areas: "score viewer" "index viewer"; grid-template-rows: auto 1fr; align-items: start;
  }
}

.index-row {
  appearance: none; width: 100%; background: none; border: 0; border-top: 1.5px solid var(--line); cursor: pointer;
  display: grid; grid-template-columns: 9.75rem minmax(0, 1fr) 2rem; align-items: center; gap: 0.875rem;
  min-height: 3rem; padding: 0.5rem 0; font: inherit; color: var(--ink); text-align: left;
}
.index-row .name { font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; transition: text-decoration-color 0.2s var(--ease); }
.index-row:hover .name { text-decoration-color: var(--ink); }
.index-row .num { font-weight: 800; font-size: 1.1875rem; text-align: right; font-variant-numeric: tabular-nums; }

.report .bar { display: block; height: 0.875rem; overflow: hidden; border: 2px solid var(--ink); border-radius: 4px; background: var(--bg); }
.report .bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(calc(var(--v) / 100)); animation: grow 0.9s var(--ease) 0.3s both; }

.legend { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: var(--text-xs); color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend i { width: 0.8125rem; height: 0.8125rem; border: 2px solid var(--ink); border-radius: 3px; }

.viewer-stage { padding-inline: 0.25rem; }
.viewer-stage .print { animation: fade 0.25s linear both; }
.slip-solo { left: -3%; bottom: 10%; rotate: -3deg; max-width: 80%; animation-delay: 0.2s; }
.viewer-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.btn.icon { width: 3.375rem; padding: 0; }
.btn.icon svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.viewer-count { text-align: center; display: grid; gap: 0.1rem; }
.viewer-count strong { font-weight: 700; }
.viewer-count span { color: var(--muted); font-size: var(--text-sm); }
.viewer-thumbs {
  list-style: none; margin: 1.25rem -0.25rem 0; padding: 0.375rem 0.25rem 0.75rem;
  display: flex; gap: 0.625rem; overflow-x: auto; scrollbar-width: thin; position: relative;
}
.viewer-thumbs li { flex: 1 0 3.25rem; max-width: 4.5rem; }
.viewer-thumbs button {
  appearance: none; display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; padding: 0; cursor: pointer;
  border: 0; border-radius: 6px; background: var(--surface); overflow: visible;
  outline: 2.5px solid transparent; outline-offset: 2px; transition: outline-color 0.2s var(--ease);
}
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.viewer-thumbs button[aria-current] { outline-color: var(--ink); }
.viewer-thumbs button:focus-visible { outline-color: var(--pen); }
.viewer-thumbs button i {
  position: absolute; top: -0.3rem; right: -0.3rem; width: 0.9375rem; height: 0.9375rem; border-radius: 50%;
  background: var(--pen); border: 2.5px solid var(--bg);
}
.viewer-thumbs button span {
  position: absolute; left: 0.25rem; bottom: 0.25rem; min-width: 1.25rem; padding: 0 0.3rem;
  background: var(--bg); border-radius: 4px; font-size: 0.8125rem; font-weight: 700; line-height: 1.25rem; text-align: center;
}

/* One section per part of the listing: what it scored, the evidence marked up, what to do */

.parts-intro {
  margin-top: clamp(3rem, 8vw, 5rem); display: grid; grid-template-columns: 1.625rem 1fr; gap: 0.875rem;
  max-width: 40rem; font-size: 1.0625rem;
}
.parts { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.part { border-top: 2px solid var(--ink); padding-block: clamp(2.25rem, 6vw, 4.5rem); display: grid; gap: 2rem; scroll-margin-top: 3.25rem; }
.part-head h2 { font-size: clamp(1.625rem, 1.8vw + 1.15rem, 2.25rem); }
.part-head h2:focus { outline: none; }
.part-head .what { color: var(--muted); font-size: var(--text-sm); margin-top: 0.35rem; }
.part-score { display: flex; align-items: baseline; gap: 0.625rem; margin-top: 1.25rem; }
.part-score strong { font-size: 2.75rem; font-weight: var(--display-weight); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.part-score span { font-weight: 700; }
.part-head .bar { margin-top: 0.625rem; max-width: 24rem; }
.part-head .note { margin-top: 0.875rem; font-size: 1.0625rem; max-width: 26em; }
.part-head .finding { margin-top: 0.875rem; font-size: 1.0625rem; max-width: 26em; }
.part-head .finding + .note { margin-top: 0.5rem; }
.part-body { min-width: 0; }
.part-body h3 { margin-top: 2rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: 1.0625rem; padding-bottom: 0.625rem; border-bottom: 2px solid var(--ink); }
.part-body h3 span { font-size: 1rem; }
@media (min-width: 62rem) {
  .part { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); column-gap: 5rem; }
  .part-head { position: sticky; top: 5rem; align-self: start; }
}

.sheet { background: var(--bg); box-shadow: var(--shadow-paper); padding: clamp(1.125rem, 4vw, 1.75rem); rotate: -0.5deg; display: grid; gap: 0.75rem; margin-inline: 0.25rem; }
.part:nth-child(even) .sheet { rotate: 0.5deg; }
.sheet-label { font-size: var(--text-xs); font-weight: 700; color: var(--muted); }
.sheet-label.gap { margin-top: 0.75rem; }
/* Printed, not handwritten and not muted: it says what a cover is, on every report */
.sheet-note { font-size: var(--text-sm); line-height: 1.45; color: var(--ink); max-width: 30em; }
.printed.big { font-size: 1.3125rem; font-weight: 700; }
.sheet s { color: var(--muted); text-decoration-color: var(--pen); text-decoration-thickness: 2px; }
.sheet .hand { font-size: 1.0625rem; line-height: 1.25; }
.sheet .rewrite { font-size: 1.3125rem; }
.hl { background: var(--marker); padding: 0.05em 0.2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.swap { display: grid; grid-template-columns: 1fr 2.5rem 1fr; gap: 0.625rem; align-items: start; }
.swap figure { margin: 0; }
.swap figure > div { position: relative; }
.swap img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.swap figcaption { margin-top: 0.4rem; font-size: var(--text-xs); color: var(--muted); }
.swap figcaption.hand { color: var(--pen); font-size: 1rem; }
.pen-x, .pen-arrow { fill: none; stroke: var(--pen); stroke-linecap: round; stroke-linejoin: round; }
.pen-x { position: absolute; inset: 0; width: 100%; height: 100%; stroke-width: 2.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 1.5px var(--bg)); }
.pen-x path { vector-effect: non-scaling-stroke; }
.pen-arrow { width: 2.5rem; margin-top: 22%; stroke-width: 2.25; }

.amen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.amen li { padding: 0.3rem 0.75rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: var(--text-sm); }
.amen li::before { content: "✓ "; font-family: var(--hand); font-weight: 700; color: var(--pen); }
.amen .missing { flex-basis: 100%; border: 0; padding: 0; border-radius: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin-top: 0.25rem; }
.amen .missing::before { content: none; }
.amen .missing > span { padding: 0.3rem 0.85rem; border: 2px solid var(--pen); border-radius: 52% 48% 56% 44% / 62% 48% 52% 38%; }
.amen .missing em { font-style: normal; }

.rules { margin: 0; }
.rules > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; padding-block: 0.625rem; border-top: 1.5px solid var(--line); }
.rules > div:first-child { border-top: 0; padding-top: 0; }
.rules dt { color: var(--muted); }
.rules dd { margin: 0; font-weight: 600; }

.host { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; align-items: center; padding-bottom: 0.5rem; }
.host .avatar { width: 3.5rem; height: 3.5rem; display: grid; place-content: center; font-size: 1.5rem; border: 2px dashed var(--pen); border-radius: 50%; }

.order { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.order li { position: relative; aspect-ratio: 4 / 3; }
.order img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.order li span { position: absolute; left: 0.2rem; bottom: 0.2rem; min-width: 1.25rem; padding: 0 0.25rem; background: var(--bg); border-radius: 3px; font-size: 0.8125rem; font-weight: 700; line-height: 1.25rem; text-align: center; }
.order .ghost { display: grid; place-content: center; text-align: center; border: 2px dashed var(--pen); border-radius: 4px; font-size: var(--text-xs); line-height: 1.1; padding: 0.2rem; }

.todos { list-style: none; margin: 0; padding: 0; }
.todo { padding-block: 1.125rem 0.5rem; border-bottom: 1.5px solid var(--line); }
.todo label { position: relative; display: grid; grid-template-columns: 1.625rem 1fr; gap: 0.875rem; cursor: pointer; margin: 0; font-size: inherit; }
.todo label strong { font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.todo input { position: absolute; left: 0; top: 0; opacity: 0; width: 1.625rem; height: 1.625rem; margin: 0; cursor: pointer; }
.todo input:focus-visible + .box { outline: 3px solid var(--pen); outline-offset: 3px; }
.todo .box path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 0.35s var(--ease), opacity 0.1s linear; }
.todo input:checked + .box path { stroke-dashoffset: 0; opacity: 1; }
.todo input:checked ~ strong { text-decoration: line-through; text-decoration-color: var(--pen); text-decoration-thickness: 2px; }
.todo details, .todo-open { margin-left: 2.5rem; }

.suggest {
  margin: 0.75rem 0 0.25rem 2.5rem; padding: 0.75rem 0.875rem 0.875rem; background: var(--surface); border-radius: 10px;
  display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; align-items: start;
}
.suggest + .suggest { margin-top: 0.5rem; }
.suggest-label { font-size: var(--text-xs); font-weight: 700; color: var(--muted); }
.suggest-text {
  grid-column: 1; margin-block: 0.25rem; padding-left: 0.75rem; border-left: 4px solid var(--marker);
  font-family: var(--font); font-weight: 400; color: var(--ink); font-size: 1.0625rem; line-height: 1.5;
}
.copy {
  appearance: none; grid-column: 2; grid-row: 1 / span 2; align-self: center; cursor: pointer;
  min-height: 2.5rem; min-width: 5rem; padding: 0.375rem 0.75rem;
  font: inherit; font-size: var(--text-xs); font-weight: 700; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--ink); border-radius: 8px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.copy:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
/* On a phone the text to paste gets the whole width: the button goes under it, not beside it */
@media (max-width: 34rem) {
  .suggest { grid-template-columns: minmax(0, 1fr); margin-left: 0; }
  .copy { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.5rem; }
}
.todo summary, .todo-meta {
  list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.875rem;
  min-height: 2.75rem; color: var(--muted); font-size: var(--text-sm);
}
.todo summary::-webkit-details-marker { display: none; }
.todo-meta { cursor: auto; }
/* Impact: "alto" and "medio" are pills, alto filled so the big wins stand out; "bajo" stays plain text. Not a score colour. */
.impact-alto, .impact-medio {
  padding: 0 0.55rem; border: 1.5px solid var(--pen); border-radius: 999px;
  color: var(--ink); font-weight: 700; font-size: var(--text-xs);
}
.impact-alto { background: var(--marker-soft); }
.impact-medio { border-color: var(--line); font-weight: 600; }
.why-toggle { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 0.22em; }
.why-toggle::after { content: " +"; }
.todo details[open] .why-toggle::after { content: " −"; }
.todo .why { padding-bottom: 0.75rem; max-width: 36em; }
/* "Por qué importa": the fixed text under the model's why, which then reads as the evidence */
.todo .why.evidence { padding-bottom: 0.5rem; }
.explain { margin: 0 0 0.75rem; padding: 0.625rem 0.75rem 0.7rem; background: var(--surface); border-radius: 8px; display: grid; gap: 0.2rem; max-width: 36em; }
.explain-k { font-size: var(--text-xs); font-weight: 700; color: var(--pen); }
.explain p:not(.explain-k) { font-size: var(--text-sm); line-height: 1.5; }
.evidence .k { font-size: var(--text-sm); font-weight: 700; color: var(--muted); }

.cohost { margin-top: 1rem; padding: clamp(1.25rem, 4vw, 1.75rem); background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; display: grid; gap: 0.75rem; justify-items: start; }
.cohost h2 { font-size: 1.5rem; }
.cohost p { max-width: 36em; }
.next { margin-top: 1rem; padding-block: 2.5rem 1rem; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; gap: 0.75rem; }
.next h2 { flex-basis: 100%; margin-bottom: 0.5rem; font-size: 1.5rem; }

/* Progress and re-score follow the host down the report.
   The small boxes are the same checkboxes as the list above: tick one there, one fills here. */
/* A thin line and a soft shadow, not the 2px ink rule: that one separates sections, and the bar scrolls over them */
.report-bar {
  position: sticky; bottom: 0; z-index: var(--z-sticky); background: var(--bg);
  border-top: 1.5px solid var(--line); box-shadow: 0 -6px 14px -12px oklch(0.22 0.025 215 / 0.2);
}
.report-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem 0.75rem; }
.bar-progress { display: grid; gap: 0.3rem; min-width: 0; flex: 1; }
.bar-progress p { line-height: 1.25; }
.bar-progress strong { font-weight: 700; margin-right: 0.35rem; }
.bar-progress .hand { font-size: 1.0625rem; display: inline-block; }
.bar-progress .fine { font-size: var(--text-xs); }
.bar-progress.is-bumped .hand { animation: bump 0.45s var(--ease); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3125rem; }
.ticks li { position: relative; width: 1rem; height: 1rem; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--bg); }
.ticks svg { position: absolute; inset: -0.3rem -0.3rem -0.05rem -0.05rem; overflow: visible; }
.ticks path { fill: none; stroke: var(--pen); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 0.35s var(--ease), opacity 0.1s linear; }
.ticks .is-done path { stroke-dashoffset: 0; opacity: 1; }
.report-bar .btn { flex: none; min-height: 2.875rem; padding: 0.5rem 1.125rem; }
@keyframes bump { 40% { scale: 1.18; } }
@media (max-width: 34rem) {
  .bar-progress .fine { display: none; }
  .bar-progress strong { display: none; }
  .ticks { gap: 0.25rem; }
  .ticks li { width: 0.8125rem; height: 0.8125rem; }
}
/* Clears the bar on a phone, where the re-score note takes three lines beside the button (about 7.4rem). */
body:has(.report-bar) .toast { bottom: 8rem; }
.report.app { padding-bottom: 2rem; }

/* Analysing */

/* The host's own listing, walked through step by step as the model reads it
   (docs/live-analysis-screen.md). On a 390x844 phone the running panel and the log are both in view. */
.analysing {
  padding-block: 0.75rem 2.5rem;
  display: grid; align-content: start; gap: 1rem; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "listing" "work" "steps" "note";
}
.analysing-copy { grid-area: copy; }
.analysing h1 { font-size: clamp(1.75rem, 3.2vw + 1rem, 3rem); }
.analysing .lead { display: none; margin-top: 0.5rem; font-size: clamp(1.0625rem, 0.8vw + 0.9rem, 1.25rem); }
.analysing .leave-note { grid-area: note; margin-top: 0; }
body:has(.analysing) .foot { display: none; }

.live-listing {
  grid-area: listing; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.875rem; align-items: center;
  padding: 0.75rem; background: var(--surface); border-radius: 14px;
}
.live-listing img, .skeleton-cover { width: 4rem; height: 4rem; object-fit: cover; border-radius: 10px; }
.live-title { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-listing .fine { margin-top: 0.2rem; font-size: var(--text-xs); }
.skeleton {
  display: block; border-radius: 6px;
  background: linear-gradient(90deg, var(--line) 25%, var(--bg) 50%, var(--line) 75%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-line { width: 70%; height: 1rem; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Waiting ○, running (spinner), done ✓: every step and every item that has one. */
.live-mark { width: 1rem; height: 1rem; border-radius: 50%; box-sizing: border-box; justify-self: center; }
.is-waiting > .live-mark { border: 2px solid var(--line); }
.is-running > .live-mark { border: 2.5px solid var(--line); border-top-color: var(--pen); border-right-color: var(--pen); animation: spin 0.8s linear infinite; }
.is-done > .live-mark { display: grid; place-content: center; }
.is-done > .live-mark::before {
  content: "✓"; color: var(--pen); font-family: var(--hand); font-weight: var(--hand-weight); font-synthesis-weight: none; font-size: 1.125rem; line-height: 1;
}
@keyframes spin { to { rotate: 1turn; } }

.live-work { grid-area: work; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; align-content: start; }

.live-photos-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.live-photos h2 { font-size: 1.25rem; }
.live-photos-head .fine { font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
/* After the photos the counter is the row's label, handwritten like the other notes. */
.is-past-photos .live-counter {
  font-family: var(--hand); font-weight: var(--hand-weight); font-synthesis-weight: none; font-size: var(--text-sm); color: var(--pen);
  text-decoration: underline var(--hand-mark); text-decoration-thickness: 0.6em; text-underline-offset: -0.4em; text-decoration-skip-ink: none;
}
.live-capped { margin-top: 0.25rem; font-size: var(--text-xs); }
.live-grid { list-style: none; margin: 0.625rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.live-grid li { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; }
.live-grid li[hidden] { display: none; }
.live-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--surface); transition: opacity 0.3s linear, filter 0.3s linear; }
.live-grid .is-pending img { opacity: 0.5; filter: grayscale(1); }
.live-grid .is-active { outline: 3px solid var(--marker); outline-offset: 1px; overflow: hidden; }
/* The scan line crosses the photo once in the time the photo takes (--p from the page's clock);
   while the model is behind it goes back and forth. */
.live-grid .is-active::before {
  content: ""; position: absolute; inset-inline: 0; top: calc(var(--p, 0) * (100% - 3px)); height: 3px; z-index: 1;
  background: var(--marker); box-shadow: 0 0 10px 3px var(--marker);
}
.live-grid .is-active.is-idle::before { animation: scan-loop 1.6s ease-in-out infinite alternate; }
@keyframes scan-loop { from { top: 0; } to { top: calc(100% - 3px); } }
/* Before the first verdict the model takes in every photo at once: a soft highlighter passes over
   the six in view one after another (--i, 0.3 s each). */
.live-grid.is-looking li::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--marker); opacity: 0;
  animation: look 1.8s linear calc(var(--i, 0) * 0.3s) infinite;
}
@keyframes look { 0%, 24%, 100% { opacity: 0; } 9% { opacity: 0.35; } }
.live-grid .is-ok::after {
  content: "✓"; position: absolute; top: 0.3rem; right: 0.3rem;
  width: 1.5rem; height: 1.5rem; display: grid; place-content: center; border-radius: 50%;
  background: var(--bg); color: var(--pen); font-family: var(--hand); font-weight: 700; font-size: 1rem; line-height: 1;
  box-shadow: 0 4px 8px -4px oklch(0.22 0.025 215 / 0.6);
  animation: pop 0.35s var(--ease) both;
}
.live-fix { display: none; }
.live-grid .is-fix .live-fix {
  display: block; position: absolute; left: 0.3rem; bottom: 0.35rem; rotate: -3deg;
  padding: 0.15em 0.45em; background: var(--marker); color: var(--pen);
  font-family: var(--hand); font-weight: var(--hand-weight); font-synthesis-weight: none; font-size: 0.8125rem; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 4px 8px -5px oklch(0.22 0.025 215 / 0.6);
  animation: pop 0.35s var(--ease) both;
}

/* After the photos: one row of small thumbnails in full colour, the ones to fix first with a pen ✕
   (the highlighter means good here, as on the report). */
.is-past-photos .live-capped { display: none; }
.is-past-photos .live-grid { margin-top: 0.375rem; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 2.75rem; gap: 0.375rem; overflow: hidden; padding: 3px; }
.is-past-photos .live-grid li { aspect-ratio: 1; border-radius: 8px; }
.is-past-photos .live-grid .is-ok::after, .is-past-photos .live-grid .live-fix { display: none; }
.is-past-photos .live-grid .is-fix::after {
  content: "✕"; position: absolute; top: 0.15rem; right: 0.15rem;
  width: 1rem; height: 1rem; display: grid; place-content: center; border-radius: 50%;
  background: var(--bg); color: var(--pen); font-family: var(--hand); font-weight: var(--hand-weight); font-synthesis-weight: none; font-size: 0.6875rem; line-height: 1;
  box-shadow: 0 3px 6px -3px oklch(0.22 0.025 215 / 0.6);
}

/* One panel at a time, all in the same fixed box so the page does not jump. */
.live-panels { display: none; }
.is-past-photos .live-panels { display: grid; height: clamp(11.25rem, 30svh, 15rem); }
.live-panel {
  grid-area: 1 / 1; min-width: 0; overflow: hidden; padding: 0.75rem 0.875rem;
  background: var(--surface); border-radius: 14px;
  display: flex; flex-direction: column; gap: 0.375rem;
  /* The old panel is gone before the new one comes in, so their texts never overlap. */
  opacity: 0; visibility: hidden; transition: opacity 0.1s linear, visibility 0s 0.1s;
}
.live-panel > * { flex-shrink: 0; }
.live-panel.is-shown { opacity: 1; visibility: visible; transition: opacity 0.15s linear 0.1s, visibility 0s; }
.live-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.live-panel-head .fine { font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.live-panel-title { font-size: var(--text-xs); font-weight: 700; color: var(--muted); }
.live-panel .fine { font-size: var(--text-xs); }

/* Título y descripción: the highlighter goes across the title, and a soft band fills behind the
   description from the top down, so the lines already read look highlighted. */
.live-read-title { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-sweep {
  background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 0 / calc(var(--p, 0) * 100%) 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.live-read-text {
  font-size: var(--text-xs); color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  background: linear-gradient(var(--marker-soft), var(--marker-soft)) no-repeat 0 0 / 100% calc(var(--p, 0) * 100%);
}
.live-read-chips li { opacity: 0; }
.live-read-chips li.is-in { opacity: 1; animation: pop 0.35s var(--ease) both; }

.live-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.live-chips li {
  max-width: 100%; padding: 0.15rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font-size: var(--text-xs); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-chips li[hidden] { display: none; }
/* Read, not approved: a ✓ means "good" on the report. */
.live-chips li.is-done { border-color: var(--pen); background: var(--marker-soft); }

/* Amenities and rules: the items read so far plus the next, against the bottom of the panel, so the
   one being read is always in view; older rows go off the top under a fade. */
.live-list { flex: 1 1 0; min-height: 0; overflow: hidden; mask-image: linear-gradient(transparent, #000 1.25rem); }
.live-amenities { align-content: flex-end; }
.live-rules { align-content: end; }

.live-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; font-size: var(--text-xs); }
.live-items li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: 0.5rem; align-items: center; }
.live-items li[hidden] { display: none; }
.live-items li > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-items .is-waiting { color: var(--muted); }
.live-rules .is-done > .live-mark::before { content: none; }
.live-rules .is-done > span:last-child { justify-self: start; background: var(--marker-soft); }
.live-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }

.live-todos { justify-content: center; align-items: center; text-align: center; }
.live-big { display: grid; justify-items: center; color: var(--muted); font-size: var(--text-sm); }
.live-big [data-poll-target="todoCount"] {
  font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: 3.5rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}

/* The end: an empty ring the size of a two-digit score, drawn as soon as it shows; the report's
   ring takes its place through the view transition (reports/_arrival). */
.live-ring { grid-area: 1 / 1; display: grid; place-content: center; }
.live-ring[hidden] { display: none; }
.live-ring-digits { visibility: hidden; }
.live-ring .ring path { animation-delay: 0s; }
.live-ring .ring, .score-h .ring { view-transition-name: score-ring; }
::view-transition-group(score-ring) { animation-duration: 0.5s; }
::view-transition-old(score-ring), ::view-transition-new(score-ring) { block-size: 100%; }
.is-arrived .ring path { animation: none; }

/* The log. On a phone only the running step and its neighbours; a long line wraps. */
.live-steps { grid-area: steps; }
.live-step-count { font-size: var(--text-xs); margin-bottom: 0.25rem; }
.live-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; font-size: var(--text-sm); }
.live-log li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.375rem; align-items: start; line-height: 1.4; }
/* On the first line of a step that wraps. */
.live-log .live-mark { margin-top: calc((1.4em - 1rem) / 2); }
.live-log li:not(.is-running, .is-near) { display: none; }
.live-log .is-done, .live-log .is-waiting { color: var(--muted); }
.live-log .is-running { color: var(--ink); font-weight: 700; }
.live-detail { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (min-width: 56rem) {
  .analysing {
    padding-block: 2rem 3rem; align-items: start; row-gap: 1.25rem;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(3rem, 6vw, 5rem);
    grid-template-areas: "copy work" "listing work" "steps work" "note work";
    grid-template-rows: auto auto auto 1fr;
  }
  .analysing .lead { display: block; }
  .live-step-count { display: none; }
  .live-log li:not(.is-running, .is-near) { display: grid; }
  .live-photos h2 { font-size: 1.5rem; }
  .live-grid { gap: 0.75rem; }
  .live-grid .is-fix .live-fix { font-size: 1rem; }
  .is-past-photos .live-grid { grid-auto-columns: 3.5rem; gap: 0.5rem; }
  .is-past-photos .live-panels { height: 17rem; }
  .live-panel { padding: 1.25rem 1.375rem; gap: 0.625rem; }
  .live-read-title { font-size: 1.25rem; }
  .live-read-text { -webkit-line-clamp: 5; font-size: var(--text-sm); }
  .live-items { font-size: var(--text-sm); gap: 0.5rem; }
  .live-big [data-poll-target="todoCount"] { font-size: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .live-grid .is-active::before, .live-grid.is-looking li::after { display: none; }
  .live-grid.is-looking li:not([hidden]) { outline: 2px solid var(--marker); outline-offset: 1px; }
  .live-read-text { background-size: 100% 100%; }
  .is-running > .live-mark { animation: none; }
  .live-sweep { background-size: 100% 100%; }
  .live-panel { transition: none; }
  .live-read-chips li.is-in { animation: none; }
  .skeleton { animation: none; }
}

.stack { position: relative; isolation: isolate; aspect-ratio: 3 / 2; width: min(100% - 2rem, 24rem); margin: 3rem auto 2.75rem; }
.stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border: 0.5rem solid var(--bg); box-shadow: var(--shadow-paper);
  z-index: calc(4 - var(--i));
  transform: rotate(calc((var(--i) - 1.5) * 2.6deg)) translateY(calc(var(--i) * 5px));
  transition: transform 0.6s var(--ease), opacity 0.35s linear;
}
.stack img.is-leaving { transform: translateX(46%) rotate(13deg); opacity: 0; }

/* Credits */

.packs { border: 0; margin: 2rem 0 1.25rem; padding: 0; display: grid; gap: 0.75rem; }
.pack {
  display: grid; grid-template-columns: 1.375rem 1fr auto; column-gap: 0.875rem; align-items: center;
  padding: 1rem 1.125rem; margin: 0; cursor: pointer;
  border: 2px solid var(--line); border-radius: 12px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.pack input { grid-row: span 2; width: 1.375rem; height: 1.375rem; margin: 0; accent-color: var(--ink); }
.pack-name { font-weight: 700; font-size: 1.1875rem; }
.pack-price { grid-column: 3; grid-row: 1 / span 2; font-weight: 800; font-size: 1.3125rem; font-variant-numeric: tabular-nums; text-align: right; display: grid; justify-items: end; }
.pack-price small { font-size: var(--text-xs); font-weight: 500; color: var(--muted); }
.pack-price s { font-weight: 500; color: var(--muted); font-size: 1rem; text-decoration-color: var(--pen); text-decoration-thickness: 2px; }

.worth { margin-top: 1.25rem; max-width: 34em; }
.worth .hand { display: inline-block; margin-right: 0.35rem; font-size: 1.0625rem; }
.band .worth { font-size: 1.0625rem; }
.band .fine { margin-top: 0.75rem; }
.code { margin: 0.25rem 0 1.25rem; display: grid; gap: 0.5rem; }
.code-fields { padding: 0.875rem 1rem 1rem; background: var(--surface); border-radius: 10px; }
.code-fields input { text-transform: uppercase; }
.code-applied { font-size: 1.0625rem; }
.pack-sub { grid-column: 2; color: var(--muted); font-size: var(--text-sm); font-weight: 400; }
.pack-sub em { font-style: normal; margin-left: 0.4rem; white-space: nowrap; }
.pack:has(input:checked) { border-color: var(--ink); background: var(--marker-soft); }
.pack:has(input:focus-visible) { outline: 3px solid var(--pen); outline-offset: 3px; }
[data-buy] .fine { margin-top: 1rem; }
[data-paid] .btn { margin-top: 2rem; }

/* My listings */

.listings { list-style: none; margin: 2rem 0 0; padding: 0; }
.listings li {
  display: grid; grid-template-columns: 4.75rem 1fr auto; gap: 1rem; align-items: center;
  padding-block: 1rem; border-top: 1.5px solid var(--line);
}
.listings li:last-child { border-bottom: 1.5px solid var(--line); }
.listings img { width: 4.75rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.listings strong { display: block; line-height: 1.25; }
.listings a { font-size: var(--text-sm); font-weight: 600; color: var(--link); text-underline-offset: 0.22em; display: inline-block; padding-block: 0.3rem; }
.listings .l-score { font-weight: 800; font-size: 1.625rem; font-variant-numeric: tabular-nums; }
.listings .l-score small { font-size: var(--text-xs); font-weight: 600; color: var(--muted); }
.add { margin-top: 3rem; }
.add h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.add .fine { margin-top: 0.75rem; }

[data-login] form { margin-top: 2rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Toast and prototype menu ---------- */

.toast {
  position: fixed; left: 50%; bottom: 1.25rem; translate: -50% 0; z-index: var(--z-toast);
  width: max-content; max-width: min(100% - 2rem, 30rem);
  background: var(--ink); color: var(--bg); padding: 0.875rem 1.125rem; border-radius: 10px;
  font-weight: 500; font-size: var(--text-sm); box-shadow: 0 16px 30px -14px oklch(0.22 0.025 215 / 0.7);
  animation: pop 0.35s var(--ease) both;
}

.proto { position: fixed; right: 0.75rem; bottom: 0.75rem; z-index: var(--z-proto); display: grid; justify-items: end; gap: 0.5rem; }
.proto-toggle {
  appearance: none; cursor: pointer; font: inherit; font-size: var(--text-xs); font-weight: 600;
  background: var(--bg); color: var(--ink); border: 1.5px dashed var(--ink); border-radius: 8px;
  padding: 0.5rem 0.75rem; min-height: 2.5rem;
}
.proto-menu {
  order: -1; background: var(--bg); border: 1.5px dashed var(--ink); border-radius: 10px;
  padding: 0.5rem; display: grid; min-width: 11rem;
  box-shadow: 0 16px 30px -14px oklch(0.22 0.025 215 / 0.5);
}
.proto-menu a, .proto-menu button {
  appearance: none; background: none; border: 0; text-align: left; cursor: pointer;
  font: inherit; font-size: var(--text-xs); color: var(--ink); text-decoration: none;
  padding: 0.5rem 0.625rem; border-radius: 6px;
}
.proto-menu a:hover, .proto-menu button:hover { background: var(--surface); }
.proto-menu a[aria-current="page"] { font-weight: 700; background: var(--marker-soft); }
.proto-menu button { border-top: 1.5px dashed var(--line); border-radius: 0 0 6px 6px; margin-top: 0.25rem; color: var(--muted); }

/* ---------- App additions (not in the prototype) ---------- */

.unlock .sent .hand { display: inline-block; margin-right: 0.35rem; font-size: 1.0625rem; }

.viewer-count > span { display: grid; gap: 0.1rem; }
.viewer-count > span > span { color: var(--muted); font-size: var(--text-sm); }
.amen .more { border-style: dashed; color: var(--muted); }
.amen .more::before, .amen.none li::before { content: none; }
.amen.none li { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.swap:has(figure:only-child) { grid-template-columns: minmax(0, 16rem); }
.rules dd { text-align: right; max-width: 65%; }

.useful { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--text-xs); color: var(--muted); }
.useful button {
  appearance: none; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink);
  min-width: 2.5rem; min-height: 2rem; padding: 0.15rem 0.6rem; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px;
}
.useful button[aria-pressed="true"] { border-color: var(--ink); background: var(--marker-soft); }
.todo-useful { margin: 0.25rem 0 0.25rem 2.5rem; }
.part-head .useful { margin-top: 1rem; }

.history, .opinion { margin-top: 1rem; padding-block: 2rem; border-top: 2px solid var(--ink); }
.history h2, .opinion h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.history ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.history a { color: var(--link); font-weight: 600; }
.opinion form { display: grid; gap: 0.6rem; margin-top: 1rem; max-width: 36rem; justify-items: start; }
textarea, input[type="text"], input[type="number"] {
  width: 100%; padding: 0.75rem 1rem; font: inherit; color: var(--ink); background: var(--bg);
  border: 2px solid var(--ink); border-radius: 10px;
}
.report-bar form { flex: none; }
.packs-list { margin: 2rem 0; }
.packs-list li { border-color: var(--ink); }
.pack-buy { display: flex; align-items: center; gap: 1rem; }
.pack-buy .was { font-size: 1.125rem; font-weight: 500; opacity: 0.6; font-variant-numeric: tabular-nums; }
.discount-held { margin-top: 1rem; }
.signout { margin-top: 3rem; }
.login { margin-top: 2rem; }

.admin table { width: 100%; border-collapse: collapse; font-size: var(--text-xs); margin-block: 1rem 2.5rem; }
.admin th, .admin td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.admin h2 { margin-top: 2rem; font-size: 1.5rem; }
.admin tr.unmatched td { color: var(--alert); font-weight: 700; }
.admin pre { background: var(--surface); padding: 1rem; border-radius: 10px; overflow-x: auto; font-size: 0.8125rem; white-space: pre-wrap; }
.admin-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; max-width: 48rem; }
.admin-form input { flex: 1 1 10rem; width: auto; }
.admin-help { margin-top: 0.5rem; font-size: 0.9rem; max-width: 48rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-delay: 0s !important;
    animation-iteration-count: 1 !important; transition-duration: 0.01ms !important;
  }
}

/* Persona-test fixes: landing and flow */
/* Inside .field-row, right under the field: the row's gap spaces it. */
.url-form .paste-note { margin: 0; }
.url-form .paste { gap: 0.5rem; }
.url-form .paste svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* With a mouse, Ctrl+V beats a permission prompt. */
@media (hover: hover) and (pointer: fine) { .url-form .paste { display: none; } }
.app-steps { margin-top: 0.75rem; border-block: 1.5px solid var(--line); }
.app-steps summary { cursor: pointer; font-weight: 600; min-height: 2.75rem; padding: 0.5rem 0; }
.app-steps ol { display: grid; gap: 0.5rem; margin: 0.25rem 0 0.75rem; padding-left: 1.25rem; }
.app-steps a { color: var(--link); }
.url-note { margin-top: 0.625rem; }
.scope-note { margin-top: 2rem; max-width: 40em; }
.unlock .email-hint { margin-top: 0.5rem; }
.leave-note { margin-top: 0.75rem; }
.leave-note .link { min-height: 2.75rem; }
.pasted-link { display: grid; gap: 0.5rem; margin-top: 1.5rem; }
.pasted { font-weight: 600; overflow-wrap: anywhere; }

/* Persona-test fixes: report */
/* The bottom bar waits below the fold while the hero (score, cover, six scores) is on screen. */
.report-bar { transition: transform 0.3s var(--ease), visibility 0s linear 0s; }
.report-bar.is-tucked { transform: translateY(100%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0s linear 0.3s; }
@media (max-width: 34rem) {
  .bar-progress .rescore-note { display: block; }
}
/* Re-score proof next to the score, and the way from an old link to the newest report. */
.proof { margin-top: 0.75rem; display: grid; gap: 0.2rem; }
.proof .hand { font-size: 1.375rem; justify-self: start; }
.proof-dates { color: var(--muted); font-size: var(--text-sm); }
.proof a, .newer a { color: var(--link); font-weight: 600; }
.newer { margin-top: 0.75rem; padding: 0.75rem 0.875rem; background: var(--surface); border-radius: 10px; }
.index-row .delta { font-size: var(--text-xs); margin-left: 0.3rem; text-decoration: none; }
/* The co-host block sits right after the six scores now. */
.cohost { margin-top: clamp(2rem, 6vw, 3rem); }
.cohost-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cohost .fine { font-size: var(--text-xs); }
/* The owner saves the report link in her own WhatsApp: one row in the hero, no box, so on a
   phone the cover photo stays close below. */
/* "Compartir" under the verdict: secondary, the page's main action stays the only filled button. */
.share { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.share .btn { min-height: 2.75rem; padding: 0.5rem 1rem; gap: 0.5rem; }
.share .btn svg { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.share .btn[hidden] { display: none; }

.keep { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.keep .fine { flex-basis: 100%; font-size: var(--text-xs); }
/* "hecho el 12/10" under a ticked TODO, and where to paste a suggestion. */
.done-at { margin: 0.2rem 0 0 2.5rem; font-size: var(--text-sm); }
.done-at:empty { display: none; }
.suggest-where { grid-column: 1; font-size: var(--text-xs); color: var(--muted); }
/* A suggested title Airbnb would not take as it is: what to do before pasting it. */
.suggest-warning { grid-column: 1; font-size: var(--text-xs); font-weight: 600; color: var(--alert); }

/* Growth: community codes and the invite link (docs/growth-shaping.md). Plain sections, not
   boxed like the co-host block, so the invite stays second to it on the report. */
.code-box, .invite { margin-top: 1rem; padding-block: 2rem; border-top: 2px solid var(--ink); display: grid; gap: 0.75rem; justify-items: start; }
.code-box h2, .invite h2 { font-size: 1.5rem; }
.code-box p, .invite p { max-width: 36em; }
.code-box form { width: 100%; max-width: 32rem; }
.code-box input[type="text"] { min-height: 3.375rem; text-transform: uppercase; }
.invite-link { font-weight: 600; overflow-wrap: anywhere; padding: 0.5rem 0.75rem; background: var(--surface); border-radius: 8px; }
.invite-progress { font-size: 1.125rem; }
.invite .fine a { color: var(--link); font-weight: 600; }

/* Terms and privacy (app/views/legal): long reading, so a narrow column, quiet headings and
   room between sections. */
.legal h1 { margin-bottom: 0.5rem; }
.legal .updated { color: var(--muted); font-size: var(--text-sm); }
.legal .lead { margin-top: 1.25rem; }
.legal nav { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--surface); border-radius: 8px; font-size: var(--text-sm); }
.legal nav ol { margin: 0.5rem 0 0; padding-left: 1.25rem; columns: 2 14rem; column-gap: 2rem; }
.legal nav a { color: var(--link); }
.legal section { margin-top: 2.5rem; scroll-margin-top: 1.5rem; }
.legal h2 { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); margin-bottom: 0.75rem; }
.legal p + p, .legal p + ul, .legal ul + p, .legal p + .table-scroll, .legal .table-scroll + p { margin-top: 0.75rem; }
.legal ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.375rem; }
.legal section a, .legal .lead a, .app .lead a { color: var(--link); font-weight: 600; }
.legal .notice { padding: 1rem 1.25rem; border-left: 4px solid var(--marker); background: var(--marker-soft); font-size: var(--text-sm); }
.legal .table-scroll { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.625rem 0.75rem 0.625rem 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 700; border-bottom-width: 2px; }

.fine.consent { margin-top: 0.5rem; font-size: var(--text-xs); }
.consent a, .foot-links a { color: var(--link); }
.foot-links { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

/* ---------- Mistake pages (/errores, MistakesController) ---------- */

.crumbs ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: var(--text-sm); color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 0.25rem; }
.crumbs a { color: var(--link); }
.mistake-meta { margin-top: 0.75rem; color: var(--muted); font-size: var(--text-sm); display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.chip { display: inline-block; padding: 0.125rem 0.625rem; border-radius: 999px; background: var(--marker-soft); color: var(--ink); font-weight: 600; }
.mistake .answer { margin-top: 1.5rem; }
.mistake .numbers { margin-top: 1.25rem; padding: 1rem 1.25rem; border-left: 4px solid var(--marker); background: var(--surface); }
.mistake h2 { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); margin: 3rem 0 1rem; }
.mistake-body p, .mistake-body li { max-width: 34em; }
.mistake-body p + p, .mistake-body p + ol, .mistake-body p + ul, .mistake-body ol + p, .mistake-body ul + p { margin-top: 1.125rem; }
.mistake-body ol, .mistake-body ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.875rem; }
/* Examples (mistakes/examples/*): each a mock of the part of the listing where the guest meets the
   mistake, the error and the better version side by side. Our fonts and colors, never Airbnb's. */
.ex-pair { display: grid; gap: 1.25rem; align-items: start; margin-top: 1.25rem; padding: 1.125rem; background: var(--surface); border-radius: 14px; }
.ex-pair + .ex-pair { margin-top: 1.5rem; }
@media (min-width: 40rem) { .ex-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ex-side { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.ex-side.bad.same-image { opacity: 0.8; }
.ex-side.bad.same-image img { filter: saturate(0.6); }
.ex-chip { display: inline-flex; align-items: center; gap: 0.375rem; width: fit-content; padding: 0.3rem 0.625rem 0.3rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; text-transform: uppercase; }
.ex-chip svg { flex: none; }
.ex-chip.bad { background: var(--bg); color: var(--alert); }
.ex-chip.good { background: var(--pen); color: var(--bg); }
.ex-note { font-size: var(--text-xs); line-height: 1.4; color: var(--muted); }
.ex-side.good .ex-note { color: var(--ink); font-weight: 600; }
.ex-side.bad :is(.ex-box, .ex-host, .ex-search, .ex-caption) { color: var(--muted); }
.ex-head { font-size: var(--text-sm); font-weight: 600; }
.ex-more { font-size: var(--text-xs); font-weight: 600; text-decoration: underline; }
.ex-box { display: flex; flex-direction: column; gap: 0.625rem; padding: 1rem; background: var(--bg); border-radius: 10px; font-size: var(--text-xs); line-height: 1.5; }
.ex-box .ex-head { color: var(--ink); }

/* search: the chip sits on the photo, the title is cut at two lines as in the search */
.is-search .ex-side { position: relative; }
.is-search .ex-chip { position: absolute; z-index: 1; top: 0.625rem; left: 0.625rem; }
.ex-search { display: flex; flex-direction: column; gap: 0.5rem; }
.ex-search img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.ex-place { font-size: 0.75rem; color: var(--muted); }
.ex-title { font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.ex-side.bad .ex-title { color: var(--muted); }
.ex-title s { text-decoration-color: var(--alert); text-decoration-thickness: 2px; }

/* photos: the tour, one photo at 3:2 or a 2-column grid of squares */
.ex-photos { display: flex; flex-direction: column; gap: 0.625rem; }
.ex-photos .ex-head { color: var(--ink); }
.ex-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.ex-grid.is-one { grid-template-columns: minmax(0, 1fr); }
.ex-photo { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.ex-photo img, .ex-placeholder { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.is-one .ex-photo img, .is-one .ex-placeholder { aspect-ratio: 3 / 2; }
.ex-placeholder { display: grid; place-content: center; background: var(--line); color: var(--muted); font-size: 0.75rem; }
.ex-caption { font-size: 0.75rem; line-height: 1.35; }
.ex-caption.is-empty { font-style: italic; color: var(--muted); }
.ex-photo.is-new .ex-placeholder { background: var(--marker); color: var(--pen); font-weight: 700; }
.ex-photo.is-new .ex-caption { color: var(--pen); font-weight: 700; }

/* description: four lines and "Mostrar más", the highlight inside the clamped paragraph */
.ex-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.ex-desc strong { color: var(--ink); }

/* amenities: icon and name, what is not included struck through */
.ex-amen ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.ex-amen li { display: flex; align-items: center; gap: 0.625rem; }
.ex-icon { flex: none; }
.ex-amen .is-off { color: var(--muted); text-decoration: line-through; }

/* host: the card, then "Acerca de <name>" */
.ex-host { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.25rem 1rem; background: var(--bg); border-radius: 14px; box-shadow: 0 6px 16px -10px oklch(0.22 0.025 215 / 0.5); text-align: center; }
.ex-avatar { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; }
.ex-avatar.is-silhouette, .ex-avatar.is-initial { display: grid; place-content: center; }
.ex-avatar.is-silhouette { background: var(--line); color: var(--muted); }
.ex-avatar.is-initial { background: var(--marker-soft); color: var(--pen); font-size: 1.875rem; font-weight: 800; }
.ex-name { font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.ex-badge { font-size: 0.8125rem; }
.ex-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.5rem; width: 100%; margin: 0.375rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.ex-stats div { display: flex; flex-direction: column-reverse; }
.ex-stats dt { font-size: 0.6875rem; color: var(--muted); }
.ex-stats dd { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); }
.ex-about { width: 100%; display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.375rem; padding-top: 0.75rem; border-top: 1px solid var(--line); text-align: left; font-size: var(--text-xs); line-height: 1.5; }
.ex-about .ex-head { color: var(--ink); }
.ex-ratings { margin: 0; display: grid; gap: 0.25rem; }
.ex-ratings div { display: flex; justify-content: space-between; gap: 1rem; }
.ex-ratings dd { margin: 0; font-weight: 700; }
.mistake-body a, .mistake-related a, .mistakes-group a, .entity a, .how-more a { color: var(--link); font-weight: 600; }
.how-more { margin-top: 1.25rem; }
.mistake-check .url-form { margin-top: 1.25rem; }
.mistake .faq { margin-top: 1rem; }
.mistake-related ul, .mistakes-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.875rem; }
/* The hub (mistakes/index): six category tiles that jump to their section, then the sections as tappable rows. */
.mistakes-nav { margin-top: 2rem; }
.mistakes-nav h2 { margin: 0 0 0.625rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: var(--text-xs); }
.mistakes-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
@media (min-width: 36rem) { .mistakes-nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mistakes-nav a { display: flex; flex-direction: column; gap: 0.125rem; min-height: 2.75rem; padding: 0.75rem 0.875rem; border-radius: 0.75rem; background: var(--surface); color: var(--ink); text-decoration: none; }
.mistakes-nav a:hover, .mistakes-nav a:focus-visible { background: var(--marker-soft); }
.mistakes-nav strong { font-weight: 700; }
.mistakes-nav .count { font-size: var(--text-xs); color: var(--muted); }
.mistakes-group { margin-top: 3rem; }
.mistakes-group h2 { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); margin-bottom: 0.25rem; scroll-margin-top: 1rem; }
.mistakes-group[id] { scroll-margin-top: 1rem; }
.mistakes-group .what { margin: 0 0 0.75rem; }
.mistakes-group ul { gap: 0; border-top: 1px solid var(--line); }
.mistakes-group li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.mistakes-group li a { display: inline-block; padding-block: 0.125rem; }
.mistakes-group li span { display: block; margin-top: 0.125rem; font-size: var(--text-sm); }
.mistakes-group .back-up { margin-top: 0.75rem; }
.mistakes-group .back-up a { font-weight: 600; }
.mistakes .mistake-check { margin-top: 3.5rem; padding: 1.5rem 1.25rem; border-radius: 0.875rem; background: var(--surface); }
.mistakes .mistake-check h2 { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); margin: 0 0 0.5rem; }
.mistakes .mistake-check p { max-width: 34em; }
.mistakes-nav h2[id] { scroll-margin-top: 1rem; }
.entity { margin-top: 3rem; color: var(--muted); font-size: var(--text-sm); }
