/* Fakturácia – čisté UI v štýle Apple. Predvolený font: SF Pro (Mac/iPhone), inde Inter – jeho najbližšia voľná náhrada. */
@font-face { font-family: "InterUI"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "InterUI"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "InterUI"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/static/fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "InterUI"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/static/fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "InterUI"; font-style: normal; font-weight: 700 800; font-display: swap; src: url(/static/fonts/inter-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "InterUI"; font-style: normal; font-weight: 700 800; font-display: swap; src: url(/static/fonts/inter-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Zetta"; font-style: normal; font-weight: 600; font-display: block; src: url(/static/fonts/lexend-zetta-latin-600-normal.woff2) format("woff2"); }
/* Vzhľad: čierne pozadie, plávajúce bočné menu, písmo Inter, monochromatické tlačidlá. */
:root {
  color-scheme: light;
  --font: "InterUI", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --accent: #0a0a0a;
  --accent-hover: color-mix(in srgb, var(--accent) 85%, var(--bg));
  --accent-soft: color-mix(in srgb, var(--accent) 9%, transparent);
  --accent-ink: #fff;

  --bg: #f4f4f5;
  --bg-2: #e9e9eb;
  --bg-3: #fafafa;
  --card: #ffffff;
  --sidebar: rgba(255, 255, 255, 0.86);
  --sidebar-ink: var(--text);
  --sidebar-ink-2: var(--text-2);
  --sidebar-label: rgba(0, 0, 0, .45);
  --sidebar-hover: rgba(0, 0, 0, .05);
  --sidebar-active: rgba(0, 0, 0, .08);
  --nav-icon: currentColor;
  --seg-active: #ffffff;
  --text: #0a0a0a;
  --text-2: #66666b;
  --text-3: #8e8e93;
  --line: rgba(0, 0, 0, 0.07);
  --line-2: rgba(0, 0, 0, 0.12);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 80px rgba(0,0,0,.18);

  --good: #127a3c; --good-text: #0b6b31; --good-soft: rgba(18, 122, 60, .10);
  --bad: #f58a8c; --bad-strong: #d70015; --bad-text: #c1121f; --bad-soft: rgba(215, 0, 21, .08);
  --warn-text: #a05a00; --warn-soft: rgba(229, 122, 0, .12);
  --grid: #ececef; --axis: #c7c7cc;

  --r: 12px;
  --r-lg: 20px;
}
:root[data-font="sf"] { --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "InterUI", sans-serif; --font-display: var(--font); }
:root[data-font="system"] { --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --font-display: var(--font); }
:root[data-font="serif"] { --font: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif; --font-display: var(--font); }
:root[data-font="mono"] { --font: var(--mono); --font-display: var(--mono); }

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #000000; --bg-2: #1a1a1b; --bg-3: #0c0c0d; --card: #111112;
    --sidebar: rgba(19, 19, 19, 0.72); --sidebar-label: rgba(255, 255, 255, .5);
    --sidebar-hover: rgba(255, 255, 255, .06); --sidebar-active: rgba(255, 255, 255, .10); --seg-active: rgba(255, 255, 255, .12);
    --text: #eeeeee; --text-2: rgba(255,255,255,.6); --text-3: rgba(255,255,255,.42);
    --line: rgba(255,255,255,.06); --line-2: rgba(255,255,255,.11);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.5);
    --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
    --good: #28b05c; --good-text: #3ddc84; --good-soft: rgba(40, 176, 92, .14);
    --bad: #cc3d40; --bad-strong: #ff453a; --bad-text: #ff6961; --bad-soft: rgba(255, 69, 58, .12);
    --warn-text: #ffb340; --warn-soft: rgba(255, 159, 10, .13);
    --grid: #222224; --axis: #3a3a3c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --bg-2: #1a1a1b; --bg-3: #0c0c0d; --card: #111112;
  --sidebar: rgba(19, 19, 19, 0.72); --sidebar-label: rgba(255, 255, 255, .5);
  --sidebar-hover: rgba(255, 255, 255, .06); --sidebar-active: rgba(255, 255, 255, .10); --seg-active: rgba(255, 255, 255, .12);
  --text: #eeeeee; --text-2: rgba(255,255,255,.6); --text-3: rgba(255,255,255,.42);
  --line: rgba(255,255,255,.06); --line-2: rgba(255,255,255,.11);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.5);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --good: #28b05c; --good-text: #3ddc84; --good-soft: rgba(40, 176, 92, .14);
  --bad: #cc3d40; --bad-strong: #ff453a; --bad-text: #ff6961; --bad-soft: rgba(255, 69, 58, .12);
  --warn-text: #ffb340; --warn-soft: rgba(255, 159, 10, .13);
  --grid: #222224; --axis: #3a3a3c;
}

/* štýl menu */
:root[data-sidebar="accent"] {
  --sidebar: var(--accent); --sidebar-ink: var(--accent-ink); --sidebar-ink-2: color-mix(in srgb, var(--accent-ink) 72%, transparent);
  --sidebar-label: color-mix(in srgb, var(--accent-ink) 60%, transparent);
  --sidebar-hover: color-mix(in srgb, var(--accent-ink) 10%, transparent); --sidebar-active: color-mix(in srgb, var(--accent-ink) 18%, transparent);
}
:root[data-sidebar="dark"] {
  --sidebar: #131313; --sidebar-ink: #eeeeee; --sidebar-ink-2: rgba(255,255,255,.6); --sidebar-label: rgba(255,255,255,.5);
  --sidebar-hover: rgba(255,255,255,.06); --sidebar-active: rgba(255,255,255,.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 14.5px; line-height: 1.5; letter-spacing: -0.011em;
  color: var(--text); background: var(--bg); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.num, .tabnum { font-variant-numeric: tabular-nums; }

.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 100vh; height: 100dvh; }

/* ---------- bočné menu (plávajúci panel) ---------- */
.sidebar { position: relative; z-index: 30; padding: 10px; min-height: 0; color: var(--sidebar-ink); }
.side-panel { height: 100%; display: flex; flex-direction: column; min-height: 0; position: relative;
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 24px; padding: 12px 0;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 0 25px; height: 50px; margin-bottom: 17px; }
.brand-link { border: 0; background: none; color: inherit; cursor: pointer; padding: 4px 0; display: flex; align-items: center; min-width: 0; }
.brand-logo { height: 15px; width: auto; display: block; color: #eeeeee; overflow: visible; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.wordmark { font-family: "Zetta", "InterUI", sans-serif; font-weight: 600; font-size: 14.5px; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; }
.wordmark .lam { display: inline-block; transform: scaleY(-1); transform-origin: 50% 52%; }
.wordmark.xl { font-size: 30px; }
.collapse-btn { color: var(--sidebar-ink-2); opacity: 1; padding: 6px; border-radius: 9px; }
.collapse-btn:hover { background: var(--sidebar-hover); color: var(--sidebar-ink); }
.collapse-btn svg { width: 17px; height: 17px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.nav-label { font-size: 14px; font-weight: 500; line-height: 21px; color: rgba(255,255,255,.5); padding: 16px 20px 6px; }
.nav-item { display: flex; align-items: center; gap: 8px; border: 0; background: none; text-align: left; color: rgba(255,255,255,.92);
  padding: 8px 20px; height: 36px; border-radius: 32px; cursor: pointer; font-size: 14px; font-weight: 400; letter-spacing: -0.4px; transition: background .15s; }
.nav-item svg { color: currentColor; width: 18px; height: 18px; stroke-width: 1.75; }
.nav-item:hover { background: rgba(255,255,255,.06); }
.nav-item.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-badge { margin-left: auto; font-size: 11px; font-weight: 600; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px;
  display: grid; place-items: center; background: var(--bad-strong); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.side-spacer { flex: 1; }
.account { margin: 0 8px 2px; }
.account-btn { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; cursor: pointer; color: inherit;
  padding: 7px 12px 7px 8px; border-radius: 999px; text-align: left; transition: background .15s; background: rgba(255,255,255,.06); }
.account-btn:hover, .account-btn.open { background: rgba(255,255,255,.10); }
.acc-name { min-width: 0; flex: 1; font-size: 14px; letter-spacing: -0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.88); }
.acc-chev { color: var(--sidebar-ink-2); display: grid; }
.acc-chev svg { width: 16px; height: 16px; }
.me-av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-block;
  background: radial-gradient(circle at 30% 30%, #f4c6e4 0%, #d9a6d8 35%, #b993d6 70%, #a98bd0 100%); }
.me-av.lg { width: 38px; height: 38px; }
.co-logo { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; overflow: hidden; background: #fff; }
.co-logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.co-logo.txt { background: rgba(255,255,255,.12); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: 0; }
.co-logo.lg { width: 40px; height: 40px; border-radius: 11px; font-size: 14px; }
.co-logo.sm { width: 26px; height: 26px; border-radius: 7px; font-size: 10.5px; }
.app.collapsed .co-logo { width: 34px; height: 34px; }
.ws-menu { position: absolute; left: calc(100% + 12px); bottom: 0; width: 300px; background: rgba(28, 28, 30, .88); color: #eee;
  border: 1px solid rgba(255,255,255,.08); border-radius: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.6); z-index: 40; padding: 12px;
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
.am-head { display: flex; align-items: center; gap: 12px; padding: 6px 6px 14px; }
.am-name { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; }
.am-sub { font-size: 13px; color: rgba(255,255,255,.55); }
.am-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.05); border-radius: 18px; padding: 6px; margin-bottom: 8px; }
.am-card-t { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.6); padding: 6px 8px 8px; }
.ws-menu .item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; cursor: pointer; font-size: 14px; letter-spacing: -0.2px; }
.ws-menu .item:hover { background: rgba(255,255,255,.07); }
.ws-menu .item > svg { width: 17px; height: 17px; color: rgba(255,255,255,.75); }
.ws-menu .item .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-menu .tick { color: #fff; display: grid; } .ws-menu .tick svg { width: 16px; height: 16px; }
.am-plus { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.am-plus svg { width: 15px; height: 15px; }
.pill-btn { background: #0a84ff; color: #fff; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.ws-menu .sep { height: 1px; background: rgba(255,255,255,.08); margin: 6px 4px; }

/* zbalené menu – len ikony */
.app.collapsed { grid-template-columns: 82px minmax(0, 1fr); }
.app.collapsed .lbl, .app.collapsed .brand-link, .app.collapsed .nav-badge { display: none !important; }
.app.collapsed .brand { justify-content: center; padding: 10px 0 18px; }
.app.collapsed .nav-item { justify-content: center; padding: 10px 0; width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; }
.app.collapsed .nav-item svg { width: 20px; height: 20px; }
.app.collapsed .nav-label { padding: 10px 14px; }
.app.collapsed .nav-label::before { content: ""; display: block; height: 1px; background: var(--line-2); }
.app.collapsed .account { margin: 0 auto 4px; }
.app.collapsed .account-btn { padding: 4px; background: none; width: auto; }
.app.collapsed .me-av { width: 34px; height: 34px; }
.app.collapsed .nav-item { position: relative; }
.app.collapsed .nav-item:has(.nav-badge:not([hidden]))::after { content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad-strong); }

/* ---------- domov ---------- */
.topbar { font-size: 14px; font-weight: 600; letter-spacing: -0.2px; margin: 2px 0 18px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; margin-bottom: 18px; }
.hero-main { position: relative; overflow: hidden; border-radius: 28px; padding: 34px 36px; border: 1px solid var(--line);
  background: radial-gradient(900px 400px at 0% 0%, rgba(122, 92, 140, .35), transparent 60%), radial-gradient(700px 360px at 100% 100%, rgba(41, 108, 232, .18), transparent 60%), var(--card); }
.hero-logo { min-height: 40px; margin-bottom: 22px; display: flex; align-items: center; }
.hero-logo img { max-height: 46px; max-width: 260px; object-fit: contain; }
.hero h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; margin: 0 0 6px; line-height: 1.1; }
.hero-sub { color: var(--text-2); margin: 0 0 18px; font-size: 15px; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.85); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { border-radius: 28px; border: 1px solid var(--line); background: var(--card); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.hs-title { font-size: 13.5px; color: var(--text-2); font-weight: 500; padding: 0 4px 4px; }
.hs { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: inherit; font: inherit;
  border-radius: 18px; padding: 14px 16px; cursor: pointer; transition: background .15s; }
.hs:hover { background: rgba(255,255,255,.06); }
.hs span { font-size: 13px; color: var(--text-2); }
.hs b { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hs.good b, .hs.good span { color: var(--good-text); } .hs.good { background: var(--good-soft); }
.hs.bad b, .hs.bad span { color: var(--bad-text); } .hs.bad { background: var(--bad-soft); }
.home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.kv { display: flex; flex-direction: column; gap: 0; padding-top: 6px; padding-bottom: 8px; }
.kv-row { display: flex; flex-direction: column; gap: 1px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv-row:last-child { border-bottom: 0; }
.kv-row span { font-size: 12.5px; color: var(--text-3); }
.kv-row b { font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.missing { color: var(--text-3); font-weight: 400; font-style: italic; }
.home-hello { color: var(--text-3); font-size: 13px; margin: 22px 2px 0; }
@media (max-width: 1300px) { .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero-main { padding: 24px; } .home-grid { grid-template-columns: 1fr; }
  .ws-menu { left: 8px; right: 8px; bottom: 64px; width: auto; } .collapse-btn { display: none; } .app.collapsed { grid-template-columns: 1fr; } }

.ws-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--bg); font-weight: 650; font-size: 11px; background: var(--text); flex: none; }
.ws-icon.has-logo { background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 2px; overflow: hidden; }
.ws-icon.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; flex: none;
  background: var(--av, #8e8e93); letter-spacing: 0; }
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.avatar.lg { width: 40px; height: 40px; font-size: 15px; }
.icon-btn { border: 0; background: none; cursor: pointer; color: inherit; opacity: .7; padding: 5px; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--bg-2); opacity: 1; }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- main ---------- */
.main { min-width: 0; min-height: 0; position: relative; background: var(--bg); }
.view { display: none; height: 100%; min-height: 0; overflow-y: auto; }
.view.active { display: block; }
.view.split-view.active { display: grid; }
.page { padding: 26px 34px 60px; width: 100%; }
.page.narrow { max-width: 1040px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.035em; margin: 0; line-height: 1.15; }
.page-head .hello { color: var(--text-2); font-size: 15px; margin-bottom: 4px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lead { color: var(--text-2); margin: -10px 0 24px; font-size: 15px; max-width: 640px; }

/* ---------- tlačidlá a ovládanie ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; cursor: pointer; white-space: nowrap;
  background: color-mix(in srgb, var(--text) 7%, var(--card)); color: var(--text); padding: 8px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 500; letter-spacing: -0.2px;
  transition: background .15s, opacity .15s; text-decoration: none !important; }
.btn:hover { background: color-mix(in srgb, var(--text) 12%, var(--card)); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.good { background: var(--good); color: #fff; }
.btn.good:hover { filter: brightness(1.08); }
.btn.ghost { background: none; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.danger { background: none; color: var(--bad-text); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn.lg { padding: 11px 22px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .45; cursor: default; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.segmented { display: inline-flex; background: var(--bg-2); border-radius: 12px; padding: 2px; gap: 2px; flex-wrap: wrap; }
.segmented button { border: 0; background: none; padding: 6px 12px; border-radius: 10px; cursor: pointer; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.segmented button.active { background: var(--seg-active); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.1); font-weight: 500; }
.segmented .n { color: var(--text-3); margin-left: 5px; font-variant-numeric: tabular-nums; }
.search { border: 0; background: var(--bg-2); border-radius: 10px; padding: 8px 12px; width: 240px; outline: none; }
.search:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .search { margin-left: auto; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-2); cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

.field { display: block; margin-bottom: 12px; min-width: 0; }
.field > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-2); background: var(--bg-3); border-radius: 10px; padding: 9px 11px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 64px; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* iOS skupiny v nastaveniach */
.group-title { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; margin: 28px 0 8px 14px; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.group .row { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); min-height: 48px; }
.group .row:last-child { border-bottom: 0; }
.group .row.top { align-items: flex-start; }
.group .row > span:first-child { width: 170px; flex: none; font-size: 14.5px; }
.group .row input, .group .row select, .group .row textarea { flex: 1; border: 0; background: none; outline: none; min-width: 0; color: var(--text); padding: 4px 0; }
.group .row textarea { resize: vertical; line-height: 1.45; }
.group .row input::placeholder, .group .row textarea::placeholder { color: var(--text-3); }
.group .row .val { color: var(--text-2); }
.group-note { font-size: 13px; color: var(--text-2); margin: 8px 14px 0; line-height: 1.5; }
.form-actions { display: flex; align-items: center; gap: 14px; margin: 26px 0 10px; }
.saved { color: var(--good-text); font-size: 14px; opacity: 0; transition: opacity .3s; }
.saved.show { opacity: 1; }
.ro-note { background: var(--bg-2); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--text-2); margin: 6px 0 0; }

/* ---------- karty ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head h2 { font-size: 15.5px; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.card-head .sub { font-size: 13px; color: var(--text-2); }
.card-body { padding: 16px 18px; }
.empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }
.empty-sm { padding: 22px 18px; color: var(--text-3); font-size: 14px; text-align: center; }

/* ---------- prehľad ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px 15px; cursor: pointer;
  transition: box-shadow .15s, transform .15s; text-align: left; color: inherit; font: inherit; }
.kpi:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.kpi .k-label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.kpi .k-label svg { width: 16px; height: 16px; }
.kpi .k-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 2px; line-height: 1.1; white-space: nowrap; }
.kpi .k-sub { font-size: 13px; color: var(--text-2); }
.kpi.paid { background: linear-gradient(var(--good-soft), var(--good-soft)), var(--card); border-color: color-mix(in srgb, var(--good) 28%, transparent); }
.kpi.paid .k-label, .kpi.paid .k-value { color: var(--good-text); }
.kpi.open { background: linear-gradient(var(--bad-soft), var(--bad-soft)), var(--card); border-color: color-mix(in srgb, var(--bad-strong) 25%, transparent); }
.kpi.open .k-label, .kpi.open .k-value { color: var(--bad-text); }
.kpi.overdue .k-label, .kpi.overdue .k-value { color: var(--bad-text); }
.kpi .k-bar { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; margin-top: 10px; display: flex; gap: 2px; }
.kpi .k-bar i { display: block; height: 100%; border-radius: 3px; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.chart-wrap { padding: 8px 14px 6px; position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; stroke: none; fill: none; }
.chart svg text { stroke: none; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .axis-x text, .chart .axis-y text { fill: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .bar-paid { fill: var(--good); }
.chart .bar-open { fill: var(--bad); }
.chart .hit { fill: transparent; cursor: default; }
.chart .col.dim .bar-paid, .chart .col.dim .bar-open { opacity: .35; }
.chart .col.now text { fill: var(--text); font-weight: 600; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--text-2); align-items: center; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-tip { position: fixed; z-index: 70; pointer-events: none; background: var(--card); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 10px; box-shadow: var(--shadow); padding: 8px 11px; font-size: 13px; min-width: 170px; }
.chart-tip b { display: block; margin-bottom: 4px; }
.chart-tip .r { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.chart-tip .r i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.chart-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.chart-table th, .chart-table td { padding: 6px 18px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }
.chart-table th { color: var(--text-2); font-weight: 500; font-size: 12.5px; }

.line-item { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.line-item:last-child { border-bottom: 0; }
.line-item:hover { background: var(--bg-3); }
.line-item .main-t { flex: 1; min-width: 0; }
.line-item .main-t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-item .main-t span { font-size: 12.5px; color: var(--text-2); }
.line-item .amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt.good { color: var(--good-text); }
.amt.bad { color: var(--bad-text); }

.setup { margin-bottom: 18px; }
.setup .card-body { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.step { border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; display: flex; flex-direction: column; gap: 6px; background: var(--bg-3); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.step:hover { border-color: var(--accent); }
.step .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--text-3); font-size: 13px; font-weight: 700; }
.step.done { cursor: default; opacity: .75; }
.step.done:hover { border-color: var(--line); }
.step.done .ic { background: var(--good); color: #fff; }
.step.done .ic svg { width: 14px; height: 14px; stroke-width: 2.6; }
.step b { font-size: 14px; }
.step span { font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.progress { height: 6px; border-radius: 3px; background: var(--bg-2); width: 140px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--good); border-radius: 3px; }

.banner { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; background: var(--accent-soft); }
.banner .btn { margin-left: auto; }
.banner.warn { background: var(--warn-soft); }
.banner.bad { background: var(--bad-soft); }

/* ---------- pilulky stavu ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 980px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--bg-2); color: var(--text-2); }
.pill svg { width: 12px; height: 12px; stroke-width: 2.4; }
.pill.paid { background: var(--good-soft); color: var(--good-text); }
.pill.open { background: var(--bad-soft); color: var(--bad-text); }
.pill.overdue { background: var(--bad-strong); color: #fff; }
.pill.cancelled { color: var(--text-3); text-decoration: line-through; }
.pill.draft { background: var(--accent-soft); color: var(--accent); }
.pill.muted { font-weight: 500; }

/* ---------- faktúry (zoznam + detail) ---------- */
.split-view { grid-template-columns: 400px minmax(0, 1fr); }
.split-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 30px 14px 20px; min-height: 0; }
.split-list .page-head { padding: 0 8px; margin-bottom: 14px; align-items: center; }
.split-list .page-head h1 { font-size: 28px; }
.list-tools { padding: 0 8px 10px; display: flex; flex-direction: column; gap: 10px; }
.list-tools .search { width: 100%; }
.list-tools .segmented { width: 100%; flex-wrap: nowrap; }
.list-tools .segmented button { flex: 1 1 auto; padding: 6px 4px; font-size: 12.5px; }
.inv-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 10px; padding: 11px 12px; border-radius: 12px; cursor: pointer; margin-bottom: 2px; }
.inv-item:hover { background: var(--bg-2); }
.inv-item.active { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.inv-item .t { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-item .a { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.inv-item .s { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-item .s.bad { color: var(--bad-text); font-weight: 500; }
.split-detail { overflow-y: auto; padding: 30px 40px 40px; min-height: 0; }
.empty-detail { color: var(--text-3); text-align: center; margin-top: 28vh; }
.detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.detail-head h1 { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.03em; margin: 0 0 4px; line-height: 1.15; }
.detail-head .meta { color: var(--text-2); font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.detail-amount { text-align: right; }
.detail-amount .big { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.detail-amount .small { font-size: 13px; color: var(--text-2); }
.actions-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.actions-bar .spacer { flex: 1; }
.timeline { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tl { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); background: var(--bg-2); border-radius: 980px; padding: 5px 12px 5px 8px; }
.tl i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: #fff; }
.tl i svg { width: 11px; height: 11px; stroke-width: 3; }
.tl.on { color: var(--text); }
.tl.on i { background: var(--accent); color: var(--accent-ink); }
.tl.good i { background: var(--good); }
.tl.bad i { background: var(--bad-strong); }
.doc-frame { width: 100%; border: 0; background: var(--bg-2); border-radius: 18px; height: calc(100vh - 230px); min-height: 540px; display: block; }
.menu-pop { position: relative; }
.menu-pop .pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 5px; min-width: 210px; z-index: 15; }
.menu-pop .pop button { display: flex; width: 100%; gap: 9px; align-items: center; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.menu-pop .pop button:hover { background: var(--bg-2); }
.menu-pop .pop button.danger { color: var(--bad-text); }

/* editor faktúry */
.inv-editor { display: flex; flex-direction: column; gap: 6px; overflow: auto; padding-right: 2px; }
.ed-sec { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; margin: 10px 0 4px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: 1 / -1; }
.inv-items { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv-items th { text-align: left; font-size: 12px; color: var(--text-2); font-weight: 500; padding: 4px 5px; }
.inv-items td { padding: 3px 3px; }
.inv-items input { width: 100%; border: 1px solid var(--line-2); background: var(--bg-3); border-radius: 8px; padding: 7px 9px; outline: none; }
.inv-items input:focus { border-color: var(--accent); }
.inv-items .r { text-align: right; }
.inv-items td.sum { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-2); padding-left: 8px; }
.ed-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.ed-total { text-align: right; font-size: 14px; color: var(--text-2); }
.ed-total b { color: var(--text); font-size: 19px; font-variant-numeric: tabular-nums; }
.vat-box { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.vat-box input[type=text] { width: 56px; border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 7px; background: var(--bg-3); text-align: right; }

/* ---------- odberatelia ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; color: var(--text-2); font-weight: 500; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-3); white-space: nowrap; }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover td { background: var(--bg-3); }
.table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .muted { color: var(--text-2); font-size: 13px; }
.table b { font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ---------- banka ---------- */
.bank-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; align-items: stretch; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--r-lg); padding: 30px 20px; text-align: center; cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 210px; background: var(--bg-3); }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .big-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.drop .big-ic svg { width: 26px; height: 26px; }
.drop b { font-size: 16px; }
.drop span { color: var(--text-2); font-size: 13.5px; }
.steps-list { margin: 0; padding: 0 0 0 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps-list li { counter-increment: s; position: relative; padding-left: 32px; font-size: 14px; line-height: 1.5; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.result { border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; background: var(--good-soft); font-size: 14px; }
.result b { color: var(--good-text); }
.result ul { margin: 6px 0 0; padding-left: 18px; }
.table td.r > .icon-btn { display: inline-grid; vertical-align: middle; margin-left: 4px; }
.tx-match { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.tx-match select { border: 1px solid var(--line-2); background: var(--bg-3); border-radius: 8px; padding: 5px 8px; max-width: 220px; font-size: 13px; }
.soon { font-size: 12px; font-weight: 600; background: var(--bg-2); color: var(--text-2); border-radius: 980px; padding: 2px 9px; }

/* ---------- tím ---------- */
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.member { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.member .info { flex: 1; min-width: 0; }
.member .nm { font-weight: 600; font-size: 14.5px; }
.member .sub { font-size: 12.5px; color: var(--text-2); }
.member select { border: 0; background: var(--bg-2); border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.role-pill { font-size: 12px; color: var(--text-2); background: var(--bg-2); border-radius: 980px; padding: 2px 9px; }
.feed-item { display: flex; gap: 11px; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .t { color: var(--text-3); font-size: 12px; white-space: nowrap; margin-left: auto; padding-left: 8px; }
.feed-item .s { color: var(--text-2); }
.invite-box { padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg-3); }
.invite-box .link { display: flex; gap: 8px; margin-top: 8px; }
.invite-box input { flex: 1; border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 7px 10px; font-size: 13px; min-width: 0; }
.hero-empty { text-align: center; padding: 40px 24px; max-width: 520px; margin: 3vh auto 0; }
.hero-empty h2 { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.03em; margin: 12px 0 8px; }
.hero-empty p { color: var(--text-2); margin: 0 0 22px; }
.hero-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto; }
.hero-ic svg { width: 32px; height: 32px; }
.feature-list { text-align: left; display: grid; gap: 10px; margin: 0 0 26px; }
.feature-list div { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.feature-list svg { color: var(--accent); margin-top: 2px; }

/* ---------- nastavenia ---------- */
.settings-tabs { margin-bottom: 6px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice { border: 2px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; background: var(--card); text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.choice:hover { border-color: var(--line-2); }
.choice.active { border-color: var(--accent); }
.choice b { font-size: 14px; font-weight: 500; }
.theme-thumb { height: 74px; border-radius: 9px; overflow: hidden; display: grid; grid-template-columns: 30% 1fr; border: 1px solid var(--line); }
.theme-thumb .s { background: #f2f2f7; } .theme-thumb .m { background: #fff; padding: 9px; display: flex; flex-direction: column; gap: 5px; }
.theme-thumb .m i { display: block; height: 7px; border-radius: 4px; background: #e5e5ea; } .theme-thumb .m i:first-child { width: 60%; background: var(--accent); }
.theme-thumb.dark .s { background: #1c1c1e; } .theme-thumb.dark .m { background: #000; } .theme-thumb.dark .m i { background: #2c2c2e; }
.theme-thumb.dark .m i:first-child { background: var(--accent); }
.theme-thumb.sys { background: linear-gradient(135deg, #fff 50%, #000 50%); }
.theme-thumb.sys .s { background: linear-gradient(135deg, #f2f2f7 50%, #1c1c1e 50%); } .theme-thumb.sys .m { background: transparent; }
.theme-thumb.sb-accent .s { background: var(--accent); } .theme-thumb.sb-dark .s { background: #1d1d1f; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.swatch.active::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--swatch); }
.swatch-custom { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.swatch-custom input { width: 34px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; }
.font-list { display: flex; flex-direction: column; }
.font-opt { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.font-opt:last-child { border-bottom: 0; }
.font-opt:hover { background: var(--bg-3); }
.font-opt .sample { font-size: 20px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-opt .lbl { font-size: 13px; color: var(--text-2); text-align: right; }
.font-opt .tick { width: 22px; color: var(--accent); }
.lang-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.lang-opts .choice { flex-direction: row; align-items: center; padding: 10px 14px; min-width: 150px; }
.lang-opts .flag { font-size: 20px; line-height: 1; }

.logo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.logo-slot { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.slot-preview { height: 96px; border-radius: 10px; background: #fff; border: 1px dashed #d2d2d7; display: grid; place-items: center; overflow: hidden; color: #86868b; font-size: 12px; }
.logo-slot.dark .slot-preview { background: #2b2b2e; border-color: #48484a; color: #a1a1a6; }
.slot-preview.filled { border-style: solid; }
.slot-preview img { max-width: 88%; max-height: 80px; object-fit: contain; }
.slot-preview.drop { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.slot-info b { display: block; font-size: 14px; }
.slot-info span { font-size: 12.5px; color: var(--text-2); }
.slot-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.color-field { display: flex; align-items: center; gap: 10px; flex: 1; }
.color-field input[type=color] { width: 34px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; flex: none !important; }
.style-wrap { display: grid; grid-template-columns: 1fr 236px; gap: 18px; align-items: start; }
.style-preview { position: sticky; top: 10px; display: flex; flex-direction: column; gap: 8px; }
.style-preview .frame { width: 236px; height: 334px; overflow: hidden; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.18); background: #fff; }
.style-preview iframe { width: 794px; height: 1123px; border: 0; transform: scale(.297); transform-origin: 0 0; pointer-events: none; }

.providers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.provider { border: 2px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; background: var(--card); text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.provider.active { border-color: var(--accent); }
.provider b { font-size: 14.5px; }
.provider span { font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.provider .tag { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--good-text); background: var(--good-soft); padding: 1px 8px; border-radius: 980px; }
.guide { background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 14px; }
.guide h3 { margin: 0 0 10px; font-size: 15px; }
.status-ok { color: var(--good-text); font-weight: 600; font-size: 13px; }
.status-no { color: var(--warn-text); font-weight: 600; font-size: 13px; }

/* ---------- sheet, modal, toast ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 20; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(600px, calc(100vw - 20px)); background: var(--card); border-radius: 22px;
  box-shadow: var(--shadow-lg); z-index: 21; transform: translateX(110%); transition: transform .35s cubic-bezier(.32,.72,0,1); overflow-y: auto; border: 1px solid var(--line); }
.sheet.open { transform: none; }
.sheet-head { position: sticky; top: 0; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 22px 26px 16px; border-bottom: 1px solid var(--line); z-index: 2; }
.sheet-head h2 { font-family: var(--font-display); font-size: 25px; letter-spacing: -0.028em; margin: 0 40px 4px 0; line-height: 1.15; }
.sheet-head .close, .modal .close { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--text-2); }
.sheet-head .actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.sheet-body { padding: 4px 26px 30px; }
.sec { margin-top: 22px; }
.sec h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; margin: 0 0 10px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-kpi { border-radius: 12px; padding: 10px 12px; background: var(--bg-2); }
.mini-kpi span { font-size: 12.5px; color: var(--text-2); display: block; }
.mini-kpi b { font-size: 18px; font-variant-numeric: tabular-nums; }
.mini-kpi.good { background: var(--good-soft); } .mini-kpi.good b, .mini-kpi.good span { color: var(--good-text); }
.mini-kpi.bad { background: var(--bad-soft); } .mini-kpi.bad b, .mini-kpi.bad span { color: var(--bad-text); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.32); display: none; place-items: center; z-index: 40; padding: 20px; }
.modal-backdrop.open { display: grid; }
.modal { position: relative; background: var(--card); border-radius: 20px; padding: 24px; width: min(460px, 100%); box-shadow: var(--shadow-lg); max-height: 92vh; overflow: auto; }
.modal h3 { margin: 0 44px 16px 0; font-size: 20px; letter-spacing: -0.02em; }
.modal .sub { color: var(--text-2); font-size: 14px; margin: -10px 0 16px; }
.modal.wide { width: min(1000px, 100%); display: flex; flex-direction: column; }
.modal.mid { width: min(760px, 100%); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.modal-actions .left { margin-right: auto; }
.compose-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; min-height: 0; flex: 1; }
.compose-grid iframe { width: 100%; height: 100%; min-height: 62vh; border: 1px solid var(--line); border-radius: 12px; background: #f2f2f5; }
.compose-side .hint { font-size: 13px; color: var(--text-2); margin: 4px 0 14px; line-height: 1.45; }
.compose-side .actions { display: flex; flex-direction: column; gap: 8px; }
.review { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.rv-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg-3); }
.rv-title { font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.rv-row { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.rv-row span:first-child { color: var(--text-2); }
.rv-row span:last-child { overflow-wrap: anywhere; }
.alert { border-radius: 12px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 10px; line-height: 1.45; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.alert.error { background: var(--bad-soft); color: var(--bad-text); }
.alert.warn { background: var(--warn-soft); color: var(--warn-text); }
.alert.ok { background: var(--good-soft); color: var(--good-text); }
.alert.info { background: var(--accent-soft); color: var(--text); }
.alert .btn { margin-top: 8px; }
.confirm { margin: 6px 0 4px; color: var(--text); font-size: 14px; align-items: flex-start; }
.confirm input { margin-top: 3px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 980px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 80; max-width: min(560px, calc(100vw - 32px)); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad-strong); color: #fff; }

/* ---------- prihlásenie ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative;
  background: radial-gradient(1100px 560px at 50% -10%, var(--accent-soft), transparent 60%), var(--bg); }
.auth-card { width: min(400px, 100%); text-align: center; }
.auth-logo { width: 64px; height: 64px; border-radius: 17px; margin: 0 auto 16px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.auth-logo svg { width: 32px; height: 32px; stroke-width: 2; }
.auth-title { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.035em; margin: 0; }
.auth-sub { color: var(--text-2); font-size: 16px; margin: 6px 0 24px; }
.auth form .group { text-align: left; margin-bottom: 12px; }
.auth .group .row > span:first-child { width: 72px; }
.auth-error { color: var(--bad-text); font-size: 13.5px; min-height: 20px; margin-bottom: 8px; }
.auth-tabs { margin-bottom: 16px; }
.auth-lang { position: absolute; top: 16px; right: 16px; }
.invite-banner { background: var(--accent-soft); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }

.menu-btn { display: none; }

/* ---------- responsívne ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .setup .card-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 35; transform: translateX(-110%); transition: transform .3s cubic-bezier(.32,.72,0,1); padding: 10px; }
  :root:not([data-sidebar="accent"]):not([data-sidebar="dark"]) .side-panel { background: var(--card); }
  .sidebar.open { transform: none; }
  .sidebar.open .side-panel { box-shadow: var(--shadow-lg); }
  .menu-btn { display: grid; place-items: center; position: fixed; top: 10px; left: 10px; z-index: 25; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); cursor: pointer; color: var(--text); }
  .page { padding: 20px 16px 50px; }
  .page > .page-head, .split-list .page-head { padding-left: 50px; }
  .split-view { grid-template-columns: 1fr; }
  .split-view.show-detail .split-list { display: none; }
  .split-view:not(.show-detail) .split-detail { display: none; }
  .split-detail { padding: 64px 16px 30px; }
  .back-btn { position: fixed; top: 10px; left: 60px; z-index: 24; }
  .team-grid, .bank-grid, .review, .compose-grid, .style-wrap { grid-template-columns: 1fr; }
  .logo-slots, .choice-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .search { width: 100%; }
  .toolbar .search { margin-left: 0; }
  .group .row > span:first-child { width: 120px; }
  .table .hide-sm { display: none; }
  .page-head .segmented { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .setup .step.done { display: none; }
  .setup .card-body { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) { .back-btn { display: none !important; } }
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 13px 14px; }
  .kpi .k-value { font-size: 21px; }
  .setup .card-body { grid-template-columns: 1fr 1fr; }
  .providers, .logo-slots, .choice-grid, .mini-kpis { grid-template-columns: 1fr; }
  .group .row { flex-wrap: wrap; gap: 4px 16px; }
  .group .row > span:first-child { width: 100%; font-size: 13px; color: var(--text-2); }
  .detail-amount { text-align: left; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}
@media (forced-colors: active) {
  .chart .bar-open { fill: GrayText; }
  .chart .bar-paid { fill: CanvasText; }
}

.icon-btn.danger-ic { color: var(--bad-text); }
.danger-zone { border-color: color-mix(in srgb, var(--bad-strong) 30%, transparent); }
.danger-zone .row { flex-wrap: wrap; }
