:root {
  /* Telegram-native переменные с инструментальными (night-tech) фолбэками.
     Палитра подобрана под радар-ассеты: near-black ink, instrument teal,
     signal amber. Никакого неон-колхоза — спокойный приборный стек. */
  --tg-bg: var(--tg-theme-bg-color, #0b0f14);
  --tg-secondary: var(--tg-theme-secondary-bg-color, #111821);
  --tg-text: var(--tg-theme-text-color, #d7e2ea);
  --tg-hint: var(--tg-theme-hint-color, #8a99a6);
  --tg-link: var(--tg-theme-link-color, #5cd0c9);
  --tg-button: var(--tg-theme-button-color, #5cd0c9);

  --bg: #0b0f14;
  --bg-2: #080c11;
  --panel: #111821;
  --panel-2: #0f151c;
  --panel-3: #0c1218;
  --line: rgba(200, 216, 224, 0.09);
  --line-strong: rgba(200, 216, 224, 0.17);
  --text: #d9e3ec;
  --muted: #8593a0;
  --muted-2: #6b7884;

  --teal: #5cd0c9;          /* приборный бирюзовый — основной акцент */
  --teal-dim: rgba(92, 208, 201, 0.12);
  --teal-line: rgba(92, 208, 201, 0.34);
  --amber: #f4b84e;         /* сигнальный янтарь — деньги/горячее/CTA */
  --amber-h: #ffd896;
  --amber-dim: rgba(244, 184, 78, 0.12);
  --amber-line: rgba(244, 184, 78, 0.34);
  --steel: #9ec9e6;
  --steel-dim: rgba(158, 201, 230, 0.12);
  --danger: #ff6b6b;
  --danger-line: rgba(255, 107, 107, 0.36);

  --ink-on-teal: #04201f;
  --ink-on-amber: #1c1303;

  --radius: 10px;
  --radius-sm: 8px;
  --mono: "JetBrains Mono", "SF Mono", "Roboto Mono", ui-monospace, "Menlo", monospace;
  --sans: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.app-view[hidden] *,
.app-view[hidden]::before,
.app-view[hidden]::after { display: none !important; content: none !important; }

html, body { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  /* тонкая приборная сетка + мягкий радиальный градиент к синеве */
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(92, 208, 201, 0.06), transparent 60%),
    linear-gradient(rgba(200, 216, 224, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 216, 224, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, #0b0f14 0%, #0a1018 60%, #0b121b 100%);
  background-size: auto, 30px 30px, 30px 30px, 100% 100%;
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
body.modal-open { overflow: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(92, 208, 201, 0.025) 50%, transparent 58%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 7px);
  opacity: 0.68;
}
body::after {
  content: "";
  position: fixed;
  inset: auto -12% 0 auto;
  width: min(520px, 72vw);
  height: min(520px, 72vw);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 184, 78, 0.055), transparent 54%),
    conic-gradient(from 210deg, transparent 0 32%, rgba(92, 208, 201, 0.09), transparent 52% 100%);
  filter: blur(0.2px);
  opacity: 0.8;
}

button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(92, 208, 201, 0.28); color: #fff; }

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 24px));
  margin: 0 auto;
  padding:
    calc(14px + env(safe-area-inset-top)) 0
    calc(40px + env(safe-area-inset-bottom));
}

/* ---------- topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  background: #0a0f14;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3), inset 0 0 22px rgba(92,208,201,0.10);
}
.eyebrow {
  margin: 0 0 3px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #eef4f8;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--teal-line);
  background: var(--teal-dim);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(92, 208, 201, 0.9);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- access bar (gating ribbon) ---------- */
.access-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, var(--amber-dim), transparent 46%),
    var(--panel-2);
}
.access-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.access-info b { display: block; font-size: 14px; color: var(--text); }
.access-info small { color: var(--muted); font-size: 12px; }
.badge-pro {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 9px; border-radius: 7px;
  background: var(--amber); color: var(--ink-on-amber);
}
.access-cta {
  border: 1px solid var(--amber-line); cursor: pointer;
  padding: 9px 15px; border-radius: 8px; font-weight: 600; font-size: 13px;
  background: var(--amber-dim); color: var(--amber-h);
  white-space: nowrap;
  transition: filter .12s ease, transform .08s ease;
}
.access-cta:hover { filter: brightness(1.12); }
.access-cta:active { transform: translateY(1px); }

/* ---------- tab nav (segmented) ---------- */
.app-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-3);
}

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  height: calc(62px + env(safe-area-inset-bottom));
  padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: rgba(7, 11, 16, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.bottom-nav button {
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10.5px; font-weight: 700; cursor: pointer;
}
.bottom-nav button span { font-family: var(--mono); font-size: 17px; line-height: 1; }
.bottom-nav .nav-ico {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}
.bottom-nav svg,
.contact-cta svg,
.deep-link svg,
.icon-btn svg,
.detail-back svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav svg { width: 19px; height: 19px; }
.bottom-nav button.active {
  color: var(--teal);
  border-color: var(--teal-line);
  background: var(--teal-dim);
}
.app-tabs .tab {
  flex: 1;
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background .14s ease, color .14s ease;
}
.app-tabs .tab:hover { color: var(--text); }
.app-tabs .tab.active {
  background: linear-gradient(180deg, rgba(92,208,201,0.16), rgba(92,208,201,0.07));
  color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal-line);
}

/* секции-вьюхи */
.app-view[hidden] { display: none !important; }

/* ---------- control panel ---------- */
.control-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 13px;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 13px;
}
.signal-board > div {
  border: 1px solid var(--line);
  background: var(--panel-3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}
.signal-board > div::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--line-strong);
}
.signal-board span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.signal-board b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.signal-board > div:first-child b { color: var(--teal); }
.signal-board > div:nth-child(2) b { color: var(--amber); }
.signal-board > div:nth-child(3) b { color: var(--steel); }
.signal-board > div:first-child::after { background: var(--teal); }
.signal-board > div:nth-child(2)::after { background: var(--amber); }
.signal-board > div:nth-child(3)::after { background: var(--steel); }

.search {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-3);
  transition: border-color .12s ease;
}
.search:focus-within { border-color: var(--teal-line); }
.search-ico { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.search input {
  flex: 1; border: none; background: transparent; outline: none;
  color: var(--text); font-size: 15px;
}
.search input::placeholder { color: var(--muted-2); }

.filter-rows { margin-top: 12px; display: grid; gap: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters.secondary { align-items: center; }

.chip {
  border: 1px solid var(--line-strong);
  background: var(--panel-3);
  color: var(--muted);
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  transition: color .12s ease, border-color .12s ease, background .12s ease;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--teal-line); }
.chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink-on-teal);
  font-weight: 700;
}
.chip.toggle.on {
  background: var(--teal-dim);
  border-color: var(--teal-line);
  color: var(--teal);
  font-weight: 600;
}
.select {
  border: 1px solid var(--line-strong);
  background: var(--panel-3);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}
.select:focus { outline: none; border-color: var(--teal-line); }

/* ---------- layout ---------- */
.layout {
  display: block;
}
.feed-wrap {
  max-width: 920px;
  margin: 0 auto;
}
.feed-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted); font-size: 12px;
  padding: 0 2px;
}
.feed-head #feed-count { color: var(--text); font-weight: 700; font-size: 13px; }
.feed-hint { font-size: 11px; font-family: var(--mono); }
.feed { display: grid; gap: 10px; }
.feed-wrap { scroll-margin-top: 10px; }

.vacancy-modal,
.customer-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(14px);
}
.vacancy-sheet,
.customer-sheet {
  width: min(760px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  overflow: auto;
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0,0,0,0.62);
}
.customer-sheet {
  width: min(820px, 100%);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(158, 201, 230, 0.07), transparent 38%),
    var(--panel);
  padding: 18px;
}
.vacancy-modal[hidden],
.customer-modal[hidden] { display: none !important; }

/* ---------- skeleton ---------- */
.skeleton {
  height: 122px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.05) 40%, transparent 60%) var(--panel);
  background-size: 220% 100%;
  animation: shimmer 1.25s linear infinite;
}
@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -40% 0; } }

/* ---------- inline back (mobile) ---------- */
.detail-back {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel-3);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}
.detail-back:active { transform: translateY(1px); }

/* ---------- card ---------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(92, 208, 201, 0.035), transparent 34%),
    var(--panel);
  border-radius: var(--radius);
  padding: 13px 14px 13px 16px;
  cursor: pointer;
  transition: border-color .12s ease, transform .1s ease, box-shadow .12s ease, background .12s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--line-strong);
}
.card.hot::before { background: var(--amber); box-shadow: 0 0 14px rgba(244, 184, 78, 0.55); }
.card.mid::before { background: var(--teal); }
.card.cold::before { background: var(--line-strong); }
.card:hover,
.card:focus-visible {
  border-color: var(--teal-line);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  outline: none;
}
.card.active {
  border-color: var(--teal-line);
  box-shadow: 0 0 0 1px var(--teal-line), 0 10px 30px rgba(0,0,0,0.4);
  background:
    linear-gradient(135deg, rgba(92, 208, 201, 0.08), transparent 34%),
    var(--panel-2);
}
.card.placeholder { cursor: default; text-align: center; padding: 30px 24px; }
.card.placeholder b { display: block; margin-bottom: 6px; color: var(--text); }
.card.placeholder .desc { display: block; margin-bottom: 14px; }
.placeholder-visual {
  width: min(100%, 300px);
  display: block;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(0,0,0,0.34);
}
.retry-btn {
  border: 1px solid var(--teal-line);
  background: var(--teal-dim);
  color: var(--teal);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.retry-btn:active { transform: translateY(1px); }

.card-top {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px; margin-bottom: 11px;
}

.cat-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(92, 208, 201, 0.10), transparent 70%),
    var(--panel-3);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 18px rgba(92, 208, 201, 0.045);
}
.cat-visual.bot,
.cat-visual.club { border-color: var(--teal-line); color: var(--teal); }
.cat-visual.course,
.cat-visual.pay { border-color: var(--amber-line); color: var(--amber); }
.cat-visual.crm,
.cat-visual.ai { border-color: rgba(158, 201, 230, 0.32); color: var(--steel); }

/* ticket identity */
.ticket-id {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--panel-3);
  white-space: nowrap;
}
.category {
  color: var(--teal);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fresh {
  font-family: var(--mono);
  font-size: 10.5px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted);
  white-space: nowrap;
}
.fresh.hot { color: var(--amber); border-color: var(--amber-line); background: var(--amber-dim); }
.fresh.mid { color: var(--teal); border-color: var(--teal-line); }
.fresh.cold { color: var(--muted); }

/* signal meter (cockpit gauge) */
.sig {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 8px 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--panel-3);
  white-space: nowrap;
}
.sig-bar {
  position: relative;
  width: 38px; height: 5px;
  border-radius: 2px;
  background: rgba(200, 216, 224, 0.1);
  overflow: hidden;
}
.sig-bar i { position: absolute; inset: 0 auto 0 0; display: block; height: 100%; background: var(--muted); }
.sig b {
  font-family: var(--mono);
  font-size: 12px; font-weight: 700; line-height: 1;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.sig.hot { border-color: var(--amber-line); }
.sig.hot .sig-bar i { background: var(--amber); box-shadow: 0 0 8px rgba(244,184,78,0.6); }
.sig.hot b { color: var(--amber); }
.sig.mid { border-color: var(--teal-line); }
.sig.mid .sig-bar i { background: var(--teal); }
.sig.mid b { color: var(--teal); }
.sig.cold .sig-bar i { background: var(--steel); opacity: 0.6; }

.card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  justify-content: space-between;
}
.card-main { min-width: 0; }
.title {
  margin: 0 0 9px;
  font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--text);
}
.card:hover .title,
.card:focus-visible .title { color: #ffffff; }
.card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 9px;
}
.card-facts span {
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255,255,255,0.018);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 9px; }
.tag {
  font-family: var(--mono);
  font-size: 10.5px; padding: 3px 8px; border-radius: 6px;
  background: var(--steel-dim);
  border: 1px solid rgba(158, 201, 230, 0.22);
  color: var(--steel);
}
.impl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 0 9px;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.impl-chip b { font-family: var(--mono); }
.impl-chip.code { color: var(--steel); border-color: rgba(158, 201, 230, 0.34); background: var(--steel-dim); }
.impl-chip.nocode { color: var(--amber); border-color: var(--amber-line); background: var(--amber-dim); }
.impl-chip.platform { color: var(--teal); border-color: var(--teal-line); background: var(--teal-dim); }
.impl-chip.bot { color: var(--teal); border-color: var(--teal-line); background: var(--teal-dim); }
.impl-chip.automation { color: var(--steel); border-color: rgba(158, 201, 230, 0.34); background: var(--steel-dim); }
.impl-chip.marketing { color: var(--muted); border-color: var(--line-strong); background: var(--panel-3); }
.impl-chip.unknown { color: var(--muted); }

.quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-3);
  padding: 5px 8px;
  color: var(--muted);
  font-size: 11px;
}
.quality-badge b { font-family: var(--mono); color: var(--text); }
.quality-badge em { font-style: normal; color: var(--muted); }
.quality-badge.good { border-color: var(--teal-line); background: rgba(92, 208, 201, 0.07); }
.quality-badge.good b { color: var(--teal); }
.quality-badge.mid { border-color: var(--amber-line); background: rgba(244, 184, 78, 0.07); }
.quality-badge.mid b { color: var(--amber); }
.quality-badge.low { border-color: var(--danger-line); background: rgba(255, 107, 107, 0.055); }
.quality-badge.low b { color: var(--danger); }

.budget {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
  min-width: 150px;
  align-content: start;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.budget-cap {
  color: var(--muted); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.budget-val {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.budget-src {
  font-family: var(--mono);
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.budget-src.ok { color: var(--teal); }
.budget-src.mid { color: var(--amber); }
.budget-src.warn { color: var(--muted); }

.card-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 11.5px;
}
.card-stats {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 7px;
}
.stat-pill {
  min-width: 82px;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-3);
}
.stat-pill b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-pill em {
  color: var(--muted);
  font-style: normal;
  font-size: 10.5px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}
.stat-pill.strong {
  border-color: var(--amber-line);
  background: var(--amber-dim);
}
.stat-pill.strong b { color: var(--amber); }
.meta-item {
  padding: 3px 0;
  white-space: nowrap;
}
.meta-item.strong { color: var(--text); }
.deep-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(92, 208, 201, 0.35);
  padding: 3px 0;
  white-space: nowrap;
}
.deep-link svg { width: 14px; height: 14px; }
.deep-link:hover { color: #8ffff7; border-bottom-color: currentColor; }
.spacer { flex: 1; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--panel-3); color: var(--muted);
  cursor: pointer; font-size: 14px; line-height: 1;
  transition: color .12s ease, border-color .12s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--teal-line); }
.icon-btn.on { color: var(--amber); border-color: var(--amber-line); }
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: var(--ink-on-amber);
  cursor: pointer;
  border-radius: 7px;
  padding: 9px 15px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(244, 184, 78, 0.18);
  text-decoration: none;
}
.contact-cta:hover { filter: brightness(1.06); }
.contact-cta:active { transform: translateY(1px); }
.card .icon-btn {
  opacity: 0.72;
}
.card:hover .icon-btn,
.card:focus-within .icon-btn,
.card.active .icon-btn {
  opacity: 1;
}

/* ---------- detail ---------- */
.detail {
  position: relative;
  top: auto;
  scroll-margin-top: 10px;
  min-height: 440px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(92, 208, 201, 0.04), transparent 32%),
    var(--panel);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}
.detail-head {
  display: flex; justify-content: space-between; gap: 12px;
  align-items: flex-start; margin-bottom: 10px;
}
.detail-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.detail-id-row { display: flex; align-items: center; gap: 8px; }
.detail-head h2 {
  margin: 9px 0 0; font-size: 21px; font-weight: 700; line-height: 1.18; color: #eef4f8;
}
.price-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 14px 0;
}
.price-cell {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; background: var(--panel-3);
}
.price-cell.ok { border-color: var(--teal-line); }
.price-cell.mid { border-color: var(--amber-line); }
.price-cell.warn { border-color: var(--danger-line); }
.price-block span { display: block; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.price-block b { font-size: 18px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.price-block .accent { color: var(--amber); }
.budget-state { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }

.impl-banner {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-3);
}
.impl-banner b { display: block; font-size: 14px; }
.impl-banner small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.impl-banner.code { border-color: rgba(158, 201, 230, 0.34); }
.impl-banner.nocode { border-color: var(--amber-line); }
.impl-banner.platform { border-color: var(--teal-line); background: rgba(92, 208, 201, 0.055); }
.impl-banner.bot { border-color: var(--teal-line); background: rgba(92, 208, 201, 0.055); }
.impl-banner.automation { border-color: rgba(158, 201, 230, 0.34); background: rgba(158, 201, 230, 0.055); }
.impl-banner.marketing { border-color: var(--line-strong); }
.impl-ico { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--teal); padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 6px; }

.quality-panel {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(158, 201, 230, 0.05), transparent 65%),
    var(--panel-3);
}
.quality-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.quality-panel span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.55px;
  font-weight: 800;
}
.quality-panel b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}
.quality-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.quality-panel.good { border-color: var(--teal-line); }
.quality-panel.good b { color: var(--teal); }
.quality-panel.mid { border-color: var(--amber-line); }
.quality-panel.mid b { color: var(--amber); }
.quality-panel.low { border-color: var(--danger-line); }
.quality-panel.low b { color: var(--danger); }

.detail-grid { display: grid; gap: 0; }
.detail-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.detail-row b { font-family: var(--mono); font-size: 13px; }
.detail-row span { color: var(--muted); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.5px; align-self: center; }

.context { margin: 14px 0; }
.context span { display: block; color: var(--muted); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.5px; margin-bottom: 6px; }
.context p { margin: 0; line-height: 1.55; font-size: 14px; color: var(--text); }

.work-scope {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  border: 1px solid var(--teal-line);
  border-radius: var(--radius-sm);
  background: rgba(92, 208, 201, 0.055);
  padding: 12px;
}
.work-scope > span {
  color: var(--teal);
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.55px;
}
.work-scope p {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}
.work-scope p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(92, 208, 201, 0.12);
}

.ai-note {
  font-size: 12px; color: var(--muted);
  background: var(--panel-3); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; line-height: 1.4;
}

.customer-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(158, 201, 230, 0.08), transparent 38%),
    var(--panel);
  padding: 14px;
}
.customer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.customer-head b { display: block; color: var(--text); font-size: 16px; }
.customer-head strong {
  font-family: var(--mono); color: var(--amber); font-size: 22px;
}
.customer-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-bottom: 12px;
}
.customer-grid > div {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-3); padding: 10px;
}
.customer-grid span {
  display: block; color: var(--muted); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 5px;
}
.customer-grid b { font-family: var(--mono); font-size: 14px; color: var(--text); }
.customer-history { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.customer-row,
.customer-review {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px;
  align-items: center; border-bottom: 1px solid var(--line); padding: 7px 0;
}
.customer-row:last-child,
.customer-review:last-child { border-bottom: none; }
.customer-row span,
.customer-row small { font-family: var(--mono); color: var(--muted-2); font-size: 11px; }
.customer-row b {
  color: var(--text); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.customer-review { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.customer-review span { color: var(--amber); letter-spacing: 1px; }
.customer-review p { margin: 0; color: var(--muted); line-height: 1.35; }
.customer-review small {
  grid-column: 2;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
}
.customer-empty { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 10px; }
.customer-passport-loading {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  color: var(--muted);
}
.passport-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.passport-head h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}
.passport-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: 560px;
}
.passport-head strong {
  font-family: var(--mono);
  color: var(--amber);
  font-size: 28px;
  white-space: nowrap;
}
.passport-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.passport-stats > div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-3);
  padding: 12px;
}
.passport-stats span,
.passport-title {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.passport-stats b {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 18px;
}
.passport-section { display: grid; gap: 8px; margin-top: 14px; }
.passport-history,
.passport-reviews { display: grid; gap: 8px; }
.passport-vacancy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-3);
  color: var(--text);
  padding: 11px 12px;
  cursor: pointer;
  text-align: left;
}
.passport-vacancy:hover { border-color: var(--teal-line); }
.passport-vacancy span,
.passport-vacancy small {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.passport-vacancy b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.passport-review {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-3);
  padding: 11px 12px;
}
.passport-review span { color: var(--amber); letter-spacing: 1px; }
.passport-review p { margin: 6px 0 0; color: var(--muted); line-height: 1.4; }
.passport-review small {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
}
.review-box {
  display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.review-box > span {
  color: var(--muted); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.rating-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rating-row button {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--panel-3); color: var(--muted); padding: 8px; cursor: pointer;
  font-family: var(--mono); font-weight: 700;
}
.rating-row button.active {
  background: var(--amber); color: var(--ink-on-amber); border-color: var(--amber);
}
.review-box textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--panel-3); color: var(--text); padding: 10px; resize: vertical;
}
.review-box .ghost { width: 100%; }

.contact-box { margin: 14px 0; }
.contact-locked {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel-3);
  color: var(--muted); font-size: 14px;
}
.contact-locked.revealed {
  border-style: solid; border-color: var(--teal-line);
  background: var(--teal-dim);
  color: var(--text);
}
.contact-value { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--teal); }

.primary {
  border: none; cursor: pointer; text-decoration: none;
  padding: 11px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px;
  background: var(--amber); color: var(--ink-on-amber);
  white-space: nowrap; display: inline-block;
  transition: filter .12s ease, transform .08s ease;
}
.primary:hover { filter: brightness(1.06); }
.primary:active { transform: translateY(1px); }

.detail-actions { display: flex; gap: 8px; margin-top: 14px; }
.ghost {
  flex: 1; cursor: pointer;
  padding: 11px; border-radius: var(--radius-sm); font-size: 13px;
  border: 1px solid var(--line-strong); background: var(--panel-3); color: var(--muted);
  text-align: center;
  text-decoration: none;
  transition: color .12s ease, border-color .12s ease;
}
.ghost:hover { color: var(--text); border-color: var(--teal-line); }
.ghost.on { color: var(--amber); border-color: var(--amber-line); }

.empty {
  display: grid; place-items: center; text-align: center;
  color: var(--muted); min-height: 380px; gap: 10px;
}
.empty b { color: var(--text); font-size: 16px; }
.empty p { margin: 0; max-width: 250px; font-size: 13px; line-height: 1.5; }
.empty-visual {
  width: min(100%, 360px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}

/* ====================================================================
   CABINET (личный кабинет техспеца)
   ==================================================================== */
.customers-view { display: grid; gap: 14px; }
.customers-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(92, 208, 201, 0.08), transparent 18%),
    linear-gradient(120deg, rgba(158, 201, 230, 0.09), transparent 48%),
    var(--panel);
  padding: 18px;
}
.customers-hero img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0,0,0,0.30);
}
.customers-hero h2 {
  margin: 0 0 6px; font-size: 24px; line-height: 1.1; color: var(--text);
}
.customers-hero p {
  margin: 0; max-width: 680px; color: var(--muted); line-height: 1.5; font-size: 13.5px;
}
.customers-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.customer-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(92, 208, 201, 0.035), transparent 42%),
    var(--panel);
  padding: 14px; cursor: pointer;
  transition: border-color .12s ease, transform .08s ease, background .12s ease;
  position: relative;
  overflow: hidden;
}
.customer-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--teal);
  opacity: 0.65;
}
.customer-card:hover { border-color: var(--teal-line); background: var(--panel-2); }
.customer-card:active { transform: translateY(1px); }
.customer-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
.customer-card-top span {
  font-family: var(--mono); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.7px;
}
.customer-card-top b { font-family: var(--mono); color: var(--amber); }
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--panel-3);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}
.rating-badge b {
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.5px;
}
.rating-badge em {
  color: var(--text);
  font-style: normal;
}
.rating-badge.good { border-color: var(--teal-line); color: var(--teal); }
.rating-badge.ok { border-color: rgba(158, 201, 230, 0.28); }
.rating-badge.mid { border-color: var(--amber-line); }
.rating-badge.bad { border-color: rgba(255, 107, 107, 0.42); background: rgba(255, 107, 107, 0.08); }
.rating-badge.new { color: var(--muted-2); }
.customer-card h3 {
  margin: 0 0 10px; font-size: 15px; line-height: 1.25; color: var(--text);
}
.customer-card-stats {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.customer-card-stats span {
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px;
  color: var(--muted); font-size: 11px;
}
.customer-card p {
  margin: 0; font-family: var(--mono); color: var(--teal); font-size: 13px;
}

/* ====================================================================
   CABINET (личный кабинет техспеца)
   ==================================================================== */
.cabinet-view { display: grid; gap: 14px; }
.cabinet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  align-items: stretch;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 160px at 78% 12%, rgba(244, 184, 78, 0.08), transparent 66%),
    linear-gradient(120deg, rgba(92, 208, 201, 0.07), transparent 52%),
    var(--panel);
  overflow: hidden;
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.profile-avatar {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 36px rgba(0,0,0,0.34);
  flex: 0 0 auto;
}
.cabinet-hero .eyebrow { margin-bottom: 4px; }
.cabinet-hero h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: #eef4f8; }
.cabinet-hero p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 460px; }
.cabinet-status-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--amber-line);
  background:
    linear-gradient(135deg, var(--amber-dim), transparent 58%),
    var(--panel-3);
}
.cabinet-status-card span {
  color: var(--muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.cabinet-status-card b {
  font-family: var(--mono);
  font-size: 24px;
  color: var(--amber);
  line-height: 1;
}
.cabinet-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.desk-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-3);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.desk-panel::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--line-strong);
}
.desk-panel:nth-child(1)::after { background: var(--teal); }
.desk-panel:nth-child(2)::after { background: var(--amber); }
.desk-panel:nth-child(3)::after { background: var(--steel); }
.desk-panel:nth-child(4)::after { background: var(--danger); }
.desk-panel > span {
  display: block; color: var(--muted); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.desk-panel > b {
  display: block; font-family: var(--mono); font-size: 22px; font-weight: 700;
  line-height: 1; margin-bottom: 6px; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.desk-panel:nth-child(1) > b { color: var(--teal); }
.desk-panel:nth-child(2) > b { color: var(--amber); }
.desk-panel:nth-child(3) > b { color: var(--steel); }
.desk-panel:nth-child(4) > b { color: #ff9a9a; }
.desk-panel small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; }

.profile-form {
  display: grid; gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
}
.profile-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.profile-head span {
  display: block; color: var(--muted); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px;
}
.profile-head b {
  display: block; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.35;
}
.profile-fields { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 12px; }
.profile-form label { display: grid; gap: 7px; }
.profile-form label > span {
  color: var(--muted); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.profile-form input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel-3);
  color: var(--text);
  outline: none;
  padding: 12px;
  transition: border-color .12s ease;
}
.profile-form input:focus { border-color: var(--teal-line); box-shadow: 0 0 0 1px var(--teal-line); }
.profile-form .primary { background: var(--teal); color: var(--ink-on-teal); justify-self: start; white-space: nowrap; }
.profile-radar {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(92, 208, 201, 0.075), transparent 58%),
    var(--panel-3);
  padding: 12px;
}
.profile-radar img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
}
.profile-radar span,
.cabinet-tips span {
  display: block;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.profile-radar b {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 5px;
}
.profile-radar p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.profile-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}
.profile-route i {
  display: block;
  font-style: normal;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(8, 12, 17, 0.62);
  color: var(--steel);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 7px 6px;
}

.cabinet-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 14px;
  align-items: start;
}
.cabinet-side {
  display: grid;
  gap: 14px;
}
.match-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(220px 140px at 92% 8%, rgba(92, 208, 201, 0.08), transparent 72%),
    linear-gradient(135deg, rgba(158, 201, 230, 0.08), transparent 42%),
    var(--panel);
  padding: 16px;
}
.match-card > span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.match-card > b {
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
}
.match-card > small {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
}
.match-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 4px;
}
.match-meters > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-3);
  padding: 8px;
}
.match-meters span {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  margin-bottom: 5px;
}
.match-meters b {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 13px;
}
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.cabinet-tips {
  display: grid;
  gap: 8px;
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--amber-dim), transparent 56%),
    var(--panel);
  padding: 14px 16px;
}
.cabinet-reco {
  display: grid;
  gap: 8px;
  border: 1px solid var(--teal-line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--teal-dim), transparent 54%),
    var(--panel);
  padding: 14px 16px;
}
.cabinet-reco > span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.cabinet-reco p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.reco-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 9px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-3);
  padding: 9px 10px;
  cursor: pointer;
}
.reco-row:hover { border-color: var(--teal-line); }
.reco-row span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--teal);
  font-weight: 800;
}
.reco-row b {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reco-row em {
  grid-column: 2;
  min-width: 0;
  color: var(--muted);
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cabinet-tips p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.cabinet-tips p::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--amber);
}

.activity-feed {
  display: grid; gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 14px 16px;
}
.activity-feed > span.act-cap {
  color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px;
}
.act-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.act-row:last-child { border-bottom: none; }
.act-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }
.act-dot.amber { background: var(--amber); }
.act-dot.steel { background: var(--steel); }
.act-ticket { color: var(--muted-2); font-family: var(--mono); font-size: 11px; }
.act-row .act-when { margin-left: auto; color: var(--muted-2); font-family: var(--mono); font-size: 11px; }
.act-empty { color: var(--muted); font-size: 13px; padding: 6px 0; }

/* ====================================================================
   ACCESS / FUNNEL (тарифы)
   ==================================================================== */
.access-view { display: grid; gap: 16px; }
.access-hero {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr); gap: 18px;
  align-items: stretch;
}
.access-hero img {
  width: 100%; min-height: 210px; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(0,0,0,0.34);
}
.paywall-head {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(92, 208, 201, 0.08), transparent 42%),
    var(--panel);
  padding: 22px;
}
.paywall-head .eyebrow { margin-bottom: 6px; }
.paywall-head h2 { margin: 0 0 10px; font-size: 29px; line-height: 1.05; font-weight: 760; color: #eef4f8; }
.paywall-head p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 620px; }

.funnel-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.funnel-steps span {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-3);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  padding: 9px 10px;
}
.choice-strip {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-3);
  padding: 12px 14px;
}
.choice-strip span {
  font-family: var(--mono); font-size: 10px; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.choice-strip b {
  color: var(--text); font-size: 13px; font-weight: 650;
}

.tariff-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tariff-card {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px 16px;
  position: relative;
}
.tariff-card > span {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--muted);
}
.tariff-card > b {
  font-family: var(--mono); font-size: 24px; font-weight: 700; line-height: 1; color: var(--text);
}
.tariff-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1; }
.tariff-card .ghost, .tariff-card .primary { margin-top: 8px; text-align: center; flex: 0 0 auto; }
.tariff-card.featured {
  border-color: var(--amber-line);
  background:
    linear-gradient(180deg, var(--amber-dim), transparent 40%),
    var(--panel);
  box-shadow: 0 0 0 1px var(--amber-line), 0 14px 40px rgba(0,0,0,0.35);
}
.tariff-badge {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  font-style: normal;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--amber); padding: 3px 7px;
  border: 1px solid var(--amber-line); border-radius: 5px;
}
.tariff-card.featured > b { color: var(--amber); }

.funnel-note {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel-3); padding: 12px 14px;
  color: var(--muted); font-size: 12.5px; line-height: 1.45;
}
.funnel-note b { color: var(--teal); font-family: var(--mono); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: #06120f; color: var(--teal);
  border: 1px solid var(--teal-line);
  padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 320;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.telegram-hint {
  position: static;
  z-index: 70;
  width: min(520px, calc(100vw - 20px));
  margin: 14px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--teal-line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  color: var(--muted); font-size: 13px;
}
.telegram-hint a {
  flex: 0 0 auto; border-radius: 7px; padding: 9px 12px;
  background: var(--teal); color: var(--ink-on-teal);
  text-decoration: none; font-weight: 700;
}

.plan-modal {
  position: fixed; inset: 0; z-index: 240;
  display: grid; place-items: center; padding: 18px;
  background: rgba(3, 7, 10, 0.74);
  backdrop-filter: blur(10px);
}
.plan-panel {
  width: min(460px, 100%);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(244, 184, 78, 0.10), transparent 34%),
    var(--panel);
  padding: 22px;
  position: relative;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.plan-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--panel-3);
  color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1;
}
.plan-panel h3 {
  margin: 8px 0 8px; font-size: 28px; line-height: 1.05; color: var(--amber);
}
.plan-panel p {
  margin: 0 0 14px; color: var(--muted); line-height: 1.5;
}
.plan-points { display: grid; gap: 8px; margin: 14px 0; }
.plan-points span {
  display: block; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-3); color: var(--text); padding: 10px 11px; font-size: 13px;
}
.plan-panel .primary { width: 100%; margin-top: 4px; background: var(--amber); color: var(--ink-on-amber); }
.plan-panel small { display: block; margin-top: 10px; color: var(--muted-2); line-height: 1.4; font-size: 12px; }

/* ---------- estimate gate ---------- */
.estimate-modal {
  position: fixed; inset: 0; z-index: 260;
  display: grid; place-items: center; padding: 18px;
  background: rgba(4, 8, 12, 0.74);
  backdrop-filter: blur(10px);
}
.estimate-panel {
  width: min(430px, 100%);
  border: 1px solid var(--teal-line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(92, 208, 201, 0.07), transparent 30%),
    #0f151c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  padding: 16px;
}
.estimate-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.estimate-close {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--panel-3);
  color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1;
}
.estimate-close:hover { color: var(--text); border-color: var(--teal-line); }
.estimate-panel h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.15; }
.estimate-panel p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.estimate-panel label { display: grid; gap: 7px; margin-top: 12px; }
.estimate-panel label span { color: var(--muted); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.estimate-panel input,
.estimate-panel textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel-3);
  color: var(--text);
  outline: none; padding: 12px; resize: vertical;
}
.estimate-panel input:focus,
.estimate-panel textarea:focus { border-color: var(--teal-line); box-shadow: 0 0 0 1px var(--teal-line); }
.estimate-actions { display: flex; gap: 8px; margin-top: 14px; }
.estimate-actions .ghost,
.estimate-actions .primary { flex: 1; text-align: center; }
.estimate-actions .primary:disabled { opacity: 0.65; cursor: wait; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .detail { position: static; min-height: 0; }
  .feed-hint { display: none; }
  .access-bar { flex-direction: column; align-items: stretch; text-align: left; }
  .access-cta { width: 100%; }
  .cabinet-hero,
  .cabinet-workspace {
    grid-template-columns: 1fr;
  }
  .profile-identity {
    align-items: flex-start;
  }
  .cabinet-grid,
  .customers-grid,
  .tariff-grid,
  .funnel-steps,
  .profile-fields,
  .access-hero,
  .profile-radar,
  .choice-strip { grid-template-columns: 1fr; }
  .access-hero img { min-height: 170px; }
  .paywall-head { min-height: 0; }
  .profile-head { align-items: stretch; flex-direction: column; }
  .customers-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .customers-hero img {
    height: auto;
    aspect-ratio: 16 / 9;
    order: -1;
  }
  .customers-hero .primary { width: 100%; text-align: center; }
  .vacancy-modal,
  .customer-modal {
    align-items: end;
    padding: 10px;
  }
  .vacancy-sheet,
  .customer-sheet {
    max-height: calc(100vh - 20px);
    width: 100%;
  }
  .passport-head {
    flex-direction: column;
  }
  .passport-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .shell { width: calc(100vw - 18px); }
  .topbar { gap: 10px; }
  h1 { font-size: 23px; }
  .logo { width: 40px; height: 40px; }
  .app-tabs .tab { padding: 9px 8px; font-size: 13px; }
  .control-panel { padding: 11px; }
  .cabinet-grid { grid-template-columns: 1fr; }
  .profile-avatar { width: 58px; height: 58px; border-radius: 13px; }
  .quick-actions { grid-template-columns: 1fr; }
  .match-meters { grid-template-columns: 1fr; }
  /* фильтры в одну прокручиваемую строку */
  .filters {
    flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters.secondary { flex-wrap: wrap; overflow: visible; }
  .select { flex: 1 1 calc(50% - 4px); }
  .filters.secondary .chip.toggle { flex: 1 1 calc(50% - 4px); text-align: center; }
  .card { padding: 12px; }
  .card-top { grid-template-columns: auto auto minmax(0, 1fr); }
  .card-top .sig,
  .card-top .fresh { grid-column: auto; }
  .card-body { gap: 10px; }
  .title { font-size: 15px; }
  .budget-val { font-size: 20px; }
  .icon-btn { width: 36px; height: 36px; font-size: 15px; }
  .card-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .stat-pill { min-width: 0; }
  .contact-cta { flex: 1 1 auto; justify-content: center; }
  .detail { padding: 14px; }
  .detail-head h2 { font-size: 19px; }
  .price-block { gap: 8px; }
  .price-block b { font-size: 16px; }
  .contact-locked { flex-wrap: wrap; }
  .contact-locked .primary { width: 100%; text-align: center; }
  .passport-vacancy {
    grid-template-columns: 1fr;
  }
  .passport-vacancy span,
  .passport-vacancy small {
    white-space: normal;
  }
  .estimate-modal { align-items: end; padding: 10px; }
  .estimate-panel { padding: 14px; }
  .estimate-actions { flex-direction: column-reverse; }
  .telegram-hint { align-items: stretch; flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse, .skeleton { animation: none; }
  * { scroll-behavior: auto; }
}

/* ====================================================================
   V25 visual upgrade: branded cockpit surface + stronger cabinet
   ==================================================================== */
body {
  background:
    linear-gradient(180deg, rgba(7, 10, 14, 0.76), rgba(7, 10, 14, 0.94) 360px, #080d13 100%),
    image-set(url("assets/ts-radar-channel-banner-v2.png") 1x);
  background-size: 100% 430px, min(1180px, 118vw) auto;
  background-position: center top, center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body::before {
  background:
    linear-gradient(115deg, rgba(92, 208, 201, 0.035) 0 1px, transparent 1px 42%, rgba(244, 184, 78, 0.028) 50%, transparent 58%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 7px);
}
.topbar,
.control-panel,
.card,
.customers-hero,
.cabinet-hero,
.profile-form,
.match-card,
.cabinet-reco,
.cabinet-tips,
.activity-feed,
.access-hero,
.tariff-card,
.desk-panel {
  backdrop-filter: blur(18px);
}
.topbar { padding: 8px 0 12px; }
.brand .logo,
.profile-avatar {
  background: #05090d;
  box-shadow:
    0 0 0 1px rgba(92, 208, 201, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.46),
    inset 0 0 26px rgba(92, 208, 201, 0.12);
}
.access-bar {
  background:
    linear-gradient(90deg, rgba(244, 184, 78, 0.16), rgba(92, 208, 201, 0.04) 56%, transparent),
    rgba(12, 18, 24, 0.82);
}
.control-panel {
  background:
    linear-gradient(135deg, rgba(92, 208, 201, 0.085), transparent 36%),
    rgba(13, 19, 26, 0.84);
}
.card {
  background:
    linear-gradient(135deg, rgba(92, 208, 201, 0.055), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.024), transparent),
    rgba(15, 22, 30, 0.88);
}
.card-foot { align-items: stretch; }
.stat-pill {
  min-width: 108px;
  padding: 8px 10px;
}
.deep-link {
  padding: 7px 10px;
  border: 1px solid var(--teal-line);
  border-radius: 8px;
  background: var(--teal-dim);
  text-decoration: none;
}
.cabinet-view { gap: 12px; }
.cabinet-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  min-height: 166px;
  background:
    linear-gradient(90deg, rgba(8, 13, 18, 0.94), rgba(8, 13, 18, 0.62)),
    image-set(url("assets/ts-radar-channel-banner-v2.png") 1x);
  background-size: cover;
  background-position: center 42%;
  border-color: rgba(92, 208, 201, 0.22);
  box-shadow:
    0 22px 64px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.035);
}
.cabinet-hero::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent 42%, var(--amber));
  opacity: 0.82;
}
.cabinet-hero h2 { font-size: 27px; }
.cabinet-status-card {
  position: relative;
  z-index: 1;
  border-color: rgba(244, 184, 78, 0.48);
  background:
    radial-gradient(160px 80px at 80% 0%, rgba(244, 184, 78, 0.16), transparent 64%),
    rgba(9, 13, 18, 0.78);
}
.cabinet-status-card .primary {
  width: 100%;
  text-align: center;
}
.profile-signal-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.profile-signal-strip span {
  padding: 4px 7px;
  border: 1px solid rgba(92, 208, 201, 0.23);
  border-radius: 6px;
  background: rgba(6, 10, 14, 0.5);
}
.profile-signal-strip i {
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent);
}
.cabinet-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(92, 208, 201, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(92, 208, 201, 0.08), transparent 38%),
    rgba(11, 17, 23, 0.86);
  backdrop-filter: blur(16px);
}
.command-main span {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.command-main b {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}
.command-btn,
.profile-presets button {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(8, 13, 18, 0.78);
  color: var(--muted);
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
}
.command-btn:hover,
.profile-presets button:hover {
  color: var(--text);
  border-color: var(--teal-line);
}
.command-btn.accent {
  color: var(--amber);
  border-color: var(--amber-line);
  background: var(--amber-dim);
}
.cabinet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.desk-panel {
  min-height: 104px;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.025), transparent),
    rgba(12, 18, 24, 0.82);
}
.desk-panel > b { font-size: 25px; }
.cabinet-workspace {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}
.profile-form {
  background:
    linear-gradient(135deg, rgba(92, 208, 201, 0.05), transparent 46%),
    rgba(13, 19, 26, 0.86);
}
.profile-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-fields label:first-child,
.profile-fields label:last-child {
  grid-column: span 2;
}
.profile-radar {
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1fr);
  padding: 14px;
  background:
    radial-gradient(360px 180px at 16% 50%, rgba(92, 208, 201, 0.16), transparent 70%),
    rgba(7, 12, 17, 0.82);
}
.profile-radar img {
  aspect-ratio: 16 / 9;
  max-height: 280px;
}
.profile-route { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.profile-presets button {
  text-align: left;
  color: var(--teal);
  background:
    linear-gradient(135deg, rgba(92, 208, 201, 0.08), transparent),
    rgba(8, 13, 18, 0.76);
}
.match-card,
.cabinet-reco,
.cabinet-tips,
.activity-feed {
  background:
    linear-gradient(135deg, rgba(158, 201, 230, 0.05), transparent 52%),
    rgba(13, 19, 26, 0.84);
}
.quick-actions { gap: 7px; }
.quick-actions .ghost {
  min-height: 42px;
  display: grid;
  place-items: center;
}
.customers-hero,
.access-hero {
  background:
    linear-gradient(90deg, rgba(8, 13, 18, 0.9), rgba(8, 13, 18, 0.62)),
    image-set(url("assets/ts-radar-channel-banner-v2.png") 1x);
  background-size: cover;
  background-position: center;
}
.customers-hero img,
.access-hero img {
  box-shadow:
    0 18px 46px rgba(0,0,0,0.4),
    0 0 0 1px rgba(92,208,201,0.16);
}

@media (max-width: 900px) {
  body { background-size: 100% 360px, 900px auto; }
  .cabinet-command { grid-template-columns: 1fr 1fr; }
  .command-main { grid-column: 1 / -1; }
  .cabinet-grid,
  .profile-fields,
  .profile-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cabinet-workspace,
  .profile-radar { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { background-size: 100% 300px, 780px auto; }
  .cabinet-hero,
  .cabinet-command,
  .cabinet-grid,
  .profile-fields,
  .profile-presets { grid-template-columns: 1fr; }
  .profile-fields label:first-child,
  .profile-fields label:last-child { grid-column: auto; }
  .cabinet-hero {
    min-height: 0;
    padding: 14px;
  }
  .cabinet-hero h2 { font-size: 23px; }
  .profile-signal-strip i { display: none; }
  .command-btn,
  .profile-presets button {
    width: 100%;
    text-align: center;
  }
}

/* ====================================================================
   V26: visible image-led product surfaces + protected customer passports
   ==================================================================== */
body {
  background:
    linear-gradient(180deg, rgba(4, 7, 10, 0.34), rgba(7, 10, 14, 0.88) 420px, #070b10 100%),
    image-set(url("assets/ts-radar-channel-banner-v2.png") 1x),
    linear-gradient(180deg, #070b10, #0a1018);
  background-size: 100% 520px, min(1600px, 150vw) auto, 100% 100%;
  background-position: center top, center top, center top;
  background-repeat: no-repeat;
}
.shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(420px 260px at 12% 28%, rgba(92, 208, 201, 0.12), transparent 72%),
    radial-gradient(360px 220px at 88% 18%, rgba(244, 184, 78, 0.10), transparent 70%);
  opacity: 0.9;
}
.radar-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 1.12fr);
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(92, 208, 201, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(9, 14, 20, 0.92), rgba(9, 14, 20, 0.64)),
    rgba(9, 14, 20, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  backdrop-filter: blur(18px);
}
.radar-hero-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 6px 0 6px 4px;
}
.radar-hero h2 {
  margin: 0 0 8px;
  color: #eef4f8;
  font-size: 30px;
  line-height: 1.02;
}
.radar-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.48;
  max-width: 470px;
}
.radar-hero img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(92, 208, 201, 0.2);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}
.hero-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.hero-flow span {
  padding: 6px 9px;
  border-radius: 7px;
  border: 1px solid rgba(92, 208, 201, 0.26);
  background: rgba(92, 208, 201, 0.08);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.control-panel {
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.035);
}
.customers-hero,
.access-hero {
  min-height: 190px;
}
.customers-hero img,
.access-hero img {
  height: 178px;
}
.customer-access-rule,
.passport-contact-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(244, 184, 78, 0.13), rgba(92, 208, 201, 0.04)),
    rgba(12, 18, 24, 0.88);
  backdrop-filter: blur(16px);
}
.customer-access-rule span,
.passport-contact-lock span {
  display: block;
  margin-bottom: 4px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  white-space: nowrap;
}
.customer-access-rule b,
.passport-contact-lock b {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.36;
}
.passport-contact-lock {
  margin: 14px 0;
}
.passport-contact-lock .primary {
  background: var(--amber);
  color: var(--ink-on-amber);
}
.customer-card {
  min-height: 178px;
  background:
    linear-gradient(140deg, rgba(92, 208, 201, 0.07), transparent 42%),
    radial-gradient(220px 120px at 100% 0%, rgba(244, 184, 78, 0.07), transparent 70%),
    rgba(13, 19, 26, 0.88);
}
.customer-card::after {
  content: "LOCK";
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: rgba(244, 184, 78, 0.16);
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1px;
}
.customer-card > * {
  position: relative;
  z-index: 1;
}
.customer-locked-line {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.customer-locked-line span {
  width: fit-content;
  padding: 4px 7px;
  border: 1px solid var(--amber-line);
  border-radius: 6px;
  background: var(--amber-dim);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.customer-locked-line b {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
}
.passport-head {
  position: relative;
  overflow: hidden;
  margin: -18px -18px 0;
  padding: 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 18, 0.96), rgba(8, 13, 18, 0.70)),
    image-set(url("assets/ts-radar-customer-visual-v1.png") 1x);
  background-size: cover;
  background-position: center;
}
.passport-head::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent, var(--amber));
}

@media (max-width: 760px) {
  .radar-hero {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .radar-hero h2 { font-size: 24px; }
  .radar-hero img {
    order: -1;
    height: 155px;
  }
  .customer-access-rule,
  .passport-contact-lock {
    align-items: stretch;
    flex-direction: column;
  }
  .passport-contact-lock .primary {
    width: 100%;
    text-align: center;
  }
}
