/* Olea by LaraCorp — "ledger on mill paper".
   Warm paper surfaces, one olive accent, serif for verdicts, tabular sans for figures. */

/* Self-hosted (SIL OFL 1.1, licences in fonts/): no visitor IP goes to a third-party font CDN.
   Latin-subset variable files; each covers every weight used below. */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("fonts/fraunces-latin-var.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: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-var.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;
}

:root {
  --bg: #f5f2ea;
  --surface: #fffdf7;
  --surface-2: #ede9df;
  --ink: #1c1e16;
  --ink-2: #45483b;
  --ink-3: #5f6256;
  --line: #dcd7ca;
  --field-border: #86826f;
  --accent: #4b5a1c;
  --accent-soft: #e5e9d0;
  --on-accent: #ffffff;
  --pos: #1d6a45;
  --pos-soft: #dcefe2;
  --neg: #a3371a;
  --neg-soft: #f7e1d7;
  --warn: #7f5300;
  --warn-soft: #f5e8cc;
  --focus: #1f4fbf;
  --s-evoo: #5b7a12;
  --s-virgin: #a86f00;
  --s-lampante: #4a6196;
  --s-offer: #a3371a;
  --grid: #e6e1d4;
  --shadow: 0 1px 0 rgba(28, 30, 22, .04), 0 1px 3px rgba(28, 30, 22, .06);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px;
  --r-sm: 6px;
  --gap: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10120d; --surface: #171a13; --surface-2: #1f231a;
    --ink: #eeece4; --ink-2: #c6c8bb; --ink-3: #a0a396;
    --line: #2d3226; --field-border: #737868;
    --accent: #b5cc6a; --accent-soft: #283016; --on-accent: #10120d;
    --pos: #74d3a0; --pos-soft: #163022; --neg: #f39373; --neg-soft: #3a1f15;
    --warn: #e9b95a; --warn-soft: #31270f; --focus: #8fb2ff;
    --s-evoo: #b5cc6a; --s-virgin: #e8b54c; --s-lampante: #9bb1e3; --s-offer: #f39373;
    --grid: #252a1f;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10120d; --surface: #171a13; --surface-2: #1f231a;
  --ink: #eeece4; --ink-2: #c6c8bb; --ink-3: #a0a396;
  --line: #2d3226; --field-border: #737868;
  --accent: #b5cc6a; --accent-soft: #283016; --on-accent: #10120d;
  --pos: #74d3a0; --pos-soft: #163022; --neg: #f39373; --neg-soft: #3a1f15;
  --warn: #e9b95a; --warn-soft: #31270f; --focus: #8fb2ff;
  --s-evoo: #b5cc6a; --s-virgin: #e8b54c; --s-lampante: #9bb1e3; --s-offer: #f39373;
  --grid: #252a1f;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--font-body);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 600; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--r-sm); z-index: 20; }
.skip:focus { top: 8px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kg { color: var(--ink-3); font-size: .875em; white-space: nowrap; }
.na { color: var(--ink-3); cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.muted { color: var(--ink-3); }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 1px solid var(--line); background: var(--surface); }
.masthead__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 18px; }
.brand { min-width: 0; }
.brand__title { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -.01em; }
.brand__title::before {
  content: ""; display: inline-block; width: .55em; height: .8em; margin-right: .4em; vertical-align: -.05em;
  background: var(--accent); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: rotate(-20deg);
}
.brand__tag { color: var(--ink-2); font-size: .875rem; margin-top: 2px; max-width: 58ch; }
.brand__by { font-family: var(--font-body); font-size: .75rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-3); white-space: nowrap; }
.masthead__row { flex-wrap: wrap; }
.mast-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg.seg--lang { border-radius: 999px; }
.seg.seg--lang [role="radio"] { min-height: 34px; padding: 0 10px; border-radius: 999px; font-size: .8125rem; }
a.theme-btn { text-decoration: none; }
@media (max-width: 559px) {
  .masthead__row { padding-top: 14px; }
  .mast-actions { width: 100%; }
  .mast-actions .theme-btn { min-height: 38px; }
}
.theme-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--field-border); border-radius: 999px; background: transparent; color: var(--ink-2); font-size: .8125rem;
}
.theme-btn:hover { background: var(--surface-2); color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 10px; padding-bottom: 12px; font-size: .8125rem; color: var(--ink-2); }
.meta span { white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px;
  background: var(--warn-soft); color: var(--warn); font-size: .75rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}

/* ---------- Tabs ---------- */
.tabbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: 1 0 auto; min-height: 48px; padding: 0 10px; border: 0; background: none; color: var(--ink-2);
  font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
@media (min-width: 640px) { .tabs [role="tab"] { flex: 0 0 auto; padding: 0 18px; } }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tabs [role="tab"]:focus-visible { outline-offset: -4px; }

/* ---------- Panels ---------- */
main.wrap { padding-top: 24px; padding-bottom: 48px; }
main:focus { outline: none; }
.panel__head { margin-bottom: 20px; }
.lede { color: var(--ink-2); margin-top: 6px; max-width: 64ch; }
.status:empty { display: none; }
.status { padding: 32px 0; color: var(--ink-2); }
.status .btn { margin-top: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
@media (min-width: 768px) { .card { padding: 20px; } }
.stack > * + * { margin-top: var(--gap); }
.section { margin-top: 32px; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 600;
}
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); }

/* ---------- Form controls ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 600; }
.field + .field { margin-top: 14px; }
.field label, .field__label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; }
select, input[type="text"] {
  width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--field-border); background: var(--surface); color: var(--ink);
}
select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
select:hover, input[type="text"]:hover { border-color: var(--ink-2); }
.seg { display: inline-flex; max-width: 100%; border: 1px solid var(--field-border); border-radius: var(--r-sm); padding: 2px; gap: 2px; background: var(--surface); }
.seg--wrap { flex-wrap: wrap; }
.seg [role="radio"] {
  flex: 1 1 auto; min-height: 38px; padding: 0 12px; border: 0; border-radius: 4px; background: transparent;
  color: var(--ink-2); font-size: .875rem; font-weight: 500; white-space: nowrap;
}
.seg [role="radio"]:hover:not([aria-disabled="true"]) { background: var(--surface-2); color: var(--ink); }
.seg [role="radio"][aria-checked="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.seg [role="radio"][aria-disabled="true"] { cursor: not-allowed; color: var(--ink-3); text-decoration: line-through; }
.field--offer { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.field--offer label { font-size: 1rem; font-weight: 600; }
.offer-input { display: flex; gap: 8px; }
.offer-input input { flex: 1 1 auto; min-width: 0; font-size: 1.25rem; font-weight: 600; min-height: 48px; }
.seg--unit { flex: none; }
.seg--unit [role="radio"] { padding: 0 10px; }
.hint { font-size: .8125rem; color: var(--ink-3); margin-top: 6px; }
.err { font-size: .8125rem; color: var(--neg); margin-top: 4px; font-weight: 500; }
.err:empty { display: none; }
.controls { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 20px; }
.controls .field + .field { margin-top: 0; }

/* ---------- Offer check ---------- */
.offer { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .offer { grid-template-columns: 340px minmax(0, 1fr); align-items: start; } .offer__form { position: sticky; top: 64px; } }
.offer__result { min-width: 0; }
.offer__result > * + * { margin-top: var(--gap); }
.verdict { --v: var(--ink-3); border-color: color-mix(in srgb, var(--v) 45%, var(--line)); }
.verdict--below { --v: var(--neg); }
.verdict--inline { --v: var(--accent); }
.verdict--above { --v: var(--pos); }
.verdict__mark { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--v); color: var(--surface); font: 600 18px/1 var(--font-body); vertical-align: 5px; }
.verdict__word { font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.015em; }
.verdict--below .verdict__word { color: var(--neg); }
.verdict--inline .verdict__word { color: var(--accent); }
.verdict--above .verdict__word { color: var(--pos); }
.verdict__gap { font-size: 1.0625rem; margin-top: 8px; color: var(--ink); max-width: 56ch; }
.verdict__band { margin-top: 10px; color: var(--ink-2); font-size: .9375rem; max-width: 60ch; }
.verdict__prompt { color: var(--ink-2); font-size: 1.0625rem; }
.gauge { position: relative; height: 40px; margin: 18px 0 4px; }
.gauge__track { position: absolute; left: 0; right: 0; top: 18px; height: 4px; background: var(--surface-2); border-radius: 2px; }
.gauge__band { position: absolute; top: 12px; height: 16px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 3px; }
.gauge__mkt { position: absolute; top: 8px; width: 2px; height: 24px; background: var(--ink); transform: translateX(-1px); }
.gauge__offer { position: absolute; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--s-offer); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--s-offer); transform: translateX(-9px); }
.gauge__labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-3); }
.market { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .market { grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 28px; } }
.bigprice { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.bigprice small { font-size: .5em; font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.sub { font-size: .8125rem; color: var(--ink-2); margin-top: 4px; }
.caution {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--warn-soft); color: var(--ink); font-size: .9375rem; border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
}
.caution::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--warn); color: var(--surface); font-weight: 600; font-size: .75rem; margin-top: 1px; }
.caution--strong { margin-bottom: 20px; font-weight: 500; }
.alts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- Charts ---------- */
figure { margin: 0; }
.chart { position: relative; width: 100%; min-height: 120px; touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { fill: var(--ink-3); font: 500 11px/1 var(--font-body); font-variant-numeric: tabular-nums; }
figcaption { font-size: .8125rem; color: var(--ink-2); margin-top: 8px; max-width: 72ch; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8125rem; color: var(--ink-2); margin-bottom: 8px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; background: currentColor; }
.legend i.dash { height: 0; background: none; border-top: 3px dashed currentColor; border-radius: 0; }
.legend i.box { height: 10px; background: var(--accent-soft); border: 1px solid var(--accent); }
.tip {
  position: fixed; z-index: 30; pointer-events: none; padding: 6px 9px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bg); font-size: .75rem; line-height: 1.35; box-shadow: 0 4px 14px rgba(0,0,0,.18); max-width: 220px;
}
.tip b { font-weight: 600; }

/* ---------- Sell or hold ---------- */
.hold-top { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .hold-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.trend { list-style: none; margin: 10px 0 0; padding: 0; }
.trend li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.trend li:first-child { border-top: 0; }
.chg { font-weight: 600; white-space: nowrap; }
.chg--up { color: var(--pos); }
.chg--down { color: var(--neg); }
.chg--flat { color: var(--ink-2); }
.horizons { list-style: none; margin: 0; padding: 0; }
.hz { display: grid; gap: 6px 20px; padding: 16px 0; border-top: 1px solid var(--line); grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label med" "bar bar" "facts facts"; }
.hz:first-child { border-top: 0; padding-top: 4px; }
@media (min-width: 768px) {
  .hz { grid-template-columns: 110px 120px minmax(0, 1fr) 200px; grid-template-areas: "label med bar facts"; align-items: center; }
}
.hz__label { grid-area: label; font-weight: 600; }
.hz__med { grid-area: med; text-align: right; }
@media (min-width: 768px) { .hz__med { text-align: left; } }
.hz__med .chg { font-size: 1.5rem; letter-spacing: -.01em; }
.hz__med small { display: block; font-size: .75rem; color: var(--ink-3); }
.hz__bar { grid-area: bar; min-width: 0; }
.hz__facts { grid-area: facts; font-size: .8125rem; color: var(--ink-2); }
.hz__facts strong { color: var(--ink); }
.range { position: relative; height: 26px; }
.range__zero { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-3); }
.range__bar { position: absolute; top: 8px; height: 10px; border-radius: 5px; background: var(--accent-soft); border: 1px solid var(--accent); }
.range__med { position: absolute; top: 3px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.hz--axis { border-top: 0; padding: 0; row-gap: 0; }
@media (max-width: 767px) { .hz--axis { grid-template-areas: "bar"; grid-template-columns: minmax(0, 1fr); } }
.strip { position: relative; margin: 8px 0 4px; }
.strip__track { position: relative; height: 96px; border-bottom: 1px solid var(--line); }
.strip__zero { position: absolute; top: 0; bottom: -4px; width: 1px; background: var(--ink-3); }
.strip__zero span { position: absolute; top: -2px; left: 6px; font-size: .6875rem; color: var(--ink-3); white-space: nowrap; }
.dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 0; padding: 0; }
.dot--up { background: var(--pos); }
.dot--down { background: var(--neg); }
.dot--latest { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.dot:hover { transform: scale(1.3); }
.strip__axis { position: relative; height: 18px; font-size: .75rem; color: var(--ink-3); }
.strip__axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.strip__axis span:first-child { transform: none; }
.strip__axis span:last-child { transform: translateX(-100%); }
.strip__legend { display: flex; gap: 16px; font-size: .8125rem; color: var(--ink-2); margin-top: 6px; }
.strip__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
details { margin-top: 14px; }
summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9375rem; min-height: 32px; display: inline-flex; align-items: center; }
.method { font-size: .8125rem; color: var(--ink-2); max-width: 72ch; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll:focus-visible { outline-offset: 0; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
caption { text-align: left; font-size: .8125rem; color: var(--ink-2); padding-bottom: 10px; caption-side: top; }
th, td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 600; }
tbody tr.is-bench td { font-weight: 600; background: var(--surface-2); }
td.seg-name { white-space: normal; min-width: 180px; }
.vsbar { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.vsbar__track { position: relative; width: 64px; height: 8px; background: var(--surface-2); border-radius: 2px; }
.vsbar__fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.vsbar__mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--ink-3); }

/* ---------- Briefing ---------- */
.headlines { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .headlines { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .headlines .hl:first-child { grid-column: 1 / -1; } .headlines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hl { border-top: 4px solid var(--hl-color, var(--accent)); }
.hl--evoo { --hl-color: var(--s-evoo); }
.hl--virgin { --hl-color: var(--s-virgin); }
.hl--lampante { --hl-color: var(--s-lampante); }
.hl__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hl .bigprice { margin-top: 10px; }
.hl__chips { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .8125rem; color: var(--ink-2); }
.hl__foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 12px; }
/* Regions table: stack each row into a two-line card on phones so "vs Spain" is never scrolled off. */
@media (max-width: 559px) {
  .table-scroll--stack { overflow: visible; }
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .stack-table tr.is-bench { background: var(--surface-2); padding-left: 8px; padding-right: 8px; border-radius: var(--r-sm); }
  .stack-table tbody tr.is-bench td { background: none; }
  .stack-table td { border: 0; padding: 0; text-align: left; white-space: normal; }
  .stack-table td.seg-name { grid-column: 1 / -1; min-width: 0; font-weight: 500; margin-bottom: 4px; }
  .stack-table td[data-label]::before { content: attr(data-label); display: block; font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
  .stack-table td:last-child { text-align: right; }
  .stack-table .vsbar { justify-content: flex-start; }
  .stack-table .vsbar__track { width: 40px; }
}
.grid-2 { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.premium-now { font-size: 1.75rem; font-weight: 600; letter-spacing: -.01em; }
.ipool { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0; padding: 0; list-style: none; }
.ipool li { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface); min-width: 0; }
.ipool__name { font-size: .8125rem; color: var(--ink-2); }
.ipool__val { font-size: 1.125rem; font-weight: 600; margin-top: 2px; }
.ipool__dir { font-size: .8125rem; margin-top: 2px; white-space: normal; }

/* ---------- Login (/login) ---------- */
.login-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login-top { display: flex; justify-content: flex-end; padding-top: 16px; }
.login-main { flex: 1; display: grid; place-items: center; padding: 24px 16px 48px; }
.login { width: 100%; max-width: 420px; }
.login__brand { font-family: var(--font-display); font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.login__brand::before {
  content: ""; display: inline-block; width: .5em; height: .72em; margin-right: .3em; vertical-align: -.02em;
  background: var(--accent); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: rotate(-20deg);
}
.login__by { display: block; margin-top: 6px; font-size: .8125rem; font-weight: 500; letter-spacing: .04em; color: var(--ink-3); }
.login__what { margin-top: 14px; color: var(--ink-2); font-size: 1rem; max-width: 42ch; }
.login .card { margin-top: 24px; }
.login h2 { font-size: 1.25rem; }
.login input[type="password"] {
  width: 100%; min-height: 48px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--field-border); background: var(--surface); color: var(--ink); font-size: 1rem;
}
.login input[type="password"]:hover { border-color: var(--ink-2); }
.login form .field { margin-top: 16px; }
.login .btn { width: 100%; justify-content: center; min-height: 48px; margin-top: 16px; font-size: 1rem; }
.login__contact { margin-top: 18px; font-size: .875rem; color: var(--ink-2); }
.login__contact a { color: var(--accent); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--ink-2); font-size: .8125rem; }
.footer p + p { margin-top: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) { animation: rise .24s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media print {
  .tabbar, .theme-btn, .skip { display: none; }
  .panel[hidden] { display: block !important; }
}
