/* Vizcraft Theme - generated from tokens.json by build.py, do not edit by hand. Copyright 2026 Vizcraft.pl Jacek Jabłonowski. SPDX-License-Identifier: Apache-2.0
   Use: <link rel="stylesheet" href="vizcraft.css"> and class="vz" on <body> (or any container).
   Dark by default; data-theme="light" on <html> or any container switches that subtree to light. */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600;700&display=swap");

:root, [data-theme="dark"] {
  --vz-bg: #0D1117;
  --vz-surface-1: rgb(22 27 34 / 0.65);
  --vz-surface-2: rgb(255 255 255 / 0.04);
  --vz-surface-1-solid: #161B22;
  --vz-surface-2-solid: #1C2128;
  --vz-surface-top: #262C36;
  --vz-border: rgb(255 255 255 / 0.07);
  --vz-border-solid: #30363D;
  --vz-control-border: #828B95;
  --vz-text: #E6EDF3;
  --vz-text-muted: #8B949E;
  --vz-text-faint: #828B95;
  --vz-magenta: #AD1457;
  --vz-magenta-text: #F0479F;
  --vz-magenta-bright: #E91E8C;
  --vz-magenta-button: #C2185B;
  --vz-magenta-deep: #880E4F;
  --vz-cyan: #00BCD4;
  --vz-green: #3FB950;
  --vz-amber: #D29922;
  --vz-focus: #00BCD4;
  --vz-positive: #3FB950;
  --vz-negative: #FF7B72;
  --vz-on-accent: #FFFFFF;
  --vz-magenta-tint: rgb(173 20 87 / 0.15);
  --vz-magenta-line: rgb(173 20 87 / 0.3);
  --vz-cyan-tint: rgb(0 188 212 / 0.15);
  --vz-cyan-line: rgb(0 188 212 / 0.3);
  --vz-green-tint: rgb(63 185 80 / 0.15);
  --vz-green-line: rgb(63 185 80 / 0.3);
  --vz-amber-tint: rgb(210 153 34 / 0.15);
  --vz-amber-line: rgb(210 153 34 / 0.3);
  --vz-data-1: #E91E8C;
  --vz-data-2: #00A5BB;
  --vz-data-3: #C78B18;
  --vz-data-4: #4CAF7A;
  --vz-data-5: #8B949E;
  --vz-data-axis: rgb(255 255 255 / 0.15);
  --vz-seq-1: #8A2F60;
  --vz-seq-2: #B12F74;
  --vz-seq-3: #D6408A;
  --vz-seq-4: #EF72AD;
  --vz-seq-5: #FBB6D5;
  --vz-panel-highlight: inset 0 1px 0 rgb(255 255 255 / 0.05);
  --vz-glow-active-a: 0 0 18px -6px rgb(233 30 140 / 0.55), inset 0 0 24px 2px rgb(173 20 87 / 0.14);
  --vz-glow-active-b: 0 0 26px -4px rgb(0 188 212 / 0.45), inset 0 0 24px 2px rgb(0 188 212 / 0.12);
  --vz-glow-button: 0 0 18px -2px rgb(233 30 140 / 0.45);
  color-scheme: dark;
}
[data-theme="light"] {
  --vz-bg: #F6F8FA;
  --vz-surface-1: #FFFFFF;
  --vz-surface-2: #F6F8FA;
  --vz-surface-1-solid: #FFFFFF;
  --vz-surface-2-solid: #F6F8FA;
  --vz-surface-top: #EAEEF2;
  --vz-border: #D0D7DE;
  --vz-border-solid: #D0D7DE;
  --vz-control-border: #656D76;
  --vz-text: #1F2328;
  --vz-text-muted: #59636E;
  --vz-text-faint: #656D76;
  --vz-magenta: #AD1457;
  --vz-magenta-text: #F0479F;
  --vz-magenta-bright: #E91E8C;
  --vz-magenta-button: #E91E8C;
  --vz-magenta-deep: #880E4F;
  --vz-cyan: #00BCD4;
  --vz-green: #3FB950;
  --vz-amber: #D29922;
  --vz-focus: #007A87;
  --vz-positive: #1A7F37;
  --vz-negative: #CF222E;
  --vz-on-accent: #FFFFFF;
  --vz-magenta-tint: rgb(173 20 87 / 0.1);
  --vz-magenta-line: rgb(173 20 87 / 0.35);
  --vz-cyan-tint: rgb(0 188 212 / 0.1);
  --vz-cyan-line: rgb(0 188 212 / 0.35);
  --vz-green-tint: rgb(63 185 80 / 0.1);
  --vz-green-line: rgb(63 185 80 / 0.35);
  --vz-amber-tint: rgb(210 153 34 / 0.1);
  --vz-amber-line: rgb(210 153 34 / 0.35);
  --vz-data-1: #E91E8C;
  --vz-data-2: #00A5BB;
  --vz-data-3: #C78B18;
  --vz-data-4: #4CAF7A;
  --vz-data-5: #8C959F;
  --vz-data-axis: #D0D7DE;
  --vz-seq-1: #EE8DBA;
  --vz-seq-2: #E05A98;
  --vz-seq-3: #C2185B;
  --vz-seq-4: #96114A;
  --vz-seq-5: #6A0B34;
  --vz-panel-highlight: none;
  --vz-glow-active-a: 0 6px 18px -8px rgb(233 30 140 / 0.45);
  --vz-glow-active-b: 0 6px 22px -6px rgb(0 188 212 / 0.4);
  --vz-glow-button: 0 6px 16px -6px rgb(233 30 140 / 0.5);
  color-scheme: light;
}
:root {
  --vz-radius-sm: 6px;
  --vz-radius-control: 10px;
  --vz-radius-card: 12px;
  --vz-radius-panel: 24px;
  --vz-radius-pill: 999px;
  --vz-space-1: 4px;
  --vz-space-2: 8px;
  --vz-space-3: 12px;
  --vz-space-4: 16px;
  --vz-space-5: 24px;
  --vz-space-6: 32px;
  --vz-space-7: 48px;
  --vz-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --vz-duration-fast: 0.2s;
  --vz-duration-slow: 0.3s;
  --vz-duration-highlight: 6s;
  --vz-font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --vz-font-sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --vz-font-mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}

@property --vz-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes vz-spin { to { --vz-angle: 360deg; } }
@keyframes vz-breathe { 0%, 100% { box-shadow: var(--vz-glow-active-a); } 50% { box-shadow: var(--vz-glow-active-b); } }

.vz { background: var(--vz-bg); color: var(--vz-text); font-family: var(--vz-font-sans); font-size: 16px; line-height: 1.5; }
.vz *, .vz *::before, .vz *::after { box-sizing: border-box; }
.vz a { color: var(--vz-magenta-text); text-underline-offset: 2px; }
.vz h1, .vz h2, .vz h3 { font-family: var(--vz-font-display); font-weight: 700; }
.vz :focus-visible { outline: 2px solid var(--vz-focus); outline-offset: 3px; }
.vz ::selection { background: var(--vz-magenta-line); }

/* surfaces */
.vz-panel { background: var(--vz-surface-1); border: 1px solid var(--vz-border); border-radius: var(--vz-radius-panel);
  box-shadow: var(--vz-panel-highlight); padding: var(--vz-space-5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vz-card { background: var(--vz-surface-2); border: 1px solid var(--vz-border); border-radius: var(--vz-radius-card); padding: var(--vz-space-4); }

/* the one highlight: active = rotating gradient border + breathing glow */
.vz-active, .vz-tab[aria-selected="true"], .vz-card[aria-current="true"], .vz-nav a[aria-current="page"] {
  --vz-fill: var(--vz-surface-2-solid);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--vz-fill), var(--vz-fill)) padding-box,
    conic-gradient(from var(--vz-angle), var(--vz-magenta-bright), var(--vz-cyan), var(--vz-amber), var(--vz-magenta-bright)) border-box;
  animation: vz-spin var(--vz-duration-highlight) linear infinite, vz-breathe var(--vz-duration-highlight) ease-in-out infinite;
}
.vz-tab[aria-selected="true"], .vz-nav a[aria-current="page"] { --vz-fill: var(--vz-surface-1-solid); }
@media (prefers-reduced-motion: reduce) {
  .vz-active, .vz-tab[aria-selected="true"], .vz-card[aria-current="true"], .vz-nav a[aria-current="page"] {
    animation: none; box-shadow: var(--vz-glow-active-a); }
}

/* section title */
.vz-section-title { margin: 0; font-family: var(--vz-font-display); font-size: 22px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--vz-magenta-text); }
.vz-underline { width: 48px; height: 3px; border-radius: var(--vz-radius-sm); background: linear-gradient(90deg, var(--vz-magenta-bright), var(--vz-cyan)); }

/* buttons: rounded rectangles, actions only */
.vz-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--vz-space-2); min-height: 44px;
  padding: 0 20px; border-radius: var(--vz-radius-control); font: 600 14px/1 var(--vz-font-sans); cursor: pointer;
  transition: filter var(--vz-duration-fast) var(--vz-ease), box-shadow var(--vz-duration-fast) var(--vz-ease), background var(--vz-duration-fast) var(--vz-ease); }
.vz-btn-primary { border: 0; color: var(--vz-on-accent); box-shadow: var(--vz-glow-button);
  background: linear-gradient(135deg, var(--vz-magenta-button), var(--vz-magenta) 55%, var(--vz-magenta-deep)); }
.vz-btn-primary:hover { filter: brightness(1.08); }
.vz-btn-secondary { border: 1.5px solid var(--vz-magenta-text); background: transparent; color: var(--vz-magenta-text); }
.vz-btn-secondary:hover { background: var(--vz-magenta-tint); }
.vz-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; filter: none; }

/* tabs and nav: pills, filters */
.vz-tabs, .vz-nav, .vz-tags { display: flex; flex-wrap: wrap; gap: var(--vz-space-2); }
.vz-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--vz-radius-pill);
  border: 1px solid var(--vz-border); background: transparent; color: var(--vz-text-muted); font: 500 14px/1 var(--vz-font-sans); cursor: pointer; }
.vz-tab[aria-selected="true"] { color: var(--vz-text); font-weight: 600; }
.vz-nav a { display: inline-flex; align-items: center; gap: var(--vz-space-2); min-height: 48px; padding: 0 20px; border-radius: var(--vz-radius-pill);
  background: var(--vz-surface-1); border: 1px solid var(--vz-border); color: var(--vz-text-muted); font: 500 15px/1 var(--vz-font-sans); text-decoration: none; }
.vz-nav a:hover { color: var(--vz-text); }
.vz-nav a[aria-current="page"] { color: var(--vz-text); font-weight: 600; }
.vz-badge { display: inline-block; padding: 2px 7px; border-radius: var(--vz-radius-pill); background: var(--vz-magenta); color: var(--vz-on-accent);
  font: 700 11px/1 var(--vz-font-sans); }
.vz-tab:not([aria-selected="true"]) .vz-badge { background: var(--vz-surface-2); color: var(--vz-text); border: 1px solid var(--vz-border); }
.vz-segment { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--vz-radius-pill); background: var(--vz-surface-2); border: 1px solid var(--vz-border); }
.vz-segment button { min-height: 36px; min-width: 44px; padding: 0 14px; border: 0; border-radius: var(--vz-radius-pill); background: transparent;
  color: var(--vz-text-muted); font: 600 13px/1 var(--vz-font-sans); cursor: pointer; }
.vz-segment button[aria-pressed="true"] { background: var(--vz-magenta); color: var(--vz-on-accent); }

/* tags: cycle magenta, cyan, green, amber */
.vz-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--vz-radius-pill); font: 500 12px/1.4 var(--vz-font-sans);
  background: var(--vz-magenta-tint); border: 1px solid var(--vz-magenta-line); color: var(--vz-magenta-text); }
.vz-tag--cyan { background: var(--vz-cyan-tint); border-color: var(--vz-cyan-line); color: var(--vz-cyan); }
.vz-tag--green { background: var(--vz-green-tint); border-color: var(--vz-green-line); color: var(--vz-green); }
.vz-tag--amber { background: var(--vz-amber-tint); border-color: var(--vz-amber-line); color: var(--vz-amber); }

/* fields */
.vz-field { display: flex; flex-direction: column; gap: 6px; }
.vz-field label { font: 600 13px/1.3 var(--vz-font-sans); color: var(--vz-text); }
.vz-input { min-height: 44px; padding: 0 14px; border-radius: var(--vz-radius-control); border: 1px solid var(--vz-control-border);
  background: var(--vz-surface-2); color: var(--vz-text); font: 400 15px/1 var(--vz-font-sans); }
.vz-input::placeholder { color: var(--vz-text-faint); }
.vz-input:focus-visible { outline: 2px solid var(--vz-focus); outline-offset: 2px; border-color: transparent; }
.vz-input[aria-invalid="true"] { border-color: var(--vz-negative); }
.vz-field__help { font-size: 12px; color: var(--vz-text-muted); }
.vz-field__error { font-size: 12px; color: var(--vz-negative); }

/* KPI */
.vz-kpi { display: flex; flex-direction: column; gap: var(--vz-space-1); }
.vz-kpi__label { font-size: 12px; font-weight: 500; color: var(--vz-text-muted); }
.vz-kpi__value { font-family: var(--vz-font-display); font-size: 28px; line-height: 1.1; font-weight: 700; color: var(--vz-text); }
.vz-kpi__delta { font-size: 12px; color: var(--vz-text-faint); }
.vz-kpi__delta--up { color: var(--vz-positive); }
.vz-kpi__delta--down { color: var(--vz-negative); }

/* table */
.vz-table { width: 100%; border-collapse: collapse; font: 400 14px/1.4 var(--vz-font-sans); color: var(--vz-text); }
.vz-table th { text-align: left; padding: 10px 12px; font: 600 12px/1.2 var(--vz-font-sans); letter-spacing: .04em; text-transform: uppercase;
  color: var(--vz-text-muted); border-bottom: 1px solid var(--vz-border); }
.vz-table td { padding: 10px 12px; border-bottom: 1px solid var(--vz-border); }
.vz-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.vz-table tbody tr:hover { background: var(--vz-surface-2); }

/* progress */
.vz-progress__track { height: 6px; border-radius: var(--vz-radius-pill); background: var(--vz-surface-2); border: 1px solid var(--vz-border); overflow: hidden; }
.vz-progress__fill { height: 100%; border-radius: var(--vz-radius-pill); background: linear-gradient(90deg, var(--vz-magenta-bright), var(--vz-cyan)); }

/* timeline */
.vz-timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: flex; flex-direction: column; gap: var(--vz-space-5); }
.vz-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; border-radius: var(--vz-radius-sm);
  background: linear-gradient(180deg, var(--vz-magenta-bright), var(--vz-cyan)); }
.vz-timeline li { position: relative; }
.vz-timeline li::before { content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--vz-surface-1-solid); border: 2px solid var(--vz-magenta); box-sizing: border-box; }
.vz-timeline li[aria-current="true"]::before { background: var(--vz-magenta-bright); border-color: var(--vz-magenta-bright); }

/* charts */
.vz-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--vz-text-muted); }
.vz-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; background: var(--swatch); vertical-align: -1px; }
.vz-s1 { --swatch: var(--vz-data-1); } .vz-s2 { --swatch: var(--vz-data-2); } .vz-s3 { --swatch: var(--vz-data-3); }
.vz-s4 { --swatch: var(--vz-data-4); } .vz-s5 { --swatch: var(--vz-data-5); }
.vz-bar.vz-s1, .vz-bar.vz-s2, .vz-bar.vz-s3, .vz-bar.vz-s4, .vz-bar.vz-s5 { background: var(--swatch); }
.vz-bar { border-radius: 4px 4px 0 0; }
.vz-tooltip { display: inline-flex; flex-direction: column; gap: 6px; min-width: 150px; padding: 10px 12px; border-radius: var(--vz-radius-control);
  background: var(--vz-surface-1-solid); border: 1px solid var(--vz-border); box-shadow: 0 8px 24px rgb(0 0 0 / 0.25); font: 400 12px/1.3 var(--vz-font-sans); color: var(--vz-text); }
