/* =========================================================
   DJITRIK ADMIN — control room
   ========================================================= */

@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/unbounded-cyrillic-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/unbounded-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/unbounded-cyrillic-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/unbounded-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-cyrillic-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-cyrillic-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-cyrillic-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #07080c;
  --surface: #0d1017;
  --surface-2: #11151f;
  --surface-3: #161b27;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f2f3ef;
  --muted: #9aa1ae;
  --muted-2: #69717f;
  --lime: #c6ff3d;
  --lime-soft: rgba(198, 255, 61, .1);
  --blue: #7b95ff;
  --coral: #ff7a59;
  --green: #6ee7a0;
  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: #07080c; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #0a0c11; }
::-webkit-scrollbar-thumb { background: #252b37; border-radius: 9px; border: 2px solid #0a0c11; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; color: var(--lime); background: rgba(198,255,61,.07); padding: 1px 5px; border-radius: 4px; }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  background: var(--lime); color: #07080c; font-family: var(--font-display);
  font-size: 17px; font-weight: 700; line-height: 1;
}
.brand-word { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.brand-word span { color: var(--lime); }
.brand-dark { color: #07080c; }
.brand-dark .brand-mark { background: #07080c; color: var(--lime); }
.brand-dark .brand-word span { color: #07080c; opacity: .45; }

/* ---------------- Login ---------------- */
.login { min-height: 100svh; display: grid; grid-template-columns: 1.06fr .94fr; }
.login-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 34px 42px 30px; background: var(--lime); color: #07080c;
}
.login-art-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.09) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 90% at 40% 40%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 40% 40%, #000, transparent 80%);
  opacity: .55;
}
.login-orbs { position: absolute; inset: 0; pointer-events: none; }
.login-orbs i { position: absolute; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.login-orbs i:first-child { width: 540px; height: 540px; right: -200px; bottom: -240px; }
.login-orbs i:last-child { width: 280px; height: 280px; right: -60px; bottom: -110px; background: rgba(0,0,0,.05); }
.login-art-copy { position: relative; z-index: 1; margin-top: auto; margin-bottom: auto; padding: 40px 0; }
.login-kicker { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.login-art-copy h1 {
  margin-top: 20px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(42px, 5.2vw, 78px); line-height: .97; letter-spacing: -.055em;
}
.login-art-copy h1 em { font-style: normal; -webkit-text-stroke: 2px #07080c; color: transparent; }
.login-art-copy p { max-width: 340px; margin-top: 22px; font-size: 13.5px; line-height: 1.6; font-weight: 600; color: rgba(0,0,0,.62); }
.login-art-foot { position: relative; z-index: 1; display: flex; gap: 44px; padding-top: 22px; border-top: 1px solid rgba(0,0,0,.18); }
.login-art-foot b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.login-art-foot span { display: block; margin-top: 2px; font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .55; }

.login-form-side {
  display: flex; align-items: center; justify-content: center; padding: 40px;
  background: radial-gradient(ellipse 70% 55% at 70% 15%, rgba(198,255,61,.05), transparent 65%), var(--bg);
}
.login-form { width: 100%; max-width: 360px; }
.login-kicker-muted { color: var(--muted-2); }
.login-form h2 { margin-top: 14px; font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.login-sub { margin-top: 9px; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.login-field { display: block; margin-top: 18px; }
.login-field span { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.login-field input {
  width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: #0a0c12; font-size: 13px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.login-field input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198,255,61,.08); }
.login-error { margin-top: 12px; font-size: 11px; line-height: 1.45; color: #ff9a80; }
.login-submit {
  width: 100%; height: 48px; margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; background: var(--lime); color: #07080c; font-size: 12.5px; font-weight: 800;
  transition: transform .2s, background .2s;
}
.login-submit:hover { transform: translateY(-1px); background: #d3ff6a; }
.login-submit:disabled { opacity: .6; transform: none; }
.login-submit .icon { font-size: 16px; }
.login-meta { display: flex; align-items: center; gap: 7px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 9px; color: var(--muted-2); }
.login-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(198,255,61,.1); }

/* ---------------- App shell ---------------- */
.app { min-height: 100svh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.side {
  position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column;
  padding: 20px 14px 16px; background: #080a0e; border-right: 1px solid var(--line);
  z-index: 60;
}
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 20px; }
.side-close { display: none; font-size: 24px; color: var(--muted); }
.side-label { padding: 0 10px; font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.side-link {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 10px; border-radius: 8px; color: var(--muted); text-align: left;
  font-size: 11.5px; font-weight: 600; transition: background .18s, color .18s;
}
.side-link .icon { font-size: 15px; }
.side-link:hover { background: rgba(255,255,255,.035); color: var(--text); }
.side-link.active { background: var(--lime-soft); color: var(--lime); }
.side-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  display: grid; place-items: center; background: var(--lime); color: #07080c;
  font-size: 8px; font-weight: 800;
}
.side-link.active .side-badge { background: var(--lime); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding: 14px 6px 0; border-top: 1px solid var(--line); }
.side-site, .side-logout { display: flex; align-items: center; gap: 8px; padding: 8px 5px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.side-site:hover, .side-logout:hover { color: var(--lime); }
.side-site .icon, .side-logout .icon { font-size: 14px; }
.side-version { margin-top: 8px; padding: 0 5px; font-size: 8px; color: var(--muted-2); letter-spacing: .04em; }
.side-backdrop { display: none; }

.shell { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  min-height: 72px; display: flex; align-items: center; gap: 18px;
  padding: 10px 28px; border-bottom: 1px solid var(--line);
  background: rgba(7,8,12,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.top-menu { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 8px; }
.top-menu span { display: block; height: 1.5px; background: var(--text); margin-bottom: 4px; }
.top-menu span:last-child { margin-bottom: 0; }
.top-title { min-width: 0; }
.top-crumb { display: block; font-size: 7.5px; font-weight: 800; letter-spacing: .16em; color: var(--muted-2); }
.top-title h1 { margin-top: 1px; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.04em; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.range { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #090b11; }
.range button { min-height: 29px; padding: 0 10px; border-radius: 6px; font-size: 9.5px; font-weight: 700; color: var(--muted); transition: all .18s; }
.range button:hover { color: var(--text); }
.range button.active { background: var(--lime); color: #07080c; }
.icon-btn { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 15px; }
.icon-btn:hover { color: var(--lime); border-color: var(--lime-line, rgba(198,255,61,.3)); }
.top-site { display: inline-flex; align-items: center; gap: 5px; height: 35px; padding: 0 12px; border-radius: 9px; background: var(--lime); color: #07080c; font-size: 10px; font-weight: 800; }
.top-site .icon { font-size: 12px; }

.content { width: 100%; max-width: 1500px; margin: 0 auto; padding: 24px 28px 60px; }
.tab-panel { animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- KPI ---------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.kpi {
  position: relative; padding: 15px 14px 13px; border: 1px solid var(--line);
  border-radius: 13px; background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  overflow: hidden;
}
.kpi::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(198,255,61,.16), transparent); }
.kpi-accent { background: linear-gradient(160deg, rgba(198,255,61,.12), rgba(198,255,61,.025)); border-color: rgba(198,255,61,.22); }
.kpi-label { display: block; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); }
.kpi b { display: block; margin-top: 8px; font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-accent b { color: var(--lime); }
.delta { display: inline-block; margin-top: 6px; font-size: 8.5px; font-weight: 700; color: var(--muted-2); }
.delta.up { color: var(--green); }
.delta.down { color: #ff8e73; }
.delta.neutral { color: var(--muted-2); }

/* ---------------- Cards / grids ---------------- */
.dash-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 12px; margin-top: 12px; }
.dash-grid + .dash-grid { grid-template-columns: 1fr 1fr; }
.card { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); padding: 16px 16px 14px; min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-kicker { display: block; font-size: 7.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.card-head h2 { margin-top: 3px; font-family: var(--font-display); font-size: 14.5px; font-weight: 600; letter-spacing: -.03em; }
.card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 700; color: var(--lime); }
.card-link .icon { font-size: 12px; }

.chart-card { display: flex; flex-direction: column; }
.chart { position: relative; min-height: 238px; flex: 1; }
.chart svg { width: 100%; height: auto; min-height: 238px; overflow: visible; }
.chart text { font-family: var(--font-body); font-size: 8px; fill: var(--muted-2); }
.chart .grid-line { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.chart .area { fill: url(#chartGradient); }
.chart .line-visits { fill: none; stroke: var(--lime); stroke-width: 2; }
.chart .line-people { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 4 4; }
.chart .point { fill: var(--lime); stroke: #0d1017; stroke-width: 1.5; }
.chart .point-people { fill: var(--blue); stroke: #0d1017; stroke-width: 1.5; }
.chart-foot { margin-top: 4px; font-size: 8.5px; color: var(--muted-2); }
.chart-legend { display: flex; gap: 12px; font-size: 8.5px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-lime { background: var(--lime); }
.dot-blue { background: var(--blue); }

.live-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 99px; background: var(--lime-soft); color: var(--lime); font-size: 8px; font-weight: 800; }
.live-pill i { width: 4px; height: 4px; border-radius: 50%; background: var(--lime); animation: live 1.6s infinite; }
@keyframes live { 0%,100% { opacity: 1; } 50% { opacity: .2; } }
.live-list { display: flex; flex-direction: column; max-height: 250px; overflow-y: auto; }
.live-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.live-item:last-child { border-bottom: 0; }
.live-time { flex: none; width: 34px; font-size: 8px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.live-path { min-width: 0; flex: 1; font-size: 9.5px; color: #cfd3db; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-meta { flex: none; font-size: 8px; color: var(--muted-2); }
.test-badge { display: inline-block; padding: 1px 5px; border-radius: 3px; background: rgba(198,255,61,.14); color: var(--lime); font-size: 7px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

/* ---------------- Tables ---------------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 0 10px 8px 0; text-align: left; font-size: 7.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 8px 10px 8px 0; border-bottom: 1px solid rgba(255,255,255,.045); font-size: 9.5px; color: #c7ccd5; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table th.num { text-align: right; }
.table td.num { color: var(--text); font-weight: 600; }
.table-pages td:first-child { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-cell { display: flex; align-items: center; gap: 8px; }
.page-fav { width: 4px; height: 18px; border-radius: 3px; background: var(--lime); opacity: .75; }
.table-leads-mini td { font-size: 9px; }
.table-leads-mini .contact { color: var(--muted); }
.empty { padding: 18px 6px; font-size: 9.5px; color: var(--muted-2); text-align: center; }

/* bars */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 74px 1fr 34px; gap: 8px; align-items: center; }
.bar-name { font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 5px; border-radius: 5px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: var(--lime); opacity: .75; }
.bar-value { font-size: 8.5px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.device { padding: 10px; border: 1px solid var(--line); border-radius: 9px; text-align: center; }
.device b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.device span { display: block; margin-top: 2px; font-size: 7.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.browser-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.browser-list span { padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 8px; color: var(--muted); }
.browser-list b { color: var(--text); font-weight: 700; }

/* ---------------- Panel head / leads / tests ---------------- */
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-head h2 { margin-top: 4px; font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -.045em; }
.panel-head p { max-width: 560px; margin-top: 6px; font-size: 10.5px; line-height: 1.55; color: var(--muted); }
.panel-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.select { height: 33px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #090b11; font-size: 10px; outline: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7b8290 50%), linear-gradient(135deg, #7b8290 50%, transparent 50%); background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.check-inline { display: inline-flex; align-items: center; gap: 5px; height: 33px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 9.5px; color: var(--muted); cursor: pointer; }
.check-inline input { accent-color: var(--lime); }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; height: 33px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 9.5px; font-weight: 700; color: var(--text); }
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(255,255,255,.03); }
.btn-ghost .icon { font-size: 13px; }
.btn-lime { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 9px; background: var(--lime); color: #07080c; font-size: 10px; font-weight: 800; }
.btn-lime:hover { background: #d3ff6a; }
.btn-lime .icon { font-size: 14px; }
.panel-note { margin-top: 11px; font-size: 9px; color: var(--muted-2); }

.table-leads td { font-size: 9.5px; }
.lead-person b { display: block; font-size: 10.5px; font-weight: 700; color: var(--text); }
.lead-person > span { display: block; margin-top: 1px; font-size: 9px; color: var(--muted); }
.lead-person .test-badge { display: inline-block; width: max-content; margin: 0 0 0 4px; vertical-align: middle; color: var(--lime); }
.lead-request b { display: block; font-size: 9.5px; font-weight: 600; color: #d5d9e0; }
.lead-request span { display: block; margin-top: 1px; font-size: 8.5px; color: var(--muted-2); }
.lead-message { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.status-select { height: 26px; padding: 0 20px 0 7px; border: 1px solid var(--line); border-radius: 6px; background: #090b11; font-size: 8.5px; outline: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7b8290 50%), linear-gradient(135deg, #7b8290 50%, transparent 50%); background-position: calc(100% - 10px) 50%, calc(100% - 6px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
.status-select[data-status="new"] { color: var(--lime); border-color: rgba(198,255,61,.3); }
.status-select[data-status="contacted"] { color: var(--blue); border-color: rgba(123,149,255,.3); }
.status-select[data-status="done"] { color: var(--green); }
.status-select[data-status="spam"] { color: #ff8e73; }

.callout { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid rgba(198,255,61,.18); border-radius: 12px; background: rgba(198,255,61,.045); }
.callout-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--lime-soft); color: var(--lime); font-size: 15px; }
.callout strong { display: block; font-size: 10.5px; }
.callout p { margin-top: 3px; max-width: 680px; font-size: 9px; line-height: 1.55; color: var(--muted); }
.callout-stats { display: grid; grid-template-columns: auto auto; gap: 0 7px; margin-left: auto; text-align: right; }
.callout-stats b { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--lime); }
.callout-stats span { align-self: center; font-size: 7.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }

.test-form { margin-bottom: 14px; }
.test-form-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.field { display: block; }
.field span { display: block; margin-bottom: 5px; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.field input, .field textarea { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #090b11; font-size: 10.5px; outline: none; }
.field input:focus { border-color: var(--lime); }
.test-link { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.test-link > span { display: block; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.test-link > div { display: flex; gap: 6px; margin-top: 5px; }
.test-link input { flex: 1; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #090b11; font-size: 10px; color: var(--lime); }
.test-link button { flex: none; padding: 0 12px; border-radius: 7px; background: var(--lime); color: #07080c; font-size: 9px; font-weight: 800; }
.form-error { margin-top: 9px; font-size: 9.5px; color: #ff9a80; }
.table-tests td { font-size: 9.5px; }
.test-name b { display: block; font-size: 10px; color: var(--text); }
.test-name span { display: block; margin-top: 1px; font-size: 8.5px; color: var(--muted-2); }
.test-actions { display: flex; gap: 4px; justify-content: flex-end; }
.mini-btn { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 12px; }
.mini-btn:hover { color: var(--lime); border-color: rgba(198,255,61,.3); }
.mini-btn.danger:hover { color: #ff8e73; border-color: rgba(255,122,89,.35); }

/* ---------------- Settings ---------------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-rows { display: flex; flex-direction: column; }
.settings-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.settings-rows > div:last-child { border-bottom: 0; }
.settings-rows span { font-size: 9px; color: var(--muted-2); }
.settings-rows b { font-size: 9.5px; font-weight: 600; text-align: right; }
.settings-logout { margin-top: 12px; }
.password-form { display: grid; gap: 8px; }
.password-form .field { margin: 0; }
.password-form .btn-lime { margin-top: 4px; }
.settings-info { grid-column: span 2; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.info-list li { position: relative; padding-left: 14px; font-size: 9px; line-height: 1.55; color: var(--muted); }
.info-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; border: 1px solid var(--lime); transform: rotate(45deg); }
.info-list b { color: var(--text); font-weight: 700; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 200; padding: 10px 16px; border-radius: 9px;
  background: var(--lime); color: #07080c; font-size: 10px; font-weight: 800;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.7);
  animation: toastIn .25s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1240px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi b { font-size: 23px; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid + .dash-grid { grid-template-columns: 1fr 1fr; }
  .live-list { max-height: 190px; }
}
@media (max-width: 1000px) {
  .app { grid-template-columns: 1fr; }
  .side {
    position: fixed; inset: 0 auto 0 0; width: 250px; height: 100svh;
    transform: translateX(-100%); transition: transform .28s var(--ease);
    box-shadow: 30px 0 70px rgba(0,0,0,.5);
  }
  .app.side-open .side { transform: none; }
  .app.side-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); }
  .side-close { display: block; }
  .top-menu { display: block; }
  .topbar { padding: 10px 18px; }
  .content { padding: 18px 18px 50px; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-info { grid-column: auto; }
  .info-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 270px; padding: 24px; }
  .login-art-copy { margin: 0; padding: 24px 0 10px; }
  .login-art-copy h1 { font-size: 38px; }
  .login-art-copy p { display: none; }
  .login-art-foot { display: none; }
  .login-form-side { padding: 34px 22px 50px; }
  .topbar { min-height: 64px; gap: 10px; }
  .top-title h1 { font-size: 17px; }
  .top-crumb { display: none; }
  .range { display: none; }
  .top-site { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .kpi b { font-size: 21px; }
  .dash-grid, .dash-grid + .dash-grid { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .panel-actions { width: 100%; }
  .test-form-grid { grid-template-columns: 1fr; }
  .callout { flex-wrap: wrap; }
  .callout-stats { margin-left: 42px; text-align: left; }
  .bar-row { grid-template-columns: 62px 1fr 30px; }
  .table th, .table td { padding-right: 8px; }
  .card { padding: 13px 12px 11px; }
  .chart { min-height: 210px; }
  .chart svg { min-height: 210px; }
  .content { padding: 14px 12px 44px; }
}
@media (max-width: 420px) {
  .login-art { min-height: 230px; }
  .login-art-copy h1 { font-size: 32px; }
  .kpi { padding: 12px 11px; }
  .kpi b { font-size: 19px; }
  .device-grid { grid-template-columns: 1fr 1fr 1fr; }
  .device { padding: 7px; }
  .device b { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
