:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --ink-4: #94a3b8;
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.09);
  --brand: #1d4ed8;
  --brand-2: #3b82f6;
  --brand-soft: rgba(29, 78, 216, 0.09);
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --done: #4338ca;
  --done-soft: #e0e7ff;
  --muted-soft: #eef2f7;
  --accent: #f59e0b;
  --r: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }

/* ---------- Верхняя панель ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1280px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; white-space: nowrap; }
.logo i { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.logo em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7c4a03; background: #fff3d6; border: 1px solid #fcd38a; padding: 2px 8px; border-radius: 999px; }
.roles { display: flex; gap: 4px; background: var(--muted-soft); padding: 4px; border-radius: 12px; margin: 0 auto; }
.roles a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 9px; color: var(--ink-2); white-space: nowrap; }
.roles a.on { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.bar-actions { display: flex; gap: 8px; }
.subnav { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav:empty { display: none; }
.subnav a { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--ink-3); padding: 10px 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a.on { color: var(--ink); border-color: var(--brand); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; padding: 12px 20px; border-radius: 12px; text-decoration: none; transition: filter .15s ease, transform .15s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ok { background: var(--ok); }
.btn.big { padding: 15px 26px; font-size: 16px; }
.btn[disabled] { opacity: .45; cursor: default; filter: none; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; background: var(--muted-soft); color: var(--ink); font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 11px; text-decoration: none; white-space: nowrap; }
.btn-ghost:hover { background: #e2e8f0; }
.sm { padding: 7px 12px; font-size: 13px; }
.chip-btn { font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 9px; background: var(--muted-soft); }
.chip-btn:hover { background: #e2e8f0; }
.chip-btn.ok { background: var(--ok-soft); color: #166534; }
.chip-btn.bad { background: var(--bad-soft); color: #991b1b; }
.chip-btn.on { background: var(--brand); color: #fff; }

/* ---------- Каркас ---------- */
.app { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 22px 20px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-family: var(--display); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; }
.page-head p { color: var(--ink-3); font-size: 15px; margin-top: 4px; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); }
.card h2 { font-size: 17px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; }
.card h2 small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.mt { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.note { background: #fff8e8; border: 1px solid #fcd9a0; color: #7c4a03; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.info { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.kpi b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.kpi .bar-mini { height: 6px; border-radius: 3px; background: var(--muted-soft); margin-top: 10px; overflow: hidden; }
.kpi .bar-mini i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

/* ---------- Зал кинотеатра ---------- */
.modes { display: flex; gap: 4px; background: var(--muted-soft); padding: 4px; border-radius: 11px; }
.modes button { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; color: var(--ink-2); }
.modes button.on { background: #fff; color: var(--brand); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08); }
.hall { display: flex; gap: 22px; overflow-x: auto; padding: 6px 2px 4px; }
.sec { flex: 1; min-width: 270px; }
.sec-title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; text-align: center; }
.floor { display: grid; grid-template-columns: 26px repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
.floor-n { font-size: 11px; font-weight: 700; color: var(--ink-4); display: flex; align-items: center; justify-content: flex-end; padding-right: 4px; }
.apt { height: 30px; border-radius: 7px; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease; position: relative; }
.apt:hover { transform: scale(1.12); z-index: 2; box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2); }
.apt.me::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.s-unsold { background: #fff; border-color: #cbd5e1; color: var(--ink-4); background-image: repeating-linear-gradient(45deg, transparent 0 5px, rgba(148, 163, 184, 0.18) 5px 7px); }
.s-sold { background: #dbeafe; color: #1e3a8a; }
.s-plan { background: var(--muted-soft); color: var(--ink-3); }
.s-open { background: var(--warn-soft); color: #92400e; border-color: #fcd34d; }
.s-clean { background: var(--ok-soft); color: #166534; }
.s-booked { background: #ede9fe; color: #5b21b6; }
.s-handed { background: var(--done); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid transparent; }

/* ---------- Таблицы ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: #f8fafc; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f8fafc; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }

/* ---------- Бейджи ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.b-open { background: var(--warn-soft); color: #92400e; }
.b-fixed { background: var(--ok-soft); color: #166534; }
.b-after { background: var(--bad-soft); color: #991b1b; }
.b-done { background: var(--done-soft); color: var(--done); }
.b-muted { background: var(--muted-soft); color: var(--ink-3); }
.b-blue { background: #dbeafe; color: #1e40af; }
.b-violet { background: #ede9fe; color: #5b21b6; }

/* ---------- Список замечаний ---------- */
.defects { display: grid; gap: 8px; }
.defect { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.defect .sys { font-size: 12px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.defect .txt { font-weight: 600; }
.defect .thumb { width: 54px; height: 40px; border-radius: 8px; object-fit: cover; grid-row: span 2; }
.defect-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Слоты ---------- */
.slots { display: grid; grid-template-columns: 70px repeat(7, minmax(0, 1fr)); gap: 4px; min-width: 640px; }
.slots .h { font-size: 12px; font-weight: 800; color: var(--ink-3); text-align: center; padding: 4px 0; }
.slots .h.today { color: var(--brand); }
.slots .t { font-size: 12px; font-weight: 700; color: var(--ink-4); display: flex; align-items: center; }
.slot { height: 34px; border-radius: 8px; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.slot.l0 { background: var(--muted-soft); color: var(--ink-4); }
.slot.l1 { background: #dbeafe; color: #1e40af; }
.slot.l2 { background: #bfdbfe; color: #1e3a8a; }
.slot.l3 { background: var(--brand); color: #fff; }
.slot.pick { background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); cursor: pointer; }
.slot.pick:hover { border-color: var(--brand); color: var(--brand); }
.slot.pick.full { background: var(--muted-soft); color: var(--ink-4); cursor: default; text-decoration: line-through; border-color: transparent; }
.slot.pick.sel { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Drawer ---------- */
.drawer-wrap { position: fixed; inset: 0; z-index: 60; }
.drawer-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.35); backdrop-filter: blur(2px); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--bg); overflow-y: auto; box-shadow: -20px 0 50px rgba(15, 23, 42, 0.2); animation: slideIn .25s ease; }
.drawer.still { animation: none; }
@keyframes slideIn { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 18px; display: flex; align-items: flex-start; gap: 12px; z-index: 2; }
.drawer-head h3 { font-family: var(--display); font-size: 20px; }
.drawer-body { padding: 16px 18px 30px; display: grid; gap: 12px; }
.x { width: 36px; height: 36px; border-radius: 50%; background: var(--muted-soft); font-size: 20px; line-height: 1; flex: none; }
.x:hover { background: #e2e8f0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { font-weight: 700; }

/* ---------- Тур ---------- */
.tour { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: min(360px, calc(100% - 36px)); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2); padding: 14px 16px; }
.tour-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tour-list { list-style: none; counter-reset: s; display: grid; gap: 4px; }
.tour-list li { counter-increment: s; }
.tour-list a { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; text-decoration: none; padding: 7px 8px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tour-list a::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--muted-soft); color: var(--ink-3); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tour-list a:hover { background: #f8fafc; }
.tour-list a.cur { background: var(--brand-soft); color: var(--ink); }
.tour-list a.cur::before { background: var(--brand); color: #fff; }
.tour-list small { display: block; color: var(--ink-3); font-weight: 500; font-size: 12.5px; }
.tour-foot { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; z-index: 80; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); transition: all .25s ease; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Старт ---------- */
.hero-demo { text-align: center; padding: 18px 0 8px; }
.hero-demo h1 { font-family: var(--display); font-size: clamp(24px, 3vw, 38px); line-height: 1.15; max-width: 820px; margin: 10px auto 10px; }
.hero-demo p { color: var(--ink-3); font-size: 17px; max-width: 680px; margin: 0 auto; }
.role-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.role-card { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(29, 78, 216, 0.35); }
.role-card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.role-card h3 { font-size: 19px; font-weight: 800; }
.role-card p { color: var(--ink-3); font-size: 14.5px; }
.role-card ul { list-style: none; display: grid; gap: 4px; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.role-card li::before { content: "→ "; color: var(--brand); font-weight: 800; }
.role-card .go { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--brand); }

/* ---------- Эксперт ---------- */
.who { display: flex; align-items: center; gap: 12px; }
.ava { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #fde68a, #f59e0b); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #7c4a03; flex: none; }
.task { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; }
.task:hover { border-color: rgba(29, 78, 216, 0.35); box-shadow: var(--shadow); }
.task .time { font-family: var(--display); font-size: 15px; color: var(--brand); min-width: 54px; }
.task b { display: block; }
.check-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-row .sys-name { font-weight: 700; }
.check-row .sys-hint { font-size: 13px; color: var(--ink-3); }
.check-form { grid-column: 1 / -1; display: grid; gap: 8px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 10px; }
.check-form textarea, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; font-size: 15px; }
.check-form textarea { min-height: 60px; resize: vertical; }
.file { font-size: 13px; color: var(--ink-3); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }

/* ---------- Формуляр ---------- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(18px, 4vw, 44px); max-width: 820px; margin: 0 auto; box-shadow: var(--shadow); font-size: 14.5px; }
.doc h2 { font-size: 18px; text-align: center; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.doc .sub { text-align: center; color: var(--ink-3); margin-bottom: 18px; }
.doc table { font-size: 13.5px; margin: 10px 0 16px; border: 1px solid var(--line); }
.doc td, .doc th { border: 1px solid var(--line); }
.sign { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.sign div { border-top: 1px solid var(--ink-3); padding-top: 6px; font-size: 13px; color: var(--ink-3); }
.sign .signed { color: var(--ok); font-weight: 800; }

/* ---------- Дольщик ---------- */
.gift { background: linear-gradient(135deg, #eef4ff, #ffffff 60%); border: 1px solid #c7d7fb; border-radius: 22px; padding: clamp(20px, 4vw, 40px); }
.gift h1 { font-family: var(--display); font-size: clamp(22px, 3vw, 34px); line-height: 1.18; margin: 10px 0 12px; }
.gift p { color: var(--ink-2); font-size: 16px; max-width: 640px; }
.gift-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.gift-points div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 14.5px; color: var(--ink-2); }
.gift-points b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 2px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.steps span { font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--muted-soft); color: var(--ink-3); }
.steps span.on { background: var(--brand); color: #fff; }
.steps span.ok { background: var(--ok-soft); color: #166534; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice button { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 4px; }
.choice button:hover { border-color: var(--brand); }
.choice b { font-size: 17px; }
.choice span { color: var(--ink-3); font-size: 14px; }
.company { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 8px; }
.company:hover { border-color: var(--brand); }
.company.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.company h4 { font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; font-weight: 700; background: var(--muted-soft); color: var(--ink-2); padding: 4px 8px; border-radius: 8px; }
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.progress div { border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 700; background: var(--muted-soft); color: var(--ink-3); position: relative; }
.progress div.ok { background: var(--ok-soft); color: #166534; }
.progress div.now { background: var(--brand); color: #fff; }
.feed { display: grid; gap: 8px; }
.feed-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.feed-item.new { border-color: rgba(29, 78, 216, 0.4); background: #f5f8ff; }
.feed-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); margin-top: 6px; }
.feed-item time { display: block; font-size: 12px; color: var(--ink-3); }
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.svc div { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; display: grid; gap: 6px; }
.svc b { font-size: 15px; }
.svc p { font-size: 13px; color: var(--ink-3); }

.foot { text-align: center; font-size: 12.5px; color: var(--ink-4); padding: 14px 20px 22px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .bar-in { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .roles { order: 3; width: 100%; margin: 0; }
  .roles a { flex: 1; text-align: center; padding: 7px 6px; }
  .bar-actions { margin-left: auto; }
  .hide-sm { display: none; }
  .subnav { padding: 0 14px; }
  .app { padding: 16px 14px 40px; }
  .g2, .g3, .role-cards, .gift-points, .svc, .choice { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 14px; }
  .floor { gap: 3px; }
  .kpis, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall { flex-direction: column; gap: 16px; }
  .sec { min-width: 0; }
  .apt { height: 32px; }
  .sign { grid-template-columns: 1fr; }
  .doc .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc .kv dd { margin-bottom: 6px; }
  .doc { overflow-wrap: anywhere; }
}
@media print {
  .bar, .foot, .tour, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  .doc { box-shadow: none; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
