/* PT-1271 (W3, docs/ui-review-2026-11.md section 4): core components, one class each, variants as modifier classes,
   tokens only. State pseudo-classes sit inside :where() so a state never outranks a page rule of the same component.
   Button: <button> / .btn + .secondary | .ghost | .danger, .compact | .large, .icon-button, .is-loading / aria-busy.
   Field: .field > label + control + .field-hint | .field-error; select, checkbox, radio, .switch, date, file styled.
   Card: .card + .flat | .inset. StatusPill: .status-pill + .info | .good | .warn | .bad (shape + colour).
   Tabs: .tabs > .tab (.active / aria-selected). Segmented: .segmented > .segmented-option (.is-selected / aria-pressed).
   KPI: .kpi-grid > .kpi > .kpi-label + .kpi-value (.kpi-unit) + .kpi-delta. Banner: .banner + status modifier.
   EmptyState: .empty-state > .empty-state-title + p + .button-row. Status text: .status-text + .err | .good. */

:is(.status-pill, .banner, .status-line) { --st-fg: var(--text-2); --st-bg: var(--surface-1); --st-border: var(--border-2); }
:is(.status-pill, .banner, .status-line):is(.info, .cost) { --st-fg: var(--status-info-fg); --st-bg: var(--status-info-bg); --st-border: var(--status-info-border);
  --st-shape: circle(50%); }
:is(.status-pill, .banner, .status-line).good { --st-fg: var(--status-good-fg); --st-bg: var(--status-good-bg); --st-border: var(--status-good-border);
  --st-shape: polygon(12% 50%, 0 64%, 38% 100%, 100% 26%, 86% 12%, 38% 72%); }
:is(.status-pill, .banner, .status-line).warn { --st-fg: var(--status-warn-fg); --st-bg: var(--status-warn-bg); --st-border: var(--status-warn-border);
  --st-shape: polygon(50% 0, 100% 100%, 0 100%); }
:is(.status-pill, .banner, .status-line).bad { --st-fg: var(--status-bad-fg); --st-bg: var(--status-bad-bg); --st-border: var(--status-bad-border);
  --st-shape: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }
:is(.status-pill, .banner):is(.info, .cost, .good, .warn, .bad)::before { content: ""; flex: none; width: 0.625rem; height: 0.625rem;
  background: currentColor; clip-path: var(--st-shape); }

/* Keyboard focus: one ring for the building portal and the portfolio (PT-1485). */
:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }

/* Button */
button, .btn, .file-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); box-sizing: border-box;
  min-height: var(--button-height); padding: 0 var(--space-4); border: 1px solid transparent; border-radius: var(--button-radius);
  background: var(--accent); color: var(--on-accent); font: inherit; font-size: var(--font-size-base); font-weight: var(--font-weight-medium);
  line-height: 1.2; text-decoration: none; cursor: pointer; position: relative;
  transition: background-color var(--duration-state) var(--ease-standard), border-color var(--duration-state) var(--ease-standard),
    color var(--duration-state) var(--ease-standard), box-shadow var(--duration-state) var(--ease-standard);
}
button:where(:hover:not(:disabled)), .btn:where(:hover:not(:disabled)), .file-btn:where(:hover:not(:disabled)) { background: color-mix(in srgb, var(--accent) 88%, var(--text-1)); }
button:where(:active:not(:disabled)), .btn:where(:active:not(:disabled)), .file-btn:where(:active:not(:disabled)) { background: color-mix(in srgb, var(--accent) 78%, var(--text-1)); }
button:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.secondary { background: var(--surface-1); color: var(--accent); border: 1px solid var(--border-2); }
.secondary:where(:hover:not(:disabled)) { background: var(--accent-soft); border-color: var(--accent); }
.secondary:where(:active:not(:disabled)) { background: color-mix(in srgb, var(--accent) 20%, var(--surface-1)); }
.ghost, .text-button, .icon-button { background: transparent; color: var(--accent); border-color: transparent; }
.ghost:where(:hover:not(:disabled)), .text-button:where(:hover:not(:disabled)), .icon-button:where(:hover:not(:disabled)) { background: var(--accent-soft); }
.ghost:where(:active:not(:disabled)), .text-button:where(:active:not(:disabled)), .icon-button:where(:active:not(:disabled)) { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.danger { background: var(--status-bad-fg); color: var(--on-accent); }
.danger:where(:hover:not(:disabled)) { background: color-mix(in srgb, var(--status-bad-fg) 85%, var(--text-1)); }
.secondary.danger { background: var(--surface-1); color: var(--status-bad-fg); border-color: var(--status-bad-border); }
.secondary.danger:where(:hover:not(:disabled)) { background: var(--status-bad-bg); }
.compact, .text-button { min-height: 1.75rem; padding: 0 var(--space-2); font-size: var(--font-size-sm); }
.large { min-height: 2.75rem; padding: 0 var(--space-6); font-size: var(--font-size-md); }
.icon-button { min-width: var(--button-height); padding: 0; color: var(--text-2); }
button.is-loading, button[aria-busy="true"], .btn.is-loading { color: transparent; pointer-events: none; }
:is(button.is-loading, button[aria-busy="true"], .btn.is-loading)::after { content: ""; position: absolute; inset: 0; margin: auto;
  width: 1em; height: 1em; border-radius: 50%; border: 2px solid var(--on-accent); border-right-color: transparent;
  animation: btn-spin 0.7s linear infinite; }
:is(.secondary, .ghost, .text-button, .icon-button):is(.is-loading, [aria-busy="true"])::after { border-color: var(--accent); border-right-color: transparent; }
@keyframes btn-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { :is(button, .btn)::after { animation-duration: 2.4s; } }
.action-link { display: inline-flex; align-items: center; min-height: var(--button-height); padding: 0 var(--space-4); border-radius: var(--button-radius);
  color: var(--accent); text-decoration: none; font-weight: var(--font-weight-medium); box-sizing: border-box; }
.action-link.secondary { border: 1px solid var(--border-2); }
@media (pointer: coarse) { .compact, .text-button, .action-link { min-height: var(--target-min); } }
/* PT-1295 (CR-0231 N10): disclosure rows, labelled checkboxes and stand-alone list / card links on touch. */
@media (pointer: coarse) {
  :where(summary) { padding-block: calc((var(--target-min) - 1.5em) / 2); }
  :where(label:has(> input[type="checkbox"], > input[type="radio"])) { min-height: var(--target-min); }
  :where(.vb-title, .vb-meta a, .vb-list li > a, .app-waiting-list a, .app-waiting-foot a, .unit-docs-card :is(li, p) > a) {
    display: inline-block; padding-block: var(--space-2); }
}

/* Field family */
label { display: block; font-size: var(--font-size-sm); color: var(--text-2); margin: var(--space-3) 0 var(--space-1); }
.field { display: grid; gap: var(--space-1); margin: var(--space-3) 0; }
.field > label, .field-label { margin: 0; font-weight: var(--font-weight-medium); }
.field-hint { font-size: var(--font-size-xs); color: var(--text-3); }
.field-error { font-size: var(--font-size-xs); color: var(--status-bad-fg); font-weight: var(--font-weight-medium); }
input, select, textarea {
  font-family: inherit; font-size: var(--font-size-base); line-height: 1.4; box-sizing: border-box;
  min-height: var(--target-min); padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-control); border-radius: var(--field-radius); background: var(--surface-1); color: var(--text-1);
  transition: border-color var(--duration-state) var(--ease-standard), box-shadow var(--duration-state) var(--ease-standard);
}
textarea { max-width: 100%; min-height: 4.5rem; }
input:not([size]), select:not([size]) { width: 100%; }
:is(input, select, textarea):where(:hover:not(:disabled, :focus)) { border-color: var(--text-3); }
:is(input, select, textarea):where(:focus) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 0; }
:is(input, select, textarea):where(:focus-visible) { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 0; }
:is(input, select, textarea):where(:disabled) { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; }
:is(input, select, textarea):where([aria-invalid="true"], .field.invalid *) { border-color: var(--status-bad-fg); }
::placeholder { color: var(--text-3); opacity: 1; }
select:not([multiple], [size]) { appearance: none; padding-right: var(--space-8); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 52%, calc(100% - 0.75rem) 52%; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; }
input[type="date"], input[type="datetime-local"], input[type="month"], input[type="time"] { font-variant-numeric: tabular-nums; }
::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.65; }
input[type="file"] { padding: var(--space-1); color: var(--text-2); cursor: pointer; }
::file-selector-button { font: inherit; font-weight: var(--font-weight-medium); margin-right: var(--space-3); padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border-2); border-radius: var(--radius-control); background: var(--surface-2); color: var(--accent); cursor: pointer; }
input[type="checkbox"]:not([size]), input[type="radio"]:not([size]) {
  appearance: none; width: 1.125rem; height: 1.125rem; min-height: 0; padding: 0; margin: 0; flex: none; cursor: pointer;
  border: 1.5px solid var(--border-control); border-radius: 4px; background: var(--surface-1) center / 100% no-repeat; vertical-align: middle; }
input[type="radio"]:not([size]) { border-radius: 50%; }
input:is([type="checkbox"], [type="radio"]):not([size]):where(:hover:not(:disabled)) { border-color: var(--accent); }
input:is([type="checkbox"], [type="radio"]):not([size]):where(:focus) { box-shadow: none; }
input:is([type="checkbox"], [type="radio"]):not([size]):where(:disabled) { opacity: 0.5; cursor: not-allowed; }
input[type="checkbox"]:not([size]):checked { background-color: var(--accent); border-color: var(--accent);
  background-image: var(--when-light, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"))
    var(--when-dark, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")); }
input[type="checkbox"]:not([size]):indeterminate { background: linear-gradient(var(--on-accent), var(--on-accent)) center / 55% 2px no-repeat var(--accent); border-color: var(--accent); }
input[type="radio"]:not([size]):checked { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 38%, var(--surface-1) 42%); }
input[type="checkbox"].switch:not([size]) { width: 2.25rem; height: 1.25rem; border-radius: var(--radius-pill); border-color: var(--border-2);
  background: radial-gradient(circle at 0.55rem 50%, var(--text-3) 0 0.38rem, transparent 0.42rem) var(--surface-2);
  transition: background-color var(--duration-state) var(--ease-standard); }
input[type="checkbox"].switch:not([size]):checked { border-color: var(--accent);
  background: radial-gradient(circle at calc(100% - 0.55rem) 50%, var(--on-accent) 0 0.38rem, transparent 0.42rem) var(--accent); }
@media (pointer: coarse) { input, select, textarea { font-size: var(--field-font-size); } }
/* PT-1435: forced colors drop the painted tick, so checkbox / radio / switch fall back to the native control. */
@media (forced-colors: active) {
  input:is([type="checkbox"], [type="radio"]):not([size]) { appearance: auto; }
  input[type="checkbox"]:not([size]):checked { background-image: none; }
}

/* Card */
.card { background: var(--card-bg); border: 1px solid var(--border-1); border-radius: var(--card-radius); box-shadow: var(--card-shadow);
  padding: var(--space-4) var(--space-5); margin-bottom: var(--space-4); }
.card.flat { box-shadow: none; }
.card.inset { background: var(--surface-2); border-color: transparent; box-shadow: none; }
@media (max-width: 480px) { .card { padding: var(--space-4); } }

/* StatusPill */
.status-pill { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-050) var(--space-2); white-space: nowrap;
  border: 1px solid var(--st-border); border-radius: var(--pill-radius); background: var(--st-bg); color: var(--st-fg);
  font-size: var(--font-size-xs); font-weight: var(--font-weight-medium); line-height: 1.4; font-variant-numeric: tabular-nums; }
.status-pill.ended { color: var(--text-3); background: transparent; border-style: dashed; }
.status-pill.pill-inline { margin-left: var(--space-1); }
.status-pill:empty { display: none; }

/* Status text (one-line page / form message; replaces the per-page *-status families) */
.status-text { font-size: var(--font-size-sm); color: var(--text-3); }
.status-text.err { color: var(--status-bad-fg); font-weight: var(--font-weight-semibold); overflow-wrap: anywhere; }
.status-text.good { color: var(--status-good-fg); }

/* Tabs + Segmented */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: var(--space-4) 0 0; border-bottom: 1px solid var(--border-1); }
@media (max-width: 40rem) { .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  background: linear-gradient(to right, var(--surface-0) 30%, transparent) left / 2rem 100% no-repeat local, linear-gradient(to left, var(--surface-0) 30%, transparent) right / 2rem 100% no-repeat local,
    linear-gradient(to right, var(--border-2), transparent) left / 0.75rem 100% no-repeat scroll, linear-gradient(to left, var(--border-2), transparent) right / 0.75rem 100% no-repeat scroll; } .tab { flex: none; white-space: nowrap; } }
@media (pointer: coarse) { .tab { min-height: 44px; } }
.tab { min-height: var(--target-min); padding: 0 var(--space-3); margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  border-radius: var(--radius-control) var(--radius-control) 0 0; background: transparent; color: var(--text-2); font-weight: var(--font-weight-medium); }
.tab:where(:hover:not(:disabled)) { background: var(--surface-2); color: var(--text-1); }
.tab:where(.active, [aria-selected="true"]) { color: var(--accent); border-bottom-color: var(--accent); font-weight: var(--font-weight-semibold); }
.tab:where(.active, [aria-selected="true"]):where(:hover) { background: var(--accent-soft); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: var(--space-1); }
.segmented-option, .period-option { min-height: 2rem; padding: 0 var(--space-3); border: 1px solid var(--border-2); border-radius: var(--pill-radius);
  background: var(--surface-1); color: var(--text-1); font-size: var(--font-size-sm); font-weight: var(--font-weight-regular); }
:is(.segmented-option, .period-option):where(:hover:not(:disabled)) { background: var(--surface-2); border-color: var(--text-3); }
:is(.segmented-option, .period-option):where(.is-selected, [aria-pressed="true"]) { border-color: var(--accent); color: var(--accent);
  background: var(--accent-soft); font-weight: var(--font-weight-semibold); }
:is(.segmented-option, .period-option):where(:disabled) { opacity: 0.45; cursor: default; }
@media (pointer: coarse) { .segmented-option, .period-option { min-height: var(--target-min); } }

/* KPI tile */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: var(--space-3); margin: var(--space-3) 0 var(--space-4); }
.kpi { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-radius: var(--radius-card);
  background: var(--surface-2); min-width: 0; }
.kpi-label { font-size: var(--font-size-xs); color: var(--text-3); font-weight: var(--font-weight-medium); }
.kpi-value, .kpi strong { font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); line-height: var(--line-height-heading);
  font-variant-numeric: tabular-nums; color: var(--text-1); overflow-wrap: anywhere; }
.kpi-unit, .kpi strong .unit { font-size: var(--font-size-sm); font-weight: var(--font-weight-regular); color: var(--text-3); margin-left: var(--space-1); }
.kpi-delta { font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); color: var(--text-3); font-variant-numeric: tabular-nums; }
.kpi .good { color: var(--status-good-fg); }
.kpi .bad { color: var(--status-bad-fg); }

/* Banner (.status-line = legacy name of the same component) */
.banner, .status-line { display: flex; align-items: flex-start; gap: var(--space-3); margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--st-border); border-radius: var(--radius-card); background: var(--st-bg); color: var(--text-1); }
.status-line { font-weight: var(--font-weight-semibold); color: var(--st-fg); }
.banner::before { margin-top: 0.3rem; color: var(--st-fg); }
.banner-body { flex: 1; min-width: 0; }
.banner-title { margin: 0; font-weight: var(--font-weight-semibold); color: var(--st-fg); }
.banner-body p { margin: var(--space-1) 0 0; color: var(--text-2); }
.banner-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-left: auto; }

/* EmptyState */
.empty-state { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-5) var(--space-4); text-align: center;
  border: 1px dashed var(--border-2); border-radius: var(--radius-card); color: var(--text-3); font-size: var(--font-size-base); }
.empty-state[hidden] { display: none; }
.empty-state-title { margin: 0; font-size: var(--font-size-md); font-weight: var(--font-weight-semibold); color: var(--text-1); }
.empty-state p { margin: 0; max-width: 48ch; }

/* PT-1273 (W5, docs/ui-review-2026-11.md section 4): Table component, the only table class.
   <div class="table-wrap"><table class="table"> + .dense | .scroll (never stacks, scrolls in its wrap) | .sticky-col | .fixed;
   rows .is-selected | .is-muted; cells .num | .nowrap | .wrap. A .table with 4+ columns stacks into cards when its wrap is
   narrower than 40rem (640 px); table.js fills data-label from the header. .table-wrap.scroll-y caps the height so the header sticks. */
.table-wrap { overflow-x: auto; max-width: 100%; container: table / inline-size; }
.table-wrap.scroll-y { max-height: min(70vh, 40rem); overflow-y: auto; }
.table-wrap > .table { min-width: 0; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--table-font-size); font-variant-numeric: tabular-nums;
  color: var(--text-1); }
.table th, .table td { padding: var(--table-cell-py) var(--table-cell-px); border-bottom: 1px solid var(--table-border); text-align: left;
  vertical-align: top; overflow-wrap: anywhere; }
.table th { color: var(--text-2); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); letter-spacing: 0.03em;
  text-transform: uppercase; overflow-wrap: normal; }
.table tbody th, .table tfoot th { color: var(--text-1); font-size: inherit; letter-spacing: normal; text-transform: none; }
.table th .nc { text-transform: none; } /* units (Kč, kWh, m³) in headers without caps, PT-0347 */
.table thead th { position: sticky; top: 0; z-index: 2; background: var(--table-head-bg); border-bottom-color: var(--table-head-border); }
.table tbody tr:last-child > * { border-bottom: none; }
.table tfoot > tr > * { font-weight: var(--font-weight-semibold); border-top: 1px solid var(--table-head-border); border-bottom: none; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .nowrap, .table time { white-space: nowrap; }
.table .wrap { white-space: normal; }
.table .cell-actions button { display: block; width: 100%; margin: 0 0 var(--space-1); }
.table tr.is-muted > * { color: var(--text-3); }
.table tr.is-selected > * { background: var(--table-row-selected); }
:where(.table tbody tr:hover) > * { background: var(--table-row-hover); }
.table.dense { --table-cell-py: var(--space-1); --table-cell-px: var(--space-2); --table-font-size: var(--font-size-sm); }
.table.fixed { table-layout: fixed; }
.table.scroll { min-width: var(--table-min-width); }
.table-wrap > .table.scroll { min-width: var(--table-min-width); }
.table.sticky-col tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--table-bg); }
.table.sticky-col thead tr > :first-child { z-index: 3; background: var(--table-head-bg); }
@container table (max-width: 40rem) {
  .table:not(.scroll):has(tr > :nth-child(4)) { display: block; }
  .table:not(.scroll):has(tr > :nth-child(4)) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table:not(.scroll):has(tr > :nth-child(4)) :is(tbody, tfoot) { display: grid; gap: var(--space-2); }
  .table:not(.scroll):has(tr > :nth-child(4)) tfoot { margin-top: var(--space-2); }
  .table:not(.scroll):has(tr > :nth-child(4)) tr { display: grid; gap: var(--space-1); padding: var(--space-2) var(--space-3);
    border: 1px solid var(--table-border); border-radius: var(--radius-card); background: var(--table-bg); }
  .table:not(.scroll):has(tr > :nth-child(4)) :is(td, th) { display: grid; grid-template-columns: minmax(6rem, 38%) minmax(0, 1fr);
    gap: var(--space-2); width: auto; padding: 0; border: 0; text-align: left; white-space: normal; background: none; }
  .table:not(.scroll):has(tr > :nth-child(4)) :is(td, th)::before { content: attr(data-label); color: var(--text-3);
    font-size: var(--font-size-xs); font-weight: var(--font-weight-medium); }
  .table:not(.scroll):has(tr > :nth-child(4)) :is(td, th):not([data-label]),
  .table:not(.scroll):has(tr > :nth-child(4)) :is(td, th)[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  .table:not(.scroll):has(tr > :nth-child(4)) :is(td, th):not([data-label])::before,
  .table:not(.scroll):has(tr > :nth-child(4)) :is(td, th)[data-label=""]::before { content: none; }
  .table:not(.scroll):has(tr > :nth-child(4)) :is(td, th):empty { display: none; }
  .table:not(.scroll):has(tr > :nth-child(4)) tr > :first-child { font-weight: var(--font-weight-semibold); }
  .table:not(.scroll):has(tr > :nth-child(4)) tr[hidden] { display: none; }
}
@container table (max-width: 40rem) {
  .table.people-table.people-table:not(.scroll) tr.person-row { grid-template-columns: 1fr auto; align-items: center; column-gap: var(--space-2); }
  .table.people-table.people-table:not(.scroll) tr.person-row > td { grid-template-columns: minmax(0, 1fr); }
  .table.people-table.people-table:not(.scroll) tr.person-row > td::before { content: none; }
  .table.people-table.people-table:not(.scroll) tr.person-row > :first-child { grid-column: 1 / -1; }
  .table.people-table.people-table:not(.scroll) tr.person-row > .pr-extra, .table.people-table.people-table:not(.scroll) tr.person-row > .pr-lang { display: none; }
  .table.people-table.people-table:not(.scroll) tr.person-row > .pr-actions { display: flex; gap: var(--space-1); justify-self: end; }
}

/* Skeleton (W8): loading placeholder replacing "Načítám…" text; sr-only label keeps the status readable. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skeleton { display: block; min-height: 4.5rem; border-radius: var(--radius-card, 10px); background: var(--surface-2); position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface-1) 70%, transparent), transparent);
  animation: skeleton-sweep 1.4s var(--ease-standard) infinite; }
.skeleton-lines { min-height: 0; height: 0.9rem; max-width: 24rem; border-radius: 6px; }
.auth-loading[aria-busy="true"] { display: grid; justify-items: center; }
.auth-loading .skeleton-lines { width: 100%; }
@keyframes skeleton-sweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .skeleton::after { animation: none; display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
