/* ── Theme Variables (rhinogroup.kz palette) ── */
:root {
  /* Base solid accents — SAME in both themes (accent never inverts).
     Edit here → changes everywhere (CSS var + T.* JS token both point here). */
  --blue: #5469FA; --blue-hover: #3d52e0;
  --green: #34C759; --green-hover: #2DA44E;
  --amber: #FF9500;
  --red: #FF3B30;
  --violet: #043CB7; --violet-hover: #032D8F;
  /* Text/icon color placed ON a solid accent fill (button label, logomark). */
  --on-accent: #fff;
  /* Theme-CONSTANT islands — always dark/light regardless of [data-theme].
     Defined ONCE here, NOT duplicated in the dark block (must not flip). */
  --sidebar-bg: #1C1C1E; --sidebar-text: #e0e0e0; --sidebar-muted: #ababab;
  --sidebar-hover: rgba(255,255,255,.06); --sidebar-active: rgba(84,105,250,.15);
  --login-bg: #111; --login-card: #fff; --login-text: #151515;

  --bg: #f5f5f5; --card: #fff; --border: #dadada; --border-light: #eee;
  --text: #151515; --text-sec: #555; --text-ter: #9b9b9b;
  --blue-light: #eef0ff; --blue-border: #b4bffd; --blue-text: #1e3a8a;
  --green-light: #ecfdf5; --green-border: #a7f3d0; --green-text: #14532d;
  --amber-light: #fffbeb; --amber-border: #fde68a; --amber-text: #92400e;
  --red-light: #fef2f2; --red-border: #fecaca; --red-text: #991b1b;
  --violet-light: #eef1ff; --violet-border: #8fa0e6; --violet-text: #4c1d95;
  --warn-bg: #fff7ed; --warn-border: #fed7aa; --warn-text: #92400e;
  --mixed-row-bg: #fef3c7;
  --sh-sm: 0 1px 3px rgba(0,0,0,.04);
  --sh: 0 2px 8px rgba(0,0,0,.06);
  --sh-md: 0 4px 12px rgba(0,0,0,.08);
  --sh-lg: 0 8px 24px rgba(0,0,0,.10);
  --sh-xl: 0 16px 40px rgba(0,0,0,.12);
  --card-hover: #f5f5f5; --tab-bg: #efefef; --th-bg: #f5f5f5;
  --placeholder: #bebebe; --scrollbar: #c6c6c6;
}
[data-theme=dark] {
  /* Нейтральный тёмно-серый (убран синий подтон #0f1117/#1a1d2e/#2a2d3d).
     Синий #5469FA остаётся ТОЛЬКО акцентом — на нейтральном фоне он играет. */
  --bg: #0f0f0f; --card: #1a1a1a; --border: #2a2a2a; --border-light: #232323;
  --text: #e8e8e8; --text-sec: #9a9a9a; --text-ter: #6b6b6b;
  --blue-light: #1a2244; --blue-border: #2e3d7a; --blue-text: #a5b4fc;
  --green-light: #0d2818; --green-border: #14532d; --green-text: #6ee7b7;
  --amber-light: #2d2005; --amber-border: #78350f; --amber-text: #fcd34d;
  --red-light: #2d0f0f; --red-border: #7f1d1d; --red-text: #fca5a5;
  --violet-light: #0d1a3d; --violet-border: #1e3470; --violet-text: #c4b5fd;
  --warn-bg: #2a1d05; --warn-border: #78350f; --warn-text: #fcd34d;
  --mixed-row-bg: #2a1d05;
  --sh-sm: 0 1px 3px rgba(0,0,0,.2);
  --sh: 0 2px 8px rgba(0,0,0,.3);
  --sh-md: 0 4px 12px rgba(0,0,0,.35);
  --sh-lg: 0 8px 24px rgba(0,0,0,.4);
  --sh-xl: 0 16px 40px rgba(0,0,0,.5);
  --card-hover: #232323; --tab-bg: #161616; --th-bg: #161616;
  --placeholder: #555555; --scrollbar: #3a3a3a;
}

/* Fullscreen overlay mode — used by DocUploadScr expanded view. Pure CSS so
 * imperative DOM mutations don't leak past unmount (see DocUploadScr
 * data-rh-fullscreen attribute toggle). */
body[data-rh-fullscreen] aside.sidebar { display: none !important; }
body[data-rh-fullscreen] .layout { overflow: hidden !important; }

/* Skeleton shimmer — used by shared/components/Skeleton.tsx */
@keyframes rh-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
body { -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); transition: background .4s ease, color .4s ease; }
#root { width: 100%; height: 100%; }

/* ── Buttons ── */
/* padding/min-height/font-size ЗДЕСЬ, а не только в .btn-sm/.btn-md/.btn-xs:
   классы-расцветки (.btn-primary/.btn-green/.btn-outline/...) отступов не несут,
   поэтому «btn btn-primary» без размерного класса давал кнопку БЕЗ внутренних
   отступов (сплющенную). Дефолт = размер .btn-md; любой размерный класс идёт
   ниже по файлу и штатно перекрывает эти значения. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; cursor: pointer; font-weight: 600; transition: background .2s ease, transform .1s ease, box-shadow .2s ease; border-radius: 8px; font-family: inherit; line-height: 1.4; min-height: 30px; padding: 5px 14px; font-size: 13px; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
/* Высота от контента+padding (резиновость), не фикс. height — текст в 2 строки
   или крупнее шрифт не обрезаются. min-height держит минимальный размер. */
.btn-sm { min-height: 28px; padding: 4px 10px; font-size: 12px; }
.btn-xs { min-height: 22px; padding: 2px 8px; font-size: 11px; border-radius: 6px; }
.btn-md { min-height: 30px; padding: 5px 14px; font-size: 13px; }
.btn-primary { background: var(--blue); color: var(--on-accent); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-green { background: var(--green); color: var(--on-accent); }
.btn-green:hover { background: var(--green-hover); }
.btn-violet { background: var(--violet); color: var(--on-accent); }
.btn-violet:hover { background: var(--violet-hover); }
.btn-ghost { background: transparent; color: var(--text-ter); padding: 6px 10px; font-size: 12px; }
.btn-ghost:hover { background: var(--border-light); color: var(--text-sec); }
.btn-outline { background: var(--card); border: 1px solid var(--border); color: var(--text-sec); }
.btn-outline:hover { background: var(--card-hover); border-color: var(--border); }
.btn-danger { background: var(--card); border: 1px solid var(--red-border); color: var(--red-text); }
.btn-danger:hover { background: var(--red-light); }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; line-height: 1.5; }

/* ── Input ── */
.input { width: 100%; min-height: 32px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; color: var(--text); font-family: inherit; line-height: 1.4; outline: none; transition: border 150ms, box-shadow 150ms; background: var(--card); }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(84,105,250,.12); }
.input::placeholder { color: var(--placeholder); }
.input:disabled { background: var(--bg); color: var(--text-ter); -webkit-text-fill-color: var(--text-ter); cursor: not-allowed; }
.input-sm { min-height: 28px; padding: 4px 10px; font-size: 12px; }
.input-xs { min-height: 22px; padding: 2px 8px; font-size: 11px; }
.input-error { border-color: var(--red); }
.input-error:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,59,48,.12); }

/* ── Textarea ── */
.textarea { width: 100%; min-height: 64px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; line-height: 1.5; color: var(--text); font-family: inherit; outline: none; transition: border 150ms, box-shadow 150ms; background: var(--card); resize: vertical; }
.textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(84,105,250,.12); }
.textarea::placeholder { color: var(--placeholder); }
.textarea.input-error { border-color: var(--red); }

/* ── Field (label + control + error) ── */
.field { display: flex; flex-direction: column; gap: 4px; }
.field-label { font-size: 12px; font-weight: 500; color: var(--text-sec); }
.field-req { color: var(--red); margin-left: 2px; }
.field-error { font-size: 12px; color: var(--red-text); }
.field-hint { font-size: 12px; color: var(--text-ter); }

/* ── Checkbox ── */
.checkbox-row { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12px; color: var(--text); user-select: none; }
.checkbox-row input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; }
.checkbox-row.disabled { opacity: .5; cursor: not-allowed; }

/* ── Segmented control ── */
.segmented { display: inline-flex; background: var(--tab-bg); border-radius: 8px; padding: 3px; gap: 2px; }
.segmented-item { padding: 5px 12px; border: none; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; background: transparent; color: var(--text-ter); font-family: inherit; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.segmented-item:hover:not(.active) { color: var(--text-sec); }
.segmented-item.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ── Icon button ── */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; border-radius: 6px; background: transparent; color: var(--text-ter); cursor: pointer; font-size: 16px; line-height: 1; transition: background .15s ease, color .15s ease; }
.icon-btn:hover { background: var(--border-light); color: var(--text-sec); }
.icon-btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn-sm { width: 26px; height: 26px; font-size: 14px; }

/* ── File dropzone ── */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px 16px; border: 2px dashed var(--border); border-radius: 8px; background: var(--bg); color: var(--text-ter); font-size: 13px; cursor: pointer; text-align: center; transition: border-color .15s ease, background .15s ease; }
.dropzone:hover, .dropzone.dragover { border-color: var(--blue); background: var(--blue-light); }
.dropzone.has-file { border-color: var(--green-border); background: var(--green-light); color: var(--green-text); }
/* Компактная дропзона В СТРОКЕ рядом с Select/Input (напр. «тип документа +
   файл» в создании заявки): базовый padding 20px рассчитан на отдельный экран
   загрузки и рядом с полем смотрится вдвое выше него. */
.dropzone.compact { padding: 6px; }

/* ── Navigation ── */
.nav-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: none; border-radius: 6px; background: transparent; color: var(--sidebar-muted); font-size: 13px; cursor: pointer; text-align: left; transition: background .15s ease, color .15s ease; font-family: inherit; position: relative; }
.nav-btn:hover { background: var(--sidebar-hover); color: var(--sidebar-text); }
.nav-btn.active { background: var(--sidebar-active); color: var(--on-accent); font-weight: 500; }

/* ── List button ── */
.list-btn { display: block; width: 100%; text-align: left; padding: 12px 16px; border: none; border-left: 3px solid transparent; cursor: pointer; transition: all .12s; background: var(--card); font-family: inherit; }
.list-btn:hover { background: var(--card-hover); }
.list-btn.active { background: var(--blue-light); border-left-color: #5469FA; }

/* ── Table ──
   ЕДИНЫЙ стиль таблиц для всех сервисов. Используй <table class="tbl"> вместо
   ручных thStyle/tdStyle по экранам — тогда все таблицы выглядят одинаково и
   тема-aware. Поведение (сортировка, клик, раскрытие строк, бейджи) остаётся
   на экране — класс задаёт только ВИД.

   Модификаторы (добавляй к class="tbl ..."):
     .tbl--sticky   — залипающий thead (нужен скролл-контейнер с max-height у обёртки)
     .tbl--hover    — подсветка строк при наведении (для кликабельных рядов)
   Хелперы ячеек (на <th>/<td>):
     .num   — выравнивание по правому краю + tabular-nums (числа/суммы)
     .mono  — моноширинный (номера контейнеров, ID, время)
     .nowrap / .wrap — переопределить перенос
*/
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { padding: 7px 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: var(--text-ter); text-align: left; white-space: nowrap; background: var(--th-bg); border-bottom: 1px solid var(--border); user-select: none; transition: color .12s; }
.tbl th:hover { color: var(--text-sec); }
.tbl td { padding: 7px 10px; font-size: 12px; color: var(--text-sec); white-space: nowrap; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.tbl tbody tr { transition: background .08s; }
.tbl tbody tr:last-child td { border-bottom: none; }

/* Sticky header — обёртка должна иметь overflow:auto + max-height. */
.tbl--sticky thead th { position: sticky; top: 0; z-index: 1; }

/* Подсветка строк для кликабельных таблиц. */
.tbl--hover tbody tr:hover { background: var(--card-hover); cursor: pointer; }

/* Ячейки-хелперы. */
.tbl .num   { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .mono  { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tbl .nowrap { white-space: nowrap; }
.tbl .wrap  { white-space: normal; }
/* Колонка действий (кнопки Изменить/Удалить и т.п.): прижата к ПРАВОМУ краю
   таблицы. width:1% + nowrap сжимает колонку до контента, а остальные колонки
   занимают свободное место → действия оказываются у правого края. Ставь на ОБА
   <th class="col-actions"> и <td class="col-actions"> этой колонки. */
.tbl .col-actions { width: 1%; white-space: nowrap; text-align: right; }

/* «Карточная» рамка для ПОЛНОЦЕННЫХ таблиц (Терминалы, Журнал событий и т.п.):
   border + радиус + лёгкая тень, чтобы таблица не выглядела пустой/плоской.
   Это ОБЁРТКА вокруг <table class="tbl">, а не модификатор самой таблицы —
   border-collapse:collapse игнорирует border-radius на <table>, поэтому радиус
   и обрезку углов делаем на контейнере (overflow:hidden клипает th/td-фон).
   Базовые таблицы внутри карточек (дашборд «Платное хранение…») оборачивать НЕ
   нужно — оставляй просто <table class="tbl"> без рамки.
   Скролл (overflow:auto + max-height для sticky) вешай на этот же контейнер. */
.tbl-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
/* В обёртке нижняя граница последней строки лишняя — её срезает рамка. */
.tbl-card .tbl tbody tr:last-child td { border-bottom: none; }

/* ── StatCard (KPI-карточка статистики) ──
   <div class="stat-card stat-card--blue"> с .stat-card__label/__value/__sub.
   Левая полоса-акцент по модификатору цвета. Компонент <StatCard> в ui-kit. */
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; border-left: 3px solid var(--border); min-width: 0; }
.stat-card__label { font-size: 11px; color: var(--text-ter); text-transform: uppercase; letter-spacing: .5px; font-weight: 500; margin-bottom: 3px; }
.stat-card__value { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-card__sub { font-size: 12px; color: var(--text-sec); margin-top: 3px; }
.stat-card--blue    { border-left-color: var(--blue); }
.stat-card--green   { border-left-color: var(--green); }
.stat-card--violet  { border-left-color: var(--violet); }
.stat-card--amber   { border-left-color: var(--amber); }
.stat-card--red     { border-left-color: var(--red); }
.stat-card--neutral { border-left-color: var(--border); }

/* ── Tabs ── */
.tab-bar { display: flex; gap: 2px; background: var(--tab-bg); border-radius: 8px; padding: 3px; overflow-x: auto; }
.tab-btn { padding: 6px 12px; border: none; border-radius: 6px; font-size: 11px; font-weight: 500; cursor: pointer; text-align: center; transition: background .15s ease, color .15s ease; font-family: inherit; background: transparent; color: var(--text-ter); white-space: nowrap; flex-shrink: 0; }
.tab-btn:hover:not(.active) { color: var(--text-sec); background: rgba(0,0,0,.03); }
.tab-btn.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ── Overlay & Modal ── */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(4px); z-index: 1030; animation: overlayIn 200ms ease both; }
.modal { position: relative; background: var(--card); border-radius: 14px; max-width: 480px; width: calc(100% - 32px); box-shadow: var(--sh-xl); border: 1px solid var(--border); z-index: 1040; animation: modalIn 250ms ease both; }

/* ── Toast ── */
.toast { position: fixed; top: 16px; right: 16px; z-index: 1070; padding: 12px 24px; border-radius: 8px; background: #059669; color: #fff; font-size: 13px; font-weight: 500; box-shadow: var(--sh-lg); animation: toastIn 300ms ease both; }

/* ── Card ──
   Универсальная «оболочка» карточки/панели: фон + рамка + радиус + padding +
   лёгкая тень. ТОЛЬКО контейнерные стили — контент (числа, заголовки) оформляй
   сам внутри. Используй <div class="card"> вместо ручного
   style={{ background:var(--card), border, borderRadius, padding, boxShadow }}.
   Модификаторы:
     .card--pad-lg — крупный padding 20px (дашборд-KPI)
     .card--flat   — без тени
     .card--tile   — интерактивная плитка с hover-подъёмом (лаунчпад/модули) */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px; box-shadow: var(--sh-sm); }
.card--pad-lg { padding: 20px; }
.card--flat { box-shadow: none; }
/* Кликабельная карточка (напр. карточка заявки): курсор + усиление тени на hover. */
.card--clickable { cursor: pointer; transition: box-shadow .15s ease; }
.card--clickable:hover { box-shadow: var(--sh-md); }
/* Интерактивная плитка с подъёмом (лаунчпад/выбор модуля). */
.card--tile { border-radius: 14px; box-shadow: var(--sh); transition: box-shadow .2s ease, transform .2s ease; cursor: pointer; }
.card--tile:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

/* ── Кликабельные элементы дашборда (drill-down) ── */
.clk-card { cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.clk-card:hover { border-color: var(--blue-border); box-shadow: var(--sh-md); transform: translateY(-1px); }
.clk-card:hover .clk-arrow { opacity: 1; }
.clk-arrow { position: absolute; top: 12px; right: 12px; opacity: 0; color: var(--blue); transition: opacity .15s ease; font-size: 13px; line-height: 1; }
.clk-cell { cursor: pointer; transition: background .12s ease; }
.clk-cell:hover { background: var(--blue-light); }
.clk-row { cursor: pointer; transition: background .12s ease; }
.clk-row:hover { background: var(--blue-light); }
.clk-block { cursor: pointer; transition: filter .12s ease, transform .12s ease; }
.clk-block:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* ── Row item ── */
.row-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-light); transition: background .12s; position: relative; }
.row-item:hover { background: var(--card-hover); }
.row-item:last-child { border-bottom: none; }

/* ── Spinner ── */
.spinner { width: 20px; height: 20px; border: 2px solid var(--blue-border); border-top-color: #5469FA; border-radius: 50%; animation: spin 600ms linear infinite; }

/* ── Table header ── */
.th-wrap { display: flex; align-items: center; gap: 2px; }
.th-label { cursor: pointer; padding: 2px 4px; border-radius: 3px; transition: background .1s; }
.th-label:hover { background: rgba(0,0,0,.04); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 4px; }

/* ── Animations ── */
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.98) translateY(4px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Hamburger button (hidden on desktop) ── */
.hamburger-btn {
  display: none;
  background: none; border: none; padding: 6px; cursor: pointer;
  color: var(--text); border-radius: 6px; margin-right: auto;
}
.hamburger-btn:hover { background: rgba(0,0,0,.06); }

/* ── Sidebar overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199;
  animation: overlayIn 200ms ease;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  .sidebar-overlay { display: block; }
  .sidebar {
    position: fixed !important; top: 0; left: 0; bottom: 0;
    width: 260px !important; z-index: 200;
    transform: translateX(-100%);
    transition: transform .25s ease;
    flex-shrink: 0 !important;
  }
  .sidebar.open { transform: translateX(0); }
  .main-grid { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; }

  /* Ряд кнопок (создать/загрузить…) на мобилке — столбиком, каждая на всю ширину.
     Класс вешается на flex-контейнер ряда; затрагивает только .btn внутри него
     (футеры модалок «Отмена/Сохранить» и т.п. остаются нетронутыми). */
  .btn-row-mobile { flex-direction: column !important; align-items: stretch !important; }
  .btn-row-mobile > .btn { width: 100%; justify-content: center; }

  /* Горизонтальная лента (табы/чипы), которая не помещается в ширину экрана.
     Прокрутка свайпом, скроллбар скрыт. */
  .scroll-x-mobile {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .scroll-x-mobile::-webkit-scrollbar { display: none; }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr !important; }
  .modal { max-width: 100%; width: calc(100% - 16px); }
  .tbl td, .tbl th { padding: 6px 8px; font-size: 12px; }
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  height: 100%;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}
._sidebar_pp2vg_1 {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  position: relative;
  overflow: visible; /* allow dropdown to overflow */
  height: 100vh;
}

/* ── MOBILE: off-canvas drawer (выезжает слева направо) ──────────────── */
@media (max-width: 768px) {
  ._sidebar_pp2vg_1 {
    position: fixed;
    top: 0;
    left: 0;
    /* Выше sticky-хедера (z-index:100), иначе drawer уезжает под него. */
    z-index: 120;
    height: 100vh;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    transform: translateX(-100%);
    transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  ._sidebarOpen_pp2vg_27 {
    transform: translateX(0);
  }
}

/* ── BRAND PLATE (некликабельная планка) ───────────────────────────────
   Раньше здесь был кликабельный свитчер модулей; выбор модуля переехал в
   шапку, поэтому планка — статичный индикатор: логотип юрлица + модуль.
   Никаких hover/cursor-состояний — она ни на что не реагирует. */

._brandPlate_pp2vg_37 {
  position: relative;
  z-index: 2;
  margin: 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
}

/* Название ЮРЛИЦА под его логотипом (название модуля из планки убрано —
   модуль виден в пикере шапки). Чуть крупнее прежней модульной подписи:
   теперь это основная надпись планки. */
._brandTenantName_pp2vg_53 {
  font-size: 13px;
  font-weight: 600;
  color: var(--sidebar-text);
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Default brand (нет логотипа юрлица / агрегатный режим) */
._brandDefault_pp2vg_65 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

._brandLogo_pp2vg_73 {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--on-accent);
  flex-shrink: 0;
}

._brandName_pp2vg_87 {
  font-size: 15px;
  font-weight: 700;
  color: var(--sidebar-text);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Module logo in white card (dislocation style) */
._brandModuleLogo_pp2vg_98 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 7px;
  padding: 6px 10px;
  box-sizing: border-box;
  min-width: 0;
}

._brandModuleLogoImg_pp2vg_110 {
  max-width: 100%;
  max-height: 32px;
  object-fit: contain;
}

/* ── DIVIDER ────────────────────────────────────────────────────────── */

._divider_pp2vg_118 {
  margin: 10px 16px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

/* ── NAV ────────────────────────────────────────────────────────────── */

._nav_pp2vg_127 {
  flex: 1;
  padding: 0 12px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

._navBtn_pp2vg_138 {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--sidebar-muted);
  font-size: 13px;
  font-weight: 400;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

._navBtn_pp2vg_138:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text);
}

._navBtnActive_pp2vg_161 {
  background: rgba(84, 105, 250, 0.15);
  color: var(--on-accent);
  font-weight: 500;
}

/* Задизейбленный пункт (эталон rh-cost DisabledCategoryItem, напр. «Тех ПД»):
   тот же layout что .navBtn, но некликабельный — приглушённый цвет, курсор
   по умолчанию, hover не подсвечивает. */
._navBtnDisabled_pp2vg_170 {
  cursor: default;
  color: var(--sidebar-muted);
  opacity: 0.5;
}

._navBtnDisabled_pp2vg_170:hover {
  background: transparent;
  color: var(--sidebar-muted);
}

/* navIcon is now an emoji span — no SVG stroke needed.
   Ширина 18px — только минимум для выравнивания колонки; широкое лого
   (ModuleIcon с logoUrl) растягивает слот, а не режется по бокам. */
._navIcon_pp2vg_184 {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  min-width: 18px;
  max-width: 72px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

._navLabel_pp2vg_196 {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._navBadge_pp2vg_203 {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--red-text);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── NAV GROUPS (опциональная секция — см. useRemoteNav RemoteNavItem.group) ── */

._navGroup_pp2vg_216 {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* SectionLabel (эталон rh-cost): некликабельная надпись-разделитель над блоком. */
._navSection_pp2vg_223 {
  padding: 6px 12px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-ter, #64748b);
  user-select: none;
}
._navSection_pp2vg_223:not(:first-child) {
  margin-top: 10px;
}

._navGroupHeader_pp2vg_236 {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  /* Тише обычного пункта — заголовок секции, не действие. */
  color: var(--sidebar-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.75;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  font-family: inherit;
}

._navGroupHeader_pp2vg_236:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sidebar-text);
  opacity: 1;
}

._navGroupLabel_pp2vg_264 {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._navGroupChevron_pp2vg_272 {
  font-size: 10px;
  flex-shrink: 0;
  line-height: 1;
}

._navGroupItems_pp2vg_278 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Вложенные пункты — отступ слева, лёгкий разделитель как в rh-cost эталоне. */
  margin-left: 10px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── FOOTER ─────────────────────────────────────────────────────────── */

._footer_pp2vg_290 {
  padding: 10px 16px 14px;
  text-align: center;
  position: relative;
  z-index: 2;
}

._footerText_pp2vg_297 {
  font-size: 11px;
  color: var(--sidebar-muted);
  letter-spacing: 0.3px;
}

._footerText_pp2vg_297 strong {
  font-weight: 600;
  color: var(--sidebar-text);
}

._backBtn_pp2vg_308 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  text-decoration: none;
  color: var(--sidebar-muted);
  font-size: 12px;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

._backBtn_pp2vg_308:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text);
}
/* TenantPicker — обёртка для Select фильтра юрлица в хедере (superadmin). */
._picker_1p4oo_2 {
  min-width: 200px;
  max-width: 280px;
  margin-right: 12px;
}

/* Мобилка: сильно ужимаем, чтобы не выдавить бургер из шапки. */
@media (max-width: 768px) {
  ._picker_1p4oo_2 {
    min-width: 0;
    max-width: 130px;
    flex: 0 1 130px;
    margin-right: 8px;
  }
}
/* ModulePicker — обёртка для Select выбора модуля в хедере.
   Размеры зеркалят TenantPicker: два пикера стоят рядом и должны выглядеть
   как пара, а не как два разных контрола. */
._picker_n13b8_4 {
  min-width: 200px;
  max-width: 280px;
  margin-right: 12px;
}

/* Мобилка: сильно ужимаем, чтобы не выдавить бургер из шапки. */
@media (max-width: 768px) {
  ._picker_n13b8_4 {
    min-width: 0;
    max-width: 130px;
    flex: 0 1 130px;
    margin-right: 8px;
  }
}
._header_7al5f_1 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);

  border-bottom: 1px solid var(--border);
  min-height: 52px;
}

/* «Гамбургер» — скрыт на десктопе, появляется на мобилке слева. */
._menuBtn_7al5f_16 {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s;
}

._menuBtn_7al5f_16:hover {
  background: var(--card-hover);
}

@media (max-width: 768px) {
  ._menuBtn_7al5f_16 {
    display: flex;
  }
}

._spacer_7al5f_41 {
  flex: 1;
}

._profileWrapper_7al5f_45 {
  position: relative;
}

._profileBtn_7al5f_49 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s;
}

._profileBtn_7al5f_49:hover {
  background: var(--card-hover);
}

._avatar_7al5f_68 {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--on-accent);
  flex-shrink: 0;
}

._displayName_7al5f_82 {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Мобилка: в шапке оставляем только аватарку — ФИО и стрелку прячем. */
@media (max-width: 768px) {
  ._displayName_7al5f_82,
  ._profileChevron_7al5f_92 {
    display: none;
  }
}

._backdrop_7al5f_97 {
  position: fixed;
  inset: 0;
  z-index: 10;
}

._menu_7al5f_16 {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--sh-md);
  overflow: hidden;
  z-index: 20;
  border: 1px solid var(--border);
}

/* ФИО / email / роль — 3 строки */
._menuIdentity_7al5f_117 {
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

._menuName_7al5f_124 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._menuSub_7al5f_133 {
  font-size: 12px;
  color: var(--text-ter);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._menuDivider_7al5f_141 {
  height: 1px;
  background: var(--border-light);
  margin: 0 14px;
}

._menuItem_7al5f_147 {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.1s;
}

._menuItem_7al5f_147:hover {
  background: var(--card-hover);
}

._menuIcon_7al5f_167 {
  flex-shrink: 0;
  opacity: 0.7;
}

/* «Выйти» — оставляем красный акцент */
._menuItemDanger_7al5f_173 {
  color: var(--red-text);
}

._menuItemDanger_7al5f_173:hover {
  background: var(--red-light);
}
._layout_12lr7_1 {
  display: flex;
  height: 100vh;
  background: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue",
    system-ui, sans-serif;
  overflow: hidden;
}

._main_12lr7_11 {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* Затемнение под мобильным drawer'ом. На десктопе сайдбар статичный — backdrop не рендерится. */
._backdrop_12lr7_20 {
  display: none;
}

@media (max-width: 768px) {
  ._backdrop_12lr7_20 {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 90;
    animation: _backdropIn_12lr7_1 0.2s ease;
  }
}

@keyframes _backdropIn_12lr7_1 {
  from { opacity: 0; }
  to { opacity: 1; }
}

._content_12lr7_40 {
  flex: 1;
  /* НЕ скролл-контейнер и без padding: скролл+фон+отступ живут на обёртке внутри
     каждого Module.tsx (один full-width элемент → скроллбар у края экрана, белый
     фон до краёв, контент с отступом 24). Два вложенных scroll-контейнера давали
     серую рамку + скролл внутри отступа. */
  overflow: hidden;
  min-height: 0;
}
._page_o4jvz_1 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--login-bg);
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
}

._card_o4jvz_12 {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 380px;
  padding: 36px 32px;
  background: var(--login-card);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--sh-xl);
  text-align: center;
}

._langSwitcherRow_o4jvz_25 {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

._logo_o4jvz_32 {
  display: block;
  height: 72px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 28px;
}

._form_o4jvz_40 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

._field_o4jvz_47 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

._label_o4jvz_53 {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sec);
}

._error_o4jvz_59 {
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  color: var(--red-text);
  font-size: 13px;
  text-align: left;
}

._submitBtn_o4jvz_69 {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* ── Показать/скрыть пароль ── */
._passWrap_o4jvz_76 {
  position: relative;
}

._eyeBtn_o4jvz_80 {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-ter);
}

._eyeBtn_o4jvz_80:hover {
  color: var(--text-sec);
}

/* ── Забыли пароль ── */
._forgotRow_o4jvz_100 {
  text-align: right;
  margin-top: -4px;
}

._forgot_o4jvz_100 {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue, #3898ec);
  cursor: pointer;
}

._forgot_o4jvz_100:hover {
  text-decoration: underline;
}

._linkBtn_o4jvz_116 {
  width: 100%;
  padding: 10px;
  margin-top: -4px;
  background: none;
  border: none;
  color: var(--text-sec);
  font-size: 13px;
  cursor: pointer;
}

._linkBtn_o4jvz_116:hover {
  color: var(--login-text);
}

._resetHint_o4jvz_131 {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* ── Письмо отправлено ── */
._resetDone_o4jvz_140 {
  text-align: center;
}

._resetIcon_o4jvz_144 {
  font-size: 36px;
  margin-bottom: 12px;
}

._resetTitle_o4jvz_149 {
  font-size: 14px;
  font-weight: 500;
  color: var(--login-text);
  margin: 0 0 8px;
}

._resetText_o4jvz_156 {
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.5;
  margin: 0 0 20px;
}

/* ── Заметка про сессию ── */
._sessionNote_o4jvz_164 {
  font-size: 11px;
  color: var(--text-ter);
  text-align: center;
  margin: 16px 0 0;
}
/* Launchpad: fullscreen module picker, light theme, company-picker style */
._page_vxrq2_2 {
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  box-sizing: border-box;
  position: relative;
}

/* Top-right actions bar */
._topBar_vxrq2_14 {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 0;
}

/* Centered content wrapper */
._center_vxrq2_23 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

._header_vxrq2_32 {
  margin-bottom: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

._logoMark_vxrq2_41 {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--on-accent);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

._greeting_vxrq2_56 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

._subtitle_vxrq2_64 {
  font-size: 14px;
  color: var(--text-ter);
  margin: 0;
}

/* Module picker — centered stack, max 700px. Each module = separate card. */
._list_vxrq2_71 {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Each module card */
._row_vxrq2_80 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--sh);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s, transform 0.12s;
  width: 100%;
  font-family: inherit;
}

._row_vxrq2_80:hover {
  background: var(--card-hover);
  border-color: var(--blue-border);
  box-shadow: var(--sh-md, var(--sh));
}

._row_vxrq2_80:hover ._rowArrow_vxrq2_102 {
  transform: translateX(3px);
  color: var(--text-sec);
}

/* Оправа иконки модуля. Квадрат 40×40 по умолчанию, но ширина не зафиксирована:
   min-width держит квадрат для обычных иконок, а широкое прямоугольное лого
   растягивает оправу по своей ширине вместо того, чтобы обрезаться. */
._rowIcon_vxrq2_110 {
  flex-shrink: 0;
  min-width: 40px;
  width: auto;
  max-width: 140px;
  height: 40px;
  padding: 0 2px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

/* Логотип-картинка прижимался к краям оправы — даём ему воздух по горизонтали.
   Только для <img>: у SVG-иконки и буквенного fallback отступ не нужен, они
   уже центрированы внутри квадрата и от лишнего padding стали бы мельче. */
._rowIcon_vxrq2_110:has(img) {
  padding: 0 8px;
}

._rowIconFallback_vxrq2_134 {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}

._rowIconLogo_vxrq2_141 {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

._rowBody_vxrq2_148 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

._rowTitle_vxrq2_156 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._rowDesc_vxrq2_165 {
  font-size: 12px;
  color: var(--text-ter);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._rowArrow_vxrq2_102 {
  flex-shrink: 0;
  color: var(--text-ter);
  transition: color 0.15s, transform 0.15s;
}

/* Empty state */
._empty_vxrq2_180 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  text-align: center;
  gap: 12px;
  max-width: 700px;
  width: 100%;
}

._emptyIcon_vxrq2_192 {
  color: var(--border);
  margin-bottom: 4px;
}

._emptyText_vxrq2_197 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-sec);
  margin: 0;
}

._emptyHint_vxrq2_204 {
  font-size: 13px;
  color: var(--text-ter);
  margin: 0;
}
/* ProfileScr — shell-owned profile page */

._page_1127p_3 {
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px;
  box-sizing: border-box;
}

._card_1127p_14 {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--sh);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
._cardHeader_1127p_28 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

._title_1127p_34 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

._subtitle_1127p_42 {
  font-size: 13px;
  color: var(--text-ter);
  margin: 0;
}

/* Avatar */
._avatarRow_1127p_49 {
  display: flex;
  align-items: center;
  gap: 16px;
}

._avatarWrap_1127p_55 {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
}

._avatarImg_1127p_65 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

._avatarPlaceholder_1127p_72 {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

._avatarFallback_1127p_80 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}

._avatarActions_1127p_87 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

._fileInput_1127p_94 {
  display: none;
}

/* Fields */
._fields_1127p_99 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

._fieldLabel_1127p_105 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
}

._fieldInput_1127p_114 {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  width: 100%;
}

._fieldInput_1127p_114:focus {
  border-color: var(--blue);
}

._fieldInput_1127p_114:disabled {
  color: var(--text-ter);
  background: var(--card-hover, var(--bg));
  cursor: not-allowed;
}

/* Error */
._errorMsg_1127p_139 {
  font-size: 13px;
  color: var(--error, #c0392b);
  margin: 0;
}

/* Save row */
._saveRow_1127p_146 {
  display: flex;
  align-items: center;
  gap: 12px;
}

._savedHint_1127p_152 {
  font-size: 13px;
  color: var(--text-ter);
}

/* Hint (loading state) */
._hint_1127p_158 {
  font-size: 14px;
  color: var(--text-ter);
  margin: 0;
  text-align: center;
  padding: 32px 0;
}
._page_1rujv_1 {
  min-height: 100vh;
  background: var(--bg);
  padding: 32px 40px;
  box-sizing: border-box;
}

._header_1rujv_8 {
  margin-bottom: 28px;
}

._title_1rujv_12 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

._subtitle_1rujv_20 {
  font-size: 14px;
  color: var(--text-sec);
  margin: 0;
}

._grid_1rujv_26 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  ._grid_1rujv_26 {
    grid-template-columns: 1fr;
  }

  ._page_1rujv_1 {
    padding: 20px 16px;
  }
}

/* ── Card ── */
._card_1rujv_44 {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

._cardTitle_1rujv_51 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}

/* ── Form fields ── */
._field_1rujv_59 {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

._field_1rujv_59:last-child {
  margin-bottom: 0;
}

._label_1rujv_70 {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sec);
}

._input_1rujv_76 {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

._input_1rujv_76:focus {
  border-color: var(--blue);
}

._input_1rujv_76::placeholder {
  color: var(--text-ter);
}

/* ── Row: two inputs side by side ── */
._row_1rujv_100 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

._portInput_1rujv_107 {
  width: 80px;
}

/* ── Section divider ── */
._divider_1rujv_112 {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 16px 0;
}

/* ── Actions ── */
._actions_1rujv_119 {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ── Presets row ── */
._presets_1rujv_127 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

._presetBtn_1rujv_134 {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-sec);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease, border-color 0.12s ease;
}

._presetBtn_1rujv_134:hover {
  background: var(--border-light);
  border-color: var(--border);
  color: var(--text);
}

._presetBtnActive_1rujv_153 {
  background: var(--blue-light);
  border-color: var(--blue-border);
  color: var(--blue-text);
}

/* ── Time tags ── */
._timeTags_1rujv_160 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

._timeTag_1rujv_160 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  color: var(--blue-text);
  font-size: 12px;
  font-weight: 500;
}

._timeTagRemove_1rujv_180 {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue-text);
  padding: 0;
  line-height: 1;
  font-size: 14px;
  opacity: 0.7;
  font-family: inherit;
}

._timeTagRemove_1rujv_180:hover {
  opacity: 1;
}

/* ── Status feedback ── */
._flash_1rujv_197 {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}

._flashOk_1rujv_204 {
  background: var(--green-light);
  border: 1px solid var(--green-border);
  color: var(--green-text);
}

._flashErr_1rujv_210 {
  background: var(--red-light);
  border: 1px solid var(--red-border);
  color: var(--red-text);
}

/* ── Link row (active modules) ── */
._linkRow_1rujv_217 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

._linkRow_1rujv_217:last-child {
  border-bottom: none;
}

._linkLabel_1rujv_229 {
  font-size: 14px;
  color: var(--text);
}

._linkSub_1rujv_234 {
  font-size: 12px;
  color: var(--text-sec);
  margin-top: 2px;
}

._toggleSection_1rujv_240 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

._collapseTrigger_1rujv_246 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 12px;
  font-family: inherit;
  text-align: left;
}

._collapseTriggerLabel_1rujv_259 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

._collapseChevron_1rujv_265 {
  color: var(--text-ter);
  font-size: 12px;
  transition: transform 0.2s ease;
}

._collapseChevronOpen_1rujv_271 {
  transform: rotate(180deg);
}
