:root {
  --max-width: 450px;
  --gray-1: #F9F9F9;
  --gray-2: #F3F3F3;
  --gray-3: #E5E5E5;
  --gray-4: #B0B0B0;
  --gray-5: #323232;
  --green-1: #D4F5E4;
  --green-2: #A3EFC7;
  --green-3: #3CC47C;
  --beige-2: #FCEEE4;
  --beige-3: #F6DFD1;
  --lightblue-1: #E0F4FD;
  --lightblue-3: #5CCDEB;
  --lilac-0: #FAF7FF;
  --lilac-1: #EFEAF8;
  --lilac-2: #E5DBF9;
  --lilac-3: #CCB8F2;
  --red: #EB5757;
  --red-light: #ffd4d4;
  --orange: #F2994A;
  --yellow: #FFD748;
  --yellow-light: #FFF3CA;
}

* {
  box-sizing: border-box;
  margin: 0;
  font-family: 'Exo 2', sans-serif;
  color: var(--gray-5);
}

*:focus {
  outline-color: var(--green-2);
}

::placeholder {
  color: var(--text-muted);
  opacity: 1; /* Firefox */
}

/* Oceanic — ЛИЦЕНЗИРОВАН ТОЛЬКО Bold (type.today, web-лицензия, заказ 44027).
  Следствие, принятое осознанно 27.07.2026.
  Новый вес добавлять НЕЛЬЗЯ без покупки соответствующего начертания. */
@font-face {
  font-family: 'Oceanic';
  src: url("../fonts/Oceanic-Bold-Web.b3fa0ed9d3d7.woff2") format('woff2'),
       url("../fonts/Oceanic-Bold-Web.c46c5c8cc74b.woff") format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.notifications-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.notifications-btn:hover {
  background-color: var(--gray-1);
}

.notifications-btn.active {
  background-color: var(--green-2);
  box-shadow: 0 0 10px 0 var(--green-3);
}

.notifications-btn.active:hover {
  background-color: var(--green-1);
  box-shadow: 0 0 10px 0 var(--green-2);
}

a {
  color: var(--green-3);
}

[data-title]:hover:after {
  opacity: 1;
  transition: all 0.1s ease 0.5s;
  visibility: visible;
}

[data-title]:after {
  content: attr(data-title);
  max-width: 200px;
  background-color: white;
  position: fixed;
  transform: translate(-50%, 30px);
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px #00000033;
  opacity: 0;
  z-index: 99999;
  visibility: hidden;
  font-size: 12px;
  line-height: 16px;
}

[data-title] {
  position: relative;
}

html {
  padding: 0;
  height: 100%;
}

body {
  margin: 0 auto;
  padding: 0;
  /*max-width: var(--max-width);*/
  min-height: 100%;
}

p {
  margin-block-start: 1em;
  margin-block-end: 1em;
}

/* Нейтральная база для ВСЕХ <button> (2026-07-19). Раньше здесь жила тёмная пилюля —
   из-за неё каждая конвертация div→button требовала нейтрализатора .btn-unstyled.
   Просто убрать правило было нельзя: обнажился бы UA-хром (ButtonFace-заливка,
   2px outset рамка, нативные padding/шрифт, cursor:default) — это не нейтральность.
   Поэтому правило гасит именно UA-хром, и ничего больше (без appearance/-webkit-*).
   Пилюля стала opt-in — см. .btn-pill ниже. */
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Тёмная пилюля — теперь по классу. Свойства байт-в-байт из прежнего элементного button{}.
   Объявлена в самом раннем CSS (style.css) → компонентные классы, объявленные позже
   (.btn-50, .help-submit, .occ-add-btn, .button-add-custom-date, .btn-contacts),
   выигрывают каскадом при равной специфичности — ровно как раньше выигрывали у (0,0,1). */
.btn-pill {
  background-color: #3D3D3D;
  color: #fff; /* White text */
  border: none;
  padding: 15px 20px;
  border-radius: 20px; /* Rounded corners */
  cursor: pointer;
  transition: background-color 0.3s ease; /* Smooth transition for hover effect */
  font-size: 16px;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
}

hr {
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--gray-3);
}

#horizontalGrid {
  position: relative;
  display: flex;
  min-height: calc(100vh - 85px);
}

#desktopMainSpace {
  width: 100%;
}

.default-head {
  font-family: 'Oceanic', sans-serif;
  min-height: 70px;
  padding: 20px 0;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 30px;
}
.hidden-element {
  display: none !important;
}

.btn {
  cursor: pointer;
}
.page-loading {
  position: absolute;
  top: calc(50% - 31px);
  left: calc(50% - 31px);
}

.loading-content {
  padding: 50px 0;
  text-align: center;
}

.loading-content svg,
.page-loading svg {
  animation: rotate 2s linear infinite;
}

.page-loading svg {
  animation: rotate 2s linear infinite;
}

.char-counter {
  display: block;
  text-align: right;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.page-error {
  position: absolute;
  width: 100%;
  /*max-width: var(--max-width);*/
  margin: 0 auto;
  top: 200px;
  text-align: center;
}

/* ONBOARDING: */

h1 {
  max-width: 70%;
  margin: 0 auto 15px auto;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 30px;
}

.input-container {
  padding: 5px 10px;
  background-color: var(--gray-1);
  border: 1px solid var(--gray-3);
  border-radius: 5px;
  /*max-width: var(--max-width);*/
}

.input-container textarea,
.input-container input[type="text"],
.input-container input[type="tel"],
.input-container input[type="email"],
.input-container input[type="date"] {
  width: 100%;
  padding-bottom: 2px;
  border: none;
  outline: none;
  background-color: transparent;
  resize: none;
  font-size: 16px;
}

input[type=text] {
  border: none;
  outline: none;
}

.input-container select {
  padding: 5px 10px;
  background-color: transparent;
  border: 1px solid var(--gray-3);
  border-radius: 5px;
}
input[type=file] {
  display: none;
}

/*COMMON*/

.padded-hor {
  padding-left: 20px;
  padding-right: 20px;
}
.bottom-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
}

.bottom-panel-container {
  margin: 30px auto;
  padding: 0 40px;
  max-width: 450px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shaded-bottom-panel {
  box-shadow: 0 0 15px #202020;
}

.bottom-panel-item {
  height: 50px;
  cursor: pointer;
}

.otp-input input {
  width: 40px;
  height: 50px;
  margin: 10px;
  padding: 5px;
  border: none;
  border-bottom: 2px solid var(--gray-4);
  color: var(--green-3);
  font-size: 18px;
  text-align: center;
}
.appendmeister {
  height: 200px;
}

/*DROPDOWNS*/

/* The container <div> - needed to position the dropdown content */
.dropdown-menu {
  padding: 3px 0;
  position: fixed;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 0 5px var(--gray-4);
  text-align: left;
}

/* Items inside the dropdown */
.dropdown-item {
  color: black;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}
/*DESKTOP*/

@media (min-width: 1200px) {

  .desktop-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    padding: 0 25px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
  }

  .desktop-heading .part {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .desktop-heading .brand {
    display: flex;
    cursor: pointer;
  }

  .desktop-heading .brand .title {
    font-family: 'Oceanic', sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 35px;
  }

  .desktop-heading .brand .logo {
    display: block;
    margin: 0 150px 0 10px;
  }

  .desktop-heading .search-container {
    display: flex;
    padding: 10px;
    border: 1px solid var(--gray-3);
    border-radius: 7px;
    background-color: var(--gray-2);
  }

  .desktop-heading .search-container input[type="text"] {
    width: 300px;
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
  }

  .contact-search-icon-clear {
    cursor: pointer;
  }

  #contactSearchDropdown {
    position: fixed;
    z-index: 10;
    left: 350px;
    top: 63px;
    padding: 0;
  }

  #contactSearchDropdown .dropdown-item {
    width: 338px;
    border-radius: 10px;
    cursor: pointer;
  }

  #contactSearchDropdown .dropdown-item:hover {
    background-color: var(--gray-1);
  }

  #contactSearchDropdown .dropdown-item .full-name {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
  }

  #contactSearchDropdown .dropdown-item .short-bio {
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: var(--text-muted);
  }

  #desktopLeftBar {
    z-index: 9;
    min-height: 100%;
    padding: 40px 10px 10px 10px;
    background-color: var(--gray-1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  }

  #desktopLeftBar .item {
    display: flex;
    align-content: center;
    width: 300px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
  }

  #desktopLeftBar .item.selected {
    background-color: var(--lilac-1);
  }

  #desktopLeftBar .item:hover {
    background-color: var(--lilac-1);
  }

  #desktopLeftBar .item svg {
    margin-right: 10px;
  }

  #desktopLeftBar hr {
    margin: 20px 0 20px 10px;
  }

  #desktopRightBar {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
    width: 0;
    min-height: 100vh;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    transition: width 0.1s linear;
  }

  .main-container {
    min-height: 100%;
    padding: 20px;
  }

  .content-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    height: 80px;
  }

  .content-head-left {
    display: flex;
    gap: 10px;
  }

  .content-head-right {
    display: flex;
  }

  .content-head .title {
    font-family: 'Oceanic', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 35px;
  }

  .content-head .shortcut {
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .content-head-left .shortcut {
    gap: 5px;
    height: 43px;
    padding: 3px 27px;
    border-radius: 25px;
    background-color: var(--green-2);
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
  }

  .content-head-right .shortcut {
    gap: 8px;
    height: 43px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: var(--text-muted);
  }

  .content-head-right .shortcut:hover {
    background-color: var(--gray-2);
  }

  .main-container-title {
    margin-bottom: 30px;
    font-family: 'Oceanic', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 48px;
  }

  .mobile-to-desktop {
    max-width: 450px;
    margin: 0 auto;
  }
  .mobile-heading {
    display: none;
  }

  #tabletMobileMainPanel {
    display: none;
  }

  #tabletMobileDashboard {
    display: none;
  }
  .tablet-bottom {
    display: none;
  }

  .mobile-bottom {
    display: none;
  }

  .mobile {
    display: none;
  }
}

/*MOBILE*/

@media (max-width: 1199px) {
  body {
    max-width: 450px;
  }

  .gray-body {
    background-color: var(--gray-2);
  }

  .arrow-back {
    position: absolute;
    top: 20px;
    left: 15px;
    cursor: pointer;
  }

  .mobile-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    width: 100%;
  }

  .main-panel {
    padding: 10px 20px;
  }

  .home-container {
    width: 100%;
    border-radius: 25px;
    background-color: white;
    box-shadow: 0 0 5px var(--gray-4);
  }

  .desktop-heading {
    display: none;
  }

  #desktopLeftBar {
    display: none;
  }
  #desktopDashboard {
    display: none;
  }

  #desktopRightBar {
    display: none;
  }

  .tablet-bottom {
    display: none;
  }

  .mobile-bottom {
    display: block;
  }

  .desktop {
    display: none;
  }
}

/* ============================================================================
   НИЖЕ — бывший crm.css, влит сюда в фазе 4 (сервис остался один, «CRM-only»
   больше не означает ничего). Слияние сделано КОНКАТЕНАЦИЕЙ, а не пересборкой:
   порядок деклараций тот же, что был при двух <link> в base.html
   (style.css → crm.css), поэтому вычисленные стили не изменились ни на пиксель.

   ИНВАРИАНТ: этот блок обязан оставаться ПОСЛЕ верхней части файла. Он её
   переопределяет при равной специфичности, и переопределения держатся ТОЛЬКО
   порядком — см., например, `#desktopLeftBar` (flex-колонка поверх правила
   выше) и `:root` с токенами поверх примитивов. Перенос блока вверх или
   перетасовка правил внутри него молча изменят вид страниц.
   ============================================================================ */

:root {
  /* Вторичный текст. --gray-4 (#B0B0B0) — 2.16:1 на белом, проваливает WCAG AA. Отдельный
     токен, а не override --gray-4: тот несёт ещё ~23 ДЕКОРАТИВНЫХ использования (тени,
     границы, заливки, скроллбар), их перекрашивать нельзя. #6f6f6f измерен на фактических
     фонах вторичного текста: 5.02:1 (white) / 4.77 (--gray-1 #F9F9F9, дашборд) /
     4.53 (--gray-2 #F3F3F3, карточки) — AA на всех трёх. Первый токен системы этапа 2. */
  --text-muted: #6f6f6f;
}

/* ============================================================
   Токены дизайн-системы (этап 2). Шкалы + семантика ПОВЕРХ примитивов
   style.css (--gray-* и --green-* остаются примитивами).
   Читать их можно без фоллбэка: style.css подключён в base.html и его расширяют
   ВСЕ страницы — проверено полным чтением templates/ 27.07.2026.
   Прежние var(--token, #литерал) снимались фазой 4: фоллбэк страховал случай
   «MEET без crm.css», которого больше нет. Письма токенов не используют вовсе.
   Живущие токены (--text-muted выше; --settings-column/--exit-bg ниже) НЕ
   дублируются — новый код строится поверх них. Правила снапа при миграции:
   сдвиг ≤2px (≤1px для шрифта) и не в плотной сетке; иначе литерал + этап 3.
   ============================================================ */
:root {
  /* Отступы — 8/4-сетка */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Типографика — ~7 ступеней; line-height задаётся безразмерным по месту */
  --fs-xs: 12px;
  --fs-sm: 14px;       /* ядро слоя (14px — 28×) */
  --fs-base: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;       /* h1 auth */
  --fs-display-1: 28px;
  --fs-display-2: 42px;
  --fs-display-3: 52px;

  /* Радиусы (border-radius:50% — идиома «круг», токеном не заводим) */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 10px;   /* самый частый, 7× */
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-pill: 999px;

  /* Тени — «карточная» высота: покой / подъём */
  --shadow-sm: 0 1px 6px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.11);

  /* Семантические цвета поверх примитивов */
  --ink: #0f172a;              /* основной тёмный текст auth/subscribe (был ×16) */
  --border: #e2e8f0;           /* Tailwind slate-200; держит рампу с --surface-2/--ink; сюда сведён тёплый #e6eaf0 */
  --surface-1: #fafafa;        /* near-white заливка (otp-поле, disabled-инпут) */
  --surface-2: #f1f5f9;        /* slate-100 чип/ссылка */
  --danger: #d32f2f;           /* текст ошибок, AA на белом 4.5:1 */
  --danger-bg: #fdecec;        /* плашка ошибки/expired */
  --danger-border: #f5c6c6;
}

/* A11y-пол: видимое фокус-кольцо. :focus-visible, а не :focus — не светится от кликов мышью.
   Кольцо и раньше рисовалось (style.css:33 `*:focus { outline-color: var(--green-2) }`,
   #A3EFC7 ≈ 1.4:1), но было практически невидимо — здесь мы его ПРОЯВЛЯЕМ, а не добавляем.
   !important — вынужденно: в page-CSS 11× `outline: none`, два из них специфичностью (1,1,1)
   (#contactContent .contacts input, #desktopRightBarContact .contacts input), а page-CSS
   грузится ПОСЛЕ style.css → обобщённым селектором не перебить. Скоуп строго :focus-visible —
   вне момента фокуса ни на что не влияет. Прецедент !important в репо: .hidden-element.
   --gray-5 (#323232, 12.6:1) — единственный токен палитры с контрастом ≥3:1 (WCAG 1.4.11);
   lilac-3/lightblue-3/green-3 не дотягивают. outline-offset — чтобы кольцо не тонуло в
   тёмной заливке элементного button {} (#3D3D3D). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gray-5) !important;
  outline-offset: 2px !important;
}

/* OTP-ячейки несут собственное кольцо через box-shadow (login.css:237) — глушим outline,
   чтобы при keyboard-фокусе не было двух индикаторов. Специфичность (0,2,1) > (0,1,1). */
.login-otp input:focus-visible { outline: none !important; }

/* Reset под конвертацию div→button на этапе 3: нейтрализует элементное правило button {}
   из style.css (тёмная пилюля #3D3D3D, padding 15/20, radius 20, font 16/600). Точечный
   сброс, а не all: unset — all снёс бы display (button стал бы inline), box-sizing и
   наследование шрифта пришлось бы восстанавливать руками; предсказуемость важнее краткости.
   Фокус-кольцо из правила выше наследуется автоматически (button:focus-visible) — не гасим.
   ПОКА НЕ ПРИМЕНЯЕТСЯ НИГДЕ. */
/* СВЕРКА С button-reset (2026-07-19): элементное button{} в style.css стало нейтральным
   reset'ом с тем же ядром (background/border/padding/font/color/cursor) — в этой части класс
   теперь ДУБЛИРУЕТ его. Но полным no-op он НЕ стал: своими остаются три живых свойства —
   display:block, border-radius:0 и text-align:inherit (line-height:inherit избыточен, входит
   в font:inherit). Поэтому класс обязан остаться; снимать — при будущих касаниях, не разом. */
.btn-unstyled {
  display: block;   /* заменяет блочный div: <button> по умолчанию inline-block → сжимался бы; правила-компоненты с display:flex/inline перебивают это по специфичности/порядку */
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: pointer;
}

/* read-only write-gate banner (slice B) — управляется globalStatus.write_blocked */
.read-only-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);   /* 10→8: баннер, сдвиг неразличим */
  background: #f4e7c3;                       /* амбер-предупреждение, не danger */
  color: #5c4a1a;
  font-size: var(--fs-sm);
  text-align: center;
}
.read-only-banner[hidden] { display: none; }  /* hidden побеждает display:flex */
.read-only-banner-cta {
  color: #5c4a1a;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

/* ============================================================
   Полноэкранный брендированный лоадер первичной загрузки (Фаза 1).
   Рестайл существующего #pageLoading.
   Специфичность: #pageLoading (1,0,0) > shared .page-loading (0,1,0);
                  #pageLoading svg (1,0,1) > shared .page-loading svg (0,1,1).
   style.css (.page-loading / @keyframes rotate) НЕ мутируем.
   Hide остаётся за .hidden-element { display:none !important } (style.css:204).
   ============================================================ */
#pageLoading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background-color: var(--gray-1);   /* зеркалит bg-background; тёмной темы в прод-CRM нет */
}

/* Прячем дотовый глиф из templates.js — вместо него брендированный лоадер выше */
#pageLoading svg { display: none; }

/* Настоящий вордмарк Netplan (порт logo.svg из app_client) вместо глифа.
   netplan-logo.svg тёмный (#323232) — читаем на светлом var(--gray-1); тёмной темы в прод-CRM нет.
   url относительный к static/css/style.css → не зависит от STATIC_URL. */
#pageLoading::after {
  content: '';
  width: 162px;                        /* ~зеркалит dev h-10 (40px) при аспекте 149:37 */
  height: 40px;
  background: url("../images/netplan-logo.90a41f110a58.svg") center / contain no-repeat;
  animation: crm-loader-pulse 1.6s ease-in-out infinite;   /* CRM-only имя; shared rotate не трогаем */
}

@keyframes crm-loader-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50%      { opacity: 1;   transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  #pageLoading::after { animation: none; opacity: 1; transform: none; }   /* логотип статичен */
}

/* ============================================================
   Плашка-счётчик пробного периода — низ левого сайдбара.
   #desktopLeftBar делаем flex-колонкой здесь же (override style.css по
   порядку загрузки, та же специфичность 1,0,0) → margin-top:auto прижимает
   плашку вниз. style.css / templates.js НЕ мутируем.
   ============================================================ */
@media (min-width: 1200px) {
  #desktopLeftBar { display: flex; flex-direction: column; }   /* зеркалит брейкпоинт style.css; ≤1199 сохраняет display:none */
}

.trial-plate {
  margin-top: auto;                 /* прижать к низу сайдбара */
  width: 300px;                     /* зеркалит ширину .item */
  box-sizing: border-box;
  padding: var(--space-4);          /* 14→16: одиночная карточка */
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--gray-3);
}
.trial-plate-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);              /* 10→8 */
  margin-bottom: 6px;               /* off-grid: тесный зазор шапки */
}
/* ВАЖНО: красим САМИ элементы (число + svg), т.к. style.css `* { color: var(--gray-5) }`
   ставит прямой color на каждый потомок и бьёт наследование от .trial-plate-head.
   Зелёный = маркер «ещё есть дни триала» (> TRIAL_NOTICE_DAYS). */
.trial-plate-count,
.trial-plate-head svg            { color: var(--green-3); }
.trial-plate-note  { font-size: var(--fs-sm); color: var(--text-muted); line-height: 18px; }  /* 13→14 */
.trial-plate-count { font-weight: 600; font-size: var(--fs-sm); }

/* срочно: ≤ TRIAL_NOTICE_DAYS дней — акцент на orange (тоже напрямую на число+svg) */
.trial-plate--urgent .trial-plate-count,
.trial-plate--urgent .trial-plate-head svg { color: var(--orange); }

/* ended: триал завершён (read_only) — кликабельная карточка → /settings_subscribe/.
   Копия БЕЗ эмодзи; цвета напрямую (см. причину выше про * { color }).
   CTA — orange (требует действия), НЕ green: зелёный остаётся за active-триалом. */
.trial-plate--ended { cursor: pointer; }
.trial-plate--ended:hover { border-color: var(--gray-4); }
.trial-plate-title { font-weight: 600; font-size: var(--fs-sm); color: var(--gray-5); margin-bottom: var(--space-1); }
.trial-plate-cta   { font-size: var(--fs-sm); color: var(--orange); }  /* 13→14 */

/* Колонка семейства страниц настроек (/settings/, /settings_subscribe/,
   /settings_notifications/). Единственное объявление ширины — отсюда её берут
   и page-CSS подписки. Класс, а не .mobile-to-desktop: тот же класс носят
   contact/add_activity/notifications, их ширину трогать нельзя. */
:root {
  --settings-column: 548px;
}

.main-container.settings-column {
  max-width: var(--settings-column);
  margin: 0 auto;
}

:root {
  --exit-bg: #F9E3DB;
}

.settings-column .base-options {
  border-radius: var(--radius-xl);   /* 15→16 */
}

.settings-column .base-options-exit {
  margin-top: var(--space-4);
  background-color: var(--exit-bg);
}

.settings-column .base-options-exit .base-options-item {
  color: var(--gray-5);
}

.settings-column .base-options-exit .base-options-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-5);
}

.settings-column .help-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);         /* 15→16 */
  padding: var(--space-6) var(--space-6);  /* 22→24 верт. */
}

.settings-column .help-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.settings-column .help-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: var(--space-3) var(--space-4);  /* 12 / 14→16 */
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--gray-5);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  resize: vertical;
}

.settings-column .help-submit {
  margin-top: var(--space-4);
  width: 100%;
}

.settings-column .help-card-success {
  text-align: center;
}

.settings-column .help-success-icon {
  width: 51px;
  height: 74px;
  margin: var(--space-1) auto var(--space-4);
  display: block;
}

.settings-column .help-success-title {
  font-size: var(--fs-base);   /* 17→16 */
  font-weight: 500;
  color: var(--gray-5);
}

.settings-column .help-success-note {
  margin-top: 6px;             /* off-grid: тесный зазор под заголовком */
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

.settings-column .help-success-email {
  color: var(--gray-5);
  word-break: break-all;
}

/* ============================================================
   Пикер occupations — свободный ввод вместо прежней таксономии.
   Правила .occ-item / .occ-category снесены фазой 4 вместе с таксономией
   (её дропдаун в contacts_desktop_filters.js больше их не рендерит).
   ============================================================ */
/* Размер — font 10/600, radius 5px. Раньше зеркалил .recent-tag из style.css;
   тот снесён как мёртвый (фаза 4), значения оставлены как есть.
   Ширина — по тексту: inline-flex + родительский .value-chosen переведён с
   flex-direction:column на flex-wrap:wrap (contact.css / contacts_crm.css),
   иначе колоночный флекс растягивал чипсы на всю ширину и ставил столбиком.
   margin не нужен — интервалы даёт gap родителя. */
.occ-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--lilac-1);
  color: var(--gray-5);
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
}

/* «×» — только в режиме редактирования. Это подстраховка к JS-гейту в
   removeContactOccupationRightBar (isEditContactMode), а не замена ему. */
.occ-chip-x {
  display: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 12px;
  font-weight: 400;
}

.occ-chip-x:hover { color: var(--gray-5); }

#page1.edit-contact .occ-chip-x,
#desktopRightBarContact.edit-contact .occ-chip-x {
  display: inline-block;
}

.occ-add {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
}

.occ-add-input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-5);
  background: #fff;
  border: 1px solid var(--gray-3);
  border-radius: 10px;
}

.occ-add-input:focus-visible {
  outline: 2px solid var(--lilac-3);
  outline-offset: 1px;
}

/* Компактнее дефолтного button {} из style.css: кнопка живёт внутри узкой панели. */
.occ-add-btn {
  flex: none;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 16px;
  border-radius: 10px;
}

/* Этап 3 — унификация toggle-состояний (единый selected-язык). Решение владельца:
   fill для сортировки и фильтр-чипов, underline для nav-табов; разные ТИПЫ компонентов
   не унифицируем буквально — общими держим токены (--green-1 заливка / --green-3 акцент),
   контраст и интенсивность акцента. Focus-состояние уже единое (кольцо :focus-visible выше).
   Активный пункт сортировки был «голым» зелёным текстом (.sort-item-active в shared
   contacts.css:71) — доводим до заливки, как у фильтр-чипов (.option.selected, green-1 фон).
   БЕЗ рамки-пилюли: пункт сортировки — строка списка, не чип (тот же принцип «не унифицировать
   типы буквально»). Скоуп .sort-container (0,0,2,0 > .sort-item-active): бьёт shared-правило
   и НЕ трогает /contact/ (там .sort-container нет, а style.css грузится и туда). */
.sort-container .sort-item-active {
  background-color: var(--green-1);
  color: var(--green-3);
  border-radius: 5px;
}
