/* ============================================================
   HotelУчёт — Midnight Design System
   Два режима: dark (default) / light, переключается классом body.light
   ============================================================ */

/* ── Токены тёмной темы ── */
:root {
  --bg:        #0d0d16;
  --bg2:       #13131f;
  --bg3:       #1a1a2e;
  --panel:     #13131f;
  --panel2:    #1e1e30;
  --border:    #1e1e30;
  --border2:   #2d2d45;
  --ink:       #e2e8f0;
  --ink2:      #94a3b8;
  --muted:     #4b5563;
  --muted2:    #374151;

  --accent:    #7c3aed;
  --accent2:   #a78bfa;
  --accent-bg: rgba(124,58,237,.18);
  --accent-border: rgba(124,58,237,.35);

  --blue:      #3b82f6;
  --blue-bg:   rgba(59,130,246,.15);
  --teal:      #06b6d4;
  --teal-bg:   rgba(6,182,212,.15);
  --green:     #22c55e;
  --green-bg:  rgba(34,197,94,.12);
  --amber:     #f59e0b;
  --amber-bg:  rgba(245,158,11,.12);
  --red:       #ef4444;
  --red-bg:    rgba(239,68,68,.12);
  --rose:      #fb7185;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.4);
  --shadow:    0 8px 32px rgba(0,0,0,.5);
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

/* ── Токены светлой темы ── */
body.light {
  --bg:        #f0f2f7;
  --bg2:       #e8eaf0;
  --bg3:       #dde1ea;
  --panel:     #ffffff;
  --panel2:    #f5f6fa;
  --border:    #e5e7eb;
  --border2:   #d1d5db;
  --ink:       #111827;
  --ink2:      #374151;
  --muted:     #6b7280;
  --muted2:    #9ca3af;

  --accent:    #7c3aed;
  --accent2:   #6d28d9;
  --accent-bg: rgba(124,58,237,.08);
  --accent-border: rgba(124,58,237,.25);

  --blue:      #2563eb;
  --blue-bg:   rgba(37,99,235,.08);
  --teal:      #0891b2;
  --teal-bg:   rgba(8,145,178,.08);
  --green:     #059669;
  --green-bg:  rgba(5,150,105,.08);
  --amber:     #d97706;
  --amber-bg:  rgba(217,119,6,.08);
  --red:       #dc2626;
  --red-bg:    rgba(220,38,38,.08);
  --rose:      #e11d48;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow:    0 8px 32px rgba(0,0,0,.08);
}

/* ── Сброс ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background .25s, color .25s;
  color-scheme: dark;
}
body.light { color-scheme: light; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; color: var(--ink); }
h2 { font-size: 18px; font-weight: 700; color: var(--ink); }
h3 { font-size: 14px; font-weight: 700; color: var(--ink); }
p  { color: var(--ink2); font-size: 13px; line-height: 1.55; }
a  { color: inherit; text-decoration: none; }
span, div, li, td, th, strong, small, em { color: inherit; }
button, input, select, textarea { font: inherit; color: var(--ink); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 2px;
  overflow-y: auto;
  z-index: 100;
  transition: background .25s;
}

/* Логотип / бренд */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.brand span {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124,58,237,.4);
}
.brand strong { display: block; color: var(--ink); font-size: 14px; font-weight: 700; }
.brand small  { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }

/* Группы навигации */
.nav-section {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 12px 10px 4px;
  margin-top: 4px;
}

nav { display: flex; flex-direction: column; gap: 1px; }

nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s;
  position: relative;
}
nav a:hover { background: var(--panel2); color: var(--ink2); }
nav a.active {
  background: var(--accent-bg);
  color: var(--accent2);
  border: 1px solid var(--accent-border);
}
nav a span {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}
.nav-badge.warn { background: var(--amber); }

/* Профиль внизу */
.profile-card {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--panel2);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s;
}
.profile-card:hover { background: var(--border); }

.avatar, .avatar-large {
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar      { width: 34px; height: 34px; font-size: 14px; border-radius: 8px; }
.avatar-large{ width: 72px; height: 72px; font-size: 26px; border-radius: 18px; }
.avatar.mini { width: 32px; height: 32px; font-size: 13px; border-radius: 8px; }

.profile-card strong { display: block; color: var(--ink); font-size: 13px; }
.profile-card small  { display: block; color: var(--muted); font-size: 11px; }

/* Переключатель тем в сайдбаре */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}
.theme-toggle:hover { background: var(--panel2); }
.theme-toggle-pill {
  width: 36px; height: 20px;
  border-radius: 999px;
  background: var(--border2);
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.theme-toggle-pill::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
body.light .theme-toggle-pill { background: var(--accent); }
body.light .theme-toggle-pill::after { transform: translateX(16px); }

/* ============================================================
   ОСНОВНОЙ КОНТЕНТ
   ============================================================ */
.app {
  margin-left: 240px;
  padding: 24px 28px;
  display: grid;
  gap: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.breadcrumb { font-size: 12px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 4px; }

.top-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  min-width: 180px;
}
.top-profile strong { display: block; font-size: 13px; color: var(--ink); }
.top-profile small  { display: block; font-size: 11px; color: var(--accent2); font-weight: 600; }

/* ============================================================
   КОМПОНЕНТЫ
   ============================================================ */

/* Панели */
.panel, .subpanel, .hero-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.subpanel { box-shadow: none; background: var(--panel2); }

/* Верхняя полоска цвета на панели */
.panel.accent-top  { border-top: 2px solid var(--accent); }
.panel.green-top   { border-top: 2px solid var(--green); }
.panel.amber-top   { border-top: 2px solid var(--amber); }
.panel.red-top     { border-top: 2px solid var(--red); }

/* Метрики */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.metrics article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.metrics article::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
}
.metrics article.purple::before { background: linear-gradient(90deg,var(--accent),var(--accent2)); opacity: 1; }
.metrics article.teal::before   { background: linear-gradient(90deg,var(--teal),#22d3ee); opacity: 1; }
.metrics article.amber::before  { background: linear-gradient(90deg,var(--amber),#fbbf24); opacity: 1; }
.metrics article.red::before    { background: linear-gradient(90deg,var(--red),var(--rose)); opacity: 1; }
.metrics article.green::before  { background: linear-gradient(90deg,var(--green),#4ade80); opacity: 1; }

.metrics span { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; display: block; }
.metrics strong { display: block; margin-top: 8px; font-size: 26px; font-weight: 800; color: var(--ink); }
.metrics small  { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

/* Секция-заголовок */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.section-head.compact { margin-bottom: 10px; }

/* Сетки */
.two-column { display: grid; grid-template-columns: minmax(380px,.8fr) 1.2fr; gap: 18px; align-items: start; }
.two-column.narrow-left { grid-template-columns: minmax(320px,.55fr) 1.45fr; }
.home-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; align-items: start; }
.home-side   { display: grid; gap: 18px; }
.action-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.form-grid   { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-grid.single{ grid-template-columns: 1fr; }
.three-forms { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.split       { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.report-split{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }

/* Action cards */
.action-card {
  min-height: 110px;
  display: grid;
  grid-template-columns: 60px 1fr 20px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border2); }
.action-card > span {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 22px;
}
.action-card strong { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.action-card small  { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.action-card em     { font-style: normal; font-size: 22px; font-weight: 900; color: var(--ink2); }

.action-card.blue   { border-color: rgba(59,130,246,.3);  background: linear-gradient(135deg,var(--panel),rgba(59,130,246,.06)); }
.action-card.green  { border-color: rgba(34,197,94,.3);   background: linear-gradient(135deg,var(--panel),rgba(34,197,94,.06)); }
.action-card.violet { border-color: var(--accent-border); background: linear-gradient(135deg,var(--panel),var(--accent-bg)); }
.action-card.teal   { border-color: rgba(6,182,212,.3);   background: linear-gradient(135deg,var(--panel),rgba(6,182,212,.06)); }
.action-card.blue   > span { background: var(--blue-bg);  color: var(--blue); }
.action-card.green  > span { background: var(--green-bg); color: var(--green); }
.action-card.violet > span { background: var(--accent-bg);color: var(--accent2); }
.action-card.teal   > span { background: var(--teal-bg);  color: var(--teal); }

/* ============================================================
   ФОРМЫ
   ============================================================ */
label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
label small { text-transform: none; font-weight: 500; letter-spacing: 0; }

input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--bg3);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-text-fill-color: var(--ink);
  color-scheme: dark;
}
body.light input, body.light select, body.light textarea {
  color-scheme: light;
  -webkit-text-fill-color: var(--ink);
}
select option {
  background: var(--bg3);
  color: var(--ink);
}
/* Подсказки (placeholder) — еле заметные во всём сервисе */
input::placeholder, textarea::placeholder {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  opacity: .38;
  font-weight: 400;
}
input:focus::placeholder, textarea:focus::placeholder { opacity: .28; }
body.light input::placeholder, body.light textarea::placeholder {
  color: var(--muted2);
  -webkit-text-fill-color: var(--muted2);
  opacity: .7;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}
textarea { min-height: 88px; resize: vertical; }

button {
  border: 0;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
button:hover { opacity: .88; }
button:active { transform: scale(.98); }

.primary     { width: 100%; margin-top: 14px; color: #fff; background: linear-gradient(135deg, var(--accent), #6d28d9); box-shadow: 0 4px 14px rgba(124,58,237,.35); }
.recommended { color: #fff; background: linear-gradient(135deg, var(--teal), #0e7490); }
.secondary   { color: var(--accent2); background: var(--accent-bg); border: 1px solid var(--accent-border); }
.ghost       { color: var(--ink2); background: var(--panel2); border: 1px solid var(--border2); }
.ghost.danger{ color: var(--red); border-color: rgba(239,68,68,.3); }

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  text-decoration: none;
  transition: opacity .15s;
}
.button-link:hover { opacity: .8; }
.text-link { color: var(--accent2); font-weight: 700; }

/* ============================================================
   ТАБЛИЦЫ
   ============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
td { font-size: 13px; color: var(--ink); }
td strong, td span { display: block; }
td span { color: var(--muted); font-size: 12px; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(124,58,237,.04); }
tr.total-row td { border-top: 2px solid var(--border2); background: var(--panel2); font-weight: 700; }

/* ============================================================
   СТАТУСЫ
   ============================================================ */
.status, .soft {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.status           { color: var(--ink2); background: var(--panel2); }
.status.warn      { color: var(--amber); background: var(--amber-bg); }
.status.ok        { color: var(--green); background: var(--green-bg); }
.status.booked    { color: var(--blue);  background: var(--blue-bg); }
.status.cancelled,.status.no_show { color: var(--red); background: var(--red-bg); }
.status.checked_in  { color: var(--teal);  background: var(--teal-bg); }
.status.checked_out { color: var(--muted); background: var(--panel2); }
.status.open        { color: var(--teal);  background: var(--teal-bg); }
.status.submitted   { color: var(--blue);  background: var(--blue-bg); }
.status.accepted    { color: var(--green); background: var(--green-bg); }
.status.closed      { color: var(--muted); background: var(--panel2); }
.status.verified    { color: var(--green); background: var(--green-bg); }
.status.draft       { color: var(--muted); background: var(--panel2); }
.status.returned    { color: var(--red);   background: var(--red-bg); }
mark.status.imported,.status.imported { background: var(--green-bg); color: var(--green); border: 0; }
mark.status.duplicate { background: var(--amber-bg); color: var(--amber); border: 0; }
mark.status.error   { background: var(--red-bg); color: var(--red); border: 0; }
mark.status.skipped { background: var(--panel2); color: var(--muted); border: 0; }
mark.status.ok      { background: var(--green-bg); color: var(--green); border: 0; }

/* ============================================================
   БРОНИ
   ============================================================ */
.booking-mini-list { display: grid; gap: 8px; }
.booking-mini {
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel2);
  transition: border-color .15s;
}
.booking-mini:hover { border-color: var(--accent-border); }
.mini-icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--accent2);
  background: var(--accent-bg);
}
.booking-mini strong, .booking-mini small { display: block; }
.booking-mini small, .booking-mini time, .empty-state { color: var(--muted); font-size: 12px; }

/* ============================================================
   НОМЕРА
   ============================================================ */
.rooms-grid, .simple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.rooms-grid.compact { grid-template-columns: repeat(2, minmax(0,1fr)); }

.room-card, .simple-card, .role-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--panel2);
  transition: border-color .15s, transform .15s;
}
.room-card:hover { border-color: var(--border2); transform: translateY(-1px); }
.room-card.free    { border-color: rgba(34,197,94,.25); background: rgba(34,197,94,.04); }
.room-card.busy    { border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.04); }
.room-card.cleaning{ border-color: var(--border2); }
.room-card.repair  { border-color: rgba(251,113,133,.3); background: rgba(251,113,133,.04); }
.room-card header, .room-card footer, .simple-card {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.room-card h3  { margin-top: 10px; }
.room-card p   { margin-top: 5px; font-size: 12px; }
.room-card footer { margin-top: 14px; }
.room-card mark {
  border-radius: 999px;
  padding: 3px 8px;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}
.room-card.free  mark { color: var(--green); background: var(--green-bg); }
.room-card.busy  mark { color: var(--amber); background: var(--amber-bg); }

/* Доска номеров */
.room-tile {
  min-height: 52px;
  display: grid; place-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: center;
  transition: border-color .15s;
}
.room-tile b     { font-size: 15px; }
.room-tile small { font-size: 10px; font-weight: 700; }
.room-tile a { color: inherit; text-decoration: none; display: grid; gap: 2px; place-items: center; }
.room-tile.free    { color: var(--green); background: rgba(34,197,94,.08);   border-color: rgba(34,197,94,.25); }
.room-tile.busy    { color: var(--red);   background: rgba(239,68,68,.08);   border-color: rgba(239,68,68,.25); }
.room-tile.cleaning{ color: var(--muted); background: var(--panel2);         border-color: var(--border2); }
.room-tile.repair  { color: var(--rose);  background: rgba(251,113,133,.08); border-color: rgba(251,113,133,.3); }

.floor-board { display: grid; gap: 10px; }
.floor-row   { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 12px; }
.floor-row > strong { color: var(--muted); font-size: 12px; }
.floor-row > div { display: grid; grid-template-columns: repeat(6, minmax(68px,1fr)); gap: 8px; }

.load-stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
.load-stat  {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel2);
}
.load-stat span   { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; display: block; }
.load-stat strong { font-size: 26px; font-weight: 800; display: block; margin-top: 6px; }
.load-stat.blue   { color: var(--blue);  border-color: rgba(59,130,246,.3); }
.load-stat.green  { color: var(--green); border-color: rgba(34,197,94,.3); }
.load-stat.red    { color: var(--red);   border-color: rgba(239,68,68,.3); }
.load-stat.gray   { color: var(--muted); }

/* ============================================================
   СМЕНЫ, КАССЫ
   ============================================================ */
.shift-banner p { color: var(--ink2); margin: 0; }
.shift-live-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.shift-live-metrics article {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--panel2);
  border: 1px solid var(--border);
}
.shift-live-metrics span   { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.shift-live-metrics strong { display: block; margin-top: 4px; font-size: 18px; font-weight: 800; }
.shift-diff.warn { color: var(--amber); }
.shift-diff.ok   { color: var(--green); }

.shift-verify-form,
.report-action-form,
.report-date-form {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.report-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.report-toolbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.report-status { font-weight: 700; }
.report-list   { margin: 8px 0 0; padding-left: 18px; line-height: 1.8; }
.report-date-form { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   МЕЛКИЕ КОМПОНЕНТЫ
   ============================================================ */
.today-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.today-strip article { display: flex; gap: 12px; align-items: center; }
.strip-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 20px;
  flex-shrink: 0;
}
.strip-icon.blue   { color: var(--blue);   background: var(--blue-bg); }
.strip-icon.green  { color: var(--green);  background: var(--green-bg); }
.strip-icon.violet { color: var(--accent2);background: var(--accent-bg); }
.strip-icon.amber  { color: var(--amber);  background: var(--amber-bg); }
.today-strip small, .today-strip p { color: var(--muted); font-size: 12px; }
.today-strip strong { display: block; margin-top: 2px; font-size: 22px; font-weight: 800; color: var(--ink); }

.task-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.task-list li {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 10px;
  align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border);
}
.task-list li:last-child { border-bottom: 0; }
.task-list li > span {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: #fff; background: var(--accent);
  font-weight: 900;
}
.task-list p    { color: var(--ink2); font-weight: 700; font-size: 13px; line-height: 1.3; }
.task-list time { color: var(--muted); font-size: 12px; }

.legend { margin-top: 14px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.dot { width: 9px; height: 9px; display: inline-block; border-radius: 999px; margin-right: -8px; }
.dot.free    { background: var(--green); }
.dot.busy    { background: var(--red); }
.dot.cleaning{ background: var(--muted); }
.dot.repair  { background: var(--rose); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip  { min-height: 30px; padding: 5px 10px; color: var(--teal); background: var(--teal-bg); border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; }

.notice-panel p { color: var(--muted); }
.hint { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; }
.empty-state { color: var(--muted); }

.movement-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel2);
}
.movement-card + .movement-card { margin-top: 8px; }
.movement-card span, .movement-card small { color: var(--muted); }

.booking-total {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--panel2);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.booking-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.booking-actions .text-link { font-size: 13px; }

.status-actions  { display: flex; flex-direction: column; gap: 5px; min-width: 120px; }
.status-form     { margin: 0; }
.status-btn {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--panel2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.status-btn.checked_in  { color: var(--teal);  border-color: rgba(6,182,212,.35);  background: var(--teal-bg); }
.status-btn.checked_out { color: var(--muted); border-color: var(--border2); }
.status-btn.cancelled, .status-btn.no_show { color: var(--red); border-color: rgba(239,68,68,.3); background: var(--red-bg); }
.status-btn.room-status.active { box-shadow: inset 0 0 0 2px var(--accent); }
.room-status-actions { margin-top: 10px; }

.verify-box {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 110px 110px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(6,182,212,.08);
  border: 1px solid rgba(6,182,212,.2);
}
.verify-box small { grid-column: 1 / -1; color: var(--teal); }

.editor-row  { display: grid; grid-template-columns: .7fr 1fr .8fr .5fr .6fr .8fr 40px; gap: 8px; align-items: start; }
.service-row { grid-template-columns: 1fr .6fr 40px; }
.room-editor, .service-editor { display: grid; gap: 10px; }
.editor-row button { min-height: 40px; color: var(--red); background: var(--red-bg); border: 1px solid rgba(239,68,68,.3); }

.btn-danger-xs {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--radius-sm);
}

.question-band { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.toggle {
  display: flex; align-items: center; gap: 8px; min-height: 42px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--panel2); border: 1px solid var(--border); color: var(--ink);
}
.toggle input { width: auto; min-height: auto; }

.date-filter { display: flex; gap: 10px; align-items: end; }
.date-filter label { margin: 0; font-size: 12px; }

.inline-form { margin: 0; }
.status-form { margin: 0; }

.guest-search-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.guest-search-form label { min-width: 200px; }

.invite-link { display: block; margin-top: 4px; font-size: 12px; }
.invite-link a { color: var(--accent2); word-break: break-all; }

.text-link-btn, .booking-mail-form button {
  background: none; border: none; padding: 0;
  color: var(--accent2); font: inherit; font-size: 13px;
  cursor: pointer; text-decoration: underline;
}

/* Профиль */
.profile-page { max-width: 760px; display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.profile-note { margin-top: 8px; color: var(--muted); font-size: 13px; }
.permission-list { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.permission-list span { padding: 6px 10px; border-radius: var(--radius-sm); background: var(--accent-bg); color: var(--accent2); font-weight: 700; font-size: 12px; border: 1px solid var(--accent-border); }
.role-card p { margin-top: 8px; font-size: 13px; }

/* Гости */
.room-detail .detail-meta {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 8px;
}

/* Каналы */
.channel-import-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.channel-import-list li { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel2); }
.channel-import-form textarea { width: 100%; min-height: 160px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* Тарифы */
.rates-table-wrap { overflow: auto; }
.rates-table { border-collapse: collapse; min-width: 900px; font-size: 12px; }
.rates-room-head { padding: 8px 12px; background: var(--panel2); position: sticky; left: 0; z-index: 1; border-bottom: 1px solid var(--border); white-space: nowrap; }
.rates-day-head  { padding: 6px 4px; text-align: center; min-width: 44px; border-bottom: 1px solid var(--border); }
.rates-cell { text-align: center; padding: 5px 3px; border: 1px solid var(--border); background: var(--panel); }
.rates-cell.closed   { background: var(--red-bg);   color: var(--red); font-weight: 700; }
.rates-cell.rates-special { background: var(--accent-bg); color: var(--accent2); font-weight: 700; }

/* Календарь */
.calendar-wrap { overflow: auto; }
.calendar-table { min-width: 720px; }
.calendar-table th, .calendar-table td { text-align: center; padding: 7px 5px; font-size: 12px; }
.calendar-table th:first-child, .calendar-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--panel); z-index: 1; }
.cal-cell { width: 26px; height: 26px; border-radius: 5px; padding: 0 !important; }
.cal-cell.free    { background: rgba(34,197,94,.2); }
.cal-cell.busy    { background: rgba(239,68,68,.2); }
.cal-cell.cleaning{ background: var(--panel2); }
.cal-cell.repair  { background: rgba(251,113,133,.2); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  right: 24px; bottom: 24px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 32px rgba(124,58,237,.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .25s ease;
  font-size: 14px;
  font-weight: 600;
  z-index: 999;
}
.toast.show  { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red); box-shadow: 0 8px 32px rgba(239,68,68,.4); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-body {
  background:
    radial-gradient(circle at 15% 15%, rgba(124,58,237,.25), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(6,182,212,.15), transparent 35%),
    var(--bg);
}
.auth-shell {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(300px,.75fr) minmax(460px,1.25fr);
  gap: 20px;
  align-items: stretch;
}
.auth-side, .auth-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(19,19,31,.9);
  box-shadow: var(--shadow);
}
body.light .auth-side, body.light .auth-card { background: rgba(255,255,255,.92); }
.auth-side {
  padding: 32px;
  display: grid;
  align-content: center;
  gap: 16px;
  background: linear-gradient(160deg, var(--bg2), var(--bg3));
}
body.light .auth-side { background: linear-gradient(160deg, #fff, #eef0ff); }
.brand-mark {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.auth-side h1 { max-width: 380px; font-size: 36px; color: var(--ink); }
.auth-side ul  { margin: 4px 0 0; padding-left: 18px; color: var(--ink2); font-weight: 700; line-height: 1.9; }
.auth-card     { padding: 32px; overflow: auto; }
.auth-card h2  { margin-top: 4px; font-size: 26px; color: var(--ink); }
.auth-card form{ display: grid; gap: 16px; margin-top: 20px; }
.auth-link     { justify-self: center; color: var(--accent2); font-weight: 700; }
.auth-links-row{ display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.remember-me   { margin-top: 2px; }
.two-auth      { grid-template-columns: repeat(2, minmax(0,1fr)); }
.setup-editors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-questions{ margin-top: 0; }
.send-code-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.send-code-hint{ color: var(--muted); font-size: 13px; }
button[data-send-reset-code]:disabled { opacity: .7; cursor: wait; }
.warn-note     { color: var(--amber); }
.reset-code-banner {
  margin-bottom: 18px; padding: 18px;
  border-radius: var(--radius); background: var(--accent-bg); border: 1px solid var(--accent-border); text-align: center;
}
.reset-code-banner span   { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.reset-code-banner strong { display: block; font-size: 34px; letter-spacing: .2em; color: var(--accent2); margin-bottom: 6px; }
.reset-code-banner small  { color: var(--muted); font-size: 12px; }
.reset-code-banner.hidden { display: none; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1200px) {
  .sidebar { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; padding: 10px 14px; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .app { margin-left: 0; padding: 16px; }
  .home-layout, .two-column, .two-column.narrow-left, .split, .metrics, .form-grid.three, .action-grid, .today-strip { grid-template-columns: 1fr; }
  .floor-row > div { grid-template-columns: repeat(4, minmax(68px,1fr)); }
  .brand small, .profile-card small, .nav-section, .theme-toggle { display: none; }
  .profile-card { margin-top: 0; }
}

@media (max-width: 760px) {
  .topbar, .section-head, .action-card, .booking-mini { display: grid; }
  .form-grid, .rooms-grid, .rooms-grid.compact, .simple-grid, .question-band, .verify-box, .load-stats, .floor-row, .floor-row > div { grid-template-columns: 1fr; }
  .editor-row { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .shift-live-metrics { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 22px; }
}

/* ============================================================
   HOUSEKEEPING
   ============================================================ */
.hk-floor-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.hk-card {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel2);
  transition: border-color .15s;
}
.hk-card.hk-green  { border-color: rgba(34,197,94,.3);  background: rgba(34,197,94,.05); }
.hk-card.hk-amber  { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.05); }
.hk-card.hk-blue   { border-color: rgba(59,130,246,.3); background: rgba(59,130,246,.05); }
.hk-card input, .hk-card select { color: var(--ink); background: var(--bg2); }
.muted { color: var(--muted) !important; }

/* ============================================================
   DASHBOARD ANALYTICS
   ============================================================ */
.dash-period-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

/* ============================================================
   ШАХМАТКА — визуальный календарь броней
   ============================================================ */
.cal-panel { overflow: hidden; }
.cal-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-win-btn, .cal-nav {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 700;
  color: var(--ink2); background: var(--panel2);
  border: 1px solid var(--border2); text-decoration: none;
  transition: all .15s;
}
.cal-win-btn:hover, .cal-nav:hover { border-color: var(--accent); color: var(--accent2); }
.cal-win-btn.active { background: var(--accent-bg); color: var(--accent2); border-color: var(--accent-border); }
.cal-nav { min-width: 34px; font-size: 16px; }

.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 4px 0 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.cal-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-grid; place-items: center; font-size: 9px; }
.cal-dot.cal-booked { background: var(--blue); }
.cal-dot.cal-in { background: var(--green); }
.cal-dot.cal-out { background: var(--muted2); }
.cal-dot.cal-closed-dot { background: var(--red-bg); color: var(--red); }
.cal-dot.cal-debt-dot { background: var(--amber); color: #fff; font-weight: 800; }

.cal-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.cal-grid { min-width: 760px; }

.cal-row { display: flex; align-items: stretch; }
.cal-head-row { position: sticky; top: 0; z-index: 6; }

.cal-room-label {
  width: 116px; flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  padding: 6px 10px;
  border-right: 1px solid var(--border2);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  position: sticky; left: 0; z-index: 5;
  text-decoration: none;
}
.cal-room-label strong { font-size: 15px; color: var(--ink); font-weight: 800; }
.cal-room-label small { font-size: 10px; color: var(--muted); line-height: 1.1; }
.cal-room-label:hover strong { color: var(--accent2); }
.cal-corner {
  justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
  background: var(--bg3);
}

.cal-track { flex: 1; position: relative; min-height: 46px; }

.cal-head { display: grid; height: 100%; background: var(--bg3); }
.cal-head-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 5px 2px; gap: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border2);
  min-width: 30px;
}
.cal-head-cell .cal-dow { font-size: 9px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.cal-head-cell .cal-dnum { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.cal-head-cell .cal-mon { font-size: 9px; color: var(--muted); }
.cal-head-cell.cal-weekend { background: rgba(124,58,237,.05); }
.cal-head-cell.cal-today-col { background: var(--accent-bg); }
.cal-head-cell.cal-today-col .cal-dnum { color: var(--accent2); }

.cal-bg { display: grid; position: absolute; inset: 0; }
.cal-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-width: 30px;
  display: grid; place-items: center;
  text-decoration: none;
}
.cal-cell.cal-weekend { background: rgba(124,58,237,.035); }
.cal-cell.cal-today-col { background: rgba(124,58,237,.08); }
.cal-empty { cursor: pointer; transition: background .12s; }
.cal-empty:hover { background: var(--accent-bg); }
.cal-empty:hover::after { content: '+'; color: var(--accent2); font-size: 18px; font-weight: 700; }
.cal-closed { color: var(--red); background: repeating-linear-gradient(45deg, transparent, transparent 4px, var(--red-bg) 4px, var(--red-bg) 8px); font-size: 11px; cursor: not-allowed; }

.cal-bars { position: absolute; inset: 0; pointer-events: none; }
.cal-bar {
  position: absolute; top: 5px; bottom: 5px;
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12px; font-weight: 700; color: #fff;
  text-decoration: none;
  overflow: hidden; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .12s, box-shadow .12s, filter .12s;
  z-index: 2;
}
.cal-bar:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.4); filter: brightness(1.08); z-index: 3; }
.cal-bar-name { overflow: hidden; text-overflow: ellipsis; }
.cal-bar.cal-booked { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.cal-bar.cal-in { background: linear-gradient(135deg, #22c55e, #16a34a); }
.cal-bar.cal-out { background: linear-gradient(135deg, #64748b, #475569); }
.cal-bar.cal-cont-left { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
.cal-bar.cal-cont-right { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: -1px; }
.cal-debt {
  flex-shrink: 0;
  width: 16px; height: 16px;
  display: grid; place-items: center;
  background: var(--amber); color: #fff;
  border-radius: 50%; font-size: 10px; font-weight: 800;
}

@media (max-width: 640px) {
  .cal-room-label { width: 80px; }
  .cal-bar { font-size: 11px; padding: 0 5px; }
}

/* ============================================================
   ОНБОРДИНГ-ВИЗАРД
   ============================================================ */
.wiz-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(124,58,237,.20), transparent 60%),
    radial-gradient(800px 600px at 100% 110%, rgba(6,182,212,.14), transparent 55%),
    var(--bg);
}
.wiz { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }

/* Левая панель со степпером */
.wiz-side {
  display: flex; flex-direction: column;
  padding: 28px 24px;
  background: rgba(19,19,31,.6);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
}
.wiz-side-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.wiz-side-brand strong { display: block; font-size: 15px; color: var(--ink); }
.wiz-side-brand small { display: block; font-size: 11px; color: var(--muted); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 900; font-size: 20px;
  box-shadow: 0 6px 20px rgba(124,58,237,.45);
}
.wiz-side-steps { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.wiz-side-step {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 12px; border-radius: 12px;
  cursor: default; transition: background .15s;
}
.wiz-side-step strong { display: block; font-size: 14px; color: var(--ink2); font-weight: 700; transition: color .15s; }
.wiz-side-step small { display: block; font-size: 11px; color: var(--muted); }
.wiz-side-num {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px; font-size: 17px;
  background: var(--panel2); border: 1px solid var(--border2);
  transition: all .2s;
}
.wiz-side-step.active { background: var(--accent-bg); }
.wiz-side-step.active strong { color: var(--accent2); }
.wiz-side-step.active .wiz-side-num { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; box-shadow: 0 4px 14px rgba(124,58,237,.4); }
.wiz-side-step.done { cursor: pointer; }
.wiz-side-step.done strong { color: var(--green); }
.wiz-side-step.done .wiz-side-num { background: var(--green-bg); border-color: rgba(34,197,94,.4); }
.wiz-side-step.done .wiz-side-num::after { content: '✓'; color: var(--green); font-weight: 800; }
.wiz-side-step.done .wiz-side-num { font-size: 0; }
.wiz-side-step.done .wiz-side-num::after { font-size: 16px; }
.wiz-side-login { margin-top: 18px; font-size: 12px; color: var(--muted); font-weight: 600; }
.wiz-side-login:hover { color: var(--accent2); }

/* Правая часть */
.wiz-main { display: flex; flex-direction: column; padding: 36px clamp(24px, 6vw, 80px); max-width: 880px; width: 100%; }
.wiz-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.wiz-progress-track { flex: 1; height: 6px; background: var(--bg3); border-radius: 999px; overflow: hidden; }
.wiz-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 999px; transition: width .4s cubic-bezier(.4,0,.2,1); }
.wiz-progress-label { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }

.wiz-form { flex: 1; display: flex; flex-direction: column; }

/* Шаги с анимацией */
.wiz-step { display: none; flex: 1; }
.wiz-step.active { display: block; animation: wizIn .4s cubic-bezier(.2,.7,.3,1); }
@keyframes wizIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
.wiz-head { margin-bottom: 22px; }
.wiz-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.wiz-head p { margin-top: 6px; font-size: 14px; }

/* Удобства */
.wiz-amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wiz-amenity {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: var(--radius);
  border: 2px solid var(--border2); background: var(--panel2);
  cursor: pointer; transition: all .18s; position: relative;
  text-transform: none; letter-spacing: 0; font-weight: 400;
}
.wiz-amenity input { position: absolute; opacity: 0; pointer-events: none; }
.wiz-amenity-ico { font-size: 30px; line-height: 1; }
.wiz-amenity-txt strong { display: block; font-size: 15px; color: var(--ink); font-weight: 700; }
.wiz-amenity-txt small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.wiz-amenity:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.wiz-amenity:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
.wiz-amenity:has(input:checked)::after { content: '✓'; position: absolute; top: 12px; right: 14px; width: 22px; height: 22px; display: grid; place-items: center; background: var(--accent); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 800; }

/* Редакторы номеров/услуг */
.wiz-editor-head { display: flex; gap: 10px; margin-bottom: 14px; }
.wiz-editor-head button { width: auto; }
.wiz-editor-cols {
  display: grid; grid-template-columns: .7fr 1fr .8fr .5fr .6fr .8fr 40px; gap: 8px;
  padding: 0 4px 8px; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.wiz-step .room-editor, .wiz-step .service-editor { display: grid; gap: 8px; }

/* Обзор */
.wiz-review { display: grid; gap: 10px; }
.wiz-review-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--panel2); border: 1px solid var(--border);
}
.wiz-review-row span { font-size: 13px; color: var(--muted); font-weight: 600; }
.wiz-review-row strong { font-size: 14px; color: var(--ink); font-weight: 700; text-align: right; }

/* Навигация */
.wiz-nav { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.wiz-nav .wiz-back { width: auto; }
.wiz-nav .wiz-next, .wiz-nav .wiz-submit { width: auto; margin-left: auto; margin-top: 0; padding: 11px 28px; }
.wiz-error { flex: 1; text-align: center; font-size: 13px; color: var(--red); font-weight: 600; }
input.invalid, select.invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(239,68,68,.18) !important; }

@media (max-width: 820px) {
  .wiz { grid-template-columns: 1fr; }
  .wiz-side { flex-direction: row; align-items: center; padding: 16px; overflow-x: auto; }
  .wiz-side-brand { margin-bottom: 0; margin-right: 8px; }
  .wiz-side-steps { flex-direction: row; }
  .wiz-side-step small, .wiz-side-step strong { display: none; }
  .wiz-side-login { display: none; }
  .wiz-amenities { grid-template-columns: 1fr; }
  .wiz-editor-cols { display: none; }
  .wiz-step .editor-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   ПЕРЕКЛЮЧАТЕЛЬ ОТЕЛЕЙ (сайдбар)
   ============================================================ */
.hotel-switcher { margin-bottom: 10px; position: relative; }
.hotel-switcher summary {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--radius-sm);
  cursor: pointer; list-style: none; border: 1px solid var(--border);
  background: var(--panel2); transition: border-color .15s;
}
.hotel-switcher summary::-webkit-details-marker { display: none; }
.hotel-switcher summary:hover { border-color: var(--accent-border); }
.hs-logo {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 900; font-size: 16px;
  box-shadow: 0 4px 14px rgba(124,58,237,.4);
}
.hs-cur { flex: 1; min-width: 0; }
.hs-cur strong { display: block; font-size: 13px; color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-cur small { display: block; font-size: 11px; color: var(--muted); }
.hs-caret { color: var(--muted); font-size: 12px; transition: transform .2s; }
.hotel-switcher[open] .hs-caret { transform: rotate(180deg); }
.hs-menu {
  margin-top: 6px; padding: 6px; display: grid; gap: 2px;
  background: var(--panel2); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.hs-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 7px;
  color: var(--ink2); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background .12s;
}
.hs-item:hover { background: var(--bg3); color: var(--ink); }
.hs-item-ico { width: 22px; text-align: center; flex-shrink: 0; }
.hs-item.hs-add { color: var(--accent2); }
.hs-item.hs-all { color: var(--muted); border-top: 1px solid var(--border); margin-top: 2px; padding-top: 11px; }

/* ============================================================
   СТРАНИЦА «МОИ ОТЕЛИ»
   ============================================================ */
.hotels-shell { min-height: 100vh; display: flex; flex-direction: column; }
.hotels-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 60px);
  border-bottom: 1px solid var(--border);
}
.hotels-brand { display: flex; align-items: center; gap: 12px; }
.hotels-brand strong { display: block; font-size: 15px; color: var(--ink); }
.hotels-brand small { display: block; font-size: 11px; color: var(--muted); }
.hotels-logout { width: auto; text-decoration: none; }
.hotels-main { flex: 1; max-width: 760px; width: 100%; margin: 0 auto; padding: 36px clamp(20px, 5vw, 40px); }
.hotels-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.hotels-head h1 { font-size: 26px; }
.hotels-head p { margin-top: 4px; }
.hotels-add { width: auto; text-decoration: none; margin-top: 0; padding: 11px 22px; }
.hotels-grid { display: grid; gap: 12px; }
.hotel-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.hotel-card:hover { transform: translateY(-2px); border-color: var(--accent-border); box-shadow: var(--shadow); }
.hotel-card-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px; display: grid; place-items: center; font-size: 26px;
  background: var(--accent-bg);
}
.hotel-card-body { flex: 1; }
.hotel-card-body strong { display: block; font-size: 16px; color: var(--ink); font-weight: 700; }
.hotel-card-body small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.hotel-current-badge {
  font-size: 11px; font-weight: 700; color: var(--green);
  background: var(--green-bg); padding: 4px 10px; border-radius: 999px;
}
.hotel-card-arrow { color: var(--muted); font-size: 18px; }
.hotels-empty { text-align: center; padding: 50px 20px; border: 2px dashed var(--border2); border-radius: var(--radius-lg); }
.hotels-empty-ico { font-size: 48px; margin-bottom: 12px; }
.hotels-empty p { font-size: 14px; }
