/* Euronis Track: one account's page. Built from the Claude Design baseline (design-baseline/account.css) and dressed
   in the Euronis retro brand of euronis.com and spreads.euronis.com (design-brief/euronis-brand-reference.css):
   2014 Euronis greens, Roboto Slab headings, Ubuntu body, Play for numbers and labels. Fonts are served from /fonts. */
@font-face { font-family: "Play"; font-weight: 400; font-display: swap; src: url(/fonts/play-400.woff2) format("woff2"); }
@font-face { font-family: "Play"; font-weight: 700; font-display: swap; src: url(/fonts/play-700.woff2) format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 600; font-display: swap; src: url(/fonts/roboto-slab-600.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 400; font-display: swap; src: url(/fonts/ubuntu-400.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 500; font-display: swap; src: url(/fonts/ubuntu-500.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 700; font-display: swap; src: url(/fonts/ubuntu-700.woff2) format("woff2"); }

:root {
  --green-950: #0a2c0c;
  --green-900: #0f3d11;   /* brand deep */
  --green-850: #134d15;
  --green-800: #165e19;   /* brand dark: links, dark text */
  --green-600: #209603;   /* brand green: primary, profit */
  --green-500: #23801a;
  --lime: #a0ce4e;        /* brand light: accents on dark */
  --lime-soft: #d6eac2;
  --tint: #eef6e2;        /* brand pale */
  --surface: #f6f8f2;     /* brand paper */
  --border: #dfe5d8;
  --border-strong: #c9d2c0;
  --ink: #1f2a1c;
  --muted: #5d6658;
  --faint: #7e8778;
  --red: #c0392b;
  --red-soft: #f6dcd8;
  --red-tint: #fbeeec;
  --white: #fff;

  --font-head: "Roboto Slab", Georgia, serif;
  --font-body: "Ubuntu", system-ui, Arial, sans-serif;
  --font-num: "Play", "Ubuntu", Arial, sans-serif;
  --font-ui: "Play", "Ubuntu", Arial, sans-serif;

  --radius: 0.625rem;
  --radius-sm: 0.375rem;
  --shadow: 0 1px 2px rgba(15, 61, 17, .06), 0 8px 24px rgba(15, 61, 17, .08);
  --shadow-lift: 0 2px 4px rgba(15, 61, 17, .08), 0 18px 40px rgba(15, 61, 17, .12);
  --wrap: 77rem;
  --gutter: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-800); }
a:hover { color: var(--green-600); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 0.25rem; }

.sr-only {
  position: absolute; width: 0.0625rem; height: 0.0625rem; margin: -0.0625rem; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 0.75rem; top: -3.75rem; z-index: 100;
  background: var(--green-600); color: var(--white); padding: 0.625rem 1rem; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 0.75rem; color: var(--white); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.num, .tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.pos { color: var(--green-600); }
.neg { color: var(--red); }
.zero { color: var(--muted); }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow--on-dark { color: var(--lime); }
.h2 {
  margin: 0;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.625rem, 2.2vw + 0.875rem, 2.125rem); line-height: 1.18; letter-spacing: -.005em;
  color: var(--ink);
}
.h3 {
  margin: 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; line-height: 1.3;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1.25rem;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 0.9375rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn svg circle { fill: currentColor; stroke: none; }
.btn--primary { background: var(--green-600); color: var(--white); box-shadow: 0 2px 8px rgba(32, 150, 3, .25); }
.btn--primary:hover { background: #1b8203; color: var(--white); }
.btn--lime { background: var(--lime); color: var(--green-950); }
.btn--lime:hover { background: #b2da6b; color: var(--green-950); }
.btn--white { background: var(--white); color: var(--green-800); }
.btn--white:hover { background: var(--tint); color: var(--green-800); }
.btn--ghost-dark { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn--ghost-dark:hover { background: rgba(255, 255, 255, .16); color: var(--white); }
.btn--outline { background: var(--white); color: var(--green-800); border-color: var(--green-800); }
.btn--outline:hover { background: var(--tint); }
.btn--quiet { background: transparent; color: var(--muted); padding: 0 0.75rem; }
.btn--quiet:hover { color: var(--green-800); background: var(--surface); }
.btn--link { background: none; color: var(--green-800); padding: 0 0.25rem; }
.btn--link:hover { color: var(--green-600); text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--white);
  background: radial-gradient(75rem 31.25rem at 85% 20%, rgba(160, 206, 78, .35), transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 55%, var(--green-500) 100%);
  padding: 2.5rem 0 10.5rem;
}
.hero::after { /* fine chart grid, a nod to the trading screens */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 0.0625rem, transparent 0.0625rem),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 0.0625rem, transparent 0.0625rem);
  background-size: 3rem 3rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(22.5rem, 27.5rem); gap: 2.5rem; align-items: start; }
.hero__main { min-width: 0; }
.hero__id { display: flex; gap: 1.5rem; align-items: center; min-width: 0; }
.hero__text { min-width: 0; }
.hero__title {
  margin: 0 0 0.375rem;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); line-height: 1.1; letter-spacing: -.01em;
}
.hero__account { margin: 0; font-size: 0.9375rem; color: rgba(255, 255, 255, .8); }
.hero__name { overflow-wrap: anywhere; }
.hero__account .sep { margin: 0 0.5rem; color: var(--lime); }

/* Real or demo: never ambiguous */
.money-type {
  display: inline-flex; align-items: center; gap: 0.375rem; vertical-align: middle; position: relative; top: -.18em;
  padding: 0.3125rem 0.75rem; border-radius: 0.375rem;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.money-type--real { background: var(--lime); color: var(--green-950); }
.money-type--demo { background: #ffcf5c; color: #3a2a00; box-shadow: 0 0 0 3px rgba(255, 207, 92, .35); }
.demo-band { position: relative; z-index: 2; margin: -2.5rem 0 2rem; background: #ffcf5c; color: #3a2a00; }
.demo-band__inner { display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; padding-top: 0.75rem; padding-bottom: 0.75rem; font-weight: 600; font-size: 0.9688rem; }
.demo-band__tag { padding: 0.1875rem 0.625rem; border-radius: 0.3125rem; background: #3a2a00; color: #ffcf5c; font-size: 0.8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.hero__blurb { margin: 1.375rem 0 0; max-width: none; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, .9); overflow-wrap: anywhere; }
.factrow { display: flex; flex-wrap: wrap; gap: 0; margin: 1.125rem 0 0; padding: 0; }
.factrow div { padding: 0.125rem 1.375rem 0.125rem 0; margin-right: 1.375rem; border-right: 1px solid rgba(255, 255, 255, .18); }
.factrow div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.factrow dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.factrow dd { margin: 0.125rem 0 0; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* checks: only those that passed, each with its date */
.checks { display: grid; gap: 0.625rem; }
.checks__title { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.checks__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.check {
  width: 100%; display: grid; grid-template-columns: 1.375rem minmax(0, 1fr) 0.875rem; gap: 0.625rem; align-items: center;
  padding: 0.5625rem 0.75rem; border-radius: 0.5rem; text-align: left; color: var(--white);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  transition: background-color .15s, border-color .15s;
}
.check:hover { background: rgba(255, 255, 255, .13); border-color: rgba(160, 206, 78, .6); }
.check[aria-expanded="true"] { background: rgba(255, 255, 255, .16); border-color: var(--lime); }
.check__tick { width: 1.375rem; height: 1.375rem; }
.check__tick circle { fill: var(--lime); }
.check__tick path { fill: none; stroke: var(--green-950); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.check__text { min-width: 0; display: grid; line-height: 1.3; }
.check__label { font-weight: 600; font-size: 0.9062rem; }
.check__detail { font-size: 0.8125rem; color: rgba(255, 255, 255, .9); }
.check__meta { font-size: 0.7812rem; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.check__chev { width: 0.875rem; height: 0.875rem; fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 2; transition: transform .15s; }
.check[aria-expanded="true"] .check__chev { transform: rotate(90deg); }
.vpanel {
  padding: 1rem 1.125rem 0.875rem; border-radius: 0.625rem; background: var(--white); color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}
.vpanel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.vpanel__title { margin: 0; font-family: var(--font-head); font-size: 1.0625rem; line-height: 1.3; }
.vpanel__date { margin: 0.125rem 0 0; font-size: 0.7812rem; color: var(--muted); }
.vpanel__close { flex: none; width: 2.25rem; height: 2.25rem; margin: -0.375rem -0.5rem 0 0; border: 0; border-radius: 0.375rem; background: none; color: var(--muted); font-size: 1.375rem; line-height: 1; }
.vpanel__close:hover { background: var(--surface); color: var(--ink); }
.vpanel h4 { margin: 0.75rem 0 0.25rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); }
.vpanel p, .vpanel li { font-size: 0.875rem; line-height: 1.5; color: #3a4436; }
.vpanel p { margin: 0; }
.vpanel ol { margin: 0; padding-left: 1.25rem; }
.vpanel li + li { margin-top: 0.25rem; }
.vpanel__link { display: inline-block; margin-top: 0.625rem; font-weight: 600; font-size: 0.875rem; }
.btn--block { width: 100%; margin-top: 0.25rem; }

/* four equal headline tiles */
.tiles {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 2.25rem 0 0;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 0.75rem; overflow: hidden;
  background: rgba(8, 40, 10, .28);
}
.tile { padding: 1.25rem 1.5rem 1.125rem; border-left: 1px solid rgba(255, 255, 255, .14); min-width: 0; }
.tile:first-child { border-left: 0; }
.tile dt { font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .74); }
.tile dd { margin: 0; }
.tile__value {
  display: block; margin: 0.375rem 0 0.25rem; font-family: var(--font-num); font-weight: 700;
  font-size: clamp(2.125rem, 2.6vw + 0.75rem, 3.25rem); line-height: 1; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--white);
}
.tile__value .unit { color: var(--lime); font-size: .7em; margin-left: .03em; }
.tile__value--neg, .tile__value--neg .unit { color: #ffd166; }
.tile__value--na { color: rgba(255, 255, 255, .6); }
.tile__sub { display: block; font-size: 0.8438rem; color: rgba(255, 255, 255, .74); }

/* system icon: any square PNG/WebP, any size */
.sys-icon {
  position: relative; flex: none; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 12%; background: linear-gradient(160deg, var(--green-850), var(--green-500));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), var(--shadow-lift);
}
.sys-icon img { width: 100%; height: 100%; object-fit: cover; }
.sys-icon__mono {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; color: var(--lime); letter-spacing: -.02em;
}
.sys-icon--hero { width: 8.25rem; border: 3px solid rgba(255, 255, 255, .95); border-radius: 14%; }
.sys-icon--hero .sys-icon__mono { font-size: 3.25rem; }

/* ---------- equity curve ---------- */
.curve {
  position: relative; z-index: 2; margin-top: -8rem;
  padding: 1.5rem 1.75rem 1.125rem; box-shadow: var(--shadow-lift); border-color: rgba(31, 42, 28, .08);
}
.curve__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 1.5rem; flex-wrap: wrap; }
.curve__title .eyebrow { margin-bottom: 0.25rem; }
.curve__controls { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.strip {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.375rem 2.25rem;
  margin: 1.25rem 0 0.625rem; padding: 0.75rem 1.125rem; border-radius: 0.5rem; background: var(--surface); border: 1px solid var(--border);
}
.strip__when { font-weight: 700; font-size: 0.9375rem; color: var(--ink); }
.strip__when small { display: block; font-weight: 400; font-size: 0.7812rem; color: var(--muted); }
.strip__item { display: inline-flex; align-items: baseline; gap: 0.5rem; font-size: 0.8438rem; color: var(--muted); }
.strip__item b { font-family: var(--font-num); font-size: 1.375rem; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.strip__item b.pos { color: var(--green-600); }
.strip__item b.neg { color: var(--red); }
.daily { margin-top: 1.125rem; padding-top: 0.875rem; border-top: 1px solid var(--border); }
.daily__head { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.daily__title { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.daily__note { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.chart--daily { min-height: 7.5rem; }

/* ---------- section nav ---------- */
.section-nav {
  position: sticky; top: 0; z-index: 20; margin-top: 2.5rem; border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
}
.section-nav__inner { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.section-nav__inner::-webkit-scrollbar { display: none; }
.section-nav a {
  position: relative; padding: 1rem 0.875rem; white-space: nowrap;
  font-size: 0.875rem; font-weight: 600; color: var(--muted); text-decoration: none;
}
.section-nav a:hover { color: var(--green-800); }
.section-nav a.is-current { color: var(--green-800); }
.section-nav a.is-current::after { content: ""; position: absolute; left: 0.875rem; right: 0.875rem; bottom: -0.0625rem; height: 0.1875rem; border-radius: 0.1875rem 0.1875rem 0 0; background: var(--green-600); }

/* ---------- sections, cards ---------- */
.section { padding: 4.5rem 0; }
.section--tint { background: var(--surface); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.5rem; }
.section__note { margin: 0; max-width: 26.25rem; color: var(--muted); font-size: 0.9062rem; text-align: right; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem 0; flex-wrap: wrap; }
.load-error { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--red-tint); color: var(--red); border: 1px solid var(--red-soft); }

/* ---------- stats panel ---------- */
.panel { overflow: hidden; }
.panel { padding: 0.5rem 1.75rem 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.panel__title { margin: 0.875rem 0 0.125rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); }
.panel .kv__group { border-bottom: 0; padding-top: 0; }
.tabs { display: flex; gap: 0; }
.tabs [role="tab"] {
  position: relative; border: 0; background: none; padding: 0.875rem 1rem;
  font-weight: 600; font-size: 0.9062rem; color: var(--muted); white-space: nowrap; min-height: 3rem;
}
.tabs [role="tab"]:hover { color: var(--green-800); }
.tabs [role="tab"][aria-selected="true"] { color: var(--green-800); }
.tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0; height: 0.1875rem; border-radius: 0.1875rem 0.1875rem 0 0; background: var(--green-600); }
.tabs--underline { border-bottom: 1px solid var(--border); padding: 0 0.5rem; }
.tabs--bar { border-bottom: 1px solid var(--border); padding: 0 0.75rem; overflow-x: auto; scrollbar-width: thin; }
.count {
  display: inline-block; min-width: 1.375rem; padding: 0 0.4375rem; margin-left: 0.25rem; border-radius: 62.4375rem;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.75rem; line-height: 1.25rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
[aria-selected="true"] .count { background: var(--tint); border-color: var(--lime-soft); color: var(--green-800); }

.kv { margin: 0; }
.kv__group { padding: 0.625rem 0; border-bottom: 1px solid var(--border); }
.kv__group:last-child { border-bottom: 0; }
.kv__row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.25rem 0; font-size: 0.9062rem; }
.kv__row dt { color: var(--muted); }
.kv__row dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.kv__row dd small { font-weight: 400; color: var(--faint); margin-right: 0.375rem; font-size: 0.7812rem; }
.kv__row--lead { padding-bottom: 0.5rem; }
.kv__row--lead dt { color: var(--ink); font-weight: 600; }
.kv__row--lead dd { font-size: 1.25rem; }
.term { border-bottom: 1px dotted var(--border-strong); cursor: help; }

.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  min-height: 2.5rem; padding: 0 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--green-800);
  font-weight: 600; font-size: 0.9062rem;
}
.chip:hover { border-color: var(--border-strong); background: var(--tint); }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--green-600); border-color: var(--green-600); color: var(--white); box-shadow: 0 2px 8px rgba(32, 150, 3, .22); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.seg button { min-height: 2.25rem; min-width: 2.75rem; padding: 0 0.625rem; border: 0; border-left: 1px solid var(--border); background: none; font-size: 0.8438rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--green-800); background: var(--surface); }
.seg button:disabled { color: var(--border-strong); cursor: default; background: none; }
.seg button[aria-pressed="true"] { background: var(--tint); color: var(--green-800); box-shadow: inset 0 -2px 0 var(--green-600); }
.chart { position: relative; width: 100%; min-height: 12.5rem; }
.chart svg { overflow: visible; }
.chart text { font-family: var(--font-body); font-size: 0.7188rem; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .axis-label { font-size: 0.6562rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; fill: var(--faint); }
.chart .grid { stroke: #e9ede4; stroke-width: 1; }
.chart .grid--zero { stroke: var(--border-strong); }
.chart .band-sep { stroke: var(--border); }
.chart .l-main { fill: none; stroke: var(--green-600); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .l-alt { fill: none; stroke: #e0a21b; stroke-width: 1.5; stroke-dasharray: 4 3; stroke-linejoin: round; }
.chart .l-red { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.chart .a-main { fill: url(#gArea); }
.chart .a-red { fill: url(#gAreaRed); }
.chart .bar-pos { fill: #7cc35a; }
.chart .bar-neg { fill: #e08a7f; }
.chart .bar-sel { fill: var(--green-600); }
.chart .bar-sel-neg { fill: var(--red); }
.chart .bar-dim { opacity: .45; }
.chart .cross { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .45; }
.chart .hover-dot { fill: var(--white); stroke: var(--green-600); stroke-width: 2.5; }
.chart .hover-dot--alt { stroke: #e0a21b; }
.chart .m-dep { fill: var(--green-600); stroke: var(--white); stroke-width: 2; }
.chart .m-wd { fill: var(--red); stroke: var(--white); stroke-width: 2; }
.chart .val-label { font-size: 0.6875rem; font-weight: 600; fill: var(--ink); }
.chart .val-label.pos { fill: var(--green-800); }
.chart .val-label.neg { fill: var(--red); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .col-hit { fill: transparent; cursor: pointer; }
.chart .col-hit:hover + g rect, .chart .col-hit:focus + g rect { filter: brightness(.9); }

.chart__tip {
  position: absolute; z-index: 3; pointer-events: none; min-width: 10.5rem;
  padding: 0.625rem 0.75rem; border-radius: 0.5rem; background: var(--ink); color: var(--white);
  font-size: 0.7812rem; line-height: 1.5; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  transform: translate(-50%, calc(-100% - 0.75rem));
}
.chart__tip strong { display: block; font-size: 0.75rem; letter-spacing: .04em; color: var(--lime); margin-bottom: 0.125rem; }
.chart__tip .row { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.chart__tip .row span:first-child { color: rgba(255, 255, 255, .7); }

.legend { list-style: none; margin: 0.375rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.375rem 1.25rem; font-size: 0.8125rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.sw { display: inline-block; width: 1.125rem; height: 0.1875rem; border-radius: 0.125rem; background: var(--green-600); }
.sw--alt { background: repeating-linear-gradient(90deg, #e0a21b 0 0.25rem, transparent 0.25rem 0.4375rem); }
.sw--red { background: var(--red); }
.sw--dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; }
.sw--bar { width: 0.625rem; height: 0.625rem; border-radius: 0.125rem; background: #7cc35a; }
.sw--bar-neg { width: 0.625rem; height: 0.625rem; border-radius: 0.125rem; background: #e08a7f; }

/* ---------- advanced stats ---------- */
.adv { padding: 1.5rem; }
.adv__intro { margin: 0 0 1rem; color: var(--muted); font-size: 0.9062rem; max-width: 72ch; }
.stat-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.stat-col .kv__row { padding: 0.625rem 0; border-bottom: 1px solid var(--border); }
.stat-col .kv__row:last-child { border-bottom: 0; }
.adv__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.adv__foot { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--muted); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.table th {
  padding: 0.75rem 0.625rem; text-align: right; white-space: nowrap;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border); background: var(--white);
}
.table td { padding: 0.6875rem 0.625rem; text-align: right; border-bottom: 1px solid #edf0ea; white-space: nowrap; }
.table .l { text-align: left; }
.table tbody tr:hover td { background: #fafcf7; }
.table th[data-sort] { cursor: pointer; user-select: none; }
.table th[data-sort]:hover { color: var(--green-800); }
.table th[aria-sort]::after { content: ""; display: inline-block; margin-left: 0.375rem; border: 4px solid transparent; vertical-align: 0.0625rem; }
.table th[aria-sort="descending"]::after { border-top-color: var(--green-600); border-bottom-width: 0; }
.table th[aria-sort="ascending"]::after { border-bottom-color: var(--green-600); border-top-width: 0; vertical-align: 0.1875rem; }
.table thead .group th { text-align: center; color: var(--green-600); border-bottom: 0; padding-bottom: 0; }
.table .sep { border-left: 1px solid var(--border); }
.table tfoot td { font-weight: 700; background: var(--surface); border-bottom: 0; }
.table .sym { font-weight: 700; color: var(--ink); }
.table .sym-btn { border: 0; background: none; padding: 0; font-weight: 700; color: var(--green-800); text-decoration: underline; text-decoration-color: var(--lime-soft); text-underline-offset: 0.1875rem; }
.table .sym-btn:hover { color: var(--green-600); text-decoration-color: currentColor; }
.wl { display: inline-flex; align-items: center; gap: 0.5rem; justify-content: flex-end; }
.wl__bar { display: inline-flex; width: 4.5rem; height: 0.5rem; border-radius: 0.25rem; overflow: hidden; background: #e7b1aa; }
.wl__bar span { background: var(--green-600); }
.side { display: inline-block; padding: 0.0625rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.side--buy { background: var(--tint); color: var(--green-800); }
.side--sell { background: var(--red-tint); color: var(--red); }


/* ---------- monthly ---------- */
.year { padding: 1rem 1.5rem 0.5rem; }
.year__chart { margin-bottom: 0.5rem; }
.year__table { margin: 0 -1.5rem; border-top: 1px solid var(--border); }
.year__table th:first-child, .year__table td:first-child { padding-left: 1.5rem; }
.year__table th:last-child, .year__table td:last-child { padding-right: 1.5rem; }
.year__table tfoot td { font-size: 0.9062rem; }
.month-btn { border: 0; background: none; padding: 0; font-weight: 600; color: var(--green-800); text-decoration: underline; text-decoration-color: var(--lime-soft); text-underline-offset: 0.1875rem; }
.month-btn:hover { color: var(--green-600); text-decoration-color: currentColor; }
.tabs [role="tab"] .tab-sub { margin-left: 0.375rem; font-size: 0.7812rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- history ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; padding: 1.125rem 1.25rem 0.375rem; }
.toolbar__spacer { flex: 1 1 0; }
.field { display: grid; gap: 0.25rem; }
.field__label { font-size: 0.6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.select {
  min-height: 2.75rem; min-width: 9.375rem; padding: 0 2.25rem 0 0.75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background-color: var(--white);
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--green-800) 50%), linear-gradient(135deg, var(--green-800) 50%, transparent 50%);
  background-position: calc(100% - 1.125rem) 1.1875rem, calc(100% - 0.8125rem) 1.1875rem;
  background-size: 0.3125rem 0.3125rem; background-repeat: no-repeat; font-size: 0.9062rem;
}
.select:hover { border-color: var(--green-800); }
.hist-summary { margin: 0; padding: 0.5rem 1.25rem 0.75rem; font-size: 0.875rem; color: var(--muted); }
.hist-summary b { color: var(--ink); font-variant-numeric: tabular-nums; }
.table-scroll--hist { border-top: 1px solid var(--border); }
.hist th:first-child, .hist td:first-child { padding-left: 1.25rem; }
.hist th:last-child, .hist td:last-child { padding-right: 1.25rem; }
.hist .ticket { color: var(--faint); font-size: 0.8125rem; }
.hist .t-date { color: var(--muted); }
.hist .t-date b { color: var(--ink); font-weight: 500; }
.hist .t-sym { font-weight: 700; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.875rem 1.25rem 1.125rem; border-top: 1px solid var(--border); }
.pager__pages { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.pager button {
  min-width: 2.5rem; min-height: 2.5rem; padding: 0 0.625rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--white); font-weight: 600; font-size: 0.875rem; color: var(--green-800); font-variant-numeric: tabular-nums;
}
.pager button:hover:not(:disabled) { background: var(--tint); }
.pager button[aria-current="page"] { background: var(--green-600); border-color: var(--green-600); color: var(--white); }
.pager button:disabled { color: var(--border-strong); cursor: default; }
.pager__gap { align-self: center; padding: 0 0.25rem; color: var(--faint); }
.pager__size { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.pager__size .select { min-width: 5.25rem; min-height: 2.5rem; background-position: calc(100% - 1.125rem) 1.0625rem, calc(100% - 0.8125rem) 1.0625rem; }
.empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); }
.empty svg { width: 2.5rem; height: 2.5rem; margin: 0 auto 0.625rem; stroke: var(--border-strong); fill: none; stroke-width: 1.5; }
.empty p { margin: 0; }

/* ---------- paid ad slots (IAB sizes, reserved so nothing jumps) ---------- */
.ad { display: grid; justify-items: center; gap: 0.375rem; margin: 2rem auto 0; }
.ad__label { margin: 0; font-size: 0.6562rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.ad__slot { max-width: 100%; overflow: hidden; border-radius: 0.25rem; }
.ad__slot a, .ad__slot picture, .ad__slot img { display: block; width: 100%; height: 100%; }
.ad__slot img { object-fit: cover; }
.ad-top { padding: 0.625rem 0 1.125rem; background: var(--white); }
.ad-top .ad { margin-top: 0; }
.ad__slot--empty {
  display: grid; place-items: center; align-content: center; gap: 0.125rem; text-align: center;
  border: 1px dashed var(--border-strong); color: var(--faint);
  background: repeating-linear-gradient(135deg, #fafcf7 0 0.75rem, #f3f6ee 0.75rem 1.5rem);
}
.ad__slot--empty b { font-size: 0.8125rem; color: var(--muted); letter-spacing: .04em; }
.ad__slot--empty span { font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.ad__m { display: none; }
.with-ad { display: grid; grid-template-columns: minmax(0, 1fr) 18.75rem; gap: 1.5rem; align-items: start; }
.with-ad .ad { margin: 0; }
.ad-band { padding-top: 3rem; }
.ad-band .ad { margin-top: 0; }


/* ---------- sponsored broker cards (paid placement) ---------- */
.brokers { padding: 0.5rem 0 4rem; }
.brokers__head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin-bottom: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.brokers__title { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brokers__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bcard { display: flex; flex-direction: column; align-items: stretch; height: 100%; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
/* the logo fills the whole top of the card, edge to edge (logos are 2:1 artwork) */
.bcard__logo { display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 1; background: var(--white); border-bottom: 1px solid var(--border); overflow: hidden; }
.bcard__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bcard__logo--dark { border-bottom-color: transparent; }
.bcard__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; padding: 0.875rem; margin-top: auto; }
.bcard__ctas .btn { width: 100%; justify-content: center; text-align: center; padding-left: 0.5rem; padding-right: 0.5rem; }
/* second colour: the brand's deep green, so the two actions read apart at a glance */
.btn--conditions { background: var(--green-900); color: var(--white); }
.btn--conditions:hover { background: var(--green-800); color: var(--white); }
.bcard__name { font-family: var(--font-head); font-weight: 600; font-size: 1.375rem; color: var(--ink); }

/* ---------- loading ---------- */
.skeleton { display: inline-block; border-radius: 0.375rem; background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.24), rgba(255,255,255,.12)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton--title { width: min(26.25rem, 80%); height: .9em; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 68.75rem) {
  .tile { padding: 1.125rem 1.125rem 1rem; }
  .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .with-ad { grid-template-columns: minmax(0, 1fr); }
  .with-ad .ad { position: static; }
  .brokers__grid { gap: 0.75rem; }
  .stat-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 56.25rem) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(odd) { border-left: 0; }
  .tile:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .section__head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .section__note { text-align: left; }
  .ad-top { padding: 0.5rem 0 0.75rem; }
  .brokers__grid {  /* side-scroll on phones so three ads do not push the page down */
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.375rem;
    scroll-padding: 0 var(--gutter);
  }
  .brokers__grid > li { scroll-snap-align: start; }
  .ad__d { display: none; }
  .ad__m { display: inline; }
}
@media (max-width: 40rem) {
  :root { --gutter: 1rem; }
  body { font-size: 0.9688rem; }
  .hero { padding: 1.75rem 0 7rem; }
  .demo-band { margin: -1.75rem 0 1.5rem; }
  .demo-band__inner { font-size: 0.9062rem; gap: 0.5rem 0.75rem; }
  .hero__id { gap: 0.875rem; align-items: flex-start; }
  .sys-icon--hero { width: 5.25rem; border-width: 2px; }
  .money-type { font-size: 0.7188rem; padding: 0.25rem 0.5625rem; top: -.12em; }
  .hero__account { font-size: 0.875rem; }
  .hero__blurb { margin-top: 1.125rem; }
  .hero__blurb p { font-size: 0.9688rem; }
  .factrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; }
  .factrow div { border-right: 0; margin-right: 0; padding-right: 0; }
  .factrow dd { white-space: normal; }
  .tiles { margin-top: 1.75rem; }
  .tile { padding: 0.875rem 0.875rem 0.75rem; }
  .tile dt { font-size: 0.6562rem; }
  .tile__value { font-size: 2rem; }
  .tile__sub { font-size: 0.7812rem; }
  .curve { margin-top: -5.5rem; padding: 1rem 0.75rem 0.75rem; }
  .curve__controls { width: 100%; }
  .chips { gap: 0.375rem; }
  .chip { padding: 0 0.75rem; font-size: 0.875rem; min-height: 2.5rem; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 0; }
  .strip { gap: 0.25rem 1.125rem; padding: 0.625rem 0.75rem; margin-top: 0.875rem; }
  .strip__when { flex: 1 1 100%; }
  .strip__item b { font-size: 1.125rem; }
  .section { padding: 3rem 0; }
  .panel { grid-template-columns: minmax(0, 1fr); padding: 0.25rem 1rem 0.75rem; }
  .adv { padding: 1.125rem 0.875rem; }
  .stat-cols { grid-template-columns: minmax(0, 1fr); }
  .stat-col + .stat-col .kv__row:first-child { border-top: 1px solid var(--border); }
  .year { padding: 0.75rem 0.75rem 0.375rem; }
  .year__table { margin: 0 -0.75rem; }
  .year__table th:first-child, .year__table td:first-child { padding-left: 0.75rem; }
  .year__table th:last-child, .year__table td:last-child { padding-right: 0.75rem; }
  .year__table .hide-sm { display: none; }
  .toolbar { padding: 0.875rem 0.875rem 0.25rem; display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar .select { min-width: 0; width: 100%; }
  .toolbar__spacer { display: none; }
  .toolbar .btn { width: 100%; }
  .hist-summary { padding: 0.5rem 0.875rem 0.75rem; }

  /* history table becomes a list of cards */
  .table-scroll--hist { overflow: visible; }
  .hist thead { display: none; }
  .hist, .hist tbody { display: block; }
  .hist tr {
    display: grid; grid-template-columns: 1fr auto; gap: 0.125rem 0.75rem;
    padding: 0.75rem 0.875rem; border-bottom: 1px solid var(--border);
  }
  .hist td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
  .hist td:first-child, .hist td:last-child { padding: 0; }
  .hist tbody tr:hover td { background: none; }
  .hist td[data-cell="ticket"], .hist td[data-cell="openTime"], .hist td[data-cell="openPrice"], .hist td[data-cell="closePrice"], .hist td[data-cell="swap"] { display: none; }
  .hist td[data-cell="symbol"] { grid-column: 1; grid-row: 1; font-size: 1rem; }
  .hist td[data-cell="side"] { grid-column: 1; grid-row: 1; justify-self: start; margin-left: 4.75rem; align-self: center; }
  .hist td[data-cell="netProfit"] { grid-column: 2; grid-row: 1; text-align: right; font-size: 1rem; font-weight: 700; }
  .hist td[data-cell="closeTime"] { grid-column: 1; grid-row: 2; font-size: 0.8125rem; }
  .hist td[data-cell="gainPct"] { grid-column: 2; grid-row: 2; text-align: right; font-size: 0.8125rem; }
  .hist td[data-cell="lots"], .hist td[data-cell="pips"], .hist td[data-cell="durationSec"] { grid-row: 3; font-size: 0.8125rem; color: var(--muted); }
  .hist td[data-cell="lots"] { grid-column: 1; }
  .hist td[data-cell="pips"] { grid-column: 1; margin-left: 5.25rem; }
  .hist td[data-cell="durationSec"] { grid-column: 2; text-align: right; }
  .hist td[data-label]::before { content: attr(data-label) " "; color: var(--faint); }
  .pager { justify-content: center; padding: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skeleton { animation: none; }
  * { transition: none !important; }
}
@media print {
  .section-nav, .ad, .toolbar, .pager, #shareBtn { display: none !important; }
  .hero { padding: 1.5rem 0; }
  .curve { margin-top: 1rem; }
  .card { box-shadow: none; }
}

/* ---------- demo marker beside any money figure ---------- */
.demo-tag {
  display: inline-block; margin-left: 0.5rem; padding: 0.125rem 0.5rem; border-radius: 0.25rem; vertical-align: middle;
  background: #ffcf5c; color: #3a2a00; font-size: 0.6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.sw-tri { width: 0.875rem; height: 0.875rem; flex: none; }
.sw-tri .m-dep { fill: var(--green-600); }
.sw-tri .m-wd { fill: var(--red); }

.year-pick { display: flex; align-items: center; gap: 0.625rem; }
.year-pick .select { min-width: 7.5rem; }
.section__note:empty { display: none; }
.sum-sep { margin: 0 0.625rem; color: var(--border-strong); }

/* verification: icons top right, explainer for the active check underneath */
.vbox { display: grid; gap: 0.75rem; }
.vrow { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.vrow__label { margin: 0 0.125rem 0 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.vrow__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.375rem; }
.vicon {
  position: relative; display: grid; place-items: center; width: 2.375rem; height: 2.375rem; padding: 0; border-radius: 50%;
  background: rgba(160, 206, 78, .14); border: 1px solid rgba(160, 206, 78, .55); color: var(--lime);
  transition: background-color .12s, color .12s, transform .12s;
}
.vicon svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vicon::before {
  content: ""; position: absolute; right: -0.1875rem; bottom: -0.1875rem; width: 0.875rem; height: 0.875rem; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 1.9 4-4.2' fill='none' stroke='%230c3210' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.6875rem no-repeat;
  box-shadow: 0 0 0 2px var(--green-850);
}
.vicon:hover { background: rgba(160, 206, 78, .3); }
.vicon[aria-pressed="true"] { background: var(--lime); color: var(--green-950); transform: translateY(-0.0625rem); }
.vshare {
  display: inline-flex; align-items: center; gap: 0.375rem; height: 2.375rem; margin-left: auto; padding: 0 0.875rem; border-radius: 1.1875rem;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: var(--white); font-size: 0.8125rem; font-weight: 600;
}
.vshare:hover { background: rgba(255, 255, 255, .14); }
.vshare svg { width: 0.9375rem; height: 0.9375rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.vshare svg circle { fill: currentColor; stroke: none; }
.vbox .vpanel {
  min-height: 14.25rem; padding: 1rem 1.125rem; border-radius: 0.625rem; color: var(--white);
  background: rgba(6, 30, 8, .34); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none;
}
.vbox .vpanel__title { margin: 0; font-family: var(--font-head); font-size: 1.0625rem; line-height: 1.3; color: var(--white); }
.vbox .vpanel__date { margin: 0.125rem 0 0; font-size: 0.7812rem; color: rgba(255, 255, 255, .7); }
.vbox .vpanel h4 { margin: 0.75rem 0 0.1875rem; color: var(--lime); }
.vbox .vpanel p, .vbox .vpanel li { font-size: 0.8438rem; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.vbox .vpanel__link { color: var(--lime); }
@media (max-width: 62.5rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .vbox .vpanel { min-height: 0; }
}

/* title: sized in rem against the width of its header box, so any name up to
   NAME_MAX characters keeps the same proportion of that space */
.hero__text { flex: 1 1 auto; container-type: inline-size; }
.hero__title {
  font-size: clamp(1.125rem, calc(100cqi / (var(--chars, 22) * 0.56)), 2.75rem);
  line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__title .money-type { font-size: 0.8125rem; }
@media (max-width: 40rem) {
  .hero__title { display: block; overflow: visible; }
  .hero__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero__title .money-type { display: flex; width: max-content; margin-top: .4rem; top: 0; }
}

@media (min-width: 62.5625rem) {
  .factrow { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .factrow div { margin-right: 0; padding-right: 0; border-right: 0; }
}

/* ---------- standard ad sizes: the slot keeps the artwork's exact ratio ---------- */
.ad { width: 100%; }
.ad__slot { width: 100%; }
.ad--billboard .ad__slot { aspect-ratio: 1232 / 200; }
.ad--banner .ad__slot { aspect-ratio: 1232 / 120; }
.ad--rect .ad__slot { width: 18.75rem; aspect-ratio: 300 / 250; }
.ad__slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad__slot a { display: block; height: 100%; transition: transform .15s, box-shadow .15s, filter .15s; }
.ad__slot a:hover { filter: brightness(1.06); box-shadow: 0 0 0 2px var(--lime); }
@media (max-width: 56.25em) {
  .ad--billboard .ad__slot, .ad--banner .ad__slot { aspect-ratio: 398 / 124; }
}

/* ---------- balance: centre short, scannable content; keep reading text left ---------- */
.tile { text-align: center; }
.tile__sub { text-align: center; }
.strip { justify-content: space-between; align-items: center; }
.strip__item { flex-direction: column; align-items: center; gap: 0.125rem; }
.strip__when { text-align: left; }
.tabs--bar, .tabs--underline { justify-content: center; }
.pager { justify-content: center; position: relative; }
.pager__size { position: absolute; right: 1.25rem; }
.hist-summary { text-align: center; }
.brokers__head { align-items: center; }
.bcard { align-items: stretch; text-align: center; transition: border-color .15s, transform .15s, box-shadow .15s; }
.bcard:hover { border-color: var(--green-600); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.empty { text-align: center; }
.year-pick { margin-left: auto; }
.daily__head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; flex-wrap: wrap; }
.daily__stats { margin: 0; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.daily__stats b { font-weight: 700; }
.curve__title .legend { margin-top: 0.375rem; }
.section { padding: 3rem 0; }
.hero__grid { align-items: stretch; }
.hero__main { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; }
.hero__blurb, .factrow { margin-top: 0; }

/* ---------- hover on everything that can be clicked or selected ---------- */
.chip, .seg button, .tabs [role="tab"], .pager button, .select, .btn, .vicon, .vshare, .sym-btn, .month-btn, .table th[data-sort] {
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.tabs [role="tab"]:hover { background: var(--surface); }
.table th[data-sort]:hover { background: var(--surface); }
.select:hover, .select:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(32, 150, 3, .12); }
.btn--outline:hover { border-color: var(--green-600); color: var(--green-600); }
.check-row:hover { background: var(--surface); }
.year__table tbody tr:hover td, .table tbody tr:hover td { background: var(--tint); }
.seg button:disabled:hover { background: none; color: var(--border-strong); }
@media (max-width: 40em) {
  .pager__size { position: static; }
  .strip__item { align-items: flex-start; }
}

.section-nav__inner { justify-content: center; }
.panel .kv__row dd { display: flex; flex-direction: column-reverse; align-items: flex-end; }
.panel .kv__row dd small { margin: 0.0625rem 0 0; }
.year__table th:not(:first-child), .year__table td:not(:first-child) { text-align: center; }
@media (max-width: 40em) { .section-nav__inner { justify-content: flex-start; } }
.chart--daily { min-height: 0; }

/* ======================================================================= Euronis retro brand layer */
body { font-size: 1rem; }
.hero__title, .h2, .h3, .vpanel__title, .bcard__name { font-weight: 600; }
/* labels and numbers in Play, as on euronis.com */
.tile dt, .factrow dt, .panel__title, .field__label, .table th, .vrow__label, .ad__label, .daily__title, .brokers__title,
.money-type, .demo-band__tag, .demo-tag, .side, .eyebrow, .chart__tip strong, .tabs [role="tab"], .chip, .seg button,
.section-nav a, .pager button, .strip__when, .vpanel h4, .vshare, .btn, .check__meta { font-family: var(--font-ui); }
.tile__value, .strip__item b, .kv__row dd, .table td, .chart text, .factrow dd, .chart__tip .row, .hist-summary b,
.tab-sub { font-family: var(--font-num); }
.chart text { font-size: 0.75rem; }

/* site header: the euronis.com bar */

/* owner's description: paragraphs, full width of its column */
.hero__blurb { display: grid; gap: 0.625rem; }
.hero__blurb p { margin: 0; }
.factrow { --n: 5; }
@media (min-width: 62.5625rem) { .factrow { grid-template-columns: repeat(var(--n), auto); } }

/* stats panel: four groups, two across beside the ad */
.panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel > div:nth-child(n + 3) { border-top: 1px solid var(--border); margin-top: 0.625rem; }

.closed-by { font-size: 0.8125rem; color: var(--muted); }

/* footer: brand and one line, link columns, a bar with items at both ends */

@media (max-width: 68.75rem) {
}
@media (max-width: 40rem) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .panel > div:nth-child(n + 2) { border-top: 1px solid var(--border); margin-top: 0.625rem; }
  .hist td[data-cell="closedBy"] { grid-column: 1; grid-row: 3; margin-left: 5.25rem; font-size: 0.8125rem; }
  .hist td[data-cell="pips"] { grid-column: 1; grid-row: 4; margin-left: 0; }   /* "Closed by" holds its row-3 place */
  .hist td[data-cell="gainPct"] { grid-column: 2; grid-row: 2; text-align: right; font-size: 0.8125rem; }
}

/* beside the statistics: the ad, then the cash moves filling the rest of the column */
.with-ad { align-items: stretch; }
.side-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.cashcard { flex: 1 1 0; min-height: 10rem; display: flex; flex-direction: column; padding: 0.375rem 1.25rem 0.75rem; overflow: hidden; }
.cashlist { list-style: none; margin: 0.25rem 0 0; padding: 0; overflow-y: auto; flex: 1 1 0; min-height: 0; }
.cashlist li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9062rem; }
.cashlist li:last-child { border-bottom: 0; }
.cashlist small { display: block; font-size: 0.7812rem; color: var(--faint); }
.cashlist b { font-family: var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cashlist__none { color: var(--muted); }
@media (max-width: 68.75rem) {
  .side-col { display: grid; grid-template-columns: 18.75rem minmax(0, 1fr); align-items: stretch; }
  .cashcard { max-height: 18rem; }
}
@media (max-width: 40rem) {
  .side-col { grid-template-columns: minmax(0, 1fr); }
  .side-col .ad--rect .ad__slot { margin: 0 auto; }
}

/* ======================================================================= v2 layout (19 Nov 2026): denser than Myfxbook,
   key figures, statistics panel and chart on the first desktop screen; deep views behind tabs. */

/* compact hero: identity and checks on one row, the description only when there is one, the four key figures below */
.hero { padding: 1.25rem 0 1.25rem; }
.demo-band { margin: -1.25rem 0 1rem; }
.hero__wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id checks" "blurb blurb" "tiles tiles"; gap: 0.875rem 2rem; align-items: start; }
.hero__id { grid-area: id; gap: 1.125rem; align-items: center; }
.vbox { grid-area: checks; position: relative; }
.hero__blurb { grid-area: blurb; columns: 2 24rem; column-gap: 2.5rem; display: block; font-size: 0.9375rem; line-height: 1.55; }
.hero__blurb p { margin: 0 0 0.5rem; break-inside: avoid; }
.tiles { grid-area: tiles; margin: 0; }
.sys-icon--hero { width: 5.5rem; }
.sys-icon--hero .sys-icon__mono { font-size: 2.5rem; }
.hero__title { font-size: clamp(1.25rem, calc(100cqi / (var(--chars, 22) * 0.56)), 2.125rem); margin-bottom: 0.125rem; }
.factrow { margin-top: 0.5rem; }
.factrow dt { font-size: 0.625rem; }
.factrow dd { font-size: 0.9375rem; }
.tile { padding: 0.625rem 1rem 0.625rem; }
.tile__value { font-size: clamp(1.625rem, 1.6vw + 0.75rem, 2.25rem); margin: 0.25rem 0 0.125rem; }
.tile__sub { font-size: 0.75rem; }
/* the explanation of a check opens over the page, it does not take room */
.vbox .vpanel { position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 30; width: min(26rem, calc(100vw - 2rem)); min-height: 0;
  background: var(--green-900); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); border-color: rgba(160, 206, 78, .4); }

/* overview: the statistics panel beside the chart */
.overview { display: grid; grid-template-columns: 21.5rem minmax(0, 1fr); gap: 1.25rem; align-items: stretch; margin-top: 1.25rem; }
.overview .panel { display: flex; flex-direction: column; padding: 0; gap: 0; min-width: 0; }
.panel__body { padding: 0.375rem 1.125rem 0.5rem; flex: 1 1 auto; }
.panel__body .kv__row { padding: 0.1875rem 0; font-size: 0.875rem; }
.panel__body .kv__row--lead dd { font-size: 1.125rem; }
.panel__foot { margin: 0; padding: 0.625rem 1.125rem; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--muted); }
.kv__sep { height: 1px; background: var(--border); margin: 0.375rem 0; }
.panel .kv__row dd { flex-direction: row; align-items: baseline; gap: 0.375rem; }
.panel .kv__row dd small { margin: 0; }
.tabs--panel { border-bottom: 1px solid var(--border); padding: 0 0.375rem; justify-content: flex-start; }
.tabs--panel [role="tab"] { padding: 0.75rem 0.75rem; min-height: 2.75rem; font-size: 0.875rem; }
.pbar { display: inline-flex; width: 7rem; height: 0.625rem; border-radius: 0.3125rem; overflow: hidden; background: #e7b1aa; align-self: center; }
.pbar__win { background: var(--green-600); }
.curve { margin-top: 0; padding: 1rem 1.25rem 0.75rem; box-shadow: var(--shadow); min-width: 0; }
.curve .strip { margin: 0.75rem 0 0.375rem; padding: 0.5rem 0.875rem; }
.curve .strip__item b { font-size: 1.125rem; }
.curve .daily { margin-top: 0.625rem; padding-top: 0.5rem; }
.curve__note { margin: 0.375rem 0 0; font-size: 0.75rem; color: var(--muted); }
.section-nav { margin-top: 0; }

/* cards with a title bar that holds their tabs */
.section--tight { padding: 1.5rem 0; }
.card__bar { display: flex; align-items: center; gap: 0.25rem 1.25rem; flex-wrap: wrap; padding: 0 1rem 0 1.25rem; border-bottom: 1px solid var(--border); }
.card__title { margin: 0; padding: 0.75rem 0; font: 600 1.25rem/1.2 var(--font-head); color: var(--ink); }
.card__bar .tabs--bar { border-bottom: 0; padding: 0; justify-content: flex-start; flex: 1 1 auto; }
.card__note { margin: 0 0 0 auto; font-size: 0.8125rem; color: var(--muted); }
.card__note:empty { display: none; }
.card .adv { padding: 1rem 1.25rem; }
.adv__foot { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.btn--small { min-height: 2.25rem; padding: 0 0.875rem; font-size: 0.8438rem; }

/* trading periods */
.ptable th[scope="row"] { font-family: var(--font-ui); font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 0.9375rem; text-align: left; }
.ptable th[scope="row"] small { display: block; font: 400 0.75rem var(--font-body); color: var(--faint); }
.ptable td { vertical-align: top; }
.ptable td b { display: block; font-size: 1rem; }
.ptable .diff { display: block; font-size: 0.75rem; }
.ptable tbody tr:last-child th, .ptable tbody tr:last-child td { background: var(--surface); }

/* calendar */
.cal__head { display: flex; align-items: center; gap: 0.5rem 0.75rem; flex-wrap: wrap; margin-bottom: 0.625rem; }
.cal__head strong { font: 700 1rem var(--font-ui); min-width: 9rem; text-align: center; }
.cal__sum { margin-left: auto; font-size: 0.875rem; color: var(--muted); }
.cal__sum b { font-family: var(--font-num); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; }
.cal__wd { font: 700 0.6875rem var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 0.25rem 0; }
.cal__day { min-height: 3.75rem; padding: 0.3125rem 0.5rem; border-radius: 0.375rem; border: 1px solid var(--border); background: var(--white); display: grid; align-content: start; gap: 0.0625rem; font-variant-numeric: tabular-nums; }
.cal__day--pad { border: 0; background: none; }
.cal__day--none { background: var(--surface); color: var(--faint); }
.cal__day.pos { background: var(--tint); border-color: var(--lime-soft); }
.cal__day.neg { background: var(--red-tint); border-color: var(--red-soft); }
.cal__day b { font: 700 0.9375rem var(--font-num); }
.cal__day.pos b { color: var(--green-800); }
.cal__day.neg b { color: var(--red); }
.cal__day small { font-size: 0.6875rem; color: var(--muted); }
.cal__n { font-size: 0.75rem; color: var(--muted); }

/* bar lists: month detail, streak lengths, risk of ruin */
.barlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3125rem; }
.barlist li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 6.5rem; gap: 0.625rem; align-items: center; font-size: 0.8438rem; }
.barlist__label { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barlist__bar { display: flex; height: 0.75rem; border-radius: 0.1875rem; background: var(--surface); overflow: hidden; }
.barlist__bar--pair { flex-direction: column; height: 0.875rem; gap: 0.125rem; background: none; }
.barlist__bar--pair .barlist__fill { flex: 1 1 0; border-radius: 0.125rem; }
.barlist__fill { display: block; height: 100%; background: var(--green-600); }
.barlist__fill.neg { background: #e08a7f; }
.barlist__fill.pos { background: #7cc35a; }
.barlist__fill.alt { background: #6fb2e6; }
.barlist__value { text-align: right; font: 700 0.8125rem var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.barlist--narrow li { grid-template-columns: 6rem minmax(0, 1fr) 3rem; }
.ruin { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; }
.ruin__bar { width: 45%; }
.ruin__how p { margin: 0.375rem 0 0; font-size: 0.875rem; color: var(--muted); }

/* monthly analytics: the year's bars and table beside the chosen month's detail */
.monthly { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.monthly .year { padding: 1rem 1.25rem 0.5rem; }
.monthly .year__table { margin: 0 -1.25rem; }
.mdetail { border-left: 1px solid var(--border); padding: 1rem 1.25rem; display: grid; gap: 1rem; align-content: start; }
.mdetail__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.mdetail__block { display: grid; gap: 0.5rem; }
.month-btn.is-on { color: var(--white); background: var(--green-600); text-decoration: none; padding: 0.125rem 0.5rem; border-radius: 0.25rem; }
.chart .bar-sel, .chart .bar-sel-neg { cursor: pointer; }
.chart .is-on { stroke: var(--ink); stroke-width: 2; }

/* trading activity */
.open-kv { padding: 0.75rem 1.25rem 0; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
#a-open .adv__foot, #a-open .empty { padding: 0 1.25rem 1rem; }
#a-open .empty { padding-top: 2rem; }
.tabs [role="tab"] .count:empty { display: none; }

/* period side column: the ad, then the cash moves */
#periods .with-ad { grid-template-columns: minmax(0, 1fr) 18.75rem; }

@media (max-width: 68.75rem) {
  .overview { grid-template-columns: minmax(0, 1fr); }
  .monthly { grid-template-columns: minmax(0, 1fr); }
  .mdetail { border-left: 0; border-top: 1px solid var(--border); }
  #periods .with-ad { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .hero { padding: 1rem 0; }
  .demo-band { margin: -1rem 0 0.875rem; }
  .hero__wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "checks" "blurb" "tiles"; gap: 0.75rem; }
  .hero__blurb { columns: 1; }
  .sys-icon--hero { width: 4.25rem; }
  .overview { margin-top: 0.875rem; gap: 0.875rem; }
  .overview .curve { order: -1; }
  .curve { padding: 0.75rem 0.625rem 0.5rem; }
  .tabs--panel [role="tab"] { flex: 1 1 0; padding: 0.75rem 0.25rem; }
  .card__bar { padding: 0 0.75rem; }
  .card__title { font-size: 1.125rem; padding: 0.625rem 0 0.25rem; flex: 1 1 100%; }
  .card__note { margin: 0 0 0.5rem; flex: 1 1 100%; }
  .card .adv { padding: 0.875rem 0.75rem; }
  .section--tight { padding: 1rem 0; }
  .cal { gap: 0.125rem; }
  .cal__day { min-height: 2.875rem; padding: 0.1875rem 0.25rem; }
  .cal__day b { font-size: 0.6875rem; }
  .cal__day small { display: none; }
  .cal__wd { letter-spacing: 0; font-size: 0.625rem; }
  .cal__sum { margin-left: 0; flex: 1 1 100%; }
  .barlist li { grid-template-columns: 5rem minmax(0, 1fr) 5.75rem; gap: 0.375rem; font-size: 0.8125rem; }
  .ruin { grid-template-columns: minmax(0, 1fr); }
  .ruin__bar { width: 30%; }
  .monthly .year { padding: 0.75rem 0.75rem 0.375rem; }
  .monthly .year__table { margin: 0 -0.75rem; }
  .mdetail { padding: 0.875rem 0.75rem; }
  .open-kv { grid-template-columns: minmax(0, 1fr); padding: 0.75rem; }
  .ptable th[scope="row"] { font-size: 0.8438rem; }
  .ptable td b { font-size: 0.875rem; }
}

/* v2b: key figures beside the name, section nav under the overview, one-row chart header */
.hero__wrap { grid-template-columns: minmax(0, 1fr) 31rem; grid-template-areas: "id side" "blurb side"; gap: 0.75rem 2rem; }
.hero__side { grid-area: side; display: grid; gap: 0.625rem; align-content: start; }
.hero__side .vrow { justify-content: flex-end; }
.hero__side .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero__side .tile:nth-child(odd) { border-left: 0; }
.hero__side .tile:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .14); }
.hero__side .tile { padding: 0.5rem 0.75rem; }
.hero__side .tile__value { font-size: 1.75rem; }
.hero__blurb { columns: 1; align-self: start; }
.section-nav { margin-top: 1.25rem; }
.curve__head { flex-wrap: nowrap; align-items: center; }
.curve__title { margin: 0; white-space: nowrap; }
.curve__controls { margin-left: auto; flex-wrap: nowrap; }
.curve .chip { min-height: 2.25rem; padding: 0 0.75rem; font-size: 0.8438rem; }
.curve .seg button { min-width: 2.25rem; padding: 0 0.4375rem; }
.curve .strip { margin: 0.625rem 0 0.25rem; padding: 0.375rem 0.75rem; gap: 0.25rem 1.5rem; }
.curve .strip__when small { display: inline; margin-left: 0.5rem; }
.curve .strip__item { flex-direction: row; align-items: baseline; gap: 0.375rem; font-size: 0.8125rem; }
.curve .strip__item b { font-size: 1rem; }
.curve__legend { margin: 0.125rem 0 0; }
@media (max-width: 68.75rem) {
  .hero__wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "side" "blurb"; }
  .hero__side .vrow { justify-content: flex-start; }
}
@media (max-width: 40rem) {
  .curve__head { flex-wrap: wrap; }
  .curve__controls { margin-left: 0; flex-wrap: wrap; width: 100%; }
  .curve .chips { width: 100%; }
  .curve .chip { flex: 1 1 0; padding: 0 0.25rem; }
  .curve .strip__item { flex-direction: column; gap: 0; }
  .section-nav { margin-top: 0.875rem; }
}
.hero__side .vbox, .hero__side .tiles { grid-area: auto; }
.curve .strip { flex-wrap: wrap; gap: 0.25rem 1.25rem; justify-content: flex-start; }  /* each item stays whole; the line wraps when it must */
.curve .strip__when { white-space: nowrap; }
.curve .strip__when small { font-size: 0.75rem; }
.curve .strip__item { white-space: nowrap; }
.kv__when { display: block; font-size: 0.75rem; color: var(--faint); }
.table .lost-cell { color: var(--red); }
@media (max-width: 40rem) { .hero__id { align-items: flex-start; } }


/* ---------- hero v2 (owner, 19 Nov 2026): no demo band, fact cards, blue verified checks ---------- */
/* the header must not clip the verification pop-up; it sits above the cards below it */
.hero { overflow: visible; z-index: 4; }
.overview { position: relative; z-index: 1; }

/* blue check, the mark people already read as "verified" */
.bluecheck {
  display: inline-block; flex: none; width: 1.125rem; height: 1.125rem; border-radius: 50%; vertical-align: -0.125em;
  background: #1d9bf0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.5 2.4 5-5.2' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.bluecheck--title { width: 0.62em; height: 0.62em; margin-left: 0.3em; vertical-align: 0.02em; box-shadow: 0 0 0 0.1em rgba(255, 255, 255, .9); }
.vrow__label { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--white); font-size: 0.75rem; }
.vrow__label .bluecheck { width: 1.125rem; height: 1.125rem; }
.vrow__list { flex-wrap: wrap; gap: 0.375rem; }
.vchip {
  display: inline-flex; align-items: center; gap: 0.4rem; height: 2rem; padding: 0 0.75rem 0 0.4375rem; border-radius: 1rem;
  background: var(--white); border: 0; color: var(--ink); font: 600 0.8125rem/1 var(--font-ui); cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .12s, box-shadow .12s;
}
.vchip:hover, .vchip[aria-pressed="true"] { transform: translateY(-1px); box-shadow: 0 0 0 2px #1d9bf0, 0 4px 12px rgba(0, 0, 0, .25); }
.vbox .vpanel { z-index: 50; }

/* the demo label: one quiet tag beside the name, nothing else */
.money-type--demo { background: rgba(255, 255, 255, .16); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }

/* six fact cards: equal widths, value on top, its name under it */
.factrow { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; margin: 1rem 0 0; padding: 0; }
.factrow .fact {
  display: flex; flex-direction: column-reverse; justify-content: center; gap: 0.1875rem; min-width: 0;
  margin: 0; padding: 0.625rem 0.5rem; border: 1px solid rgba(255, 255, 255, .16) !important; border-radius: 0.5rem;
  background: rgba(6, 30, 8, .28); text-align: center;
}
.factrow .fact dd { margin: 0; font: 700 1rem/1.2 var(--font-num); font-variant-numeric: tabular-nums; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.factrow .fact dt { font-size: 0.625rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); white-space: nowrap; }
@media (max-width: 62.5rem) { .factrow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* hero v2 fit: "Verified" and Copy link share the top line, the chips get a full line of their own */
.vrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.vrow__label { order: 1; }
.vshare { order: 2; margin-left: auto; height: 2rem; }
.vrow__list { order: 3; flex: 1 1 100%; justify-content: flex-end; }
.vchip { height: 1.875rem; padding: 0 0.625rem 0 0.375rem; font-size: 0.78rem; gap: 0.3125rem; }
.vchip .bluecheck { width: 1rem; height: 1rem; }
@media (max-width: 62.5rem) { .vrow__list { justify-content: flex-start; } }
/* the fact cards get the whole width under the name block, so no value is cut */
.factrow .fact dd { font-size: 0.9375rem; }

.hero__wrap { grid-template-areas: "id side" "facts side" "blurb side"; }
.factrow { grid-area: facts; margin: 0.25rem 0 0; }
.factrow .fact dd { font-size: 1.0625rem; }
@media (max-width: 62.5rem) { .hero__wrap { grid-template-areas: "id" "facts" "side" "blurb"; } }
.factrow .fact { padding: 0.625rem 0.25rem; }
.factrow .fact dd { font-size: 1rem; letter-spacing: -0.01em; }

/* ---------- hero v3 (owner, 19 Nov): the right side is ONE card: Verified line, the checks in an even grid, then the four figures ---------- */
.hero__side {
  gap: 0; align-self: start;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 0.75rem; background: rgba(8, 40, 10, .28);
}
.hero__side .vbox { position: relative; display: block; padding: 0.75rem 0.875rem 0.875rem; }
.hero__side .vrow { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label share" "list list"; align-items: center; gap: 0.625rem 0.75rem; }
.hero__side .vrow__label { grid-area: label; margin: 0; }
.hero__side .vshare { grid-area: share; margin: 0; height: 1.875rem; padding: 0 0.75rem; font-size: 0.78rem; }
.hero__side .vrow__list { grid-area: list; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0.4375rem; margin: 0; }
.hero__side .vrow__list li { min-width: 0; }
.hero__side .vchip { width: 100%; justify-content: flex-start; height: 2.125rem; padding: 0 0.625rem; border-radius: 0.4375rem; font-size: 0.8125rem; }
.hero__side .vchip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__side .tiles { margin: 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .18); border-radius: 0 0 0.75rem 0.75rem; background: transparent; }
.hero__side .vbox .vpanel { top: calc(100% - 0.25rem); left: 0.875rem; right: 0.875rem; width: auto; }

/* badge: a thin frame, not a thick white border */
.sys-icon--hero { border-width: 1px !important; border-color: rgba(255, 255, 255, .35) !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
@media (max-width: 40rem) { .hero__name { -webkit-line-clamp: 3; } }

/* trading periods: alternating rows so each period reads as one line (owner, 19 Nov) */
.ptable tbody tr:nth-child(even) th, .ptable tbody tr:nth-child(even) td { background: #eef6e2; }
.ptable tbody tr:last-child th, .ptable tbody tr:last-child td { background: var(--surface); border-top: 2px solid var(--border-strong, #cfd8c6); }
/* money in and out: totals, no scrolling list */
.cashlist { overflow: visible; }
.cashlist li:nth-last-child(2) { border-top: 2px solid var(--border); }
.cashcard { flex: 0 0 auto; min-height: 0; max-height: none !important; overflow: visible; }
.cashlist { flex: 0 0 auto; }
.cashlist li { padding: 0.4375rem 0; }
/* the periods table fills its card: rows share any spare height instead of leaving a gap at the bottom */
.card:has(.ptable) { display: flex; flex-direction: column; }
.card:has(.ptable) > :has(.ptable) { flex: 1 1 auto; display: flex; flex-direction: column; }
.table-scroll:has(> .ptable) { flex: 1 1 auto; }
.ptable { height: 100%; }
.ptable tbody th, .ptable tbody td { vertical-align: middle; }

/* ---------- hero v4 (owner, 19 Nov): one plain line "Verified | broker | Real/Demo", Share on the right ---------- */
.hero__side .vrow { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.625rem; }
.vstatus {
  display: inline-flex; align-items: center; gap: 0.4375rem; padding: 0.25rem; margin: 0; border: 0; background: none;
  color: var(--white); font: 700 0.9375rem/1 var(--font-ui); cursor: pointer; border-radius: 0.375rem; flex: none;
}
.vstatus .bluecheck { width: 1.25rem; height: 1.25rem; }
.vstatus__caret { width: 0.75rem; height: 0.75rem; fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1.6; transition: transform .15s; }
.vstatus[aria-expanded="true"] .vstatus__caret { transform: rotate(180deg); }
.vstatus:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.vbroker { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, .9); font-size: 0.9375rem; }
.vstatus + .vbroker { padding-left: 0.625rem; border-left: 1px solid rgba(255, 255, 255, .25); }
.hero__side .money-type { position: static; top: 0; flex: none; font-size: 0.6875rem; }
.sharewrap { position: relative; margin-left: auto; flex: none; }
.hero__side .vshare { height: 2rem; padding: 0 0.875rem; font-size: 0.8125rem; }
.sharemenu {
  position: absolute; right: 0; top: calc(100% + 0.375rem); z-index: 60; min-width: 11rem; padding: 0.375rem;
  background: var(--white); border-radius: 0.625rem; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); display: grid;
}
.sharemenu[hidden] { display: none; }
.sharemenu__item {
  display: block; width: 100%; padding: 0.5rem 0.75rem; border: 0; border-radius: 0.375rem; background: none; text-align: left;
  color: var(--ink); font: 600 0.875rem/1.2 var(--font-ui); text-decoration: none; cursor: pointer;
}
.sharemenu__item:hover, .sharemenu__item:focus-visible { background: var(--surface); color: var(--green-800); }
.vlist { list-style: none; margin: 0.625rem 0 0; padding: 0; display: grid; gap: 0.625rem; }
.vlist li { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; align-items: start; }
.vlist .bluecheck { margin-top: 0.125rem; }
.vlist b { font-size: 0.9062rem; color: var(--white); }
.vlist small { font-size: 0.75rem; color: rgba(255, 255, 255, .65); }
.vlist p { margin: 0.125rem 0 0; }
@media (max-width: 40rem) {
  .hero__side .vshare { width: 2.25rem; padding: 0; justify-content: center; }
  .hero__side .vshare #shareLabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero__side .vrow { gap: 0.5rem; }
}
@media (max-width: 40rem) { .vbroker { white-space: normal; overflow: visible; line-height: 1.25; font-size: 0.875rem; } }

/* deposits and withdrawals statement: subtotal lines carry a rule above, figures right-aligned in tabular digits */
.cashlist li.stmt__total { border-top: 1px solid var(--ink); }
.cashlist li.stmt__total span, .cashlist li.stmt__total b { font-weight: 700; }
.cashlist li:nth-last-child(2) { border-top-width: 1px; }

/* ======================================================================= v5 (19 Nov 2026): each figure once, curve left,
   symbol grids that hold 30 symbols */
.overview { grid-template-columns: minmax(0, 1fr) 21.5rem; }   /* the equity curve is the star: left; the panel: right */
.ad-after-overview .ad { margin-top: 1.25rem; }

/* data grids: one row per symbol, sortable, sticky header, scroll inside the box, symbol column frozen */
.grid-box { --rows: 15; max-height: calc(var(--rows) * 2.125rem + 4.75rem); overflow: auto; border: 1px solid var(--border); border-radius: 0.5rem; }
.grid-box:focus-visible { outline: 3px solid var(--lime); }
.table.grid { font-size: 0.8125rem; }
.table.grid th, .table.grid td { padding: 0.4375rem 0.625rem; line-height: 1.25; }
.table.grid thead { position: sticky; top: 0; z-index: 3; }
.table.grid thead th { background: var(--white); box-shadow: inset 0 -1px 0 var(--border); border-bottom: 0; }
.table.grid thead .group th { padding-top: 0.5rem; padding-bottom: 0.125rem; box-shadow: none; }
.table.grid tbody tr:nth-child(even) td { background: #fafcf7; }
.table.grid tbody tr:hover td { background: var(--tint); }
.table.grid th:first-child, .table.grid td:first-child { position: sticky; left: 0; z-index: 1; background: var(--white); box-shadow: inset -1px 0 0 var(--border); }
.table.grid tbody tr:nth-child(even) td:first-child { background: #fafcf7; }
.table.grid thead th:first-child { z-index: 4; }
.table.grid tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--surface); box-shadow: inset 0 1px 0 var(--border-strong); font-weight: 700; }
.table.grid tfoot td:first-child { z-index: 3; }
.table.grid .sym { font-weight: 700; white-space: nowrap; }
.ibar { display: inline-block; width: 2.75rem; height: 0.375rem; margin-left: 0.375rem; border-radius: 0.1875rem; background: #e7b1aa; vertical-align: middle; overflow: hidden; }
.ibar__fill { display: block; height: 100%; background: var(--green-600); }
.ibar__fill.pos { background: #7cc35a; }
.mdetail .ibar { background: var(--surface); }
.won-cell .ibar { background: #e7b1aa; }
.mdetail { gap: 0.75rem; }
.kv__row dd .pbar { margin-left: 0.5rem; }
@media (max-width: 40rem) {
  .grid-box { --rows: 12; }
  .table.grid th, .table.grid td { padding: 0.375rem 0.5rem; }
  .ad-after-overview .ad { margin-top: 0.875rem; }
}
@media (max-width: 68.75rem) { .overview { grid-template-columns: minmax(0, 1fr); } }
/* stats panel: Account and Risk both open */
.overview .panel .panel__body { flex: 0 0 auto; padding-top: 0.75rem; }
.overview .panel .panel__body--risk { border-top: 1px solid var(--border); flex: 1 1 auto; }
.overview .panel .panel__title { margin: 0 0 0.25rem; }
/* monthly analytics: the month grid fills the height of the year beside it and scrolls inside */
@media (min-width: 68.8125rem) { .monthly { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: stretch; } }
.mdetail { display: flex; flex-direction: column; }
.mdetail .grid-box { flex: 1 1 0; min-height: 18rem; max-height: none; }
.mdetail .table.grid th, .mdetail .table.grid td { padding-left: 0.5rem; padding-right: 0.5rem; }
@media (max-width: 68.75rem) { .mdetail .grid-box { flex: none; max-height: calc(var(--rows) * 2.125rem + 2.75rem); } }
.mdetail__head { flex-wrap: wrap; }

/* ======================================================================= column chart with its grid (19 Nov 2026):
   Hourly, Daily, Duration, Sessions and Monthly analytics share one look. Brand colours only: profit #209603, loss
   #c0392b, ink and greys. */
.cc-box { width: 100%; }
.cc { display: grid; grid-template-columns: 6.5rem repeat(var(--n), minmax(0, 1fr)); column-gap: 0.25rem; font-variant-numeric: tabular-nums; }
.cc--total { grid-template-columns: 6.5rem repeat(var(--n), minmax(0, 1fr)) 6.5rem; }
.cc__plot { height: 11rem; padding: 1.5rem 0; }
.cc--compact .cc__plot { height: 10rem; }
.cc__plot--total { border-left: 1px solid var(--border); }
.cc__track { position: relative; height: 100%; }
.cc__zero { position: absolute; left: -0.125rem; right: -0.125rem; height: 0; border-top: 1px solid var(--ink); opacity: .55; }
.cc__bar { position: absolute; left: 18%; right: 18%; border-radius: 2px; background: var(--green-600); }
.cc--compact .cc__bar { left: 12%; right: 12%; }
.cc__bar.neg { background: var(--red); }
.cc__val { position: absolute; left: -0.5rem; right: -0.5rem; text-align: center; font: 700 0.75rem/1.25rem var(--font-num); white-space: nowrap; }
.cc--compact .cc__val { font-size: 0.625rem; }
.cc__val.pos { color: var(--green-600); }
.cc__val.neg { color: var(--red); }
.cc__head { padding: 0.375rem 0.125rem; text-align: center; font: 700 0.8125rem var(--font-ui); color: var(--ink); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc--compact .cc__head { font-size: 0.75rem; }
.cc__head--total { border-left: 1px solid var(--border); }
.cc__rowlab { padding: 0.375rem 0.5rem 0.375rem 0; font: 700 0.6875rem/1.6 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.cc > .cc__rowlab:nth-of-type(1) { border-top: 1px solid var(--ink); }
.cc__cell { padding: 0.375rem 0.125rem; text-align: center; font: 400 0.8125rem/1.6 var(--font-num); color: var(--ink); border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc--compact .cc__cell { font-size: 0.6875rem; }
.cc__cell.pos { color: var(--green-600); font-weight: 700; }
.cc__cell.neg { color: var(--red); font-weight: 700; }
.cc__cell--total { border-left: 1px solid var(--border); background: var(--surface); font-weight: 700; }
.cc .is-empty { opacity: .35; }
.cc__plot.is-empty .cc__track::after { content: ""; position: absolute; left: 35%; right: 35%; bottom: 0; top: 0; background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(31, 42, 28, .06) 6px 7px); }
.cc__link { border: 0; background: none; padding: 0; font: inherit; color: var(--green-800); text-decoration: underline; text-decoration-color: var(--lime-soft); text-underline-offset: 0.1875rem; cursor: pointer; }
.cc__link:hover { color: var(--green-600); text-decoration-color: currentColor; }
/* phone: a list, one row per bucket, the bar across from a zero point */
.cc-list th, .cc-list td { padding: 0.375rem 0.375rem; font-size: 0.75rem; }
.cc-list tbody th[scope="row"] { font: 700 0.8125rem var(--font-ui); color: var(--ink); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.cc-list .pos { color: var(--green-600); font-weight: 700; }
.cc-list .neg { color: var(--red); font-weight: 700; }
.cc__hbar { width: 28%; min-width: 4.5rem; }
.cc__htrack { position: relative; display: block; height: 0.75rem; }
.cc__htrack .cc__bar { top: 0; bottom: 0; left: auto; right: auto; }
.cc__hzero { position: absolute; top: -0.25rem; bottom: -0.25rem; width: 0; border-left: 1px solid var(--ink); opacity: .55; }
.cc-list tfoot th, .cc-list tfoot td { background: var(--surface); font-weight: 700; }
/* risk of ruin: one grid of loss levels */
.ruin-grid th, .ruin-grid td { text-align: center; }
.ruin-grid thead th { font-size: 0.8125rem; color: var(--ink); }
.ruin-grid td { font: 700 1.125rem var(--font-num); }
.ruin-grid td.neg { color: var(--red); }
.ruin__fact { margin: 0.5rem 0; font-size: 1rem; color: var(--ink); }
#yearPanel { padding: 1rem 1.25rem 1.25rem; }
@media (max-width: 40rem) { #yearPanel { padding: 0.75rem; } }
.adv__intro { max-width: none; }
.cc__plot--total { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; background: var(--surface); border-radius: 0.375rem 0.375rem 0 0; }
.cc__totname { font: 700 0.6875rem var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cc__totval { font: 700 1.375rem var(--font-num); }
.cc__totval.pos { color: var(--green-600); }
.cc__totval.neg { color: var(--red); }
.cc-list .cc__hbar { width: 22%; min-width: 3rem; }
.ruin-list { display: none; }
.ruin-grid td { color: var(--ink); }
@media (max-width: 40rem) {
  .ruin-grid { display: none; }
  .ruin-list { display: table; }
  .ruin-list td { font: 700 1rem var(--font-num); color: var(--ink); }
  .ruin-list td.neg { color: var(--red); }
  .cc-list th, .cc-list td { padding: 0.375rem 0.25rem; font-size: 0.6875rem; }
}

/* Up is green, down is red, everywhere (owner, 19 Nov). On the dark green header the shades are lightened to stay readable. */
.tile__value--pos, .tile__value--pos .unit { color: #a0ce4e; }
.tile__value--neg, .tile__value--neg .unit { color: #ff7a6b; }
.kv__row dd.neg small, .kv__row dd.pos small { color: inherit; opacity: .85; }

/* equity curve: green while up, red while down, black while flat */
.chart .l-up { fill: none; stroke: var(--green-600); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .l-down { fill: none; stroke: var(--red); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .l-flat { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .a-up { fill: url(#gArea); }
.chart .a-down { fill: rgba(192, 57, 43, .12); }
.chart .a-flat { fill: none; }
/* flat figures are black, not grey */
.zero { color: var(--ink); }
.chart .hover-dot--down { stroke: var(--red); }
.chart .hover-dot--flat { stroke: var(--ink); }
.sw--split { background: linear-gradient(90deg, var(--green-600) 50%, var(--red) 50%) !important; }

/* ---------- phone layout (owner, 19 Nov): no awkward wrapping, no dead space, nothing to swipe sideways ---------- */
.stat-unit { white-space: nowrap; }
.ptable-phone { display: none; }
@media (max-width: 40rem) {
  /* 1. title: smaller, so a long name takes two full lines; the check stays on the last line */
  .hero__title { font-size: 1.5rem !important; }
  .hero__name { -webkit-line-clamp: 3; }
  .bluecheck--title { margin-left: 0.25em; }

  /* 2. chart legend: one tidy row, four short items */
  .curve__legend { gap: 0.25rem 0.875rem; font-size: 0.75rem; }
  .curve__legend li { gap: 0.3125rem; white-space: nowrap; }

  /* 3. daily change: best and worst on their own lines, dates whole */
  .daily__head { display: grid; gap: 0.25rem; }
  .daily__stats { display: grid; gap: 0.125rem; margin: 0; font-size: 0.8125rem; }
  .daily__stats .sum-sep { display: none; }

  /* 4. trading periods: the turned table, four periods across */
  .ptable-wide { display: none; }
  .ptable-phone { display: block; }
  .ptable--t { width: 100%; table-layout: fixed; font-size: 0.8125rem; }
  .ptable--t th, .ptable--t td { padding: 0.5rem 0.25rem; text-align: right; }
  .ptable--t thead th { font-size: 0.6875rem; }
  .ptable--t th.l { text-align: left; width: 22%; font-size: 0.75rem; }
  .ptable--t td b { font-size: 0.8125rem; white-space: nowrap; }
  .ptable--t .diff { font-size: 0.6875rem; white-space: nowrap; }
  .ptable--t tbody tr:nth-child(even) th, .ptable--t tbody tr:nth-child(even) td { background: #eef6e2; }
  .ptable--t tbody tr:last-child th, .ptable--t tbody tr:last-child td { border-top: 0; }
  .ptable { height: auto; }

  /* 6. tab bars wrap onto a second line instead of hiding tabs off screen */
  .tabs--bar, .card__bar .tabs--bar { flex-wrap: wrap; overflow: visible; row-gap: 0.25rem; }
  .card__bar { flex-wrap: wrap; }

  /* 7. sponsored brokers: stacked, compact rows (logo left, two buttons right), no sideways swipe */
  .brokers__grid { display: grid !important; grid-template-columns: 1fr !important; grid-auto-flow: row !important; overflow: visible !important;
    margin: 0 !important; padding: 0 !important; gap: 0.625rem !important; }
  .bcard { display: grid; grid-template-columns: 42% 1fr; align-items: stretch; }
  .bcard__logo { aspect-ratio: auto; height: 100%; min-height: 5.25rem; border-bottom: 0; border-right: 1px solid var(--border); }
  .bcard__ctas { grid-template-columns: 1fr; gap: 0.375rem; padding: 0.5rem; align-content: center; }
  .bcard__ctas .btn { min-height: 2.25rem; font-size: 0.8125rem; padding-top: 0.375rem; padding-bottom: 0.375rem; }
}

.name-tail { white-space: nowrap; }
@media (max-width: 40rem) {
  .ptable--t td { vertical-align: top; }
  .ptable--t th.l { width: 17%; }
  .ptable--t td b { font-size: 0.75rem; letter-spacing: -0.01em; }
  .ptable--t th, .ptable--t td { padding-left: 0.125rem; padding-right: 0.125rem; }
  /* the section menu would need sideways swiping on a phone; the page reads top to bottom instead */
  .section-nav { display: none; }
  /* tab bars: an even grid of three per row */
  .tabs--bar, .card__bar .tabs--bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .tabs--bar [role=tab] { text-align: center; padding-left: 0.25rem; padding-right: 0.25rem; white-space: nowrap; }
}
@media (max-width: 40rem) {
  .tabs--bar, .card__bar .tabs--bar { display: flex; flex-wrap: wrap; }
  .tabs--bar [role=tab] { flex: 1 1 auto; }
}
@media (max-width: 40rem) { .tabs--bar [role=tab] { flex: 1 1 30%; } .tabs--bar, .tabs--underline { justify-content: stretch; } }
@media (max-width: 40rem) { .ptable--t tbody td, .ptable--t tbody th { vertical-align: top; } .ptable--t tbody td:last-child, .ptable--t thead th:last-child { padding-right: 0.375rem; } .ptable--t th.l { width: 15%; } }

.tile__value--money { font-size: clamp(1.375rem, 1.3vw + 0.75rem, 1.875rem) !important; }

/* ---------- account explorer ---------- */
.invest__tabs { --invest-tab-gap: 0.375rem; display: flex; justify-content: center; gap: var(--invest-tab-gap); }
.invest__toggle {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 0.625rem;
  flex: 0 1 13.75rem; min-width: 0; min-height: 2.375rem; padding: 0.375rem 1rem;
  border: 0; background: transparent; color: var(--green-950);
  font: 700 0.875rem/1.2 var(--font-ui);
}
/* With the sheen half a tab wide, a 200% background offset moves it by one tab width. */
#watermarkToggle {
  --invest-sheen-offset: calc(200% + var(--invest-tab-gap));
  --invest-tab-top: #faefd1; --invest-tab-base: #dfbf73; --invest-tab-line: #8a6829; color: #49370c;
}
#leadToggle {
  --invest-sheen-offset: calc(400% + var(--invest-tab-gap) * 2);
  --invest-tab-top: var(--green-800); --invest-tab-base: var(--green-900); --invest-tab-line: var(--lime);
  color: var(--white);
}
#caToggle {
  --invest-tab-top: #e3efe0; --invest-tab-base: #b9d3b1; --invest-tab-line: var(--green-800); color: var(--green-950);
}
.invest__toggle::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  --tab-inset: 0.875rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--tab-inset)) calc(100% - 3px), calc(100% - var(--tab-inset) - 4px) 100%,
    calc(var(--tab-inset) + 4px) 100%, var(--tab-inset) calc(100% - 3px));
  background-image: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent),
    linear-gradient(180deg, var(--invest-tab-top, var(--lime-soft)), var(--invest-tab-base, var(--lime)));
  background-size: 50% 100%, 100% 100%;
  background-position: -100% 0, 0 0;
  background-repeat: no-repeat;
  box-shadow: inset 0 -1px 0 rgba(15, 61, 17, .24);
}
.invest__toggle:hover::before { filter: brightness(1.06); }
.invest__toggle[aria-expanded="true"]::before { box-shadow: inset 0 -3px 0 var(--invest-tab-line, var(--green-800)); }
.invest__toggle:focus-visible { outline-color: var(--green-800); }
.invest__tabs:not(.is-open) .invest__toggle::before { animation: invest-sheen 7s linear infinite; }
@keyframes invest-sheen {
  0% { background-position: calc(-100% - var(--invest-sheen-offset, 0px)) 0, 0 0; }
  23%, 100% { background-position: calc(var(--invest-sweep, 600%) - var(--invest-sheen-offset, 0px)) 0, 0 0; }
}
.invest__chevron {
  flex: none; width: 0.5rem; height: 0.5rem; margin-top: -0.25rem;
  border: solid currentColor; border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform .3s, margin-top .3s;
}
.invest__toggle[aria-expanded="true"] .invest__chevron { transform: rotate(225deg); margin-top: 0.25rem; }

.invest__reveal {
  display: grid; grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .46s cubic-bezier(.22, .8, .28, 1), visibility 0s .46s;
  overflow-anchor: none;
}
.invest__tabs.is-open + .invest__reveal {
  --invest-angle: 0deg;
  grid-template-rows: 1fr; visibility: visible; transition-delay: 0s;
}
.invest__clip { min-height: 0; overflow: clip; }
.invest__card {
  margin: 0.5rem 0 0.25rem; padding: 1.125rem 1.25rem 0.875rem;
  border-top: 2px solid var(--green-500);
  transform-origin: top center;
  transform: perspective(1100px) rotateX(var(--invest-angle, -86deg));
  transition: transform .46s cubic-bezier(.22, .8, .28, 1);
}
.invest__model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 0.875rem 1.5rem; }

.invest__setup {
  display: grid; align-content: center; gap: 1.125rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.invest__deposit { min-width: 0; margin: 0; padding: 0; border: 0; }
.invest__label {
  display: block; padding: 0; margin: 0 0 0.4375rem;
  font: 700 0.9375rem/1.3 var(--font-body); color: var(--ink);
}
.invest__amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.375rem; }
.invest__amounts .chip {
  min-height: 2.75rem; padding: 0 0.25rem;
  background: var(--white); border-color: var(--border-strong);
  font-size: 0.875rem; font-weight: 700;
}
.invest__amounts .chip:hover { background: var(--tint); }
.invest__amounts .chip[aria-pressed="true"] {
  background: var(--green-800); border-color: var(--green-800); color: var(--white);
}
.invest__input {
  width: 100%; min-width: 0; min-height: 2.75rem; padding: 0.375rem 0.625rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font: 700 1rem var(--font-ui);
}
.invest__output { min-width: 0; }
.invest__summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.375rem 0.75rem; flex-wrap: wrap; }
.invest__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.invest__value { font: 700 2.5rem/1.05 var(--font-num); font-variant-numeric: tabular-nums; }
.invest__pct { font: 700 1.5rem/1 var(--font-num); }
.invest__caption { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.875rem; }
.invest__chart { min-width: 0; margin: 0.5rem 0 0; }
.invest__chart .a-up { fill: url(#invest-gArea); }
.invest__sample {
  padding: 0.25rem 0.5rem; border-radius: 0.3125rem;
  background: #fff4d6; color: #6b4e00; font: 700 0.75rem/1.2 var(--font-ui);
}
.invest__note {
  grid-column: 1 / -1; margin: 0; padding-top: 0.625rem;
  border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--muted);
}

.invest__watermark-summary { flex-wrap: nowrap; margin-bottom: 0.75rem; color: var(--muted); font-size: 0.875rem; }
.invest__watermark-summary p { margin: 0; }
.invest__watermark-summary .invest__sample { flex: none; }
.invest__watermark { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; }
.invest__watermark > div {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.invest__watermark dt { font: 700 0.9375rem/1.3 var(--font-ui); }
.invest__watermark-value { margin: 0.375rem 0 0; font: 700 1.875rem/1.1 var(--font-num); font-variant-numeric: tabular-nums; }
.invest__watermark-note { margin-top: 0.75rem; }

.invest__lead { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 0.875rem 1rem; }
.invest__lead label { min-width: 0; }
.invest__lead select:invalid { color: var(--muted); }
.invest__submit { background: var(--green-800); color: var(--white); }
.invest__submit:hover { background: var(--green-850); }
.invest__submit:disabled { opacity: .7; cursor: wait; }
.invest__lead-error { grid-column: 1 / -1; margin: 0; color: var(--red); font-size: 0.875rem; }
.invest__thanks { margin: 0; padding-block: 0.5rem; text-align: center; font-weight: 700; color: var(--green-900); overflow-wrap: anywhere; }

@media (max-width: 62.5rem) {
  .invest__model { grid-template-columns: minmax(0, 1fr); gap: 0.875rem; }
}
@media (max-width: 40rem) {
  .invest__tabs { --invest-tab-gap: 0.1875rem; }
  .invest__toggle { min-height: 2.75rem; padding-inline: 0.5rem; font-size: 0.8125rem; }
  .invest__toggle::before { --tab-inset: 0.375rem; }
  .invest__chevron { display: none; }
  .invest__card { padding: 0.75rem; }
  .invest__setup { padding: 0.75rem; gap: 0.75rem; }
  .invest__value { font-size: 2rem; }
  .invest__pct { font-size: 1.25rem; }
  .invest__watermark { gap: 0.5rem; }
  .invest__watermark > div { padding: 0.625rem; }
  .invest__watermark dt { font-size: 0.875rem; }
  .invest__watermark-value { font-size: 1.3rem; }
  .invest__lead { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .invest__lead select { padding-inline: 0.375rem 0.25rem; font-weight: 400; }
}
@media (prefers-reduced-motion: reduce) {
  .invest__tabs:not(.is-open) .invest__toggle::before { animation: none; }
  .invest__chevron, .invest__reveal, .invest__card { transition: none; }
  .invest__card { transform: none; }
}

/* ---------- custom analysis (owner, 23 Nov 2026) ---------- */
.ca-wrap:has(.ca-active[hidden]) { display: none; }
.ca-wrap { padding-top: 1rem; }
.ca-active { margin: 0; padding: 0.625rem 1rem; border-radius: var(--radius-sm); background: var(--tint); border: 1px solid var(--border); }
.ca-active .btn--link { min-height: 0; display: inline; }
.ca__top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; }
.ca__presets { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-right: auto; }
.ca .chip { min-height: 2.25rem; padding: 0 0.75rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--green-800); font: 700 0.875rem var(--font-ui); cursor: pointer; }
.ca .chip:hover { background: var(--tint); }
.ca__field { display: grid; gap: 0.25rem; font-size: 0.8125rem; color: var(--muted); }
.ca__field .invest__input { width: 11rem; }
.ca__tabs { display: flex; gap: 0.25rem; margin: 1rem 0 0; border-bottom: 1px solid var(--border); }
.ca__tab { padding: 0.5rem 1rem; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--surface); color: var(--muted); font-weight: 600; cursor: pointer; }
.ca__tab[aria-selected="true"] { background: var(--white); color: var(--green-800); margin-bottom: -1px; }
.ca__pane { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.ca__group { display: grid; gap: 0.625rem; margin-bottom: 0.75rem; }
.ca__group > .chip { justify-self: start; }
.ca__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.5rem 1rem; }
.ca__check { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.ca__check input { width: 1.125rem; height: 1.125rem; accent-color: var(--green-600); }
.ca__note { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.875rem; }
.ca__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 1rem; }
@media (max-width: 40rem) {
  .ca__top { align-items: stretch; }
  .ca__presets { width: 100%; margin: 0; }
  .ca__top .ca__field { flex: 1 1 8rem; }
  .ca__field .invest__input { width: 100%; }
  .ca__top .btn--primary { width: 100%; }
  .ca__grid { grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); }
}

/* ---------- tab cards (owner, 23 Nov 2026): one dark fintech surface for all four ----------
   Calm, consistent, high contrast: the same deep forest surface under every tab, inputs that light up on focus,
   segmented controls for choices, one lime action colour. The tabs keep their own colours; the cards do not. */
.invest__card {
  --s-bg: #0b1a12; --s-raise: rgba(255, 255, 255, .05); --s-line: rgba(255, 255, 255, .10); --s-line-2: rgba(255, 255, 255, .22);
  --s-text: #f2f6ef; --s-soft: #a7b7a4; --s-faint: #74866f;
  --s-accent: #b8e266; --s-accent-ring: rgba(184, 226, 102, .28); --s-pos: #a5e070; --s-neg: #ff8f80;
  color: var(--s-text);
  border: 1px solid #1d3527; border-radius: 1rem;
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(160, 206, 78, .13), transparent 70%),
    radial-gradient(55% 80% at 100% 100%, rgba(32, 150, 3, .16), transparent 70%),
    var(--s-bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 2px 4px rgba(8, 26, 14, .12), 0 6px 12px rgba(8, 26, 14, .10);
  padding: 1.5rem;
}
.invest__clip { padding: 0 1rem 1.25rem; margin: 0 -1rem; }

/* type on the surface */
.invest__card .invest__label, .invest__card .ca__field > span {
  color: var(--s-soft); font: 600 0.8125rem/1.3 var(--font-body); letter-spacing: 0; margin-bottom: 0.5rem;
}
.invest__card .invest__caption, .invest__card .ca__note, .invest__watermark-summary { color: var(--s-soft); }
.invest__card .invest__note { color: var(--s-faint); border-top-color: var(--s-line); }
.invest__card .invest__thanks { color: var(--s-text); }
.invest__card .invest__lead-error { color: var(--s-neg); font-weight: 600; }
.invest__card .pos { color: var(--s-pos); }
.invest__card .neg { color: var(--s-neg); }
.invest__card .btn--quiet { color: var(--s-soft); }
.invest__card .btn--quiet:hover { color: var(--s-text); background: var(--s-raise); }
.invest__card .invest__sample { background: rgba(255, 214, 102, .15); color: #ffd666; }

/* inner panels: a step up from the surface */
#investBody .invest__setup, .invest__watermark > div, .invest__chart, .ca__pane {
  background: var(--s-raise); border: 1px solid var(--s-line); border-radius: 0.75rem; color: var(--s-text);
}
#investBody .invest__setup { padding: 1.25rem; }
.invest__chart { padding: 0.75rem 0.75rem 0.25rem; }
.invest__watermark > div { padding: 1.125rem 1.25rem; box-shadow: none; }
.invest__watermark dt { color: var(--s-soft); font: 600 0.8125rem/1.3 var(--font-body); }
.invest__watermark-value { font-size: 2.25rem; letter-spacing: -0.01em; }
.invest__watermark > div .invest__caption { color: var(--s-soft); }
.invest__card .invest__value { letter-spacing: -0.02em; }

/* charts on the surface */
.invest__card .chart text { fill: var(--s-faint); }
.invest__card .chart .grid { stroke: rgba(255, 255, 255, .07); }
.invest__card .chart .grid--zero { stroke: rgba(255, 255, 255, .18); }
.invest__card .chart .l-main, .invest__card .chart .l-up { stroke: var(--s-accent); }
.invest__card .chart .l-down { stroke: var(--s-neg); }
.invest__card .chart .hover-dot { fill: var(--s-bg); stroke: var(--s-accent); }
.invest__card .chart .cross { stroke: var(--s-text); }

/* fields: rest, hover, focus, valid, invalid, disabled */
.invest__card .invest__input {
  min-height: 3rem; padding: 0.625rem 0.875rem;
  border: 1px solid var(--s-line-2); border-radius: 0.625rem;
  background: rgba(255, 255, 255, .07); color: var(--s-text); color-scheme: dark;
  font: 500 1rem var(--font-body); box-shadow: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.invest__card .invest__input::placeholder { color: var(--s-faint); opacity: 1; }
.invest__card .invest__input:hover:not(:disabled) { border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .09); }
.invest__card .invest__input:focus, .invest__card .invest__input:focus-visible {
  outline: none; border-color: var(--s-accent); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px var(--s-accent-ring);
}
.invest__card .invest__input:user-valid { border-color: rgba(184, 226, 102, .55); }
.invest__card .invest__input:user-invalid { border-color: var(--s-neg); box-shadow: 0 0 0 4px rgba(255, 143, 128, .2); }
.invest__card .invest__input:disabled { opacity: .45; cursor: not-allowed; }
.invest__card select.invest__input { cursor: pointer; }
.invest__card select.invest__input:invalid { color: var(--s-faint); }
.invest__card select.invest__input option { color: #0b1a12; background: #fff; }

/* choices: segmented controls */
.invest__amounts, .ca__presets {
  padding: 0.25rem; gap: 0.25rem; border-radius: 0.75rem; background: rgba(0, 0, 0, .25); border: 1px solid var(--s-line);
}
.invest__card .chip {
  min-height: 2.5rem; border: 0; border-radius: 0.5rem; background: transparent; color: var(--s-soft);
  font: 600 0.875rem var(--font-ui); transition: background-color .15s, color .15s;
}
.invest__card .chip:hover { background: var(--s-raise); color: var(--s-text); }
.invest__card .chip:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 1px; }
.invest__card .chip[aria-pressed="true"] { background: var(--s-text); color: var(--s-bg); }
.invest__amounts .chip { min-height: 2.5rem; }

/* the action button */
.invest__card .invest__submit, .invest__card .ca__top .btn--primary, #investLeadButton {
  min-height: 3rem; padding: 0 1.5rem; border: 0; border-radius: 0.625rem;
  background: var(--s-accent); color: #0b1a12; font: 700 1rem var(--font-ui);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 18px rgba(184, 226, 102, .22);
  transition: background-color .15s, box-shadow .15s, transform .08s;
  cursor: pointer;
}
.invest__card .invest__submit:hover:not(:disabled), .invest__card .ca__top .btn--primary:hover, #investLeadButton:hover {
  background: #c9ec80; color: #0b1a12; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 4px var(--s-accent-ring), 0 8px 24px rgba(184, 226, 102, .3);
}
.invest__card .invest__submit:active:not(:disabled), .invest__card .ca__top .btn--primary:active, #investLeadButton:active { transform: scale(.98); }
.invest__card .invest__submit:focus-visible, .invest__card .ca__top .btn--primary:focus-visible, #investLeadButton:focus-visible {
  outline: 2px solid var(--s-text); outline-offset: 3px;
}
.invest__card .invest__submit:disabled { background: rgba(184, 226, 102, .45); box-shadow: none; cursor: wait; }

/* custom analysis: list tabs as a segmented control, lists on a raised panel */
.ca__tabs { display: inline-flex; gap: 0.25rem; margin: 1.25rem 0 0.75rem; padding: 0.25rem; border: 1px solid var(--s-line); border-radius: 0.75rem; background: rgba(0, 0, 0, .25); }
.ca__tab { padding: 0.5rem 1rem; border: 0; border-radius: 0.5rem; background: transparent; color: var(--s-soft); font: 600 0.875rem var(--font-ui); cursor: pointer; }
.ca__tab:hover { color: var(--s-text); background: var(--s-raise); }
.ca__tab[aria-selected="true"] { background: var(--s-text); color: var(--s-bg); margin: 0; }
.ca__pane { padding: 1rem 1.25rem; }
.ca__pane .chip { justify-self: start; min-height: 2rem; padding: 0 0.875rem; background: var(--s-raise); color: var(--s-text); border: 1px solid var(--s-line); }
.ca__pane .chip:hover { background: rgba(255, 255, 255, .1); }
.ca__check { color: var(--s-text); padding: 0.375rem 0.5rem; border-radius: 0.5rem; transition: background-color .15s; }
.ca__check:hover { background: var(--s-raise); }
.ca__check input { accent-color: var(--s-accent); }
.ca__pane .ca__note { color: var(--s-soft); }
.ca__foot { border-top: 1px solid var(--s-line); margin-top: 1rem; }
.ca__field .invest__input { width: 12rem; }
@media (max-width: 40rem) {
  .invest__card { padding: 1.125rem; }
  .ca__field .invest__input { width: 100%; }
  .ca__tabs { display: flex; } .ca__tab { flex: 1; }
}
@media print { .invest__card { background: #fff; color: var(--ink); box-shadow: none; } }
.ca__field--wide .invest__input { width: 20rem; }
@media (max-width: 40rem) { .ca__field--wide { width: 100%; } .ca__field--wide .invest__input { width: 100%; } }
