/* Внутренний портал управления магазином Ozon.

   Цвет несёт смысл и только смысл:
     тёмно-зелёный  — результат, ваша прибыль, норма
     охра           — рычаг в ваших руках: реклама и всё, чем вы управляете
     серый          — то, на что вы не влияете: комиссия и логистика Ozon
     красный        — только убыток и только проблема

   Больше нигде цвета нет. Поэтому красное пятно на странице
   всегда означает беду, а не украшение. */

:root {
  /* Бумага с лёгким уклоном в зелёный — чтобы белые карточки читались как карточки */
  --bg: #F4F5F3;
  --surface: #ffffff;
  --surface-2: #F8F9F7;
  --border: #E3E5DF;
  --border-strong: #CDD1C9;
  --text: #15181A;
  --muted: #626861;
  --muted-2: #8B918A;

  --accent: #1F5E5B;
  --accent-ink: #174845;
  --accent-soft: #E6F0ED;

  --ochre: #B87E14;
  --ochre-soft: #FBF2DE;
  --slate: #98A0A8;
  --slate-2: #7D8892;

  --red: #A8322A;
  --red-soft: #FAEDEB;
  --orange: #B4650F;
  --orange-soft: #FCF1E4;
  --yellow: #A8830F;
  --yellow-soft: #FBF5E2;
  --green: #1F5E5B;
  --green-soft: #E6F0ED;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(21, 34, 30, .04), 0 1px 3px rgba(21, 34, 30, .05);
  --shadow-lift: 0 1px 2px rgba(21, 34, 30, .05), 0 10px 26px rgba(21, 34, 30, .06);

  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: "Unbounded", "Golos Text", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Каркас ---------- */

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 230px; flex: 0 0 230px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}

.brand {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -.015em; }
.brand-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

.nav { padding: 10px 8px; flex: 1; }
.nav a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 12px; margin-bottom: 1px;
  border-radius: 7px; color: var(--text); font-size: 14px;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav .count {
  font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 20px;
  background: var(--red); color: #fff; font-variant-numeric: tabular-nums;
}

.nav-group {
  padding: 14px 12px 5px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted-2); font-weight: 600;
}

.sidebar-foot { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; }
.sidebar-foot .who { font-weight: 600; }
.sidebar-foot .role { color: var(--muted); font-size: 12px; }
.sidebar-foot form { margin: 8px 0 0; }
.sidebar-foot button {
  background: none; border: 0; padding: 0; color: var(--muted);
  font-size: 12px; cursor: pointer; text-decoration: underline;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 14px 26px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.page-title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.content { padding: 24px 26px 52px; max-width: 1400px; width: 100%; }

/* ---------- Статус связи с Ozon ---------- */

.ozon-state {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px; font-size: 12.5px;
  border: 1px solid var(--border); background: var(--surface-2);
}
.ozon-state .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ozon-state.ok    { border-color: #C8DFD8; background: var(--accent-soft); color: var(--accent); }
.ozon-state.ok .dot { background: var(--accent); }
.ozon-state.demo  { border-color: #E6D7AE; background: var(--ochre-soft); color: #8A5E0C; }
.ozon-state.demo .dot { background: var(--ochre); }
.ozon-state.stale { border-color: #E6D7AE; background: var(--yellow-soft); color: #7E620B; }
.ozon-state.stale .dot { background: var(--yellow); }
.ozon-state.error { border-color: #E8C6C1; background: var(--red-soft); color: var(--red); }
.ozon-state.error .dot { background: var(--red); }
.ozon-state.waiting { border-color: var(--border-strong); background: var(--surface-2); color: var(--muted); }
.ozon-state.waiting .dot { background: var(--muted-2); }

/* ---------- Главная цифра дня ---------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px; align-items: start;
  background: var(--accent-soft); border: 1px solid #D6E6E1;
  border-radius: 14px; padding: 26px 28px; margin-bottom: 20px;
}
.hero-key {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.hero-value {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(40px, 5.4vw, 64px); line-height: .95; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; color: var(--accent); margin-bottom: 14px;
}
.hero-value.unknown { color: var(--muted-2); font-size: clamp(26px, 3.4vw, 38px); }
.hero-value.neg { color: var(--red); }
.hero-note { font-size: 14px; color: var(--muted); margin: 0; max-width: 46ch; }
.hero-note strong { color: var(--text); font-weight: 600; }

.hero-side { display: flex; flex-direction: column; }
.hero-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 11px 0; border-bottom: 1px solid #D6E6E1;
}
.hero-row:last-child { border-bottom: 0; }
.hero-row .l { font-size: 14px; color: var(--muted); }
.hero-row .r { display: flex; align-items: center; gap: 10px; }
.hero-row .v {
  font-size: 20px; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
}

/* ---------- Куда ушли деньги ---------- */

.flow-bar { display: flex; height: 34px; border-radius: 8px; overflow: hidden; gap: 2px; }
.flow-bar > span { display: block; min-width: 2px; }
.flow-bar .fees    { background: var(--slate); }
.flow-bar .ads     { background: var(--ochre); }
.flow-bar .cogs    { background: #C9CDC5; }
.flow-bar .profit  { background: var(--accent); }
.flow-bar .loss    { background: var(--red); }

.flow-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 13px; }
.flow-legend .lg { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.flow-legend .lg i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.flow-legend .lg b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.flow-legend .fees i   { background: var(--slate); }
.flow-legend .ads i    { background: var(--ochre); }
.flow-legend .cogs i   { background: #C9CDC5; }
.flow-legend .profit i { background: var(--accent); }
.flow-legend .loss i   { background: var(--red); }

/* ---------- Прибыль по дням ---------- */

.spark { display: flex; gap: 5px; height: 78px; position: relative; }
.spark .base { position: absolute; left: 0; right: 0; bottom: 28px; height: 1px; background: var(--border); }
.spark .sb { position: relative; flex: 1; min-width: 8px; }
.spark .sb i { position: absolute; left: 0; right: 0; border-radius: 3px; }
.spark .sb i.up { bottom: 28px; background: var(--accent); }
.spark .sb i.dn { top: 50px; background: var(--red); }
.spark .sb:hover i { filter: brightness(1.15); }
.spark-x { display: flex; gap: 5px; margin-top: 7px; }
.spark-x span { flex: 1; min-width: 8px; font-size: 10.5px; color: var(--muted-2); text-align: center; }

/* ---------- Фокус дня ---------- */

.focus {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 20px; overflow: hidden;
}
.focus-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.focus-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.focus-head .hint { color: var(--muted); font-size: 12.5px; }
.focus-list { list-style: none; margin: 0; padding: 0; }
.focus-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  font-size: 15px; line-height: 1.45;
}
.focus-list li:last-child { border-bottom: 0; }
.focus-list .marker {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none;
  background: var(--muted-2);
}
.focus-list .critical .marker { background: var(--red); }
.focus-list .warning  .marker { background: var(--ochre); }
.focus-list .info     .marker { background: var(--slate); }
.focus-list .critical { font-weight: 600; }
.focus-empty { padding: 18px; color: var(--muted); font-size: 14px; }

/* ---------- Плитки показателей ---------- */

.tiles {
  display: grid; gap: 12px; margin-bottom: 20px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px 16px; box-shadow: var(--shadow);
}
.tile .label {
  color: var(--muted); font-size: 12.5px; margin-bottom: 7px;
  display: flex; align-items: center; gap: 5px;
}
.tile .value {
  font-size: 25px; font-weight: 600; letter-spacing: -.025em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.tile .value.small { font-size: 19px; }
.tile .sub { color: var(--muted); font-size: 12px; margin-top: 6px; }
.tile.problem { border-color: #E8C6C1; background: var(--red-soft); }
.tile.problem .value { color: var(--red); }
.tile.good .value { color: var(--accent); }
.tile.lever .value { color: var(--ochre); }
.tile.muted .value { color: var(--muted-2); font-weight: 500; font-size: 18px; }

.section-title {
  font-size: 15px; font-weight: 600; margin: 28px 0 12px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.section-title .note { font-weight: 400; font-size: 12.5px; color: var(--muted); }

/* ---------- Карточки и таблицы ---------- */

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 18px;
}
.card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-head .meta, .note-inline { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.card-body { padding: 17px 18px; }
.card-body.tight { padding: 0; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; padding: 10px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--border); color: var(--muted);
  font-weight: 500; font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
}
table.data td {
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.num, table.data th.num {
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
table.data td.name { font-weight: 500; }
table.data td .sku { color: var(--muted-2); font-size: 11.5px; display: block; }

/* Товар в списке: фото карточки узнаётся быстрее любого текста */
.tovar { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tovar .thumb {
  width: 40px; height: 40px; flex: none; border-radius: 7px;
  object-fit: cover; background: var(--surface-2);
  border: 1px solid var(--border);
}
.tovar .thumb.empty { display: block; }
.tovar-text { min-width: 0; }
.tovar-name { font-weight: 600; display: block; }
.tovar-text .sku {
  display: block; color: var(--muted-2); font-size: 11.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch;
}
.neg { color: var(--red); }
.pos { color: var(--accent); }
.nodata { color: var(--muted-2); }

/* Прибыль полоской: величину видно, не читая цифру */
.pcell { display: flex; align-items: center; justify-content: flex-end; gap: 11px; }
.pcell b { font-weight: 600; color: var(--accent); }
.pcell b.neg { color: var(--red); }
.track {
  width: 92px; height: 8px; border-radius: 4px; background: #EAECE7;
  overflow: hidden; flex: none;
}
.track > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.track > i.neg { background: var(--red); }

/* ---------- Находки по продвижению ---------- */

.signals { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.signal {
  display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: 20px; align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--muted-2);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.signal.critical { border-left-color: var(--red); }
.signal.warning  { border-left-color: var(--ochre); }
.signal.good     { border-left-color: var(--accent); }
.signal-head { font-weight: 600; font-size: 15.5px; margin-bottom: 6px; }
.signal.critical .signal-head { color: var(--red); }
.signal-reason { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.signal-action { font-size: 14px; margin-bottom: 8px; }
.signal-action strong { font-weight: 600; }
.signal-numbers {
  color: var(--muted-2); font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 800px) {
  .signal { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Значки статусов ---------- */

.badge {
  display: inline-block; padding: 3px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge.green  { background: var(--accent-soft); color: var(--accent); }
.badge.yellow { background: var(--yellow-soft); color: #7E620B; }
.badge.orange { background: var(--orange-soft); color: #8C4E0B; }
.badge.red    { background: var(--red-soft);    color: var(--red); }
.badge.grey   { background: #EDEFEA;            color: var(--muted); }
.badge.blue   { background: var(--ochre-soft);  color: #8A5E0C; }

.pill {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  font-size: 11px; border: 1px solid var(--border-strong); color: var(--muted);
}
.pill.prelim { background: var(--yellow-soft); border-color: #E6D7AE; color: #7E620B; }

/* ---------- Полоса выполнения плана ---------- */

.progress { background: #EAECE7; border-radius: 20px; height: 8px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 20px; background: var(--accent); }
.progress.behind > span { background: var(--ochre); }
.progress.bad > span { background: var(--red); }

/* ---------- Расшифровка показателя ---------- */

.chain { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.chain td { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.chain td.sign { width: 22px; color: var(--muted); text-align: center; }
.chain td.val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.chain tr.total td { border-bottom: 2px solid var(--border-strong); font-weight: 600; }
.chain tr.result td {
  font-size: 19px; font-weight: 600; border-bottom: 0;
  letter-spacing: -.02em; color: var(--accent);
}
.chain .hint { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; font-weight: 400; }
.chain .src { color: var(--muted-2); font-size: 11px; }

/* ---------- Формы, кнопки, фильтры ---------- */

.filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 16px; box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; color: var(--muted); }
input[type=text], input[type=date], input[type=number], input[type=password],
select, textarea {
  padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 7px;
  font: inherit; font-size: 14px; background: var(--surface); color: var(--text);
  min-width: 120px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-soft); border-color: var(--accent);
}
.btn {
  display: inline-block; padding: 8px 15px; border-radius: 7px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--accent-ink); text-decoration: none; color: #fff; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.small { padding: 5px 11px; font-size: 13px; }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #8E2820; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 6px 13px; border-radius: 7px; font-size: 14px; color: var(--muted); }
.tabs a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tabs a:hover { text-decoration: none; background: var(--surface-2); }

/* ---------- Заметки и подсказки ---------- */

.note {
  padding: 12px 15px; border-radius: 8px; font-size: 13.5px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  margin-bottom: 16px;
}
.note.warn { background: var(--yellow-soft); border-color: #E6D7AE; color: #7E620B; }
.note.bad  { background: var(--red-soft); border-color: #E8C6C1; color: var(--red); }
.note.good { background: var(--green-soft); border-color: #C3DCD6; color: var(--green); }
.note strong { color: inherit; }

.empty { padding: 36px 18px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* ---------- Вход ---------- */

.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: var(--bg);
}
.login-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 32px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lift);
}
.login-card h1 {
  margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -.02em;
}
.login-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.login-card .field { margin-bottom: 14px; }
.login-card input { width: 100%; }
.login-card .btn { width: 100%; padding: 11px; }
.login-demo {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted);
}
.login-demo code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- Мобильная версия ---------- */

.menu-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; }

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar {
    position: static; width: 100%; flex: none; height: auto;
    border-right: 0; border-bottom: 1px solid var(--border);
  }
  .sidebar:not(.open) .nav,
  .sidebar:not(.open) .sidebar-foot { display: none; }
  .brand { display: flex; align-items: center; justify-content: space-between; }
  .menu-toggle { display: block; }
  .content { padding: 16px 14px 40px; }
  .topbar { padding: 12px 14px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .tile .value { font-size: 21px; }
  .flow-legend { gap: 8px 16px; }
}

@media print {
  .sidebar, .topbar, .filters, .btn { display: none !important; }
  body { background: #fff; }
  .card, .hero { box-shadow: none; break-inside: avoid; }
}


/* Пояснение под названием показателя: почему числа не совпадают,
   должно быть видно сразу, а не выясняться вопросом. */
.hero-row .l-hint {
  display: block;
  font-size: 11.5px;
  color: var(--muted-2);
  font-weight: 400;
  margin-top: 1px;
}


/* ---------- Фирменная полоса на главной ----------
   Затемнённая шапка с логотипом магазина: портал должен ощущаться
   своим, а не безличной таблицей. Цвет глубокий, без пестроты —
   рядом стоят цифры, и они не должны спорить с фоном. */

.brandbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1b2230 0%, #232c3d 55%, #2b3549 100%);
  color: #f2f4f7;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .10);
  position: relative;
  overflow: hidden;
}

/* мягкий блик, чтобы полоса не выглядела плоской заливкой */
.brandbar::after {
  content: "";
  position: absolute;
  right: -60px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.brandbar-mark {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.brandbar-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 5px;
}
.brandbar-initials {
  font-size: 19px; font-weight: 650; letter-spacing: .02em;
  color: #f2f4f7;
}

.brandbar-text { min-width: 0; flex: 1; }
.brandbar-name {
  font-size: 18px; font-weight: 650; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brandbar-sub {
  font-size: 13px; color: rgba(242, 244, 247, .62); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.brandbar-now { text-align: right; flex: none; }
.brandbar-date {
  font-size: 13.5px; color: rgba(242, 244, 247, .88);
  text-transform: lowercase;
}
.brandbar-time { font-size: 12px; color: rgba(242, 244, 247, .55); margin-top: 2px; }

@media (max-width: 640px) {
  .brandbar { padding: 14px 16px; gap: 12px; }
  .brandbar-mark { width: 44px; height: 44px; border-radius: 10px; }
  .brandbar-name { font-size: 16px; }
  .brandbar-now { display: none; }
}

/* Логотип в настройках */
.logo-preview {
  width: 96px; height: 96px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }


/* Вход через Telegram на странице входа */
.tg-login { margin-top: 18px; text-align: center; }
.tg-login-or {
  position: relative; margin-bottom: 14px;
  color: var(--muted-2); font-size: 12px;
}
.tg-login-or::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--border);
}
.tg-login-or span { position: relative; background: var(--surface); padding: 0 10px; }
.tg-login-note { margin-top: 10px; font-size: 11.5px; color: var(--muted-2); }
