/* TimeVolt · hoja de estilos
   Concepto: hoja técnica de taller. Superficies limpias, datos en monoespaciada,
   naranja de reflectante como único acento y cuatro colores de serie para los gráficos. */

:root {
  --bg: #edf1f0;
  --surface: #ffffff;
  --surface-2: #e4eae9;
  --ink: #0e1b1c;
  --muted: #53666a;
  --line: #d3dcdb;
  --accent: #d4410b;
  --accent-ink: #ffffff;
  --good: #1c7a4d;
  --bad: #a8412a;
  --s1: #d4410b;
  --s2: #0e7c7b;
  --s3: #3f55d6;
  --s4: #a67c00;
  --shadow: 0 1px 2px rgba(14, 27, 28, .06), 0 8px 24px rgba(14, 27, 28, .06);

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1214; --surface: #121d20; --surface-2: #1a292d; --ink: #e7efee; --muted: #94a8aa;
    --line: #24363a; --accent: #ff6b35; --accent-ink: #0a1214; --good: #55c78f; --bad: #ff8a6b;
    --s1: #ff7a45; --s2: #3cc4bf; --s3: #8c9bff; --s4: #e8b93a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1214; --surface: #121d20; --surface-2: #1a292d; --ink: #e7efee; --muted: #94a8aa;
  --line: #24363a; --accent: #ff6b35; --accent-ink: #0a1214; --good: #55c78f; --bad: #ff8a6b;
  --s1: #ff7a45; --s2: #3cc4bf; --s3: #8c9bff; --s4: #e8b93a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.eyebrow { font: 600 .72rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 62ch; margin-top: 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--surface); padding: .5rem .8rem; }

.wrap {
  width: 100%; max-width: calc(var(--max) + 64px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.more { font: 600 .9rem var(--font-body); color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ── Cabecera ── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.3rem var(--font-display); text-decoration: none; letter-spacing: -.02em; }
.logo svg { color: var(--accent); }
.nav { display: flex; gap: .2rem; align-items: center; }
.nav a { text-decoration: none; padding: .5rem .75rem; border-radius: var(--r-sm); font-weight: 550; font-size: .95rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav a.nav-cta { background: var(--accent); color: var(--accent-ink); }
.nav a.nav-cta:hover { background: var(--accent); filter: brightness(1.08); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); padding: .45rem .65rem; font: 600 .9rem var(--font-body); cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: .6rem max(16px, env(safe-area-inset-left, 0px)) 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .6rem; }
}

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.1rem; border-radius: var(--r-sm); border: 1px solid transparent;
  font: 650 .95rem var(--font-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-buy { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, .btn-buy:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.btn-lg { min-height: 52px; padding-inline: 1.6rem; font-size: 1.02rem; }
.btn-sm { min-height: 36px; padding: .35rem .8rem; font-size: .85rem; }
.link-btn { background: none; border: 0; color: var(--muted); font: 500 .8rem var(--font-body); cursor: pointer; text-decoration: underline; padding: .2rem; }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2rem, 6vw, 4.5rem); }
.hero-text > * + * { margin-top: 1.2rem; }
.hero-text .lead { margin-top: 1.1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; box-shadow: var(--shadow); min-width: 0; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

/* ── Radar ── */
.radar { width: 100%; max-width: 440px; height: auto; display: block; margin-inline: auto; overflow: visible; }
.rd-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.rd-ring:last-of-type { stroke: var(--muted); stroke-opacity: .5; }
.rd-axis { stroke: var(--line); stroke-width: 1; }
.rd-label { fill: var(--ink); font: 600 13px var(--font-body); }
.rd-tick { fill: var(--muted); font: 10px var(--font-mono); }
.rd-shape { fill: var(--c); fill-opacity: .13; stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; }
.rd-dot { fill: var(--c); stroke: var(--surface); stroke-width: 1.5; }
.legend { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; justify-content: center; font-size: .88rem; }
.legend li { display: flex; align-items: center; gap: .45rem; }
.legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }

/* ── Rejillas y tarjetas ── */
.grid { display: grid; gap: 1.2rem; }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.cats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.guides { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.card-media { display: block; position: relative; background: var(--surface-2); aspect-ratio: 16 / 10; max-width: 100%; }
.card-media img { background: #fff; object-fit: contain !important; }
.deal-media img { background: #fff; object-fit: contain !important; }
.card-media img, .card-media .art { width: 100%; height: 100%; object-fit: cover; display: block; }
.chip { position: absolute; left: .8rem; top: .8rem; background: var(--surface); color: var(--ink); font: 600 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 999px; }
.card-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-body .eyebrow { margin: 0; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .3rem 0; padding: .8rem 0; border-block: 1px dashed var(--line); }
.quick dt { font: .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.quick dd { margin: 0; font-weight: 600; font-size: .95rem; }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.card-foot > div:first-child { display: flex; flex-direction: column; }
.price { font-size: 1.45rem; font-weight: 700; }
.price.big { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.score { display: inline-flex; align-items: baseline; gap: 1px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); padding: .15rem .5rem; font-family: var(--font-mono); }
.score b { font-size: 1.15rem; }
.score span { font-size: .72rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .3rem; }
.actions .btn { flex: 1 1 140px; }

.art { color: var(--ink); }
.art-shadow { fill: var(--ink); opacity: .08; }
.art-wheel circle:not(.hub) { fill: none; stroke: var(--ink); stroke-width: 9; }
.art-wheel .hub { fill: var(--ink); }
.art-frame line { stroke: var(--hue); stroke-width: 7; stroke-linecap: round; }
.art-batt { fill: var(--ink); }
.art-motor { fill: var(--surface); stroke: var(--ink); stroke-width: 4; }
.art-rack { fill: none; stroke: var(--muted); stroke-width: 5; stroke-linecap: round; }

.cat-tile, .guide-tile { display: flex; flex-direction: column; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.3rem; text-decoration: none; transition: border-color .15s, transform .15s; min-width: 0; }
.cat-tile:hover, .guide-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-tile p, .guide-tile p:not(.eyebrow) { color: var(--muted); font-size: .94rem; }
.cat-n { font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
.guide-tile .eyebrow { margin: 0; }
.guide-tile .more { margin-top: auto; }

.method { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; border-top: 1px solid var(--line); }
.method p { color: var(--muted); max-width: 60ch; margin-top: .9rem; }
.axes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.axes li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem 1rem; font: 600 .9rem var(--font-mono); }
@media (max-width: 760px) { .method { grid-template-columns: 1fr; } }

.empty { border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 2.2rem 1.5rem; text-align: center; color: var(--muted); }
.empty .eyebrow { color: var(--muted); }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-link { text-decoration: none; border: 1px solid var(--line); background: var(--surface); padding: .5rem 1rem; border-radius: 999px; font-weight: 550; }
.chip-link:hover { border-color: var(--accent); color: var(--accent); }

.page-head { padding-top: clamp(1.5rem, 4vw, 2.6rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .84rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-style: normal; opacity: .5; }

/* ── Ficha ── */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-block: 1rem 2rem; }
.gallery { min-width: 0; }
.g-main { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); aspect-ratio: 4 / 3; overflow: hidden; max-width: 100%; }
.g-main img, .g-main .art { width: 100%; height: 100%; object-fit: contain; display: block; }
.g-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.g-thumbs button { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 0; width: 72px; height: 72px; flex: none; cursor: pointer; overflow: hidden; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.g-note { margin-top: .6rem; }
.product-info { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.product-info .eyebrow { margin: 0; }
.product-info .lead { margin: 0; }
.rating-line { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.stars { letter-spacing: 2px; color: var(--line); font-size: 1.1rem; }
.stars .on { color: var(--s4); }
.stars .half { background: linear-gradient(90deg, var(--s4) 50%, var(--line) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.buy-box { display: flex; flex-direction: column; gap: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.3rem; box-shadow: var(--shadow); }
.buy-box > div { display: flex; flex-direction: column; }
.score-row { display: flex; align-items: center; gap: 1rem; }
.big-score { padding: .3rem .8rem; }
.big-score b { font-size: 2rem; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.1rem, 3vw, 1.7rem); display: flex; flex-direction: column; gap: 1rem; }
.panel h2 { font-size: 1.35rem; }
.prose p { max-width: 62ch; color: var(--ink); }
.prose h3 { margin-top: .6rem; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .proscons { grid-template-columns: 1fr; } }
.pc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; }
.pc h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.pc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.pc li { position: relative; padding-left: 1.7rem; }
.pc li::before { position: absolute; left: 0; top: 0; font: 700 1rem var(--font-mono); }
.pros li::before { content: "+"; color: var(--good); }
.cons li::before { content: "−"; color: var(--bad); }
.pros h2 { color: var(--good); }
.cons h2 { color: var(--bad); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.spec-table, .cmp-table, .plain-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec-table th, .spec-table td, .cmp-table th, .cmp-table td, .plain-table th, .plain-table td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec-table th[scope="row"], .cmp-table th[scope="row"] { font-weight: 500; color: var(--muted); width: 38%; }
.spec-table td { font-weight: 550; }
.grp th { background: var(--surface-2); font: 600 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.notes { margin: 1rem 0 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.plain-table thead th { background: var(--surface-2); font: 600 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.hist { display: flex; flex-direction: column; gap: .5rem; }
.hist-row { display: grid; grid-template-columns: 2.2rem 1fr 3.4rem; align-items: center; gap: .7rem; font-size: .9rem; }
.hist-row .num { text-align: right; color: var(--muted); }
.hist-bar { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.hist-bar b { display: block; height: 100%; background: var(--s4); border-radius: 5px; }
.sources { margin: 0; padding-left: 1.1rem; }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; border-block: 1px solid var(--line); }

/* ── Comparador ── */
.pickers { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.pick { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .92rem var(--font-body); cursor: pointer; min-height: 44px; }
.pick.on { border-color: var(--ink); }
.pick i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.pick i.plus { width: auto; height: auto; font: 700 1rem var(--font-mono); color: var(--muted); }
.cmp-top { margin-bottom: 1.2rem; }
.verdict { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.verdict li { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: .8rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.verdict li:last-child { border: 0; }
.verdict b { font-weight: 650; min-width: 0; }
@media (max-width: 520px) { .verdict li { grid-template-columns: 1fr auto; } .verdict li > span:first-child { grid-column: 1 / -1; } }
.cmp-table { min-width: 560px; }
.cmp-table thead th { vertical-align: bottom; background: var(--surface); position: sticky; top: 0; }
.col-head { display: table-cell; min-width: 170px; }
.col-head > * { display: block; }
.col-head a { font: 650 1rem var(--font-display); text-decoration: none; margin-bottom: .2rem; }
.col-head .price { font-size: 1.1rem; margin-bottom: .5rem; }
.col-head .btn { margin-bottom: .3rem; }
.dot { width: 22px; height: 5px; border-radius: 3px; margin-bottom: .5rem; }
.cmp-table th[scope="row"] { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 130px; }
.cmp-table td.best { background: color-mix(in srgb, var(--good) 12%, transparent); font-weight: 700; }
.cmp-table td em { display: block; font: 600 .62rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--good); font-style: normal; }
.cmp-table small { color: var(--muted); }
.cmp-table .total td, .cmp-table .total th { border-top: 2px solid var(--ink); font-weight: 700; }
.cmp-table .corner { min-width: 130px; }
.cmp-scroll { margin-bottom: 1rem; }

/* ── Ofertas ── */
.deals { display: flex; flex-direction: column; gap: 1rem; }
.deal { display: grid; grid-template-columns: 170px 1fr auto; gap: 1.4rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.3rem 1rem 1rem; }
.deal-media { display: block; background: var(--surface-2); border-radius: var(--r-sm); aspect-ratio: 16 / 10; overflow: hidden; max-width: 100%; }
.deal-media .art, .deal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal-main { min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.deal-main h3 a { text-decoration: none; }
.deal-buy { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { font: 600 .66rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: .22rem .55rem; border-radius: 4px; }
.note-box { margin-top: 1.6rem; padding: 1.2rem 1.4rem; border-left: 3px solid var(--accent); background: var(--surface); }
.note-box p { color: var(--muted); margin-top: .4rem; max-width: 70ch; }
@media (max-width: 720px) {
  .deal { grid-template-columns: 1fr; padding: 1rem; }
  .deal-buy { align-items: stretch; }
}

/* ── Artículos ── */
.article { max-width: 820px; padding-block: clamp(1.5rem, 4vw, 3rem) 4rem; }
.article > * + * { margin-top: 1rem; }
.article h1 { margin-top: .4rem; }
.article h2 { margin-top: 2.4rem; }
.article h3 { margin-top: 1.4rem; }
.article p, .article li { max-width: 68ch; }
.article ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.article .grid { max-width: none; margin-top: 1.2rem; }
.article .table-scroll { margin-top: 1rem; }
.article .eyebrow { margin-bottom: 0; }

/* ── Bandeja de comparación ── */
.tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 0 max(12px, env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right, 0px)); pointer-events: none; }
.tray-in { pointer-events: auto; max-width: 760px; margin-inline: auto; background: var(--ink); color: var(--bg); border-radius: var(--r-md); padding: .7rem .8rem .7rem 1.1rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.tray-count { font-size: .9rem; white-space: nowrap; }
.tray-names { flex: 1; min-width: 0; display: flex; align-items: center; gap: .4rem; font-size: .82rem; opacity: .8; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tray-names i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tray-names em { width: 6px; flex: none; }
.tray .btn-primary { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 560px) { .tray-names { display: none; } .tray-in { justify-content: space-between; } }

/* ── Pie ── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 3rem; padding-bottom: 6rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem; }
.foot h4 { font: 600 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.disclosure { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: .84rem; color: var(--muted); max-width: 90ch; }
.foot > div { min-width: 0; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cat-tile, .guide-tile { transition: none; }
  .btn:hover, .cat-tile:hover, .guide-tile:hover { transform: none; }
}
