/* ELIAN CRM — same palette and type as ahojeli.sk */
:root {
  --bg: #050912;
  --bg-2: #08101f;
  --panel: rgba(12, 21, 39, .62);
  --panel-solid: #0b1426;
  --line: rgba(126, 206, 255, .12);
  --line-2: rgba(126, 206, 255, .22);
  --ink: #f4f8fd;
  --ink-2: #c3d0e0;
  --ink-3: #8a9db6;
  --ink-4: #5d6f88;
  --cyan-300: #7fdcff;
  --cyan-400: #3cc4ff;
  --cyan-500: #15a7ff;
  --blue-600: #1a7ff2;
  --accent-grad: linear-gradient(100deg, #7fdcff 0%, #2bb8ff 42%, #1a7ff2 100%);
  --warm: 255, 158, 94;
  --warm-ink: #07101f;
  --warm-grad: linear-gradient(135deg, #ffc08a 0%, #ff9e5e 52%, #f5854a 100%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Montserrat", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --side: 232px;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(40, 160, 255, .13), transparent 70%),
    radial-gradient(700px 500px at 100% 0%, rgba(26, 127, 242, .07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink); font-family: var(--font); font-size: 14.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--cyan-300); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mono { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.accent { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- buttons & fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 600; letter-spacing: .005em;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary {
  color: var(--warm-ink); background: var(--warm-grad);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 26px -10px rgba(var(--warm), .7), 0 0 0 1px rgba(255, 196, 150, .3);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 14px 34px -12px rgba(var(--warm), .85), 0 0 0 1px rgba(255, 196, 150, .5); }
.btn--outline { color: #fff; border: 1.5px solid rgba(60, 196, 255, .55); background: rgba(21, 167, 255, .06); }
.btn--outline:hover { border-color: var(--cyan-300); background: rgba(21, 167, 255, .14); }
.btn--ghost { color: var(--ink-2); height: 34px; padding: 0 12px; }
.btn--ghost:hover { color: #fff; background: rgba(126, 206, 255, .07); }
.btn--danger { color: #ffb1a1; height: 34px; padding: 0 12px; }
.btn--danger:hover { background: rgba(255, 120, 100, .1); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 14px;
  background: rgba(5, 9, 18, .55); border: 1px solid var(--line-2); border-radius: 10px;
  color: #fff; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.textarea { height: auto; min-height: 92px; padding: 11px 14px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%238a9db6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.select option { background: var(--panel-solid); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(126, 206, 255, .34); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--cyan-400); box-shadow: 0 0 0 3px rgba(60, 196, 255, .14); }
input[type="date"].input { color-scheme: dark; }
.label { display: block; margin-bottom: 7px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-err { margin: 0; color: rgb(var(--warm)); font-size: 13.5px; }
.form-err:empty { display: none; }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.login__eli { position: absolute; width: min(560px, 60vw); right: 4vw; bottom: 4vh; opacity: .9; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); animation: float 7s ease-in-out infinite; pointer-events: none; }
.login__glow { position: absolute; width: 640px; height: 640px; right: 2vw; bottom: -6vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 196, 255, .2), transparent 70%); pointer-events: none; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.login__card {
  position: relative; z-index: 1; width: min(400px, 100%); padding: 36px 32px 32px;
  background: rgba(8, 15, 29, .78); border: 1px solid var(--line-2); border-radius: 22px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.login__card .logo { width: 104px; height: 21px; color: #fff; margin-bottom: 26px; }
.login__card h1 { margin: 6px 0 24px; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; line-height: 1.05; }
.login__card form { display: grid; gap: 14px; }
.login__card .btn { height: 46px; margin-top: 6px; }
@media (max-width: 760px) { .login__eli { width: 300px; right: -40px; bottom: auto; top: 2vh; opacity: .35; } }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 26px 16px 18px; border-right: 1px solid var(--line); background: rgba(5, 9, 18, .55);
}
.side .logo { width: 96px; height: 20px; color: #fff; margin: 0 10px 6px; }
.side__tag { margin: 0 10px 30px; }
.nav { display: grid; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px;
  border-radius: 10px; color: var(--ink-3); font-weight: 500; transition: color .2s, background-color .2s;
}
.nav a b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-4); width: 18px; }
.nav a:hover { color: #fff; background: rgba(126, 206, 255, .05); }
.nav a.is-on { color: #fff; background: rgba(60, 196, 255, .08); }
.nav a.is-on::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--cyan-400); box-shadow: 0 0 12px var(--cyan-400); }
.nav a.is-on b { color: var(--cyan-300); }
.nav a .count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.side__foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.avatar {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 600; color: var(--cyan-300); border: 1px solid var(--line-2); background: rgba(60, 196, 255, .07);
}
.side__me { min-width: 0; line-height: 1.25; }
.side__me b { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__me button { font-size: 12.5px; color: var(--ink-3); }
.side__me button:hover { color: #fff; }

.main { min-width: 0; padding: 30px clamp(18px, 3vw, 44px) 60px; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.top h1 { margin: 8px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -.025em; line-height: 1; }
.top__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { width: 260px; padding-left: 38px; border-radius: 999px; }

/* ---------------------------------------------------------------- dashboard */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.kpi { padding: 22px 24px 24px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi__val { margin-top: 12px; font-size: clamp(38px, 3.6vw, 56px); font-weight: 300; letter-spacing: -.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.kpi__val small { font-size: .42em; font-weight: 400; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.kpi__sub { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.kpi__sub .up { color: var(--cyan-300); }

.dash { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 20px; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel__head h2 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; }
.panel + .panel { margin-top: 22px; }

.chart { position: relative; height: 170px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .bar { fill: rgba(60, 196, 255, .55); transition: fill .2s; }
.chart .bar.is-today { fill: var(--cyan-300); }
.chart .bar:hover { fill: var(--cyan-300); }
.chart .base { stroke: var(--line-2); }
.chart .tick { font-family: var(--mono); font-size: 10px; fill: var(--ink-4); letter-spacing: .06em; }
.chart__tip { position: absolute; top: -6px; padding: 5px 9px; border-radius: 8px; background: var(--panel-solid); border: 1px solid var(--line-2); font-size: 12px; white-space: nowrap; pointer-events: none; transform: translate(-50%, -100%); }

.funnel { display: grid; gap: 12px; }
.funnel__row { display: grid; grid-template-columns: 128px minmax(0, 1fr) 34px; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.funnel__row:hover { color: #fff; }
.funnel__track { height: 6px; border-radius: 6px; background: rgba(126, 206, 255, .07); overflow: hidden; }
.funnel__fill { height: 100%; border-radius: 6px; background: var(--accent-grad); transform-origin: left; animation: grow .9s var(--ease-out) both; }
.funnel__row.is-lost .funnel__fill { background: var(--ink-4); }
.funnel__row b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } }

.list { display: grid; }
.list__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 13px 0; border-top: 1px solid var(--line); cursor: pointer; }
.list__item:first-child { border-top: 0; padding-top: 0; }
.list__item:hover .list__name { color: var(--cyan-300); }
.list__name { font-weight: 600; transition: color .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__meta { grid-column: 1; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__side { grid-row: 1 / 3; grid-column: 2; align-self: center; text-align: right; font-size: 12.5px; color: var(--ink-3); }
.list__side.is-due { color: rgb(var(--warm)); }
.empty { padding: 26px 0 8px; color: var(--ink-3); font-size: 14px; }

/* ---------------------------------------------------------------- status */
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 8px rgba(60, 196, 255, .7); }
.status--novy i { background: rgb(var(--warm)); box-shadow: 0 0 8px rgba(var(--warm), .7); }
.status--instalacia { color: #fff; }
.status--instalacia i { background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .6); }
.status--strateny { color: var(--ink-4); }
.status--strateny i { background: var(--ink-4); box-shadow: none; }

/* ---------------------------------------------------------------- tabs + table */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab { height: 32px; padding: 0 12px; border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transition: color .2s, background-color .2s; }
.tab:hover { color: #fff; }
.tab.is-on { color: #fff; background: rgba(60, 196, 255, .1); box-shadow: inset 0 0 0 1px rgba(60, 196, 255, .35); }
.tab span { margin-left: 6px; color: var(--ink-4); }
.tab.is-on span { color: var(--cyan-300); }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 0 14px 12px 0; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; }
.table td { padding: 15px 14px 15px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { cursor: pointer; transition: background-color .15s; }
.table tbody tr:hover { background: rgba(126, 206, 255, .035); }
.table tbody tr:hover .t-name { color: var(--cyan-300); }
.t-name { font-weight: 600; transition: color .2s; }
.t-sub { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.t-due { color: rgb(var(--warm)); }

/* ---------------------------------------------------------------- pipeline */
.board { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)) minmax(124px, .5fr); gap: 12px; overflow-x: auto; padding-bottom: 14px; min-height: 60vh; }
.col[data-s="strateny"] { background: transparent; border-style: dashed; }
.col[data-s="strateny"] .card { padding: 10px 12px; background: transparent; }
.col[data-s="strateny"] .card__name { margin: 0; font-weight: 500; color: var(--ink-3); font-size: 13.5px; }
.col[data-s="strateny"] .card__meta, .col[data-s="strateny"] .card__foot { display: none; }
.col { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r); background: rgba(8, 15, 29, .45); border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.col.is-over { border-color: rgba(60, 196, 255, .55); background: rgba(21, 167, 255, .06); }
.col__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.col__head b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-3); }
.col__sum { padding: 8px 14px 0; font-size: 12px; color: var(--ink-4); }
.col__cards { display: grid; align-content: start; gap: 10px; padding: 12px; flex: 1; }
.card {
  padding: 14px 14px 12px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line);
  cursor: grab; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: 0 12px 28px -18px rgba(0, 0, 0, .8); }
.card.is-drag { opacity: .4; }
.card__name { font-weight: 600; margin-bottom: 4px; }
.card__meta { font-size: 12.5px; color: var(--ink-3); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.card__foot .avatar { width: 24px; height: 24px; font-size: 10px; }
.card__foot .is-due { color: rgb(var(--warm)); }

/* ---------------------------------------------------------------- drawer */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(2, 5, 12, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); overflow-y: auto;
  background: linear-gradient(180deg, #0a1325, #070d1a); border-left: 1px solid var(--line-2);
  box-shadow: -40px 0 80px -30px rgba(0, 0, 0, .8); animation: slide .45s var(--ease-out) both;
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer__in { padding: 26px 30px 40px; }
.drawer__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.025em; line-height: 1.05; }
.drawer__sub { margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.drawer__actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 26px; }
.sec { padding: 22px 0; border-top: 1px solid var(--line); }
.sec__title { margin: 0 0 14px; display: flex; justify-content: space-between; align-items: baseline; }
.saved { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-300); opacity: 0; transition: opacity .3s; }
.saved.is-on { opacity: 1; }

.stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 18px; }
.step { position: relative; padding-top: 18px; font-size: 12.5px; color: var(--ink-4); cursor: pointer; text-align: left; }
.step::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.step::after { content: ""; position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink-4); }
.step.is-done { color: var(--ink-2); }
.step.is-done::before { background: var(--cyan-400); }
.step.is-done::after { background: var(--cyan-400); border-color: var(--cyan-400); }
.step.is-now { color: #fff; font-weight: 600; }
.step.is-now::after { background: var(--cyan-300); border-color: var(--cyan-300); box-shadow: 0 0 0 4px rgba(60, 196, 255, .18), 0 0 12px var(--cyan-400); }
.step:hover { color: #fff; }
.stepper.is-lost .step { color: var(--ink-4); }
.stepper.is-lost .step::before, .stepper.is-lost .step::after { background: var(--bg); border-color: var(--ink-4); box-shadow: none; }
.stage-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kv .wide { grid-column: 1 / -1; }

.cfg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: baseline; }
.cfg__big { grid-row: 1 / 3; font-size: 46px; font-weight: 300; line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.cfg__home { font-weight: 600; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 16px; }
.feats li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.feats li b { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.feats { list-style: none; padding: 0; margin-bottom: 0; }

.message { margin: 0; white-space: pre-wrap; color: var(--ink-2); line-height: 1.65; }

.timeline { list-style: none; margin: 18px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 8px; bottom: -8px; width: 1px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.timeline li.is-note::after { background: var(--cyan-400); box-shadow: 0 0 8px rgba(60, 196, 255, .6); }
.timeline .mono { font-size: 10.5px; }
.timeline p { margin: 4px 0 0; white-space: pre-wrap; color: var(--ink-2); }
.timeline li.is-note p { color: #fff; }
.note-form { display: grid; gap: 10px; justify-items: end; }

/* ---------------------------------------------------------------- modal */
.modal {
  position: fixed; z-index: 41; left: 50%; top: 50%; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto;
  transform: translate(-50%, -50%); padding: 28px; border-radius: 20px;
  background: linear-gradient(180deg, #0b1528, #080f1d); border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85); animation: pop .4s var(--ease-out) both;
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } }
.modal h2 { margin: 0 0 22px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* ---------------------------------------------------------------- team */
.team { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.person { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; padding-top: 0; }
.person b { font-weight: 600; display: block; }
.person small { color: var(--ink-3); font-size: 12.5px; }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 26px; transform: translateX(-50%);
  padding: 11px 18px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--line-2);
  font-size: 13.5px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); animation: pop2 .35s var(--ease-out) both;
}
@keyframes pop2 { from { opacity: 0; transform: translate(-50%, 10px); } }

.loading { padding: 80px 0; text-align: center; color: var(--ink-3); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .dash, .team { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; padding-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; z-index: 30; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; align-items: center;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line-2);
    background: rgba(5, 9, 18, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .side .logo, .side__tag { display: none; }
  .nav { grid-auto-flow: column; grid-auto-columns: 1fr; flex: 1; }
  .nav a { flex-direction: column; justify-content: center; gap: 2px; height: 50px; font-size: 11.5px; }
  .nav a b { width: auto; }
  .nav a .count { display: none; }
  .nav a.is-on::before { left: 30%; right: 30%; top: -9px; bottom: auto; width: auto; height: 2px; }
  .side__foot { margin: 0; padding: 0 0 0 8px; border: 0; }
  .side__me { display: none; }
  .main { padding: 22px 16px 110px; }
  .search .input { width: 100%; }
  .search { flex: 1; min-width: 180px; }
  .top__tools { width: 100%; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; }
  .table tbody tr:first-child { border-top: 0; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 14px 0; border-top: 1px solid var(--line); }
  .table td { border: 0; padding: 2px 0; }
  .table td.hide-m { display: none; }
  .drawer__in { padding: 20px 18px 40px; }
  .form-grid, .kv, .feats { grid-template-columns: 1fr; }
  .stepper .step span { display: none; }
  .stepper .step.is-now span { display: inline; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
