/* ═══════════════════════════════════════════════════════════
   NESTERA — liquid glass admin
   Tmavý teplý podklad, skleněné vrstvy, žlutá + oranžová.
   ═══════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --bg: #0b0b0a;
  --bg-2: #141412;
  --ink: #f4f1ea;
  --ink-2: rgba(244, 241, 234, .72);
  --muted: rgba(244, 241, 234, .56);
  --faint: rgba(244, 241, 234, .1);
  --line: rgba(255, 255, 255, .08);
  --yellow: #e9f23a;
  --yellow-2: #f6fa8a;
  --orange: #ff8a3d;
  --orange-2: #ffa76b;
  --dark: #141413;
  --good: #b9f26a;
  --bad: #ff7a59;
  --glass: rgba(255, 255, 255, .045);
  --glass-hi: rgba(255, 255, 255, .085);
  --blur: blur(28px) saturate(170%);
  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --sidebar: 252px;
  --gap: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--font);
  font-feature-settings: "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
code, pre, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; }
code { background: var(--faint); padding: .1em .4em; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--dark); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--yellow); color: var(--dark); padding: 10px 16px; border-radius: 12px; font-weight: 600; }
.skip:focus { top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.hl { color: var(--yellow); font-weight: 600; }
.good { color: var(--good); }
.bad { color: var(--bad); }

/* Material Symbols Outlined */
.ms {
  font-family: "Material Symbols Outlined";
  font-weight: 300;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  flex: none;
  user-select: none;
}

/* ─── Pozadí: teplá aurora ───────────────────────────── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background:
  radial-gradient(120% 80% at 0% 0%, #2a2810 0%, transparent 55%),
  radial-gradient(90% 70% at 100% 100%, #2a170b 0%, transparent 60%),
  linear-gradient(180deg, #11110f, #0b0b0a); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -14vw; top: -22vw; background: radial-gradient(circle, #8d8a1d, transparent 65%); animation: drift 26s var(--ease) infinite alternate; }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: -10vw; bottom: -18vw; background: radial-gradient(circle, #8a3f12, transparent 65%); opacity: .45; animation: drift 32s var(--ease) infinite alternate-reverse; }
.aurora i:nth-child(3) { width: 28vw; height: 28vw; left: 42vw; top: 30vh; background: radial-gradient(circle, #4b3a14, transparent 70%); opacity: .35; }
@keyframes drift { to { transform: translate3d(6vw, 4vh, 0) scale(1.08); } }
/* jemné zrno proti pásům v přechodech */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ─── Liquid glass ───────────────────────────────────── */
.glass {
  position: relative;
  background:
    linear-gradient(150deg, rgba(255,255,255,.085) 0%, rgba(255,255,255,.025) 38%, rgba(255,255,255,.015) 62%, rgba(255,255,255,.05) 100%);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.35),
    inset 0 0 22px rgba(255,255,255,.025),
    0 24px 60px -28px rgba(0,0,0,.75);
}
/* lom světla na hraně — světlejší vlevo nahoře, mizí dolů */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.34), rgba(255,255,255,.06) 30%, rgba(255,255,255,.02) 60%, rgba(255,255,255,.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass-pill {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.07), 0 10px 30px -18px rgba(0,0,0,.8);
}

/* ─── Sidebar ────────────────────────────────────────── */
.sidebar {
  position: fixed; z-index: 30; left: 14px; top: 14px; bottom: 14px;
  width: var(--sidebar);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column;
  padding: 22px 14px 14px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 12px 26px; }
.brand img { width: 34px; height: 34px; }
.brand__name { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav__item {
  position: relative; display: flex; align-items: center; gap: 14px;
  height: 50px; padding: 0 14px; border-radius: 16px;
  color: var(--ink-2); font-weight: 500;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.nav__item .ms { font-size: 23px; }
.nav__item:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.nav__item.is-active {
  background: radial-gradient(120% 140% at 30% 0%, var(--yellow-2), var(--yellow) 55%, #c8d02a);
  color: var(--dark);
  box-shadow: 0 10px 28px -10px rgba(233,242,58,.55), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 6px rgba(0,0,0,.12);
}
.nav__item.is-active .ms { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.nav__badge {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px;
  display: inline-grid; place-items: center;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--orange); color: var(--dark);
}
.nav__item.is-active .nav__badge { background: var(--dark); color: var(--yellow); }
.sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 20px; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px var(--line); }
.me__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.me__text strong { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me__text small { color: var(--muted); font-size: 12px; }
.me__out { margin-left: auto; }

/* ─── Shell + topbar ─────────────────────────────────── */
.shell { margin-left: calc(var(--sidebar) + 28px); padding: 22px 28px 48px 18px; min-height: 100dvh; max-width: 1720px; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title { font-size: clamp(34px, 3.6vw, 54px); font-weight: 300; letter-spacing: -.035em; margin-right: auto; line-height: 1.05; }
.topbar .search { width: min(440px, 100%); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.search kbd { font-size: 11px; color: var(--muted); padding: 3px 7px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); }
.search:focus-within { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(233,242,58,.55), 0 0 0 4px rgba(233,242,58,.12); }
.topbar__actions { display: flex; gap: 10px; align-items: center; }
.main:focus { outline: none; }

.subbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.subbar > .muted { max-width: 70ch; }
.row { display: flex; gap: 10px; align-items: center; }
.row--wrap { flex-wrap: wrap; }

/* ─── Tlačítka ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--sm { height: 38px; padding: 0 15px; font-size: 13.5px; }
.btn--sm .ms { font-size: 18px; }
.btn--block { width: 100%; }
.btn--accent {
  color: var(--dark);
  background: radial-gradient(120% 160% at 30% 0%, var(--yellow-2), var(--yellow) 55%, #c9d12b);
  box-shadow: 0 12px 30px -12px rgba(233,242,58,.6), inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 6px rgba(0,0,0,.12);
}
.btn--accent:hover { box-shadow: 0 16px 38px -12px rgba(233,242,58,.75), inset 0 1px 0 rgba(255,255,255,.65); }
.btn--glass {
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.08);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.btn--glass:hover { background: linear-gradient(160deg, rgba(255,255,255,.17), rgba(255,255,255,.06)); }
.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.btn--danger { color: var(--bad); }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.07);
  transition: background .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); }
.icon-btn:active { transform: scale(.94); }
.icon-btn--sm { width: 36px; height: 36px; }
.icon-btn--sm .ms { font-size: 18px; }
.icon-btn--xs { width: 28px; height: 28px; background: none; box-shadow: none; color: var(--muted); }
.icon-btn--xs .ms { font-size: 16px; }
.icon-btn--xs:hover { color: var(--ink); }
.icon-btn--on-light { background: rgba(20,20,19,.08); box-shadow: inset 0 0 0 1px rgba(20,20,19,.1); color: var(--dark); }
.icon-btn--on-light:hover { background: rgba(20,20,19,.15); }
.fab {
  width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center;
  background: radial-gradient(120% 140% at 30% 0%, var(--yellow-2), var(--yellow) 60%);
  color: var(--dark); box-shadow: 0 14px 30px -10px rgba(233,242,58,.6), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .25s var(--ease);
}
.fab:hover { transform: translateY(-2px) rotate(-4deg); }
.fab .ms { font-size: 26px; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--yellow); font-weight: 600; font-size: 14px; }
.link .ms { font-size: 17px; transition: transform .2s var(--ease); }
.link:hover .ms { transform: translateX(3px); }

/* segmentový přepínač */
.seg { padding: 4px; gap: 2px; height: 46px; }
.seg__item { height: 38px; display: grid; place-items: center; padding: 0 16px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.seg__item:hover { color: var(--ink); }
.seg__item.is-active { background: var(--ink); color: var(--dark); box-shadow: 0 6px 16px -8px rgba(0,0,0,.6); }
.seg--scroll { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg--scroll::-webkit-scrollbar { display: none; }

/* ─── Karty ──────────────────────────────────────────── */
.card { border-radius: var(--r-xl); padding: 24px; min-width: 0; }
.card--flush { padding: 6px; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card__head h2 { font-size: 21px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.card__sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.card__sub .ms { font-size: 16px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }

.card--yellow {
  color: var(--dark); position: relative; overflow: hidden;
  background: radial-gradient(130% 120% at 15% 0%, #f7fb9a 0%, var(--yellow) 42%, #d5dd2c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -10px 30px rgba(120,120,0,.18), 0 30px 60px -30px rgba(233,242,58,.45);
}
.card--orange {
  color: var(--dark); position: relative; overflow: hidden;
  background: radial-gradient(130% 120% at 20% 0%, #ffb27e 0%, var(--orange) 48%, #f0752a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -10px 30px rgba(120,40,0,.18), 0 30px 60px -30px rgba(255,138,61,.45);
}
.card--yellow .card__sub, .card--orange .card__sub { color: rgba(20,20,19,.6); }
.pill-dark { background: var(--dark); color: var(--orange); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 15px; }
.pill-glass { padding: 4px 12px; border-radius: 999px; background: var(--faint); font-weight: 600; font-size: 13px; }

/* ─── Dashboard bento ────────────────────────────────── */
.bento {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "hero hero hero hero hero src src src spot spot spot spot"
    "chart chart chart chart chart chart chart chart kpi kpi kpi kpi"
    "att att att att att att att fun fun fun fun fun"
    "heat heat heat heat team team team team tip tip tip tip";
}
.b-hero { grid-area: hero; } .b-src { grid-area: src; } .b-spot { grid-area: spot; }
.b-chart { grid-area: chart; } .b-kpi { grid-area: kpi; }
.b-att { grid-area: att; } .b-fun { grid-area: fun; }
.b-heat { grid-area: heat; } .b-team { grid-area: team; } .b-tip { grid-area: tip; }

/* žlutá karta se sloupci */
.b-hero { min-height: 300px; display: flex; flex-direction: column; }
.b-hero h2 { font-size: 24px; }
.queue { flex: 1; display: grid; grid-template-columns: minmax(130px, .8fr) 2fr; gap: 18px; align-items: end; }
.queue__total { align-self: start; display: flex; flex-direction: column; gap: 4px; }
.num-xl { font-size: clamp(56px, 6vw, 92px); font-weight: 300; letter-spacing: -.05em; line-height: .9; }
.queue__total span { font-size: 14px; color: rgba(20,20,19,.7); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.queue__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; height: 100%; min-height: 200px; }
.qcol { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; border-radius: 18px; transition: transform .25s var(--ease); }
.qcol:hover { transform: translateY(-3px); }
.qcol__num { display: flex; flex-direction: column; line-height: 1; }
.qcol__num b { font-size: 34px; font-weight: 400; letter-spacing: -.03em; }
.qcol__num small { font-size: 12.5px; color: rgba(20,20,19,.65); margin-top: 4px; }
.qcol__bar { display: block; height: var(--h); min-height: 28px; border-radius: 18px 18px 6px 6px; }
.qcol__bar--dots { background: radial-gradient(circle, rgba(20,20,19,.85) 1.7px, transparent 2.1px) 0 0 / 9px 9px; }
.qcol__bar--stripes { background: repeating-linear-gradient(-45deg, rgba(20,20,19,.9) 0 3px, transparent 3px 8px); }
.qcol__bar--solid { background: linear-gradient(180deg, #2b2b18 0%, #121210 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 600; font-size: 13px; }
.delta .ms { font-size: 16px; }
.card--yellow .delta { background: rgba(20,20,19,.88); color: var(--yellow); padding: 3px 9px 3px 6px; border-radius: 999px; }
.kpi .delta.up { color: var(--good); } .kpi .delta.down { color: var(--bad); }

/* oranžová karta se zdroji */
.b-src { display: flex; flex-direction: column; }
.src-wrap { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 9px; }
.legend b { margin-left: auto; font-weight: 600; }
.lg { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.lg--0 { background: var(--dark); }
.lg--1 { background: radial-gradient(circle, var(--dark) 1.1px, transparent 1.5px) 0 0 / 4px 4px; box-shadow: inset 0 0 0 1px rgba(20,20,19,.3); }
.lg--2 { background: repeating-linear-gradient(-45deg, var(--dark) 0 1.6px, transparent 1.6px 3.6px); box-shadow: inset 0 0 0 1px rgba(20,20,19,.3); }
.lg--3 { background: rgba(20,20,19,.3); } .lg--4 { background: rgba(20,20,19,.16); }
.lg--glow { background: linear-gradient(180deg, var(--yellow), rgba(201,207,46,.25)); border-radius: 4px; }
.lg--stripe { background: repeating-linear-gradient(-45deg, var(--ink) 0 1.6px, transparent 1.6px 3.6px); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.legend--inline { flex-direction: row; gap: 16px; color: var(--muted); font-size: 13px; }
.chart--sources { color: var(--dark); width: 100%; margin-top: auto; }
.muted-dark { color: rgba(20,20,19,.6); }

/* spotlight */
.spot { display: flex; flex-direction: column; overflow: hidden; }
.spot__stack { position: relative; height: 16px; margin: -4px 14px 0; }
.spot__stack i { position: absolute; left: 12px; right: 12px; top: 0; height: 30px; border-radius: 22px 22px 0 0; background: rgba(255,255,255,.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.spot__stack i:nth-child(2) { left: 24px; right: 24px; top: -7px; background: rgba(255,255,255,.025); }
.spot__card {
  position: relative; flex: 1; border-radius: 26px; padding: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02) 50%), radial-gradient(90% 80% at 100% 0%, rgba(233,242,58,.14), transparent 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.06);
  display: flex; flex-direction: column; gap: 6px;
}
.spot__top { display: flex; justify-content: space-between; align-items: flex-start; }
.spot__name { font-size: 30px; font-weight: 400; letter-spacing: -.03em; margin-top: 8px; }
.spot__listing { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot__meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; }
.spot__next { display: flex; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.spot__next .ms { color: var(--yellow); font-size: 18px; }
.spot__cta { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: flex-end; }

/* graf po dnech */
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: rgba(255,255,255,.06); stroke-dasharray: 2 5; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .axis--wk { fill: rgba(244,241,234,.38); }
.chart--daily { color: rgba(20,20,19,.72); }
.bar__track { fill: rgba(255,255,255,.035); }
.bar__done { color: rgba(20,20,19,.75); }
.bar { transition: opacity .2s; }
.chart--daily:hover .bar { opacity: .55; }
.chart--daily .bar:hover { opacity: 1; }
.bar.is-today .bar__track { fill: rgba(233,242,58,.08); stroke: rgba(233,242,58,.35); stroke-dasharray: 3 3; }

/* KPI */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.kpi { border-radius: var(--r-lg); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi__ic { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: rgba(233,242,58,.12); color: var(--yellow); margin-bottom: 8px; }
.kpi__label { color: var(--muted); font-size: 13.5px; }
.kpi__num { font-size: 40px; font-weight: 300; letter-spacing: -.04em; line-height: 1.05; }
.kpi__num small { font-size: .5em; margin-left: 3px; color: var(--ink-2); letter-spacing: 0; }
.kpi__num--sm { font-size: 34px; }
.meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c9cf2e, var(--yellow)); box-shadow: 0 0 14px rgba(233,242,58,.5); }
.meter--load i { background: linear-gradient(90deg, var(--yellow), var(--orange)); }

/* vyžaduje pozornost */
.att { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.att__row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 18px; transition: background .2s; }
.att__row:hover { background: rgba(255,255,255,.05); }
.att__main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.att__main strong { font-weight: 600; }
.att__main small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.due { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.due .ms { font-size: 15px; }
.due--late { background: rgba(255,122,89,.15); color: #ff9c80; }
.due--soon { background: rgba(233,242,58,.12); color: var(--yellow); }

/* trychtýř */
.funnel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.funnel li { position: relative; display: grid; grid-template-columns: 1fr auto 52px; align-items: center; gap: 10px; height: 44px; padding: 0 14px; }
.funnel__bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 14px; z-index: -1; }
.funnel__bar--0 { background: linear-gradient(90deg, rgba(233,242,58,.95), rgba(233,242,58,.6)); }
.funnel__bar--1 { background: linear-gradient(90deg, rgba(233,242,58,.55), rgba(233,242,58,.3)); }
.funnel__bar--2 { background: repeating-linear-gradient(-45deg, rgba(233,242,58,.45) 0 3px, rgba(233,242,58,.12) 3px 8px); }
.funnel__bar--3 { background: radial-gradient(circle, rgba(255,138,61,.75) 1.6px, transparent 2px) 0 0 / 8px 8px, rgba(255,138,61,.1); }
.funnel__bar--4 { background: linear-gradient(90deg, rgba(255,138,61,.7), rgba(255,138,61,.35)); }
.funnel li:first-child { color: var(--dark); }
.funnel li:first-child small { color: rgba(20,20,19,.6); }
.funnel b { font-size: 18px; font-weight: 600; }
.funnel__label { text-shadow: 0 1px 6px rgba(0,0,0,.6); font-weight: 500; }
.funnel li:first-child .funnel__label { text-shadow: none; }
.funnel small { color: var(--muted); text-align: right; font-size: 12.5px; }
.funnel { isolation: isolate; }

/* heatmapa */
.chart--heat circle.h0 { fill: rgba(255,255,255,.08); }
.chart--heat circle.h1 { fill: rgba(233,242,58,.35); }
.chart--heat circle.h2 { fill: rgba(233,242,58,.7); }
.chart--heat circle.h3 { fill: var(--yellow); filter: drop-shadow(0 0 6px rgba(233,242,58,.6)); }
.chart--heat circle { transition: r .3s var(--ease); }

/* mini tabulka */
.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini th, .mini td { padding: 9px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.mini thead th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.mini tbody tr:last-child > * { border-bottom: 0; }
.mini tbody th { font-weight: 500; }
.who { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.load { position: relative; display: inline-block; min-width: 28px; font-weight: 600; }
.load::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 3px; width: var(--l); max-width: 40px; border-radius: 3px; background: var(--orange); }

/* tip + agent */
.tipcol { display: flex; flex-direction: column; gap: var(--gap); }
.card--tip {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 24px;
  background: radial-gradient(100% 100% at 100% 0%, rgba(233,242,58,.22), transparent 55%), linear-gradient(160deg, #1d1c12, #121210);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(233,242,58,.12);
}
.card--tip h2 { font-size: 22px; margin-bottom: 8px; }
.card--tip p:not(.eyebrow) { color: var(--ink-2); font-size: 14.5px; margin-bottom: 12px; }
.tip-ic { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: var(--yellow); color: var(--dark); margin-bottom: 14px; flex: none; box-shadow: 0 10px 24px -10px rgba(233,242,58,.6); }
.agentcard { display: flex; align-items: center; gap: 14px; padding: 18px 20px; flex-wrap: wrap; }
.agentcard > div:nth-child(2) { flex: 1; min-width: 150px; font-size: 14px; }
.agentcard__orb { width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: conic-gradient(from 0deg, var(--yellow), var(--orange), #fff6, var(--yellow));
  filter: blur(.3px); animation: spin 8s linear infinite; box-shadow: 0 0 24px rgba(233,242,58,.35); position: relative; }
.agentcard__orb::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2b2a1a, #0e0e0d); }
@keyframes spin { to { transform: rotate(1turn); } }

/* ─── Chipy, avatary, skóre ──────────────────────────── */
.avatar {
  --c: var(--yellow);
  width: 36px; height: 36px; border-radius: 13px; flex: none;
  display: inline-grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 0%, color-mix(in srgb, var(--c) 70%, white), var(--c));
  color: var(--dark); font-weight: 700; font-size: 13px; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 14px -8px var(--c);
}
.avatar--xs { width: 24px; height: 24px; border-radius: 8px; font-size: 10px; }
.avatar--sm { width: 30px; height: 30px; border-radius: 10px; font-size: 11.5px; }
.avatar--lg { width: 56px; height: 56px; border-radius: 19px; font-size: 18px; }
.avatar--empty { background: rgba(255,255,255,.06); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.avatar--empty .ms { font-size: 15px; }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip .ms { font-size: 16px; }
.chip--new { background: rgba(233,242,58,.14); color: var(--yellow); }
.chip--contacted { background: rgba(255,255,255,.08); color: var(--ink); }
.chip--viewing { background: rgba(255,138,61,.16); color: var(--orange-2); }
.chip--offer { background: rgba(255,138,61,.28); color: #ffc49b; }
.chip--won { background: var(--yellow); color: var(--dark); }
.chip--lost { background: rgba(255,255,255,.04); color: var(--muted); }
.chip--hot { background: var(--orange); color: var(--dark); }
.chip--ret { background: rgba(185,242,106,.14); color: var(--good); }
.src { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; white-space: nowrap; }
.src i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.temp { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 4px 10px 4px 7px; border-radius: 999px; white-space: nowrap; }
.temp .ms { font-size: 16px; }
.temp--hot { background: var(--orange); color: var(--dark); }
.temp--hot .ms { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 20; }
.temp--warm { background: rgba(233,242,58,.13); color: var(--yellow); }
.temp--cold { background: rgba(255,255,255,.06); color: var(--ink-2); }

.ring { position: relative; width: var(--s); height: var(--s); display: inline-grid; place-items: center; flex: none; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 4; }
.ring__bg { stroke: rgba(255,255,255,.08); }
.ring__fg { stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.ring--hot .ring__fg { stroke: var(--orange); }
.ring--warm .ring__fg { stroke: var(--yellow); }
.ring--cold .ring__fg { stroke: rgba(244,241,234,.45); }
.ring b { position: relative; font-weight: 600; font-size: calc(var(--s) * .33); letter-spacing: -.02em; }
.ring--ai::after { content: "auto_awesome"; font-family: "Material Symbols Outlined"; position: absolute; right: -4px; top: -4px; font-size: 13px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--dark); font-variation-settings: "FILL" 1; }
.card--yellow .ring__bg, .card--orange .ring__bg { stroke: rgba(20,20,19,.15); }

.star { color: var(--muted); display: grid; place-items: center; transition: color .2s, transform .2s var(--ease); }
.star:hover { color: var(--ink); transform: scale(1.1); }
.star.is-on { color: var(--yellow); }
.star.is-on .ms { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

/* ─── Filtry + tabulka ───────────────────────────────── */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search--grow { flex: 1 1 260px; }
.select { position: relative; padding: 0 12px 0 16px; }
.select select { appearance: none; background: none; border: 0; outline: none; height: 100%; padding-right: 22px; font-size: 14px; font-weight: 500; cursor: pointer; }
.select select option { background: var(--bg-2); color: var(--ink); }
.select .ms { position: absolute; right: 12px; pointer-events: none; color: var(--muted); font-size: 18px; }
.table-wrap { overflow-x: auto; border-radius: calc(var(--r-xl) - 6px); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.table th, .table td { padding: 13px 14px; text-align: left; vertical-align: middle; }
.table thead th { color: var(--muted); font-weight: 500; font-size: 13px; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(255,255,255,.04); }
.table tbody tr + tr td { border-top: 1px solid rgba(255,255,255,.045); }
.table tbody tr.is-new td:nth-child(2) strong::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--yellow); vertical-align: middle; box-shadow: 0 0 8px var(--yellow); }
.w-star { width: 44px; padding-right: 0 !important; }
.person { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.person__av { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; flex: none; font-weight: 600; font-size: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px var(--line); }
.person strong { display: block; font-weight: 600; }
.person small { color: var(--muted); font-size: 13px; }
.person:hover strong { color: var(--yellow); }
.ellipsis { max-width: 280px; }
.ellipsis span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.score-cell { display: inline-flex; align-items: center; gap: 8px; }
.late { color: #ff9c80; }
.late .ms { font-size: 15px; vertical-align: -3px; margin-right: 3px; }

/* ─── Detail leadu ───────────────────────────────────── */
.lead-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.back:hover { color: var(--ink); }
.lead-head__chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.lead-head__actions { display: flex; gap: 10px; }

.stepper { display: flex; align-items: stretch; gap: 6px; padding: 8px; border-radius: 26px; margin-bottom: var(--gap); overflow-x: auto; scrollbar-width: none; }
.step { flex: 1; min-width: 120px; }
.step button, button.step { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 19px; transition: background .2s; }
.step button:hover, button.step:hover { background: rgba(255,255,255,.06); }
.step__dot { width: 36px; height: 36px; border-radius: 13px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.06); color: var(--muted); }
.step__dot .ms { font-size: 19px; }
.step__label { font-weight: 500; font-size: 14px; color: var(--muted); white-space: nowrap; }
.step--done .step__dot { background: rgba(233,242,58,.16); color: var(--yellow); }
.step--done .step__label { color: var(--ink-2); }
.step--now button { background: radial-gradient(120% 160% at 30% 0%, var(--yellow-2), var(--yellow) 60%); box-shadow: 0 10px 26px -12px rgba(233,242,58,.6), inset 0 1px 0 rgba(255,255,255,.6); }
.step--now .step__dot { background: var(--dark); color: var(--yellow); }
.step--now .step__label { color: var(--dark); font-weight: 600; }
button.step--lost { flex: 0 0 auto; min-width: 0; width: auto; }
.step--lost.is-lost { background: rgba(255,122,89,.14); }
.step--lost.is-lost .step__dot { background: var(--bad); color: var(--dark); }

.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--gap); align-items: start; }
.lead-main, .lead-side { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.lead-side { position: sticky; top: 18px; }

.bubble { margin: 0; padding: 20px 22px; border-radius: 6px 24px 24px 24px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px var(--line); font-size: 16.5px; line-height: 1.6; }
.bubble footer { margin-top: 12px; color: var(--muted); font-size: 13px; }
.raw { margin: 14px 0 0; padding: 16px; border-radius: 16px; background: rgba(0,0,0,.35); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; font-size: 12.5px; }

.ai-ic { color: var(--yellow); font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.analysis { background:
  radial-gradient(80% 90% at 0% 0%, rgba(233,242,58,.10), transparent 60%),
  linear-gradient(150deg, rgba(255,255,255,.085) 0%, rgba(255,255,255,.025) 38%, rgba(255,255,255,.015) 62%, rgba(255,255,255,.05) 100%); }
.analysis__grid { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.analysis__score { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.facts dt { color: var(--muted); font-size: 12.5px; }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.analysis__summary { margin-top: 18px; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.signals { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.signals li { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); }
.nextstep { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: rgba(233,242,58,.09); box-shadow: inset 0 0 0 1px rgba(233,242,58,.18); }
.nextstep > .ms { color: var(--yellow); }
.nextstep .eyebrow { color: var(--yellow); margin-bottom: 2px; }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab .ms { font-size: 16px; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-color: var(--yellow); }
.tabs--pills { border: 0; gap: 6px; }
.tabs--pills .tab { border: 0; margin: 0; border-radius: 999px; padding: 8px 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); }
.tabs--pills .tab.is-active { background: var(--ink); color: var(--dark); box-shadow: none; }
.tabs--pills .tab .ms { color: inherit; }
.composer { display: flex; flex-direction: column; gap: 12px; }
.composer__bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.logbox { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 18px; }
.logbox textarea { background: none; border: 0; outline: none; resize: none; padding: 4px 6px; font-size: 15px; min-height: 48px; }
.logbox textarea::placeholder { color: var(--muted); }
.logbox__types, .reasons { display: flex; gap: 6px; flex-wrap: wrap; }
.ltype input { position: absolute; opacity: 0; pointer-events: none; }
.ltype span { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px 0 9px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background .2s, color .2s; }
.ltype span .ms { font-size: 16px; }
.ltype input:checked + span { background: var(--ink); color: var(--dark); box-shadow: none; }
.ltype input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.reasons .ltype span { padding: 0 14px; }
.logbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--line), transparent); }
.tl { position: relative; display: flex; gap: 14px; padding: 8px 0; }
.tl__ic { position: relative; width: 35px; height: 35px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.tl__ic .ms { font-size: 17px; }
.tl--agent .tl__ic { color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(233,242,58,.3); }
.tl--call .tl__ic, .tl--email .tl__ic, .tl--sms .tl__ic, .tl--meet .tl__ic { background: var(--yellow); color: var(--dark); box-shadow: none; }
.tl--status .tl__ic { color: var(--orange); }
.tl__body { min-width: 0; padding-top: 6px; }
.tl__head { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: 14px; }
.tl__head span { color: var(--muted); font-size: 12.5px; }
.tl__text { margin-top: 4px; color: var(--ink-2); font-size: 14px; white-space: pre-line; }

.contact__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.contact__top h2 { font-size: 21px; }
.contact__av { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; font-weight: 600; font-size: 19px; flex: none;
  background: radial-gradient(120% 120% at 30% 0%, var(--yellow-2), var(--yellow)); color: var(--dark); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 12px 26px -12px rgba(233,242,58,.6); }
.contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.contact__list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; min-width: 0; }
.contact__list li > .ms { color: var(--muted); font-size: 18px; }
.contact__list a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact__list a:hover { color: var(--yellow); }
.contact__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 18px; font-size: 12.5px; font-weight: 500; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, transform .2s var(--ease); }
.qa:hover { background: rgba(233,242,58,.12); transform: translateY(-2px); }
.qa .ms { font-size: 22px; color: var(--yellow); }

.brokers { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.bpick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 4px 10px; border-radius: 18px; cursor: pointer; transition: background .2s; }
.bpick:hover { background: rgba(255,255,255,.05); }
.bpick input { position: absolute; opacity: 0; }
.bpick__name { font-size: 12.5px; font-weight: 500; }
.bpick small { font-size: 11px; color: var(--muted); }
.bpick:has(input:checked) { background: rgba(233,242,58,.1); box-shadow: inset 0 0 0 1.5px var(--yellow); }
.bpick:has(input:focus-visible) { outline: 2px solid var(--yellow); outline-offset: 2px; }

.rel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rel a { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; }
.rel a:hover { background: rgba(255,255,255,.05); }
.rel small { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.card--tip-sm { padding: 20px; }
.tiplist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tiplist li { display: flex; gap: 12px; }
.tiplist li > .ms { color: var(--yellow); margin-top: 2px; }
.tiplist strong { font-weight: 600; font-size: 14.5px; }
.tiplist p { color: var(--ink-2); font-size: 13.5px; margin-top: 2px !important; }

/* ─── Formuláře ──────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 12.5px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.field__label .ms { font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 0; outline: none;
  background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px;
  transition: box-shadow .2s;
}
.field textarea { resize: vertical; line-height: 1.55; }
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 1.5px rgba(233,242,58,.7), 0 0 0 4px rgba(233,242,58,.1); }
.field input[type=color] { padding: 4px; height: 46px; cursor: pointer; }
.field input[type=datetime-local] { color-scheme: dark; }
.field--inline { flex-direction: row; align-items: center; gap: 10px; }
.field--inline input, .field--inline select { width: auto; padding: 8px 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--yellow); }
.drop { flex: 1; position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; cursor: pointer; border: 1.5px dashed rgba(255,255,255,.14); transition: border-color .2s, background .2s; }
.drop:hover, .drop.is-over { border-color: var(--yellow); background: rgba(233,242,58,.06); }
.drop .ms { color: var(--yellow); font-size: 26px; }
.drop span { display: flex; flex-direction: column; font-size: 14px; }
.drop small { color: var(--muted); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ─── Dialogy ────────────────────────────────────────── */
.dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto;
  padding: 26px; border: 0; border-radius: var(--r-xl); color: var(--ink);
  background: linear-gradient(160deg, rgba(40,39,30,.82), rgba(20,20,18,.9));
}
.dialog--wide { width: min(680px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(5,5,4,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dialog[open] { animation: pop .35s var(--ease); }
.dialog[open]::backdrop { animation: fade .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.dialog__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.dialog__head .tip-ic { margin: 0; }
.dialog__head h2 { font-size: 22px; flex: 1; }
.dialog__lead { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.dialog form, .tabpanel { display: flex; flex-direction: column; gap: 14px; }
.dialog__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; align-items: center; }

/* ─── Toast ──────────────────────────────────────────── */
.toast { position: fixed; z-index: 60; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 18px; font-weight: 500; font-size: 14.5px;
  background: rgba(28,28,24,.85); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -16px rgba(0,0,0,.8); animation: toast 4.5s var(--ease) forwards; }
.toast--ok .ms { color: var(--good); } .toast--warn .ms { color: var(--yellow); } .toast--err .ms { color: var(--bad); }
.toast--static { position: static; animation: none; margin: 12px 0 0; }
@keyframes toast { 0% { opacity: 0; transform: translateY(20px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); visibility: hidden; } }

/* ─── Empty ──────────────────────────────────────────── */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 28px 12px; color: var(--muted); flex: 1; }
.empty > .ms { font-size: 34px; color: var(--ink-2); }
.empty--lg { padding: 70px 20px; gap: 12px; }
.empty--lg h2 { color: var(--ink); font-size: 24px; }

/* ─── Pipeline ───────────────────────────────────────── */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; scroll-snap-type: x proximity; }
.col { border-radius: 28px; padding: 14px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); scroll-snap-align: start; transition: background .2s, box-shadow .2s; }
.col.is-over { background: rgba(233,242,58,.06); box-shadow: inset 0 0 0 1.5px rgba(233,242,58,.5); }
.col__head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; }
.col__head h2 { font-size: 16px; font-weight: 600; flex: 1; }
.col__ic { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.col__ic .ms { font-size: 18px; }
.col--new .col__ic { background: var(--yellow); color: var(--dark); }
.col--viewing .col__ic, .col--offer .col__ic { background: var(--orange); color: var(--dark); }
.col--won .col__ic { background: var(--good); color: var(--dark); }
.col__count { font-weight: 600; font-size: 13px; padding: 2px 10px; border-radius: 99px; background: var(--faint); }
.col__sum { font-size: 12.5px; color: var(--muted); padding: 0 6px 8px; }
.col__list { list-style: none; margin: 0; padding: 2px; max-height: calc(100dvh - 250px); overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 10px; min-height: 40px; }
.col__empty { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 0; }
.kcard { border-radius: 22px; padding: 14px; cursor: grab; transition: transform .2s var(--ease), opacity .2s; }
.kcard:hover { transform: translateY(-2px); }
.kcard.is-dragging { opacity: .4; transform: rotate(2deg); }
.kcard__link { display: flex; flex-direction: column; gap: 6px; }
.kcard__top { display: flex; justify-content: space-between; align-items: center; }
.kcard__name { font-weight: 600; font-size: 15.5px; margin-top: 4px; }
.kcard__listing { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kcard__foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; }
.kcard__foot .src { font-size: 12px; }
.kcard__when { color: var(--muted); margin-left: auto; }
.kcard__move { margin-top: 10px; width: 100%; padding: 6px 10px; border-radius: 10px; border: 0; background: rgba(0,0,0,.3); font-size: 13px; color: var(--ink-2); }
.js .kcard__move { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; padding: 0; }
.js .kcard__move:focus { position: static; width: 100%; height: auto; opacity: 1; margin-top: 10px; padding: 6px 10px; }
@media (hover: none) { .js .kcard__move { position: static; width: 100%; height: auto; opacity: 1; margin-top: 10px; padding: 6px 10px; } }
.kcard { position: relative; }

/* ─── Inzeráty, tým ──────────────────────────────────── */
.listing-grid, .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.lcard, .tcard { border-radius: var(--r-xl); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.is-off { opacity: .5; }
.lcard__head, .tcard__head { display: flex; align-items: center; gap: 10px; }
.lcard__head .icon-btn, .tcard__head .icon-btn { margin-left: auto; }
.lcard__ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,138,61,.15); color: var(--orange); }
.lcard__ref { color: var(--muted); font-size: 13px; }
.lcard__title { font-size: 20px; font-weight: 500; line-height: 1.25; }
.lcard__stats, .tcard__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 0; padding: 12px; border-radius: 18px; background: rgba(0,0,0,.2); }
.tcard__stats { grid-template-columns: repeat(4, 1fr); }
.lcard__stats dt, .tcard__stats dt { color: var(--muted); font-size: 12px; }
.lcard__stats dd, .tcard__stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 500; }
.lcard__foot, .tcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; font-size: 14px; }
.tcard__head h2 { font-size: 19px; }
.tcard__spark { display: flex; align-items: center; gap: 12px; }
.spark { width: 120px; height: 34px; }
.spark polyline { fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(233,242,58,.5)); }

/* ─── Agent ──────────────────────────────────────────── */
.agent-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-bottom: var(--gap); overflow: hidden; padding: 30px; }
.agent-hero h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; letter-spacing: -.02em; margin-bottom: 10px; max-width: 26ch; }
.agent-hero__text > .muted { max-width: 70ch; margin-bottom: 18px; }
.agent-hero__orb { position: relative; width: 150px; height: 150px; }
.agent-hero__orb i { position: absolute; inset: 0; border-radius: 50%; }
.agent-hero__orb i:nth-child(1) { background: conic-gradient(from 90deg, var(--yellow), var(--orange), #2b2a1a, var(--yellow)); animation: spin 10s linear infinite; filter: blur(2px); }
.agent-hero__orb i:nth-child(2) { inset: 10px; background: radial-gradient(circle at 35% 30%, #34331f, #0d0d0c 70%); box-shadow: inset 0 2px 10px rgba(255,255,255,.12); }
.agent-hero__orb i:nth-child(3) { inset: 40px; background: radial-gradient(circle, rgba(233,242,58,.9), rgba(233,242,58,0) 70%); animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.75); opacity: .6; } }
.agent-hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.agent-hero__stats div { padding: 14px 18px; border-radius: 20px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px var(--line); min-width: 130px; }
.agent-hero__stats dt { color: var(--muted); font-size: 12.5px; }
.agent-hero__stats dd { margin: 2px 0 0; font-size: 30px; font-weight: 300; letter-spacing: -.03em; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: var(--gap); }
.jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.job { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(0,0,0,.18); }
.job__ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(233,242,58,.12); color: var(--yellow); flex: none; }
.job--cancelled .job__ic, .job--error .job__ic { background: rgba(255,122,89,.12); color: var(--bad); }
.job__main { flex: 1; min-width: 0; }
.job__main a { color: var(--yellow); }
.job__main p { color: var(--ink-2); font-size: 14px; margin: 3px 0; }
.job__result { white-space: pre-line; }
.howto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.howto li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.howto li > span { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--yellow); color: var(--dark); font-weight: 700; }
.howto strong { color: var(--ink); }
.howto--plain li > span { background: rgba(233,242,58,.12); color: var(--yellow); }

/* ─── Playbook ───────────────────────────────────────── */
.bignums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: end; margin: 6px 0 34px; }
.bignum { display: flex; flex-direction: column; gap: 4px; }
.bignum--1 { margin-bottom: 40px; } .bignum--2 { margin-bottom: 80px; }
.bignum__v { font-size: clamp(64px, 8vw, 128px); font-weight: 300; letter-spacing: -.06em; line-height: .9; }
.bignum__v small { font-size: .38em; letter-spacing: 0; margin-left: 4px; }
.bignum__l { font-size: clamp(18px, 1.8vw, 26px); font-weight: 300; color: var(--ink-2); }
.bignum__shape { display: block; height: calc(var(--h) * 2.2); min-height: 60px; max-height: 220px; margin-top: 18px; border-radius: 34px; }
.bignum__shape--dots { background: radial-gradient(circle, rgba(244,241,234,.5) 3px, transparent 3.6px) 0 0 / 16px 16px; -webkit-mask: radial-gradient(100% 100% at 50% 0, #000 40%, transparent); mask: radial-gradient(100% 100% at 50% 0, #000 40%, transparent); }
.bignum__shape--stripes { background: repeating-linear-gradient(-45deg, rgba(244,241,234,.22) 0 9px, transparent 9px 22px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.bignum__shape--glow { background: radial-gradient(70% 60% at 50% 0%, #f3f75a, #b9bf2a 45%, rgba(185,191,42,.1) 90%); box-shadow: 0 -10px 60px -20px rgba(233,242,58,.5); }
.grid-2col--wide { margin-bottom: 30px; }
.script { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.script li { counter-increment: s; position: relative; padding-left: 44px; }
.script li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--yellow); color: var(--dark); font-weight: 700; font-size: 14px; }
.script b { font-weight: 600; }
.script p { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }
.script i { color: var(--yellow); font-style: normal; }
.cadence { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.cadence li { display: flex; gap: 16px; align-items: flex-start; }
.cadence__d { width: 52px; height: 52px; border-radius: 18px; flex: none; display: grid; place-items: center; font-size: 22px; font-weight: 300; background: rgba(255,138,61,.14); color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255,138,61,.25); }
.cadence li:first-child .cadence__d { background: var(--orange); color: var(--dark); }
.cadence p { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }
.section-title { font-size: 28px; font-weight: 300; letter-spacing: -.02em; margin: 26px 0 14px; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.tipcard { border-radius: var(--r-lg); padding: 22px; }
.tipcard h3 { font-size: 18px; margin-bottom: 6px; }
.tipcard p { color: var(--ink-2); font-size: 14.5px; }

/* ─── Přihlášení ─────────────────────────────────────── */
.login-page { display: grid; place-items: center; padding: 16px; overflow: hidden; }
.login-word { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -54%); font-size: clamp(90px, 22vw, 360px); font-weight: 300; letter-spacing: -.06em; color: rgba(244,241,234,.06); white-space: nowrap; pointer-events: none; z-index: -1; }
.login { width: min(420px, 100%); padding: 36px; border-radius: 36px; }
.login__logo { width: 48px; height: 48px; margin-bottom: 26px; }
.login h1 { font-size: 34px; font-weight: 300; letter-spacing: -.03em; }
.login > .muted { margin: 6px 0 22px; }
.login .stack { margin-top: 18px; gap: 14px; }

/* ─── Responzivita ───────────────────────────────────── */
@media (max-width: 1500px) {
  .bento { grid-template-areas:
    "hero hero hero hero hero hero hero src src src src src"
    "spot spot spot spot kpi kpi kpi kpi kpi kpi kpi kpi"
    "chart chart chart chart chart chart chart chart chart chart chart chart"
    "att att att att att att att fun fun fun fun fun"
    "heat heat heat heat heat heat team team team team team team"
    "tip tip tip tip tip tip tip tip tip tip tip tip"; }
  .tipcol { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1240px) {
  :root { --sidebar: 84px; }
  .sidebar { padding: 20px 12px 12px; align-items: center; }
  .brand { padding: 4px 0 24px; }
  .brand__name, .nav__label, .me__text { display: none; }
  .nav__item { width: 56px; height: 52px; justify-content: center; padding: 0; }
  .nav__badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 5px; }
  .me { flex-direction: column; padding: 8px; }
  .me__out { margin: 0; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-side { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
  .agent-hero { grid-template-columns: auto 1fr; }
  .agent-hero__stats { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "hero" "src" "spot" "kpi" "chart" "att" "fun" "heat" "team" "tip"; }
  .tipcol { grid-template-columns: 1fr; }
  .grid-2col { grid-template-columns: 1fr; }
  .bignums { grid-template-columns: 1fr; gap: 26px; }
  .bignum--1, .bignum--2 { margin: 0; }
  .bignum__shape { max-height: 80px; }
  .agent-hero { grid-template-columns: 1fr; }
  .agent-hero__orb { width: 90px; height: 90px; }
  .agent-hero__orb i:nth-child(3) { inset: 24px; }
  .agent-hero__stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --gap: 14px; }
  .sidebar { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; height: 68px; flex-direction: row; padding: 8px; border-radius: 26px; }
  .brand, .sidebar__foot { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-between; gap: 2px; }
  .nav__item { flex: 1; width: auto; height: 52px; border-radius: 18px; }
  .nav__item:nth-child(n+6) { display: none; }
  .shell { margin: 0; padding: 16px 16px 100px; }
  .topbar { gap: 10px; }
  .page-title { width: 100%; font-size: 36px; }
  .topbar .search { flex: 1; width: auto; }
  .search kbd { display: none; }
  .topbar__actions .btn span:not(.ms) { display: none; }
  .topbar__actions .btn { width: 46px; padding: 0; }
  .card { padding: 18px; border-radius: 26px; }
  .queue { grid-template-columns: 1fr; }
  .queue__cols { min-height: 170px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi__num { font-size: 32px; }
  .grid2 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .analysis__grid { grid-template-columns: 1fr; justify-items: start; }
  .lead-side { grid-template-columns: 1fr; }
  .stepper .step__label { display: none; }
  .step { min-width: 0; }
  .step button, button.step { justify-content: center; padding: 8px; }
  .toast { left: 16px; right: 16px; bottom: 92px; }
  .table th:nth-child(3), .table td:nth-child(3), .table th:nth-child(4), .table td:nth-child(4) { display: none; }
  .board { grid-auto-columns: 82vw; }
  .tcard__stats { grid-template-columns: 1fr 1fr; }
  .att__row { flex-wrap: wrap; row-gap: 6px; }
  .att__row .due { order: 3; margin-left: 54px; }
  .att__row .avatar { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-pill, .dialog { background: #1b1b18; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .nav__item.is-active, .btn--accent, .step--now button { outline: 2px solid CanvasText; }
}
