/* BenchXplorer by StatXplorer — warstwa wyglądu nakładana na klasyczne UI (template.html) i UI v2 (app_v2.css).
   Wzorzec: system StatXplorer (Prezentacja-Organizacja-Danych-StatX/css/system.css).
   Paleta: navy #071A27/#0B2334/#0E2E45, zieleń #0DD14A/#0AA83B, mint #A5F0BC, sky #38BDF8, coral #E84A43.
   Fonty lokalne: Space Grotesk (nagłówki), Inter (tekst), JetBrains Mono (etykiety, liczby).
   Zmienia wyłącznie wygląd; struktura DOM i logika bez zmian. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/Inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/Inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/SpaceGrotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/SpaceGrotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/JetBrainsMono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/JetBrainsMono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ——— Tokeny: jasny (domyślny) ——— */
:root, html.light {
  --bx-navy-0: #071A27; --bx-navy-1: #0B2334; --bx-navy-2: #0E2E45; --bx-navy-3: #14405E;
  --bx-green: #0DD14A; --bx-green-deep: #0AA83B; --bx-mint: #A5F0BC; --bx-sky: #38BDF8; --bx-coral: #E84A43;
  --bg: #F2F5F3;
  --bg-2: #F7F9F8;
  --panel: #FFFFFF;
  --panel-2: #F2F5F3;
  --panel-3: #E3EBE6;
  --ink: #111418;
  --muted: #2F3936;
  --dim: #4B5651;
  --faint: #6B7572;
  --line: rgba(17, 20, 24, 0.11);
  --line-strong: rgba(17, 20, 24, 0.22);
  --mint: #077A2A;            /* akcent tekstowy na jasnym tle (kontrast 5,5:1) */
  --mint-ink: #FFFFFF;
  --mint-soft: rgba(10, 168, 59, 0.11);
  --navy: #0B2334;
  --navy-2: #0E2E45;
  --blue: #0369A1;
  --blue-soft: rgba(56, 189, 248, 0.16);
  --red: #C9302A;
  --red-soft: rgba(232, 74, 67, 0.11);
  --green: #077A2A;
  --green-soft: rgba(13, 209, 74, 0.13);
  --amber: #A35F06;
  --amber-soft: rgba(255, 128, 68, 0.13);
  --purple: #5B3FB0;
  --purple-soft: rgba(91, 63, 176, 0.10);
  --stage: #071A27;
  --glow: rgba(13, 209, 74, 0.22);
  --card-shadow: none;
  --pop-shadow: 0 12px 30px rgba(7, 26, 39, 0.16);
  --r: 0px;
  --r-lg: 0px;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --serif: var(--display);
  --heading: var(--display);
  --brandfont: var(--display);
  /* UI v2 */
  --brand: #077A2A; --a: #0369A1; --b: #B4500F; --a-soft: rgba(56, 189, 248, 0.16); --b-soft: rgba(255, 128, 68, 0.15);
  --ctx: #6B7572; --ctx-soft: rgba(107, 117, 114, 0.16);
  --good: #077A2A; --warn: #A35F06; --bad: #C9302A;
}

/* ——— Tokeny: ciemny (navy StatXplorer) ——— */
html.dark {
  --bg: #071A27;
  --bg-2: #09202F;
  --panel: #0B2334;
  --panel-2: #0E2E45;
  --panel-3: #14405E;
  --ink: #EAF6F0;
  --muted: #C3D8D3;
  --dim: #A9C4C1;
  --faint: #7F9E9C;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.19);
  --mint: #0DD14A;
  --mint-ink: #071A27;
  --mint-soft: rgba(13, 209, 74, 0.13);
  --navy: #A5F0BC;
  --navy-2: #0AA83B;
  --blue: #38BDF8;
  --blue-soft: rgba(56, 189, 248, 0.15);
  --red: #F2706A;
  --red-soft: rgba(232, 74, 67, 0.16);
  --green: #0DD14A;
  --green-soft: rgba(13, 209, 74, 0.14);
  --amber: #FFA066;
  --amber-soft: rgba(255, 128, 68, 0.15);
  --purple: #B9A3F7;
  --purple-soft: rgba(185, 163, 247, 0.14);
  --glow: rgba(13, 209, 74, 0.28);
  --card-shadow: none;
  --pop-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --brand: #0DD14A; --a: #38BDF8; --b: #FF8044; --a-soft: rgba(56, 189, 248, 0.16); --b-soft: rgba(255, 128, 68, 0.17);
  --ctx: #7F9E9C; --ctx-soft: rgba(127, 158, 156, 0.2);
  --good: #0DD14A; --warn: #FFA066; --bad: #F2706A;
}

body { font-size: 13.5px; }
::selection { background: var(--bx-green); color: var(--bx-navy-0); }

/* ——— Pasek górny: navy „chrome” StatXplorer w obu motywach ——— */
.topbar {
  --panel: #071A27; --panel-2: #0E2E45; --panel-3: #14405E;
  --ink: #EAF6F0; --muted: #C3D8D3; --dim: #A9C4C1; --faint: #7F9E9C;
  --line: rgba(255, 255, 255, 0.10); --line-strong: rgba(255, 255, 255, 0.22);
  --mint: #0DD14A; --mint-ink: #071A27; --mint-soft: rgba(13, 209, 74, 0.15);
  height: 56px;
  color: var(--ink);
  background: #071A27;
  border-bottom: 1px solid rgba(13, 209, 74, 0.38);
}
html.dark .topbar { background-color: #04131D; }
.brand { gap: 11px; }
.mark { width: 30px; height: 30px; color: inherit; }
.mark svg { width: 30px; height: 30px; stroke: none; }
.brand .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.brand .name b { color: var(--bx-green); font-weight: 700; }
.brand-by {
  align-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: -12px;
  padding: 3px 0 3px 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #C3D8D3; text-decoration: none; white-space: nowrap;
}
.brand-by b { color: var(--bx-mint); font-weight: 600; }
.brand-by:hover { color: #FFFFFF; }
.brand-by:hover b { color: var(--bx-green); }
.seg button { font-size: 0.84rem; color: #C3D8D3; }
.seg button:hover { color: #FFFFFF; }
.seg button.on { color: #FFFFFF; }
.seg button.on .icon { color: var(--bx-green); }
.seg button.on::after { background: var(--bx-green); height: 3px; bottom: -1px; }
.topbar-meta { color: #C3D8D3; font-size: 0.74rem; }
.topbar-meta b { color: #FFFFFF; }
.topbar .btn { background: transparent; color: #EAF6F0; border-color: rgba(255, 255, 255, 0.24); }
.topbar .btn:hover { background: #0E2E45; border-color: var(--bx-green); color: #FFFFFF; }
.topbar .btn .icon { color: #C3D8D3; }
.topbar-linkedin:hover { color: #FFFFFF; border-color: var(--bx-sky); }

/* ——— Przyciski: zieleń StatXplorer, prostokątne, bez cieni ——— */
.btn { border-radius: 0; font-weight: 500; }
.btn.primary, .panel-action-btn.primary.on {
  background: var(--bx-green); border-color: var(--bx-green-deep); color: var(--bx-navy-0); font-weight: 600;
}
.btn.primary .icon { color: var(--bx-navy-0); }
.btn.primary:hover { background: #2EE06A; border-color: var(--bx-green-deep); filter: none; }
.filter-btn.active { background: var(--bx-navy-1); border-color: var(--bx-navy-1); color: #FFFFFF; }
html.dark .filter-btn.active { background: var(--bx-green); border-color: var(--bx-green); color: var(--bx-navy-0); }
.search-input:focus, .filter-dropdown.open .filter-dropdown-btn { box-shadow: 0 0 0 2px var(--mint-soft); }
.st-toggle button.on { box-shadow: inset 0 -2px 0 var(--bx-green-deep), 0 0 0 1px var(--line-strong); }

/* ——— Czytelne etykiety (mono, wyższy kontrast i rozmiar) ——— */
.sidebar-title, .od .lab, .drawer-header, .luna-review h4, .split-matrix-table th, .preset-group-label,
table.ser-metrics th, .ser-head, table.arena-table th, .podium-rank-badge, .st-control-label, .st-tile .l,
.diff-badge span {
  font-family: var(--mono) !important;
  color: var(--muted) !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em;
}
.sidebar-title, .od .lab, .drawer-header, .luna-review h4, table.arena-table th, .podium-rank-badge, .st-control-label { font-size: 0.7rem !important; }
.split-matrix-table th, .preset-group-label, table.ser-metrics th, .ser-head, .st-tile .l { font-size: 0.66rem !important; }
.od .lab .icon, .drawer-header .icon { color: var(--mint); }
.vx-eyebrow, .vx-duel-side > span, .vx-variants-label, .split-data-heading > span, .vx-rowgroup th {
  font-family: var(--mono) !important; font-size: 11px !important; font-weight: 600 !important; color: var(--muted) !important;
}
.vx-heading p, .vx-count, .vx-scope { color: var(--muted); }
.vx-heading p { font-size: 13px; }
.vx-footer { font-size: 11px; color: var(--muted); }

/* Mono eyebrow z kreską (jak .eyebrow w StatXplorer) */
.vx-eyebrow, .sidebar-title, .podium-rank-badge {
  display: inline-flex !important; align-items: center; gap: 10px;
}
.vx-eyebrow { color: var(--mint) !important; letter-spacing: 0.2em; }
.vx-eyebrow::before, .sidebar-title::before, .podium-rank-badge::before {
  content: ''; width: 24px; height: 1px; background: currentColor; opacity: 0.7; flex-shrink: 0;
}
.sidebar-title::before { width: 16px; }

/* ——— Nagłówki: Space Grotesk ——— */
.vx-heading h1 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; }
.cap .k { font-family: var(--display); font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; }
.cap .tag { color: var(--muted); font-size: 0.7rem; }
.podium-score, .st-tile .v { font-family: var(--display); letter-spacing: -0.02em; }

/* ——— Karty: prostokątne, bez cieni, mono etykieta + kreska akcentu ——— */
.panel, .podium-card { border-radius: 0; box-shadow: none; border-color: var(--line-strong); }
.podium-card::before { height: 3px; }
.podium-card.gold::before { background: var(--bx-green); }
.podium-card.green::before { background: var(--bx-sky); }
.od { background: var(--panel); }
.od .num { color: var(--ink); }
.vx-slide { border-radius: 0; box-shadow: none; }

/* Slajdy porównywarki: navy StatXplorer */
.vx-slide {
  --sl-bg: #071A27; --sl-panel: #0B2334; --sl-ink: #EAF6F0; --sl-soft: #C3D8D3; --sl-dim: #A9C4C1; --sl-line: rgba(255, 255, 255, 0.12);
  background: radial-gradient(120% 90% at 50% 0%, #0E2E45 0%, #071A27 62%);
}

/* ——— Dekoracyjne trójki heksagonów przy krawędziach (cicho) ——— */
#view-values, #view-matrix, #view-stats, #view-prompts {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 275'%3E%3Cpolygon points='80,0 160,46.2 160,138.6 80,184.8 0,138.6 0,46.2' fill='%23A5F0BC' opacity='.16'/%3E%3Cpolygon points='80,0 160,46.2 160,138.6 80,184.8 0,138.6 0,46.2' transform='translate(80,45)' fill='%230DD14A' opacity='.11'/%3E%3Cpolygon points='80,0 160,46.2 160,138.6 80,184.8 0,138.6 0,46.2' transform='translate(0,90)' fill='%2338BDF8' opacity='.09'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 275'%3E%3Cg fill='none' stroke-width='1' opacity='.28'%3E%3Cpolygon points='80,0 160,46.2 160,138.6 80,184.8 0,138.6 0,46.2' stroke='%230DD14A'/%3E%3Cpolygon points='80,0 160,46.2 160,138.6 80,184.8 0,138.6 0,46.2' transform='translate(80,45)' stroke='%2338BDF8'/%3E%3Cpolygon points='80,0 160,46.2 160,138.6 80,184.8 0,138.6 0,46.2' transform='translate(0,90)' stroke='%23A5F0BC'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: right -70px top -80px, left -90px bottom -120px;
  background-size: 260px 300px, 360px 412px;
  background-color: var(--bg);
}
html.dark #view-values, html.dark #view-matrix, html.dark #view-stats, html.dark #view-prompts {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 275'%3E%3Cpolygon points='80,0 160,46.2 160,138.6 80,184.8 0,138.6 0,46.2' fill='%23A5F0BC' opacity='.07'/%3E%3Cpolygon points='80,0 160,46.2 160,138.6 80,184.8 0,138.6 0,46.2' transform='translate(80,45)' fill='%230DD14A' opacity='.06'/%3E%3Cpolygon points='80,0 160,46.2 160,138.6 80,184.8 0,138.6 0,46.2' transform='translate(0,90)' fill='%2338BDF8' opacity='.05'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 275'%3E%3Cg fill='none' stroke-width='1' opacity='.16'%3E%3Cpolygon points='80,0 160,46.2 160,138.6 80,184.8 0,138.6 0,46.2' stroke='%230DD14A'/%3E%3Cpolygon points='80,0 160,46.2 160,138.6 80,184.8 0,138.6 0,46.2' transform='translate(80,45)' stroke='%2338BDF8'/%3E%3Cpolygon points='80,0 160,46.2 160,138.6 80,184.8 0,138.6 0,46.2' transform='translate(0,90)' stroke='%23A5F0BC'/%3E%3C/g%3E%3C/svg%3E");
}

/* ——— Stopka z podpisem firmy ——— */
.bx-footer {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 30px; padding: 0 20px;
  background: #071A27; color: #A9C4C1;
  border-top: 1px solid rgba(13, 209, 74, 0.30);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  position: relative; z-index: 30;
}
html.dark .bx-footer { background: #04131D; }
.bx-footer a { color: #A5F0BC; text-decoration: none; font-weight: 600; }
.bx-footer a:hover { color: #0DD14A; text-decoration: underline; }
.bx-footer .bx-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #0DD14A; box-shadow: 0 0 10px #0DD14A; margin-right: 9px; vertical-align: 1px; }
.scene-focus .bx-footer { display: none; }

.bx-footer > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-footer > a { white-space: nowrap; }

@media (max-width: 1520px) { .brand-by { display: none; } }
@media (max-width: 1100px) { .bx-footer .bx-hide-sm { display: none; } }
@media (max-width: 900px) {
  .brand-text { display: flex; }
}
@media (max-width: 680px) {
  .vx-toolbar .st-toggle button { white-space: nowrap; }
}
@media (max-width: 600px) {
  .brand-text { display: none; }
  .topbar a.topbar-linkedin[href="index.html"] { display: none; }
  .bx-footer { padding: 0 12px; font-size: 0.62rem; }
  #view-values, #view-matrix, #view-stats, #view-prompts { background-size: 150px 172px, 220px 252px; background-position: right -60px top -70px, left -110px bottom -150px; }
}

/* ——— UI v2 (template_v2.html / app_v2.css) ——— */
header.top {
  --panel: #071A27; --ink: #EAF6F0; --dim: #C3D8D3; --line: rgba(255, 255, 255, 0.12); --line-strong: rgba(255, 255, 255, 0.24);
  background: #071A27; color: #EAF6F0; border-bottom: 1px solid rgba(13, 209, 74, 0.38);
}
header.top .brand { font-family: var(--display); color: #FFFFFF; letter-spacing: -0.02em; }
header.top .brand b { color: #0DD14A; }
header.top .brand svg { stroke: none; width: 28px; height: 28px; }
header.top .tabs a { color: #C3D8D3; }
header.top .tabs a:hover, header.top .tabs a[aria-current] { color: #FFFFFF; border-color: #0DD14A; }
header.top .btn { color: #EAF6F0; background: transparent; }
header.top .btn.solid { background: #0DD14A; border-color: #0AA83B; color: #071A27; font-weight: 600; }
header.top .brand-by { margin-left: -24px; }
#app .card { border-radius: 0; border-color: var(--line-strong); }
#app .lede h1, #app .card h2 { font-family: var(--display); letter-spacing: -0.02em; }

/* Pigułki zadań: prostokątne; aktywna w navy / zieleni */
.prompt-pill { border-radius: 0; }
.prompt-pill.active { background: var(--bx-navy-1); border-color: var(--bx-navy-1); color: #FFFFFF; }
html.dark .prompt-pill.active { background: var(--bx-green); border-color: var(--bx-green); color: var(--bx-navy-0); }

/* Telemetria: etykiety mieszczą się w komórce przy 1280–1440 px */
.od .lab { font-size: 0.66rem !important; letter-spacing: 0.07em; }
.od .lab { white-space: normal !important; line-height: 1.25; align-items: flex-start !important; }
.seg button { font-size: 0.82rem; padding: 0 11px; }
@media (max-width: 1100px) { .topbar-meta { display: none; } .topbar { gap: 18px; } }
