/* =============================================================
   SUPER BUSINESS — рабочее пространство.

   ЦВЕТ. Фон нейтрально-тёмный, без цветного подмеса. Слои разделяет
   не оттенок, а граница: поверхность #12131F + rgba(255,255,255,.08).
   Оранжевый — только акценты: знаки, активные состояния, одна кнопка.

   ТИПОГРАФИКА. Между уровнями заметная разница в калибре:
   24 заголовок заседания → 20 приветствие → 17 заголовок карточки
   → 16 текст реплики → 13 описание → 11 микроподпись.
   ============================================================= */

.sb {
  --bg:      #0A0B14;   /* фон комнаты          */
  --side:    #080912;   /* панель               */
  --surf:    #12131F;   /* приподнятая поверхность */
  --line:    rgba(255,255,255,.08);
  --line-2:  rgba(255,255,255,.18);
  --text:    #EAECF5;
  --mute:    #8B90A8;
  --accent:  #6FA8FF;
  --e: cubic-bezier(.2,0,0,1);
}

/* Верхнее меню сайта уезжает вверх — раздел занимает весь экран */
body.view-super .topbar {
  overflow: hidden;
  transform: translateY(-100%);
  transition: transform .32s cubic-bezier(.2,0,0,1);
  pointer-events: none;
}

.sb {
  position: fixed; inset: 0; z-index: 60;
  display: grid; grid-template-columns: 288px 1fr;
  background: var(--bg);
  font-family: "Onest", system-ui, sans-serif;
  color: var(--text);
}

/* Микроподпись: «• ЗАСЕДАНИЯ» */
.sb-sec {
  display: flex; align-items: center; gap: 7px;
  padding: 0 18px 9px;
  font-size: 11px; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--mute);
}
.sb-sec::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* ---------- Панель ---------- */
.sb-side {
  position: relative; z-index: 2;
  background: var(--side);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.sb.enter .sb-side { animation: sbSideIn .3s var(--e) both; }
@keyframes sbSideIn { from { transform: translateX(-24px); opacity: 0; } }
.sb.enter .sb-cascade > * { animation: sbUp .3s var(--e) both; }
.sb.enter .sb-cascade > *:nth-child(1) { animation-delay: .04s; }
.sb.enter .sb-cascade > *:nth-child(2) { animation-delay: .08s; }
.sb.enter .sb-cascade > *:nth-child(3) { animation-delay: .12s; }
.sb.enter .sb-cascade > *:nth-child(4) { animation-delay: .16s; }
.sb.enter .sb-cascade > *:nth-child(5) { animation-delay: .20s; }
.sb.enter .sb-cascade > *:nth-child(6) { animation-delay: .24s; }
@keyframes sbUp { from { opacity: 0; transform: translateY(8px); } }

.sb-brand {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 18px 16px 16px; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600; color: var(--text);
  letter-spacing: -.01em; text-align: left;
}
.sb-mark { flex: none; width: 22px; height: 22px; color: var(--accent); display: block; }
.sb-mark svg { width: 100%; height: 100%; display: block; }
.sb-brand-t { flex: 1; min-width: 0; }
.sb-brand .sb-chev { width: 14px; height: 14px; color: var(--mute); transition: transform .15s var(--e); }
.sb-brand.open .sb-chev { transform: rotate(180deg); }

.sb-nav { padding: 0 10px 8px; display: none; }
.sb-nav.open { display: block; }
.sb-nav button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--mute); font-family: inherit; font-size: 14.5px; padding: 10px 14px;
  border-radius: 999px; cursor: pointer; min-height: 40px;
  transition: background .15s var(--e), color .15s var(--e);
}
.sb-nav button:hover { background: rgba(255,255,255,.06); color: var(--text); }

/* Кнопка в панели — вторичная: без заливки, оранжевым по границе.
   Главная кнопка одна и она по центру рабочего экрана. */
.sb-new {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 2px 14px 18px; padding: 0 18px; min-height: 44px;
  background: none; border: 1px solid rgba(111,168,255,.45); color: var(--accent);
  border-radius: 999px; font-family: inherit;
  font-size: 14.5px; font-weight: 500; cursor: pointer;
  transition: background .15s var(--e), border-color .15s var(--e);
}
.sb-new svg { width: 16px; height: 16px; flex: none; }
.sb-new:hover { background: rgba(111,168,255,.1); border-color: var(--accent); }
/* Гостю действие недоступно — кнопка приглушена и не реагирует */
.sb-new:disabled {
  border-color: rgba(255,255,255,.12); color: #4A4F66;
  cursor: not-allowed; pointer-events: none;
}

/* Верхняя группа занимает столько, сколько нужно списку, и ужимается,
   когда заседаний много. Свободное место забирает распорка ниже. */
.sb-list-wrap { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; }
/* Распорка: она, а не список, разводит верх и низ панели. */
.sb-gap { flex: 1 1 0; min-height: 0; }
/* Нижняя группа приклеена к низу: состояние вплотную над карточкой. */
.sb-bottom { flex: none; }
.sb-list { flex: 1; overflow-y: auto; padding: 0 10px 12px; min-height: 0; }
/* Полосы прокрутки в разделе не показываем — как в остальных чатах */
.sb-list, .sb-floor, .sb-crew { scrollbar-width: none; -ms-overflow-style: none; }
.sb-list::-webkit-scrollbar, .sb-floor::-webkit-scrollbar { width: 0; height: 0; }
.sb-find {
  display: flex; align-items: center; gap: 8px; margin: 0 10px 8px;
  padding: 0 12px; min-height: 38px;
  background: var(--surf); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s var(--e);
}
.sb-find[hidden] { display: none; }
.sb-find:focus-within { border-color: var(--line-2); }
.sb-find svg { width: 15px; height: 15px; flex: none; color: var(--mute); }
.sb-find input {
  flex: 1; min-width: 0; background: none; border: none; color: var(--text);
  font-family: inherit; font-size: 13.5px; padding: 8px 0;
}
.sb-find input:focus { outline: none; }
.sb-find input::placeholder { color: var(--mute); }

/* Пункт-капсула. Активный — светлая граница и точка, не заливка. */
.sb-item {
  position: relative; display: grid; grid-template-columns: 1fr;
  width: 100%; text-align: left;
  background: none; border: 1px solid transparent; border-radius: 18px;
  padding: 11px 14px 11px 16px; margin-bottom: 4px; cursor: pointer; font-family: inherit;
  transition: background .15s var(--e), border-color .15s var(--e);
}
.sb-item:hover { background: rgba(255,255,255,.04); }
.sb-item.on { border-color: var(--line-2); background: none; }
.sb-item.on::before {
  content: ""; position: absolute; left: 6px; top: 50%; margin-top: -3px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.sb-item-top { display: flex; align-items: baseline; gap: 8px; }
.sb-item-t {
  flex: 1; min-width: 0; font-size: 14.5px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-item-d { flex: none; font-size: 11.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.sb-item-s {
  font-size: 13px; line-height: 18px; color: var(--mute); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-item-x {
  position: absolute; right: 8px; bottom: 7px; width: 26px; height: 26px;
  background: none; border: none; color: var(--mute); border-radius: 50%;
  cursor: pointer; opacity: 0; font-size: 15px; line-height: 1;
  transition: opacity .15s var(--e), color .15s var(--e), background .15s var(--e);
}
.sb-item:hover .sb-item-x { opacity: 1; }
.sb-item-x:hover { color: var(--text); background: rgba(255,255,255,.08); }
.sb-empty-list { color: var(--mute); font-size: 13px; padding: 4px 14px 12px; line-height: 19px; }

.sb-state { border-top: 1px solid var(--line); padding: 16px 0 14px; }
.sb-state-t { font-size: 13px; line-height: 19px; color: var(--mute); padding: 0 18px; }
/* Обещание без действия читается плохо — рядом кнопка с честной подписью. */
.sb-state-go {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 11px 18px 0; padding: 0 8px 0 14px; min-height: 34px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--mute); font-family: inherit; font-size: 13px;
  cursor: not-allowed;
}
/* Пометка, а не часть надписи: мельче, тише и в своей плашке. */
.sb-state-go em {
  font-style: normal; font-size: 9.5px; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; color: #4A4F66;
  background: rgba(255,255,255,.05); border-radius: 999px; padding: 4px 7px;
}

/* Блок пользователя — отделён линией */
.sb-user {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 12px);
}
.sb-user-a {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(111,168,255,.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.sb-user-b { flex: 1; min-width: 0; }
.sb-user-n {
  font-size: 14px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-user-p {
  font-size: 11px; color: var(--mute); margin-top: 2px;
  letter-spacing: .06em; text-transform: uppercase;
}
.sb-user-s {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: none; border: 1px solid var(--line); color: var(--mute); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s var(--e), border-color .15s var(--e);
}
.sb-user-s:hover { color: var(--text); border-color: var(--line-2); }
.sb-user-s svg { width: 17px; height: 17px; }

/* ---------- Комната ---------- */
.sb-room { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.sb.enter .sb-room { animation: sbRoomIn .3s var(--e) .12s both; }
@keyframes sbRoomIn { from { opacity: 0; transform: translateY(16px); } }
.sb-scrim { position: absolute; inset: 0; display: none; }

/* Шапка: возврат — название и дата — участники внахлёст */
.sb-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: rgba(10,11,20,.78); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.sb-back, .sb-burger {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: none; border: 1px solid var(--line); color: var(--mute); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s var(--e), border-color .15s var(--e), background .15s var(--e);
}
.sb-back:hover, .sb-burger:hover { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.04); }
.sb-back svg, .sb-burger svg { width: 19px; height: 19px; }
.sb-burger { display: none; }

.sb-head-c { flex: 1; min-width: 0; text-align: center; }
.sb-title-row { display: flex; align-items: center; justify-content: center; gap: 7px; }
.sb-title {
  flex: 0 1 auto; min-width: 0; text-align: center;
  font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 28px;
  color: #EAECF5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: none; border: none; font-family: inherit; cursor: text;
}
/* Пустое название — не выключенный вид, а обычный белый текст */
.sb-title::placeholder { color: #EAECF5; opacity: 1; }
.sb-pen {
  flex: none; width: 15px; height: 15px; color: var(--mute);
  transition: color .15s var(--e);
}
.sb-pen svg { width: 100%; height: 100%; display: block; }
.sb-title-row:hover .sb-pen { color: #EAECF5; }
.sb-when {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mute); margin-top: 3px;
}

/* Знаки участников внахлёст */
.sb-crew { flex: none; display: flex; align-items: center; gap: 9px; }
.sb-stack { display: flex; align-items: center; }
.sb-face {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--surf); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-left: -10px; transition: margin .3s var(--e), border-color .15s var(--e), transform .15s var(--e);
}
.sb-face:first-child { margin-left: 0; }
.sb-face:hover { transform: translateY(-2px); }
.sb-face.on { border-color: rgba(111,168,255,.5); }
.sb-count { font-size: 12.5px; color: var(--mute); white-space: nowrap; }
.sb-face { position: relative; }
.sb-tip {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 5;
  padding: 7px 11px; border-radius: 10px; white-space: nowrap;
  background: #191A28; border: 1px solid var(--line-2); color: var(--text);
  font-size: 12.5px; font-weight: 400;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity .15s var(--e), transform .15s var(--e);
}
.sb-face:hover .sb-tip, .sb-face:focus-within .sb-tip { opacity: 1; transform: none; }

/* ---------- Знаки ---------- */
.sb-g { display: block; width: 20px; height: 20px; color: var(--accent); }
.sb-g svg { width: 100%; height: 100%; display: block; }
/* В покое знак медленно дышит: 1.0 → 1.04, цикл 3с */
.sb-face .sb-g { opacity: .55; animation: sbBreathe 3s ease-in-out infinite; }
@keyframes sbBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
/* Формулирует — медленная пульсация 3с */
.sb-face .sb-g.think { opacity: 1; animation: sbThink 3s ease-in-out infinite; }
@keyframes sbThink {
  0%,100% { transform: scale(1);    opacity: .55; }
  50%     { transform: scale(1.12); opacity: 1; }
}
/* Говорит — мягкое свечение вокруг знака */
.sb-face .sb-g.talk {
  opacity: 1; animation: none;
  filter: drop-shadow(0 0 8px rgba(111,168,255,.8));
}

/* Вход нового агента: знак крупно по центру, вспышка, кольцо, перелёт */
.sb-arrive {
  position: absolute; z-index: 30; pointer-events: none;
  width: 96px; height: 96px; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.sb-arrive svg { width: 100%; height: 100%; display: block; }
.sb-arrive-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(111,168,255,.7);
  animation: sbRing .55s var(--e) .1s both;
}
@keyframes sbRing {
  from { transform: scale(.5); opacity: .9; }
  to   { transform: scale(2.4); opacity: 0; }
}

/* ---------- Лента ---------- */
.sb-floor {
  position: relative; z-index: 1;
  flex: 1; overflow-y: auto; min-height: 0; scroll-behavior: smooth;
  display: flex; flex-direction: column; gap: 20px;
  /* Колонка контента не шире 760px и по центру: на широком экране
     строки не должны тянуться через весь монитор. */
  padding: 96px max(18px, calc((100% - 760px) / 2)) 116px;
}
/* Лента — флекс-колонка, а её дети по умолчанию сжимаются. Из-за этого
   карточка вызова с длинным текстом ужималась, и текст с кнопками уходил
   под нижний край. Ничему в ленте сжиматься нельзя. */
.sb-floor > * { flex-shrink: 0; }

.sb-msg {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  animation: sbIn .25s var(--e) both; max-width: 760px; width: 100%;
}
@keyframes sbIn { from { opacity: 0; transform: translateY(12px); } }
.sb-msg .sb-g { width: 34px; height: 34px; opacity: 1; margin-top: 24px; }
.sb-name {
  font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 8px;
}
.sb-text {
  background: var(--surf); border: 1px solid var(--line); border-radius: 20px;
  padding: 14px 18px; font-size: 16px; line-height: 25px; color: var(--text);
  white-space: pre-wrap; word-break: break-word; text-transform: none;
}
/* Приветствие — крупный текст прямо на фоне, без плашки */
.sb-msg.first .sb-text {
  background: none; border: none; padding: 0;
  font-size: 20px; line-height: 30px; letter-spacing: -.01em;
}
.sb-msg.first .sb-g { margin-top: 22px; }
.sb-text.typing::after {
  content: ""; display: inline-block; width: 2px; height: 16px;
  margin-left: 2px; vertical-align: -2px; background: var(--accent);
  animation: sbCaret .9s steps(2) infinite;
}
@keyframes sbCaret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

.sb-msg.mine { grid-template-columns: 1fr; justify-items: end; }
.sb-msg.mine .sb-body { max-width: 80%; }
.sb-msg.mine .sb-text { background: rgba(111,168,255,.11); border-color: rgba(111,168,255,.22); }
.sb-sys { text-align: center; font-size: 12.5px; color: var(--mute); padding: 2px 0; }

.sb-dots {
  display: inline-flex; gap: 5px; padding: 17px 20px;
  background: var(--surf); border: 1px solid var(--line); border-radius: 20px;
}
.sb-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: sbDot 1.2s ease-in-out infinite; }
.sb-dots i:nth-child(2) { animation-delay: .15s; }
.sb-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes sbDot { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }

/* ---------- Карточки тем: первая широкая, остальные по две ---------- */
.sb-topics {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; max-width: 760px; width: 100%; margin-left: 48px;
}
.sb-topic {
  position: relative; display: block; text-align: left; cursor: pointer;
  font-family: inherit;
  /* Едва заметный градиент к правому верхнему углу — чтобы карточка
     не читалась плоским прямоугольником. */
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.055), transparent 62%),
    var(--surf);
  border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 52px;
  transition: transform .15s var(--e), border-color .15s var(--e);
  animation: sbCard .3s var(--e) both;
}
@keyframes sbCard { from { opacity: 0; transform: translateY(12px); } }
.sb-topic.wide { grid-column: 1 / -1; }
.sb-topic:nth-child(1) { animation-delay: .05s; }
.sb-topic:nth-child(2) { animation-delay: .10s; }
.sb-topic:nth-child(3) { animation-delay: .15s; }
.sb-topic:nth-child(4) { animation-delay: .20s; }
.sb-topic:nth-child(5) { animation-delay: .25s; }
.sb-topic:nth-child(6) { animation-delay: .30s; }
.sb-topic:hover { transform: translateY(-4px); border-color: var(--line-2); }
.sb-topic.tap { transform: scale(.98); transition-duration: .12s; }

/* Иконка в кружке слева сверху */
.sb-topic-g {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 14px;
}
.sb-topic-g svg { width: 20px; height: 20px; display: block; }
.sb-topic-t { font-size: 17px; font-weight: 500; color: var(--text); margin-bottom: 5px; letter-spacing: -.01em; }
.sb-topic-h { font-size: 13px; line-height: 19px; color: var(--mute); }
/* Главная карточка. Класс rich ставится, только если есть вторая строка —
   иначе высота сравнивается с остальными, чтобы не было пустой дыры. */
.sb-topic.rich { padding: 22px 76px 22px 22px; }
.sb-topic.rich .sb-topic-g { width: 46px; height: 46px; margin-bottom: 16px; }
.sb-topic.rich .sb-topic-g svg { width: 23px; height: 23px; }
.sb-topic.rich .sb-topic-t { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.sb-topic.rich .sb-topic-h { font-size: 14.5px; line-height: 21px; }
.sb-topic-m { font-size: 13.5px; line-height: 20px; color: var(--mute); margin-top: 5px; }
/* У главной стрелка по центру вертикали, а не в углу */
.sb-topic.rich .sb-topic-a { top: 50%; bottom: auto; margin-top: -17px; right: 22px; }
.sb-topic.rich:hover .sb-topic-a { transform: translateX(3px); }

/* Стрелка «перейти» справа снизу */
.sb-topic-a {
  position: absolute; right: 16px; bottom: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--mute);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s var(--e), color .15s var(--e), border-color .15s var(--e);
}
.sb-topic-a svg { width: 15px; height: 15px; display: block; }
.sb-topic:hover .sb-topic-a { transform: translateX(3px); color: var(--accent); border-color: rgba(111,168,255,.45); }

/* ---------- Карточка вызова специалиста ---------- */
.sb-call {
  margin-left: 48px; max-width: 470px; height: auto; overflow: visible;
  background: var(--surf); border: 1px solid rgba(111,168,255,.3); border-radius: 22px;
  padding: 18px; animation: sbSpring .32s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes sbSpring { from { opacity: 0; transform: translateY(14px) scale(.94); } }
.sb-call.gone {
  animation: none; overflow: hidden; opacity: 0; max-height: 0 !important;
  padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; border-width: 0;
  transition: opacity .2s var(--e), max-height .2s var(--e), padding .2s var(--e), border-width .2s var(--e);
}
.sb-call-top { display: flex; align-items: center; gap: 12px; }
.sb-call-top .sb-g { width: 30px; height: 30px; }
.sb-call-n { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.sb-call-r { font-size: 13px; color: var(--mute); margin-top: 1px; }
.sb-call-w { font-size: 14.5px; line-height: 21px; color: var(--mute); margin: 12px 0 16px; }
.sb-call-btns { display: flex; gap: 8px; }
.sb-yes {
  background: var(--accent); color: #0A0B14; border: none; border-radius: 999px;
  padding: 0 22px; min-height: 42px; font-family: inherit; font-size: 14.5px;
  font-weight: 600; cursor: pointer; transition: transform .15s var(--e);
}
.sb-yes:hover { transform: translateY(-2px); }
.sb-no {
  background: none; border: 1px solid var(--line); color: var(--mute);
  border-radius: 999px; padding: 0 20px; min-height: 42px;
  font-family: inherit; font-size: 14.5px; cursor: pointer;
  transition: color .15s var(--e), border-color .15s var(--e);
}
.sb-no:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- Итог ---------- */
.sb-verdict {
  position: absolute; top: 86px; left: 18px; right: 18px; z-index: 2;
  max-width: 760px; margin: 0 auto;
  background: rgba(18,19,31,.95); backdrop-filter: blur(14px);
  border: 1px solid rgba(111,168,255,.4); border-radius: 22px; padding: 16px 18px;
  animation: sbIn .25s var(--e) both;
}
.sb-verdict[hidden] { display: none; }
.sb-verdict-h {
  font-size: 11px; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 7px;
}
.sb-verdict-t { font-size: 16px; line-height: 24px; }
.sb-step { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sb-step-h {
  font-size: 11px; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 5px;
}
.sb-step-t { font-size: 16px; line-height: 24px; }

/* ---------- Поле ввода ---------- */
.sb-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px max(18px, calc((100% - 760px) / 2))
           calc(env(safe-area-inset-bottom, 0px) + 12px);
  background: rgba(10,11,20,.86); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.sb-row { display: flex; gap: 10px; align-items: center; }

/* Поле-капсула: слева инструменты, справа счётчик записи */
.sb-field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px;
  background: var(--surf); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0 8px 0 6px; min-height: 48px;
  transition: border-color .15s var(--e), box-shadow .15s var(--e);
}
.sb-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(111,168,255,.18); }
.sb-tool {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: none; border: none; color: var(--mute); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s var(--e), background .15s var(--e);
}
.sb-tool svg { width: 19px; height: 19px; display: block; }
.sb-tool:hover { color: var(--text); background: rgba(255,255,255,.06); }
/* Идёт запись — знак пульсирует */
.sb-tool.rec { color: var(--accent); animation: sbMic 1.2s ease-in-out infinite; }
@keyframes sbMic { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.sb-rec {
  flex: none; font-size: 13px; color: var(--accent);
  font-variant-numeric: tabular-nums; padding-right: 6px;
}
.sb-rec[hidden] { display: none; }
.sb-input {
  flex: 1; min-width: 0; background: none; color: var(--text);
  border: none; padding: 12px 8px; font-family: inherit; font-size: 16px;
}
.sb-input::placeholder { color: var(--mute); }
.sb-input:focus { outline: none; }

/* Прикреплённый файл — над полем ввода */
.sb-attach[hidden] { display: none; }
.sb-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surf); border: 1px solid var(--line);
  border-radius: 14px; padding: 7px 8px 7px 7px; max-width: 100%;
  animation: sbCard .2s var(--e) both;
}
.sb-chip-i { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none; display: block; }
.sb-chip-p {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(111,168,255,.12); color: var(--accent);
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
}
.sb-chip-n {
  font-size: 13.5px; color: var(--text); min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-chip-x {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: none; border: none; color: var(--mute); cursor: pointer;
  font-size: 16px; line-height: 1;
  transition: color .15s var(--e), background .15s var(--e);
}
.sb-chip-x:hover { color: var(--text); background: rgba(255,255,255,.08); }

/* Имя файла внутри отправленного сообщения */
.sb-msg-file {
  margin-top: 6px; font-size: 13px; color: var(--mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-send {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #0A0B14; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s var(--e), box-shadow .15s var(--e);
}
.sb-send:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(111,168,255,.28); }
.sb-send svg { width: 20px; height: 20px; }

.sb :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px; }

/* Пустая комната */
.sb-blank {
  margin: auto; text-align: center; max-width: 34ch;
  font-size: 17px; line-height: 26px; color: var(--mute);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.sb-head.bare { background: none; backdrop-filter: none; border-bottom: none; }
.sb-blank-go {
  min-height: 46px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #0A0B14; border: none;
  font-family: inherit; font-size: 16px; font-weight: 600;
  transition: transform .15s var(--e), box-shadow .15s var(--e);
}
.sb-blank-go:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(111,168,255,.28); }

/* ---------- Рабочий экран раздела ---------- */
/* Открывается при входе. Область намеренно свободна снизу — сюда
   будут добавляться блоки, поэтому контент прижат к верху колонки. */
.sb-home {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 96px max(18px, calc((100% - 760px) / 2)) 64px;
  scrollbar-width: none;
}
.sb-home::-webkit-scrollbar { width: 0; }
.sb-home-in {
  display: flex; flex-direction: column;
  max-width: 760px; width: 100%; margin: 0 auto;   /* не шире 760 и по центру */
}
/* Дети флекс-колонки по умолчанию сжимаются: из-за этого нижний ряд карточек
   ужимался и уходил за край вместо того, чтобы дать прокрутку. */
.sb-home-in > * { flex-shrink: 0; }
.sb-home-h { display: flex; align-items: center; gap: 10px; margin-top: 48px; }
.sb-home-t {
  margin: 0; min-width: 0; font-size: 32px; line-height: 38px; font-weight: 600;
  letter-spacing: -.025em; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-home-edit {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: none; border: none; color: var(--mute); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s var(--e), background .15s var(--e);
}
.sb-home-edit svg { width: 17px; height: 17px; display: block; }
.sb-home-edit:hover { color: var(--text); background: rgba(255,255,255,.06); }
.sb-home-s { margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--mute); }
.sb-home-go {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px; padding: 0 26px; min-height: 52px;
  background: var(--accent); border: none; color: #0A0B14; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform .15s var(--e), box-shadow .15s var(--e);
}
.sb-home-go svg { width: 18px; height: 18px; flex: none; }
.sb-home-go:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(111,168,255,.3); }
.sb-home-sec { margin-top: 40px; padding-left: 0; padding-right: 0; }
.sb-home-empty {
  margin-top: 28px; max-width: 46ch;
  font-size: 15px; line-height: 23px; color: var(--mute);
}

.sb-recent { display: flex; flex-direction: column; gap: 10px; }
.sb-rec-card {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  font-family: inherit; padding: 16px 18px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.05), transparent 62%),
    var(--surf);
  border: 1px solid var(--line); border-radius: 18px;
  transition: transform .15s var(--e), border-color .15s var(--e);
  animation: sbCard .3s var(--e) both;
}
.sb-rec-card:nth-child(2) { animation-delay: .05s; }
.sb-rec-card:nth-child(3) { animation-delay: .1s; }
.sb-rec-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.sb-rec-card { padding-right: 58px; }
.sb-rec-top { display: flex; align-items: baseline; gap: 10px; }
.sb-rec-t {
  flex: 1; min-width: 0; font-size: 16px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-rec-s {
  margin-top: 5px; font-size: 13px; line-height: 19px; color: var(--mute);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sb-rec-d { flex: none; font-size: 12.5px; color: var(--mute); white-space: nowrap; }
/* Стрелка «перейти» — как в карточках тем */
.sb-rec-a {
  position: absolute; right: 16px; top: 50%; margin-top: -15px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--mute);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s var(--e), color .15s var(--e), border-color .15s var(--e);
}
.sb-rec-a svg { width: 15px; height: 15px; display: block; }
.sb-rec-card:hover .sb-rec-a {
  transform: translateX(3px); color: var(--accent); border-color: rgba(111,168,255,.45);
}

/* Вложение в превью — знаком, а не служебной вставкой в тексте */
.sb-rec-clip {
  width: 13px; height: 13px; flex: none; vertical-align: -2px;
  margin-right: 6px; color: var(--mute);
}
/* Пока названия бизнеса нет — карандаш зовёт заполнить */
.sb-home-edit.ask { color: var(--accent); }
.sb-home-edit.ask::after {
  content: ""; position: absolute; right: 4px; top: 4px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.sb-home-edit { position: relative; }

/* Ссылка на полный список — без обрыва под карточками */
.sb-all {
  align-self: flex-start; margin-top: 14px; padding: 0;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; color: var(--mute);
  border-bottom: 1px solid rgba(255,255,255,.14);
  transition: color .15s var(--e), border-color .15s var(--e);
}
.sb-all:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- Быстрые темы: вход для того, кто не знает, с чего начать ---------- */
.sb-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sb-q {
  /* Одинаковая высота: нижние края выровнены даже при разной длине описания. */
  display: flex; flex-direction: column; align-items: stretch;
  justify-content: flex-start; min-height: 128px;
  text-align: left; cursor: pointer; font-family: inherit;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.05), transparent 62%),
    var(--surf);
  border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  transition: transform .15s var(--e), border-color .15s var(--e);
  animation: sbCard .3s var(--e) both;
}
.sb-q:hover { transform: translateY(-3px); border-color: var(--line-2); }
.sb-q.tap { transform: scale(.98); transition-duration: .12s; }
/* Рекомендованная карточка: подсветка границей и подпись сверху.
   Нажимает всё равно человек — ничего не запускается само. */
.sb-q.lead {
  border-color: rgba(111,168,255,.42);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(111,168,255,.09), transparent 62%),
    var(--surf);
  padding-top: 34px;
}
.sb-q.lead:hover { border-color: rgba(111,168,255,.7); }
.sb-q-mark {
  position: absolute; top: 12px; left: 14px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.sb-q { position: relative; }
.sb-q-g {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--accent); margin-bottom: 11px;
}
.sb-q-g svg { width: 17px; height: 17px; display: block; }
.sb-q-t { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.sb-q-h {
  font-size: 12.5px; line-height: 18px; color: var(--mute);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Симулятор решений ---------- */
.sb-sims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sb-sim {
  display: flex; flex-direction: column; align-items: stretch;
  justify-content: flex-start; min-height: 128px;
  text-align: left; cursor: pointer; font-family: inherit;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.05), transparent 62%),
    var(--surf);
  border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  transition: transform .15s var(--e), border-color .15s var(--e);
  animation: sbCard .3s var(--e) both;
}
.sb-sim:hover { transform: translateY(-3px); border-color: var(--line-2); }
.sb-sim:nth-child(1) { animation-delay: .52s; }
.sb-sim:nth-child(2) { animation-delay: .58s; }
.sb-sim:nth-child(3) { animation-delay: .64s; }
.sb-sim:nth-child(4) { animation-delay: .70s; }

/* Заглушка, пока подбираются темы и расчёты */
.sb-q.skel {
  cursor: default; pointer-events: none;
  border-color: var(--line); background: var(--surf);
  animation: sbSkel 1.4s ease-in-out infinite;
}
.sb-sim.skel {
  cursor: default; pointer-events: none;
  border-color: var(--line); background: var(--surf);
  animation: sbSkel 1.4s ease-in-out infinite;
}
@keyframes sbSkel { 0%,100% { opacity: .35; } 50% { opacity: .6; } }

/* Окно расчёта */
.sb-calc { max-width: 480px; max-height: 86vh; overflow-y: auto; scrollbar-width: none; }
.sb-calc::-webkit-scrollbar { width: 0; }
.sb-calc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sb-calc-n { flex: none; font-size: 12px; color: var(--mute); }
.sb-calc-q { display: block; margin: 16px 0 10px; font-size: 15.5px; line-height: 22px; }
.sb-calc-row { display: flex; align-items: center; gap: 10px; }
.sb-calc-row .sb-modal-i { flex: 1; min-width: 0; }
.sb-calc-u { flex: none; font-size: 15px; color: var(--mute); }
.sb-calc-err { margin-top: 9px; font-size: 13px; line-height: 19px; color: #FF8A8A; }
.sb-calc-err:empty { display: none; }
.sb-calc-wait { margin-top: 18px; font-size: 15px; color: var(--mute); }

.sb-calc-res {
  margin-top: 14px; font-size: 26px; line-height: 32px; font-weight: 600;
  letter-spacing: -.02em; color: var(--accent);
}
.sb-calc-sec {
  margin-top: 20px; margin-bottom: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mute);
}
.sb-calc-row-i {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 20px; color: var(--text);
}
.sb-calc-row-i span { color: var(--mute); }
.sb-calc-row-i b { font-weight: 500; white-space: nowrap; }
/* Пометка допущения — отдельной строкой, чтобы не путали с фактом */
.sb-calc-row-i i {
  grid-column: 1 / -1; font-style: normal;
  font-size: 12.5px; line-height: 18px; color: #8a6a4a;
}
.sb-calc-steps {
  margin: 0; padding-left: 20px;
  font-size: 14px; line-height: 22px; color: var(--text);
}
.sb-calc-steps li { margin-bottom: 6px; }
.sb-calc-verdict {
  margin-top: 18px; padding: 13px 15px;
  background: rgba(111,168,255,.08); border: 1px solid rgba(111,168,255,.25);
  border-radius: 14px; font-size: 15px; line-height: 22px;
}
.sb-calc-foot {
  margin-top: 14px; font-size: 12.5px; line-height: 18px; color: var(--mute);
}

/* ---------- Разобрать документ ---------- */
.sb-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; margin-top: 14px; padding: 18px; cursor: pointer;
  border: 1px dashed rgba(255,255,255,.16); border-radius: 18px;
  background: rgba(255,255,255,.015); text-align: center;
  transition: border-color .15s var(--e), background .15s var(--e);
  animation: sbHomeIn .35s var(--e) .14s both;
}
.sb-drop svg { width: 20px; height: 20px; color: var(--mute); }
.sb-drop-t { font-size: 14.5px; font-weight: 500; color: var(--text); }
.sb-drop-h { font-size: 12.5px; line-height: 18px; color: var(--mute); }
.sb-drop:hover, .sb-drop.over {
  border-color: rgba(111,168,255,.5); background: rgba(111,168,255,.05);
}
.sb-drop.over svg { color: var(--accent); }
.sb-drop.busy { opacity: .5; pointer-events: none; }
.sb-drop.bad { border-color: #FF8A8A; }
.sb-drop.bad .sb-drop-h::after { content: " — файл больше 15 МБ"; color: #FF8A8A; }

/* ---------- Подсказка на шевроне выхода ---------- */
.sb-brand { position: relative; }
/* Раньше подсказка падала под заголовок и накрывала кнопку «Назначить
   заседание». Теперь она выходит вбок от шеврона — соседние элементы чисты. */
.sb-brand-tip {
  position: absolute; top: 50%; left: calc(100% - 10px); z-index: 30;
  margin-top: 2px;
  padding: 6px 10px; border-radius: 9px; white-space: nowrap;
  background: #191A28; border: 1px solid var(--line-2); color: var(--text);
  font-size: 12px; font-weight: 400;
  opacity: 0; pointer-events: none; transform: translate(-6px, -50%);
  transition: opacity .15s var(--e), transform .15s var(--e);
}
.sb-brand:hover .sb-brand-tip { opacity: 1; transform: translate(0, -50%); }
.sb-brand.open .sb-brand-tip { opacity: 0; }
/* Пункты перехода — со знаками, чтобы читались как разделы */
.sb-nav button {
  display: flex; align-items: center; gap: 10px;
  text-align: left; width: 100%;
}
.sb-nav svg { width: 16px; height: 16px; flex: none; opacity: .8; }

/* ---------- Появление рабочего экрана ---------- */
.sb-home-h, .sb-home-s, .sb-home-go { animation: sbHomeIn .35s var(--e) both; }
.sb-home-s { animation-delay: .05s; }
.sb-home-go { animation-delay: .1s; }
@keyframes sbHomeIn { from { opacity: 0; transform: translateY(16px); } }
/* Карточки — каскадом следом за кнопкой */
.sb-rec-card:nth-child(1) { animation-delay: .16s; }
.sb-rec-card:nth-child(2) { animation-delay: .22s; }
.sb-rec-card:nth-child(3) { animation-delay: .28s; }
.sb-q:nth-child(1) { animation-delay: .34s; }
.sb-q:nth-child(2) { animation-delay: .40s; }
.sb-q:nth-child(3) { animation-delay: .46s; }

/* Смена содержимого правой части, 250мс */
.sb-room.swap-out { opacity: 0; transform: translateY(-8px); transition: opacity .12s var(--e), transform .12s var(--e); }
.sb-room.swap-in  { animation: sbSwapIn .25s var(--e) both; }
@keyframes sbSwapIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Окно «Назначить заседание» ---------- */
.sb-modal {
  position: absolute; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,.6);
  animation: sbFade .18s var(--e) both;
}
@keyframes sbFade { from { opacity: 0; } }
.sb-modal.out { opacity: 0; transition: opacity .18s var(--e); }
.sb-modal-w {
  width: 100%; max-width: 420px;
  background: var(--surf); border: 1px solid var(--line-2); border-radius: 22px;
  padding: 22px;
  animation: sbPop .22s var(--e) both;
}
@keyframes sbPop { from { opacity: 0; transform: scale(.96); } }
.sb-modal-t { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 16px; }
.sb-modal-i {
  width: 100%; background: #0C0D17; color: var(--text);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 13px 18px; font-family: inherit; font-size: 16px; min-height: 48px;
  transition: border-color .15s var(--e), box-shadow .15s var(--e);
}
.sb-modal-i::placeholder { color: var(--mute); }
.sb-modal-i:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(111,168,255,.18); }
.sb-modal-h { margin-top: 10px; font-size: 13px; line-height: 19px; color: var(--mute); }
.sb-modal-b { display: flex; gap: 8px; margin-top: 20px; }
.sb-modal-go {
  background: var(--accent); color: #0A0B14; border: none; border-radius: 999px;
  padding: 0 24px; min-height: 46px; font-family: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; transition: transform .15s var(--e);
}
.sb-modal-go:hover { transform: translateY(-2px); }
.sb-modal-no {
  background: none; border: 1px solid var(--line); color: var(--mute);
  border-radius: 999px; padding: 0 20px; min-height: 46px;
  font-family: inherit; font-size: 15px; cursor: pointer;
  transition: color .15s var(--e), border-color .15s var(--e);
}
.sb-modal-no:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- Раздел до входа ---------- */
.sb-guest {
  flex: 1; overflow-y: auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 96px max(18px, calc((100% - 760px) / 2)) 48px;
}
.sb-guest-in {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 460px;
  animation: sbCard .35s var(--e) both;
}
.sb-guest-g { width: 48px; height: 48px; color: var(--accent); display: block; }
.sb-guest-g svg { width: 100%; height: 100%; display: block; }
.sb-guest-t {
  margin: 18px 0 0; font-size: 26px; line-height: 33px; font-weight: 600;
  letter-spacing: -.02em; color: var(--text);
}
.sb-guest-go {
  margin-top: 24px; min-height: 50px; padding: 0 34px;
  background: var(--accent); border: none; color: #0A0B14; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform .15s var(--e), box-shadow .15s var(--e);
}
.sb-guest-go:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(111,168,255,.3); }
.sb-guest-l {
  margin: 30px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 9px; text-align: left;
}
.sb-guest-l li {
  position: relative; padding-left: 18px;
  font-size: 14.5px; line-height: 21px; color: var(--mute);
}
.sb-guest-l li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7;
}

/* Вместо карточки пользователя — вход */
.sb-user-in {
  width: 100%; min-height: 44px; border-radius: 999px;
  background: none; border: 1px solid var(--line-2); color: var(--text);
  font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background .15s var(--e), border-color .15s var(--e);
}
.sb-user-in:hover { background: rgba(255,255,255,.06); border-color: var(--accent); }

/* ---------- Узкий экран ---------- */
@media (max-width: 860px) {
  .sb { grid-template-columns: 1fr; }
  .sb-side {
    position: absolute; inset: 0 auto 0 0; width: 288px; z-index: 20;
    transform: translateX(-100%); transition: transform .28s var(--e);
  }
  .sb.side-open .sb-side { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.7); }
  .sb.enter .sb-side { animation: none; }
  .sb-burger { display: flex; }
  .sb-scrim {
    display: block; z-index: 15; background: rgba(0,0,0,.55);
    opacity: 0; pointer-events: none; transition: opacity .28s;
  }
  .sb.side-open .sb-scrim { opacity: 1; pointer-events: auto; }
  .sb-head { gap: 10px; padding: 12px 14px; }
  .sb-title { font-size: 19px; line-height: 25px; }
  .sb-when { font-size: 10px; }
  .sb-count { display: none; }              /* в шапке узко — оставляем знаки */
  /* Участников может быть пятеро — полоса прокручивается, а не давит заголовок.
     Подсказка с ролью на телефоне не нужна: наведения мышью нет. */
  .sb-crew { max-width: 42%; min-width: 0; }
  .sb-stack { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .sb-stack::-webkit-scrollbar { width: 0; height: 0; }
  .sb-tip { display: none; }
  .sb-face { width: 30px; height: 30px; }
  .sb-face .sb-g { width: 17px; height: 17px; }
  .sb-floor { padding-left: 16px; padding-right: 16px; }
  .sb-call, .sb-topics { margin-left: 0; }
  .sb-topics { grid-template-columns: 1fr; }
  .sb-quick, .sb-sims { grid-template-columns: 1fr; }
  /* Перетаскивать на телефоне нечем — остаётся выбор файла. */
  .sb-drop { flex-direction: row; gap: 8px; padding: 13px 16px; min-height: 48px; }
  .sb-drop-h { display: none; }
  .sb-calc { max-height: 82vh; }
  .sb-home-h { margin-top: 32px; }
  .sb-topic.rich .sb-topic-t { font-size: 19px; }
  .sb-topic.rich { padding: 20px 62px 20px 18px; }
  /* Область нажатия не меньше 44px по высоте */
  .sb-tool { width: 40px; height: 44px; border-radius: 22px; }
  .sb-home { padding-left: 16px; padding-right: 16px; }
  .sb-home-t { font-size: 26px; line-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .sb-msg, .sb-call, .sb-verdict, .sb-topic, .sb-rec-card, .sb-guest-in,
  .sb-q, .sb-sim, .sb-drop, .sb-home-h, .sb-home-s, .sb-home-go { animation: none; }
  .sb-sim.skel, .sb-q.skel { animation: none; opacity: .4; }
  .sb-sim:hover { transform: none; }
  .sb-q:hover { transform: none; }
  .sb-guest-go:hover { transform: none; }
  .sb-modal, .sb-modal-w, .sb-room.swap-in { animation: none; }
  .sb-home-go:hover, .sb-rec-card:hover, .sb-modal-go:hover { transform: none; }
  .sb-dots i, .sb-arrive-ring, .sb-face .sb-g, .sb-face .sb-g.think { animation: none; }
  .sb-tool.rec, .sb-chip { animation: none; }
  .sb-text.typing::after { animation: none; }
  .sb.enter .sb-side, .sb.enter .sb-room, .sb.enter .sb-cascade > * { animation: none; }
  .sb-send:hover, .sb-new:hover, .sb-topic:hover, .sb-yes:hover,
  .sb-blank-go:hover, .sb-face:hover, .sb-topic:hover .sb-topic-a { transform: none; }
  body.view-super .topbar { transition: none; }
  .sb-floor { scroll-behavior: auto; }
}


/* =============================================================
   ПУНКТ НАВИГАЦИИ «SUPER BUSINESS»

   Капсула с НЕПРОЗРАЧНОЙ тёмной заливкой. Именно непрозрачной:
   раньше подложка была полупрозрачно-белой, и на светлой теме
   (Мой Офис, Поддержка) белый текст ложился на светлый фон и
   пропадал. Тёмная заливка одинаково работает на любой теме.

   Оранжевый — только знак-ромб и граница при наведении.
   ============================================================= */

.mainnav .nav-link.nav-super {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px;
  border-radius: 999px;
  background: #12131F;                       /* непрозрачно — читается везде */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.16),   /* граница */
    inset 0 1px 0 rgba(255,255,255,.10),     /* блик по верхней кромке */
    0 1px 10px rgba(0,0,0,.22);
  color: #FFFFFF;
  transition:
    transform .45s cubic-bezier(.22,.61,.36,1),
    box-shadow .25s ease,
    background .25s ease;
}
/* Текст и знак — над световым проходом */
.mainnav .nav-link.nav-super .ns-icon,
.mainnav .nav-link.nav-super .ns-text { position: relative; z-index: 1; }

/* --- Световой проход --- */
.mainnav .nav-link.nav-super::before {
  content: "";
  position: absolute; top: -60%; bottom: -60%; left: -45%;
  width: 42%;
  z-index: 0;                                /* поверх заливки, под текстом */
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.10) 35%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,.10) 65%,
    rgba(255,255,255,0) 100%);
  filter: blur(6px);
  opacity: 0;
  transform: translateX(-160%) skewX(-18deg);
  will-change: transform, opacity;
  animation: nsSweep 6.5s cubic-bezier(.4,0,.25,1) infinite;
}

/* Блик проходит ~1.4 с, остальные ~5 с элемент спокоен.
   Пик приглушён до .28: при .55 белый текст на подсвеченном месте
   падал до контраста 3:1 — нечитаемо в момент прохода. */
@keyframes nsSweep {
  0%   { transform: translateX(-160%) skewX(-18deg); opacity: 0; }
  4%   { opacity: .28; }
  16%  { opacity: .28; }
  22%  { transform: translateX(340%) skewX(-18deg); opacity: 0; }
  100% { transform: translateX(340%) skewX(-18deg); opacity: 0; }
}

/* --- Мягкое внутреннее свечение --- */
.mainnav .nav-link.nav-super .ns-ambient {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(120% 140% at 50% 120%,
    rgba(111,168,255,.16), transparent 62%);
  opacity: .7;
  transition: opacity .25s ease;
}

/* --- Знак-ромб и текст --- */
.mainnav .nav-link.nav-super .ns-icon {
  width: 13px; height: 13px; flex: none;
  color: #6FA8FF;
  transition: color .25s ease, filter .25s ease;
}
.mainnav .nav-link.nav-super .ns-text {
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
  color: #FFFFFF;
}

/* --- Наведение: граница подсвечивается оранжевым --- */
.mainnav .nav-link.nav-super:hover {
  transform: scale(1.015);
  background: #191A28;
  color: #FFFFFF;
  box-shadow:
    inset 0 0 0 1px rgba(111,168,255,.75),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 4px 18px rgba(0,0,0,.3);
}
.mainnav .nav-link.nav-super:hover .ns-text { color: #FFFFFF; }
.mainnav .nav-link.nav-super:hover::before { animation-duration: 4.4s; }
.mainnav .nav-link.nav-super:hover .ns-ambient { opacity: 1; }
.mainnav .nav-link.nav-super:hover .ns-icon {
  color: #8FBEFF;
  filter: drop-shadow(0 0 6px rgba(111,168,255,.5));
}

/* --- Активное состояние: граница оранжевая постоянно ---
   Селекторы с четырьмя классами намеренно: правила светлой темы
   (body.view-office .nav-link.active) иначе перекрасили бы текст. */
.mainnav .nav-link.nav-super.active,
.mainnav .nav-link.nav-super.active:hover {
  background: #191A28;
  color: #FFFFFF;
  box-shadow:
    inset 0 0 0 1px rgba(111,168,255,.6),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 2px 14px rgba(0,0,0,.26);
}
.mainnav .nav-link.nav-super.active .ns-text { color: #FFFFFF; }
.mainnav .nav-link.nav-super.active .ns-icon { color: #6FA8FF; }
.mainnav .nav-link.nav-super.active .ns-ambient { opacity: 1; }

/* Фокус с клавиатуры виден и не спорит с оранжевой границей */
.mainnav .nav-link.nav-super:focus-visible {
  outline: 2px solid #6FA8FF; outline-offset: 3px;
}

/* -------------------------------------------------------------
   Телефоны: эффекты мягче
   ------------------------------------------------------------- */
@media (max-width: 640px) {
  .mainnav .nav-link.nav-super { padding: 8px 13px; gap: 6px; }
  .mainnav .nav-link.nav-super .ns-icon { width: 12px; height: 12px; filter: none; }
  .mainnav .nav-link.nav-super::before { filter: blur(8px); }
  .mainnav .nav-link.nav-super .ns-ambient { opacity: .5; }
  .mainnav .nav-link.nav-super:hover { transform: none; }
}

/* -------------------------------------------------------------
   «Меньше движения»: статичная поверхность, читаемость та же
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .mainnav .nav-link.nav-super::before { animation: none; opacity: 0; }
  .mainnav .nav-link.nav-super { transition: none; }
  .mainnav .nav-link.nav-super:hover { transform: none; }
}

/* =============================================================
   Кинематографическая заставка Super Business.
   Показывается ПОВЕРХ уже открытого раздела — он грузится под ней,
   поэтому к концу ролика экран готов, и человек не упирается в спиннер.
   ============================================================= */
.sb-cine {
  position: fixed; inset: 0; z-index: 9600;
  background: #000; overflow: hidden;
  opacity: 1; transition: opacity .5s ease;
}
.sb-cine[hidden] { display: none; }
.sb-cine.out { opacity: 0; pointer-events: none; }
.sb-cine canvas { display: block; width: 100%; height: 100%; }

/* «Пропустить» — намеренно неброско, появляется через 1.5 с */
.sb-cine-skip {
  position: absolute; z-index: 2;
  right: calc(env(safe-area-inset-right, 0px) + 22px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  background: none; border: none; cursor: pointer;
  font-family: "Onest", "Inter", system-ui, sans-serif;
  font-size: 13px; letter-spacing: .02em; color: rgba(255,255,255,.3);
  padding: 10px 6px; min-height: 44px;
  animation: sbCineSkipIn .8s ease both;
}
.sb-cine-skip[hidden] { display: none; }
.sb-cine-skip:hover { color: rgba(255,255,255,.75); }
@keyframes sbCineSkipIn { from { opacity: 0; } to { opacity: 1; } }

/* Короткая заставка обновления: что появилось в разделе */
.sb-cine-new {
  position: absolute; z-index: 2; left: 50%; bottom: 12%;
  transform: translateX(-50%); text-align: center;
  font-family: "Onest", "Inter", system-ui, sans-serif; color: #fff;
  animation: sbCineNewIn .9s cubic-bezier(.22,.61,.36,1) .4s both;
}
.sb-cine-new[hidden] { display: none; }
@keyframes sbCineNewIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translateX(-50%); } }
.sb-cine-title { font-size: clamp(15px, 2.4vw, 20px); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.sb-cine-new ul { list-style: none; margin: 16px 0 0; padding: 0; }
.sb-cine-new li { font-size: 14.5px; color: rgba(255,255,255,.62); margin-top: 8px; }
.sb-cine-go {
  margin-top: 22px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22); color: #fff;
  border-radius: 999px; padding: 13px 34px; font: inherit; font-size: 14px;
  cursor: pointer; min-height: 46px; transition: background .3s ease, border-color .3s ease;
}
.sb-cine-go:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }

@media (prefers-reduced-motion: reduce) {
  .sb-cine, .sb-cine-skip, .sb-cine-new { transition: none; animation: none; }
}

/* =============================================================================
   СТАРТ-ЭКРАН SUPER BUSINESS — оформление под референс основателя.
   Добавлено поверх базовых правил (идёт последним — выигрывает по каскаду).
   Цвета — только из палитры .sb; новых литералов нет, кроме прозрачностей.
   Общий знак — шестиугольник (clip-path), без лиц и глаз.
   ============================================================================= */

.sb {
  --grad: linear-gradient(135deg, #4DA6FF, #A855F7);
  --grad-soft: linear-gradient(135deg, rgba(77,166,255,.18), rgba(168,85,247,.18));
  --hexclip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ---------- Сайдбар: логотип и градиентная кнопка ---------- */
.sb-brand-t { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.sb-mark { width: 26px; height: 26px; color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(77,166,255,.5)); }

.sb-new.grad {
  margin: 4px 14px 20px; min-height: 50px; padding: 0 18px;
  background: var(--grad); border: 0; color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 10px 30px rgba(77,166,255,.28), 0 0 40px rgba(168,85,247,.2),
              inset 0 1px 0 rgba(255,255,255,.28);
}
.sb-new.grad:hover { background: var(--grad); filter: brightness(1.06);
  transform: translateY(-1px); box-shadow: 0 14px 38px rgba(77,166,255,.36),
              0 0 56px rgba(168,85,247,.28), inset 0 1px 0 rgba(255,255,255,.3); }
.sb-new-g { width: 22px; height: 22px; flex: none; color: #fff; display: block; }
.sb-new-g svg { width: 100%; height: 100%; display: block; }

/* ---------- Главная область: контейнер и свечение-планета ---------- */
.sb-sup { position: relative; max-width: 1180px; }
.sb-sup-glow {
  position: absolute; top: -60px; right: -40px; width: 460px; height: 420px;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 42% at 62% 40%, rgba(168,85,247,.5), transparent 70%),
    radial-gradient(52% 52% at 78% 26%, rgba(77,166,255,.32), transparent 72%);
  filter: blur(30px);
}
.sb-sup-glow::after {
  content: ""; position: absolute; top: 30px; right: 70px; width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, rgba(168,85,247,.28), transparent 60%);
  box-shadow: inset 0 0 60px rgba(77,166,255,.35), 0 0 50px rgba(168,85,247,.25);
}
.sb-sup > * { position: relative; z-index: 1; }

.sb-sup-head { margin-top: 40px; }
.sb-sup-t {
  display: flex; align-items: center; gap: 16px;
  margin: 0; font-size: 46px; font-weight: 800; letter-spacing: -.03em;
  line-height: 1.05; color: var(--text);
}
.sb-sup-mark { width: 40px; height: 40px; flex: none; color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(77,166,255,.55)); }
.sb-sup-mark svg { width: 100%; height: 100%; display: block; }
.sb-sup-s { margin: 12px 0 0; font-size: 16px; line-height: 24px; color: var(--mute); max-width: 60ch; }

/* ---------- Крупная кнопка «Назначить заседание» ---------- */
.sb-sup-go {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; margin-top: 28px; min-height: 76px; padding: 0 26px;
  background: var(--grad); border: 0; border-radius: 20px; color: #fff;
  font-family: inherit; font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(77,166,255,.3), 0 0 60px rgba(168,85,247,.24),
              inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .18s var(--e), filter .18s var(--e), box-shadow .18s var(--e);
}
.sb-sup-go:hover { transform: translateY(-2px); filter: brightness(1.05);
  box-shadow: 0 22px 56px rgba(77,166,255,.4), 0 0 80px rgba(168,85,247,.3),
              inset 0 1px 0 rgba(255,255,255,.3); }
.sb-sup-go:active { transform: translateY(0); }
.sb-sup-go-g { width: 34px; height: 34px; flex: none; color: #fff;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16); border-radius: 10px; }
.sb-sup-go-g svg { width: 22px; height: 22px; display: block; }

/* ---------- Зона «Загрузить документы» (drag&drop) ---------- */
.sb-drop {
  display: flex; align-items: center; gap: 16px; flex-direction: row;
  margin-top: 16px; padding: 22px 24px; min-height: 0;
  border: 1.5px dashed var(--line-2); border-radius: 18px;
  background: rgba(255,255,255,.02); cursor: pointer;
  transition: border-color .18s var(--e), background .18s var(--e);
}
.sb-drop:hover, .sb-drop.over {
  border-color: rgba(77,166,255,.6); background: rgba(77,166,255,.06);
}
.sb-drop.busy { opacity: .6; pointer-events: none; }
.sb-drop.bad { border-color: #FF8A8A; }
.sb-drop-g {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  color: #E6ECFF; background: var(--grad-soft); clip-path: var(--hexclip);
  filter: drop-shadow(0 0 10px rgba(77,166,255,.35));
}
.sb-drop-g svg { width: 22px; height: 22px; display: block; }
.sb-drop-b { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.sb-drop-t { font-size: 15.5px; font-weight: 600; color: var(--text); }
.sb-drop-h { font-size: 13px; line-height: 18px; color: var(--mute); }

/* ---------- Две колонки: темы и расчёты ---------- */
.sb-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; margin-top: 22px; padding-bottom: 24px;
}
.sb-col {
  padding: 20px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(25,26,40,.5), rgba(18,19,31,.34));
}
.sb-col-h {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--text);
}
.sb-col-g {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  color: #E6ECFF; background: var(--grad-soft); clip-path: var(--hexclip);
  filter: drop-shadow(0 0 8px rgba(77,166,255,.32));
}
.sb-col-g svg { width: 19px; height: 19px; display: block; }
.sb-col-empty { font-size: 13.5px; line-height: 20px; color: var(--mute); padding: 4px 2px 8px; }

/* Карточки тем и расчётов внутри колонок — вертикальным списком */
.sb-quick, .sb-sims { display: flex; flex-direction: column; gap: 12px; }

.sb-q, .sb-sim {
  position: relative; display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px 52px 16px 16px; text-align: left;
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255,255,255,.02); cursor: pointer;
  transition: border-color .18s var(--e), transform .18s var(--e), background .18s var(--e);
}
.sb-q:hover, .sb-sim:hover {
  transform: translateY(-2px); border-color: rgba(77,166,255,.45);
  background: rgba(77,166,255,.05);
}
.sb-q.lead { border-color: transparent; box-shadow: 0 0 0 1px rgba(77,166,255,.4); }
.sb-q.lead::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude; pointer-events: none;
}
.sb-q-g {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  color: #E6ECFF; background: var(--grad-soft); clip-path: var(--hexclip);
  filter: drop-shadow(0 0 8px rgba(77,166,255,.3)); border-radius: 0;
}
.sb-q-g svg { width: 20px; height: 20px; display: block; }
.sb-q-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sb-q-t { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: var(--text); margin: 0; }
.sb-q-h { font-size: 13px; line-height: 18px; color: var(--mute); margin: 0;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sb-q-a {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center; color: var(--mute);
  border: 1px solid var(--line); border-radius: 50%;
  transition: color .18s var(--e), border-color .18s var(--e);
}
.sb-q-a svg { width: 15px; height: 15px; display: block; }
.sb-q:hover .sb-q-a, .sb-sim:hover .sb-q-a { color: var(--text); border-color: var(--line-2); }
.sb-q.skel, .sb-sim.skel { min-height: 76px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .sb-cols { grid-template-columns: 1fr; }
  .sb-sup-t { font-size: 38px; }
}
@media (max-width: 860px) {
  .sb-sup-head { margin-top: 24px; }
  .sb-sup-t { font-size: 30px; gap: 10px; }
  .sb-sup-mark { width: 30px; height: 30px; }
  .sb-sup-go { min-height: 62px; font-size: 18px; }
  .sb-sup-glow { width: 300px; height: 300px; right: -60px; }
  .sb-quick, .sb-sims { grid-template-columns: 1fr; }
  .sb-tools { grid-template-columns: 1fr; }
}

/* ---------- Ниша и инструменты под неё ---------- */
.sb-niche-line {
  margin-top: 12px; font-size: 13.5px; color: var(--mute);
  display: flex; align-items: center; gap: 8px;
}
.sb-niche-line b { color: var(--text); font-weight: 600; }
.sb-niche-edit {
  background: none; border: 0; color: var(--accent); font: inherit; font-size: 13.5px;
  cursor: pointer; padding: 2px 4px; border-radius: 8px;
}
.sb-niche-edit:hover { text-decoration: underline; }

.sb-tools-h { margin-top: 26px; }
.sb-tools-niche { color: var(--accent); font-weight: 600; }
.sb-tools {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px;
}
.sb-tool-card {
  position: relative; display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px; text-align: left;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(25,26,40,.5), rgba(18,19,31,.34));
  cursor: pointer; font: inherit;
  transition: border-color .18s var(--e), transform .18s var(--e), background .18s var(--e);
}
.sb-tool-card:hover {
  transform: translateY(-2px); border-color: rgba(77,166,255,.45);
  background: rgba(77,166,255,.05);
}
.sb-tool-card.tap { transform: scale(.98); transition-duration: .12s; }

/* =============================================================================
   КОНТРОЛЬ СРОКОВ ГОДНОСТИ / СКЛАД — инструмент для товароведов.
   Мобайл-first: крупные кнопки и шрифт, минимум шагов, палитра проекта.
   ============================================================================= */
.sh-head { gap: 10px; }
.sh-back {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  background: none; border: 0; color: var(--mute); font: inherit; font-size: 15px;
  cursor: pointer; padding: 6px 8px; border-radius: 10px; min-height: 40px;
}
.sh-back:hover { color: var(--text); background: rgba(255,255,255,.05); }
.sh-back svg { width: 18px; height: 18px; }
.sh-head-t { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }

.sh { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px 28px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.sh::-webkit-scrollbar { width: 6px; }
.sh::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 999px; }
.sh-load, .sh-empty {
  color: var(--mute); font-size: 15.5px; line-height: 23px; text-align: center;
  padding: 40px 16px; max-width: 42ch; margin: 0 auto;
}

/* Сводка: крупные плитки-кнопки (они же фильтры) */
.sh-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.sh-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 14px 8px; min-height: 74px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  font: inherit; cursor: pointer; text-align: center;
  transition: border-color .16s var(--e), background .16s var(--e), transform .16s var(--e);
}
.sh-card b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.sh-card span { font-size: 12px; color: var(--mute); line-height: 15px; }
.sh-card:hover { transform: translateY(-1px); }
.sh-card.on { border-color: transparent; box-shadow: 0 0 0 2px currentColor inset; }
.sh-exp b { color: #FF8A8A; } .sh-exp.on { color: #FF8A8A; }
.sh-soon b { color: #FBBF24; } .sh-soon.on { color: #FBBF24; }
.sh-risk { cursor: default; }
.sh-risk b { color: var(--text); font-size: 20px; }

/* Крупные кнопки действий */
.sh-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.sh-add {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 60px; border: 0; border-radius: 16px;
  background: var(--grad); color: #fff; font: inherit; font-size: 18px; font-weight: 700;
  letter-spacing: -.01em; cursor: pointer;
  box-shadow: 0 10px 30px rgba(77,166,255,.28), 0 0 40px rgba(168,85,247,.2),
              inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .16s var(--e), filter .16s var(--e);
}
.sh-add:hover { transform: translateY(-1px); filter: brightness(1.05); }
.sh-add:active { transform: translateY(0); }
.sh-add svg { width: 22px; height: 22px; }
.sh-discuss {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; border: 1px solid var(--line-2); border-radius: 16px;
  background: rgba(255,255,255,.03); color: var(--text); font: inherit; font-size: 16px;
  font-weight: 600; cursor: pointer; transition: border-color .16s var(--e), background .16s var(--e);
}
.sh-discuss:hover { border-color: var(--accent); background: rgba(77,166,255,.07); }
.sh-hex { width: 26px; height: 26px; flex: none; color: var(--accent); display: block; }
.sh-hex svg { width: 100%; height: 100%; }

/* Поиск + чип «Всё» */
.sh-controls { display: flex; gap: 10px; margin-bottom: 14px; }
.sh-search {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 50px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02);
}
.sh-search:focus-within { border-color: rgba(77,166,255,.45); }
.sh-search svg { width: 18px; height: 18px; color: var(--mute); flex: none; }
.sh-search input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--text); font: inherit; font-size: 16px;
}
.sh-search input::placeholder { color: var(--mute); }
.sh-chip {
  flex: none; min-height: 50px; padding: 0 20px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  color: var(--text); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.sh-chip.on { border-color: transparent; background: var(--grad); color: #fff; }

/* Список позиций */
.sh-list { display: flex; flex-direction: column; gap: 10px; }
.sh-item {
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  background: rgba(255,255,255,.02); position: relative;
}
.sh-item::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px;
  border-radius: 0 4px 4px 0;
}
.sh-expired::before { background: #FF8A8A; }
.sh-soon::before { background: #FBBF24; }
.sh-ok::before { background: #2DD4BF; }
.sh-item-t { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.sh-tag {
  font-size: 11px; font-weight: 700; color: #A855F7; background: rgba(168,85,247,.14);
  padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 4px;
}
.sh-item-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; }
.sh-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.sh-b-expired { color: #FF8A8A; background: rgba(255,138,138,.14); }
.sh-b-soon { color: #FBBF24; background: rgba(251,191,36,.14); }
.sh-b-ok { color: #2DD4BF; background: rgba(45,212,191,.14); }
.sh-days { font-size: 13.5px; color: var(--mute); }
.sh-qty { font-size: 13.5px; color: var(--mute); }
.sh-item-act { display: flex; gap: 8px; margin-top: 12px; }
.sh-mini {
  flex: 1; min-height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--text); font: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; transition: border-color .16s var(--e), background .16s var(--e);
}
.sh-mini:hover { border-color: var(--line-2); }
.sh-md.on { border-color: transparent; background: rgba(168,85,247,.18); color: #C9A8FF; }
.sh-wo:hover { border-color: #FF8A8A; color: #FF8A8A; }

/* Форма добавления */
.sh-add-w { max-width: 460px; }
.sh-add-top { display: flex; align-items: center; justify-content: space-between; }
.sh-x { background: none; border: 0; color: var(--mute); font-size: 20px; cursor: pointer;
  width: 40px; height: 40px; border-radius: 10px; }
.sh-x:hover { color: var(--text); background: rgba(255,255,255,.06); }
.sh-saved {
  margin: 6px 0 12px; padding: 10px 14px; border-radius: 12px;
  background: rgba(45,212,191,.12); color: #2DD4BF; font-size: 14px; font-weight: 600;
}
.sh-scan {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; margin: 6px 0 14px; border-radius: 14px;
  border: 1px solid var(--accent); background: rgba(77,166,255,.08);
  color: var(--text); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.sh-scan:hover { background: rgba(77,166,255,.14); }
.sh-scan svg { width: 22px; height: 22px; color: var(--accent); }
.sh-scanbox { margin-bottom: 12px; }
.sh-scanbox[hidden] { display: none; }
#shScanView { width: 100%; border-radius: 14px; overflow: hidden; background: #000; }
#shScanView video { width: 100% !important; height: auto !important; display: block; }
.sh-scan-stop {
  width: 100%; min-height: 46px; margin-top: 8px; border-radius: 12px;
  border: 1px solid var(--line-2); background: none; color: var(--text);
  font: inherit; font-size: 15px; cursor: pointer;
}
.sh-scan-hint { font-size: 13.5px; line-height: 20px; color: #FBBF24; margin-bottom: 12px; }
.sh-scan-hint[hidden] { display: none; }
.sh-l { display: block; font-size: 13px; color: var(--mute); margin: 12px 0 6px; }
.sh-i {
  width: 100%; box-sizing: border-box; min-height: 54px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surf);
  color: var(--text); font: inherit; font-size: 17px;
  transition: border-color .16s var(--e);
}
.sh-i:focus { outline: none; border-color: rgba(77,166,255,.5); }
.sh-i.sh-auto { border-color: rgba(45,212,191,.6); }   /* подставлено из памяти */
.sh-date { line-height: 54px; }
.sh-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sh-err { color: #FF8A8A; font-size: 14px; min-height: 18px; margin: 10px 0 0; }
.sh-save {
  width: 100%; min-height: 58px; margin-top: 14px; border: 0; border-radius: 16px;
  background: var(--grad); color: #fff; font: inherit; font-size: 18px; font-weight: 700;
  cursor: pointer; box-shadow: 0 10px 30px rgba(77,166,255,.28), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .16s var(--e), filter .16s var(--e);
}
.sh-save:hover { transform: translateY(-1px); filter: brightness(1.05); }
.sh-save:disabled { opacity: .6; cursor: default; transform: none; }

@media (max-width: 520px) {
  .sh-sum { grid-template-columns: 1fr 1fr; }
  .sh-risk { grid-column: 1 / -1; flex-direction: row; gap: 8px; }
  .sh-row2 { grid-template-columns: 1fr; }
}

/* =============================================================================
   ПРОГРАММА ЛОЯЛЬНОСТИ — касса: быстро найти, начислить, готово. Мобайл-first.
   ============================================================================= */
.loy { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px 28px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.loy::-webkit-scrollbar { width: 6px; }
.loy::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 999px; }

/* --- Настройка модели --- */
.loy-setup { max-width: 520px; margin: 0 auto; }
.loy-hex { width: 64px; height: 64px; margin: 8px 0 14px; color: var(--accent);
  filter: drop-shadow(0 0 16px rgba(77,166,255,.45)); }
.loy-hex svg { width: 100%; height: 100%; }
.loy-h { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.loy-sub { font-size: 15px; color: var(--mute); margin: 0 0 20px; }
.loy-opt { display: block; width: 100%; text-align: left; margin-bottom: 12px;
  padding: 18px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(25,26,40,.5), rgba(18,19,31,.34));
  color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .16s var(--e), transform .16s var(--e); }
.loy-opt:hover { border-color: rgba(77,166,255,.5); transform: translateY(-2px); }
.loy-opt-t { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.loy-opt-h { font-size: 13.5px; line-height: 20px; color: var(--mute); margin: 4px 0 12px; }
.loy-opt-cfg { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.loy-i-sm { width: 84px; text-align: center; }

/* --- Статистика (только реальная) --- */
.loy-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.loy-stat { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 14px 8px; min-height: 74px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02); text-align: center; }
.loy-stat b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.loy-stat span { font-size: 11.5px; color: var(--mute); line-height: 15px; }
.loy-stat-empty b { color: var(--mute); font-size: 20px; }

/* --- Список клиентов --- */
.loy-list { display: flex; flex-direction: column; gap: 8px; }
.loy-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255,255,255,.02); color: var(--text); font: inherit; cursor: pointer;
  min-height: 66px; transition: border-color .16s var(--e), background .16s var(--e); }
.loy-row:hover { border-color: var(--line-2); background: rgba(77,166,255,.05); }
.loy-av { width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--grad); color: #fff; font-size: 19px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(77,166,255,.3); }
.loy-row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.loy-row-n { font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loy-row-p { font-size: 13.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.loy-row-bal { flex: none; text-align: right; display: flex; flex-direction: column; }
.loy-row-bal b { font-size: 18px; font-weight: 800; color: #2DD4BF; letter-spacing: -.01em; }
.loy-row-bal i { font-size: 11px; color: var(--mute); font-style: normal; }

/* --- Согласие ПДн (152-ФЗ) --- */
.loy-consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  margin: 16px 0 4px; padding: 14px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.02); cursor: pointer; }
.loy-consent.bad { border-color: #FF8A8A; }
.loy-consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.loy-consent input:checked + .cl-check-box { background: linear-gradient(135deg,#4DA6FF,#A855F7);
  border-color: transparent; }
.loy-consent input:checked + .cl-check-box::after { transform: rotate(-45deg) scale(1); }
.loy-consent-t { font-size: 13px; line-height: 19px; color: var(--mute); }

/* --- Карточка клиента: вау, но по делу --- */
.loy-card-w { max-width: 440px; }
.loy-phone { font-size: 14px; color: var(--mute); margin: -4px 0 16px; font-variant-numeric: tabular-nums; }
.loy-bal { position: relative; text-align: center; padding: 26px 16px; margin-bottom: 16px;
  border-radius: 20px; border: 1px solid rgba(45,212,191,.3);
  background: radial-gradient(120% 120% at 50% 0%, rgba(45,212,191,.16), rgba(18,19,31,.2));
  box-shadow: 0 0 44px rgba(45,212,191,.14) inset; }
.loy-bal-v { font-size: 52px; font-weight: 800; letter-spacing: -.03em; color: #2DD4BF; line-height: 1;
  text-shadow: 0 0 24px rgba(45,212,191,.4); font-variant-numeric: tabular-nums; }
.loy-bal-l { font-size: 13px; color: var(--mute); margin-top: 6px; }
.loy-flash { animation: loyFlash .7s var(--e); }
@keyframes loyFlash { 0% { box-shadow: 0 0 0 rgba(45,212,191,0) inset; }
  40% { box-shadow: 0 0 70px rgba(45,212,191,.5) inset; border-color: rgba(45,212,191,.7); }
  100% { box-shadow: 0 0 44px rgba(45,212,191,.14) inset; } }
.loy-ready { color: #2DD4BF; }

.loy-ops { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.loy-op-go { width: 100%; min-height: 58px; border: 0; border-radius: 16px;
  background: var(--grad); color: #fff; font: inherit; font-size: 18px; font-weight: 700;
  cursor: pointer; box-shadow: 0 10px 30px rgba(77,166,255,.28), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .16s var(--e), filter .16s var(--e); }
.loy-op-go:hover { transform: translateY(-1px); filter: brightness(1.05); }
.loy-op-sec { width: 100%; min-height: 50px; border: 1px solid var(--line-2); border-radius: 14px;
  background: none; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.loy-op-sec:hover { border-color: var(--accent); }
.loy-op-reward { width: 100%; min-height: 54px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg,#2DD4BF,#4DA6FF); color: #04201c; font: inherit;
  font-size: 16px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 30px rgba(45,212,191,.3); }
.loy-prompt { display: flex; gap: 10px; margin: 10px 0 4px; }
.loy-prompt .sh-i { margin: 0; }
.loy-prompt .loy-op-go { width: auto; padding: 0 22px; min-height: 54px; white-space: nowrap; }

.loy-hist-h { font-size: 13px; color: var(--mute); margin: 18px 0 8px; }
.loy-hist { display: flex; flex-direction: column; }
.loy-hi { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.loy-hi:last-child { border-bottom: 0; }
.loy-hi-k { color: var(--text); }
.loy-hi-p { font-weight: 700; font-variant-numeric: tabular-nums; }
.loy-hi-p.pos { color: #2DD4BF; }
.loy-hi-p.neg { color: var(--mute); }
.loy-hi-d { font-size: 12.5px; color: var(--mute); white-space: nowrap; }
.loy-hist-empty { color: var(--mute); font-size: 14px; padding: 6px 2px; }

@media (max-width: 520px) {
  .loy-stats { grid-template-columns: 1fr 1fr; }
  .loy-stat:nth-child(3) { grid-column: 1 / -1; flex-direction: row; gap: 8px; }
  .loy-bal-v { font-size: 46px; }
}
