@import url(/static/fonts/nunito.css);

/* Меняя этот файл заметно, поднять ?v= в ссылке на него в layout.ejs и admin-layout.ejs: браузеры держат его до 4 ч. */
/* Палитра ребрендинга 10.10.2026 («Луна и ладонь», как на сайте): синий знака + мёд ладони. */
:root {
  --accent: #283272;
  --accent-dark: #1b2150;
  --honey: #f4b860;
  --honey-dark: #e9a13b;
  --bg: #fbf6ec;
  --card-bg: #ffffff;
  --text: #1b2150;
  --muted: #5f6178;
  --border: #e9e1d0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; flex: none; }

.topbar nav a, .link-button {
  margin-left: 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.topbar nav a:hover, .link-button:hover { color: var(--accent-dark); }
.topbar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.topbar nav a, .topbar nav .link-button { margin-left: 0; white-space: nowrap; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  text-align: center;
  padding: 60px 20px;
}
.hero h1 { font-size: 2rem; margin-bottom: 10px; }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.card.narrow { max-width: 480px; margin: 0 auto 20px; }

h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; margin-top: 0; }

label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

button, .button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
button:hover, .button:hover { background: var(--accent-dark); }
.button.secondary { background: #fff; color: var(--accent-dark); border: 1px solid var(--accent); }
.button.danger { background: #c0392b; }
/* Мёд — только для «Поддержать», как на сайте */
.button.honey { background: var(--honey); color: var(--text); font-weight: 700; }
.button.honey:hover { background: var(--honey-dark); }
.topbar nav a.nav-donate { background: var(--honey); color: var(--text); font-weight: 700; padding: 7px 14px; border-radius: 999px; }
.topbar nav a.nav-donate:hover { background: var(--honey-dark); color: var(--text); }

.error { color: #c0392b; }
.muted { color: var(--muted); font-size: 0.9rem; }

.page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

.filters { margin: 16px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
}
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.table { width: 100%; border-collapse: collapse; margin-top: 12px; background: #fff; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.table th { color: var(--muted); font-weight: 600; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #eef0f8; font-size: 0.8rem; }
.badge.warning { background: #fbe3df; color: #c0392b; font-weight: 600; }

.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.thumb-lg { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; margin: 0 8px 8px 0; }
.photo-grid { display: flex; flex-wrap: wrap; margin-bottom: 12px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 16px 0; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.stat-card.accent { background: #fdf0d9; }
.stat-number { font-size: 1.6rem; font-weight: 700; color: var(--accent-dark); }
.stat-label { font-size: 0.8rem; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

.admin-nav { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-nav a { text-decoration: none; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.admin-nav a:hover { border-color: var(--accent); }

.timeline { list-style: none; padding: 0; margin: 12px 0 0; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }

.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select, .inline-form textarea { width: auto; margin-top: 0; }

.status-list { list-style: none; padding: 0; }
.status-list li { padding: 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; background: #fff; }

/* Переписка по животному (куратор ↔ сотрудники) — /my/animals/:id и карточка
   животного в админке. Сообщение куратора и сообщение сотрудника отличаются
   цветом/выравниванием, как в обычном чате. */
.thread { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.thread-msg { max-width: 80%; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.thread-msg-curator { align-self: flex-start; background: #fff; }
.thread-msg-staff { align-self: flex-end; background: #fdf0d9; border-color: #f3d39b; }
.thread-msg-author { font-weight: 600; font-size: 0.82rem; margin-right: 8px; }
.thread-msg-date { color: var(--muted); font-size: 0.78rem; }
.thread-msg-text { margin: 4px 0 0; white-space: pre-wrap; }

.public-body { min-height: 100vh; display: flex; flex-direction: column; }
.public-body > main { flex: 1; width: 100%; }
.footer { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 28px 24px; margin-top: 32px; background: var(--accent); color: #d4d8ec; font-size: 0.9rem; text-align: left; }
.footer b { color: #fff; }
.footer p { margin: 0; }
.staff-link { color: var(--border); text-decoration: none; padding: 0 6px; }
.staff-link:hover { color: var(--muted); }

/* ---------- Админка: левая панель ---------- */
.admin-body { margin: 0; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; flex: none; background: #1b2150; color: #d4d8ec; padding: 16px 10px 20px; }
.admin-brand { display: flex; align-items: center; gap: 8px; padding: 8px 8px 18px; color: #fff; font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.admin-brand-mark { width: 30px; height: 30px; flex: none; }

.admin-nav-single { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: #d4d8ec; text-decoration: none; font-size: 0.85rem; margin-bottom: 2px; }
.admin-nav-single:hover, .admin-nav-single.active { background: #283272; color: #fff; }
.admin-nav-icon { font-size: 15px; width: 16px; text-align: center; flex: none; }

.admin-group { margin-top: 2px; }
.admin-group-head { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; list-style: none; }
.admin-group-head::-webkit-details-marker { display: none; }
.admin-group-head:hover { background: #283272; }
.admin-group-label { flex: 1; }
.admin-group-head::after { content: '›'; color: #9aa0c4; transition: transform .15s; }
.admin-group[open] .admin-group-head::after { transform: rotate(90deg); }
.admin-group-items { padding: 2px 0 4px; }
.admin-sub-item { display: block; padding: 7px 10px 7px 35px; font-size: 0.82rem; color: #9aa0c4; text-decoration: none; border-radius: 8px; }
.admin-sub-item:hover { color: #fff; }
.admin-sub-item.active { color: #fff; background: #283272; }

.admin-main { flex: 1; min-width: 0; padding: 24px 32px 48px; background: var(--bg); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.admin-back-site { font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.admin-back-site:hover { color: var(--accent-dark); }
.admin-who { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.admin-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 600; }


/* Раздел «Локальный ИИ» (/admin/local-ai): метрики GPU, журнал фоновых команд */
.badge.ok { background: #e2f0e4; color: #2c7a3f; font-weight: 600; }

.gpu-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.gpu-row:last-child { border-bottom: none; }
.gpu-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.gpu-metric { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; font-size: 0.85rem; }
.gpu-metric-label { width: 80px; color: var(--muted); flex-shrink: 0; }
.gpu-metric-value { width: 170px; flex-shrink: 0; color: var(--muted); }

.meter { flex: 1; min-width: 80px; height: 8px; border-radius: 999px; background: #e9e1d0; overflow: hidden; }
.meter-fill { height: 100%; background: var(--accent); transition: width .4s linear; }
.meter-fill.warn { background: #c0392b; }

.plain-list { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.plain-list li { padding: 4px 0; }
.job-row { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.job-row:last-child { border-bottom: none; }
.job-output { background: #14183a; color: #d4d8ec; padding: 10px 12px; border-radius: 8px; font-size: 0.78rem; overflow-x: auto; margin: 8px 0 0; white-space: pre-wrap; }

.inline-check { display: flex; align-items: center; gap: .5rem; }
.inline-check input { width: auto; }
.notice { background: #e2f0e4; color: #2c7a3f; padding: .6rem .9rem; border-radius: 8px; }


/* ---------- Кнопка-раскрывашка (details > summary.button) ---------- */
summary.button { list-style: none; }
summary.button::-webkit-details-marker { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- «Входящие» (/admin/inbox) ---------- */
.upload-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.upload-big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 14px; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 600; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.upload-big.secondary { background: #fff; color: var(--accent-dark); border: 1px solid var(--accent); }
.upload-big:active { transform: scale(.98); }
.upload-big-icon { font-size: 1.8rem; }
.inbox-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.inbox-thumb { flex: none; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: #eef0f8; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.inbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inbox-pdf { font-weight: 700; color: var(--accent-dark); }
.inbox-action { margin-top: 8px; }
.inbox-action > form { margin-top: 10px; }
.inbox-delete { margin-top: 10px; }

/* ---------- Мобильная админка (iPhone и узкие экраны) ---------- */
.nav-toggle, .nav-burger, .nav-backdrop { display: none; }
.topbar-doc { padding: 6px 12px; font-size: .85rem; margin-left: auto; }

@media (max-width: 760px) {
  .admin-shell { flex-direction: column; }
  /* Меню — выезжающая слева панель вместо длинного списка над страницей */
  .admin-sidebar { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(84vw, 320px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(-105%); transition: transform .2s ease; box-shadow: 0 0 30px rgba(0,0,0,.25);
    padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); padding-left: calc(10px + env(safe-area-inset-left)); }
  .nav-toggle:checked ~ .admin-sidebar { transform: none; }
  .nav-toggle:checked ~ .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(20,15,10,.4); }
  .admin-nav-single, .admin-group-head, .admin-sub-item { min-height: 44px; display: flex; align-items: center; font-size: 1rem; }
  .admin-sub-item { padding-left: 38px; }

  .admin-main { padding: 0 max(14px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  .admin-topbar { position: sticky; top: 0; z-index: 40; background: var(--bg); margin: 0 -14px 14px; padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
    border-bottom: 1px solid var(--border); flex-wrap: nowrap; }
  .nav-burger, .topbar-doc { white-space: nowrap; }
  .nav-burger { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; background: #1b2150; color: #fff; font-weight: 600; cursor: pointer; }
  .admin-back-site { display: none; }
  .admin-who a, .admin-who .link-button { font-size: .85rem; }
  .admin-who > a { max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* 2026-09-30: на 375px «Меню + Документ + аватар + имя + Выйти» вылезали за экран на ~30px — имя сжимается, аватар скрыт */
  .admin-who { min-width: 0; }
  .admin-who > a { min-width: 0; }
  .admin-avatar { display: none; }
  .topbar-doc { min-height: 44px; display: inline-flex; align-items: center; }

  h1 { font-size: 1.35rem; }
  .card { padding: 14px; border-radius: 12px; }
  button, .button { min-height: 44px; }
  .inline-form { align-items: stretch; }
  .inline-form > * { flex: 1 1 100%; }
  .inline-form input, .inline-form select { width: 100%; }
  /* Широкие таблицы прокручиваются сами, а не вся страница */
  .admin-main .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .admin-main .table td { white-space: normal; min-width: 90px; }
  .upload-buttons { grid-template-columns: 1fr; }
}

/* ---------- График дежурств и журнал смены (/admin/duty) ---------- */
.duty-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.duty-actions { display: flex; gap: 8px; }
.duty-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.duty-now-card { border-width: 1px; border-style: solid; }
.duty-now-name { font-size: 1.4rem; font-weight: 700; margin: 2px 0; }
.duty-mine { margin: 8px 0; padding-left: 18px; line-height: 1.8; }
.duty-month { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.duty-month h2 { margin: 0; font-size: 1.2rem; }
.duty-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.duty-chip { font-size: .85rem; padding: 4px 10px; border-radius: 8px; border: 1px solid; font-variant-numeric: tabular-nums; }
.duty-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.duty-dow { font-size: .75rem; color: var(--muted); text-align: center; }
.duty-day { border: 1px solid var(--border); border-radius: 8px; padding: 5px; min-height: 74px; background: #fff; display: flex; flex-direction: column; gap: 3px; }
.duty-pad { border: none; background: transparent; }
.duty-past { opacity: .6; }
.duty-today { outline: 2px solid var(--accent); outline-offset: -1px; }
.duty-date { font-size: .8rem; font-weight: 600; color: var(--muted); }
.duty-wd { display: none; }
.duty-slot { font-size: .78rem; border-radius: 6px; padding: 2px 5px; border: 1px solid; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duty-time { opacity: .75; font-variant-numeric: tabular-nums; }
.duty-slot-edit { display: flex; flex-direction: column; font-size: .72rem; color: var(--muted); }
.duty-slot-edit select { margin-top: 1px; padding: 4px; font-size: .85rem; }
.duty-c0 { background: #e1f5ee; border-color: #5dcaa5; color: #085041; }
.duty-c1 { background: #eeedfe; border-color: #afa9ec; color: #3c3489; }
.duty-c2 { background: #faeeda; border-color: #ef9f27; color: #633806; }
.duty-c3 { background: #e6f1fb; border-color: #85b7eb; color: #0c447c; }
.duty-cx { background: #f1efe8; border-color: #b4b2a9; color: #444441; }
.duty-gap { background: #fdf3d0; border-color: #e0b43a; color: #6b4c00; }
.duty-none { border-color: transparent; color: var(--muted); }
.duty-save { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; position: sticky; bottom: 0; background: #fff; padding: 10px 0; }
.duty-note { margin-top: 10px; }
.duty-fill { margin-top: 12px; }
.duty-weekdays { border: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.duty-weekdays legend { font-size: .9rem; margin-bottom: 4px; }
.duty-weekdays label { display: inline-flex; align-items: center; gap: 4px; }
.duty-history ul { margin: 0; padding-left: 18px; line-height: 1.8; font-size: .9rem; }
.duty-handover { border-left: 4px solid var(--accent); border-radius: 0; }
.duty-text { white-space: pre-wrap; margin-top: 4px; }
.duty-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.duty-kind input { position: absolute; opacity: 0; pointer-events: none; }
.duty-kind span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 20px; background: #fff; cursor: pointer; font-size: .9rem; }
.duty-kind input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.duty-kind input:focus-visible + span { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.duty-slot-title { font-size: 1.05rem; margin: 0 0 8px; }
.duty-entries { list-style: none; margin: 0; padding: 0; }
.duty-entry { border-top: 1px solid var(--border); padding: 8px 0; }
.duty-entry-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; }
.duty-badge { font-size: .78rem; padding: 2px 8px; border-radius: 6px; background: #f1efe8; color: #444441; }
.duty-k-INCIDENT .duty-badge { background: #fcebeb; color: #791f1f; }
.duty-k-HANDOVER .duty-badge { background: #fdf0d9; color: var(--accent-dark); }
.duty-k-MEDS .duty-badge { background: #e6f1fb; color: #0c447c; }
.duty-del { display: inline; }

@media (max-width: 760px) {
  /* На телефоне месяц — список дней, а не сетка 7×5: иначе имена не помещаются. */
  .duty-grid { grid-template-columns: 1fr; }
  .duty-dow, .duty-pad { display: none; }
  .duty-day { flex-direction: row; align-items: center; min-height: 0; gap: 6px; }
  .duty-date { width: 64px; flex: none; }
  .duty-wd { display: inline; }
  .duty-slot, .duty-slot-edit { flex: 1; min-width: 0; }
  .duty-slot { font-size: .85rem; padding: 6px; }
}

@media print {
  .admin-sidebar, .admin-topbar, .duty-actions, .duty-now, .duty-month .button, .duty-history, .notice, .nav-backdrop { display: none !important; }
  .admin-main { padding: 0; }
  .card { border: none; box-shadow: none; padding: 0; }
  .duty-grid { grid-template-columns: repeat(7, 1fr); }
  .duty-dow, .duty-pad { display: block; }
  .duty-day { display: flex; flex-direction: column; break-inside: avoid; }
  .duty-past { opacity: 1; }
  body { background: #fff; }
}
.duty-weekdays input, label.checkbox input { display: inline-block; width: auto; margin: 0; }
label.checkbox { display: flex; align-items: center; gap: 8px; color: var(--text); }
label.consent { display: flex; align-items: flex-start; gap: 8px; color: var(--text); font-size: 0.9em; }
label.consent input { display: inline-block; width: auto; margin: 3px 0 0; flex-shrink: 0; }
label.consent[hidden] { display: none; }
.duty-weekdays label { margin-bottom: 0; color: var(--text); min-height: 36px; }
@media (min-width: 761px) and (max-width: 1180px) { .duty-grid .duty-time { display: none; } }

/* ---------- Единый список записей (_record-table.ejs): инициативы, выезды Альянса, контрагенты ---------- */
.rec-table .rec-row { cursor: pointer; }
.rec-table .rec-row:hover { background: #f6f1e5; }
.rec-table .rec-main a { font-weight: 600; }
.rec-table .rec-open { text-align: right; white-space: nowrap; }
.rec-add { margin-bottom: 12px; }
.rec-add > summary { display: inline-block; cursor: pointer; }
.rec-add[open] > summary { margin-bottom: 12px; }
@media (max-width: 760px) {
  .admin-main .table.rec-table { display: table; white-space: normal; overflow: visible; }
  .rec-table thead { display: none; }
  .rec-table, .rec-table tbody, .rec-table tr, .rec-table td { display: block; width: 100%; }
  .rec-table tr.rec-row { background: #fff; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; padding: 8px 12px; }
  .admin-main .rec-table td { border: none; padding: 3px 0; min-width: 0; }
  .rec-table td[data-label]:not(.rec-main)::before { content: attr(data-label) ": "; color: var(--muted); font-size: 0.8rem; }
  .rec-table td.rec-main { font-size: 1.05rem; }
  .rec-table .rec-open { text-align: left; padding-top: 6px; }
}

/* Расписание операционного дня (12.10, public/js/opday-schedule.js): слева «Без времени», справа шкала; 5 минут = 8px. */
.sched-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.sched-actions form { margin: 0; }
.sched { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 16px; align-items: start; margin-top: 12px; }
.sched-pool { border: 1px dashed var(--border); border-radius: 10px; padding: 8px; min-height: 120px; position: sticky; top: 8px; max-height: 90vh; overflow-y: auto; }
.sched-pool h3 { margin: 0 0 8px; font-size: .95rem; }
.sched-pool.drop { background: #eef0f8; border-color: var(--accent); }
.sched-pool .sched-card { position: relative; margin-bottom: 6px; min-height: 44px; }
.sched-grid { display: grid; grid-template-columns: 48px 1fr; min-width: 0; }
.sched-hours { position: relative; }
.sched-hour { position: absolute; right: 6px; transform: translateY(-50%); font-size: .75rem; color: var(--muted); }
.sched-lane { position: relative; border-left: 1px solid var(--border); background: #fff; }
.sched-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); }
.sched-line.half { border-top-style: dashed; opacity: .6; }
.sched-card { position: absolute; left: 6px; right: 6px; box-sizing: border-box; overflow: hidden; background: #eef0f8; border: 1px solid #c5cae6; border-left: 4px solid var(--accent); border-radius: 6px; padding: 2px 6px; font-size: .8rem; line-height: 1.25; user-select: none; }
.sched-card.editable { cursor: grab; touch-action: none; }
.sched.sched-editing .sched-lane { outline: 2px dashed var(--accent); outline-offset: 2px; }
.sched-card.overlap { background: #fbe3df; border-color: #e0a0a0; border-left-color: #c0392b; }
.sched-card.refused { opacity: .6; text-decoration: line-through; }
.sched-card.dragging { opacity: .35; }
.sched-card.ghost { position: fixed; z-index: 1000; pointer-events: none; opacity: .9; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.sched-card.short .sc-what { display: none; }
.sched-card.short .sc-head { flex-wrap: nowrap; }
.sched-card.short .sc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sched-card.short .sc-badges, .sched-card.short .sc-time { white-space: nowrap; }
.sc-head { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sc-name { font-weight: 600; }
.sc-what { color: var(--muted); }
.sc-ctl { margin-left: auto; display: inline-flex; gap: 2px; }
.sc-ctl button { padding: 0 5px; font-size: .75rem; line-height: 1.5; min-height: 0; border-radius: 4px; background: #fff; color: var(--accent-dark); border: 1px solid #c5cae6; cursor: pointer; }
.sc-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; background: linear-gradient(transparent 3px, #c5cae6 3px, #c5cae6 4px, transparent 4px); }
.sched-marker { position: absolute; left: 6px; right: 6px; border: 2px dashed var(--accent); border-radius: 6px; background: rgba(40,50,114,.06); font-size: .75rem; padding: 2px 6px; pointer-events: none; display: none; box-sizing: border-box; }
@media (max-width: 700px) {
  .sched { grid-template-columns: 1fr; }
  .sched-pool { position: static; max-height: none; }
}
