:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f2f5f9;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}
.container.wide { max-width: 1080px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}

h1, h2, h3 { margin: 0 0 10px; line-height: 1.25; }
h1 { font-size: 22px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  text-align: center;
  user-select: none;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { opacity: .85; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn.ghost:hover { background: #eff6ff; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b91c1c; }
.btn.soft { background: #eef2ff; color: var(--primary); }
.btn.soft:hover { background: #e0e7ff; }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: 14px; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; min-width: 120px; }

/* ---------- формы ---------- */
.field { margin-bottom: 14px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
}
textarea { min-height: 90px; resize: vertical; font-family: inherit; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.check { display: flex; align-items: center; gap: 8px; }
.check input { width: 20px; height: 20px; }
.check label { margin: 0; font-weight: 500; }

.error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}
.success-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

/* ---------- шапка приложения ---------- */
.app-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.app-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.app-header .brand { font-size: 18px; font-weight: 700; flex: 1; min-width: 160px; }
.app-header .brand a { color: #fff; }
.app-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.app-header nav a {
  color: #fff;
  opacity: .9;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.app-header nav a:hover { background: rgba(255,255,255,.15); opacity: 1; }
.app-header nav a.active { background: rgba(255,255,255,.22); opacity: 1; }

/* ---------- герой / приветствие ---------- */
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto 16px; }

/* ---------- списки ---------- */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; font-size: 15px; }
.list-item .sub { color: var(--muted); font-size: 13px; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.published { background: #dcfce7; color: #15803d; }
.badge.draft { background: #f1f5f9; color: #64748b; }

/* ---------- вопросы ---------- */
.question-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  background: var(--card);
}
.question-card .q-text { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.question-card .q-hint { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.option:hover { border-color: #c7d2fe; }
.option input { width: 20px; height: 20px; flex-shrink: 0; cursor: pointer; }
.option .opt-text { flex: 1; }
.option.selected { border-color: var(--primary); background: #eff6ff; }

/* ---------- редактор опроса ---------- */
.editor-question {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  background: var(--card);
}
.editor-question .q-head { display: flex; gap: 8px; align-items: flex-start; }
.editor-question .q-head .num { font-weight: 700; color: var(--muted); padding-top: 12px; }
.editor-question .q-head .q-body { flex: 1; }
.option-edit-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.option-edit-row input { flex: 1; }
.icon-btn {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  min-width: 42px;
  min-height: 42px;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
}
.icon-btn:hover { background: var(--hover, #f3f4f6); color: var(--text); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }

/* ---------- отчёты ---------- */
.report-q { border-bottom: 1px solid var(--border); padding: 16px 0; }
.report-q:last-child { border-bottom: none; }
.report-q .q-title { font-weight: 600; margin-bottom: 10px; }
.bar-row { margin-bottom: 10px; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.bar-track { height: 10px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }

.answer-chip {
  display: inline-block;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 0 6px 6px 0;
  font-size: 14px;
}

/* ---------- таблицы ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #f8fafc; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* ---------- прочее ---------- */
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.empty .big { font-size: 34px; margin-bottom: 8px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.spinner {
  width: 26px; height: 26px; border: 3px solid #dbeafe; border-top-color: var(--primary);
  border-radius: 50%; margin: 30px auto; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  max-width: 90vw;
}

@media (min-width: 860px) {
  .container { padding: 24px; }
  .app-header .inner { flex-wrap: nowrap; }
}

/* ---------- брендинг ---------- */
.brand-logo { height: 34px; width: 34px; border-radius: 8px; object-fit: cover; background: #fff; }
.hero-logo { height: 84px; width: 84px; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow); }
.hero-photo {
  width: 100%; max-width: 520px; margin: 6px auto 18px; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; max-height: 240px;
}
.role-badge {
  background: rgba(255,255,255,.18); color: #fff; padding: 5px 11px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}

/* ---------- карточки опросов ---------- */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
.survey-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; text-decoration: none; color: var(--text);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
a.survey-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,24,40,.1); border-color: #c7d2fe; }
.survey-card .sc-title { font-size: 17px; font-weight: 700; }
.survey-card .sc-desc { color: var(--muted); font-size: 14px; flex: 1; }
.survey-card .sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.survey-card .sc-btn {
  background: var(--primary); color: #fff; border-radius: 10px; padding: 10px 16px;
  font-weight: 600; font-size: 14px; text-align: center;
}

/* ---------- статусы ---------- */
.badge.scheduled { background: #fef9c3; color: #a16207; }
.badge.closed { background: #f1f5f9; color: #64748b; }

/* ---------- прогресс-бар ---------- */
.progress-wrap { position: sticky; top: 0; z-index: 15; background: var(--bg); padding: 10px 0 8px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.progress-track { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .25s; }

/* ---------- полноэкранный режим опроса ---------- */
.kiosk { max-width: 680px; margin: 0 auto; min-height: 70vh; display: flex; flex-direction: column; }
.kiosk .question-card { font-size: 18px; padding: 24px; flex: 1; }
.kiosk .q-text { font-size: 20px; }
.kiosk .option { padding: 16px; font-size: 17px; border-radius: 12px; }
.kiosk-nav { display: flex; gap: 12px; margin-top: 16px; }
.kiosk-nav .btn { flex: 1; }

/* ---------- админка: сайдбар ---------- */
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); color: #fff; border: none; border-radius: 8px;
  min-width: 42px; min-height: 42px; font-size: 20px; cursor: pointer;
}
.admin-layout { display: flex; flex-direction: column; max-width: 1180px; margin: 0 auto; }
.sidebar {
  display: none; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; margin: 14px 0;
}
.sidebar.open { display: block; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a {
  color: var(--text); padding: 12px 14px; border-radius: 10px; font-weight: 500; font-size: 15px;
}
.sidebar nav a:hover { background: #f1f5f9; }
.sidebar nav a.active { background: var(--primary); color: #fff; }
.admin-main { flex: 1; padding: 0 16px 24px; min-width: 0; }
@media (min-width: 860px) {
  .menu-btn { display: none; }
  .admin-layout { flex-direction: row; gap: 20px; padding: 0 16px; }
  .sidebar { display: block; width: 230px; flex-shrink: 0; margin: 0; position: sticky; top: 76px; align-self: flex-start; }
  .admin-main { padding: 0; }
}

/* ---------- расписание ---------- */
.schedule-row { display: flex; gap: 12px; flex-wrap: wrap; }
.schedule-row .field { flex: 1; min-width: 200px; }
.history-list { margin-top: 8px; }
.history-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.history-item:last-child { border-bottom: none; }

/* ---------- диаграммы отчёта ---------- */
.chart-row { display: flex; justify-content: center; margin: 6px 0 14px; }
.donut { width: 140px; height: 140px; }
.donut-center { font-size: 22px; font-weight: 700; fill: var(--text); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
table td.total, tr.total td { font-weight: 600; background: #f8fafc; }

/* ---------- крупные экраны (десктоп) ---------- */
@media (min-width: 1024px) {
  html, body { font-size: 17px; }
  .small { font-size: 14px; }

  .container { max-width: 920px; padding: 36px 24px; }
  .container.wide { max-width: 1280px; }
  .admin-layout { max-width: 1320px; }

  h1 { font-size: 28px; }
  h2 { font-size: 23px; }
  h3 { font-size: 19px; }

  .card { padding: 24px; margin-bottom: 18px; }

  .btn { min-height: 52px; padding: 12px 24px; font-size: 16px; border-radius: 11px; }
  .btn.small { min-height: 42px; padding: 8px 16px; font-size: 15px; }

  input[type="text"], input[type="password"], input[type="number"], select, textarea {
    min-height: 52px; padding: 13px 14px; font-size: 17px; border-radius: 11px;
  }
  label { font-size: 15px; }

  .hero-compact { padding: 28px 0 14px; gap: 18px; }
  .hero-compact .hero-logo { height: 96px; width: 96px; border-radius: 20px; }
  .hero-compact h1 { font-size: 26px; }
  .hero-compact p { font-size: 17px; }
  .hero-photo { max-width: 640px; max-height: 220px; }

  .cards-grid { gap: 20px; }
  .admin-main .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .survey-card { padding: 26px; }
  .survey-card .sc-title { font-size: 20px; }
  .survey-card .sc-desc { font-size: 16px; }

  .app-header { padding: 16px 20px; }
  .app-header .brand { font-size: 21px; }
  .brand-logo { height: 42px; width: 42px; }
  .role-badge { font-size: 13px; padding: 6px 14px; }
  .sidebar nav a { font-size: 16px; padding: 14px 16px; }

  .question-card { padding: 22px; }
  .question-card .q-text { font-size: 19px; }
  .option { padding: 16px 18px; font-size: 17px; border-radius: 12px; }

  .kiosk { max-width: 840px; }
  .kiosk .q-text { font-size: 24px; }
  .kiosk .question-card { padding: 30px; }
  .kiosk .option { padding: 18px 20px; font-size: 18px; }
  .scale-btn { min-width: 64px; min-height: 64px; font-size: 24px; }

  .report-q .q-title { font-size: 19px; }
  .bar-label { font-size: 15px; }
  .bar-track { height: 12px; }
  .donut { width: 170px; height: 170px; }
  .donut-center { font-size: 26px; }
  .swatch { width: 14px; height: 14px; }

  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-num { font-size: 34px; }

  .editor-question { padding: 20px; }
  table { font-size: 15px; }
  th, td { padding: 12px 14px; }
}

/* ================================================================
   Новые компоненты (v1.1): иконки, вкладки, модалки, шкала,
   дашборд, QR, тёмная тема, печать
   ================================================================ */

/* ---------- SVG-иконки ---------- */
.ic { flex-shrink: 0; vertical-align: -3px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
}
.app-header nav a { display: inline-flex; align-items: center; gap: 6px; }
.file-btn { cursor: pointer; }

/* ---------- компактный герой главной ---------- */
.hero-compact {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0 12px;
}
.hero-compact .hero-logo { height: 64px; width: 64px; flex-shrink: 0; }
.hero-compact h1 { margin: 0 0 4px; }
.hero-compact p { margin: 0; }
.hero-photo { max-height: 150px; }

/* ---------- карточки опросов ---------- */
.survey-card .sc-meta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.survey-card.dim { opacity: .68; }
.survey-card.dim .sc-title { color: var(--muted); }
.badge.closing { background: #fee2e2; color: #b91c1c; }
.icon-row { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- вкладки ---------- */
.tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.tab {
  appearance: none; border: none; background: transparent;
  padding: 11px 16px; margin-bottom: -1px;
  font-size: 15px; font-weight: 600; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--text); background: var(--hover, #f1f5f9); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- модальные окна ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, .48);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.modal {
  background: var(--card); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  padding: 22px; max-width: 430px; width: 100%; max-height: 90vh; overflow-y: auto;
}
.modal h3 { margin: 0 0 6px; }

.share-link { display: flex; gap: 8px; margin-top: 14px; }
.share-link input { flex: 1; font-size: 13px; min-height: 42px; }
.qr-canvas {
  border: 1px solid var(--border); border-radius: 12px;
  max-width: 100%; height: auto;
}

/* ---------- шкала (оценка) ---------- */
.scale-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.scale-btn {
  flex: 1; min-width: 48px; min-height: 54px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); color: var(--text);
  font-size: 19px; font-weight: 700; cursor: pointer;
  transition: border-color .12s, background .12s, transform .12s;
}
.scale-btn:hover { border-color: var(--primary); }
.scale-btn.selected {
  background: var(--primary); border-color: var(--primary); color: #fff;
  transform: scale(1.04);
}
.scale-hint {
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 12px; margin-top: 8px;
}
.scale-avg { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 12px; }
.scale-avg-num { font-size: 30px; font-weight: 800; color: var(--primary); }

/* ---------- дашборд ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-bottom: 14px;
}
.stat-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px;
}
.stat-num { font-size: 28px; font-weight: 800; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }
.chart-svg { width: 100%; height: auto; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 8px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.report-overview { margin-top: 6px; }
.overview-label { font-size: 13px; color: var(--muted); margin-bottom: 2px; }

/* ---------- kiosk: липкая навигация и сноска ---------- */
.kiosk-nav {
  position: sticky; bottom: 0; z-index: 15;
  background: var(--bg); padding: 10px 0;
}
.req-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 8px; }
.preview-banner {
  background: #fef9c3; color: #854d0e; border: 1px solid #fde68a;
  border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600;
  margin-bottom: 10px; text-align: center;
}

/* ---------- редактор ---------- */
.editor-status { min-height: 20px; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.editor-question .q-tools { display: flex; gap: 6px; margin-bottom: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 8px; min-width: 42px; min-height: 42px;
  cursor: pointer; color: var(--muted);
}
.icon-btn.tiny { min-width: 30px; min-height: 30px; border-radius: 6px; }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- классы: инлайн-переименование ---------- */
.title.inline-edit { display: flex; align-items: center; gap: 6px; }
.title.inline-edit input { min-height: 36px; padding: 6px 10px; font-size: 14px; }

/* ---------- настройки: брендинг ---------- */
.branding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .branding-grid { grid-template-columns: 1fr; } }
.branding-item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.brand-logo.big { height: 96px; width: 96px; }
.brand-photo-preview {
  height: 96px; width: 100%; max-width: 160px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--border);
}

/* ---------- пагинация ---------- */
.pager { display: flex; align-items: center; gap: 12px; margin-top: 12px; }

/* ---------- тёмная тема (по системной настройке) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3b82f6;
    --primary-dark: #60a5fa;
    --bg: #0f172a;
    --card: #1e293b;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: #334155;
    --hover: #273449;
    --shadow: 0 1px 3px rgba(0, 0, 0, .5);
  }
  html { color-scheme: dark; }
  .btn.ghost:hover, .btn.soft { background: #1e3a8a; }
  .btn.soft { color: #bfdbfe; }
  .option.selected { background: #1e3a5f; }
  .error-banner { background: #450a0a; border-color: #7f1d1d; color: #fca5a5; }
  .success-banner { background: #052e16; border-color: #14532d; color: #86efac; }
  .badge.published { background: #052e16; color: #4ade80; }
  .badge.draft, .badge.closed { background: #1e293b; color: #94a3b8; }
  .badge.scheduled { background: #422006; color: #fbbf24; }
  .badge.closing { background: #450a0a; color: #f87171; }
  .answer-chip { background: #273449; }
  .bar-track { background: #273449; }
  th { background: #172033; }
  .toast { background: #f1f5f9; color: #0f172a; }
  .preview-banner { background: #422006; color: #fde68a; border-color: #713f12; }
  .sidebar { background: var(--card); }
  .kiosk-nav, .progress-wrap { background: var(--bg); }
}

/* ---------- печать отчёта ---------- */
@media print {
  .app-header, .sidebar, .btn, .btn-row, .tabs, .no-print,
  #classFilter, .pager, .editor-status { display: none !important; }
  body { background: #fff; font-size: 13px; }
  .container, .admin-main { max-width: 100%; padding: 0; }
  .admin-layout { display: block; }
  .card { box-shadow: none; border: none; padding: 0 0 12px; }
  .report-q { break-inside: avoid; }
  .table-wrap { overflow: visible; }
}
