/* КинезАналитик — панель специалиста. Светлая тема. */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f6;
  --border: #e3e8ef;
  --border-strong: #cfd7e2;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #8a97a9;
  --primary: #0b8f6a;
  --primary-600: #087a5a;
  --primary-50: #e8f6f1;
  --primary-100: #cdeee2;
  --violet: #6d4fd8;
  --violet-50: #f0ecfd;
  --amber: #b45f06;
  --amber-50: #fff4e0;
  --danger: #d23c4f;
  --danger-50: #fdecee;
  --ok: #16834f;
  --ok-50: #e8f6ee;
  --info: #2f6fdb;
  --info-50: #eaf1fd;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.18);
  --sidebar: 236px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: 12px; }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grow { flex: 1; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ── Каркас ── */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; font-weight: 750; font-size: 16px; color: var(--text); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), #19b38a); display: grid; place-items: center; color: #fff; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--text-3); letter-spacing: 0.02em; }
.nav { padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; position: relative; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--primary-50); color: var(--primary-600); }
.nav a.active::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .count { margin-left: auto; font-size: 11px; background: var(--surface-3); color: var(--text-2); border-radius: 999px; padding: 1px 7px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--border); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-50); color: var(--primary-600); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.user-name { font-weight: 600; font-size: 13px; line-height: 1.2; }
.user-role { font-size: 11px; color: var(--text-3); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 20; }
.menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; min-width: 0; }
.crumbs a { color: var(--text-2); }
.crumbs b { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-global { margin-left: auto; position: relative; width: 300px; }
.search-global input { width: 100%; padding: 8px 12px 8px 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.search-global svg { position: absolute; left: 10px; top: 9px; width: 16px; height: 16px; color: var(--text-3); }
.search-results { position: absolute; top: 42px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.search-results a { display: block; padding: 9px 12px; color: var(--text); border-bottom: 1px solid var(--border); }
.search-results a:hover, .search-results a.sel { background: var(--surface-2); text-decoration: none; }
.content { padding: 24px; max-width: 1400px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--text-2); margin-top: 2px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); margin: 16px 24px 0; flex-wrap: wrap; }
.banner.danger { background: var(--danger-50); border: 1px solid #f4c3ca; color: #8a1f2d; }
.banner.warn { background: var(--amber-50); border: 1px solid #f3d7a6; color: #7a4204; }
.banner.info { background: var(--info-50); border: 1px solid #c8daf8; color: #1d4a99; }
.banner .btn { margin-left: auto; }

/* ── Кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 550; line-height: 1.2; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s; text-decoration: none !important; }
.btn:hover { background: var(--surface-2); border-color: #b9c4d3; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-600); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.danger { color: var(--danger); border-color: #f0c2c9; }
.btn.danger:hover { background: var(--danger-50); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.icon { padding: 7px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 8px 8px 0; }
.btn-group .btn.on { background: var(--primary-50); color: var(--primary-600); border-color: var(--primary-100); z-index: 1; }

/* ── Карточки и сетки ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin-right: auto; }
.card-head .hint { color: var(--text-3); font-size: 12px; }
.card-body { padding: 16px 18px; }
.card-body.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 1fr) 360px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.stat { padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-value { font-size: 24px; font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; }
.stat-label { color: var(--text-2); font-size: 13px; }
.tone-primary { background: var(--primary-50); color: var(--primary); }
.tone-violet { background: var(--violet-50); color: var(--violet); }
.tone-amber { background: var(--amber-50); color: var(--amber); }
.tone-info { background: var(--info-50); color: var(--info); }

/* ── Таблицы ── */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--text-2); background: var(--surface-2); padding: 9px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #fafcfd; }
.table tr.click { cursor: pointer; }
.table tr.selected td { background: var(--primary-50); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td.actions { text-align: right; white-space: nowrap; }
.table .title { font-weight: 600; }
.table .sub { color: var(--text-3); font-size: 12px; }

/* ── Бейджи ── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; line-height: 1.5; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-50); color: var(--ok); }
.badge.warn { background: var(--amber-50); color: var(--amber); }
.badge.bad { background: var(--danger-50); color: var(--danger); }
.badge.info { background: var(--info-50); color: var(--info); }
.badge.violet { background: var(--violet-50); color: var(--violet); }
.delta { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta.better { color: var(--ok); }
.delta.worse { color: var(--danger); }
.delta.same { color: var(--text-3); }

/* ── Формы ── */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > span, .field > label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.input, .field input, .field select, .field textarea { width: 100%; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.field .help { font-size: 12px; color: var(--text-3); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; margin-bottom: 10px; }
.check input { margin-top: 3px; accent-color: var(--primary); }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .15s; cursor: pointer; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: left .15s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { left: 16px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input { width: auto; min-width: 160px; }

/* ── Вкладки ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--text-2); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--primary-600); border-bottom-color: var(--primary); }

/* ── Списки «ключ — значение» ── */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--text-2); }
.kv dd { font-weight: 550; text-align: right; }

/* ── Пустые и загрузка ── */
.empty { text-align: center; padding: 36px 20px; color: var(--text-2); }
.empty svg { width: 36px; height: 36px; color: var(--text-3); margin-bottom: 8px; }
.empty b { display: block; color: var(--text); margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, #f6f8fb 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; min-height: 16px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.spinner { width: 18px; height: 18px; border: 2px solid var(--primary-100); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--primary); border-radius: 999px; transition: width .2s; }

/* ── Модальные окна и уведомления ── */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.42); display: grid; place-items: center; padding: 20px; z-index: 100; animation: fade .12s; }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .14s; }
.modal.wide { width: min(900px, 100%); }
.modal-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin-right: auto; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.99); } }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--text); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); max-width: 380px; font-size: 13.5px; animation: pop .15s; }
.toast.error { background: var(--danger); }
.toast.ok { background: var(--ok); }

/* ── Вход ── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 500px at 50% -10%, var(--primary-50), transparent), var(--bg); }
.login-card { width: min(380px, 100%); padding: 28px; }
.login-card .brand { padding: 0 0 18px; font-size: 18px; }
.form-error { color: var(--danger); font-size: 13px; margin: -4px 0 10px; }

/* ── Разбор сеанса ── */
.review-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.player-wrap { background: #0f172a; border-radius: var(--radius); overflow: hidden; display: flex; justify-content: center; }
.player { position: relative; width: 100%; max-height: 62vh; }
.player canvas, .player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.player canvas { pointer-events: none; }
.player-bar { display: flex; align-items: center; gap: 10px; padding: 10px 0 0; flex-wrap: wrap; }
.player-bar input[type=range] { flex: 1 1 120px; min-width: 120px; accent-color: var(--primary); }
.player-time { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 12px; min-width: 92px; text-align: right; }
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.frame-tile { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #0f172a; cursor: pointer; position: relative; transition: box-shadow .12s, border-color .12s; }
.frame-tile:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.frame-tile.sel { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.frame-tile canvas { display: block; width: 100%; height: auto; }
.frame-tile span { position: absolute; left: 6px; bottom: 6px; background: rgba(255, 255, 255, .92); color: var(--text); font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.frame-tile.invalid span { color: var(--danger); }
.chart-box { position: relative; height: 220px; }
.chart-box.sm { height: 130px; }
.chart-box.xs { height: 84px; }
.metric-name { font-weight: 600; }
.metric-desc { color: var(--text-3); font-size: 12px; max-width: 420px; }
.ref-status { font-size: 11px; color: var(--text-3); }
.note-box { white-space: pre-wrap; }
.versions { font-size: 12px; color: var(--text-3); }

/* ── Карточка клиента ── */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head .avatar { width: 52px; height: 52px; font-size: 18px; }
.test-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.test-tile { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.test-tile header { display: flex; align-items: baseline; gap: 8px; }
.test-tile header h3 { margin-right: auto; }
.mini-metrics { display: flex; flex-direction: column; gap: 6px; }
.mini-metrics div { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.mini-metrics .lbl { color: var(--text-2); margin-right: auto; }
.mini-metrics b { font-variant-numeric: tabular-nums; }

/* ── Аналитика по тесту ── */
.dist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }

/* ── Мобильная версия ── */
@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid, .grid.side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .app.nav-open .sidebar { transform: none; }
  .menu-btn { display: inline-flex; }
  .search-global { width: auto; flex: 1; max-width: 260px; }
  .content { padding: 16px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .report-body { grid-template-columns: minmax(0, 1fr); }
  .report-body img { max-width: 260px; }
  .report-body > div, .report-test > div { overflow-x: auto; }
  .report-page { padding: 16px; }
  .banner { margin: 12px 16px 0; }
}
@media (max-width: 520px) {
  .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .crumbs { display: none; }
}

/* ── Неподвижный кадр (сравнение) ── */
.still { background: #1e293b; border-radius: var(--radius); overflow: hidden; display: flex; justify-content: center; }
.still img { display: block; max-width: 100%; max-height: 380px; }

/* ── Выбор файла ── */
input[type=file] { padding: 6px; }
input[type=file]::file-selector-button { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); border-radius: 8px; padding: 6px 12px; margin-right: 10px; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--primary); color: var(--primary); }

/* ── Тесты ── */
.section-title { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin: 4px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.test-card h3 { font-size: 15px; }
.test-card h3 a { color: inherit; }
.test-card h3 a:hover { color: var(--primary); }

/* ── Выбор сеансов, формы ── */
.pick-group { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.pick-group:last-child { border-bottom: 0; }
.pick-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.pick { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13.5px; cursor: pointer; }
.pick input { accent-color: var(--primary); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.page-head .actions .check { align-items: center; margin: 0; }
.verdict-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.verdict-bar > span { display: block; height: 100%; }

/* ── Отчёт для клиента (экран и печать A4) ── */
.report-page { background: #fff; max-width: 210mm; margin: 0 auto; padding: 16mm 15mm; box-shadow: var(--shadow); border-radius: 4px; color: #111827; font-size: 12.5px; }
.report-page h1 { font-size: 20px; }
.report-page h2 { font-size: 14px; margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--primary-100); }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 6px; }
.report-brand { font-weight: 800; font-size: 15px; color: var(--primary); }
.report-meta { font-size: 12px; color: var(--text-2); text-align: right; }
.report-test { break-inside: avoid; margin-bottom: 14px; }
.report-test .rt-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.report-test .rt-head h3 { margin-right: auto; font-size: 13.5px; }
.report-body { display: grid; grid-template-columns: 190px 1fr; gap: 12px; align-items: start; }
.report-body img { width: 100%; border-radius: 6px; border: 1px solid var(--border); background: #f1f5f9; }
.report-page table { width: 100%; border-collapse: collapse; font-size: 12px; }
.report-page th { text-align: left; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--border-strong); padding: 4px 6px; }
.report-page td { border-bottom: 1px solid var(--border); padding: 4px 6px; vertical-align: top; }
.report-text { white-space: pre-wrap; line-height: 1.55; }
.report-foot { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 10.5px; color: var(--text-2); }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .sidebar, .topbar, .banner, .no-print, .toasts { display: none !important; }
  .app { display: block; }
  .content { padding: 0; max-width: none; }
  .report-page { box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  .badge { border: 1px solid currentColor; }
}
