/* Своё поверх дизайн-системы из ai-os: styles.css и tokens.css не правим. */

.lang-switch button { padding: 4px 10px; font-size: var(--fs-xs); }
.login-body .lang-switch { align-self: center; }
.login-again { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.login-again .hint { margin: 0; text-align: center; }
.login-other { align-self: center; font-size: var(--fs-sm); color: var(--fg-muted); }

/* Условия закрытого теста (Т.11): ссылка под входом и сама страница — та же
   карточка входа, только шире. */
.login-terms { align-self: center; font-size: var(--fs-xs); color: var(--fg-muted); text-decoration: underline; text-underline-offset: 2px; }
.login-terms:hover { color: var(--fg); }
.login-card.terms-card { max-width: 680px; }
.terms-card .login-body { gap: 18px; }
.terms-sec { display: flex; flex-direction: column; gap: 6px; }
.terms-sec .settings-title, .terms-sec p { margin: 0; }
.terms-sec ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); color: var(--fg-soft); line-height: 1.6; }
.terms-sec a { color: var(--info); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

.settings-title { margin: 0 0 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--fg); }
.settings-language .lang-switch { margin-top: 12px; }
.settings-account { margin-bottom: 14px; }
.settings-delete { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.settings-delete .settings-title { margin: 0; }
.delete-page { max-width: 440px; align-items: stretch; }
.delete-page .btn { justify-content: center; }
.settings-account .jd-kv { grid-template-columns: 140px minmax(0, 1fr); margin-top: 10px; }

.agent-card, .sub-card { margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.agent-card .settings-title, .sub-card .settings-title { margin: 0; }
.sub-card { max-width: 640px; }
.sub-status { font-size: var(--fs-sm); color: var(--fg-soft); }
.sub-status.sub-active { color: var(--ok); font-weight: 600; }
.sub-status.sub-needs_reconnect, .sub-status.sub-create_failed { color: var(--warn); }
.sub-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; font-size: var(--fs-sm); }
.sub-steps a { overflow-wrap: anywhere; }
.sub-code { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.sub-code .mono { font-family: var(--font-mono); font-size: 26px; font-weight: 600; letter-spacing: 0.14em; }
.sub-card .hint { margin: 0; }
.agent-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.agent-actions .login-other { align-self: center; }
.sub-limit, .chat-limit { font-size: var(--fs-sm); color: var(--warn); }

/* Чат: лента в потоке страницы (прокручивается .content), поле ввода
   прилипает к низу. У .card overflow: hidden ломает sticky — здесь visible. */
.chat-page { max-width: 820px; }
.chat-limit { margin-bottom: 14px; }
.chat-page .agent-card { margin-bottom: 14px; }
.chat-card { overflow: visible; display: flex; flex-direction: column; min-height: 55vh; }
.chat-card .ch-feed { flex: 1; overflow: visible; }
.chat-card .ch-composer {
  position: sticky; bottom: 0; z-index: 2;
  background: var(--paper-card);
  border-top: 1px solid var(--border-faint);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.ch-msg.mine .ch-text, .ch-live { white-space: pre-wrap; }
.ch-msg.mine .ava { background: var(--fg); border-color: var(--fg); color: var(--fg-on-ink); }
.ch-meta a { color: var(--info); text-decoration: underline; text-underline-offset: 2px; }
.ch-composer.locked .ch-input { cursor: not-allowed; }
.ch-composer .btn[hidden] { display: none; }  /* .btn задаёт display и перебивает hidden */

/* Расписание (этап 4, шаг 2) */
.sched-page { max-width: 820px; }
.sched-card { margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.sched-card .settings-title, .sched-card .login-lead, .sched-card .hint { margin: 0; }
.sched-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sched-item, .sched-run { padding: 12px 0; border-top: 1px solid var(--border-faint); }
.sched-item { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.sched-main { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.sched-item.off .sched-text { color: var(--fg-muted); }
.sched-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sched-text { font-size: var(--fs-sm); color: var(--fg); white-space: pre-wrap; overflow-wrap: anywhere; }
.sched-meta { font-size: var(--fs-xs); color: var(--fg-label); }
/* Разведка (10.4): в начале страницы и в адресах бывают длинные слова без пробелов. */
.scout-page .sched-meta, .scout-page .row-note { overflow-wrap: anywhere; }
.sched-run .sched-text { margin-top: 2px; }
.sched-failed .sched-state { color: var(--err); }
.sched-postponed .sched-state { color: var(--warn); }
.sched-output { margin-top: 6px; }
.sched-output summary { cursor: pointer; font-size: var(--fs-xs); color: var(--fg-muted); }
.sched-output .md { margin-top: 8px; }
.sched-item .btn[aria-pressed="true"] { background: var(--ink); color: var(--fg-on-ink); border-color: var(--ink); }
.sched-form { display: flex; flex-direction: column; gap: 12px; }
.sched-form .form-row { align-items: flex-end; }
.sched-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.sched-field .field { display: flex; }
.sched-label { font-size: var(--fs-xs); color: var(--fg-muted); font-weight: 500; }
.sched-input {
  width: 100%; resize: vertical; font: inherit; font-size: var(--fs-sm); color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--paper-raised); padding: 8px 12px; outline: none;
}
.sched-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }

/* Ждут решения (этап 4, шаг 8.1): строки как у расписания; полный текст
   письма или события — под «Полный текст», переносы строк сохраняются. */
.decision-summary { font-weight: 500; }
.decision-body { margin-top: 8px; font-size: var(--fs-sm); color: var(--fg-soft); line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; }
.decision-expired .decision-summary, .decision-rejected .decision-summary { color: var(--fg-muted); }

/* Что агент о вас знает (этап 5, подпункт 5.4): записи памяти, навыки,
   история; текст SKILL.md — моноширинным, с переносами. */
.kn-md { font-family: var(--font-mono); font-size: var(--fs-xs); margin-bottom: 0; }
.kn-lock { display: inline-flex; gap: 4px; align-items: center; }
.kn-undone .sched-text, .kn-refused .sched-text { color: var(--fg-muted); }
/* Снимки (5.5): «Вернуть как было вчера» — под вводным текстом. */
.kn-yesterday { margin-top: 12px; }

/* Архив и контакты (этап 4, шаг 3) */
.arch-query { flex: 2.2; min-width: 220px; }
.arch-title { font-size: var(--fs-sm); font-weight: 600; color: var(--fg); text-decoration: none; }
.arch-title:hover { text-decoration: underline; text-underline-offset: 2px; }
.arch-snippet, .arch-body { font-size: var(--fs-sm); color: var(--fg-soft); line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.arch-snippet { margin-top: 4px; }
.arch-snippet mark, .arch-body mark { background: var(--warn-bg); color: var(--fg); border-radius: 2px; padding: 0 1px; }
.ct-group { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 10px 0 0; font-size: var(--fs-xs); font-weight: 600; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: var(--tracking-label); }
.ct-inline { margin: 0; }
.ct-note { color: var(--fg-soft); }
.ct-edit { margin-top: 10px; }

/* Встречи (этап 4, шаг 9.1) */
.meet-pager { display: flex; justify-content: space-between; gap: 10px; }
.meet-text, .meet-line { margin: 0; font-size: var(--fs-sm); color: var(--fg-soft); line-height: 1.6; overflow-wrap: anywhere; }
.meet-sub { margin: 4px 0 0; font-size: var(--fs-xs); font-weight: 600; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: var(--tracking-label); }
.meet-items { margin: 0; padding-left: 18px; font-size: var(--fs-sm); color: var(--fg-soft); line-height: 1.6; }
.meet-lines { display: flex; flex-direction: column; gap: 8px; }
.meet-line strong { color: var(--fg); font-weight: 600; }
.meet-at { font-size: var(--fs-xs); color: var(--fg-label); }
/* Вкладки раздела и экраны «Проекты» и «Участники» (шаг 9.2) */
.meet-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.meet-tabs .tg[aria-current="page"] { background: var(--ink); color: var(--fg-on-ink); border-color: var(--ink); }
.meet-rules { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.meet-rule { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.meet-rule .sched-text { min-width: 0; }
.meet-aliases { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.meet-alias { display: inline-flex; align-items: center; gap: 4px; margin: 0; max-width: 100%; }
/* Направления (шаг 9.3). Цвет точки — классом c-<ключ палитры>, ключи те же,
   что в базе; значения — токены --d-<цвет>. */
.ddot.c-indigo { --c: var(--d-indigo); }
.ddot.c-green { --c: var(--d-green); }
.ddot.c-amber { --c: var(--d-amber); }
.ddot.c-rose { --c: var(--d-rose); }
.ddot.c-teal { --c: var(--d-teal); }
.ddot.c-stone { --c: var(--d-stone); }
.dir-name { overflow-wrap: anywhere; }
.dir-name > .ddot { margin-right: 7px; vertical-align: 1px; }
.dir-colors { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.dir-colors legend { padding: 0; margin-bottom: 6px; }
.dir-color { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--fg-soft); cursor: pointer; }
.dir-color input { margin: 0; accent-color: var(--ink); }
.dir-color .ddot { width: 12px; height: 12px; }
.dir-period { display: flex; flex-wrap: wrap; gap: 6px; }
.dir-period .tg[aria-current="true"] { background: var(--ink); color: var(--fg-on-ink); border-color: var(--ink); }
.dir-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.dir-stats .stat { padding: 12px 14px; }
.dir-stats .stat-label { margin-bottom: 6px; }
/* Нити (шаг 9.5): документ — шапка подписями и цепочка упоминаний. */
.thread-doc .sched-label { margin: 0; }
.thread-lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; margin: 0; }
.thread-lead dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.thread-chain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.thread-chain li::marker { color: var(--fg-label); font-size: var(--fs-xs); }
.meet-proposal { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: var(--radius-tag);
  border: 1px dashed var(--accent-line); background: var(--accent-bg); }
@media print { .meet-tabs, #actions, .thread-doc > a.hint { display: none; } }
/* Обещания (шаг 9.6): «На доску» в строке пункта протокола. */
.promise-board { display: inline; margin: 0 0 0 4px; }
/* Обзор встреч (шаг 9.7): полоска доли, столбики по корзинам периода и ритм
   недели. Длина полоски и высота столбика — переменными --w и --h из шаблона;
   таблица ритма на узком экране листается внутри карточки. */
.ov-meter { height: 6px; margin: 6px 0 4px; border-radius: var(--radius-pill); background: var(--paper-mute); overflow: hidden; }
.ov-meter > span { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--accent); }
.sched-item.off .ov-meter > span { background: var(--fg-faint); }
/* contain: inline-size — подписи столбиков и таблица ритма не раздвигают
   страницу своей шириной: ширину даёт карточка. */
.ov-bars { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 4px; min-height: 140px;
  contain: inline-size; }
.ov-bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.ov-col { height: 120px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--border-strong); }
.ov-col > span { display: block; width: 100%; height: var(--h, 0%); border-radius: 3px 3px 0 0; background: var(--accent); }
.ov-label { font-size: var(--fs-label); color: var(--fg-label); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-heat-wrap { overflow-x: auto; max-width: 100%; contain: inline-size; }
.ov-heat { border-collapse: separate; border-spacing: 2px; font-size: var(--fs-label); color: var(--fg-label); }
.ov-heat th { font-weight: 500; padding: 0 4px 0 0; text-align: left; font-family: var(--font-mono); }
.ov-heat thead th { text-align: center; padding: 0 0 2px; }
.ov-heat td { width: 18px; min-width: 18px; height: 18px; border-radius: 3px; background: var(--paper-mute); }
.ov-heat td.l1 { background: var(--accent-bg); }
.ov-heat td.l2 { background: var(--accent-line); }
.ov-heat td.l3 { background: var(--d-rose); }
.ov-heat td.l4 { background: var(--accent); }
/* Архив: люди и проекты (шаг 9.7) — архивный проект в списке приглушён. */
.sched-run.off .arch-title { color: var(--fg-muted); }
/* Брифинг (шаг 9.8): почта или имя без пробелов не раздвигают страницу. */
.brief-page .sched-meta, .brief-page .row-note { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .ov-bars { gap: 2px; }
  .ov-label { font-size: 9px; }
  /* восемь столбиков и больше — подписи только у крайних */
  .ov-bar:first-child:nth-last-child(n+8) ~ .ov-bar:not(:last-child) .ov-label { visibility: hidden; }
  .ov-bar:first-child:nth-last-child(n+8) .ov-label { overflow: visible; text-align: left; }
  .ov-bar:first-child:nth-last-child(n+8) ~ .ov-bar:last-child .ov-label {
    overflow: visible; display: flex; justify-content: flex-end; }
}

/* Задачи (этап 4, шаг 6): кружок «сделано» слева, текст, кнопки справа; на
   узком экране кнопки уходят под текст. */
.task-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 8px; }
.task-item .sched-main { min-width: 0; }
.task-check-form { margin: 0; }
.task-check {
  width: 20px; height: 20px; margin-top: 1px; padding: 0; flex: none; border-radius: 50%;
  border: 1.5px solid var(--border-strong); background: transparent; color: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
button.task-check:hover, button.task-check:focus-visible { border-color: var(--ok); color: var(--ok); }
.task-check.urgent { border-color: var(--err); }
.task-check.checked { background: var(--ok); border-color: var(--ok); color: var(--fg-on-ink); cursor: default; }
.task-done .task-title { color: var(--fg-muted); text-decoration: line-through; text-decoration-color: var(--fg-faint); }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.task-late { color: var(--err); font-weight: 500; }
.task-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.task-filter .sched-label { margin-right: 2px; }
.task-filter .tg[aria-current="true"] { background: var(--ink); color: var(--fg-on-ink); border-color: var(--ink); }
.task-group-overdue { color: var(--err); }
.task-group-day { font-weight: 500; text-transform: none; letter-spacing: 0; }
.task-count { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
/* поле в .form-row не уже 180 px (styles.css) — столько же и подписи над ним */
.task-date { min-width: 180px; }
@media (max-width: 560px) {
  .task-item { grid-template-columns: auto minmax(0, 1fr); }
  .task-item .row-actions { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .task-check { transition: none; } }

/* Офис (этап 4, шаг 5) */
.office-templates { border: 0; margin: 0; padding: 0; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.office-templates legend { margin-bottom: 6px; }
.office-template { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer;
  font-size: var(--fs-sm); background: var(--paper-raised); }
.office-template:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.office-template input { margin-top: 3px; }

/* Выбор персонажа при найме и правке: карточки с кадром idle, радиокнопка
   скрыта, выбранная карточка — в рамке. Свои кадры — по полю на кадр. */
.office-characters { border: 0; margin: 0; padding: 0; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.office-characters legend { margin-bottom: 6px; }
.office-character { display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 0; padding: 8px 4px; text-align: center; cursor: pointer;
  font-size: var(--fs-xs); color: var(--fg-soft); overflow-wrap: anywhere; hyphens: auto;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--paper-raised); }
.office-character:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); color: var(--fg); }
.office-character:has(input:focus-visible) { outline: 2px solid var(--info); outline-offset: 2px; }
.office-art { display: block; flex: none; width: 66px; height: 118px; max-width: none; image-rendering: pixelated; }
.office-frames { display: grid; gap: 10px; margin-top: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.office-frames .field input { font-size: var(--fs-xs); }
.office-own .hint { margin: 8px 0 0; }
.office-own-now { display: flex; gap: 12px; align-items: center; }
.office-own-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.office-reset { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.office-reset input { margin-top: 3px; }

/* Сцена офиса (этап 4, шаг 5, часть 2): рабочие места сеткой — основной
   агент и роли. Пиксель-арт — только целым масштабом --px: кадр 66×118
   рисуется 132×236, на узком экране 66×118, без сглаживания. Стол и значки
   над головой — в тех же «пикселях» кадра. Кадры меняет app.js. */
.office-scene {
  --px: 2;
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(calc(80px * var(--px)), 1fr));
}
.desk { min-width: 0; }
.desk-link {
  display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%;
  padding: 12px 8px; text-align: center; text-decoration: none; color: var(--fg);
  background: var(--paper-raised); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.desk-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card-hover); }
.desk-link:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
.desk-stage {
  position: relative; flex: none; margin-bottom: 6px;
  width: calc(76px * var(--px)); height: calc(118px * var(--px));
}
.desk-figure {
  position: absolute; left: calc(5px * var(--px)); bottom: 0; display: block;
  width: calc(66px * var(--px)); height: calc(118px * var(--px)); max-width: none;
  image-rendering: pixelated;
}
.desk-figure[hidden] { display: none; }
/* Стол перед персонажем: столешница и передняя стенка с нижней кромкой. */
.desk-table {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(20px * var(--px));
  background: var(--border-strong);
  border-top: calc(3px * var(--px)) solid var(--fg-faint);
  box-shadow: inset 0 calc(1px * var(--px)) 0 var(--idle-dot), inset 0 calc(-2px * var(--px)) 0 var(--fg-faint);
}
.desk-name, .desk-addr { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-name { font-size: var(--fs-sm); font-weight: 600; }
.desk-addr { font-size: var(--fs-xs); color: var(--fg-muted); }
.desk-state { margin-top: 3px; background: var(--idle-bg); color: var(--idle); }
.desk[data-state="talk"] .desk-state { background: var(--info-bg); color: var(--info); }
.desk[data-state="work"] .desk-state { background: var(--ok-bg); color: var(--ok); }
.desk[data-state="idle"] .desk-state { background: var(--paper-mute); color: var(--fg-soft); }

/* У головы: «…» — говорит, «zZ» — спит. Сверху в кадрах наборов пусто
   примерно на 25 «пикселей» — значок ставим ниже, ближе к голове. */
.desk-mark { position: absolute; display: none; pointer-events: none; }
.desk[data-state="talk"] .desk-mark {
  display: block; right: 0; top: calc(22px * var(--px));
  width: calc(14px * var(--px)); height: calc(10px * var(--px));
  background: var(--info-bg); border: calc(1px * var(--px)) solid var(--info);
}
.desk[data-state="talk"] .desk-mark::before {
  content: ""; position: absolute; left: calc(2px * var(--px)); top: calc(3px * var(--px));
  width: calc(2px * var(--px)); height: calc(2px * var(--px)); background: var(--info);
  box-shadow: calc(4px * var(--px)) 0 0 var(--info), calc(8px * var(--px)) 0 0 var(--info);
  animation: desk-dots 900ms steps(2, end) infinite;
}
.desk[data-state="sleep"] .desk-mark {
  display: block; right: 0; top: calc(14px * var(--px));
  width: calc(14px * var(--px)); height: calc(14px * var(--px));
  font-family: var(--font-mono); font-weight: 700; line-height: 1; color: var(--fg-label);
  animation: desk-z 2800ms steps(2, end) infinite;
}
.desk[data-state="sleep"] .desk-mark::before,
.desk[data-state="sleep"] .desk-mark::after { position: absolute; }
.desk[data-state="sleep"] .desk-mark::before { content: "z"; left: 0; bottom: 0; font-size: max(9px, calc(5px * var(--px))); }
.desk[data-state="sleep"] .desk-mark::after { content: "Z"; right: 0; top: 0; font-size: max(12px, calc(7px * var(--px))); }
@keyframes desk-dots { 50% { opacity: 0.35; } }
@keyframes desk-z { 50% { transform: translateY(calc(-1px * var(--px))); } }

@media (max-width: 560px) {
  .office-scene { --px: 1; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .desk-link { padding: 10px 4px; }
  .desk-name { font-size: var(--fs-xs); }
}
@media (prefers-reduced-motion: reduce) {
  .desk-link { transition: none; }
  .desk-mark, .desk-mark::before { animation: none !important; }
}
