/* Цвета сайта gm-gofra.ru, вариант «Б. Тёмная шапка».
   Фирменный красный (--accent) — только то, что привлекает внимание без тревоги:
   выходные, метка «сегодня» в «7 днях», счётчик «Не разнесено».
   Сегодняшнее число в «Месяце» — коричнево-розовый #8B7571 (решение владельца 23.10.2026).
   Просрочка — приглушённый кирпичный (--overdue), не фирменный красный. */
:root {
  --bg: #F4EFEC;
  --surface: #FFFFFF;
  --surface-2: #EDE4E2;
  --text: #2A2A2A;
  --muted: #6B6B6B;
  --line: #E2D8D4;
  --brand: #8B7571;
  --brand-light: #AF9591;
  --accent: #C0392B;
  /* события (вариант 2 из design/цвета-событий.html): полоса · фон · текст */
  --planned: #8B6A64; --planned-bg: #F1E8E5; --planned-text: #5E4440;   /* отгрузка */
  --press: #3E68A8;   --press-bg: #E4EBF5;   --press-text: #2C4C7E;     /* валковый пресс */
  --glue: #C08A2A;    --glue-bg: #F6EBD6;    --glue-text: #7A5410;      /* склейка */
  --done: #2E8B3E;    --done-bg: #E1F0DE;    --done-text: #23652F;      /* сделано */
  --overdue: #A65D57; --overdue-bg: #F0D3CE; --overdue-text: #7E3A35;   /* просрочено / позже отгрузки */
  --desired: #AF9591; --desired-text: #8B7571;                          /* плана нет */
  --today: #FBF3F0;
  --top-bg: #1F1F1F;
  --top-text: #F9F6F4;
  --top-line: #3A3433;
  --top-soft: #2E2928;
  --top-muted: #BFB3B0;
  --shadow: 0 6px 24px rgba(42, 42, 42, .12);
  --card-shadow: 0 2px 10px rgba(42, 42, 42, .07);
  --radius: 14px;
  --radius-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171413; --surface: #211D1C; --surface-2: #2C2625; --text: #EFE9E6; --muted: #A79C98; --line: #3A3331;
    --brand: #C9AFAA; --brand-light: #AF9591; --today: #2A2220;
    --planned: #C9AFAA; --planned-bg: #3A302F; --planned-text: #EBDCD8;
    --press: #7FA3DE; --press-bg: #23304A; --press-text: #C9D9F3;
    --glue: #D9A44A; --glue-bg: #3D3018; --glue-text: #F0D7A6;
    --done: #6FC07C; --done-bg: #1F3523; --done-text: #B9E3BF;
    --overdue: #D08A82; --overdue-bg: #3D2523; --overdue-text: #F0C3BD;
    --desired: #8F8582; --desired-text: #B5AAA6;
    --top-bg: #0F0D0C; --top-line: #2E2827; --top-soft: #26201F;
    --shadow: 0 6px 24px rgba(0, 0, 0, .5); --card-shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171413; --surface: #211D1C; --surface-2: #2C2625; --text: #EFE9E6; --muted: #A79C98; --line: #3A3331;
  --brand: #C9AFAA; --brand-light: #AF9591; --today: #2A2220;
  --planned: #C9AFAA; --planned-bg: #3A302F; --planned-text: #EBDCD8;
  --press: #7FA3DE; --press-bg: #23304A; --press-text: #C9D9F3;
  --glue: #D9A44A; --glue-bg: #3D3018; --glue-text: #F0D7A6;
  --done: #6FC07C; --done-bg: #1F3523; --done-text: #B9E3BF;
  --overdue: #D08A82; --overdue-bg: #3D2523; --overdue-text: #F0C3BD;
  --desired: #8F8582; --desired-text: #B5AAA6;
  --top-bg: #0F0D0C; --top-line: #2E2827; --top-soft: #26201F;
  --shadow: 0 6px 24px rgba(0, 0, 0, .5); --card-shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
h1 { margin: 0; font-size: 20px; font-weight: 650; }
.muted { color: var(--muted); }

/* ---------- вход ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-box { background: var(--surface); padding: 32px 24px; border-radius: 16px; box-shadow: var(--shadow); width: min(360px, 100%); text-align: center; }
.login-box img { border-radius: 14px; }
.login-box h1 { margin: 12px 0 4px; }
.login-users { display: grid; gap: 8px; margin-top: 16px; }
.login-users button { padding: 12px; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius); text-align: left; display: flex; justify-content: space-between; }
.login-users button:hover { border-color: var(--brand); }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 5; background: var(--top-bg); color: var(--top-text);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
}
.nav { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; }
.nav h1 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.icon-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-size: 22px; line-height: 1; flex: none; }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 6px 12px; flex: none; }
.top .icon-btn, .top .btn-ghost { background: transparent; border-color: var(--top-line); color: var(--top-text); }
.views { display: flex; background: var(--top-soft); border-radius: var(--radius-sm); padding: 3px; }
.views button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; color: var(--top-muted); }
.views button[aria-selected="true"] { background: var(--brand-light); color: #1F1F1F; font-weight: 600; }
.user { display: flex; align-items: center; gap: 8px; color: var(--top-muted); font-size: 14px; }

.layers { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; }
.layer-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; white-space: nowrap; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.layer-chip[aria-pressed="true"] { border-color: var(--brand); background: var(--surface-2); color: var(--brand); font-weight: 600; }
.layer-chip:disabled { opacity: .55; cursor: default; }
.layer-chip small { font-size: 11px; color: var(--muted); font-weight: 400; }

main { padding: 0 16px 16px; }

/* ---------- месяц ---------- */
.weekdays, .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays span { padding: 6px 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.grid { background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cell { background: var(--surface); min-height: 112px; padding: 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; }
.cell.other { background: var(--bg); }
.cell.other .num { color: var(--muted); }
.cell.today { background: var(--today); }
.cell.selected { box-shadow: inset 0 0 0 2px var(--brand); }
.cell.drop { box-shadow: inset 0 0 0 2px var(--brand-light); background: var(--today); }
/* выходные — фирменным красным, как принято в календарях */
.weekdays span.we, .cell.weekend .num { color: var(--accent); }
.cell.weekend.other .num { color: var(--accent); opacity: .5; }
.week-day.weekend h2 .muted { color: var(--accent); }
.num { font-size: 13px; font-weight: 600; padding: 2px 4px; display: flex; justify-content: space-between; align-items: center; }
.cell.today .num b { background: #8B7571; color: #fff; border-radius: 999px; padding: 0 7px; }
.dots { display: none; gap: 3px; flex-wrap: wrap; padding: 0 4px; }

.chip {
  display: block; font-size: 12.5px; line-height: 1.3; padding: 2px 6px; border-radius: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 4px solid; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.chip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.more { font-size: 12px; color: var(--muted); padding: 0 6px; }

/* Цвет события: полоса — тип/статус, светлый фон, текст в тон полосы. */
.planned { background: var(--planned-bg); border-color: var(--planned); color: var(--planned-text); }
.desired { background: var(--surface); border-color: var(--desired); border-left-style: dashed; color: var(--desired-text); }
.chip.desired { box-shadow: inset 0 0 0 1px var(--desired); border-left-color: var(--desired); }
.chip.overdue { font-weight: 600; }
.overdue { background: var(--overdue-bg); border-color: var(--overdue); color: var(--overdue-text); }
.done { background: var(--done-bg); border-color: var(--done); color: var(--done-text); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; border: 0; }
.dot.planned { background: var(--planned); }
.dot.desired { background: transparent; box-shadow: inset 0 0 0 1.5px var(--desired); }
.dot.overdue { background: var(--overdue); }
.dot.done { background: var(--done); }

.day-panel { margin-top: 16px; }
.day-panel h2, .week h2 { font-size: 16px; margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; }
.day-panel h2 .muted, .week h2 .muted { font-weight: 400; font-size: 14px; }

/* ---------- строки событий (день / 7 дней) ---------- */
.rows { display: grid; gap: 8px; }
.row {
  background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 10px 12px;
  border-left-width: 5px; border-left-style: solid;
  display: grid; grid-template-columns: 56px 1fr; gap: 2px 10px; cursor: pointer;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: var(--card-shadow);
}
.row.desired { background: var(--surface); border-left-style: dashed; }
.row .time { font-weight: 650; font-variant-numeric: tabular-nums; grid-row: span 6; }
.row > :not(.time) { grid-column: 2; }
.row .client { font-weight: 600; }
.row .what { font-size: 14px; }
.row .meta { font-size: 13px; color: var(--muted); }
.row .badge { font-size: 12px; font-weight: 600; }
.empty { color: var(--muted); font-size: 14px; padding: 10px 2px; }

.week-day { margin-bottom: 18px; border-radius: var(--radius); padding: 6px; margin-left: -6px; margin-right: -6px; }
.week-day.drop { background: var(--today); box-shadow: inset 0 0 0 2px var(--brand-light); }
.week-day.is-today h2::after { content: "сегодня"; font-size: 12px; background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 8px; font-weight: 600; }

/* ---------- карточка ---------- */
dialog {
  border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(10, 15, 25, .45); }
.card-head { padding: 16px 20px 12px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: start; }
.card-head h3 { margin: 0; font-size: 18px; flex: 1; }
.card-head .sub { font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.close { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); padding: 0 4px; }
.card-body { padding: 14px 20px; display: grid; gap: 10px; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; border-left: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
table.items { width: 100%; border-collapse: collapse; font-size: 14px; }
.items th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.items td { padding: 6px; border-bottom: 1px solid var(--line); }
.items td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.items th.n { text-align: right; }
.card-actions { padding: 12px 20px 18px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.move { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.move input { font: inherit; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.btn { border: 0; border-radius: var(--radius-sm); padding: 9px 16px; font-weight: 600; background: #8B7571; color: #fff; }
.btn.ok { background: #5F7F52; }
.btn:disabled { opacity: .5; cursor: default; }
.note { font-size: 12.5px; color: var(--muted); }

/* ---------- прочее ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #1b2330; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow);
  display: flex; gap: 14px; align-items: center; z-index: 30; max-width: calc(100vw - 32px); font-size: 14px;
}
.toast button { background: none; border: 0; color: var(--accent); font-weight: 700; padding: 0; }
.toast.error { background: var(--overdue); }
.ghost { position: fixed; pointer-events: none; z-index: 40; opacity: .92; box-shadow: var(--shadow); transform: translate(-50%, -120%); max-width: 240px; }
body.dragging { cursor: grabbing; user-select: none; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 4px 16px 24px; font-size: 13px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }

/* ---------- вход по паролю ---------- */
.login-box label { display: grid; gap: 4px; text-align: left; font-size: 14px; color: var(--muted); margin-top: 12px; }
.login-box input, .u-add input, .u-add select, .u-row select, .field input, .dist input {
  font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text);
}
.login-box .btn { width: 100%; margin-top: 16px; padding: 11px; }
.login-error { color: var(--overdue); font-size: 14px; min-height: 20px; margin-top: 8px; }

/* ---------- слои и производство ---------- */
:root { --late: var(--overdue); --partial: #6B7F2A; --free: #9A918E; --warn: #A9722C; }
.layer-chip i { width: 8px; height: 8px; border-radius: 99px; background: var(--muted); }
.lc-shipments i { background: var(--planned); }
.lc-production i { background: var(--press); }
.layer-chip[aria-pressed="false"] i { opacity: .35; }

.tag {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; color: #fff;
  font-size: 10px; font-style: normal; font-weight: 700; margin-right: 4px; vertical-align: -2px; flex: none;
}
.tag.press { background: var(--press); }
.tag.glue { background: var(--glue); }
.tag.big { width: 34px; height: 34px; font-size: 16px; border-radius: 8px; }
.dot.sq { border-radius: 2px; }
.dot.press { background: var(--press); }
.dot.glue { background: var(--glue); }
.dot.late { background: var(--late); }

/* производство: запланированное — цвет операции (пресс синий, склейка охра), дальше — по статусу */
.chip.prod.press.planned { background: var(--press-bg); border-color: var(--press); color: var(--press-text); }
.chip.prod.glue.planned { background: var(--glue-bg); border-color: var(--glue); color: var(--glue-text); }
.row.prod.press.planned { border-color: var(--press); }
.row.prod.glue.planned { border-color: var(--glue); }
.prod.partial { border-color: var(--partial); }
.chip.prod.partial { background: var(--done-bg); color: var(--done-text); }
.prod.late, .late { border-color: var(--late); }
.chip.prod.late { background: var(--overdue-bg); color: var(--overdue-text); font-weight: 600; }
.prod.free { border-color: var(--free); border-left-style: dashed; opacity: .7; }
.chip.prod-late { box-shadow: inset 0 0 0 1px var(--late); }
.row.prod { background: var(--surface); }
.row.prod .time { display: flex; align-items: start; }

.badge.s-planned { color: var(--planned); }
.badge.s-desired { color: var(--desired); }
.badge.s-overdue, .badge.s-late { color: var(--overdue); }
.badge.s-done { color: var(--done); }
.badge.s-partial { color: var(--partial); }
.badge.s-free { color: var(--free); }
.status-pill.late { background: var(--overdue-bg); color: var(--late); }
.status-pill.partial { background: #F5ECDD; color: var(--partial); }
.status-pill.free { background: var(--surface-2); color: var(--free); }
.load { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--surface-2); padding: 1px 8px; border-radius: 99px; }
.warn { color: var(--warn); font-style: normal; font-size: 12px; }
td.warn { font-size: inherit; font-weight: 600; }

/* очередь */
.queue { margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.queue-head { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 10px 12px; text-align: left; }
.queue-head .count { background: var(--accent); color: #fff; border-radius: 99px; padding: 0 8px; font-size: 13px; font-weight: 700; }
.queue-head .chev { margin-left: auto; color: var(--muted); font-size: 11px; }
.queue-list { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.q-item { background: var(--surface); padding: 10px 12px; display: grid; gap: 6px; }
.q-item.late { box-shadow: inset 3px 0 0 var(--late); }
.q-top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.q-top .muted { font-size: 13px; }
.q-pos { display: grid; gap: 3px; font-size: 13.5px; }
.q-pos .tag { margin-left: 4px; }
.q-actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn.small { padding: 6px 14px; }

/* смена */
.shift { display: grid; gap: 12px; max-width: 560px; margin: 8px auto 0; }
.shift-hint { margin: 0; font-size: 14px; }
.shift-card { background: var(--surface); border-radius: 14px; padding: 16px; display: grid; gap: 12px; border-left: 5px solid var(--press); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.shift-card.done { border-left-color: var(--done); }
.shift-card.partial { border-left-color: var(--partial); }
.shift-card.late, .shift-card.overdue { border-left-color: var(--late); }
.sc-head { display: flex; gap: 12px; align-items: center; }
.sc-op { font-size: 13px; color: var(--muted); }
.sc-client { font-weight: 650; font-size: 17px; }
.sc-prod { font-size: 15px; }
.sc-plan { font-size: 15px; }
.sc-times { display: flex; gap: 8px; }
.sc-times .btn-ghost { flex: 1; padding: 10px; }
.sc-times .btn-ghost:disabled { opacity: .7; background: var(--surface-2); cursor: default; }
.sc-fact { display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.sc-fact input { font-size: 26px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); width: 100%; font-variant-numeric: tabular-nums; }
.btn.wide { width: 100%; padding: 13px; font-size: 16px; }
.empty.big { text-align: center; padding: 48px 16px; font-size: 16px; }

/* сотрудники */
.users-page { max-width: 720px; margin: 12px auto 0; display: grid; gap: 20px; }
.u-list { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.u-row { background: var(--surface); padding: 10px 12px; display: grid; grid-template-columns: 1fr auto 170px auto auto; gap: 8px; align-items: center; }
.u-row.off { opacity: .55; }
.u-row .muted { font-size: 13px; }
.u-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface); padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); }
.u-add h2 { flex-basis: 100%; font-size: 15px; margin: 0; }
.u-add input { flex: 1 1 160px; }
.pw { font: 600 24px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .06em; background: var(--surface-2); padding: 12px; border-radius: 10px; text-align: center; user-select: all; }

/* карточки */
.link { background: none; border: 0; color: var(--brand); padding: 0; text-align: left; font-weight: 600; }
.btn-ghost.danger { color: var(--overdue); }
.field { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.dist input { width: 100px; text-align: right; }
.dist td { vertical-align: top; }
.dist .note { margin-top: 2px; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; margin: 4px 0; }

/* ---------- подключение к amo, «не наша», площадки ---------- */
.src-badge { margin-left: auto; align-self: center; white-space: nowrap; font-size: 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 99px; padding: 3px 10px; }
.src-badge.test { color: var(--partial); border-color: var(--partial); }
.banner { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.banner.ok { background: var(--done-bg); color: var(--done); font-weight: 600; }
.excluded { display: grid; gap: 4px; font-size: 14px; }
.ex-row { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.small-link { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.small-link:hover { color: var(--overdue); }
.places { display: grid; gap: 8px; }
.place { display: grid; grid-template-columns: 180px 1fr; gap: 8px; align-items: center; font-size: 14px; }
.places .btn { justify-self: start; }

/* ---------- площадки по позициям, «Готово к отгрузке» ---------- */
.q-sum { font-size: 13px; font-weight: 400; }
.place-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.place-row { background: var(--surface); padding: 10px 12px; display: grid; grid-template-columns: 1fr 150px; gap: 10px; align-items: center; }
.place-row .muted { font-size: 12.5px; }
.pr-why { font-size: 12.5px; margin-top: 2px; }
.place-row select { font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.row-actions { grid-auto-flow: column; justify-content: start; }
.btn.ghost-btn { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

/* ---------- перегрузка смены ---------- */
.load-over { color: var(--overdue-text); font-weight: 700; }
.load .load-over { background: var(--overdue-bg); border-radius: 99px; padding: 0 6px; }
.over-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }

/* ---------- телефон ---------- */
@media (max-width: 720px) {
  .top { gap: 8px; }
  .nav { flex-basis: 100%; }
  .nav h1 { font-size: 18px; flex: 1; text-align: center; }
  .user { margin-left: auto; }
  .user span { display: none; }
  main { padding: 0 8px 16px; }
  .weekdays span { padding: 4px 2px; text-align: center; font-size: 11px; }
  .cell { min-height: 54px; padding: 2px; }
  .num { justify-content: center; padding: 2px 0; }
  .cell .chip, .cell .more { display: none; }
  .dots { display: flex; justify-content: center; }
  .kv { grid-template-columns: 120px 1fr; }
  .day-panel { margin-top: 12px; }
  .u-row { grid-template-columns: 1fr auto; }
  .place { grid-template-columns: 1fr; gap: 2px; }
  .place-row { grid-template-columns: 1fr; }
  .row-actions { grid-auto-flow: row; }
  .views button { padding: 6px 10px; }
}
.tg-nick { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); width: 100%; }
