/* =============================================================================
 * LTT — стиль «Светлый рабочий»: меню слева со счётчиками, белый фон,
 * один акцентный цвет, статусы точками.
 * ========================================================================== */

:root {
  --bg: #ffffff;
  --side: #f2f4f1;
  --ink: #17201c;
  --ink2: #3c4541;
  --muted: #6f7873;
  --faint: #9aa39e;
  --line: #e4e7e3;
  --line2: #eef0ed;
  --field: #f5f6f4;
  --accent: #0f6b5c;
  --accent-hover: #0b5a4d;
  --accent-soft: #e6f1ee;

  --amber: #d88a1a; --amber-ink: #8f5410; --amber-soft: #fdf1e2;
  --red: #d0453a;   --red-ink: #a4332a;   --red-soft: #fbe8e5;
  --blue: #3b6fd8;  --blue-ink: #2a55ad;  --blue-soft: #eaf0fc;
  --green: #2f8f5b; --green-ink: #23704a; --green-soft: #e6f3ec;
  --violet: #7a5fd0; --violet-ink: #5d45ad; --violet-soft: #efeafb;
  --grey: #a3aba6;  --grey-ink: #5d6661;  --grey-soft: #f0f2ef;

  --r: 10px;
  --side-w: 256px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 16px; }
h3 { font-size: 15px; }
p { margin: 0; }
.ic { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Каркас ------------------------------------------------------------------ */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; background: var(--side);
  padding: 20px 14px 14px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--ink); }
.logo {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
}
.brand-t { display: flex; flex-direction: column; line-height: 1.25; }
.brand-t b { font-size: 14px; }
.brand-t span { font-size: 12px; color: var(--muted); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px;
  color: var(--ink2); font-size: 14px; min-height: 40px;
}
.nav a .ic { color: var(--muted); }
.nav a:hover { background: rgba(255, 255, 255, .6); color: var(--ink); }
.nav a.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(20, 30, 25, .08); }
.nav a.on .ic { color: var(--accent); }
.cnt {
  margin-left: auto; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 10px;
  background: #e5e9e6; color: var(--ink2); white-space: nowrap;
}
.cnt.red { background: var(--red-soft); color: var(--red-ink); }
.cnt.amber { background: var(--amber-soft); color: var(--amber-ink); }

.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px; }
.ava {
  width: 34px; height: 34px; border-radius: 50%; background: #dfe6e1; color: var(--ink);
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.me-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex-grow: 1; }
.me-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-t span { font-size: 12px; color: var(--muted); }
.logout button {
  border: 0; background: transparent; color: var(--muted); width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.logout button:hover { background: #fff; color: var(--ink); }

.main { padding: 28px 36px 60px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.mtop, .mnav { display: none; }

/* --- Шапка страницы -------------------------------------------------------- */
.phead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.phead-t { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.eyebrow { font-size: 13px; color: var(--muted); }
.phead .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.crumbs a:hover { color: var(--ink); }

.flash { padding: 11px 15px; border-radius: var(--r); font-size: 14px; }
.flash.ok { background: var(--green-soft); color: var(--green-ink); }
.flash.err { background: var(--red-soft); color: var(--red-ink); }

/* --- Переключатели и фильтры ------------------------------------------------- */
.seg { display: inline-flex; background: var(--side); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.seg a, .seg button {
  font: inherit; font-size: 13.5px; padding: 7px 14px; border-radius: 8px; color: var(--ink2);
  border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.seg a.on, .seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(20, 30, 25, .1); }

.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip {
  font-size: 13.5px; padding: 7px 13px; border-radius: 20px; background: var(--side); color: var(--ink2);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip b { font-weight: 600; color: var(--muted); }
.chip:hover { color: var(--ink); background: #e9ece8; }
.chip.on { background: var(--ink); color: #fff; }
.chip.on b { color: rgba(255, 255, 255, .7); }
.filters .grow { flex-grow: 1; }
.filters select, .filters input[type=search] {
  font: inherit; font-size: 13.5px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; padding: 0 10px; color: var(--ink); max-width: 220px;
}
.filters input[type=search] { width: 230px; }

/* --- Цифры ------------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 14px 18px 14px 0; display: flex; flex-direction: column; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--line2); }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.stat small { font-size: 12px; color: var(--faint); }
.t-amber { color: var(--amber-ink); }
.t-red { color: var(--red-ink); }
.t-green { color: var(--green-ink); }
.t-blue { color: var(--blue-ink); }
.t-muted { color: var(--muted); }
.t-faint { color: var(--faint); }

/* --- Статусы ----------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; white-space: nowrap; color: var(--ink2);
}
.badge i, .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--grey); }
.b-amber i, .d-amber { background: var(--amber); }
.b-red i, .d-red { background: var(--red); }
.b-blue i, .d-blue { background: var(--blue); }
.b-green i, .d-green { background: var(--green); }
.b-violet i, .d-violet { background: var(--violet); }
.b-grey i, .d-grey { background: var(--grey); }
.b-red { color: var(--red-ink); }
.b-amber { color: var(--amber-ink); }

/* --- Таблицы ----------------------------------------------------------------- */
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafbf9; }
.tbl tr.sel td { background: var(--accent-soft); }
.tbl tr.hot td { background: #fdf6f5; }
.tbl .n { text-align: right; white-space: nowrap; }
.tbl th.n { text-align: right; }
.tbl .nowrap { white-space: nowrap; }
.tbl .main-cell a { color: var(--ink); font-weight: 500; }
.tbl .main-cell a:hover { color: var(--accent); }
.tbl tfoot td { font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
.sub { display: block; font-size: 12.5px; color: var(--muted); }
.bar { height: 6px; border-radius: 3px; background: var(--line2); min-width: 60px; }
.bar i { display: block; height: 6px; border-radius: 3px; background: var(--accent); }

.empty { padding: 28px 0; color: var(--muted); font-size: 14px; }

/* --- Блоки ------------------------------------------------------------------- */
.section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.section-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.section-h .hint { font-size: 13px; color: var(--muted); }
.section-h .right { margin-left: auto; }
.cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.cols-side { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.panel.soft { background: var(--side); border-color: transparent; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.msg {
  background: #eef6ea; border-radius: 12px; padding: 11px 14px; font-size: 14px; white-space: pre-line;
  border: 1px solid #dcebd3;
}

/* --- «Требует внимания» ------------------------------------------------------ */
.attn { display: flex; flex-direction: column; }
.attn a, .attn div.row {
  display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line2);
  color: var(--ink); font-size: 14px;
}
.attn a:hover { background: #fafbf9; }
.attn .who { font-weight: 600; width: 88px; flex-shrink: 0; }
.attn .what { flex-grow: 1; min-width: 0; }
.attn .when { font-weight: 600; white-space: nowrap; }

/* --- Кнопки и формы ---------------------------------------------------------- */
.btn {
  font: inherit; font-size: 14px; font-weight: 600; border: 0; cursor: pointer; border-radius: 10px;
  height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--accent); color: #fff; white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn.ghost { background: var(--side); color: var(--ink); }
.btn.ghost:hover { background: #e6eae6; color: var(--ink); }
.btn.line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.line:hover { border-color: #cdd3ce; }
.btn.danger { background: var(--red-soft); color: var(--red-ink); }
.btn.danger:hover { background: #f7d6d1; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn.lg { height: 48px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.linkbtn { font: inherit; border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-weight: 600; font-size: 13.5px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 14px; }
.grid .wide { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld > span { font-size: 12.5px; color: var(--muted); }
.fld input, .fld select, .fld textarea {
  font: inherit; font-size: 14.5px; color: var(--ink); background: var(--field); border: 1px solid transparent;
  border-radius: 10px; padding: 0 12px; height: 42px; width: 100%;
}
.fld textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.fld small { font-size: 12px; color: var(--faint); }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Статус одним касанием: радиокнопки в виде плашек. */
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; padding: 9px 12px; border-radius: 10px;
  background: var(--field); color: var(--ink2); cursor: pointer; user-select: none; min-height: 40px;
}
.pick input:checked + span { background: var(--accent); color: #fff; font-weight: 600; }
.pick input:checked + span .dot { background: #fff; }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

details.drawer { border: 1px solid var(--line); border-radius: 14px; }
details.drawer > summary {
  list-style: none; cursor: pointer; padding: 13px 18px; font-weight: 600; font-size: 14.5px;
  display: flex; align-items: center; gap: 8px;
}
details.drawer > summary::-webkit-details-marker { display: none; }
details.drawer > summary .ic { color: var(--accent); }
details.drawer[open] > summary { border-bottom: 1px solid var(--line2); }
details.drawer > .form { padding: 16px 18px 18px; }
details.inline > summary { list-style: none; cursor: pointer; }
details.inline > summary::-webkit-details-marker { display: none; }

/* --- Доска ------------------------------------------------------------------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--side); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.col-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; padding: 4px 6px 6px; }
.col-h b { margin-left: auto; color: var(--muted); font-weight: 600; }
.card {
  background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px;
  color: var(--ink); box-shadow: 0 1px 2px rgba(20, 30, 25, .06); border: 1px solid transparent;
}
.card:hover { border-color: var(--line); color: var(--ink); }
.card b { font-size: 14px; font-weight: 600; }
.card span { font-size: 12.5px; color: var(--muted); }
.card.hot { border-color: #f1c7c1; }
.card.warn { border-color: #f1dcb8; }

/* --- Кабинет логиста ----------------------------------------------------------- */
.alert {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: var(--amber-soft); color: var(--amber-ink);
}
.alert.red { background: var(--red-soft); color: var(--red-ink); }
.alert.green { background: var(--green-soft); color: var(--green-ink); }
.alert-t { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.alert-t b { font-size: 15px; }
.alert-t span { font-size: 13.5px; opacity: .85; }
.alert .big { font-size: 20px; font-weight: 700; white-space: nowrap; }

.mark { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.mark.done { background: #fbfcfb; }
.mark-h { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.mark-h b { font-size: 16px; }
.mark-h .right { margin-left: auto; font-size: 13px; color: var(--muted); }
.mark-sub { font-size: 13px; color: var(--muted); margin-top: -6px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex-grow: 1; min-width: 0; }
.list-row b { font-size: 14.5px; }

.steps { display: flex; flex-direction: column; gap: 4px; }
.steps label { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; cursor: pointer; }
.steps input { width: 18px; height: 18px; accent-color: var(--accent); }

/* --- Вход ------------------------------------------------------------------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--side); padding: 20px; }
.login { width: 100%; max-width: 380px; background: #fff; border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 2px 10px rgba(20, 30, 25, .06); }
.login .brand { padding: 0; }

/* --- Узкие экраны ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .cols, .cols-side { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .main { padding: 24px 22px 60px; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .mtop {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); padding: 10px 14px;
    border-bottom: 1px solid var(--line2);
  }
  .mtop-t { flex-grow: 1; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: #fff;
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .mnav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px;
    font-size: 11px; color: var(--muted); border-radius: 10px; position: relative; min-height: 48px;
  }
  .mnav a.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
  .mdot { position: absolute; top: 5px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; }
  .mdot.red { background: var(--red); }
  .mdot.amber { background: var(--amber); }
  .main { padding: 16px 14px 96px; gap: 18px; }
  h1 { font-size: 22px; }
  .phead { align-items: stretch; }
  .phead .actions { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat + .stat { padding: 12px 10px; border-left: 0; border-bottom: 1px solid var(--line2); }
  .stat b { font-size: 24px; }
  .filters input[type=search] { width: 100%; max-width: none; }
  .filters select { max-width: none; flex: 1; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 110px minmax(0, 1fr); }
  .board { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .tbl { font-size: 13.5px; }
  .hide-m { display: none; }
}

/* Открыта карточка справа — второстепенные колонки прячем, чтобы таблица не сжималась. */
.with-panel .opt { display: none; }

/* --- Кабинет: три листа ---------------------------------------------------- */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tab {
  display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 16px 11px;
  border-radius: 14px; background: var(--side); color: var(--ink2); border: 2px solid transparent;
}
.tab:hover { background: #e9ece8; color: var(--ink); }
.tab.on { background: #fff; color: var(--ink); border-color: var(--accent); box-shadow: 0 2px 8px rgba(15, 107, 92, .10); }
.tab-t { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 600; min-width: 0; }
.tab-t .ic { color: var(--muted); }
.tab.on .tab-t .ic { color: var(--accent); }
.tab-t b { margin-left: auto; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.tab-s { font-size: 13px; }
.tab .short { display: none; }

.section-h .cnt { margin-left: 0; }
.empty.sm { padding: 2px 0 6px; }
.cnt.green { background: var(--green-soft); color: var(--green-ink); }
.alert .btn { flex-shrink: 0; }
.ttl { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.ttl:hover { color: var(--accent); }
.mark-h .ttl { font-size: 16px; }
.mark.hot { border-color: #f1c7c1; }

.day-h {
  display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink2);
  padding: 16px 0 8px; border-bottom: 1px solid var(--line);
}
.day-h span { font-weight: 500; color: var(--faint); }
.day:first-child .day-h { padding-top: 2px; }

[id] { scroll-margin-top: 16px; }
.mark:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.list-row:target { background: var(--accent-soft); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 12px; align-items: start; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; justify-content: space-between; }
.wrow .where { display: block; font-size: 14px; margin-top: 3px; }
.wrow .where b { font-size: 14px; font-weight: 600; }
.list-row.hot { background: #fdf6f5; margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; }
.tbl a.num { color: inherit; font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; }

/* Выданные входы: логин, пароль и готовое сообщение. */
.creds { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.cred .kv { grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; }
.code { font-family: ui-monospace, 'Cascadia Mono', Consolas, 'Roboto Mono', monospace; font-size: 17px; letter-spacing: .03em; }
.copy-src {
  font: inherit; font-size: 13.5px; line-height: 1.45; width: 100%; resize: none; color: var(--ink2);
  background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
}
.alert form { flex-shrink: 0; }
.inline-form { display: block; margin-top: 2px; }
.linkbtn.sm { font-size: 12.5px; font-weight: 500; }

/* Подписи групп в меню и страница «Ещё» на телефоне. */
.nav-g { display: block; font-size: 12px; font-weight: 600; color: var(--faint); padding: 14px 10px 4px; }
.nav .nav-g:first-child { padding-top: 0; }
.menu-list { display: flex; flex-direction: column; }
.menu-list a {
  display: flex; align-items: center; gap: 12px; padding: 12px 2px; min-height: 50px;
  color: var(--ink); font-size: 15px; border-bottom: 1px solid var(--line2);
}
.menu-list a .ic { color: var(--muted); }
.menu-list .nav-g { padding: 18px 2px 4px; }
.menu-list .nav-g:first-child { padding-top: 0; }

@media (max-width: 760px) {
  .tabs { gap: 6px; }
  .tab { padding: 9px 10px 8px; border-radius: 12px; gap: 1px; }
  .tab-t { font-size: 14px; gap: 4px; }
  .tab-t .ic, .tab .long { display: none; }
  .tab .short { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab-t b { font-size: 18px; }
  .tab-s { font-size: 11.5px; line-height: 1.3; }
  [id] { scroll-margin-top: 72px; }
  .cards2 { grid-template-columns: minmax(0, 1fr); }
  .wrow { flex-wrap: wrap; }
  .wrow > .nowrap { width: 100%; text-align: left !important; padding-left: 20px; white-space: normal; }
  .list-row.wrow > span:last-child { max-width: none; }
  .alert { flex-wrap: wrap; }
  .creds { grid-template-columns: minmax(0, 1fr); }
  .mnav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Статус справа в строке списка не должен ломаться на две строки. */
.nowrap { white-space: nowrap; }
.list-row > span:last-child { flex-shrink: 0; max-width: 48%; }
.t-accent { color: var(--accent); }
