/* ============================================================
   Навигатор КЦ — дизайн «Орбиты» (вариант H, выбран Любовью 28.09).
   Источник — холст «Навигатор КЦ»: артборды H-screen (Мой рабочий день), H-kit (компоненты),
   H-luna (Луна на орбите). Серебристый фон с тонкими орбитами и перламутровым свечением,
   матовое стекло, графитовые линии в 1 px, одна оранжевая точка-акцент.
   Шрифты: Jost — заголовки в верхнем регистре, Golos Text — текст, JetBrains Mono — подписи и цифры.
   Встроенных style="" нет (CSP): переменные ставятся из app.js через element.style.
   ============================================================ */

:root {
  /* ----- Акцент: один блок. Вернуть фиолетовый «Люди» — <html data-accent="violet"> (блок ниже) ----- */
  --acc: #CA663E;           /* точка, дуга, метки */
  --acc-ink: #B4532A;       /* кнопка: белый текст 5 : 1 */
  --acc-deep: #A94F29;      /* наведение на кнопку */
  --acc-text: #8E3E1C;      /* акцентный текст мелким кеглем — не ниже 4,5 : 1 на стекле и фоне */
  --acc-rgb: 202, 102, 62;

  /* ----- Графит и серебро ----- */
  --ink: #1C1E27;
  --text: #2B2D38;
  --muted: #555768;         /* подписи: 5,3 : 1 на фоне, 6 : 1 на стекле */
  --soft: #555768;
  --faint: #7C8092;         /* только рамки контролов (3,5 : 1), не текст */
  --line: rgba(28, 30, 39, .12);
  --line-2: rgba(28, 30, 39, .18);
  --line-3: rgba(28, 30, 39, .28);
  --chip-line: rgba(28, 30, 39, .18);
  --bg: #E1E3E9;
  --ground: linear-gradient(180deg, #E4E5EB 0%, #E1E3E9 45%, #DEDFE6 100%);
  --field: #EAEAEF;
  --paper: #F7F7FA;
  --metal: #D4D5DD;

  /* ----- Стекло ----- */
  --glass: rgba(242, 243, 246, .72);
  --glass-t: rgba(245, 246, 249, .9);
  --glass-border: rgba(28, 30, 39, .12);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  --glass-soft: rgba(247, 247, 250, .62);
  --panel: rgba(245, 245, 248, .94);
  --blur: blur(18px) saturate(1.2);

  /* ----- Перламутр — только свечение и выделение ----- */
  --pearl-1: #E6C9DD;
  --pearl-2: #BECFE3;
  --pearl-3: #CFC6E6;
  --irid: linear-gradient(100deg, #E6C9DD 0%, #BECFE3 50%, #CFC6E6 100%);
  --irid-ring: conic-gradient(from 0deg, #E6C9DD, #BECFE3, #CFC6E6, #E6C9DD);

  /* ----- Состояния ----- */
  --rose: #A3122A;          /* опасно */
  --rose-ink: #7A0E20;
  --rose-bg: #F5E1E3;
  --rose-line: rgba(163, 18, 42, .35);
  --green: #2A6A4A;
  --green-bg: #DDEBE3;
  --green-line: rgba(42, 106, 74, .3);
  --amber: #6E4210;
  --amber-bg: #F3E6D3;
  --amber-line: rgba(140, 90, 30, .32);
  --info: #2A3F5C;
  --info-bg: #DCE5F0;
  --info-line: rgba(42, 63, 92, .25);
  --warm-bg: #F6ECE6;       /* «Важно» — тёплый оттенок акцента */
  --warm-line: rgba(var(--acc-rgb), .38);

  /* ----- Старые имена переменных (их читают экраны) ----- */
  --accent: var(--acc-text);
  --grad: linear-gradient(var(--acc-ink), var(--acc-ink));
  --grad-violet: var(--irid);
  --grad-blue: var(--irid);
  --grad-teal: var(--irid);
  --grad-rose: linear-gradient(var(--rose-bg), var(--rose-bg));

  /* ----- Шрифты, радиусы, фокус ----- */
  --font-head: "Jost", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r-chip: 8px;
  --r-ctl: 14px;
  --r-card: 22px;
  --focus: 0 0 0 6px rgba(var(--acc-rgb), .3);
  --ease: cubic-bezier(.2, .7, .3, 1);
}
/* Фиолетовый «Люди» — вторая тема акцента из макета (переключатель «Тема» на холсте) */
:root[data-accent="violet"] { --acc: #7B1FB4; --acc-ink: #7B1FB4; --acc-deep: #651894; --acc-text: #6A1A9C; --acc-rgb: 123, 31, 180; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--bg); scrollbar-color: rgba(28, 30, 39, .3) transparent; }
/* Фон страницы рисует .orbits (ниже): у body своего фона нет, иначе он закрыл бы орбиты */
body { background: transparent; color: var(--ink); font: 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.2; }
h1, h2 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; }
h1 { font-weight: 300; letter-spacing: .05em; }
h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--ink); text-decoration-color: rgba(28, 30, 39, .35); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: var(--focus); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
[hidden] { display: none !important; }
.sr-only, .sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.f-m { font-family: var(--font-mono); }
.cap { font: 400 10.5px/14px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
svg.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s16 { width: 16px; height: 16px; stroke-width: 1.8; }
svg.i.s18 { width: 18px; height: 18px; stroke-width: 1.6; }
::selection { background: rgba(var(--acc-rgb), .22); }

/* ---------- Фон «Орбиты»: серебро, тонкие орбиты, перламутровое свечение (только декор) ---------- */
.orbits { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--ground); }
/* Дуги — цветом кнопки «Создать». Кольца стоят на месте; по трём из них бегут маленькие «кометы», шагами — ~6 раз в секунду, а не 60:
   под матовым стеклом каждый кадр движения пересчитывает размытие карточек, так нагрузка в ~10 раз меньше.
   Остановить: меню профиля → «Остановить движение» (html[data-motion="off"]) или «уменьшить движение» в системе. */
.orbits { --ocx: 163px; --ocy: 225px; }   /* центр колец: от правого края и от верха экрана */
.orbits::before { content: ""; position: absolute; width: 2240px; height: 2240px; right: -957px; top: -895px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2240 2240'%3E%3Cg fill='none'%3E%3Ccircle cx='1120' cy='1120' r='560' stroke='%23CA663E' stroke-opacity='.38'/%3E%3Ccircle cx='1120' cy='1120' r='720' stroke='%23B4532A' stroke-opacity='.55' stroke-width='1.25' stroke-dasharray='2 6'/%3E%3Ccircle cx='1120' cy='1120' r='900' stroke='%23B4532A' stroke-opacity='.55' stroke-width='1.25'/%3E%3Ccircle cx='1120' cy='1120' r='1100' stroke='%23CA663E' stroke-opacity='.3'/%3E%3C/g%3E%3Cg fill='%23CA663E'%3E%3Ccircle cx='588' cy='951' r='3.5'/%3E%3Ccircle cx='927' cy='1646' r='3'/%3E%3Ccircle cx='810' cy='1965' r='3.5'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
/* Комета — крошечный элемент в центре колец: rotate() + сдвиг на радиус ведёт его по кругу. Слой маленький,
   поэтому движение дешёвое; шаги (steps) — ~6 обновлений в секунду. */
.orbits .comet { position: absolute; left: calc(100% - var(--ocx)); top: var(--ocy); width: 0; height: 0;
  transform: rotate(0deg) translateY(calc(var(--r) * -1));
  animation: comet-run var(--t) steps(var(--n)) infinite; will-change: transform; }
.orbits .comet::before { content: ""; position: absolute; right: 0; top: -1px; width: 90px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(var(--acc-rgb), 0), rgba(var(--acc-rgb), .95)); }
.orbits .comet::after { content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 10px rgba(var(--acc-rgb), .55); }
@keyframes comet-run { from { transform: rotate(0deg) translateY(calc(var(--r) * -1)); } to { transform: rotate(360deg) translateY(calc(var(--r) * -1)); } }
.orbits .c1 { --r: 560px; --t: 350s; --n: 2100; animation-delay: -60s; }
.orbits .c2 { --r: 720px; --t: 450s; --n: 2700; animation-delay: -250s; }
.orbits .c3 { --r: 900px; --t: 565s; --n: 3400; animation-delay: -150s; }
html[data-motion="off"] .orbits .comet { animation-play-state: paused; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.orbits i { position: absolute; border-radius: 50%; background: var(--irid-ring);
  -webkit-mask-image: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, .55) 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, .55) 45%, transparent 100%); }
.orbits i:nth-child(1) { width: 460px; height: 460px; right: -67px; top: -5px; opacity: .9; }
.orbits i:nth-child(2) { width: 380px; height: 380px; right: -20px; bottom: -80px; opacity: .55; }
.boot { padding: 48px; text-align: center; color: var(--muted); font: 400 11px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Стекло, карточки ---------- */
.glass { background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.glass-soft { background: var(--glass-soft); border: 1px solid var(--line); }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) { .glass { background: #EDEFF2; } }
.card { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border-radius: var(--r-card); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 15px; line-height: 20px; letter-spacing: .16em; }
.aside-note { font: 400 10.5px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h2 .aside-note { letter-spacing: .1em; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-ctl);
  border: 1px solid rgba(28, 30, 39, .2); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: border-color .18s, background-color .18s, transform .18s, box-shadow .18s; }
.btn:hover { border-color: var(--ink); background: #fff; color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn.primary { border-color: var(--acc-ink); background: var(--acc-ink); color: #fff; }
.btn.primary:hover { border-color: var(--acc-deep); background: var(--acc-deep); color: #fff; box-shadow: 0 8px 20px -10px rgba(var(--acc-rgb), .9); }
.btn.small { padding: 0 14px; border-radius: 12px; font-size: 13.5px; }
.btn.white { background: #fff; }
.btn:disabled, .btn:disabled:hover { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn.wide { width: 100%; }
.btn .i-ext, .ext-ic { transition: transform .18s; }
.btn:hover .i-ext, a:hover > .ext-ic { transform: translate(2px, -2px); }

/* Внутренняя ссылка со стрелкой, подчёркивание растёт при наведении */
.il { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.il > span { background: linear-gradient(var(--ink), var(--ink)) left 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .22s ease; }
.il svg { transition: transform .18s; }
.il:hover > span { background-size: 100% 1px; }
.il:hover svg { transform: translateX(3px); }
.il.ext:hover svg { transform: translate(2px, -2px); }

/* ---------- Метки ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 10px; border-radius: var(--r-chip); border: 1px solid var(--line-2);
  background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap; width: fit-content; }
.chip.f-m { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; }
.chip.rose { background: var(--rose-bg); color: var(--rose-ink); border-color: var(--rose-line); font-weight: 600; }
.chip.amber { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }
.chip.green { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.chip.blue { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.chip.on-dark { background: rgba(247, 247, 250, .85); color: var(--ink); border-color: var(--line-2); }
.chip.white { background: #fff; color: var(--ink); border-color: rgba(28, 30, 39, .32); font-weight: 600; }
.chip.glass { background: rgba(255, 255, 255, .6); color: var(--text); border-color: var(--line-2); }
.tag { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--r-chip); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .5);
  font-size: 13.5px; line-height: 1.3; color: var(--text); }
.tiles-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--r-chip); border: 1px solid rgba(28, 30, 39, .2);
  background: var(--paper); font: 400 11px/1 var(--font-mono); color: var(--ink); white-space: nowrap; }
.kbds { display: flex; gap: 4px; flex-shrink: 0; }

/* Круглые значки с иконкой (раньше — цветные квадраты): тон — перламутр, «опасно» — красный */
.tile { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--line-3); color: var(--ink); }
.tile.blue, .tile.teal { background: var(--pearl-2); border-color: rgba(28, 30, 39, .14); }
.tile.indigo { background: var(--pearl-3); border-color: rgba(28, 30, 39, .14); }
.tile.pink { background: var(--pearl-1); border-color: rgba(28, 30, 39, .14); }
.tile.green { background: var(--green-bg); border-color: var(--green-line); color: var(--green); }
.tile.amber { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber); }
.tile.rose { background: var(--rose); border-color: var(--rose); color: #fff; }

.note { padding: 12px 14px; border-radius: var(--r-ctl); margin: 12px 0; font-size: 14.5px; border: 1px solid transparent; }
.note.err { background: var(--rose-bg); color: var(--rose-ink); border-color: var(--rose-line); }
.note.ok { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.note.warn { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }
.empty { padding: 28px; text-align: center; color: var(--muted); border-radius: var(--r-card); font-size: 14px; }

/* ---------- Каркас ---------- */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 20px; min-height: 100vh; padding: 20px; }
.sidebar { position: sticky; top: 20px; height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 18px; padding: 18px 14px 14px;
  border-radius: var(--r-card); background: rgba(234, 234, 239, .94); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  overflow-y: auto; overflow-x: hidden; z-index: 5; scrollbar-width: thin; scrollbar-color: rgba(28, 30, 39, .25) transparent; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; border-radius: var(--r-ctl); color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .logo { flex-shrink: 0; width: 40px; height: 40px; }
.brand b { display: block; font: 500 14px/18px var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.brand small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }

.role-switch { position: relative; }
.role-switch > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 8px 10px 8px 12px;
  border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: rgba(247, 247, 250, .8); color: var(--ink); text-align: left;
  transition: border-color .18s, background-color .18s; }
.role-switch > button:hover { border-color: rgba(28, 30, 39, .5); background: var(--paper); }
.role-switch .rs-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.role-switch .cap { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .14em; }
.role-switch .cap svg.i { width: 13px; height: 13px; }
.role-switch b { font-size: 13px; line-height: 17px; font-weight: 500; }
.role-switch > button > svg:last-child { color: var(--muted); transition: transform .18s; }
.role-switch > button[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.role-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 10; padding: 6px; border-radius: var(--r-ctl);
  background: var(--glass-t); border: 1px solid var(--line-2); box-shadow: var(--glass-shadow), 0 18px 40px -16px rgba(28, 30, 39, .35);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); display: flex; flex-direction: column; gap: 2px; }
.role-menu button { min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink);
  text-align: left; font-size: 13.5px; }
.role-menu button:hover { background: rgba(255, 255, 255, .8); border-color: var(--line); }
.role-menu button[aria-checked="true"] { background: var(--irid); border-color: rgba(28, 30, 39, .14); font-weight: 500; }

.nav { display: flex; flex-direction: column; gap: 14px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-sec { display: flex; flex-direction: column; gap: 6px; }
.nav-group { display: flex; align-items: center; gap: 10px; padding: 0 12px; font: 400 10.5px/14px var(--font-mono); letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); }
.nav-group::after { content: ""; flex: 1; height: 1px; background: rgba(28, 30, 39, .16); }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-ctl);
  border: 1px solid transparent; color: var(--ink); font-size: 14px; line-height: 18px; text-decoration: none; transition: background-color .18s, border-color .18s; }
.nav-link svg.i { width: 18px; height: 18px; stroke-width: 1.4; color: var(--muted); transition: color .18s, transform .18s; }
.nav-link:hover { background: rgba(255, 255, 255, .72); border-color: rgba(28, 30, 39, .1); color: var(--ink); }
.nav-link:hover svg.i { color: var(--ink); }
.nav-link:active { transform: scale(.98); }
.nav-link[aria-current="page"] { font-weight: 500; border-color: rgba(28, 30, 39, .14); background: var(--irid); background-size: 200% 100%;
  box-shadow: 0 8px 20px -12px rgba(140, 130, 200, .95); animation: irid 12s ease-in-out infinite alternate; }
.nav-link[aria-current="page"] svg.i { color: var(--ink); }
@keyframes irid { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.nav-dot { position: absolute; left: -9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--acc); }
.nav-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(var(--acc-rgb), .55); }
.nav-new { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex-shrink: 0; }
.nav-link .ext-ic { margin-left: auto; width: 14px; height: 14px; }
/* Подсказка внизу меню: как читать ссылки */
.nav-legend { position: relative; margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r-ctl);
  background: rgba(247, 247, 250, .7); border: 1px solid rgba(28, 30, 39, .14); }
.nav-legend::before { content: ""; position: absolute; left: -15px; right: -15px; bottom: calc(100% - 26px); height: 110px; pointer-events: none; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 110'%3E%3Cg fill='none' stroke='%23CA663E' stroke-opacity='.42'%3E%3Ccircle cx='190' cy='120' r='40'/%3E%3Ccircle cx='190' cy='120' r='70' stroke-dasharray='1.5 4'/%3E%3Ccircle cx='190' cy='120' r='105'/%3E%3Ccircle cx='190' cy='120' r='140'/%3E%3C/g%3E%3Cg fill='%23CA663E' fill-opacity='.85'%3E%3Ccircle cx='150' cy='63' r='2.2'/%3E%3Ccircle cx='91' cy='84' r='2.2'/%3E%3Ccircle cx='210' cy='85' r='2.2'/%3E%3C/g%3E%3C/svg%3E") right bottom / 240px 110px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60%); mask-image: linear-gradient(90deg, transparent 0, #000 60%); }
.nav-legend .cap { margin-bottom: 2px; }
.nav-legend > div { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 12.5px; line-height: 16px; color: var(--ink); }
.lg-i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(28, 30, 39, .28); color: var(--ink); }
.lg-i.dash { border-style: dashed; }
.lg-i svg.i { width: 12px; height: 12px; stroke-width: 2; }

/* Пользователь внизу меню — только на телефоне (на компьютере он в шапке) */
.me-box { display: none; align-items: center; gap: 10px; padding: 12px 4px 0; border-top: 1px solid var(--line); }
.me-box .ava { width: 36px; height: 36px; border-radius: 50%; background: var(--irid-ring); border: 1px solid rgba(28, 30, 39, .2); display: grid; place-items: center;
  font: 500 14px var(--font-head); color: var(--ink); flex-shrink: 0; }
.me-box .who { display: flex; flex-direction: column; min-width: 0; flex-grow: 1; }
.me-box .who b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-box .who small { font-size: 12px; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--muted);
  display: grid; place-items: center; flex-shrink: 0; transition: background-color .18s, color .18s; }
.icon-btn:hover { background: rgba(28, 30, 39, .07); color: var(--ink); }

.nav-scrim { display: none; }
.main { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 1480px; padding-bottom: 40px; }
.main > .stack { margin-top: 12px; }

/* ---------- Шапка: поиск, колокольчик, пользователь ---------- */
.topbar { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.topbar .burger, .topbar .mobile-title { display: none; }
.search { flex: 0 1 460px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 10px 0 16px; border-radius: var(--r-ctl);
  background: var(--field); border: 1px solid rgba(28, 30, 39, .16); color: var(--muted); cursor: text; transition: border-color .18s, box-shadow .18s; }
.search:hover { border-color: rgba(28, 30, 39, .4); }
.search:focus-within { border-color: var(--ink); box-shadow: var(--focus); }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ink); }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus-visible { outline: none; box-shadow: none; }
.search svg.i { width: 18px; height: 18px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px 0 14px; border-radius: var(--r-ctl);
  border: 1px solid rgba(28, 30, 39, .16); background: var(--field); color: var(--ink); font-size: 13.5px; font-weight: 500; text-decoration: none;
  white-space: nowrap; transition: border-color .18s, transform .18s; }
.top-btn:hover { border-color: rgba(28, 30, 39, .5); color: var(--ink); transform: translateY(-1px); }
.top-btn.square { width: 48px; padding: 0; }
.bell { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--field);
  border: 1px solid rgba(28, 30, 39, .18); color: var(--ink); text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s; }
.bell:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(207, 198, 230, .75); }
.bell svg.i { transition: transform .2s; }
.bell:hover svg.i { transform: rotate(-12deg); }
.bell-n { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: #F2F3F6;
  font: 400 11px/20px var(--font-mono); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 10px; height: 48px; max-width: 240px; padding: 0 10px 0 6px; border-radius: var(--r-ctl);
  background: var(--field); border: 1px solid rgba(28, 30, 39, .16); color: var(--ink); transition: border-color .18s, transform .18s; }
.user-chip:hover { border-color: rgba(28, 30, 39, .5); transform: translateY(-1px); }
.user-chip .ava { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--irid-ring);
  border: 1px solid rgba(28, 30, 39, .2); font: 500 14px var(--font-head); }
.user-chip .nm { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip > svg:last-child { color: var(--muted); transition: transform .18s; }
.user-chip[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.user-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 260px; padding: 8px; border-radius: 18px; background: var(--glass-t);
  border: 1px solid var(--line-2); box-shadow: var(--glass-shadow), 0 24px 50px -20px rgba(28, 30, 39, .4); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.user-pop .who { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-pop .who b { font-size: 14px; font-weight: 600; }
.user-pop .who small { font-size: 12.5px; color: var(--muted); }
.user-pop button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 1px solid transparent; border-radius: 12px;
  background: transparent; color: var(--ink); font-size: 14px; text-align: left; }
.user-pop button:hover { background: rgba(255, 255, 255, .8); border-color: var(--line); }
.user-pop button svg.i { color: var(--muted); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; font-size: 13px; color: var(--muted); margin: -12px 0 -14px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }
.crumbs > span { color: var(--muted); }

/* ---------- «Важно сегодня»: бегущая строка под шапкой ---------- */
.ticker { display: flex; align-items: center; gap: 12px; min-height: 46px; border-radius: var(--r-ctl); background: var(--metal); border: 1px solid rgba(28, 30, 39, .16); }
.tk-lbl { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 12px; border-radius: var(--r-chip); background: var(--ink); color: #F2F3F6;
  font: 400 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.ticker > .tk-lbl { margin-left: 6px; }
.tk-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb), .75); } 100% { box-shadow: 0 0 0 8px rgba(var(--acc-rgb), 0); } }
.tk-view { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.tk-track { display: flex; width: max-content; animation: tk 60s linear infinite; }
.ticker:hover .tk-track, .ticker:focus-within .tk-track, .tk-track.is-paused { animation-play-state: paused; }
@keyframes tk { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-set { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.tk-li { display: flex; align-items: center; gap: 18px; padding-right: 18px; white-space: nowrap; }
.tk-a { display: inline-block; padding: 12px 0; font-size: 13.5px; line-height: 20px; color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) left calc(100% - 10px) / 0 1px no-repeat; transition: background-size .22s ease; }
.tk-a b { font-weight: 600; }
.tk-a:hover, .tk-a:focus-visible { color: var(--ink); background-size: 100% 1px; }
.tk-a:focus-visible { outline-offset: -2px; box-shadow: none; }
.tk-sep { flex: none; width: 12px; height: 12px; color: var(--muted); }
.tk-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px; border: 0; border-left: 1px solid rgba(28, 30, 39, .16);
  border-radius: 0 13px 13px 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 500; transition: background-color .18s; }
.tk-btn:hover { background: rgba(255, 255, 255, .55); }
/* Все записи помещаются в строку — стоят на месте */
.ticker.tk-static .tk-track { animation: none; }
.ticker.tk-static .tk-dup, .ticker.tk-static .tk-btn { display: none; }
.ticker.tk-static .tk-view { -webkit-mask-image: none; mask-image: none; }

/* ---------- Шапка экрана: стеклянная карточка, подпись, заголовок, Луна ---------- */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: var(--r-card);
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.hero::before { content: ""; position: absolute; right: 0; top: 0; width: 480px; height: 480px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 480'%3E%3Cg fill='none' stroke='%23CA663E'%3E%3Ccircle cx='480' cy='0' r='150' stroke-opacity='.42'/%3E%3Ccircle cx='480' cy='0' r='210' stroke-opacity='.7' stroke-dasharray='1.5 5'/%3E%3Ccircle cx='480' cy='0' r='290' stroke-opacity='.31'/%3E%3C/g%3E%3Cg fill='%23CA663E'%3E%3Ccircle cx='298' cy='105' r='2.6' fill-opacity='.85'/%3E%3Ccircle cx='417' cy='136' r='2.2' fill-opacity='.77'/%3E%3Ccircle cx='207' cy='99' r='2.2' fill-opacity='.59'/%3E%3C/g%3E%3C/svg%3E") right top / 480px 480px no-repeat; }
.hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; opacity: .55;
  background: var(--irid-ring); -webkit-mask-image: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, .5) 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, .5) 45%, transparent 100%); }
.hero.blue::after, .hero.teal::after { opacity: .7; }
.hero.rose::after { opacity: .8; filter: hue-rotate(-20deg); }
.hero-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; min-height: 176px; padding: 22px 24px; }
.hero.compact .hero-top { min-height: 0; padding: 20px 24px; }
.hero .copy { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 900px; }
/* Подпись над заголовком («— ГЛАВНАЯ», «— НАПУТСТВИЕ ДНЯ») — акцентным цветом: 7 : 1 на стекле */
.kicker { display: flex; align-items: center; gap: 10px; font: 500 10.5px/14px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--acc-text); }
.kicker > i { flex: none; width: 18px; height: 1px; background: var(--acc); }
.hero h1 { font: 300 46px/1.09 var(--font-head); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); overflow-wrap: break-word; }
.hero.compact h1 { font-size: 36px; line-height: 1.12; }
.hero p { max-width: 720px; font-size: 15.5px; line-height: 22px; color: var(--muted); }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* Луна — настоящие картинки с прозрачным фоном, без рамок и кругов; сидит на нижней кромке карточки */
.bot { display: block; object-fit: contain; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.hero .bot { position: relative; flex-shrink: 0; align-self: flex-end; margin: -8px 4px -23px 0; filter: drop-shadow(0 14px 16px rgba(28, 30, 39, .14)); }
.hero .bot.pose-sit, .hero .bot.pose-blink, .hero .bot.pose-tail { width: 122px; height: 168px; }
.hero .bot.pose-jump { width: 150px; height: 146px; margin-bottom: -18px; }
.hero .bot.pose-peek { width: 128px; height: 128px; margin-bottom: -26px; }
.hero .bot.pose-sleep { width: 158px; height: 124px; margin-bottom: -20px; }
.hero.compact .bot.pose-sit, .hero.compact .bot.pose-blink, .hero.compact .bot.pose-tail { width: 100px; height: 138px; margin-bottom: -21px; }
.hero.compact .bot.pose-jump { width: 124px; height: 120px; }
.hero.compact .bot.pose-peek { width: 108px; height: 108px; }
.hero.compact .bot.pose-sleep { width: 130px; height: 102px; }

/* Быстрые ссылки под шапкой: слева — системы, справа — разделы навигатора */
.qlinks { position: relative; z-index: 1; display: flex; border-top: 1px solid var(--line); }
.qlinks .qx-row { flex: 0 1 auto; display: flex; min-width: 0; }
.qlinks .qi-row { flex: 1 1 auto; display: flex; min-width: 0; border-left: 1px solid rgba(28, 30, 39, .3); background: rgba(247, 247, 250, .5); }
.qx { position: relative; flex: 1 1 0; min-width: 132px; min-height: 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  padding: 11px 44px 11px 16px; border-left: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .18s; }
.qx:first-child { border-left: 0; padding-left: 24px; }
.qx > svg.i { width: 20px; height: 20px; stroke-width: 1.3; }
.qx-l { font-size: 14px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.qx-ar { position: absolute; top: 9px; right: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(28, 30, 39, .32); color: var(--ink); transition: background-color .18s, color .18s, transform .18s, border-color .18s; }
.qx-ar svg.i { width: 12px; height: 12px; stroke-width: 2; }
.qx:hover { background: rgba(255, 255, 255, .62); color: var(--ink); }
.qx:hover .qx-ar { background: var(--ink); border-color: var(--ink); color: #F2F3F6; transform: translateX(2px); }
.qi { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 0 22px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none; white-space: nowrap; transition: background-color .18s; }
.qi:first-child { border-left: 0; }
.qi > span { background: linear-gradient(var(--ink), var(--ink)) left 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .22s ease; }
.qi svg.i { transition: transform .18s; }
.qi:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.qi:hover > span { background-size: 100% 1px; }
.qi:hover svg.i { transform: translateX(3px); }
.qx:focus-visible, .qi:focus-visible { outline-offset: -4px; box-shadow: inset 0 0 0 8px rgba(var(--acc-rgb), .18); background: rgba(255, 255, 255, .62); }
.qx:active, .qi:active { transform: scale(.98); }

/* Кольцо прогресса (если Луна не загрузилась) */
.progress-card { position: relative; z-index: 1; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ring { position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--ink) var(--deg, 0deg), rgba(28, 30, 39, .12) 0); }
.ring::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; background: var(--irid-ring); z-index: -1; opacity: .8;
  -webkit-mask-image: radial-gradient(closest-side, transparent 80%, #000 88%, transparent 100%); mask-image: radial-gradient(closest-side, transparent 80%, #000 88%, transparent 100%); }
.ring > div { width: 124px; height: 124px; border-radius: 50%; background: var(--glass-t); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring b { font: 300 44px/1 var(--font-head); color: var(--ink); }
.ring small { font: 400 12px var(--font-mono); color: var(--muted); }
.progress-card > span { font: 400 10.5px/14px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Мой рабочий день ---------- */
/* Как в макете H-screen: широкий маршрут слева, узкая колонка справа (≈ 30 %). Слева — маршрут и под ним подсказки,
   справа — «Важно сегодня» и «Нужен быстрый ответ»: правая колонка короче чек-листа и на широком высоком экране
   едет рядом с маршрутом при прокрутке («быстрый ответ» всегда под рукой). */
.day-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: 20px; align-items: start; }
@media (min-width: 1101px) and (min-height: 760px) { .day-side { position: sticky; top: 20px; } }
/* Подпись Луны под текстом шапки: «Луна спит — отметьте первый пункт…» */
.hero-say { display: flex; align-items: center; gap: 8px; margin-top: 2px; font: 400 12px/1.45 var(--font-mono); letter-spacing: .02em; color: var(--muted); }
.hero-say::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.hero-say:empty { display: none; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.day-route .card-head { flex-wrap: nowrap; justify-content: flex-start; }
.day-route .card-head .aside-note { flex-shrink: 0; }
.pl { position: relative; flex: 1 1 auto; min-width: 40px; height: 1px; background: #A0A2B0; }
.pl-fill { position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--ink); transition: width .25s var(--ease); }
.pl-head { position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .18); }
.route-src { margin-top: -8px; }
.route-group { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; border-top: 1px solid var(--line); }
.route-group:first-of-type { border-top: 0; }
.route-when { padding-top: 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.route-when b { font: 500 13px/16px var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.route-when > span { font: 400 11px/14px var(--font-mono); color: var(--muted); }
.route-when > .rg-m { margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.rg-ring { width: 18px; height: 18px; flex-shrink: 0; }
.rg-ring circle { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.rg-ring .rg-bg { stroke-opacity: .2; }
.rg-ring .rg-arc { stroke-dasharray: 0 44; transition: stroke-dasharray .25s var(--ease); }
.route-items { display: flex; flex-direction: column; padding: 4px 0 6px; min-width: 0; }
.route-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; min-height: 44px; padding-right: 4px;
  border-radius: var(--r-ctl); transition: background-color .18s; }
.route-item:hover { background: rgba(255, 255, 255, .62); }
.route-item .box { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff;
  display: grid; place-items: center; }
.route-item .box::before { content: ""; position: absolute; left: 11px; top: 11px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--faint);
  background: rgba(247, 247, 250, .9); transition: border-color .18s, box-shadow .2s, background-color .2s, transform .15s; }
.route-item .box svg.i { position: relative; width: 13px; height: 13px; stroke-width: 2.8; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease); }
.route-item .box:hover::before { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(207, 198, 230, .75); }
.route-item .box:active::before { transform: scale(.9); }
.route-item.done .box::before { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(230, 201, 221, .9), 0 0 12px 3px rgba(190, 207, 227, .95);
  animation: pop .24s cubic-bezier(.3, 1.6, .5, 1); }
.route-item.done .box svg.i { opacity: 1; transform: none; }
.route-item .box:focus-visible { outline: none; box-shadow: none; }
.route-item .box:focus-visible::before { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px rgba(var(--acc-rgb), .3); }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.route-item .txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 5px 0; }
.route-item .txt b { font-size: 14px; line-height: 19px; font-weight: 400; color: var(--ink); transition: color .2s; }
.route-item.done .txt b { color: var(--muted); }
.route-item .txt span { font-size: 12px; line-height: 16px; color: var(--muted); }
.route-item .go { justify-self: end; }
/* Маршрут в материале — только чтение: вместо галочки точка */
.route-item.ro { grid-template-columns: 24px minmax(0, 1fr); }
.route-item.ro:hover { background: transparent; }
.rdot { justify-self: center; width: 7px; height: 7px; border-radius: 50%; border: 1.3px solid var(--ink); }
/* Узкая карточка маршрута (ноутбук 1100–1300 px, планшет): «Утро / День / Вечер» — строкой над пунктами,
   ещё уже — кнопка-«таблетка» под текстом пункта, как на телефоне */
.day-route { container-type: inline-size; }
@container (max-width: 640px) {
  .day-route .card-head { flex-wrap: wrap; }
  .day-route .card-head .pl { flex-basis: 100%; order: 3; }
  .route-group { grid-template-columns: minmax(0, 1fr); }
  .route-when { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; padding-top: 10px; }
  .route-when > .rg-m { margin: 0 0 0 auto; }
}
@container (max-width: 470px) {
  .route-item { grid-template-columns: 44px minmax(0, 1fr); padding-bottom: 2px; }
  .route-item .go { grid-column: 2; justify-self: start; margin: -8px 0 0 -12px; }
}
/* Ссылка-«таблетка»: видимая часть 30 px, область нажатия — 44 px */
.pill-link { position: relative; z-index: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 11px 0 12px;
  font-size: 12.5px; font-weight: 500; line-height: 1.25; color: var(--ink); text-decoration: none; white-space: nowrap; }
.pill-link::before { content: ""; position: absolute; inset: 7px 0; z-index: -1; border-radius: var(--r-chip); border: 1px solid rgba(28, 30, 39, .2);
  background: rgba(247, 247, 250, .6); transition: border-color .18s, background-color .18s; }
.pill-link svg.i { transition: transform .18s; }
.pill-link:hover { color: var(--ink); }
.pill-link:hover::before { border-color: var(--ink); background: var(--paper); }
.pill-link:hover svg.i { transform: translateX(3px); }
.pill-link:focus-visible { outline: none; box-shadow: none; }
.pill-link:focus-visible::before { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: var(--focus); }

/* «Нужен быстрый ответ»: строки с круглым значком; «опасно» — красная */
.quick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.quick-list li + li { border-top: 1px solid rgba(28, 30, 39, .1); }
.quick-list li:has(> .danger) { margin-bottom: 6px; }
.quick-list li:has(> .danger) + li, .quick-list li + li:has(> .danger) { border-top: 0; }
.quick-list li + li:has(> .danger) { margin-top: 6px; }
.quick { display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; column-gap: 12px; align-items: center; min-height: 44px; padding: 5px 10px;
  border-radius: var(--r-ctl); border: 1px solid transparent; color: var(--ink); font-size: 13.5px; line-height: 17px; font-weight: 500; text-decoration: none;
  transition: background-color .18s, transform .18s, border-color .18s; }
.quick .tile, .quick .tile.blue, .quick .tile.teal, .quick .tile.indigo, .quick .tile.pink, .quick .tile.green, .quick .tile.amber { width: 30px; height: 30px;
  background: transparent; border: 1px solid rgba(28, 30, 39, .24); color: var(--ink); }
.quick .tile svg.i { width: 16px; height: 16px; }
.quick .go { width: 16px; height: 16px; color: var(--muted); transition: transform .18s, color .18s; }
.quick:hover { color: var(--ink); background: rgba(255, 255, 255, .78); border-color: rgba(28, 30, 39, .1); transform: translateY(-1px); }
.quick:hover .go { color: var(--ink); transform: translateX(3px); }
.quick:active { transform: scale(.98); }
.quick.danger { background: var(--rose-bg); border-color: var(--rose-line); color: var(--rose-ink); font-weight: 600; }
.quick.danger .tile { background: var(--rose); border-color: var(--rose); color: #fff; }
.quick.danger .go { color: var(--rose-ink); }
.quick.danger:hover { background: #F8E9EB; border-color: var(--rose); color: var(--rose-ink); }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qa-card { gap: 6px; padding: 12px 12px 10px; }
.qa-card .card-head { padding: 0 4px 0 6px; }
.qa-card .card-head h2 { font-size: 13.5px; letter-spacing: .14em; }

/* «Важно сегодня» — уведомление с перламутровой кромкой и кнопкой «Ознакомлен» (как в наборе H-kit) */
.today-card { position: relative; gap: 10px; }
.today-card > .t-edge { position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, #E6C9DD, #CFC6E6); box-shadow: 0 0 12px 2px rgba(230, 201, 221, .95); }
.today-card .card-head { justify-content: space-between; }
h2.tk-lbl { font: 400 10.5px/1 var(--font-mono); letter-spacing: .14em; }
.today-card h3 { font-size: 16px; line-height: 1.35; }
.today-card p { font-size: 14px; line-height: 1.5; color: var(--muted); white-space: pre-line; }
/* Длинный текст — три строки, полностью — в ленте */
.today-card p.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.today-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }

/* Подсказки на весь день — одна карточка под маршрутом, на широкой колонке — в две колонки */
.hints-card { gap: 6px; padding: 16px 22px 10px; }
.hints-card .card-head h2 { font-size: 13.5px; letter-spacing: .14em; }
.hint-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); column-gap: 28px; }
.hint-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.hint-list .ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(28, 30, 39, .28); color: var(--ink); }
.hint-list .ic svg.i { width: 15px; height: 15px; }
.hint-list b { display: block; margin: 5px 0 4px; font-size: 14px; line-height: 19px; font-weight: 600; color: var(--ink); }
.hint-list p { font-size: 12.5px; line-height: 17px; color: var(--muted); }

/* ---------- Материал: секции ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 16px; align-items: start; }
.sec { display: flex; flex-direction: column; gap: 14px; padding: 22px 26px; border-radius: var(--r-card); scroll-margin-top: 24px; }
.sec-head { display: flex; align-items: center; gap: 14px; }
.num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font: 400 13px/1 var(--font-mono); }
.sec-head h2 { font-size: 16px; line-height: 1.3; letter-spacing: .12em; }
.sec p, .sec li { font-size: 15.5px; line-height: 1.6; color: var(--text); }
.sec ol, .sec ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.sec ol li::marker { font: 400 13px var(--font-mono); color: var(--muted); }
.sec ul li::marker { color: var(--acc); }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--warm-bg); border: 1px solid var(--warm-line); color: var(--acc-ink); }
.callout > svg.i { margin-top: 2px; }
.callout p { font-size: 15px; line-height: 1.55; color: var(--ink); }
.callout b { color: var(--acc-text); }
.say { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(28, 30, 39, .14);
  background: linear-gradient(100deg, rgba(230, 201, 221, .38) 0%, rgba(190, 207, 227, .38) 50%, rgba(207, 198, 230, .38) 100%), rgba(255, 255, 255, .55); }
.say-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.say-head > span { font: 400 10.5px/14px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.say p { font-size: 15.5px; line-height: 1.6; color: var(--ink); white-space: pre-line; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(28, 30, 39, .2);
  background: rgba(255, 255, 255, .8); color: var(--ink); font-size: 13.5px; font-weight: 500; transition: border-color .18s, background-color .18s; }
.copy-btn:hover { border-color: var(--ink); background: #fff; }
.copy-btn.copied { color: var(--green); border-color: var(--green-line); background: var(--green-bg); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.col { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 18px; }
.col b { font: 400 13px/1.3 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.col p { font-size: 15px; line-height: 1.5; }
.outcomes { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-radius: 18px; overflow: hidden; }
.outcomes > div { padding: 14px 16px; font-size: 15px; line-height: 1.5; color: var(--text); }
.outcomes > .when { font-weight: 600; background: var(--green-bg); color: var(--green); }
.outcomes > .when.rose { background: var(--rose-bg); color: var(--rose-ink); }
.outcomes > .when.amber { background: var(--amber-bg); color: var(--amber); }
.outcomes > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.handoff-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 16px; }
.handoff-row + .handoff-row { margin-top: 8px; }
.handoff-row b { color: var(--ink); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.media img, .media video { max-width: 100%; border-radius: 16px; display: block; border: 1px solid var(--line); }
.media figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.media { margin: 0; }
.table-wrap { overflow-x: auto; }
.sec table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sec th, .sec td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sec th { font: 400 10.5px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }
.toc { display: flex; flex-direction: column; gap: 0; padding: 14px 12px; border-radius: var(--r-card); }
.toc .ttl, .side .ttl { display: block; padding: 0 8px; font: 400 10.5px/14px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 13.5px; line-height: 1.3; }
.toc a:hover { background: rgba(255, 255, 255, .72); color: var(--ink); }
.side-card { padding: 16px; border-radius: var(--r-card); display: flex; flex-direction: column; gap: 10px; }
.side-card .ttl { padding: 0; }
.side-dark { background: var(--irid); border: 1px solid rgba(28, 30, 39, .14); color: var(--ink); box-shadow: 0 10px 26px -14px rgba(140, 130, 200, .95); }
.side-dark h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.side-dark p { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.side-dark img { flex-shrink: 0; width: 40px; height: 55px; object-fit: contain; margin: -12px 0 -6px; }

/* ---------- Списки материалов ---------- */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.item-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 52px 18px 20px; border-radius: var(--r-card); text-decoration: none; color: var(--ink);
  transition: border-color .18s, transform .18s, background-color .18s; }
.item-card::before, .item-card::after { content: ""; position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-radius: 50%; }
.item-card::before { border: 1px solid rgba(28, 30, 39, .32); transition: background-color .18s, border-color .18s; }
.item-card::after { background: var(--ink); transition: background-color .18s, transform .18s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
.item-card:hover { color: var(--ink); border-color: rgba(28, 30, 39, .3); transform: translateY(-1px); }
.item-card:hover::before { background: var(--ink); border-color: var(--ink); }
.item-card:hover::after { background: #F2F3F6; transform: translateX(2px); }
.item-card h3 { font-size: 16px; line-height: 1.3; }
.item-card p { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 18px; letter-spacing: .16em; }
.section-title::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

/* ---------- Вход ---------- */
.login { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center;
  padding: 48px clamp(24px, 6vw, 96px); color: var(--ink); }
.login .intro { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.login .intro .brand { padding: 0; }
.login .intro h1 { font: 300 clamp(34px, 5vw, 60px)/1.05 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
.login .intro p { max-width: 520px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.login-luna { width: 136px; height: 187px; margin-top: 6px; filter: drop-shadow(0 16px 18px rgba(28, 30, 39, .16)); }
.login-card { padding: 28px; border-radius: var(--r-card); }
.login-card h2 { font-size: 15px; letter-spacing: .16em; margin-bottom: 18px; }
.login-card .fine { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: 13.5px; color: var(--ink); }
.field input, .field select, .field textarea { min-height: 44px; padding: 10px 14px; border-radius: var(--r-ctl); border: 1px solid rgba(28, 30, 39, .2); background: var(--paper);
  color: var(--ink); font-size: 15px; transition: border-color .18s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(28, 30, 39, .45); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field .hint { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; }

/* ---------- Пользователи и диалоги ---------- */
.users-table { width: 100%; border-collapse: collapse; }
.users-table th, .users-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 14.5px; }
.users-table th { font: 400 10.5px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.users-table tr:last-child td { border-bottom: 0; }
.users-table tr.off td, .users-table tr.off b { color: var(--muted); }
.users-table tr.off b { font-weight: 500; }
.users-table small { color: var(--muted); font-size: 12.5px; }
.table-card { padding: 6px 14px; border-radius: var(--r-card); overflow-x: auto; }
.dialog { position: fixed; inset: 0; background: rgba(28, 30, 39, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center;
  padding: 16px; z-index: 50; }
.dialog > form { position: relative; width: min(540px, 100%); max-height: 90vh; overflow-y: auto; padding: 24px; border-radius: var(--r-card); background: var(--glass-t);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), 0 30px 60px -24px rgba(28, 30, 39, .45); animation: dlgIn .22s var(--ease) both; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.dialog h2 { margin-bottom: 14px; font-size: 16px; letter-spacing: .14em; }
/* Сообщение (toast): стеклянное окно с перламутровой кромкой и круглым значком */
.dialog > form.msg { width: min(440px, 100%); padding: 18px 18px 16px; }
.msg .t-edge { position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, #E6C9DD, #CFC6E6); box-shadow: 0 0 12px 2px rgba(230, 201, 221, .95); }
.msg-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.t-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pearl-1); color: var(--ink); }
.msg-row p { padding-top: 7px; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.msg .row-actions { margin-top: 14px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 8px; }
.temp-pass { font: 500 22px/1.3 var(--font-mono); letter-spacing: .06em; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--green);
  border: 1px solid var(--green-line); -webkit-user-select: all; user-select: all; margin-top: 8px; }
.auth-simple { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-simple form { width: min(440px, 100%); padding: 28px; border-radius: var(--r-card); }
.auth-simple h1 { font-size: 24px; margin-bottom: 8px; }
.auth-simple .sub { color: var(--muted); margin-bottom: 16px; font-size: 14.5px; }

/* ---------- Планшет и телефон ---------- */
@media (max-width: 1100px) {
  .two-col, .article-layout, .day-grid { grid-template-columns: minmax(0, 1fr); }
  .day-grid { gap: 16px; }
  .day-grid > .stack { display: contents; }
  .day-grid .today-card { order: -1; }
  .day-grid .hints-card { order: 1; }
  .side { position: static; }
  .hero h1 { font-size: 36px; }
  .hero.compact h1 { font-size: 30px; }
  .qlinks { flex-direction: column; }
  .qlinks .qi-row { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: min(300px, 86vw); border-radius: 0 22px 22px 0; background: #ECECF1;
    transform: translateX(-105%); transition: transform .22s var(--ease); z-index: 40; }
  .shell.nav-open .sidebar { transform: none; box-shadow: 0 24px 60px -20px rgba(28, 30, 39, .45); }
  .nav-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(28, 30, 39, .32); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .me-box { display: flex; }
  .main { padding: 0 16px 40px; gap: 12px; }
  .main > .stack { margin-top: 4px; }
  .topbar { position: sticky; top: 0; z-index: 20; margin: 0 -16px; padding: 10px 16px; gap: 8px; background: rgba(234, 234, 239, .94);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); }
  .topbar .burger { display: inline-flex; }
  .topbar .mobile-title { display: block; flex: 1; min-width: 0; font: 400 13.5px/1.25 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .search { display: none; }
  .top-actions { gap: 8px; }
  .top-btn { height: 44px; }
  .top-btn.square { width: 44px; }
  .bell { width: 44px; height: 44px; }
  .user-menu, .top-btn.ai-btn { display: none; }
  .ticker > .tk-lbl { padding: 0 10px; }
  .ticker .tk-lbl .tk-full { display: none; }
  .tk-btn { padding: 0 12px; }
  .tk-btn > span { display: none; }
  .hero-top { flex-wrap: wrap; gap: 12px 16px; min-height: 0; padding: 18px 18px; }
  .hero.compact .hero-top { padding: 16px 18px; }
  .hero h1, .hero.compact h1 { font-size: 26px; line-height: 1.12; letter-spacing: .04em; }
  .hero p { font-size: 14.5px; line-height: 21px; }
  .hero .copy { flex: 1 1 200px; }
  /* Луна на телефоне не сжимает заголовок: сидит в правом нижнем углу карточки, последняя строка текста её обходит */
  .hero-top:has(> .bot) { min-height: 118px; }
  .hero-top:has(> .bot) .copy { flex-basis: 100%; }
  .hero-top:has(> .bot) .copy > :nth-last-child(-n+2) { padding-right: 64px; }
  .hero .bot { position: absolute; right: 10px; bottom: -2px; margin: 0; }
  /* .hero.compact — тоже: иначе правило компактной шапки сильнее, Луна остаётся крупной и наезжает на текст */
  .hero .bot.pose-sit, .hero .bot.pose-blink, .hero .bot.pose-tail,
  .hero.compact .bot.pose-sit, .hero.compact .bot.pose-blink, .hero.compact .bot.pose-tail { width: 60px; height: 83px; }
  .hero .bot.pose-jump, .hero.compact .bot.pose-jump { width: 78px; height: 76px; bottom: 2px; }
  .hero .bot.pose-peek, .hero.compact .bot.pose-peek { width: 70px; height: 70px; bottom: -10px; }
  .hero .bot.pose-sleep, .hero.compact .bot.pose-sleep { width: 82px; height: 64px; }
  .hero:has(.progress-card, .week-card, .period-tabs, .ed-new) .bot { display: none; }
  .hero::before { width: 300px; height: 300px; background-size: 300px 300px; }
  .qlinks .qx-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qx, .qx:first-child { min-width: 0; padding-left: 16px; border-left: 0; border-top: 1px solid var(--line); }
  .qx:nth-child(-n+2) { border-top: 0; }
  .qx:nth-child(even) { border-left: 1px solid var(--line); }
  .qx:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .qlinks .qi-row { flex-direction: column; }
  .qi { min-height: 48px; border-left: 0; border-top: 1px solid var(--line); padding: 0 18px; }
  .qi:first-child { border-top: 0; }
  .progress-card { flex-direction: row; gap: 12px; }
  .ring { width: 88px; height: 88px; } .ring > div { width: 80px; height: 80px; } .ring b { font-size: 28px; }
  .card, .sec { padding: 16px 16px; border-radius: 20px; }
  .cols, .quick-grid { grid-template-columns: minmax(0, 1fr); }
  .outcomes { grid-template-columns: minmax(0, 1fr); }
  .route-group { grid-template-columns: minmax(0, 1fr); }
  .route-when { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; padding-top: 10px; }
  .route-when > .rg-m { margin: 0 0 0 auto; }
  .route-item { grid-template-columns: 44px minmax(0, 1fr); padding-bottom: 2px; }
  .route-item .go { grid-column: 2; justify-self: start; margin: -8px 0 0 -12px; }
  .day-route .card-head { flex-wrap: wrap; }
  .day-route .card-head .pl { flex-basis: 100%; order: 3; }
  .login { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 24px; padding: 28px 16px; }
  .login-luna { display: none; }
  .users-table .hide-sm { display: none; }
  .orbits::before { right: -1040px; top: -960px; }
  .orbits { --ocx: 80px; --ocy: 160px; }
  .orbits i:nth-child(1) { width: 300px; height: 300px; right: -90px; top: -60px; }
  .orbits i:nth-child(2) { width: 260px; height: 260px; right: -80px; bottom: -80px; }
}
/* Узкий телефон: строка сотрудника — в две строки, кнопка «Изменить» видна сразу (таблицу не нужно листать вбок) */
@media (max-width: 560px) {
  .users-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .users-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: center; padding: 12px 0;
    border-bottom: 1px solid var(--line); }
  .users-table tr:last-child { border-bottom: 0; }
  .users-table td { display: block; padding: 0; border: 0; }
  .users-table td:nth-child(1) { grid-area: 1 / 1; }
  .users-table td:nth-child(2) { grid-area: 2 / 1; font-size: 13.5px; }
  .users-table td:nth-child(5) { grid-area: 1 / 2; justify-self: end; }
  .users-table td:nth-child(6) { grid-area: 2 / 2; justify-self: end; }
}
/* Меньше движения: всё стоит; бегущая строка — обычный список с прокруткой */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .tk-track { transform: none; }
  .tk-dup, .tk-btn { display: none !important; }
  .tk-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
}
