/* Worthly site v2: sections transplanted from the original site (site/assets/site.css), index.html only.
   Hero constellation, platform pill rows, "How it works" pinned steps, the product window.
   Rules are the original ones, verbatim, except: tokens keep their ORIGINAL names (they do not collide with
   site.css, which uses --ac/--tx/--gut...), `.doors/.door*` became `.kdoors/.kdoor*` (site.css owns .door for the
   two-doors cards), `.reveal` became the site-wide `.rv`, `.caption` became `.cap`, buttons/eyebrow/headings use site.css.
   Motion contract is the same: every animated start state sits behind html.motion. */

:root {
  --surface-1: #0f1512;
  --text-primary: #f2f6f4; --text-secondary: #9db0a9; --text-muted: #6b7c76; --text-faint: #4c5a55;
  --accent: #34d399; --accent-hover: #4ade9f; --accent-contrast: #04140d;
  --accent-dim: rgba(52, 211, 153, 0.14); --accent-line: rgba(52, 211, 153, 0.3);
  --danger: #f87171;
  --dv-1: #34d399; --dv-2: #60a5fa; --dv-3: #fbbf24; --dv-4: #f472b6;
  --dv-5: #a78bfa; --dv-6: #22d3ee; --dv-7: #fb7185; --dv-8: #a3e635;
  --fs-lg: 1.125rem; --fs-md: 0.9375rem; --fs-sm: 0.8125rem; --fs-xs: 0.75rem; --fs-micro: 0.6875rem;
  --fs-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --tracking-xl: -0.02em; --tracking-lg: -0.014em; --tracking-eyebrow: 0.12em;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px;
  --radius-sm: 10px; --radius: 16px; --radius-lg: 24px; --radius-pill: 999px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 64px; --gutter: 20px; --section-y: clamp(72px, 10vw, 136px);
  --glass-fill: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012) 55%), rgba(15, 21, 18, 0.6);
  --glass-edge: linear-gradient(140deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04) 38%, rgba(52, 211, 153, 0.05) 70%, rgba(52, 211, 153, 0.26));
  --glow: rgba(52, 211, 153, 0.16);
  --shadow-float: 0 40px 80px -36px rgba(0, 0, 0, 0.9), 0 12px 28px -14px rgba(0, 0, 0, 0.6);
  --prog: 1; /* scrub progress 0..1 (legacy.js); 1 = the finished state */
}

/* surfaces: lit gradient hairline + pointer light */
.glass { position: relative; border-radius: var(--radius-lg); background: var(--glass-fill); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--shadow-float); isolation: isolate; }
.glass--blur { backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
.glass::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1; background: var(--glass-edge); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glass::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -20%), var(--glow), transparent 70%); opacity: 0; transition: opacity .5s var(--ease); }
.glass:hover::after, .glass.is-lit::after { opacity: 1; }
@media (hover: hover) { .glass:hover::before { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .6), transparent 62%), var(--glass-edge); } }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent-line); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); transition: gap .25s var(--ease), color .2s; }
.link-arrow::after { content: '\2192'; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-hover); }
.link-arrow:hover::after { transform: translateX(4px); }
.chip-delta { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; color: var(--accent); background: var(--accent-dim); }
.chip-delta--violet { color: var(--dv-5); background: rgba(167, 139, 250, .14); }
.device__label { font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); }
.device__value { font-size: clamp(2rem, 1.4rem + 3vw, 2.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.mono { --c: var(--accent); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: var(--fs-sm); color: var(--c); background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 28%, transparent), color-mix(in srgb, var(--c) 8%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.mono svg { width: 17px; height: 17px; }

/* --- hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: clip; }
.hero::before { content: ''; position: absolute; inset: -10% -20% auto -20%; height: 120%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 198deg at 8% -12%, transparent 0deg, rgba(52,211,153,.1) 26deg, rgba(52,211,153,.025) 44deg, transparent 62deg);
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent 92%); mask: linear-gradient(180deg, #000 30%, transparent 92%); }
html.motion .hero::before { animation: beam 5s var(--ease-out) both; }
@keyframes beam { from { opacity: 0; transform: translate3d(-4%, 0, 0); } to { opacity: 1; transform: none; } }
.hero__stage { position: relative; }
.hero__orb { position: absolute; z-index: -1; right: -14%; top: 4%; width: min(62vw, 960px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(52, 211, 153, .09), transparent 62%); pointer-events: none; }
.hero__spot { display: none; position: absolute; z-index: -1; left: 0; top: 0; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(52, 211, 153, .06), transparent 62%); pointer-events: none; opacity: 0; transition: opacity .7s var(--ease); }
.hero__spot.is-on { opacity: 1; }
.orbits { display: none; position: absolute; left: -14%; top: 50%; width: 128%; margin-top: -64%; height: auto; pointer-events: none; z-index: -1; }
.orbits circle { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: .35; stroke-dasharray: .8 2.2; stroke-linecap: round; }
.orbits .orbits__node { fill: var(--accent); stroke: none; }
.orbits__spin { transform-box: view-box; transform-origin: 0 0; }
html.motion .orbits__spin { animation: orbit 120s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* the converging-platforms stage: one 100x80 coordinate space (SVG viewBox) so it scales at any width */
.stage { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 100 / 80; --e: 1; }
html.motion .stage:not(.is-ready) { opacity: 0; animation: show 0s 1.4s forwards; }
@keyframes show { to { opacity: 1; } }
.stage__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage__label { font: 500 2.5px var(--font); fill: var(--text-secondary); letter-spacing: .02em; }
.stage__letter { font: 700 4.6px var(--font); text-anchor: middle; dominant-baseline: central; }
.stage__halo { opacity: .16; transform: scale(.78); }
.pipe { fill: none; stroke: url(#pipeGrad); stroke-width: .5; stroke-linecap: round; }
.pipe-flow { fill: none; stroke: #b9ffe0; stroke-width: .7; stroke-linecap: round; stroke-dasharray: 1.2 9; opacity: 0; }
.stage.is-settled .pipe-flow { opacity: .9; }
html.motion .stage.is-settled .pipe-flow { animation: flow 2.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -10.2; } }
.stage__card { position: absolute; left: 50%; top: 11%; width: 76%; transform: translateX(-50%) scale(calc(.94 + .06 * var(--e)));
  padding: clamp(14px, 3.4vw, 22px) clamp(16px, 4vw, 26px); border-radius: var(--radius-lg); text-align: center; opacity: clamp(0, calc((var(--e) - .12) * 1.8), 1); }
.stage__label-top { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--fs-xs); font-weight: 500; color: var(--text-secondary); }
.stage__label-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.stage__value { margin-top: 4px; font-size: clamp(2.35rem, 1.2rem + 6.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; background: linear-gradient(180deg, #fff 30%, #9fe9c9 130%); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.stage__sub { margin-top: 6px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-muted); }
.stage__caption { position: absolute; right: 0; bottom: -4px; }
.stage:not(.is-ready) .stage__label { opacity: 0; } /* settled (static) state shows no labels */

.float { position: absolute; z-index: 3; display: none; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(13, 19, 16, .9); font-size: var(--fs-xs); white-space: nowrap; }
.float b { display: block; font-size: var(--fs-sm); font-weight: 600; letter-spacing: -.01em; }
.float div > span { color: var(--text-muted); display: block; }
.float__ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent-line); }
.float__ico svg { width: 18px; height: 18px; }
.float__ico--up { color: var(--dv-1); }
.float__big { display: block; font-size: var(--fs-lg); font-weight: 700; color: var(--text-primary) !important; letter-spacing: -.03em; }
.float--c { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 18px; }
.float--c svg { width: 90px; height: 30px; }
.float--a { left: -10%; top: 33%; }
.float--b { right: -9%; top: 56%; }
.float--c { left: 6%; bottom: -17%; }
@media (min-width: 1180px) { .float { display: flex; } .float--c { display: flex; } }
html.motion .stage .float { transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
html.motion .stage:not(.is-settled) .float { opacity: 0; transform: translate3d(0, 16px, 0) scale(.96); }
html.motion .stage .float--b { transition-delay: .18s; }
html.motion .stage .float--c { transition-delay: .36s; }
@media (min-width: 940px) { .orbits { display: block; } }
@media (min-width: 940px) and (hover: hover) { .hero__spot { display: block; } }
@media (min-width: 1100px) {
  .hero__grid { width: min(1320px, 100% - var(--gutter) * 2); grid-template-columns: .92fr 1.08fr; gap: clamp(24px, 3vw, 56px); }
  .stage { max-width: 780px; }
  .stage__value { font-size: clamp(3.6rem, 2rem + 3.2vw, 5rem); }
  .stage__card { padding: 26px 34px; }
}

/* --- platform rows (marquee) ------------------------------------------------ */
.strip { padding-block: clamp(36px, 6vw, 72px); overflow-x: clip; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.marquee__track { display: flex; width: max-content; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; margin-right: 12px; padding: 10px 20px 10px 10px; border-radius: var(--radius-pill); background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.05); font-weight: 500; color: var(--text-secondary); white-space: nowrap; transition: color .25s, background .25s; }
.marquee__item:hover { color: var(--text-primary); background: rgba(255,255,255,.07); }
.marquee__item--ac { color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent-line); }
html.motion .marquee__track { animation: marquee 60s linear infinite; }
html.motion .marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 72s; }
html.motion .marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
html:not(.motion) .marquee { -webkit-mask-image: none; mask-image: none; }
html:not(.motion) .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 12px; }

/* --- how it works: pinned steps ---------------------------------------------- */
.pane { display: grid; gap: var(--sp-6); align-items: center; }
.pane__num { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-eyebrow); color: var(--accent); text-transform: uppercase; margin-bottom: var(--sp-3); }
.pane .h3 { font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.125rem); letter-spacing: -0.028em; line-height: 1.1; text-wrap: balance; }
/* compact "how it works": three cards side by side; phones stack them as short text-only rows (the visuals are
   redundant with the copy and the two doors are drawn again in the section above) */
.how .head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.how__panes { display: grid; gap: var(--sp-3); }
.pane { align-content: start; gap: var(--sp-5); padding: var(--sp-5); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.pane .h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem); }
.pane .body { margin-top: 10px !important; font-size: var(--fs-sm); }
.pane .sync, .pane .kdoor { padding: var(--sp-4); }
.pane .sync__rows { margin-top: var(--sp-3); }
.pane .sync__row { padding-block: 8px; }
.pane .kdoor { gap: var(--sp-3); }
@media (max-width: 899px) { .pane > :nth-child(2) { display: none; } .pane { gap: 0; padding: var(--sp-4) var(--sp-5); } .pane__num { margin-bottom: 4px; } }
@media (min-width: 900px) { .how__panes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); } }

.kdoors { display: grid; gap: var(--sp-3); }
.kdoor { display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-4); align-items: start; padding: var(--sp-5); }
.kdoor__ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.kdoor__ico svg { width: 22px; height: 22px; }
.kdoor h3 { font-size: var(--fs-lg); letter-spacing: var(--tracking-lg); }
.kdoor p { margin-top: 4px; font-size: var(--fs-sm); color: var(--text-secondary); }
.kdoor .tag { margin-top: 10px; }
.kdoors__or { text-align: center; font-size: var(--fs-xs); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--text-faint); line-height: 1; }
@media (hover: hover) { .kdoor { transition: translate .45s var(--ease); } .kdoor:hover { translate: 0 -3px; } }

.sync { padding: var(--sp-6); }
.sync__top { display: flex; align-items: center; gap: var(--sp-4); }
.sync__time { font-size: clamp(2.5rem, 2rem + 3vw, 3.5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.sync__moon { width: 40px; height: 40px; color: var(--dv-5); }
.sync__rows { margin-top: var(--sp-5); display: grid; gap: 2px; }
.sync__row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: var(--fs-sm); color: var(--text-secondary); }
.tick { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--accent); }
.tick svg { width: 14px; height: 14px; }
html.motion .pane:not(.is-on) .tick { opacity: 0; }
html.motion .pane.is-on .tick { animation: tickIn .6s var(--ease-out) both; animation-delay: calc(.5s + var(--i, 0) * .45s); }
@keyframes tickIn { from { opacity: 0; transform: translate3d(0, 6px, 0) scale(.9); } to { opacity: 1; transform: none; } }
.one-line { stroke-dasharray: 1; filter: drop-shadow(0 0 6px rgba(52,211,153,.55)); }
html.motion .pane:not(.is-on) .one-line { stroke-dashoffset: 1; }
html.motion .pane:not(.is-on) .one-area { opacity: 0; }
html.motion .pane.is-on .one-line { animation: draw 2.2s var(--ease-out) .35s both; }
html.motion .pane.is-on .one-area { animation: fadeIn 1.6s ease-out 1s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- charts shared by the product window -------------------------------------- */
.chart { margin-top: var(--sp-5); position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: rgba(255,255,255,.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--prog)); filter: drop-shadow(0 0 6px rgba(52,211,153,.55)); }
.chart__area { opacity: calc(var(--prog) * .9); }
.chart__dot { fill: #fff; stroke: var(--accent); stroke-width: 3; opacity: 0; }
@supports (offset-path: path('M0 0')) { .chart__dot { opacity: 1; offset-rotate: 0deg; offset-distance: calc(var(--prog) * 100%); } }
.chart__axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--fs-micro); color: var(--text-faint); }
.alloc { display: flex; align-items: center; gap: var(--sp-5); }
.donut { width: 116px; flex: none; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 11; }
.donut .seg { stroke-dasharray: calc(var(--prog) * var(--len) * 1px) 200; stroke-dashoffset: calc(var(--prog) * var(--start) * -1px); }
.donut .track { stroke: rgba(255,255,255,.05); }
.legend { flex: 1; display: grid; gap: 7px; font-size: var(--fs-sm); }
.legend li { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); }
.legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.legend b { margin-left: auto; font-weight: 600; color: var(--text-primary); }
.bars { display: grid; gap: 13px; font-size: var(--fs-sm); }
.bar__top { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--text-secondary); }
.bar__top b { color: var(--text-primary); font-weight: 600; }
.bar__track { height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar__fill { height: 100%; width: calc(var(--w) * 1%); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, transparent), var(--c)); transform-origin: left; transform: scaleX(var(--prog)); }
.features { display: grid; gap: var(--sp-5); margin-top: var(--sp-7); }
.feature { display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-4); }
.feature__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent-line); }
.feature__ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: var(--fs-lg); letter-spacing: var(--tracking-lg); }
.feature p { margin-top: 2px; color: var(--text-secondary); font-size: var(--fs-sm); }

/* --- product: the app window ----------------------------------------------- */
.prod__head { display: grid; gap: var(--sp-6); margin-bottom: clamp(28px, 5vw, 56px); }
.prod__head .features { margin-top: 0; }
@media (min-width: 1000px) { .prod__head { grid-template-columns: 1.1fr .9fr; align-items: end; gap: clamp(40px, 6vw, 96px); } }
.wrap--wide { width: min(1320px, 100% - var(--gut)*2); margin-inline: auto; }
.appstage { position: relative; will-change: transform; }
.appwin { overflow: hidden; padding: 0; }
.appwin__bar { display: flex; align-items: center; gap: var(--sp-4); padding: 11px 16px; background: rgba(0, 0, 0, .22); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.appwin__dots { display: inline-flex; gap: 6px; }
.appwin__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.appwin__title { margin-inline: auto; font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); padding-left: 56px; }
.appwin__sync { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--accent); white-space: nowrap; }
.appwin__sync i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.appwin__body { display: grid; }
.appwin__side { display: none; }
.appwin__main { padding: clamp(14px, 2.6vw, 28px); min-width: 0; }
.appwin__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.03em; }
.appwin__brand img { width: 28px; height: 28px; }
.appwin__nav { display: grid; gap: 2px; }
.appwin__nav > span { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); }
.appwin__nav svg { width: 18px; height: 18px; flex: none; }
.appwin__nav .is-active { color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent-line); }
.appwin__plan { margin-top: auto; display: grid; gap: 8px; justify-items: start; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.appwin__title-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.appwin__title-row h3 { font-size: var(--fs-xl); letter-spacing: var(--tracking-xl); }
.range { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .05); }
.range span { padding: 5px 12px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.range .is-active { background: var(--accent); color: var(--accent-contrast); }
.tiles { margin-top: var(--sp-4); display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { position: relative; display: grid; gap: 5px; align-content: start; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; }
.tile__k { font-size: var(--fs-xs); color: var(--text-muted); }
.tile__v { font-size: clamp(1.1rem, .85rem + 1.1vw, 1.65rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.tile .chip-delta { justify-self: start; }
.spark { width: 72px; height: 24px; }
.tile .spark { position: absolute; right: 12px; bottom: 12px; display: none; }
@media (min-width: 760px) { .tile .spark { display: block; } }
.spark path { stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--prog)); }
.spark.dn path { stroke: var(--danger); } .spark.flat path { stroke: var(--text-muted); }
.wgrid { margin-top: 10px; display: grid; gap: 10px; }
.wcard { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); min-width: 0; }
.wcard__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary); }
.wcard .chart { margin-top: 0; }
.wcard .alloc { gap: var(--sp-4); }
.wcard .legend { gap: 5px; }
.wchart { position: relative; touch-action: pan-y; }
.wchart:not(.is-live) .chart__dot { display: none; }
.wchart__cross, .wchart__pt, .wchart__tip { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.wchart__cross { width: 1px; height: calc(100% - 26px); background: rgba(255, 255, 255, .28); }
.wchart__pt { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--accent), 0 0 16px var(--accent); }
.wchart__tip { width: 104px; padding: 6px 10px; border-radius: 10px; display: grid; background: rgba(9, 15, 12, .94); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); top: -6px; }
.wchart.is-hover .wchart__cross, .wchart.is-hover .wchart__pt, .wchart.is-hover .wchart__tip { opacity: 1; }
.hold { display: grid; }
.hold li { display: grid; grid-template-columns: 34px 1fr 56px auto; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 10px; transition: background .25s; }
.hold li + li { box-shadow: 0 -1px 0 rgba(255, 255, 255, .05); }
.hold li:hover { background: rgba(255, 255, 255, .045); }
.hold .mono { width: 34px; height: 34px; }
.hold__n b, .hold__v b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.hold__n small { font-size: var(--fs-xs); color: var(--text-muted); }
.hold__v { text-align: right; }
.hold__v i { font-style: normal; font-size: var(--fs-xs); color: var(--text-muted); }
.hold__v .up { color: var(--accent); } .hold__v .dn { color: var(--danger); }
.spark--s { width: 56px; height: 20px; }
.wcard--plat { display: flex; flex-direction: column; }
.wcard--plat .bars { flex: 1; align-content: space-around; }
.wcard--hold { display: none; }
.appstage .float--s { display: none; }
.appstage__caption { margin-top: 14px; text-align: right; }
@media (min-width: 760px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .wcard--hold { display: block; }
  .wgrid { grid-template-columns: 1.5fr 1fr; }
}
@media (min-width: 900px) {
  .appwin__body { grid-template-columns: 216px 1fr; }
  .appwin__side { display: flex; flex-direction: column; gap: var(--sp-6); padding: 22px 16px; background: rgba(0, 0, 0, .14); border-right: 1px solid rgba(255, 255, 255, .06); }
}
@media (min-width: 1180px) {
  .appstage .float--s { display: flex; right: -2.2%; bottom: -4.5%; }
  .appstage__caption { margin-top: 36px; }
  .appwin__main { padding: 30px 32px 32px; }
}
@media (prefers-reduced-motion: reduce) { * , *::before, *::after { animation: none !important; } }
