/* Volustra Indicators — publiczna strona wskaznikow. Jeden wyglad (granat marki) w obu motywach,
   jak pasma strony glownej. Kolory serii wykresu w docmap/wskazniki/wykres.cjs (zwalidowane). */
:root {
  color-scheme: dark;
  --navy: #0a1230; --navy-2: #111b42; --panel: #101a3e; --line: #24305c; --line-2: #34437a;
  --ink: #eef2ff; --ink-2: #a3aed0; --ink-3: #7c88b0; --brand: #6d8dff; --brand-strong: #9bb1ff;
  --good: #3ccf9a; --bad: #ff8a8a;
  --font: "Geist", "Segoe UI", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --wrap: 74rem; --r: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--navy); }
body { margin: 0; background: var(--navy); color: var(--ink); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-strong); }
:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(16px, 4vw); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: #fff; color: var(--navy); padding: .5rem .75rem; border-radius: 8px; z-index: 50; }
.skip:focus { top: 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: .6rem 1.1rem;
  border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 500 .9375rem/1 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn.solid { background: #fff; color: var(--navy); border-color: #fff; }
.btn.solid:hover { background: #dfe6ff; }
.btn.small { min-height: 2.25rem; padding: .45rem .8rem; font-size: .875rem; }

/* pasek gorny */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--navy) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.logo img { width: 32px; height: 32px; }
.logo small { font-weight: 400; color: var(--ink-2); font-size: 1rem; }
.nav-cta { margin-inline-start: auto; display: flex; gap: .5rem; }
@media (max-width: 560px) { .nav .wrap { gap: .75rem; } .nav-cta .btn { padding-inline: .7rem; font-size: .8125rem; } .nav-cta .hide-s { display: none; } .logo small { display: none; } }

/* naglowek */
.hero { padding-block: clamp(2rem, 5vw, 3.5rem) 1.25rem; }
.hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.08; font-weight: 600; }
.hero p { color: var(--ink-2); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); max-width: 46rem; margin-top: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--navy-2); color: var(--ink-2); font-size: .8125rem; }

/* panel wyboru */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1rem, 2.5vw, 1.5rem); }
.controls { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); align-items: end; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field > label, .field > .lbl, fieldset legend { font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
select, input[type="email"] { width: 100%; min-height: 2.75rem; padding: .55rem .75rem; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--navy); color: var(--ink); font: 400 .9375rem/1.2 var(--font); }
select:hover, input[type="email"]:hover { border-color: var(--ink-3); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg { display: inline-flex; justify-self: start; width: max-content; max-width: 100%; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.seg label { position: relative; display: grid; place-items: center; min-height: 2.75rem; min-width: 3.25rem; padding-inline: .75rem; cursor: pointer; color: var(--ink-2); font-size: .875rem; font-weight: 500; }
.seg label + label { border-inline-start: 1px solid var(--line-2); }
@media (max-width: 420px) { .seg label { padding-inline: .5rem; min-width: 2.75rem; font-size: .8125rem; } }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--ink); color: var(--navy); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--brand-strong); outline-offset: -3px; }
.compare-row { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; }
.compare-row .field { flex: 1 1 13rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; list-style: none; padding: 0; }
.tags li { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .3rem .25rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .8125rem; }
.tags i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.tags button { min-width: 1.75rem; min-height: 1.75rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 1rem; line-height: 1; }
.tags button:hover { background: var(--line); color: var(--ink); }

/* wynik */
.result { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
.result > * { min-width: 0; }
.head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; justify-content: space-between; }
.head h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); font-weight: 600; }
.head p { color: var(--ink-2); font-size: .9375rem; }
.tiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: grid; gap: .15rem; background: var(--navy-2); min-width: 0; }
.tile .k { display: flex; align-items: center; gap: .45rem; color: var(--ink-2); font-size: .8125rem; overflow-wrap: anywhere; }
.tile .k i { width: 14px; height: 3px; border-radius: 2px; flex: none; }
.tile .v { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.tile .d { font-size: .875rem; font-weight: 500; }
.tile .d.up-good, .tile .d.down-good { color: var(--good); }
.tile .d.up-bad, .tile .d.down-bad { color: var(--bad); }
.tile .d.flat { color: var(--ink-2); }
.tile .p { color: var(--ink-3); font-size: .75rem; }

figure { margin: 0; }
.plot { position: relative; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); overflow-x: auto; overflow-y: hidden; }
.plot:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
.plot svg { display: block; width: 100%; min-width: 40rem; height: auto; }
.plot .cross line { stroke: var(--ink-2); stroke-width: 1; }
.tip { position: absolute; top: 12px; pointer-events: none; background: rgba(10, 18, 48, .96); border: 1px solid var(--line-2); border-radius: 10px; padding: .5rem .7rem; font-size: .8125rem; min-width: 10rem; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .7); }
.tip b { display: block; font-weight: 600; margin-bottom: .2rem; }
.tip div { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.tip i { width: 12px; height: 3px; border-radius: 2px; }
.tip .hl { color: var(--ink-2); font-size: .75rem; white-space: normal; margin-top: .2rem; }
figcaption { color: var(--ink-3); font-size: .8125rem; margin-top: .5rem; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--ink-2); }

.cols { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.moves { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.moves li { display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; font-size: .9rem; }
.moves time { font-family: var(--mono); color: var(--ink-2); font-size: .8125rem; white-space: nowrap; }
.comment { font-size: .975rem; line-height: 1.65; }
.comment.loading { color: var(--ink-3); }
.note { color: var(--ink-3); font-size: .75rem; margin-top: .6rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
details.table summary { cursor: pointer; color: var(--ink-2); font-size: .875rem; min-height: 1.75rem; }
.tablewrap { overflow-x: auto; margin-top: .75rem; max-height: 22rem; }
table { border-collapse: collapse; width: 100%; font-size: .8125rem; font-variant-numeric: tabular-nums; }
caption { text-align: start; color: var(--ink-2); padding-bottom: .4rem; }
th, td { padding: .35rem .6rem; border-bottom: 1px solid var(--line); text-align: end; white-space: nowrap; }
th:first-child, td:first-child { text-align: start; }
thead th { position: sticky; top: 0; background: var(--panel); color: var(--ink-2); font-weight: 500; }

/* subskrypcja */
.sub form { display: grid; gap: .9rem; }
.sub .row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.sub .row .field { flex: 1 1 14rem; }
.sub .what { color: var(--ink-2); font-size: .9rem; }
.sub .what b { color: var(--ink); font-weight: 500; }
.sub small { color: var(--ink-3); font-size: .75rem; line-height: 1.5; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: .875rem; min-height: 1.25rem; }
.status.ok { color: var(--good); } .status.err { color: var(--bad); }

.product { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.1rem 1.25rem; background: linear-gradient(120deg, #16235a, var(--navy-2)); }
.product p { color: var(--ink-2); max-width: 44rem; }
.product b { color: var(--ink); font-weight: 600; }

footer { border-top: 1px solid var(--line); color: var(--ink-3); font-size: .8125rem; margin-top: 2.5rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-block: 1.5rem 2rem; }
footer a { color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) { .result { animation: fade .25s ease-out; } @keyframes fade { from { opacity: .4; } } }
@media (pointer: coarse) { .tags button { min-width: 2.25rem; min-height: 2.25rem; } }
