/* Fonts served from our own server (no requests to Google, GDPR), SIL OFL 1.1:
   Archivo (static/fonts/Archivo-OFL.txt) — one variable family with a width axis: expanded for headlines,
   normal for text, tabular figures for every number; Geist Mono (OFL.txt) only for literal FDS code
   (CHID, file names, the .out console). */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-ext-wdth-normal.58e761d219b3.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.c5a01ed02269.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  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: "Geist Mono"; src: url("fonts/GeistMono-Variable.c36289c8eb40.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* fdsrun — design system v2 (04.11.2026, docs/design.md). One sheet, two themes; tokens on :root.
   The brand is the simulation itself: the Smokeview temperature colormap (cold blue → hot red) and the mesh.
   Layout: left bar (.side) + content column (.topbar + main). Job lists: .list > .group-head + .row. */
:root {
  --bg: #f4f5f3; --surface: #ffffff; --sunken: #f0f1ef; --line: #e3e5e2; --line-soft: #eceeeb; --line-strong: #d3d6d2;
  --ink: #1c1f24; --ink-2: #464b52; --muted: #5f656c; --faint: #80868d;
  --accent: #d4380d; --accent-2: #f08a1f; --accent-ink: #b02a05; --accent-soft: #fdf0eb; --accent-line: #f6c9b8;
  /* Smokeview-style temperature colormap: the one decorative device, used for bars, stripes and the hero slice */
  --c0: #2c3e9f; --c1: #1d8fe0; --c2: #2fb76e; --c3: #e6d23a; --c4: #f08a1f; --c5: #d4380d;
  --grad: linear-gradient(90deg, var(--c0), var(--c1) 22%, var(--c2) 44%, var(--c3) 64%, var(--c4) 82%, var(--c5));
  --good: #00875a; --good-ink: #006644; --good-soft: #e3f4ec;
  --warn: #e09b00; --warn-ink: #7a4f00; --warn-soft: #fdf3d8;
  --bad: #c9251c; --bad-ink: #9b1b14; --bad-soft: #fbe6e4;
  --info: #1d6fd1; --info-ink: #17509a; --info-soft: #e3eefb;
  --console-bg: #15181c; --console-ink: #e4e7ea; --console-dim: #8b9299; --console-line: #2a2f35;
  --shadow: none; --shadow-lg: 0 18px 48px -24px rgba(20, 24, 30, .35);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 6px; --r-lg: 8px; --r-xl: 10px; --tabbar: 0px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121417; --surface: #181b1f; --sunken: #1e2126; --line: #2a2e34; --line-soft: #23272c; --line-strong: #353a41;
  --ink: #e7e9eb; --ink-2: #b8bdc2; --muted: #9aa0a6; --faint: #79808700;
  --faint: #7a8087;
  --accent: #f0612c; --accent-ink: #ff8a5c; --accent-soft: #2b1a13; --accent-line: #5a2c1a;
  --good: #2fb37f; --good-ink: #5fd4a3; --good-soft: #0f2a20;
  --warn: #e0a826; --warn-ink: #f3c75a; --warn-soft: #2e2509;
  --bad: #ef5146; --bad-ink: #f6877e; --bad-soft: #3a1714;
  --info: #4b93ea; --info-ink: #9cc3f5; --info-soft: #14243a;
  --console-bg: #0e1013; --console-line: #24282e;
  --shadow: none; --shadow-lg: 0 18px 48px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #121417; --surface: #181b1f; --sunken: #1e2126; --line: #2a2e34; --line-soft: #23272c; --line-strong: #353a41;
  --ink: #e7e9eb; --ink-2: #b8bdc2; --muted: #9aa0a6; --faint: #7a8087;
  --accent: #f0612c; --accent-ink: #ff8a5c; --accent-soft: #2b1a13; --accent-line: #5a2c1a;
  --good: #2fb37f; --good-ink: #5fd4a3; --good-soft: #0f2a20;
  --warn: #e0a826; --warn-ink: #f3c75a; --warn-soft: #2e2509;
  --bad: #ef5146; --bad-ink: #f6877e; --bad-soft: #3a1714;
  --info: #4b93ea; --info-ink: #9cc3f5; --info-soft: #14243a;
  --console-bg: #0e1013; --console-line: #24282e;
  --shadow: none; --shadow-lg: 0 18px 48px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
} }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); font-feature-settings: "tnum", "cv11"; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--ink); text-decoration: none; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
/* linki w tekście ciągłym muszą być widoczne bez najechania */
p a, li a, .help a, .order-terms a, .small a, td.wrap a { text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; }
p a:hover, li a:hover, .help a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 24px; letter-spacing: -0.03em; } h2 { font-size: 16px; } h3 { font-size: 14px; } h4 { font-size: 13px; color: var(--ink-2); }
p { margin: 0; }
small, .small { font-size: 12px; }
.muted { color: var(--muted); }
.c-bad { color: var(--bad-ink); } .c-warn { color: var(--warn-ink); } .c-good { color: var(--good-ink); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
code { font-family: var(--mono); font-size: .92em; background: var(--sunken); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 20px; height: 20px; flex: none; }
.brand.lg { font-size: 15px; } .brand.lg svg { width: 22px; height: 22px; }
.env-tag { font: 500 11px/1 var(--mono); color: var(--accent-ink); border: 1px solid var(--accent-line); border-radius: 99px; padding: 3px 7px; }

/* ---------- app shell: sidebar + content ---------- */
.shell { display: flex; flex: 1; min-height: 100vh; }
.side { flex: 0 0 224px; background: var(--sunken); border-right: 1px solid var(--line); padding: 12px 10px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { height: 32px; padding: 0 8px; border-radius: var(--r); }
.side .ctl { padding: 0 2px; justify-content: space-between; }
.side .ctl .seg, .side .ctl .icon-btn { height: 32px; } .side .ctl .seg button { height: 24px; min-width: 34px; font-size: 11px; } .side .ctl .icon-btn { width: 32px; }
.side .user .chev { width: 14px; height: 14px; margin-left: auto; color: var(--faint); transition: transform .15s; }
.user-menu[open] .user .chev { transform: rotate(180deg); }
.side .brand .ws { margin-left: auto; color: var(--faint); font-weight: 400; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0; }
.side-group { display: grid; gap: 1px; }
.side-label { padding: 4px 8px 6px; font-size: 11px; color: var(--muted); font-weight: 500; }
.side a.item, .side button.item, .side summary.item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: var(--r); color: var(--ink-2); font: 500 13px var(--sans); background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.side .item:hover { background: var(--line); color: var(--ink); text-decoration: none; }
.side .item:active { transform: scale(.985); }
.side .item[aria-current="page"] { background: var(--line); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.side .item svg { width: 16px; height: 16px; flex: none; }
.side .item .cnt { margin-left: auto; font: 11px var(--mono); color: var(--faint); }
.side .item .dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.side .item .badge { margin-left: auto; font: 500 11px var(--sans); padding: 0 6px; border-radius: 99px; background: var(--warn-soft); color: var(--warn-ink); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-balance { padding: 10px 8px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.side-balance .rw { display: flex; justify-content: space-between; } .side-balance .rw b { font: 500 12px var(--mono); color: var(--ink); }
.side-balance .bar { height: 4px; min-width: 0; } .side-balance .bar > span { background: var(--grad); }
.side .user { height: 32px; }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); display: inline-grid; place-items: center; font: 600 11px var(--sans); text-transform: uppercase; flex: none; }
.side .user .avatar { width: 20px; height: 20px; font-size: 10px; background: var(--grad); color: #171717; }
.side .user .email { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--ink); }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 48px; padding: 0 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 13px; position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.topbar .ttl { font-weight: 500; } .topbar h1.ttl { font: inherit; font-weight: 600; letter-spacing: 0; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .sep { color: var(--line-strong); } .topbar .crumb-a { color: var(--muted); }
.topbar .id { font: 12px var(--mono); color: var(--faint); }
.topbar .sub { font-size: 12px; color: var(--faint); }
.topbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn.burger { display: none; } .burger .i-close { display: none; } .top.open .burger .i-open { display: none; } .top.open .burger .i-close { display: block; } .side.open .burger .i-open { display: none; } .side.open .burger .i-close { display: block; }
.scrim { display: none; }
main { flex: 1; width: 100%; padding: 24px; display: grid; gap: 24px; align-content: start; }
main > * { min-width: 0; }
main.narrow { max-width: 760px; }
.shell main { font-size: 13px; }
.foot { border-top: 1px solid var(--line); background: var(--sunken); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 18px 24px 20px; display: grid; gap: 8px; font-size: 12px; color: var(--faint); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.foot-links a { color: var(--muted); } .foot-links a:hover { color: var(--ink); }
.foot-note { margin: 0; line-height: 1.6; } .foot-note a { color: inherit; }
.shell .foot-in { max-width: none; }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; }
.user-menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; bottom: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg), var(--shadow); padding: 6px; display: grid; z-index: 30; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: var(--r); color: var(--ink); font: 13px var(--sans); background: none; border: 0; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--sunken); text-decoration: none; }
.menu-panel button.danger { color: var(--bad); }
.menu-panel .sep { border-top: 1px solid var(--line); margin: 6px 0; }
.menu-panel .who { padding: 6px 10px 4px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background .12s, border-color .12s, transform .08s; }
.icon-btn:hover { background: var(--sunken); color: var(--ink); border-color: var(--faint); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.ghost { border-color: transparent; background: none; }
/* language + theme cluster (header, both shells) */
.ctl { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; height: 36px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--sunken); gap: 2px; }
.seg button { height: 28px; min-width: 38px; padding: 0 10px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: 600 12px/1 var(--sans); letter-spacing: .02em; cursor: pointer; transition: background .12s, color .12s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.icon-btn.theme { border-radius: 99px; }
.icon-btn.theme:hover { color: var(--accent-ink); }
/* theme button shows the mode you would switch TO: moon while light, sun while dark */
.sun { display: none; } .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .moon { display: none; } :root:not([data-theme="light"]) .sun { display: block; } }
:root[data-theme="dark"] .moon { display: none; } :root[data-theme="dark"] .sun { display: block; }
:root[data-theme="light"] .moon { display: block; } :root[data-theme="light"] .sun { display: none; }
@media (max-width: 900px) {
  :root { --tabbar: calc(58px + env(safe-area-inset-bottom)); }
  .shell { flex-direction: column; }
  /* bez backdrop-filter: tworzyłby containing block i przycinał szufladę (position: fixed) */
  .side { position: sticky; top: 0; z-index: 40; height: 56px; flex: none; flex-direction: row; align-items: center; gap: 8px; padding: 0 8px 0 12px; overflow: visible; background: var(--bg); backdrop-filter: none; border-bottom: 1px solid var(--line); }
  .side .brand { flex: 1; height: 40px; }
  .side .ctl { padding: 0; gap: 6px; } .side .ctl .seg, .side .ctl .icon-btn { height: 36px; } .side .ctl .icon-btn { width: 36px; } .side .ctl .seg button { height: 28px; min-width: 36px; font-size: 12px; }
  .icon-btn.burger { display: inline-grid; width: 40px; height: 40px; position: relative; z-index: 70; } /* nad przyciemnieniem — „X” ma być klikalny */
  .side.open .burger { background: var(--surface); }
  .side-nav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(300px, 84vw); padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); border-right: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow-y: auto; transform: translateX(-104%); transition: transform .26s cubic-bezier(.2,.8,.2,1); gap: 18px; visibility: hidden; }
  .side.open .side-nav { transform: none; visibility: visible; }
  .side-nav::before { content: "Menu"; display: block; font-size: 11px; font-weight: 500; color: var(--muted); padding: 0 8px 2px; }
  .side-label { display: block; }
  .side .item { height: 44px; font-size: 15px; border-radius: var(--r-lg); padding: 0 12px; }
  .side .item svg { width: 18px; height: 18px; }
  .side-foot { margin-top: auto; }
  .side .user { height: 44px; }
  .menu-panel { position: static; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; padding: 6px 0 0; }
  .menu-panel a, .menu-panel button { padding: 10px 12px; font-size: 14px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .26s; backdrop-filter: blur(2px); }
  .side.open .scrim { opacity: 1; pointer-events: auto; }
  html.nav-open, html.nav-open body { overflow: hidden; }
  main { padding: 16px; gap: 18px; }
  .topbar { top: 56px; height: auto; min-height: 48px; padding: 8px 16px; flex-wrap: wrap; gap: 6px 8px; background: var(--bg); backdrop-filter: none; }
  .topbar .ttl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .topbar .right { margin-left: auto; flex-wrap: wrap; min-width: 0; }
  .topbar .right:has(> :nth-child(2)) { flex: 1 0 100%; margin: 0; }
  .topbar .right:has(> :nth-child(3)) > * { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .topbar .right .btn { flex: 1 1 auto; min-width: 0; }
  .topbar .right > details > summary.btn { width: 100%; }
  .topbar .sub { display: none; }
  .shell .foot { padding-bottom: var(--tabbar); }
}
/* dolny pasek skrótów (telefon) */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--tabbar); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; font: 500 11.5px var(--sans); color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar [aria-current="page"] { color: var(--accent-ink); }
  .tabbar .dot { position: absolute; top: 9px; left: calc(50% + 7px); width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-sizing: content-box; }
  .tabbar .dot.warn { background: var(--warn); }
  .tabbar .new .plus { display: grid; place-items: center; width: 40px; height: 40px; margin-top: -14px; border-radius: 50%; background: var(--grad); color: #171717; box-shadow: 0 6px 16px -4px rgba(255, 59, 31, .55); }
  .tabbar .new .plus svg { width: 20px; height: 20px; }
  .tabbar .new span:last-child { margin-top: -1px; }
  .tabbar a:active .plus { transform: scale(.94); }
}

/* ---------- landing shell (niezalogowany) ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 8px 28px; }
.top .icon-btn.burger { display: none; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a { color: var(--muted); font-weight: 500; font-size: 14px; padding: 6px 10px; border-radius: var(--r); }
.nav a:hover { color: var(--ink); background: var(--sunken); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top .ctl { margin-left: auto; padding-right: 8px; border-right: 1px solid var(--line); margin-right: 4px; }
.top-right { margin-left: 0; }
.top-line { height: 3px; background: var(--grad); }
.top + main, .landing main { max-width: 1120px; margin: 0 auto; padding: 32px 24px 72px; }
@media (max-width: 860px) {
  .top-in { gap: 8px; flex-wrap: wrap; height: auto; min-height: 56px; padding: 8px 12px 8px 16px; }
  .top .brand { flex: 1; }
  .top .ctl { order: 1; margin: 0; padding: 0; border: 0; gap: 6px; }
  .top .brand { order: 0; }
  .top .icon-btn.burger { display: inline-grid; order: 2; width: 40px; height: 40px; }
  .nav { display: none; order: 5; flex: 0 0 100%; width: 100%; flex-direction: column; align-items: stretch; padding: 4px 0 8px; border-top: 1px solid var(--line); margin-top: 4px; }
  .nav a { padding: 12px 10px; font-size: 15px; border-radius: var(--r-lg); }
  .top-right { display: none; order: 6; flex: 0 0 100%; width: 100%; margin-left: 0; padding-bottom: 8px; }
  .top-right .btn { flex: 1; height: 44px; }
  .top.open .nav, .top.open .top-right { display: flex; }
}

/* ---------- messages, notices ---------- */
.messages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.messages li, .notice { border-radius: var(--r); padding: 10px 14px; background: var(--info-soft); color: var(--info-ink); border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); font-size: 13px; }
.messages li.error, .notice.bad { background: var(--bad-soft); color: var(--bad-ink); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.messages li.success, .notice.good { background: var(--good-soft); color: var(--good-ink); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.messages li.warning, .notice.warn { background: var(--warn-soft); color: var(--warn-ink); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.notice a { color: inherit; text-decoration: underline; }
.notice .btn { margin-left: 8px; }

/* ---------- buttons, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 500 13px/1 var(--sans); background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r); height: 32px; padding: 0 12px; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow); transition: background .12s, border-color .12s, transform .08s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn:hover { background: var(--sunken); text-decoration: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); box-shadow: none; }
.btn.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.accent { background: linear-gradient(90deg, #ff3b1f, #ff7a1a); border-color: transparent; color: #fff; box-shadow: 0 1px 2px rgba(255, 59, 31, .3); }
.btn.accent:hover { filter: brightness(1.05); }
.btn.quiet { border-color: transparent; background: none; box-shadow: none; color: var(--ink-2); }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-soft); }
.btn.lg { height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--r-lg); }
.btn.xl { height: 48px; padding: 0 22px; font-size: 15px; border-radius: var(--r-lg); }
.btn.sm { height: 30px; min-width: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 6px; }
.btn.icon { width: 32px; padding: 0; } .btn.icon svg { width: 14px; height: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; }
.inline { display: inline; }
form p { margin: 0 0 14px; }
label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 5px; }
.help { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea { font: 14px var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 8px 11px; width: 100%; max-width: 440px; min-height: 36px; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--ink) 14%, transparent); outline-offset: 0; border-color: var(--ink-2); }
input[aria-invalid=true], .errorlist + input, input.invalid { border-color: var(--bad); }
input[type=file] { font: 13px var(--sans); }
.errorlist { color: var(--bad); list-style: none; padding: 0; margin: 4px 0 0; font-size: 12px; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.field-row > * { margin: 0; }
.search { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); width: 260px; max-width: 100%; }
.search svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 13px var(--sans); color: var(--ink); padding: 0; max-width: none; }
.search input:focus { outline: none; }
.switch { display: inline-flex; flex-wrap: wrap; gap: 2px; }
.switch a, .switch button { font: 500 13px var(--sans); color: var(--ink-2); height: 30px; padding: 0 8px; border-radius: 5px; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.switch [aria-current="page"], .switch .on { background: var(--line); color: var(--ink); }
.switch a:hover { text-decoration: none; color: var(--ink); }
.switch .cnt, .chip .cnt { font: 11px var(--mono); color: var(--faint); }
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; }
.filterbar .vsep { width: 1px; height: 16px; background: var(--line-strong); }
.filterbar .right { margin-left: auto; font-size: 12px; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.chip { font: 500 12px var(--sans); color: var(--ink-2); border-radius: 6px; height: 28px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { text-decoration: none; background: var(--sunken); color: var(--ink); }
.chip.on { background: var(--line); color: var(--ink); }
.chips .lbl { color: var(--faint); font-size: 12px; padding: 0 6px; }

/* ---------- boxes (obramowane sekcje) ---------- */
.box { border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.box.accent-top { position: relative; } .box.accent-top::before { content: ""; display: block; height: 2px; background: var(--grad); }
.box-head { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 16px; background: var(--sunken); border-bottom: 1px solid var(--line); font-size: 12px; flex-wrap: wrap; }
.box-head b { font-weight: 500; } .box-head .cnt { font: 11px var(--mono); color: var(--faint); } .box-head .dim { color: var(--faint); } .box-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; color: var(--faint); } .box-head a { color: var(--muted); }
.box-body { padding: 14px 16px; display: grid; gap: 12px; }
.box-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; background: var(--sunken); border-top: 1px solid var(--line); }
.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); }
.cell { background: var(--surface); padding: 12px 16px; display: grid; gap: 2px; }
.cell .k { font-size: 12px; color: var(--muted); }
.cell .v { font: 600 22px/1.2 var(--sans); letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cell .v.mono { font-family: var(--mono); }
.cell .v.small { font: 400 13px/1.5 var(--sans); letter-spacing: 0; color: var(--ink-2); display: block; max-width: 48ch; }
.cell .v small { font: 400 12px var(--sans); color: var(--muted); }
.cell .v small.warn { color: var(--warn-ink); }
.cell .bar { margin-top: 8px; }
.bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; min-width: 60px; display: flex; }
.bar > span { display: block; height: 100%; max-width: 100%; background: var(--grad); border-radius: 2px; transition: width .6s ease; }
.bar.done > span { background: var(--line-strong); } .bar.bad > span { background: var(--bad); } .bar.ink > span { background: var(--ink); }
.bar > span.ghost { background: var(--accent-line); border-radius: 0 2px 2px 0; }

/* ---------- listy zleceń: grupy i wiersze ---------- */
.list .group-head { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; background: var(--sunken); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; }
.list .group-head .cnt { font: 11px var(--mono); color: var(--faint); font-weight: 400; } .list .group-head .right { margin-left: auto; font-weight: 400; color: var(--faint); } .list .group-head a { color: var(--muted); }
.list .group-head .sicon { width: 14px; height: 14px; }
.row { display: grid; grid-template-columns: 16px 72px minmax(140px, 1.6fr) minmax(110px, 1fr) minmax(150px, 1.2fr) 80px 72px 76px minmax(72px, auto); gap: 10px; align-items: center; min-height: 44px; padding: 6px 16px; border-bottom: 1px solid var(--line-soft); }
.row:last-child { border-bottom: 0; }
.row:hover { background: color-mix(in srgb, var(--sunken) 60%, transparent); }
.row .id { font: 12px var(--mono); color: var(--faint); }
.row .name { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .proj { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .proj svg { width: 12px; height: 12px; flex: none; }
.row .proj a { color: inherit; }
.row .prog { display: grid; gap: 3px; min-width: 0; }
.row .prog .l1 { display: flex; align-items: center; gap: 8px; } .row .prog .l1 .bar { width: 72px; min-width: 72px; flex: none; }
.row .prog .t { font: 12px var(--mono); white-space: nowrap; }
.row .prog .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .row .prog .s.warn { color: var(--warn-ink); }
.row .mach { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.row .price { font: 13px var(--mono); text-align: right; white-space: nowrap; } .row .price.est { color: var(--muted); } .row .price.over { color: var(--warn-ink); }
.row .date { font-size: 12px; color: var(--faint); text-align: right; white-space: nowrap; }
.row .act { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.row .act form { display: contents; }
summary.more, button.more { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 5px; background: none; color: var(--faint); cursor: pointer; }
summary.more:hover, button.more:hover { background: var(--line); color: var(--ink); } summary.more svg, button.more svg { width: 16px; height: 16px; }
.popmenu { position: relative; } .popmenu > summary { list-style: none; } .popmenu > summary::-webkit-details-marker { display: none; }
.popmenu .menu-panel { left: auto; right: 0; bottom: auto; top: calc(100% + 4px); min-width: 200px; }
@media (max-width: 1100px) { .row { grid-template-columns: 16px 1fr auto; grid-template-rows: auto auto; row-gap: 4px; } .row .id, .row .mach, .row .date { display: none; } .row .proj { grid-column: 2; } .row .prog { grid-column: 2 / span 2; } .row .price { grid-column: 3; grid-row: 1; } .row .act { grid-column: 3; grid-row: 2; } }

/* ikony stanu */
.sicon { width: 16px; height: 16px; flex: none; }
.sicon .ring { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.sicon .fill { fill: var(--line-strong); }
.sicon .g { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sicon.running .ring, .sicon.testing .ring, .sicon.finishing .ring { stroke: var(--accent-line); }
.sicon.running .arc, .sicon.testing .arc, .sicon.finishing .arc { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; transform-origin: 50% 50%; animation: spin 1.4s linear infinite; }
.sicon.queued .ring, .sicon.provisioning .ring { stroke: var(--warn); } .sicon.queued .g, .sicon.provisioning .g { stroke: var(--warn); }
.sicon.draft .ring { stroke: var(--faint); stroke-dasharray: 2.5 2; }
.sicon.done .fill { fill: var(--good); }
.sicon.failed .fill { fill: var(--bad); }
.sicon.stalled .ring { stroke: var(--bad); } .sicon.stalled .g { stroke: var(--bad); }
.sicon.cancelled .fill { fill: var(--faint); }
.sicon.lg { width: 28px; height: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }
.st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.st .sicon { width: 14px; height: 14px; }

/* ---------- nagłówek zlecenia (szczegóły) ---------- */
.runhead { position: relative; }
.runhead .glow { position: absolute; right: -120px; top: -160px; width: 420px; height: 320px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 178, 36, .22) 0%, rgba(255, 59, 31, .10) 45%, transparent 72%); filter: blur(20px); pointer-events: none; }
.runhead .hd { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; padding: 16px; }
.runhead .hd .ttl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.runhead .hd .ttl small { font-size: 12px; color: var(--muted); font-weight: 400; }
.runhead .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 12px var(--mono); color: var(--muted); margin-top: 4px; }
.runhead .hd .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.runhead .track { height: 5px; background: var(--line); } .runhead .track > span { display: block; height: 100%; background: var(--grad); transition: width .6s ease; }
.runhead .track.done > span { background: var(--good); } .runhead .track.bad > span { background: var(--bad); }
.runhead .cells { border-top: 1px solid var(--line); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { color: var(--muted); font-weight: 500; font-size: 13px; height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.tabs a .cnt { font: 11px var(--mono); color: var(--ink-2); background: var(--line); border-radius: 99px; padding: 1px 5px; }
.panel { display: none; } .panel.on { display: grid; gap: 16px; } .panel > * { min-width: 0; } .panel [style*="flex:"] > * { min-width: 0; max-width: 100%; }

/* ---------- tables ---------- */
.table-wrap, .table-scroll { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.box .table-wrap, .box .table-scroll { border: 0; border-radius: 0; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 16px; } th:last-child, td:last-child { padding-right: 16px; }
thead th { font-weight: 500; font-size: 12px; color: var(--muted); border-bottom-color: var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--sunken) 60%, transparent); }
td.num, th.num { text-align: right; } td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
td.wrap { white-space: normal; }
td a.strong { color: var(--ink); font-weight: 500; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: grid; gap: 10px; justify-items: center; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty h3 { color: var(--ink); }
.amount { font: 500 13px var(--mono); white-space: nowrap; } .amount .cur { color: var(--faint); font-weight: 400; font-size: 11px; }

/* ---------- status pill (panel admina, faktury) ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--sans); border-radius: 4px; height: 20px; padding: 0 7px; background: var(--line); color: var(--ink-2); white-space: nowrap; }
.pill.draft { color: var(--muted); }
.pill.queued, .pill.provisioning, .pill.testing, .pill.finishing, .pill.warn, .pill.cancelled { background: var(--warn-soft); color: var(--warn-ink); }
.pill.running { background: var(--accent-soft); color: var(--accent-ink); }
.pill.done, .pill.ok { background: var(--good-soft); color: var(--good-ink); }
.pill.failed, .pill.stalled, .pill.error { background: var(--bad-soft); color: var(--bad-ink); }
.pill.info { background: var(--info-soft); color: var(--info-ink); }
.pill svg { width: 11px; height: 11px; }
@keyframes blink { 50% { opacity: .25; } }
.cell-progress { display: grid; gap: 4px; min-width: 120px; } .cell-progress .pct { font: 12px var(--mono); color: var(--muted); }

/* ---------- console ---------- */
.console { background: var(--console-bg); color: var(--console-ink); border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.console-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; min-height: 34px; padding: 6px 16px; border-bottom: 1px solid var(--console-line); font: 12px var(--sans); color: var(--console-dim); }
.console-bar .fn { font-family: var(--mono); color: var(--console-ink); display: inline-flex; align-items: center; gap: 7px; }
.console-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; } .console-bar .dot.off { background: var(--console-dim); } .console-bar .dot.live { background: var(--accent); animation: blink 1.6s infinite; }
.console-bar label { display: inline-flex; gap: 6px; align-items: center; font: 12px var(--sans); color: var(--console-ink); margin: 0; cursor: pointer; }
.console-bar label input { accent-color: var(--accent); }
.console-bar a { color: var(--accent-2); font-weight: 500; }
.console-bar .right { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.console pre { margin: 0; padding: 14px 16px; font: 12px/1.7 var(--mono); white-space: pre; overflow: auto; max-height: 560px; min-height: 240px; tab-size: 4; color: var(--console-dim); }
.console pre .ln { display: block; padding: 0 6px; margin: 0 -6px; border-radius: 3px; }
.console pre .ln-warn { color: #ffb224; } .console pre .ln-err { color: #fca5a5; background: rgba(220, 38, 38, .18); font-weight: 600; } .console pre .ln-step { color: var(--console-ink); } .console pre .ln-dim { color: var(--console-dim); }
.console.filter-err pre .ln-dim, .console.filter-err pre .ln-step { display: none; }

/* ---------- timeline (zdarzenia) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: flex; gap: 12px; align-items: center; min-height: 40px; padding: 6px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.timeline li:last-child { border-bottom: 0; }
.timeline li .sicon { width: 16px; height: 16px; } .timeline li .sicon .ring { stroke: var(--line-strong); } .timeline li .sicon .fill { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; } .timeline li .sicon .g { stroke: var(--faint); }
.timeline li.good .sicon .fill { fill: var(--good); stroke: var(--good); } .timeline li.good .sicon .g { stroke: #fff; }
.timeline li.bad .sicon .fill { fill: var(--bad); stroke: var(--bad); } .timeline li.bad .sicon .g { stroke: #fff; }
.timeline li.warn .sicon .fill { fill: var(--surface); stroke: var(--warn); } .timeline li.warn .sicon .g { stroke: var(--warn); }
.timeline li.now .sicon .ring { stroke: var(--accent-line); } .timeline li.now .sicon .arc { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.timeline .what { flex: 1; } .timeline .d { color: var(--muted); }
.timeline .t { font: 12px var(--mono); color: var(--faint); white-space: nowrap; }

/* ---------- stats / summary tiles (kompatybilność: panel admina) ---------- */
.tiles, .strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; }
.tile, .stat { background: var(--surface); padding: 12px 16px; display: grid; gap: 2px; }
.tile .k, .stat .k { font-size: 12px; color: var(--muted); }
.tile .v, .stat .v { font: 600 22px/1.2 var(--sans); letter-spacing: -0.02em; }
.tile .v small { font: 400 12px var(--sans); color: var(--muted); margin-left: 4px; }
.tile .s, .stat .s { font-size: 12px; color: var(--muted); }
.tile.key .v, .stat.key .v { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.tile.bad .v { color: var(--bad); }

/* ---------- issues (sprawdzenie pliku) ---------- */
.issue-cards { display: grid; }
.issue { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.issue:last-child { border-bottom: 0; }
.issue > svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.issue.error > svg { color: var(--bad); } .issue.warn > svg { color: var(--warn); } .issue.info > svg { color: var(--faint); }
.issue .body { display: grid; gap: 4px; min-width: 0; flex: 1; }
.issue .row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; grid-template-columns: none; min-height: 0; padding: 0; border: 0; }
.issue .row:hover { background: none; }
.issue .row b { font-weight: 500; } .issue .row .mono { font-size: 12px; color: var(--faint); }
.issue p { color: var(--ink-2); }
.issue .src { display: block; padding: 6px 8px; white-space: pre-wrap; word-break: break-all; font-size: 12px; background: var(--sunken); border: 1px solid var(--line); border-radius: 5px; }
.issue .fix { color: var(--muted); font-size: 12px; } .issue .fix b { color: var(--ink); font-weight: 500; }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.issues li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); font-size: 13px; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.tips li { padding: 8px 12px; border-radius: var(--r); background: var(--sunken); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

/* ---------- variants (wybór serwera) ---------- */
.variants { display: grid; }
tr.variant { cursor: pointer; }
tr.variant td { height: 48px; }
tr.variant.on td { background: var(--accent-soft); } tr.variant.on td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
tr.variant input[type=radio] { width: 15px; height: 15px; margin: 0; display: block; accent-color: var(--accent); }
.loadbars { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; vertical-align: middle; margin-right: 8px; }
.loadbars i { display: block; width: 5px; border-radius: 1px; background: var(--line-strong); } .loadbars i.hot { background: var(--accent); }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font: 500 11px var(--sans); margin-left: 6px; }
.tag.ok { background: var(--good-soft); color: var(--good-ink); } .tag.warn { background: var(--warn-soft); color: var(--warn-ink); } .tag.info { background: var(--info-soft); color: var(--info-ink); }

/* ---------- cards, misc ---------- */
.card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 14px; }
.card.accent { border-color: var(--accent-line); }
.page-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; }
.page-head .sub { color: var(--muted); margin-top: 4px; font-size: 13px; }
.page-head .note { white-space: pre-wrap; max-width: 70ch; color: var(--ink-2); }
.crumb { font-size: 12px; color: var(--muted); } .crumb a { color: var(--muted); } .crumb .mono { background: var(--sunken); border-radius: 4px; padding: 2px 6px; }
section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
section > * { min-width: 0; }
section > h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; } .grid-2 > * { min-width: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; } .cols > * { min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
h2 small { font-weight: 400; font-size: 12px; color: var(--muted); }
.eyebrow { font-size: 12px; color: var(--muted); }
.progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; } .progress > span { display: block; height: 100%; background: var(--grad); }
button.link { background: none; border: 0; color: var(--accent-ink); font: inherit; cursor: pointer; padding: 0; }
.popover { position: relative; }
.popover > summary { list-style: none; } .popover > summary::-webkit-details-marker { display: none; }
.popover-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: min(380px, 90vw); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg), var(--shadow); padding: 16px; }
.popover-panel input, .popover-panel textarea { max-width: none; }
.danger-zone { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.danger-zone .btn { justify-self: start; }

/* ---------- charts ---------- */
.charts { display: grid; gap: 16px; }
.chart { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 12px; }
.chart canvas { width: 100%; height: 300px; display: block; touch-action: pan-y; cursor: crosshair; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; margin-top: 8px; color: var(--muted); }
.legend .lg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* ---------- files ---------- */
.file-groups { display: grid; gap: 16px; }
.live-box { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.live-box > div:first-child { flex: 1 1 420px; display: grid; gap: 2px; }
.dl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); }
.dl-card { display: grid; gap: 8px; align-content: start; padding: 16px; background: var(--surface); }
.dl-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; grid-template-columns: none; min-height: 0; padding: 0; border: 0; }
.dl-card .row:hover { background: none; }
.dl-card .size { font: 500 12px var(--mono); color: var(--ink-2); background: var(--sunken); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
.dl-card .btn { justify-self: start; }
.dl-box { display: grid; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
.dl-box .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; grid-template-columns: none; min-height: 0; padding: 0; border: 0; }
.dl-box .row:hover { background: none; }
.dl-box code { user-select: all; }
pre.log { font: 12px/1.6 var(--mono); background: var(--console-bg); color: var(--console-ink); border-radius: var(--r-lg); padding: 12px 14px; max-height: 360px; overflow: auto; margin: 0; white-space: pre-wrap; }

/* ---------- auth ---------- */
.auth { max-width: 400px; margin: 24px auto 0; display: grid; gap: 20px; }
.auth h1 { font-size: 24px; }
.auth form { display: grid; }
.auth .btn { width: 100%; height: 36px; font-size: 14px; }
.oauth { display: grid; gap: 8px; } .oauth .btn { justify-content: flex-start; height: 36px; font-size: 14px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; } .or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth .notice { font-size: 12px; }
.kinds { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.kinds legend { font-weight: 500; font-size: 13px; margin-bottom: 6px; padding: 0; }
.kind { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; font-weight: 400; margin: 0; line-height: 1.5; }
.kind input { margin-top: 4px; accent-color: var(--accent); }
.kind:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.kind .ticks { font: 400 12.5px/1.5 var(--sans); color: var(--muted); }

/* ---------- panel (admin) ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.subnav a { color: var(--muted); font-weight: 500; font-size: 13px; padding: 8px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a:hover { color: var(--ink); text-decoration: none; }
.subnav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.legal { max-width: 72ch; display: grid; gap: 14px; font-size: 14px; } .legal h2 { margin-top: 12px; } .legal ol { padding-left: 20px; display: grid; gap: 6px; } .legal table { font-size: 13px; display: block; overflow-x: auto; max-width: 100%; } .legal th, .legal td { white-space: normal; vertical-align: top; }

/* ---------- landing ---------- */
main.landing { max-width: none; padding: 0; gap: 0; font-size: 15px; }
.l-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hero { position: relative; overflow: hidden; }
.hero .glow { position: absolute; left: 50%; top: -260px; width: 900px; height: 520px; margin-left: -450px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 178, 36, .22) 0%, rgba(255, 59, 31, .12) 45%, transparent 72%); filter: blur(24px); pointer-events: none; }
.hero .l-wrap { position: relative; padding-top: 96px; padding-bottom: 56px; display: grid; justify-items: center; text-align: center; gap: 24px; }
.hero .eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 4px 0 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; color: var(--muted); }
.hero .eyebrow-pill i { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #ff3b1f, #ffb224); }
.hero .eyebrow-pill span { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; background: var(--sunken); color: var(--ink); font-weight: 500; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; max-width: 900px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 620px; line-height: 1.5; }
.hero .actions { justify-content: center; }
.l-preview { max-width: 1120px; width: 100%; box-sizing: border-box; min-width: 0; margin: 0 auto; padding: 0 24px 24px; }
.l-preview .frame { border: 1px solid var(--line-strong); border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 24px 60px -30px rgba(255, 59, 31, .35), var(--shadow); font-size: 13px; background: var(--surface); }
.l-preview .frame::before { content: ""; display: block; height: 2px; background: var(--grad); }
.l-preview .fbar { height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--sunken); color: var(--muted); }
.l-preview .fbar .brand { font-size: 13px; } .l-preview .fbar .brand svg { width: 16px; height: 16px; }
.l-preview .fbody { display: flex; }
.l-preview .fside { flex: 0 0 200px; border-right: 1px solid var(--line); padding: 12px 8px; display: grid; gap: 2px; align-content: start; color: var(--muted); background: var(--sunken); }
.l-preview .fside span { padding: 6px 10px; border-radius: var(--r); } .l-preview .fside span.on { background: var(--line); color: var(--ink); font-weight: 500; }
.l-preview .fmain { flex: 1; min-width: 0; padding: 12px; }
.l-preview .row { grid-template-columns: 16px 70px 1fr auto auto auto 64px; min-height: 40px; }
@media (max-width: 760px) { .l-preview .fside { display: none; } .l-preview .row { grid-template-columns: 16px 1fr auto; } .l-preview .row .id, .l-preview .row .mach, .l-preview .row .prog .s { display: none; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); margin: 0; }
.facts div { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); } .facts dd { margin: 2px 0 0; font: 600 24px var(--mono); letter-spacing: -0.02em; } .facts dd.small { font: 400 12px/1.4 var(--sans); letter-spacing: 0; margin-top: 4px; }
.l-sec { border-top: 1px solid var(--line); }
.l-sec .l-wrap { padding-top: 96px; padding-bottom: 96px; }
.l-sec.tint { background: var(--sunken); }
.l-split { display: flex; flex-wrap: wrap; gap: 48px; } .l-split > .l-lead { flex: 1 1 300px; display: grid; gap: 12px; align-content: start; } .l-split > .l-cont { flex: 2 1 520px; min-width: 0; }
.l-sec h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.l-sec .lead-p { color: var(--muted); font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { display: flex; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.step .n { flex: 0 0 48px; font: 13px var(--mono); padding-top: 4px; }
.step h3 { font-size: 18px; letter-spacing: -0.02em; } .step p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--r-xl); overflow: hidden; }
.features > div { background: var(--surface); padding: 28px; display: grid; gap: 8px; align-content: start; }
.features .meta { display: inline-flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--muted); }
.features .meta::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, #ff3b1f, #ffb224); }
.features h3 { font-size: 17px; letter-spacing: -0.02em; } .features p { color: var(--muted); font-size: 14px; }
.l-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; margin: 0; }
.l-kv > div { padding: 16px 0; border-top: 1px solid var(--line); } .l-kv dt { font-weight: 600; } .l-kv dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; }
.pricing > div { padding: 24px 0; border-top: 2px solid var(--ink); display: grid; gap: 6px; align-content: start; }
.pricing > div.key { border-top-color: transparent; border-image: var(--grad) 1; }
.pricing .k { font-size: 13px; color: var(--muted); } .pricing .v { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; } .pricing .s { color: var(--muted); font-size: 14px; }
.faq { display: grid; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; } .faq summary { cursor: pointer; font-weight: 500; font-size: 16px; list-style: none; } .faq summary::-webkit-details-marker { display: none; } .faq p { padding: 10px 0 0; color: var(--muted); font-size: 15px; max-width: 70ch; }
.cta { padding: 0 24px 96px; position: relative; overflow: hidden; }
.cta > div { position: relative; overflow: hidden; max-width: 1072px; margin: 0 auto; padding: 72px 24px; border-radius: 16px; background: #0f1115; color: #fff; display: grid; justify-items: center; text-align: center; gap: 16px; }
.cta .glow { position: absolute; left: 50%; bottom: -320px; width: 760px; height: 520px; margin-left: -380px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 59, 31, .55) 0%, rgba(255, 178, 36, .28) 40%, transparent 70%); filter: blur(28px); }
.cta h2, .cta p, .cta .btn { position: relative; } .cta h2 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.04em; } .cta p { color: #a1a1aa; font-size: 17px; }
.cta .btn { background: #fff; color: #171717; border-color: #fff; }

/* ---------- dotyk / telefon ---------- */
@media (pointer: coarse) {
  .btn { height: 40px; padding: 0 14px; font-size: 14px; border-radius: var(--r-lg); }
  .btn.sm { height: 34px; padding: 0 11px; font-size: 13px; }
  .btn.lg { height: 44px; } .btn.xl { height: 50px; }
  .btn.icon { width: 40px; }
  summary.more, button.more, .icon-btn { width: 40px; height: 40px; }
  .tabs a { height: 42px; padding: 0 12px; font-size: 14px; }
  .switch a, .switch button, .chip { height: 34px; padding: 0 11px; font-size: 13px; }
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea { font-size: 16px; min-height: 42px; }
  .search { height: 40px; } .search input { font-size: 16px; }
  .row { min-height: 52px; }
  .timeline li { min-height: 46px; }
}
@media (max-width: 600px) {
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea { max-width: none; }
  .search { width: 100%; }
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell { padding: 12px 14px; } .cell .v { font-size: 19px; }
  .tiles, .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .v, .stat .v { font-size: 19px; }
  .runhead .hd { padding: 14px; gap: 10px; }
  .runhead .hd .acts { margin-left: 0; width: 100%; } .runhead .hd .acts .btn { flex: 1 1 auto; }
  .runhead .meta { gap: 4px 12px; }
  .tabs { margin: 0 -16px; padding: 0 16px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .popover-panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(var(--tabbar) + 12px); width: auto; max-height: 70vh; overflow: auto; z-index: 70; border-radius: var(--r-xl); }
  .popmenu .menu-panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(var(--tabbar) + 12px); min-width: 0; z-index: 70; border-radius: var(--r-xl); }
  .console pre { max-height: 60vh; min-height: 180px; font-size: 11px; padding: 12px; }
  .console-bar { padding: 6px 12px; } .console-bar .right { margin-left: 0; width: 100%; gap: 12px; }
  .box-head, .box-body, .box-foot { padding-left: 14px; padding-right: 14px; }
  .list .group-head, .row { padding-left: 14px; padding-right: 14px; }
  .timeline li { padding: 6px 14px; align-items: flex-start; flex-wrap: wrap; }
  .timeline .t { width: 100%; padding-left: 28px; }
  .timeline li .sicon { margin-top: 3px; }
  th, td { padding: 9px 10px; } th:first-child, td:first-child { padding-left: 14px; } th:last-child, td:last-child { padding-right: 14px; }
  .page-head { align-items: flex-start; }
  .topbar { position: static; }
  .l-preview .fbar .mono, .l-preview .fbar .btn { display: none; }
  .l-preview .fbar { white-space: nowrap; overflow: hidden; }
  .page-head h1 { font-size: 22px; }
  .card { padding: 16px; }
  .messages li, .notice { padding: 10px 12px; }
  .foot-in { padding: 16px 16px 18px; }
  /* landing */
  .top-right .btn { height: 36px; }
  .hero .eyebrow-pill { height: auto; min-height: 28px; flex-wrap: wrap; justify-content: center; padding: 4px 6px 4px 12px; gap: 6px 8px; text-align: center; }
  .hero .l-wrap { padding-top: 56px; padding-bottom: 36px; gap: 18px; }
  .hero p { font-size: 16px; }
  .l-sec .l-wrap { padding-top: 56px; padding-bottom: 56px; }
  .cta { padding: 0 16px 56px; } .cta > div { padding: 48px 20px; }
  .facts div { padding: 14px 0; }
}

/* ---------- Smokeview frames (Podgląd) ---------- */
.frames { display: grid; gap: 16px; }
.frame-img { background: #000; display: grid; place-items: center; }
.frame-img img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.frame-range { accent-color: var(--accent); }
.order-terms { display: grid; gap: 8px; border-top: 1px solid var(--line); }
.order-terms .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.order-terms .consent input { margin-top: 3px; flex: none; }

/* wiersz „pokaż wszystkie warianty”: przycisk, a pod nim wyjaśnienie */
.more-toggle td { padding: 10px 14px; } .more-toggle td > .muted { display: block; margin: 6px 0 0 !important; max-width: 70ch; }

/* failed job: what went wrong and what to do (audit W1) */
.failure { border-color: color-mix(in srgb, var(--bad) 40%, var(--line-strong)); }
.failure .fail-msg { font-size: 12.5px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; margin: 0; white-space: pre-wrap; word-break: break-word; }
.failure .box-foot { display: flex; flex-wrap: wrap; gap: 8px; }

/* the order button carries legally required wording: it wraps instead of being cut (audit K3) */
.btn.lg { white-space: normal; height: auto; min-height: 44px; padding: 10px 18px; line-height: 1.3; text-align: left; }
@media (max-width: 600px) {
  .box-foot .btn.lg { width: 100%; justify-content: center; text-align: center; }
  /* tables as cards on phones (audit, mobile): label left, value right; first cell is the card's title */
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; box-sizing: border-box; }
  table.stack tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table.stack td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0 !important; border: 0; text-align: right; white-space: normal; }
  table.stack td[data-label]::before { content: attr(data-label); color: var(--muted); font: 400 12px var(--sans); text-align: left; flex: 0 0 auto; max-width: 58%; overflow-wrap: break-word; }
  table.stack td > * { min-width: 0; overflow-wrap: anywhere; }
  table.rates td:first-child::before { content: none; } table.rates td:first-child { justify-content: flex-start; font-weight: 600; }
  table.stack td:first-child { font-weight: 500; }
  table.stack td:empty { display: none; }
  table.stack td[data-label=""]::before, table.stack td:not([data-label])::before { content: none; }
  table.stack td:not([data-label]) { justify-content: flex-end; }
  .table-wrap:has(table.stack) { overflow: visible; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.table-scroll td.num, .table-scroll td.nowrap { white-space: nowrap; } .table-scroll th { white-space: normal; vertical-align: bottom; }
.table-scroll td.email { overflow-wrap: anywhere; min-width: 110px; max-width: 180px; } .table-scroll td.wrap { min-width: 100px; max-width: 200px; }

@media (max-width: 600px) {
  #startform table.stack tr.more-toggle td { display: block; text-align: left; }
  #startform table.stack tr.more-toggle td > .muted { display: block; margin-top: 6px; }
  #startform.show-more table.stack tr.extra { display: block; }
  #startform table.stack tr:not(.more-toggle) td:first-child { position: absolute; right: 14px; top: 10px; width: auto; padding: 0 !important; }
  #startform table.stack tr.more-toggle .btn { white-space: normal; height: auto; min-height: 34px; padding: 8px 12px; width: 100%; }
  #startform table.stack tr { position: relative; } #startform table.stack tr:not(.more-toggle) { padding-right: 44px; }
  /* a variant card: server, processes, time, price — vCPU and per-process load stay on the desktop table */
  #startform table.stack tr.variant td { height: auto; }
  #startform table.stack tr.variant td:nth-child(3), #startform table.stack tr.variant td:nth-child(5) { display: none; }
  #startform table.stack tr.variant.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
  #startform table.stack tr.variant.on td { background: none; box-shadow: none; }
}
@media (min-width: 601px) { #startform td:nth-child(5) { max-width: 150px; } #startform th, #startform td { padding-left: 8px; padding-right: 8px; } }

.rates th, .rates td { padding-left: 8px; padding-right: 8px; } .rates td.num { font-size: 12.5px; }
/* invoices on tablets: gross amount stays, net and VAT columns come back from 1100 px up */
@media (max-width: 1100px) { table.inv-table .hide-md { display: none; } }

/* ======================================================================================
   design system v2 — overrides (04.11.2026). Kept as one block so the change is reviewable.
   ====================================================================================== */
body { font: 400 14px/1.55 var(--sans); font-feature-settings: "tnum"; font-stretch: 100%; }
/* headlines: expanded width, tight tracking — the one typographic gesture */
h1, h2 { font-stretch: 112%; letter-spacing: -0.025em; font-weight: 700; }
h3, h4 { font-stretch: 104%; letter-spacing: -0.01em; }
/* numbers are set in the text face with tabular figures; mono stays for literal FDS code */
.num, td.num, .cell .v.mono, .row .price, .amount, .facts dd, .tile .v, .stat .v, .side-balance .rw b, .cell-progress .pct, .row .prog .t { font-family: var(--sans); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.cell .v { font-stretch: 108%; font-weight: 650; letter-spacing: -0.02em; }
.box-head .cnt, .tabs a .cnt, .switch .cnt, .list .group-head .cnt, .side .item .cnt { font-family: var(--sans); font-weight: 500; }
/* colour on type is solid; the colormap is reserved for bars and stripes */
.grad-text, .tile.key .v, .stat.key .v { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent-ink); }
/* surfaces: hairline borders on a cool paper ground, no drop shadows on cards */
.box, .card { box-shadow: none; border-color: var(--line); }
.btn { box-shadow: none; font-weight: 550; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.side .user .avatar { background: var(--ink); color: var(--surface); }
.tabbar .new .plus { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(212, 56, 13, .6); }
.runhead .glow, .hero .glow, .cta .glow { display: none; }
/* the colormap stripe: top edge of the page and of highlighted boxes */
.brandbar { height: 3px; background: var(--grad); }
.box.accent-top::before { height: 3px; }
/* progress fills cold to hot as a run advances */
.bar > span, .runhead .track > span, .progress > span { background: linear-gradient(90deg, var(--c1), var(--c2) 40%, var(--c3) 70%, var(--c4)); }
.bar.done > span { background: var(--good); } .bar.bad > span { background: var(--bad); }

/* ---------- landing v2 ---------- */
.landing { background: var(--bg); }
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); }
.hero .l-wrap.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; justify-items: stretch; text-align: left; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.04; font-stretch: 110%; letter-spacing: -0.03em; margin: 0; max-width: 17ch; }
.hero p.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; margin: 18px 0 0; }
.hero .actions { margin-top: 28px; justify-content: flex-start; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 28px 0 0; padding: 0; color: var(--muted); font-size: 13px; }
.hero-facts div { display: flex; gap: 6px; align-items: baseline; } .hero-facts dt { color: var(--muted); } .hero-facts dd { margin: 0; color: var(--ink); font-weight: 600; }
/* the slice viewer: an FDS mesh coloured by temperature */
.slice { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: stretch; }
.slice .view { position: relative; border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; background: var(--c0); aspect-ratio: 48 / 27; }
.slice svg { display: block; width: 100%; height: 100%; }
.slice .readout { position: absolute; left: 10px; top: 8px; font: 500 12px var(--mono); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.slice .cbar { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; font-size: 11.5px; color: var(--muted); text-align: center; }
.slice .cbar .ramp { width: 14px; justify-self: center; border-radius: 2px; background: linear-gradient(0deg, var(--c0), var(--c1) 22%, var(--c2) 44%, var(--c3) 64%, var(--c4) 82%, var(--c5)); }
.slice figcaption { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) {
  .hero .l-wrap.hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 44px; }
  .hero h1 { max-width: 16ch; }
}
/* sections */
.l-sec h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; }
.l-sec.tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps .step .n { font: 700 34px/1 var(--sans); font-stretch: 125%; color: var(--line-strong); flex-basis: 64px; padding-top: 0; }
.features { gap: 0 40px; background: none; border: 0; border-radius: 0; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.features > div { background: none; padding: 20px 0 22px; border-top: 1px solid var(--line-strong); }
.features .meta { display: none; }
.facts dd { color: var(--ink); }
.pricing > div.key { border-image: none; border-top-color: var(--accent); }
.cta > div { background: var(--ink); color: var(--surface); border-radius: var(--r-xl); position: relative; overflow: hidden; }
.cta > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.cta h2, .cta p { color: var(--surface); }
.cta .btn { background: var(--surface); color: var(--ink); border-color: var(--surface); }
@media (prefers-reduced-motion: reduce) { .slice svg rect { transition: none !important; } }
.hero .hero-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.preview-note { margin: -8px auto 0; padding-bottom: 56px; font-size: 12.5px; color: var(--muted); }
.signed { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); font-weight: 550; }
.signed::before { content: "— "; color: var(--faint); }
.btn.li { gap: 8px; width: fit-content; }
.btn.li svg { width: 15px; height: 15px; color: #0a66c2; }
.shell::before { content: ""; position: fixed; z-index: 80; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); pointer-events: none; }
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; margin-top: 8px; }
.examples > div { display: grid; gap: 2px; padding: 14px 0; border-top: 2px solid var(--ink); }
.examples .k { font-size: 13px; color: var(--muted); } .examples .v { font: 650 26px/1.2 var(--sans); font-stretch: 108%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; } .examples .s { font-size: 13px; color: var(--muted); }


/* ======================================================================================
   design system v3 "Sygnał" (04.11.2026, docs/design.md). The vocabulary of fire-safety
   signage: safe-condition green (ISO 7010 / RAL 6032) for every action that moves a job
   forward, signal red only for stopping and deleting, a slate control panel for navigation,
   Barlow (a typeface drawn after road and wayfinding signs) for all text. The Smokeview
   colormap stays — but only on data: the hero slice, charts, temperature scales.
   ====================================================================================== */
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.81419bf5abb5.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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: "Barlow"; src: url("fonts/barlow-latin-ext-400-normal.30fe91f5bb42.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.8e986e86d57e.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; 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: "Barlow"; src: url("fonts/barlow-latin-ext-500-normal.eaf61d05880b.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.a1e2a2d7d4c0.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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: "Barlow"; src: url("fonts/barlow-latin-ext-600-normal.7befe7b24353.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/barlow-semi-condensed-latin-500-normal.69988ca9d262.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; 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: "Barlow Semi Condensed"; src: url("fonts/barlow-semi-condensed-latin-ext-500-normal.d761ddf58390.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/barlow-semi-condensed-latin-600-normal.64a19a7cafc2.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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: "Barlow Semi Condensed"; src: url("fonts/barlow-semi-condensed-latin-ext-600-normal.7c6b3effbfc9.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/barlow-semi-condensed-latin-700-normal.d829c77621b7.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; 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: "Barlow Semi Condensed"; src: url("fonts/barlow-semi-condensed-latin-ext-700-normal.a5e84677fb8d.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --bg: #e8ecef; --surface: #ffffff; --sunken: #f1f4f6; --line: #d6dde2; --line-soft: #e3e8ec; --line-strong: #bcc6ce;
  --ink: #16232f; --ink-2: #3a4855; --muted: #55626e; --faint: #7a8691;
  --accent: #1f7a4d; --accent-2: #2a9461; --accent-ink: #175f3b; --accent-soft: #e1f0e7; --accent-line: #a9d2b9;
  --good: #1f7a4d; --good-ink: #175f3b; --good-soft: #e1f0e7;
  --warn: #c98700; --warn-ink: #6f4b00; --warn-soft: #fbf0d4;
  --bad: #b3261e; --bad-ink: #8f1d17; --bad-soft: #f9e3e1;
  --info: #24609e; --info-ink: #1b4a7a; --info-soft: #e2ecf6;
  --panel: #16232f; --panel-2: #22323f; --panel-line: #2e3f4d; --panel-ink: #eef2f5; --panel-muted: #a3b0bb;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --r: 3px; --r-lg: 4px; --r-xl: 6px;
  --shadow-lg: 0 16px 40px -20px rgba(22, 35, 47, .45);
}
:root[data-theme="dark"] {
  --bg: #0e1720; --surface: #15212b; --sunken: #1a2733; --line: #253442; --line-soft: #1f2d3a; --line-strong: #31424f;
  --ink: #e6ecf1; --ink-2: #bcc7d0; --muted: #94a2ae; --faint: #73828e;
  --accent: #3bb178; --accent-2: #4cc48a; --accent-ink: #6fd3a1; --accent-soft: #10291d; --accent-line: #24563c;
  --good: #3bb178; --good-ink: #6fd3a1; --good-soft: #10291d;
  --bad: #e5574d; --bad-ink: #f28b83; --bad-soft: #3a1714;
  --panel: #0a1118; --panel-2: #15212b; --panel-line: #1f2d3a; --panel-ink: #e6ecf1; --panel-muted: #8c9aa6;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e1720; --surface: #15212b; --sunken: #1a2733; --line: #253442; --line-soft: #1f2d3a; --line-strong: #31424f;
  --ink: #e6ecf1; --ink-2: #bcc7d0; --muted: #94a2ae; --faint: #73828e;
  --accent: #3bb178; --accent-2: #4cc48a; --accent-ink: #6fd3a1; --accent-soft: #10291d; --accent-line: #24563c;
  --good: #3bb178; --good-ink: #6fd3a1; --good-soft: #10291d;
  --bad: #e5574d; --bad-ink: #f28b83; --bad-soft: #3a1714;
  --panel: #0a1118; --panel-2: #15212b; --panel-line: #1f2d3a; --panel-ink: #e6ecf1; --panel-muted: #8c9aa6;
} }

/* type: Barlow for text and numbers (tabular), Semi Condensed for headings and the controls */
body { font: 400 14.5px/1.55 var(--sans); font-stretch: normal; font-feature-settings: "tnum", "lnum"; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: normal; letter-spacing: 0; }
h1, h2 { font-weight: 700; } h3, h4 { font-weight: 600; }
h1 { font-size: 28px; line-height: 1.1; } h2 { font-size: 18px; } h3 { font-size: 15.5px; }
.num, td.num, .cell .v, .row .price, .amount, .facts dd, .tile .v, .stat .v, .side-balance .rw b, .cell-progress .pct, .row .prog .t, .examples .v { font-family: var(--sans); font-stretch: normal; font-feature-settings: "tnum", "lnum"; }
.cell .v { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0; }
.row .id, .topbar .id, .runhead .id { font-family: var(--display); font-weight: 500; letter-spacing: .02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* no rainbow chrome: the colormap is for data only */
.shell::before, .top-line, .brandbar, .box.accent-top::before, .l-preview .frame::before, .cta > div::before { display: none; }
.bar > span, .runhead .track > span, .progress > span { background: var(--accent); }
.side-balance .bar > span { background: var(--panel-muted); }
.bar.bad > span { background: var(--bad); }

/* buttons: square-cut plates; green moves a job forward, red stops or deletes */
.btn { font: 600 14px/1 var(--display); letter-spacing: .01em; border-radius: var(--r); }
.btn.primary, .btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover, .btn.accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line-strong)); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger.solid:hover { background: var(--bad-ink); border-color: var(--bad-ink); }
.btn.lg, .btn.xl, .btn.sm { border-radius: var(--r); }
.btn.sm { font-size: 13px; }
.btn.lg { font-size: 15px; } .btn.xl { font-size: 16px; }
.env-tag { font: 600 11px/1 var(--display); letter-spacing: .04em; color: var(--warn-ink); background: var(--warn-soft); border: 0; border-radius: 2px; padding: 4px 6px; }
.box { border-radius: var(--r-lg); }
.box-head { background: var(--sunken); font-family: var(--display); font-size: 13px; }
.box-head b { font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea, .search { border-radius: var(--r); }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); }
.switch [aria-current="page"], .switch .on, .chip.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 -2px 0 var(--accent); }
.tabs a[aria-current="page"], .tabs a.on { box-shadow: inset 0 -2px 0 var(--accent); }
.seg { border-radius: var(--r); } .seg button { border-radius: 2px; }
.icon-btn { border-radius: var(--r); }
.avatar { border-radius: 2px; }

/* the control panel: slate navigation for the app, the same slate for the public header */
.side { background: var(--panel); border-right: 0; color: var(--panel-ink); }
.side .brand, .top .brand { color: var(--panel-ink); font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.side-label { color: var(--panel-muted); font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: .02em; }
.side a.item, .side button.item, .side summary.item { color: var(--panel-muted); font: 500 14px var(--display); letter-spacing: .01em; border-radius: 2px; }
.side .item:hover { background: var(--panel-2); color: var(--panel-ink); }
.side .item[aria-current="page"] { background: var(--panel-2); color: #fff; box-shadow: inset 3px 0 0 var(--accent-2); }
.side .item[aria-current="page"] svg { color: var(--accent-2); }
.side .item .cnt { color: var(--panel-muted); }
.side .item .badge { background: var(--warn); color: var(--panel); font-weight: 600; border-radius: 2px; }
.side .seg, .top .seg { background: var(--panel-2); border-color: var(--panel-line); }
.side .seg button, .top .seg button { color: var(--panel-muted); }
.side .seg button[aria-pressed="true"], .side .seg button.on, .top .seg button[aria-pressed="true"], .top .seg button.on { background: var(--panel); color: #fff; }
.side .icon-btn, .top .icon-btn { background: var(--panel-2); border-color: var(--panel-line); color: var(--panel-ink); }
.side .icon-btn:hover, .top .icon-btn:hover { background: var(--panel-line); color: #fff; }
.side-balance { border-top-color: var(--panel-line); color: var(--panel-muted); }
.side-balance .rw b { color: var(--panel-ink); }
.side-balance .bar { background: var(--panel-2); }
.side .user .avatar { background: var(--accent-2); color: #fff; }
.side .user .email { color: var(--panel-ink); }
.side .user .chev { color: var(--panel-muted); }
.side .menu-panel { color: var(--ink); }
.side .env-tag, .top .env-tag { background: var(--warn); color: var(--panel); }
@media (max-width: 900px) {
  .side { background: var(--panel); border-bottom: 0; }
  .side-nav { background: var(--panel); border-right: 0; }
  .side-nav::before { color: var(--panel-muted); }
  .side.open .burger { background: var(--panel-2); }
  .side .menu-panel { border-top-color: var(--panel-line); background: transparent; }
  .side .menu-panel a, .side .menu-panel button, .side .menu-panel .who { color: var(--panel-ink); }
  .side .menu-panel a:hover, .side .menu-panel button:hover { background: var(--panel-2); }
}
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .ttl, .topbar h1.ttl { font-family: var(--display); font-weight: 600; font-size: 16px; }
.tabbar .new .plus { background: var(--accent); color: #fff; border-radius: var(--r-lg); box-shadow: none; }
.tabbar [aria-current="page"] { color: var(--accent-ink); }

/* public header: the same slate plate as the app's navigation */
.top { background: var(--panel); border-bottom: 0; }
.nav a { color: var(--panel-muted); font: 500 15px var(--display); letter-spacing: .01em; border-radius: 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: var(--panel-2); }
.top .ctl { border-right-color: var(--panel-line); }
.top-right .btn:not(.primary) { background: transparent; color: var(--panel-ink); border-color: var(--panel-line); }
.top-right .btn:not(.primary):hover { background: var(--panel-2); }
@media (max-width: 860px) { .nav { border-top-color: var(--panel-line); } }

/* landing: one gesture — big condensed signage type next to the live slice */
.hero { background: var(--surface); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.2vw, 66px); line-height: .98; letter-spacing: -0.005em; max-width: 15ch; font-stretch: normal; }
.hero p.lead { font-size: 18.5px; }
.l-sec h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.02; letter-spacing: 0; }
.steps .step .n { font-family: var(--display); font-weight: 700; font-stretch: normal; color: var(--accent); font-size: 30px; }
.step h3, .features h3 { font-size: 19px; }
.l-preview .frame { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.l-preview .fbar { background: var(--panel); color: var(--panel-muted); border-bottom: 0; }
.l-preview .fbar .brand { color: var(--panel-ink); }
.l-preview .fside { background: var(--panel); border-right: 0; color: var(--panel-muted); }
.l-preview .fside span.on { background: var(--panel-2); color: #fff; box-shadow: inset 3px 0 0 var(--accent-2); }
.pricing > div { border-top-width: 3px; }
.pricing > div.key { border-top-color: var(--accent); }
.pricing .v, .examples .v { font-family: var(--display); font-weight: 700; letter-spacing: 0; }
.examples > div { border-top: 3px solid var(--ink); }
.cta > div { background: var(--panel); border-radius: var(--r-xl); }
.cta .btn { background: var(--accent); color: #fff; border-color: var(--accent); }
.cta .btn:hover { background: var(--accent-ink); }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 17px; }

/* confirmation dialog (replaces the browser's confirm box) */
dialog.confirm { border: 0; padding: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 64px -16px rgba(10, 17, 24, .55); }
dialog.confirm::backdrop { background: rgba(14, 23, 32, .55); }
dialog.confirm .cf-body { padding: 22px 22px 18px; display: grid; gap: 10px; border-top: 4px solid var(--accent); border-radius: var(--r-xl) var(--r-xl) 0 0; }
dialog.confirm.danger .cf-body { border-top-color: var(--bad); }
dialog.confirm h2 { font-size: 20px; }
dialog.confirm p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
dialog.confirm .cf-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; background: var(--sunken); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-xl) var(--r-xl); }
dialog.confirm[open] { animation: cf-in .16s ease-out; }
@keyframes cf-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { dialog.confirm .cf-actions .btn { flex: 1; height: 44px; } }
/* monospace only for literal FDS code (code, console, logs); data and labels in Barlow with tabular figures */
.mono, .row .mach, .row .prog .t, .row .price, .runhead .meta, .timeline .t, .dl-card .size, .amount, .cell .v.mono, .slice .readout,
.switch .cnt, .chip .cnt, .list .group-head .cnt, .tabs a .cnt, .side .item .cnt, .box-head .cnt { font-family: var(--sans); font-feature-settings: "tnum", "lnum"; letter-spacing: 0; }
.slice .readout { font-weight: 600; font-size: 13px; }
/* the logo's dark plate disappears on the slate panel: give it the panel's lighter tone */
.side .brand svg rect, .top .brand svg rect, .l-preview .fbar .brand svg rect { fill: var(--panel-2); }
.side .seg button.on, .top .seg button.on { background: var(--panel-ink); color: var(--panel); box-shadow: none; }
:root[data-theme="dark"] .btn.danger.solid { background: #c23a30; border-color: #c23a30; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.danger.solid { background: #c23a30; border-color: #c23a30; } }
@media (max-width: 600px) { dialog.confirm .cf-actions { flex-direction: column-reverse; } dialog.confirm .cf-actions .btn { width: 100%; } }

/* ======================================================================================
   design system v4 (04.11.2026, docs/design.md): the same signage palette, new type and
   rhythm. Geist (variable, 58 kB, one file) for everything — headings tighter and heavier,
   text and numbers in the same voice (the client found a display grotesque too playful). More air,
   one interactive moment in the hero. No motion for its own sake.
   ====================================================================================== */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.c47061a6ce96.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; --r: 6px; --r-lg: 10px; --r-xl: 14px; }
body { font: 400 15px/1.6 var(--sans); font-feature-settings: "tnum", "ss01"; letter-spacing: -0.005em; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; }
h1, h2 { font-weight: 650; } h3 { font-weight: 600; } h4 { font-weight: 600; }
h1 { font-size: 30px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
.cell .v { font-family: var(--display); font-weight: 650; font-size: 26px; letter-spacing: -0.03em; }
.row .id, .topbar .id, .runhead .id { font-family: var(--sans); font-weight: 500; letter-spacing: 0; color: var(--faint); }
.btn { font: 550 14px/1 var(--sans); letter-spacing: -0.005em; border-radius: var(--r); }
.btn.sm { font-size: 13px; } .btn.lg { font-size: 15px; border-radius: 8px; } .btn.xl { font-size: 16px; border-radius: 8px; height: 50px; padding: 0 24px; }
.btn.primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(22,35,47,.18); }
.box { border-radius: var(--r-lg); }
.box-head, .side a.item, .side button.item, .side summary.item, .side-label, .nav a, .topbar .ttl, .topbar h1.ttl, .faq summary, .env-tag, .side .brand, .top .brand { font-family: var(--sans); letter-spacing: -0.005em; }
.side .brand, .top .brand { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.side a.item, .side button.item, .side summary.item { font-weight: 500; font-size: 14px; border-radius: 6px; }
.side .item[aria-current="page"] { box-shadow: none; background: var(--panel-2); }
.side .item[aria-current="page"]::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: var(--accent-2); margin-left: -8px; margin-right: 5px; }
.nav a { font-size: 14.5px; font-weight: 500; border-radius: 6px; }
.env-tag { font-family: var(--sans); font-weight: 600; letter-spacing: .02em; border-radius: 4px; }
.cells { gap: 0; } .cell { padding: 16px 18px; }
.list .row { min-height: 60px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea, .search, .seg, .icon-btn, .avatar { border-radius: 8px; }
.seg button { border-radius: 6px; }
dialog.confirm { border-radius: 14px; } dialog.confirm .cf-body { border-radius: 14px 14px 0 0; } dialog.confirm .cf-actions { border-radius: 0 0 14px 14px; }
dialog.confirm h2 { font-size: 22px; }

/* landing: scale and air */
main.landing { font-size: 16px; }
.l-wrap { max-width: 1160px; padding: 0 28px; }
.hero .l-wrap.hero-grid { padding-top: 88px; padding-bottom: 88px; gap: 72px; }
.hero h1 { font-family: var(--display); font-weight: 650; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; text-wrap: balance; }
.hero p.lead { font-size: 19px; line-height: 1.55; max-width: 44ch; margin-top: 22px; }
.hero .actions { margin-top: 32px; gap: 10px; }
.hero .hero-note { font-size: 14px; }
.hero-facts { margin-top: 34px; gap: 8px 26px; font-size: 14px; }
.l-sec .l-wrap { padding-top: 104px; padding-bottom: 104px; }
.l-sec h2 { font-family: var(--display); font-weight: 650; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.06; letter-spacing: -0.03em; }
.l-sec .lead-p { font-size: 17px; line-height: 1.55; }
.step { padding: 28px 0; gap: 28px; } .step h3 { font-size: 21px; } .step p { font-size: 16px; }
.steps .step .n { font-family: var(--display); font-weight: 600; font-size: 30px; color: var(--accent); flex-basis: 60px; letter-spacing: -0.02em; }
.l-kv dt { font-family: var(--display); font-size: 18px; font-weight: 650; } .l-kv dd { font-size: 15px; }
.pricing .v { font-family: var(--display); font-size: 32px; font-weight: 650; letter-spacing: -0.03em; }
.pricing .k { font-size: 14px; } .pricing .s { font-size: 15px; }
.cta > div { border-radius: 20px; padding: 80px 24px; }
.cta h2 { font-family: var(--display); font-weight: 650; font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -0.03em; }
.faq summary { font-family: var(--display); font-weight: 650; font-size: 18px; }
.l-preview .frame { border-radius: 14px; }

/* the slice: a lab instrument, not a picture */
.slice .view { border-radius: 10px; border: 1px solid var(--line-strong); cursor: crosshair; touch-action: none; }
.slice .readout { font-family: var(--sans); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.slice .probe { position: absolute; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none; font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: #fff; background: rgba(22, 35, 47, .92); padding: 5px 7px; border-radius: 5px; white-space: nowrap; }
.slice .probe::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -4px; border: 4px solid transparent; border-top-color: rgba(22, 35, 47, .92); }
.slice-ctl { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 2px; }
.slice-ctl label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 0; font-weight: 500; }
.slice-ctl output { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.slice-ctl input[type=range] { width: 100%; margin: 0; accent-color: var(--accent); height: 22px; cursor: pointer; }
.slice-hint { font-size: 13px; color: var(--faint); margin: 2px 0 0; }
@media (hover: none) { .slice-hint { display: none; } }

/* features as a bento: two wide cards carry the two things the product is for */
.features.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; background: none; border: 0; }
.features.bento > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 28px; display: grid; gap: 10px; align-content: start; grid-column: span 2; transition: border-color .15s, transform .15s; }
.features.bento > div:hover { border-color: var(--line-strong); }
@media (min-width: 981px) {
  .features.bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .features.bento > div:nth-child(1), .features.bento > div:nth-child(2), .features.bento > div:nth-child(5), .features.bento > div:nth-child(6) { grid-column: span 3; }
  .features.bento > div:nth-child(3) { grid-column: span 4; }
  .features.bento > div:nth-child(4) { grid-column: span 2; }
}
.features.bento .meta { display: inline-flex; width: fit-content; font: 500 12.5px var(--sans); color: var(--accent-ink); background: var(--accent-soft); padding: 3px 8px; border-radius: 99px; }
.features.bento .meta::before { display: none; }
.features.bento h3 { font-size: 20px; } .features.bento p { font-size: 15.5px; color: var(--muted); }
@media (max-width: 640px) { .features.bento { grid-template-columns: 1fr; } .features.bento > div, .features.bento > div.wide { grid-column: auto; } }
@media (max-width: 900px) { .hero .l-wrap.hero-grid { padding-top: 48px; padding-bottom: 56px; gap: 40px; } .l-sec .l-wrap { padding-top: 72px; padding-bottom: 72px; } }
@media (max-width: 360px) { .side .ctl .seg button { min-width: 30px; padding: 0 6px; } .side .ctl { gap: 4px; } .side { padding-left: 8px; } .side .brand { font-size: 16px; } }

/* Footer v5 (04.11): one tidy row; full company data folded under "Dane firmy" (still one click away, as the law requires). */
.foot-in { grid-template-columns: 1fr auto; align-items: center; gap: 10px 24px; }
.foot-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; grid-column: 1 / -1; }
.foot-co { display: inline; }
.foot-co summary { cursor: pointer; list-style: none; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; display: inline; }
.foot-co summary::-webkit-details-marker { display: none; }
.foot-co[open] summary { color: var(--ink); }
.foot-co[open] { flex-basis: 100%; }
.foot-co > span { display: block; margin-top: 4px; }
.foot-nist { justify-self: end; text-align: right; }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr; } .foot-nist { justify-self: start; text-align: left; } }
td.num .rate { display: block; font-size: 11.5px; font-weight: 400; font-variant-numeric: tabular-nums; }

/* "Pobieranie w trakcie obliczeń": three clear states (client 04.11) */
.sync-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.sync-steps li { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border-left: 1px solid var(--line); position: relative; }
.sync-steps li:first-child { border-left: 0; }
.sync-steps .k { font-size: 12px; color: var(--muted); }
.sync-steps .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.sync-steps .s { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sync-steps li.done .v::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good-ink); margin-right: 8px; vertical-align: 1px; }
.sync-steps li.now .v { color: var(--info-ink); }
.sync-steps li.now::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--info-ink), transparent); background-size: 200% 100%; animation: sync-run 1.2s linear infinite; }
.sync-steps li.auto .v { font-weight: 500; }
.btn .spin { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; margin-right: 8px; animation: sync-spin .8s linear infinite; vertical-align: -1px; }
@keyframes sync-run { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes sync-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sync-steps li.now::after, .btn .spin { animation: none; } }
@media (max-width: 720px) { .sync-steps { grid-template-columns: 1fr; } .sync-steps li { border-left: 0; border-top: 1px solid var(--line); } .sync-steps li:first-child { border-top: 0; } }
/* the job list's box clipped the row menus (overflow: hidden); corners stay round without it */
.box.list { overflow: visible; }
.box.list > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.box.list > :last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
@media (min-width: 601px) { .popmenu.up .menu-panel { top: auto; bottom: calc(100% + 4px); } }
.popmenu .menu-panel { z-index: 30; }

/* "Wyniki 3D" (static/results3d.js): live slices, smoke and fire in the browser */
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); margin-left: 4px; vertical-align: 1px; animation: blink 1.6s ease-in-out infinite; }
.r3d-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); border-top: 1px solid var(--line); }
.r3d-side { padding: 4px 0; display: grid; align-content: start; border-right: 1px solid var(--line); max-height: min(72vh, 660px); overflow-y: auto; font-size: 13px; }
.r3d-sec { border-bottom: 1px solid var(--line); padding: 4px 14px 10px; }
.r3d-sec:last-child { border-bottom: 0; }
.r3d-sec > summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 13px; padding: 8px 0 6px; display: flex; justify-content: space-between; }
.r3d-sec > summary::-webkit-details-marker { display: none; }
.r3d-sec > summary::after { content: "▾"; color: var(--muted); } .r3d-sec:not([open]) > summary::after { content: "▸"; }
.r3d-group { display: grid; gap: 2px; margin: 4px 0 8px; }
.row3d { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 13px; line-height: 1.3; cursor: pointer; padding: 2px 0; }
.row3d.head span { font-weight: 500; }
.row3d.sub { padding-left: 22px; color: var(--muted); }
.row3d.sub small { color: var(--faint); }
.r3d-range { display: grid; gap: 2px; margin: 8px 0 0; font-size: 12px; }
.r3d-range .lbl { display: flex; justify-content: space-between; color: var(--muted); }
.r3d-range .val { color: var(--ink); font-variant-numeric: tabular-nums; }
.r3d-range input[type=range], .r3d-range select { width: 100%; }
.r3d-views { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.r3d-stage { position: relative; min-height: 380px; height: min(72vh, 660px); background: var(--sunken); }
.r3d-stage > canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.r3d-tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 4px 8px; font: 12px var(--mono); box-shadow: var(--shadow); white-space: nowrap; z-index: 3; }
.r3d-msg { position: absolute; inset: auto 16px 16px 16px; margin: 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; }
.r3d-bars { position: absolute; top: 12px; right: 12px; display: flex; gap: 10px; align-items: flex-start; z-index: 2; }
.r3d-cbar { background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 10px 10px; font-size: 12px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.r3d-cbar .t { font-weight: 600; } .r3d-cbar .t small { color: var(--muted); font-weight: 400; }
.r3d-cbar .lims { display: grid; gap: 4px; justify-items: start; }
.r3d-cbar .lim { width: 84px; font: 12px var(--mono); padding: 2px 6px; height: 24px; }
.r3d-cbar .barwrap { position: relative; display: flex; gap: 6px; height: 220px; }
.r3d-cbar canvas.grad { width: 22px; height: 220px; border-radius: 3px; cursor: crosshair; border: 1px solid var(--line-strong); }
.r3d-cbar .ticks { position: relative; width: 52px; }
.r3d-cbar .ticks span { position: absolute; left: 0; transform: translateY(-50%); font: 11px var(--mono); color: var(--ink); white-space: nowrap; }
.r3d-cbar .row { display: flex; gap: 4px; flex-wrap: wrap; } .r3d-cbar .lev { font-size: 12px; height: 26px; padding: 0 6px; }
.r3d-cbar .crit { display: flex; gap: 6px; align-items: center; }
.r3d-cbar .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.r3d-cbar .sw.bad { background: rgb(219, 41, 31); } .r3d-cbar .sw.ok { background: rgb(38, 158, 89); }
.r3d-time { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.r3d-time input[type=range] { flex: 1 1 200px; }
.r3d-time select { height: 30px; font-size: 12px; padding: 0 6px; }
.r3d-note { margin: 0; padding: 8px 16px 0; } .r3d-note:last-child { padding-bottom: 12px; }
@media (max-width: 760px) { .r3d-body { grid-template-columns: 1fr; } .r3d-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: none; } .r3d-stage { height: 60vh; }
  .r3d-cbar .barwrap, .r3d-cbar canvas.grad { height: 150px; } .r3d-cbar .lim { width: 70px; } .r3d-bars { transform: scale(.9); transform-origin: top right; } }
.r3d-cbar input.lim { width: 76px !important; min-width: 0; height: 24px; padding: 1px 6px; font: 11.5px var(--mono); }
.r3d-cbar select.lev { width: auto !important; min-width: 0; height: 26px; padding: 0 22px 0 6px; font-size: 12px; }
.r3d-cbar .btn.sm { padding: 3px 8px; font-size: 12px; }
.r3d-cbar .barwrap, .r3d-cbar canvas.grad { height: 190px; }
.r3d-time select { width: auto !important; min-width: 0; }

/* interactive charts (static/charts.js) */
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.chart-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chart-tools .btn.sm { padding: 3px 9px; font-size: 12px; }
.chart-plot { position: relative; }
.chart-tip { position: absolute; pointer-events: none; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 6px 9px; font-size: 12px; box-shadow: var(--shadow); white-space: nowrap; z-index: 2; }
.chart-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.chart-sel { position: absolute; top: 14px; bottom: 30px; background: color-mix(in srgb, var(--info-ink) 14%, transparent); border-left: 1px solid var(--info-ink); border-right: 1px solid var(--info-ink); pointer-events: none; }
.chart-legend-tools { display: flex; gap: 6px; margin-top: 8px; } .chart-legend-tools input { max-width: 240px; height: 28px; font-size: 12.5px; }
.legend .lg { background: none; border: 1px solid transparent; border-radius: var(--r); padding: 2px 6px; font: inherit; color: var(--ink); cursor: pointer; }
.legend .lg:hover { border-color: var(--line-strong); }
.legend .lg.off { color: var(--faint); text-decoration: line-through; } .legend .lg.off i { opacity: .25; }
.chart-hint { margin: 6px 0 0; }

/* colour bar v2: bar + ticks on top, typed range and highlight below, nothing overlaps (client 04.11) */
.r3d-cbar { width: 214px; }
.r3d-cbar .barwrap { position: relative; display: flex; gap: 8px; height: 200px; }
.r3d-cbar canvas.grad { width: 22px; height: 200px; flex: none; }
.r3d-cbar .ticks { position: relative; flex: 1 1 auto; }
.r3d-cbar .fld { display: grid; gap: 3px; }
.r3d-cbar .fld .lbl { font-size: 11.5px; color: var(--muted); }
.r3d-cbar .pair { display: flex; align-items: center; gap: 4px; }
.r3d-cbar input.num { width: 58px !important; min-width: 0; height: 26px; padding: 1px 5px; font: 11.5px var(--mono); }
.r3d-cbar select.lev { width: 100% !important; }
@media (max-width: 760px) { .r3d-cbar { width: 190px; } .r3d-cbar .barwrap, .r3d-cbar canvas.grad { height: 130px; } }

/* colour bar v3 (client 04.11: "nieczytelne i brzydkie"): clean bar, round ticks, settings behind ⚙ */
.r3d-bars { gap: 10px; }
.cb { width: 148px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; box-shadow: 0 6px 24px -12px rgba(0,0,0,.35); font-size: 12.5px; display: grid; gap: 8px; }
.cb-h { display: flex; align-items: baseline; gap: 6px; }
.cb-h b { font-weight: 600; font-size: 13px; text-transform: capitalize; }
.cb-h .u { color: var(--muted); font-size: 12px; }
.cb-gear { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.cb-gear:hover, .cb-gear[aria-expanded=true] { color: var(--ink); background: var(--sunken); }
.cb-body { display: flex; gap: 10px; height: 240px; }
.cb-bar { width: 18px; height: 240px; flex: none; border-radius: 4px; cursor: crosshair; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cb-ticks { position: relative; flex: 1 1 auto; }
.cb-ticks span { position: absolute; left: 0; transform: translateY(-50%); font: 500 12px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.cb-ticks span::before { content: ""; position: absolute; left: -10px; top: 50%; width: 5px; border-top: 1px solid var(--muted); }
.cb-ticks span.end { color: var(--muted); font-weight: 400; }
.cb-chip { justify-self: start; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 2px 9px; font: 12px var(--sans); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.cb-chip:hover { border-color: var(--ink); }
.cb-set { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.cb-row { display: flex; justify-content: space-between; align-items: baseline; }
.cb-l { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.cb-link { border: 0; background: none; padding: 0; color: var(--info-ink); font-size: 12px; cursor: pointer; }
.cb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cb-f { display: grid; gap: 2px; margin: 0; font-size: 11px; color: var(--muted); }
.cb .cb-num { width: 100% !important; min-width: 0; height: 28px; padding: 2px 6px; font: 500 12.5px var(--sans); font-variant-numeric: tabular-nums; border-radius: 6px; }
.cb-seg { display: grid; grid-template-columns: 1fr 1fr 1.6fr; border: 1px solid var(--line-strong); border-radius: 7px; overflow: hidden; }
.cb-seg button { border: 0; background: var(--surface); font: 12px var(--sans); padding: 4px 0; cursor: pointer; color: var(--ink); }
.cb-seg button + button { border-left: 1px solid var(--line-strong); }
.cb-seg button[aria-pressed=true] { background: var(--ink); color: var(--surface); }
.cb-crit { display: flex; gap: 6px; align-items: center; }
.cb .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; } .cb .sw.bad { background: rgb(219, 41, 31); } .cb .sw.ok { background: rgb(38, 158, 89); }
.cb:has(.cb-set:not([hidden])) { width: 196px; }
@media (max-width: 760px) { .cb-body, .cb-bar { height: 150px; } }

/* ===== 3D results v4 styling (client 04.11: "popraw stylistykę") ===== */
.r3d { --r3d-acc: var(--good); }
.r3d input[type=range] { accent-color: var(--r3d-acc); }
.r3d-side { background: var(--surface); padding: 0; }
.r3d-sec { padding: 0 14px; }
.r3d-sec > summary { padding: 12px 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.r3d-sec > summary::after { content: none; }
.r3d-sec > summary .chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 2px 4px 0 0; transition: transform .15s; }
.r3d-sec:not([open]) > summary .chev { transform: rotate(-45deg); }
.r3d-sec-b { display: grid; gap: 10px; padding-bottom: 14px; }
.r3d-card { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.r3d-sw { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; font-size: 13px; }
.r3d-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.r3d-sw .track { width: 30px; height: 18px; border-radius: 99px; background: var(--line-strong); position: relative; flex: none; transition: background .15s; }
.r3d-sw .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.r3d-sw input:checked + .track { background: var(--r3d-acc); }
.r3d-sw input:checked + .track::after { transform: translateX(12px); }
.r3d-sw input:indeterminate + .track { background: color-mix(in srgb, var(--r3d-acc) 45%, var(--line-strong)); }
.r3d-sw input:indeterminate + .track::after { transform: translateX(6px); }
.r3d-sw input:focus-visible + .track { outline: 2px solid var(--r3d-acc); outline-offset: 2px; }
.r3d-sw .txt { font-weight: 500; } .r3d-sw .txt small { color: var(--muted); font-weight: 400; }
.r3d-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 40px; }
.r3d-chip { margin: 0; cursor: pointer; }
.r3d-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.r3d-chip span { display: inline-block; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); background: var(--surface); transition: all .12s; }
.r3d-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.r3d-chip input:focus-visible + span { outline: 2px solid var(--r3d-acc); outline-offset: 2px; }
.r3d-field { display: grid; gap: 5px; }
.r3d-field .lbl, .r3d-range .lbl { font-size: 12px; color: var(--muted); }
.r3d-seg { display: flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.r3d-seg button { flex: 1 1 auto; border: 0; background: none; padding: 5px 6px; font: 12px var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap; }
.r3d-seg button + button { border-left: 1px solid var(--line-strong); }
.r3d-seg button[aria-pressed=true] { background: var(--ink); color: var(--surface); }
.r3d-snap { justify-self: start; }
/* colour bar: the settings button is a labelled pill */
.cb-gear { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 3px 9px; border-radius: 99px; font: 500 12px var(--sans); cursor: pointer; }
.cb-gear:hover { border-color: var(--ink); background: var(--surface); }
.cb-gear[aria-expanded=true] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cb { width: 168px; } .cb:has(.cb-set:not([hidden])) { width: 206px; }
/* time on the picture (also in saved images) */
.r3d-badge { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 8px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line); font: 600 13px var(--sans); font-variant-numeric: tabular-nums; pointer-events: none; }
/* player */
.r3d-player { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.r3d-ib { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; }
.r3d-ib:hover { border-color: var(--ink); }
.r3d-playbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--r3d-acc); color: #fff; display: inline-grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--r3d-acc) 70%, transparent); }
.r3d-playbtn:hover { filter: brightness(1.08); }
.r3d-playbtn .i-pause, .r3d-playbtn.on .i-play { display: none; } .r3d-playbtn.on .i-pause { display: block; }
.r3d-clock { min-width: 118px; font-variant-numeric: tabular-nums; font-size: 13px; } .r3d-clock b { font-size: 15px; } .r3d-clock span { color: var(--muted); }
.r3d-track { flex: 1 1 220px; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--r3d-acc) var(--p, 0%), var(--line-strong) var(--p, 0%)); cursor: pointer; }
.r3d-track::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--r3d-acc); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.r3d-track::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--r3d-acc); }
.r3d-speed { width: auto !important; height: 32px; font-size: 12.5px; padding: 0 26px 0 10px; border-radius: 8px; }
.r3d-loop { margin: 0; cursor: pointer; } .r3d-loop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.r3d-loop svg { width: 32px; height: 32px; padding: 7px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--muted); box-sizing: border-box; }
.r3d-loop input:checked + svg { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.r3d-loop .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.r3d-live { display: inline-flex; align-items: center; gap: 6px; }
.r3d-note { padding: 8px 16px 0; }
.cb { width: 192px; } .cb:has(.cb-set:not([hidden])) { width: 212px; }
.cb-h { flex-wrap: wrap; row-gap: 4px; }
.r3d-seg button { padding: 5px 4px; font-size: 11.5px; }

/* sidebar: on Windows the vertical scrollbar takes ~15 px, so the balance row ("0 / 10 000 zł")
   overflowed and a horizontal scrollbar appeared (client 05.11) */
@media (min-width: 901px) {
  .side { overflow-x: hidden; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--panel-ink, #9aa7b2) 35%, transparent) transparent; }
  .side::-webkit-scrollbar { width: 6px; } .side::-webkit-scrollbar-thumb { background: rgba(160, 175, 188, .35); border-radius: 6px; } .side::-webkit-scrollbar-track { background: transparent; }
  .side > *, .side-foot, .side-foot > * { min-width: 0; }
  .side-balance .rw { gap: 8px; min-width: 0; }
  .side-balance .rw > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-balance .rw > b { flex: none; white-space: nowrap; }
  .side .user-menu .menu-panel { left: 0; right: 0; min-width: 0; max-width: 100%; }
}

/* top-up by bank transfer: details shown right away (client 05.11) */
.transfer-box { margin-top: 14px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 14px 16px; background: var(--bg); }
.transfer-box.pending { margin: 0 0 12px; background: var(--surface); border-color: color-mix(in srgb, var(--accent) 35%, var(--line-strong)); }
.transfer-box .tb-h { margin: 0 0 10px; font-weight: 600; }
.transfer-box .tb { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; align-items: baseline; }
.transfer-box dt { color: var(--muted); font-size: 13px; }
.transfer-box dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.transfer-box dd .mono { font-size: 14px; user-select: all; }
.transfer-box dd .btn.sm { padding: 1px 8px; font-size: 12px; }
.transfer-box dd br { flex-basis: 100%; content: ""; }
@media (max-width: 560px) { .transfer-box .tb { grid-template-columns: 1fr; gap: 2px; } .transfer-box dd { margin-bottom: 8px; } }
