/* Hotel Analytics: one stylesheet for every page.
   Colour tokens first, then layout, then components. Numbers use tabular
   figures and are right-aligned so columns of money line up (NFR-10). */

@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
/* Arabic letters come from IBM Plex Sans Arabic; the browser picks it per character (unicode-range). */
@font-face { font-family: "Plex"; src: url("../fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --ink: #14231f;
  --ink-soft: #4f5f5a;
  --canvas: #eceff0;
  --surface: #ffffff;
  --line: #d3dbd8;
  --line-strong: #aebcb7;
  --petrol: #0f5e4c;
  --petrol-dark: #0a4638;
  --petrol-tint: #e3eeea;
  --rail: #10302a;
  --rail-ink: #c9d8d3;
  --leak: #a3261d;
  --leak-tint: #fbe9e7;
  --minor: #7d5200;
  --minor-tint: #fbf0d6;
  --match: #1d6b3f;
  --match-tint: #e4f2e9;
  --gap: #5b6662;
  --gap-tint: #eceeed;
  --focus: #e0a100;
  --radius: 6px;
  --font: "Plex", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 var(--font); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 12px; }
a { color: var(--petrol); }
small, .muted { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }
.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- app layout */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; padding: 22px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; padding: 0 8px 22px; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; background: #e9f1ee; color: var(--rail); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.rail > .nav { min-height: 0; flex: 1; overflow-y: auto; margin-bottom: 12px; }
.rail > .brand, .rail-foot { flex-shrink: 0; }
.nav a { color: var(--rail-ink); text-decoration: none; padding: 9px 10px; border-radius: var(--radius); font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: var(--rail); }
.nav-group { font-size: 12px; color: #8fa8a0; padding: 18px 10px 6px; }
.rail-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 16px 10px 0; font-size: 13px; }
.rail-foot strong { display: block; color: #fff; font-weight: 500; }
.rail-foot .role { color: #8fa8a0; }
.rail-foot nav { display: flex; gap: 14px; margin-top: 10px; }
.rail-foot a, .rail-foot button { color: var(--rail-ink); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.topbar { display: none; }
.main { padding: 26px clamp(16px, 3vw, 40px) 48px; max-width: 1360px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head p { margin: 6px 0 0; color: var(--ink-soft); }

/* ---------------------------------------------------------------- filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; min-width: 140px; flex: 1 1 140px; }
.filters .wide { flex: 2 1 220px; }
.filters .actions { flex: 0 0 auto; }
input, select, textarea { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px 10px; min-height: 40px; width: 100%; }
input[type="checkbox"] { width: auto; min-height: 0; }
input:disabled, select:disabled { background: var(--gap-tint); color: var(--ink-soft); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--petrol); background: var(--petrol); color: #fff; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.button:hover { background: var(--petrol-dark); border-color: var(--petrol-dark); }
.button.secondary { background: #fff; color: var(--petrol); }
.button.secondary:hover { background: var(--petrol-tint); }
.button.quiet { background: none; border-color: transparent; color: var(--petrol); padding-inline: 8px; text-decoration: underline; text-underline-offset: 3px; }
.button[disabled] { opacity: .55; cursor: progress; }

/* ---------------------------------------------------------------- business date + status */
.daybar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.stamp { padding: 14px 22px; border-inline-end: 1px solid var(--line); background: var(--petrol-tint); min-width: 210px; }
.stamp .label { font-size: 13px; color: var(--ink-soft); }
.stamp .date { font-size: 30px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--petrol-dark); }
.stamp .range { font-size: 13px; color: var(--ink-soft); }
.status { padding: 14px 22px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.status strong { font-weight: 600; }
.status.ok strong::before { content: "✓ "; color: var(--match); }
.status.warn strong::before { content: "! "; color: var(--minor); font-weight: 700; }

/* ---------------------------------------------------------------- KPI strip */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { padding: 18px 20px 16px; border-inline-start: 1px solid var(--line); min-width: 0; }
.kpi:first-child { border-inline-start: 0; }
.kpi .name { font-size: 14px; font-weight: 500; }
.kpi .hint { font-size: 12px; color: var(--ink-soft); min-height: 36px; }
.kpi .value { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin: 10px 0 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .value.na { font-size: 18px; color: var(--ink-soft); font-weight: 500; }
.kpi dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 10px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 10px; }
.kpi dt { color: var(--ink-soft); white-space: nowrap; }
.kpi dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.kpi.flag { box-shadow: inset 0 3px 0 var(--leak); }

.delta { font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta.up::before { content: "▲ "; font-size: .8em; color: var(--match); }
.delta.down::before { content: "▼ "; font-size: .8em; color: var(--leak); }
.delta .pct { color: var(--ink-soft); margin-inline-start: 6px; }
.na-text { color: var(--ink-soft); }

/* ---------------------------------------------------------------- panels and tables */
.grid-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.grid-2 > * { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head small { font-size: 13px; }
.table-wrap { position: relative; overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
thead th { font-size: 13px; font-weight: 500; color: var(--ink-soft); border-bottom-color: var(--line-strong); white-space: nowrap; }
tbody th { font-weight: 500; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.footnote { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.summary div { padding: 10px 14px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.summary span { display: block; font-size: 12px; color: var(--ink-soft); }
.summary b { font-weight: 600; font-variant-numeric: tabular-nums; }

.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 20px; white-space: nowrap; border: 1px solid transparent; }
.badge.leakage { background: var(--leak-tint); color: var(--leak); border-color: #efc2bd; }
.badge.minor { background: var(--minor-tint); color: var(--minor); border-color: #ecd59e; }
.badge.matched, .badge.loaded, .badge.active { background: var(--match-tint); color: var(--match); }
.badge.incomplete, .badge.missing, .badge.disabled { background: var(--gap-tint); color: var(--gap); border-color: var(--line); }
.badge.review, .badge.invited, .badge.locked { background: var(--minor-tint); color: var(--minor); }
.badge.sent { background: var(--match-tint); color: var(--match); }
.badge.failed { background: var(--leak-tint); color: var(--leak); }
.badge.skipped { background: var(--gap-tint); color: var(--gap); }

.sources { display: grid; gap: 10px; }
.source { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.source:last-child { border-bottom: 0; }
.source small { grid-column: 1 / -1; overflow-wrap: anywhere; }

details summary { cursor: pointer; font-weight: 500; }
details[open] summary { margin-bottom: 10px; }
.notes { margin: 0; padding-inline-start: 18px; font-size: 14px; }
.notes li { margin: 3px 0; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.mono.filename { min-width: 18ch; }

/* ---------------------------------------------------------------- editing tables */
.filters.inline { border: 0; padding: 0; background: none; margin-bottom: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
tr.edited { background: var(--minor-tint); }
td select { min-width: 220px; }
optgroup { font-weight: 600; }

/* ---------------------------------------------------------------- onboarding checklist */
.checklist { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.checklist .step { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.checklist .step:last-child { border-bottom: 0; }
.checklist .step::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--gap-tint); color: var(--ink-soft); }
.checklist .step.done::before { content: "✓"; background: var(--match-tint); color: var(--match); }
.checklist .step.todo::before { background: var(--leak-tint); color: var(--leak); }
.checklist .step p { margin: 2px 0 0; font-size: 14px; }
.step-side { display: flex; gap: 12px; align-items: center; }

/* ---------------------------------------------------------------- step tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--ink-soft); font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--petrol-dark); border-bottom-color: var(--petrol); }

/* ---------------------------------------------------------------- messages */
.alert { padding: 11px 14px; border-radius: var(--radius); border: 1px solid; margin-bottom: 14px; font-size: 14px; }
.alert.error { background: var(--leak-tint); color: #7c1b14; border-color: #efc2bd; }
.alert.info { background: var(--petrol-tint); color: var(--petrol-dark); border-color: #b9d3ca; }
.alert.warn { background: var(--minor-tint); color: #5f3e00; border-color: #ecd59e; }
.empty { padding: 26px; text-align: center; color: var(--ink-soft); }
.loading { color: var(--ink-soft); padding: 30px 0; }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 500; }
.field small { font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 0; }
legend { font-size: 14px; font-weight: 500; padding: 0 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
label.checks { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; font-weight: 500; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

dialog { border: 1px solid var(--line-strong); border-radius: 8px; padding: 0; width: min(620px, calc(100vw - 32px)); color: var(--ink); }
dialog::backdrop { background: rgba(16, 48, 42, .45); }
dialog form { padding: 20px 22px; }
dialog h2 { margin-bottom: 14px; }

/* ---------------------------------------------------------------- sign-in pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); }
.auth-side { background: var(--rail); color: var(--rail-ink); padding: 48px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .brand { padding: 0; }
.auth-side blockquote { margin: 0; max-width: 34ch; font-size: 22px; line-height: 1.4; color: #fff; font-weight: 500; }
.auth-side .ledger { border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; font-size: 13px; display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 28px; font-variant-numeric: tabular-nums; }
.auth-side .ledger span:nth-child(2n) { color: #fff; text-align: end; }
.auth-main { background: var(--surface); display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 4vw, 48px); }
.auth-main h1 { margin-bottom: 6px; }
.auth-main form { display: grid; gap: 14px; margin-top: 22px; }
.auth-main .button { width: 100%; }
.auth-links { margin-top: 18px; font-size: 14px; }

/* ---------------------------------------------------------------- phone and tablet */
@media (max-width: 1240px) {
  .kpis, .kpis.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .kpi { grid-column: span 2; }
  .kpi:nth-child(4), .kpi:nth-child(5) { grid-column: span 3; border-top: 1px solid var(--line); }
  .kpi:nth-child(4) { border-inline-start: 0; }
}
@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(280px, 85vw); z-index: 20; transform: translateX(-100%); transition: transform .2s ease; }
  html[dir="rtl"] .rail { transform: translateX(100%); }
  html[dir="rtl"] .app.nav-open .rail { transform: none; }
  .app.nav-open .rail { transform: none; box-shadow: 0 0 0 100vmax rgba(16, 48, 42, .45); }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--rail); padding: 10px 16px; position: sticky; top: 0; z-index: 10; }
  .topbar .brand { padding: 0; font-size: 15px; }
  .topbar button { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: var(--radius); padding: 6px 12px; font: inherit; }
  .main { padding: 18px 16px 40px; }
  h1 { font-size: 22px; }
  .daybar { grid-template-columns: minmax(0, 1fr); }
  .stamp { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { padding: 22px 20px; gap: 18px; }
  .auth-side blockquote { font-size: 17px; }
  .auth-side .ledger { display: none; }
}
@media (max-width: 640px) {
  .kpis, .kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi, .kpi:nth-child(4) { grid-column: span 1; border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); }
  .kpi:nth-child(odd) { border-inline-start: 0; }
  .kpi:first-child, .kpi:nth-child(2) { border-top: 0; }
  .kpi:nth-child(5) { grid-column: 1 / -1; border-inline-start: 0; }
}
@media (max-width: 480px) {
  .kpis, .kpis.five { grid-template-columns: minmax(0, 1fr); }
  .kpi, .kpi:nth-child(n) { grid-column: 1; border-inline-start: 0; border-top: 1px solid var(--line); padding: 14px 16px; }
  .kpi:first-child { border-top: 0; }
  .kpi .hint { min-height: 0; }
  .filters { gap: 10px; }
  .filters label { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .filters label.wide { flex-basis: 100%; }
  .filters .actions { flex-basis: 100%; }
  .filters .actions .button { width: 100%; }
  .kpi .value { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
/* Export controls stay within the content column on desktop and phone. */
.workspace { min-width: 0; }
summary, .checks label, .panel code { overflow-wrap: anywhere; }
.export-actions { display: flex; gap: .75rem; padding: 1rem 2rem 0; flex-wrap: wrap; }
.admin-nav { margin-top: 1rem; min-width: 0; }
.admin-nav > a { display: block; margin-block: 2px; overflow-wrap: anywhere; }
.admin-nav > summary { padding: .65rem; cursor: pointer; color: inherit; }
.info-panel > summary { cursor: pointer; }
.info-panel > summary .panel-head, .info-panel > summary h2 { display: inline; }
.info-panel[open] > summary { margin-bottom: 1rem; }
@media (max-width: 800px) { .export-actions { padding: 1rem; } }

/* Arabic (right to left). Layout uses logical properties (start/end), so it mirrors by itself.
   Codes, file names, amounts and emails stay left to right inside Arabic text. */
.language-switch { align-self: flex-end; margin-bottom: 8px; }
html[dir="rtl"] .mono, html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="password"],
html[dir="rtl"] input[type="date"], html[dir="rtl"] textarea.mono, html[dir="rtl"] .num { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] td.num, html[dir="rtl"] th.num { text-align: left; }
html[dir="rtl"] .delta { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.group-row th, .group-row td { font-weight: 600; background: var(--surface-2, rgba(127, 127, 127, 0.08)); }
/* Shared report presentation controls. Source values remain available as tables. */
.chart-controls { display:flex; flex-wrap:wrap; gap:16px; margin:16px 0; }
.chart-controls select { margin-inline-start:8px; padding:7px; max-width:240px; }
.chart-filter { display:flex; align-items:center; gap:6px; margin-inline-start:16px; }
.analytics-plot { margin:12px 0 24px; min-width:0; }
.analytics-plot svg { display:block; width:100%; height:auto; max-height:300px; margin:auto; overflow:hidden; }
.analytics-plot svg.circular-chart { max-width:300px; aspect-ratio:1; }
.chart-legend { display:grid; gap:10px; max-height:440px; overflow:auto; }
.chart-item { padding:8px; border-bottom:1px solid #dce4eb; }
.chart-item strong { float:inline-end; margin-inline-start:12px; }
.chart-bar { min-height:10px; border-radius:3px; margin-top:7px; }
.chart-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; }
.chart-cards .chart-item { padding:18px; background:#edf5fa; border-radius:8px; }
[hidden] { display:none !important; }

/* Chart → record selection: a picked chart item highlights its table row and drill-downs. */
.chart-pick { cursor: pointer; }
.chart-item.chart-pick:hover, .chart-item.chart-pick:focus-visible { background: #edf5fa; }
.analytics-plot .is-dimmed { opacity: .35; }
.chart-item.is-selected { background: #fff4cc; box-shadow: 0 0 0 2px var(--focus) inset; }
.chart-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0; padding: 8px 12px; background: #fff8e1; border-radius: 6px; }
tr.record-focus > th, tr.record-focus > td { background: #fff4cc; }
tr.record-focus > :first-child { border-inline-start: 4px solid var(--focus); }
tr.record-focus-group > th, tr.record-focus-group > td { background: #fffaeb; }
summary.record-focus { background: #fff4cc; border-inline-start: 4px solid var(--focus); padding-inline-start: 6px; }
tr.record-focus { animation: record-pulse 1.2s ease-out 1; }
@keyframes record-pulse { from { outline: 3px solid var(--focus); } to { outline: 3px solid transparent; } }
@media (prefers-reduced-motion: reduce) { tr.record-focus { animation: none; } }
