@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* SMOKE_OK */
/* =============================================================
   Spotrebovač — Hlavný štýlový súbor
   Mobile-first, CSS custom properties, bez frameworku
   ============================================================= */

/* -------------------------------------------------------------
   1. CSS Custom Properties (Premenné)
   ------------------------------------------------------------- */
:root {
  /* Farby — primárna modrá a funkčné farby */
  --color-primary:       #2196F3;
  --color-primary-dark:  #1976D2;
  --color-primary-light: #BBDEFB;
  --color-primary-bg:    #E3F2FD;

  /* Povrchy / neutrals */
  --color-surface-1:     #f4f4f4;
  --color-surface-2:     #f9f9f9;
  --color-surface-3:     #f0f0f0;

  /* Statusy pre kalendár */
  --color-kal-available: #22c55e;
  --color-kal-available-bg: #f0fdf4;
  --color-kal-available-dk: #16a34a;
  --color-kal-tooltip-bg: #1e293b;
  --color-kal-muted:     #64748b;

  --color-success:       #4CAF50;
  --color-success-bg:    #E8F5E9;
  --color-success-dark:  #388E3C;

  --color-error:         #F44336;
  --color-error-bg:      #FFEBEE;
  --color-error-dark:    #C62828;

  --color-warning:       #FF9800;
  --color-warning-bg:    #FFF3E0;
  --color-warning-dark:  #E65100;

  /* Šedé odtiene */
  --color-gray-50:  #FAFAFA;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #EEEEEE;
  --color-gray-300: #E0E0E0;
  --color-gray-400: #BDBDBD;
  --color-gray-500: #9E9E9E;
  --color-gray-600: #757575;
  --color-gray-700: #616161;
  --color-gray-800: #424242;
  --color-gray-900: #212121;

  /* Text */
  --color-text:         #212121;
  --color-text-muted:   #757575;
  --color-text-inverse: #FFFFFF;

  /* Pozadia */
  --color-bg:         #F5F7FA;
  --color-bg-card:    #FFFFFF;
  --color-border:     #E0E0E0;

  /* Medzery */
  --spacing-xs:   0.25rem;   /* 4px */
  --spacing-sm:   0.5rem;    /* 8px */
  --spacing-md:   1rem;      /* 16px */
  --spacing-lg:   1.5rem;    /* 24px */
  --spacing-xl:   2rem;      /* 32px */
  --spacing-2xl:  3rem;      /* 48px */

  /* Typografia */
  --font-family:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */

  /* Okraje a tiene */
  --border-radius:    8px;
  --border-radius-lg: 12px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:    0 12px 28px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.05);
  --shadow-hover: 0 12px 30px rgba(0,0,0,.12);

  /* Gradienty */
  --gradient-primary: linear-gradient(135deg, #1565C0 0%, #2196F3 50%, #42A5F5 100%);

  /* Navigácia */
  --nav-height: 56px;
}

/* -------------------------------------------------------------
   1b. Design Tokens — Redesign (OKLCH paleta, Inter, Mono, --r-*, --sh-*)
   ------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:         oklch(97% 0.008 240);
  --paper:      oklch(99.5% 0.003 240);
  --paper-2:    oklch(96.5% 0.006 240);
  --paper-3:    oklch(93% 0.01 240);
  --ink:        oklch(22% 0.02 255);
  --ink-2:      oklch(38% 0.02 255);
  --muted:      oklch(56% 0.02 255);
  --muted-2:    oklch(68% 0.018 255);
  --rule:       oklch(90% 0.012 245);
  --rule-2:     oklch(94% 0.008 245);

  /* Brand — alpine dusk */
  --brand:      oklch(42% 0.13 255);
  --brand-2:    oklch(52% 0.14 252);
  --brand-3:    oklch(30% 0.12 258);
  --brand-ink:  oklch(98% 0.01 255);

  /* Accents (colorblind-friendly) */
  --my:         oklch(62% 0.15 150);
  --my-ink:     oklch(38% 0.14 150);
  --my-wash:    oklch(94% 0.05 150);
  --vy:         oklch(72% 0.14 65);
  --vy-ink:     oklch(42% 0.11 55);
  --vy-wash:    oklch(95% 0.04 75);
  --mati:       oklch(62% 0.18 22);
  --mati-ink:   oklch(42% 0.16 22);
  --mati-wash:  oklch(95% 0.04 25);

  --today:      oklch(96% 0.03 150);
  --today-ring: oklch(62% 0.15 150);

  /* Radius tokens */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Soft shadow tokens */
  --sh-1: 0 1px 0 oklch(45% 0.02 245 / 0.03), 0 1px 2px oklch(30% 0.04 245 / 0.04);
  --sh-2: 0 1px 0 oklch(45% 0.02 245 / 0.03), 0 8px 28px -10px oklch(30% 0.05 245 / 0.15);

  /* Typography */
  --f-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-mono: var(--f-sans); /* REVERT: "JetBrains Mono", ui-monospace, monospace */
}


/* -------------------------------------------------------------
   2. CSS Reset / Normalize
   ------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-sans, var(--font-family));
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--ink, var(--color-text));
  background: var(--bg, #F0F4F8);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 30px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01","cv11";
}

/* Background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 500px at 50% -200px, oklch(70% 0.12 250 / 0.18), transparent 60%),
    radial-gradient(700px 400px at 100% 0, oklch(75% 0.1 210 / 0.12), transparent 60%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* -------------------------------------------------------------
   3. Typografia
   ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-gray-900);
}

h1 { font-size: var(--font-size-2xl); margin-bottom: var(--spacing-md); }
h2 { font-size: var(--font-size-xl);  margin-bottom: var(--spacing-sm); }
h3 { font-size: var(--font-size-lg);  margin-bottom: var(--spacing-sm); }

p { margin-bottom: var(--spacing-md); }

/* -------------------------------------------------------------
   4. Layout — Top nav (redesign)
   ------------------------------------------------------------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: var(--brand-ink);
  border-bottom: 1px solid oklch(35% 0.12 258 / 0.5);
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.08) inset, 0 4px 20px -10px oklch(30% 0.12 258 / 0.4);
}
.topnav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* Desktop nav tabs */
.nav-tabs {
  margin-left: auto;
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  color: oklch(92% 0.02 245);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background 150ms, color 150ms;
}
.nav-tab:hover { background: oklch(100% 0 0 / 0.08); color: white; }
.nav-tab.active {
  background: oklch(100% 0 0 / 0.14);
  color: white;
  box-shadow: inset 0 -2px 0 oklch(75% 0.12 200);
}

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid oklch(100% 0 0 / 0.2);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: white;
  line-height: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger svg { display: block; }
.hamburger:focus-visible {
  outline: 2px solid oklch(100% 0 0);
  outline-offset: 2px;
}

/* Scrim overlay */
.scrim {
  position: fixed; inset: 0;
  background: oklch(20% 0.05 255 / 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 200;
}
.scrim.show { opacity: 1; pointer-events: auto; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(80vw, 300px);
  height: 100dvh;
  background: var(--paper);
  box-shadow: -16px 0 40px -10px oklch(20% 0.05 255 / 0.35);
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 210;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer .close-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.mobile-drawer .drawer-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.mobile-drawer .close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 26px;
  color: var(--muted);
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-drawer .close-btn:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.mobile-drawer .m-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-drawer .m-nav__link {
  display: block;
  text-align: left;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 120ms;
}
.mobile-drawer .m-nav__link:hover { background: var(--paper-2); }
.mobile-drawer .m-nav__link.active {
  background: var(--paper-2);
  color: var(--brand-2);
  box-shadow: inset 0 0 0 1px var(--rule);
}

/* -------------------------------------------------------------
   5. Layout — Hlavný obsah
   ------------------------------------------------------------- */
.site-main {
  flex: 1;
  padding: var(--spacing-md);
  padding-bottom: var(--spacing-2xl);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
}

/* -------------------------------------------------------------
   6. Card + Row + Link (redesign)
   ------------------------------------------------------------- */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.card--flat { box-shadow: none; border-color: var(--color-border); }

.card:hover {
  box-shadow: 0 1px 0 oklch(45% 0.02 245 / 0.03), 0 12px 32px -8px oklch(30% 0.05 245 / 0.2);
  transform: translateY(-2px);
}

/* .card-hd — header row inside a card */
.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--rule-2);
}
.card-hd__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

/* Legacy sub-elements kept for backward compat */
.card__header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--rule-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.card__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.card__body {
  padding: var(--spacing-md);
}

.card__footer {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--paper-2);
  border-top: 1px solid var(--rule-2);
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* .link — inline styled link with arrow */
.link {
  color: var(--brand-2);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms;
}
.link:hover { color: var(--brand); text-decoration: none; }
.link::after { content: " →"; }

/* .row — 2-column responsive grid */
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

/* Grid kariet (legacy) */
.cards-grid {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: 1fr;
}

/* -------------------------------------------------------------
   7. Tabuľky (pre dashboard, porovnanie)
   ------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--shadow-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

thead {
  background: var(--gradient-primary);
}

th {
  padding: 0.875rem var(--spacing-md);
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text-inverse);
  border-bottom: none;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 1rem var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  font-size: 1rem;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: var(--color-primary-bg);
  transition: background-color 0.2s;
}

/* Čísla zarovnané doprava */
td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------
   8. Formulárové prvky
   ------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  color: var(--color-gray-700);
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.625rem var(--spacing-sm);
  font-size: var(--font-size-md); /* min 16px — zabraňuje zoom na iOS */
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-text-inverse);
  border: 2px solid var(--color-gray-300);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px; /* min touch target */
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23757575' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-help {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--spacing-xs);
}

.form-error {
  font-size: var(--font-size-sm);
  color: var(--color-error);
  margin-top: var(--spacing-xs);
}

.form-row {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: 1fr;
}

.form-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
}

/* -------------------------------------------------------------
   9. Tlačidlá
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.625rem var(--spacing-md);
  font-size: var(--font-size-md);
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  white-space: nowrap;
}

.btn:focus { outline: 0; }
.btn:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.btn--primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--color-text-inverse);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
  text-decoration: none;
  color: var(--color-text-inverse);
}

.btn--secondary {
  background-color: transparent;
  border-color: var(--color-gray-400);
  color: var(--color-gray-700);
}

.btn--secondary:hover {
  background-color: var(--color-gray-100);
  text-decoration: none;
}

.btn--danger {
  background: linear-gradient(135deg, var(--color-error-dark), var(--color-error));
  border: none;
  color: var(--color-text-inverse);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn--danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
  text-decoration: none;
  color: var(--color-text-inverse);
}

.btn--sm {
  padding: 0.375rem var(--spacing-sm);
  font-size: var(--font-size-sm);
  min-height: 36px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* -------------------------------------------------------------
   10. Flash správy
   ------------------------------------------------------------- */
.flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  font-size: var(--font-size-md);
  animation: fadeInUp 0.3s ease-out both;
}

.flash--success {
  background-color: var(--color-success-bg);
  border-color: var(--color-success);
  color: var(--color-success-dark);
}

.flash--error {
  background-color: var(--color-error-bg);
  border-color: var(--color-error);
  color: var(--color-error-dark);
}

.flash--warning {
  background-color: var(--color-warning-bg);
  border-color: var(--color-warning);
  color: var(--color-warning-dark);
}

.flash__message {
  flex: 1;
}

.flash__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
  opacity: 0.7;
  padding: 0;
  min-width: 24px;
  min-height: 24px;
}

.flash--dynamic {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  min-width: 280px;
  max-width: 480px;
  margin-bottom: 0;
}

.flash__close:hover {
  opacity: 1;
}

/* -------------------------------------------------------------
   11. Odznak / Badge (vyúčtované / priebežné)
   ------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.35em 0.9em;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 0.2s;
}

.badge--success {
  background: oklch(94% 0.05 150);
  color: oklch(36% 0.14 150);
  border: 1px solid oklch(80% 0.1 150 / 0.35);
}

.badge--warning {
  background: oklch(96% 0.04 75);
  color: oklch(40% 0.11 55);
  border: 1px solid oklch(78% 0.08 65 / 0.35);
}

.badge--error {
  background-color: var(--color-error-bg);
  color: var(--color-error-dark);
}

.badge--info {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* -------------------------------------------------------------
   12. Spinner / Loading state — Redesign (SPO-166)
   ------------------------------------------------------------- */
.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2.5px solid var(--rule);
  border-top-color: var(--brand-2);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

.spinner--lg {
  width: 2.75rem;
  height: 2.75rem;
  border-width: 3.5px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Generic loading-state block (replaces legacy #loadingSpinner inline) */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  padding: var(--spacing-2xl) var(--spacing-md);
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.loading-state__label {
  color: var(--muted);
  font-size: var(--font-size-sm);
}



/* -------------------------------------------------------------
   13. Lightbox (fullsize fotky)
   ------------------------------------------------------------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  cursor: default;
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--color-text-inverse);
  font-size: 1.75rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-vodomer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.75);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: default;
}

.lightbox-vodomer__label {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  text-align: center;
}

.lightbox-vodomer__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.lightbox-vodomer__input {
  width: 120px;
  padding: 0.3rem 0.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.95rem;
}

/* Override the global input[type="number"] { width:100%; min-height:44px } */
input.lightbox-vodomer__input {
  width: 120px;
  max-width: 120px;
  min-height: 0;
}

.lightbox-vodomer__input::placeholder { color: rgba(255,255,255,0.5); }

.lightbox-vodomer__unit {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}

.lightbox-vodomer__msg {
  font-size: 0.78rem;
  min-height: 1em;
  margin: 0;
  text-align: center;
}
.lightbox-vodomer__msg--ok  { color: #81c784; }
.lightbox-vodomer__msg--err { color: #ef9a9a; }

.foto-vodomer-missing {
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-warning, #FF9800);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.cal-bar--incomplete {
  outline: 2px solid #e53935;
  outline-offset: 1px;
}

.cal-cell--incomplete {
  position: relative;
  outline: 3px solid #e53935;
  outline-offset: -1px;
}
.cal-incomplete-icon {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpolygon points='8%2C0 16%2C14 0%2C14' fill='%23FF9800'/%3E%3Ctext x='8' y='12' text-anchor='middle' font-size='9' font-weight='bold' fill='%23e53935'%3E!%3C%2Ftext%3E%3C%2Fsvg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 2;
  cursor: help;
  display: inline-block;
}

.input--empty-warn {
  border-color: #e53935 !important;
  background-color: rgba(229, 57, 53, 0.04) !important;
}

/* -------------------------------------------------------------
   14. Chybová stránka — Redesign (SPO-166)
   ------------------------------------------------------------- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-md);
  gap: var(--spacing-sm);
}

.error-page__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: oklch(96% 0.02 30);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.error-page__code {
  font-family: var(--f-mono);
  font-size: 4rem;
  font-weight: 700;
  color: var(--rule-2, var(--color-gray-300));
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 0;
}

.error-page__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.error-page__message {
  color: var(--muted);
  font-size: var(--font-size-sm);
  max-width: 36ch;
  margin: 0 auto;
  margin-bottom: var(--spacing-lg);
}

.error-page__actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

/* -------------------------------------------------------------
   15. Page header (nadpis stránky + akcie)
   ------------------------------------------------------------- */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.page-header__title {
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
}

/* -------------------------------------------------------------
   16. Utility triedy
   ------------------------------------------------------------- */
.text-muted   { color: var(--color-text-muted); }
.text-success { color: var(--color-success-dark); }
.text-error   { color: var(--color-error-dark); }
.text-warning { color: var(--color-warning-dark); }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.font-bold    { font-weight: 600; }

.mt-xs  { margin-top: var(--spacing-xs); }
.mt-sm  { margin-top: var(--spacing-sm); }
.mt-md  { margin-top: var(--spacing-md); }
.mt-lg  { margin-top: var(--spacing-lg); }
.mb-sm  { margin-bottom: var(--spacing-sm); }
.mb-md  { margin-bottom: var(--spacing-md); }
.mb-lg  { margin-bottom: var(--spacing-lg); }

.d-flex       { display: flex; }
.d-block      { display: block; }
.align-center { align-items: center; }
.gap-sm       { gap: var(--spacing-sm); }
.gap-md       { gap: var(--spacing-md); }
.flex-wrap    { flex-wrap: wrap; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Foto slot — labelled upload/delete column */
.foto-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.foto-slot--center { align-items: center; }
.reminder-foto-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}
.reminder-foto-row > div { flex: 1 1 0; min-width: 0; }
.foto-slot__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.foto-thumb-wrap {
  position: relative;
  display: inline-block;
}
.foto-thumb-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  transition: background 0.15s;
}
.foto-thumb-del:hover {
  background: var(--color-danger, #d32f2f);
}

/* Foto thumbnail */
.foto-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: 2px solid var(--color-border);
  display: block;
  transition: border-color 0.15s;
}

.foto-thumb:hover {
  border-color: var(--color-primary);
}

/* Pending upload thumbnail — visually distinct from uploaded */
.foto-thumb--pending {
  filter: grayscale(100%) opacity(0.55);
}
.foto-thumb-wrap--pending {
  position: relative;
  display: inline-block;
}
.foto-pending-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  background: rgba(211, 47, 47, 0.90);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 2px 3px;
  line-height: 1.3;
  pointer-events: none;
  border-radius: var(--border-radius, 4px) var(--border-radius, 4px) 0 0;
  z-index: 2;
}
/* Camera upload label — same size as thumbnail */
.foto-slot .btn--secondary.btn--icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-border);
  border-radius: var(--border-radius);
  background: none;
  cursor: pointer;
  padding: 0;
}

/* IMS stav */
.ims-stav { font-size: var(--font-size-sm); }
.ims-stav--prebieha { color: var(--color-warning-dark); }
.ims-stav--hotovo   { color: var(--color-success-dark); }
.ims-stav--chyba    { color: var(--color-error-dark); }
.ims-stav--ziadny   { color: var(--color-text-muted); }

/* -------------------------------------------------------------
   17b. Responsive — top nav mobile (≤ 780px)
   ------------------------------------------------------------- */
@media (max-width: 780px) {
  .topnav-inner { padding: 0 16px; height: 62px; gap: 12px; }
  .logo img { height: 34px; }
  .nav-tabs { display: none; }
  .hamburger { display: flex; }
}


/* -------------------------------------------------------------
   17. Responsive — tablet (≥ 768px)
   ------------------------------------------------------------- */
@media (min-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .site-main {
    padding: var(--spacing-lg);
  }

  /* Nav tabs already visible on desktop; nothing extra needed above 780px */

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .row {
    grid-template-columns: 1fr 1fr;
  }
}

/* -------------------------------------------------------------
   18. Responsive — desktop (≥ 1024px)
   ------------------------------------------------------------- */
@media (min-width: 1024px) {
  .site-main {
    padding: var(--spacing-xl);
  }

  .form-row.form-row--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  table {
    font-size: var(--font-size-md);
  }
}



/* -------------------------------------------------------------
   20. Fade-in animácia pre karty a tabuľky
   ------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.table-wrap,
.page-header {
  animation: fadeInUp 0.4s ease-out both;
}

.cards-grid .card:nth-child(1) { animation-delay: 0s; }
.cards-grid .card:nth-child(2) { animation-delay: 0.05s; }
.cards-grid .card:nth-child(3) { animation-delay: 0.1s; }
.cards-grid .card:nth-child(4) { animation-delay: 0.15s; }
.cards-grid .card:nth-child(5) { animation-delay: 0.2s; }
.cards-grid .card:nth-child(6) { animation-delay: 0.25s; }
.cards-grid .card:nth-child(n+7) { animation-delay: 0.3s; }


/* =============================================================
   Rezervácie — Kalendár (kal-*)
   ============================================================= */

.kal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.kal-header__title {
  flex: 1;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.kal-toolbar {
  margin-bottom: 0.75rem;
}

.kal-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.kal-legenda__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.kal-legenda__swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* 7-stĺpcová mriežka */
.kal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 1.5rem;
}

/* Hlavičky dní (Po–Ne) */
.kal-dow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 0;
  color: var(--color-text-muted);
  background: var(--color-surface-1);
  border-radius: 3px;
}

/* Jednotlivé bunky */
.kal-day {
  min-height: 72px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 4px;
  position: relative;
  background: var(--color-bg-card);
  cursor: pointer;
  transition: background 0.1s;
}
.kal-day:hover {
  background: var(--color-surface-2);
}
.kal-day--empty {
  background: var(--color-gray-50);
  border-color: var(--color-surface-3);
  cursor: default;
}

/* Číslo dňa */
.kal-day__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: 2px;
}

/* Rezervačné bary */
.kal-bar {
  display: block;
  width: 100%;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 0.7rem;
  color: var(--color-text-inverse);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

/* kal-day--today: today highlight (item 4) */
.kal-day--today {
  border-color: var(--color-kal-available);
  background: var(--color-kal-available-bg);
}
.kal-day--today .kal-day__num {
  color: var(--color-kal-available-dk);
  font-weight: 700;
}

/* Toast notification (item 2) */
.kal-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--color-kal-tooltip-bg);
  color: var(--color-text-inverse);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  pointer-events: none;
}
.kal-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Upcoming reservations list (item 9) */
.kal-upcoming {
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.kal-upcoming__list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0 0;
}
.kal-upcoming__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 2px 0;
  cursor: pointer;
}
.kal-upcoming__item:hover {
  text-decoration: underline;
}

/* Color input (item 8) */
.form-group--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.form-group--inline .form-label {
  flex: 0 0 auto;
}
.form-control--color {
  width: 2.5rem;
  height: 2rem;
  padding: 1px 2px;
  border-radius: 4px;
  cursor: pointer;
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.625rem var(--spacing-sm);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-text-inverse);
  border: 2px solid var(--color-gray-300);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15);
}

.form-control--sm {
  padding: 0.375rem var(--spacing-sm);
  font-size: var(--font-size-sm);
  min-height: 36px;
}

.form-hint {
  color: var(--color-kal-muted);
  font-size: 0.78rem;
  width: 100%;
}

/* --- Date picker wrapper (SPO-27 regression fix) --- */
.date-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.date-input-wrap .form-control {
  border-radius: 10px 0 0 10px;
  flex: 1;
}
.btn-cal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.5rem;
  background: var(--color-gray-100, #f1f5f9);
  border: 2px solid var(--color-gray-300, #cbd5e1);
  border-left: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.15s;
}
.btn-cal:hover {
  background: var(--color-gray-200, #e2e8f0);
}
.form-group--termin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.btn-cal--standalone {
  border-left: 2px solid var(--color-gray-300, #cbd5e1);
  border-radius: 10px;
}
.date-picker-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  top: 0;
  left: 0;
}




/* =============================================================
   Dashboard — mini kalendár + spotreba + kamery (SPO-161)
   ============================================================= */

/* Navigácia mini kalendára */
.cal-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 4px;
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-btn {
  padding: 7px 12px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--brand-2);
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.nav-btn:hover {
  background: var(--paper-2);
  border-color: var(--rule);
  color: var(--brand);
}
.nav-btn:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  background: var(--paper-2);
  border-color: var(--rule);
}
.nav-btn .arr {
  font-family: var(--f-mono);
  color: var(--muted);
}
.cal-title {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--ink);
  text-align: center;
  flex: 1;
  margin: 0;
}
.cal-title .yr {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  margin-top: 2px;
  font-weight: 400;
  color: var(--muted);
}

/* Spravovať + legenda */
.cal-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 24px 16px;
  flex-wrap: wrap;
}
.manage-btn {
  background: var(--brand);
  color: var(--brand-ink);
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.2), 0 4px 14px -6px oklch(40% 0.12 258 / 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 120ms, box-shadow 150ms;
}
.manage-btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.2), 0 6px 20px -6px oklch(40% 0.12 258 / 0.7);
}
.manage-btn:focus-visible {
  outline: 2px solid oklch(100% 0 0);
  outline-offset: 2px;
}
.manage-btn .ic {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.legend .it {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend .sw {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.legend .sw.my    { background: var(--my); }
.legend .sw.vy    { background: var(--vy); }
.legend .sw.mati  { background: var(--mati); }
.legend .sw.today { background: var(--today); border: 1px solid var(--today-ring); }

/* Mriežka kalendára */
.cal { padding: 0 20px 20px; }
.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 0 0 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-cell {
  display: flex;
  flex-direction: column;
  min-height: 64px;
  min-width: 0;
  border: 1px solid var(--rule-2);
  background: var(--paper);
  border-radius: 8px;
  padding: 6px 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  overflow: hidden;
}
.cal-cell--empty {
  background: var(--paper-2);
  border-color: transparent;
}
.cal-cell.today {
  background: var(--today);
  border-color: var(--today-ring);
  box-shadow: 0 0 0 2px oklch(62% 0.15 150 / 0.15);
}
.cal-cell.today .dnum {
  font-family: var(--f-sans);
  font-weight: 700;
  color: var(--my-ink);
}
.dnum { font-variant-numeric: tabular-nums; text-align: center; }
.cal-bar {
  min-height: 18px;
  line-height: 1.15;
  background: var(--my);
  color: oklch(99% 0 0);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 9px;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  letter-spacing: 0;
  border-radius: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
  text-align: center;
}
.cal-more {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted-2);
  text-align: center;
  margin-top: 2px;
  line-height: 1;
}
.cal-bar.my   { background: var(--my); }
.cal-bar.vy   { background: var(--vy); color: oklch(22% 0.06 50); }
.cal-bar.mati { background: var(--mati); }

/* Zoznam nadchádzajúcich rezervácií */
.resv-list {
  padding: 18px 24px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--rule-2);
  margin-top: 0;
}
.resv-hd {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.resv {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  grid-template-areas: "sw dt who . cd";
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-md);
  transition: background 120ms;
  border-left: 3px solid transparent;
  margin-left: -12px;
}
.resv:hover { background: var(--paper-2); }
.resv.my    { border-left-color: var(--my); }
.resv.vy    { border-left-color: var(--vy); }
.resv.mati  { border-left-color: var(--mati); }
.resv .sw {
  grid-area: sw;
  width: 12px; height: 12px; border-radius: 3px;
}
.resv.my   .sw { background: var(--my); }
.resv.vy   .sw { background: var(--vy); }
.resv.mati .sw { background: var(--mati); }
.resv .dt {
  grid-area: dt;
  font-family: var(--f-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  white-space: nowrap;
}
.resv .who {
  grid-area: who;
  font-weight: 500;
  color: var(--ink);
  justify-self: start;
  white-space: nowrap;
}
.resv .countdown.active {
  background: var(--mati-wash);
  color: var(--mati-ink);
  border-color: oklch(72% 0.14 22 / 0.2);
}
.resv .countdown {
  grid-area: cd;
  justify-self: end;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper-3);
  color: var(--ink-2);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  white-space: nowrap;
}
.resv .countdown.soon {
  background: var(--my-wash);
  color: var(--my-ink);
  border-color: oklch(62% 0.15 150 / 0.25);
}

/* Spotreba karta */
.spotreba-body { padding: 14px 24px 20px; }
.fakt-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 6px 12px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  margin-bottom: 18px;
}
.fakt-bar .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--vy);
  box-shadow: 0 0 0 0 oklch(72% 0.14 65 / 0.5);
  animation: dash-pulse 2.2s infinite;
}
@keyframes dash-pulse {
  0%   { box-shadow: 0 0 0 0 oklch(72% 0.14 65 / 0.5); }
  70%  { box-shadow: 0 0 0 8px oklch(72% 0.14 65 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(72% 0.14 65 / 0); }
}
.consum {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  row-gap: 4px;
  column-gap: 10px;
}
.consum .head {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--rule);
}
.consum .head.col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.consum .head .sw {
  width: 9px; height: 9px; border-radius: 2px;
}
.consum .head .sw.my   { background: var(--my); }
.consum .head .sw.vy   { background: var(--vy); }
.consum .head .sw.mati { background: var(--mati); }
.consum .rowlbl {
  padding: 14px 0;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.consum .rowlbl .ic {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--brand-2);
  flex-shrink: 0;
}
.consum .v {
  padding: 14px 0;
  text-align: right;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--ink);
}
.consum .v .u {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-left: 4px;
  letter-spacing: 0.04em;
  vertical-align: 0.55em;
}
.consum .sep { grid-column: 1 / -1; height: 1px; background: var(--rule-2); }
.consum .rowlbl.last,
.consum .v.last { padding-bottom: 4px; }

@media (max-width: 480px) {
  .consum .v { font-size: 14px; }
  .consum .v .u { font-size: 9.5px; }
  .consum .rowlbl { gap: 5px; }
  .spotreba-body { padding: 12px 16px 16px; }
}

/* Kamera mriežka (dashboard kompakt) */
.cam-grid {
  padding: 16px 20px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cam {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: oklch(32% 0.01 255);
  border: 1px solid var(--rule);
  display: block;
  text-decoration: none;
}
.cam img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cam .feed {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(45% 0.01 255) 0%, oklch(30% 0.01 255) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cam .iconic {
  color: oklch(65% 0.01 255);
}
.cam--offline img { filter: grayscale(1) opacity(0.5); }
.cam.stale img { filter: grayscale(1) opacity(0.5); }
.cam.stale .dash-cam-badge { display: block !important; }
.dash-cam-spinner {
  display: none;
  position: absolute;
  inset: 0;
  background: oklch(18% .01 255 / .6);
  z-index: 5;
  justify-content: center;
  align-items: center;
}
.cam.loading .dash-cam-spinner { display: flex; }
.dash-cam-ring {
  width: 24px;
  height: 24px;
  border: 2px solid oklch(65% .12 252 / .25);
  border-top-color: var(--brand-2);
  border-radius: 50%;
  animation: dash-cam-spin .8s linear infinite;
}
@keyframes dash-cam-spin { to { transform: rotate(360deg); } }
.dash-cam-badge { display: none; }
.cam__badge {
  position: absolute;
  top: 6px; left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: oklch(98% 0.01 25);
  background: oklch(55% 0.2 25);
  font-weight: 600;
  text-transform: uppercase;
}
.cam .label {
  position: absolute;
  bottom: 6px; left: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(92% 0.01 0);
  background: oklch(0% 0 0 / 0.5);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 4px;
}
/* =============================================================
   Sub-tabs (BEM: .sub-tabs)
   Spotreba stránka — navigácia medzi sekciami
   ============================================================= */
.sub-tabs {
  margin-bottom: var(--spacing-md);
}

.sub-tabs__list {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
}

.sub-tabs__item {
  margin: 0;
}

.sub-tabs__link {
  display: block;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background 120ms, color 120ms, border-color 120ms;
}

.sub-tabs__link:hover {
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.sub-tabs__link:focus-visible {
  background: var(--paper);
  color: var(--ink);
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  text-decoration: none;
}

.sub-tabs__link--active {
  background: var(--paper);
  color: var(--brand);
  border-color: var(--rule);
  box-shadow: var(--sh-1);
  font-weight: 600;
}

.sub-tabs__panel {
  padding-top: var(--spacing-md);
  min-height: 4rem;
}

/* -------------------------------------------------------------
   20. Footer (redesign)
   ------------------------------------------------------------- */
.site-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 6px 20px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  z-index: 10;
}
.site-footer__version {
  font-size: 0.75rem;
  color: var(--muted-2);
  font-family: var(--f-mono);
}
@media (max-width: 780px) {
  .site-footer {
    right: 50%;
    transform: translateX(50%);
    padding: 4px 12px;
    background: oklch(98% 0.005 255 / 0.45);
    border-radius: 6px 6px 0 0;
    backdrop-filter: blur(6px);
  }
  .site-footer__version {
    color: var(--muted);
  }
}

/* =============================================================
   Spotreba view redesign (SPO-162)
   ============================================================= */

/* Period picker */
.sp-period-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sp-period-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.sp-period-select {
  flex: 1;
  min-width: 180px;
  max-width: 360px;
  padding: 9px 36px 9px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  background-image: url(data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg width=10 height=6 viewBox=0 0 10 6%3E%3Cpath fill=%239E9E9E d=M5 6L0 0h10z/%3E%3C/svg%3E);
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: border-color 120ms, box-shadow 120ms;
}
.sp-period-select:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px oklch(52% 0.14 252 / 0.15);
}

/* Rozuctovanie card */
.sp-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.sp-rozuct__head {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(80px, 110px));
  padding: 10px 20px 10px;
  border-bottom: 1px solid var(--rule-2);
  background: var(--paper-2);
  gap: 0;
}
.sp-rozuct__head-cell {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.sp-rozuct__head-cell:first-child { justify-content: flex-start; }
.sp-rozuct__sw {
  width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0;
}
.sp-rozuct__sw.my   { background: var(--my); }
.sp-rozuct__sw.vy   { background: var(--vy); }
.sp-rozuct__sw.mati { background: var(--mati); }

.sp-rozuct__row {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(80px, 110px));
  padding: 13px 20px;
  border-bottom: 1px solid var(--rule-2);
  align-items: center;
  gap: 0;
  transition: background 100ms;
}
.sp-rozuct__row:hover { background: oklch(98.5% 0.004 245); }
.sp-rozuct__row:last-child { border-bottom: none; }
.sp-rozuct__row--total {
  background: var(--paper-2);
  border-top: 2px solid var(--rule);
  border-bottom: none;
  padding: 15px 20px;
}
.sp-rozuct__row--total:hover { background: oklch(96.5% 0.006 245); }
.sp-rozuct__row--wide .sp-rozuct__val {
  grid-column: 2 / -1;
  text-align: center;
}

.sp-rozuct__lbl {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
}
.sp-rozuct__lbl-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--brand-2);
  flex-shrink: 0;
}
.sp-rozuct__lbl-icon svg { display: block; }
.sp-rozuct__lbl--total {
  font-weight: 700;
  font-size: 15px;
}

.sp-rozuct__val {
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
  line-height: 1.2;
}
.sp-rozuct__val--total {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.sp-rozuct__val .u {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  margin-left: 3px;
  letter-spacing: 0.04em;
  vertical-align: 0.45em;
}

.sp-footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 6px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  margin-top: 14px;
}
.sp-footer-pill .sep { color: var(--rule); }

/* Legacy spotreba loading spinner (keep display:none toggle) */
#loadingSpinner {
  display: none;
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-md);
  color: var(--muted);
}

@media (max-width: 600px) {
  .cal-cell { min-height: 56px; }
  .cal-bar { padding: 2px 3px; font-size: 8.5px; }
  .sp-rozuct__head,
  .sp-rozuct__row {
    grid-template-columns: minmax(110px, 1.5fr) repeat(3, minmax(45px, 1fr));
  }
  .sp-rozuct__val { font-size: 14px; }
  .sp-rozuct__val--total { font-size: 17px; }
  .sp-rozuct__lbl { font-size: 12px; white-space: nowrap; }
  .sp-rozuct__lbl-icon { display: none; }
}

/* =============================================================
   Rezervácie — Redesign (SPO-163)
   Modal, form tweaks, upcoming list uses shared .resv/.cal-* classes
   ============================================================= */

/* 2-column form row for date range */
.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

/* Upcoming list empty state */
.resv-empty {
  color: var(--muted);
  font-size: 0.875rem;
  padding: 10px 0;
  margin: 0;
}

/* Reservation modal */
.rez-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rez-modal[hidden] { display: none; }

.rez-modal__scrim {
  position: absolute;
  inset: 0;
  background: oklch(10% 0.02 255 / 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.rez-modal__box {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px -12px oklch(20% 0.04 255 / 0.35), 0 4px 12px oklch(20% 0.04 255 / 0.08);
  border: 1px solid var(--rule);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.rez-modal__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--rule-2);
}

.rez-modal__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.rez-modal__close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms;
  flex-shrink: 0;
}
.rez-modal__close:hover {
  background: var(--paper-2);
  border-color: var(--rule);
  color: var(--ink);
}
.rez-modal__close:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  background: var(--paper-2);
  border-color: var(--rule);
}

.rez-modal__body {
  padding: 20px 24px 0;
}

.rez-modal__ft {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--rule-2);
  margin-top: 16px;
}

/* Prevent body scroll when modal is open */
body.modal-open { overflow: hidden; }

/* Toast — already styled via .kal-toast, no changes needed */

/* =============================================================
   Fakturácia — Redesign (SPO-164)
   ============================================================= */

.badge--secondary {
  background: var(--paper-2);
  color: var(--muted);
  border: 1px solid var(--rule);
}

.fakturacia-row {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.fakturacia-info {
  flex: 0 0 auto;
}

.fakturacia-nazov {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.fakturacia-daty {
  font-size: var(--font-size-sm);
}

.fakturacia-form {
  flex: 1 1 auto;
}

.fakturacia-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: flex-end;
}

.fakturacia-error {
  color: var(--color-error-dark);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
}

@media (min-width: 640px) {
  .fakturacia-row {
    flex-direction: row;
    align-items: flex-start;
  }
  .fakturacia-info {
    flex: 0 0 220px;
    min-width: 0;
  }
}

/* =============================================================
   Porovnanie — Redesign (SPO-164)
   ============================================================= */

.porovnanie-tabs {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.porovnanie-legenda {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.porovnanie-legenda__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.porovnanie-legenda__farba {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.porovnanie-legenda__farba--my   { background: var(--color-primary); }
.porovnanie-legenda__farba--vy   { background: var(--color-success); }
.porovnanie-legenda__farba--mati { background: var(--color-warning); }


/* =============================================================
   Shared Date Range Picker popup — SPO-197
   ============================================================= */
.range-picker-popup {
  position: absolute;
  z-index: 1100;
  background: #fff;
  border: 1px solid var(--color-gray-300, #cbd5e1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  padding: 0.75rem;
  width: 320px;
  font-size: 0.9rem;
  user-select: none;
}

/* Header: prev / month label / next */
.rp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.rp-month-label {
  font-weight: 600;
  font-size: 0.95rem;
}
.rp-nav {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 0.25rem;
  color: var(--color-primary, #2563eb);
  border-radius: 6px;
  transition: background 0.12s;
}
.rp-nav:hover {
  background: var(--color-gray-100, #f1f5f9);
}

/* Day-of-week header row */
.rp-dow-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 0.25rem;
}
.rp-dow {
  text-align: center;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--color-gray-500, #64748b);
  padding: 0.2rem 0;
}

/* Day grid */
.rp-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.rp-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.1s, color 0.1s;
  color: inherit;
  padding: 0;
}
.rp-day:hover:not(.rp-day--empty) {
  background: var(--color-gray-100, #f1f5f9);
}
.rp-day--empty {
  cursor: default;
  pointer-events: none;
}
.rp-day--today {
  font-weight: 700;
  color: var(--color-primary, #2563eb);
}
.rp-day--in-range {
  background: #dbeafe;
  border-radius: 0;
  color: var(--color-primary, #1d4ed8);
}
.rp-day--start,
.rp-day--end {
  background: var(--color-primary, #2563eb) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 6px;
}

/* Hint text below grid */
.rp-hint {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-gray-500, #64748b);
}

/* ============================================================
   Login page
   ============================================================ */
/* Login modal overlay */
.login-page {
  background: transparent;
}
.login-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: loginFadeIn 0.2s ease;
}
.login-modal {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  padding: 2rem 2rem 2.25rem;
  animation: loginSlideUp 0.25s ease;
}
.login-modal__title {
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--color-primary, #2563eb);
}
@keyframes loginFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes loginSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.login-page-legacy {
  background: var(--color-gray-50, #f8fafc);
  min-height: 100vh;
}
.login-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px);
  padding: 2rem 1rem;
}
.login-wrap {
  width: 100%;
  max-width: 360px;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}
.login-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-primary, #2563eb);
}
.login-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-gray-700, #374151);
}
.login-input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--color-gray-300, #d1d5db);
  border-radius: 6px;
  margin-bottom: 1rem;
  box-sizing: border-box;
}
.login-input:focus {
  outline: none;
  border-color: var(--color-primary, #2563eb);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}
.login-btn {
  display: block;
  width: 100%;
  padding: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary, #2563eb);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.5rem;
}
.login-btn:hover {
  background: #1d4ed8;
}
.logout-form {
  margin-left: auto;
}
.logout-btn {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 6px;
  cursor: pointer;
}
.logout-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.9);
}
.m-nav__logout {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: var(--color-gray-700, #374151);
}

/* Upload progress bar */
.upload-progress {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.upload-progress__bar {
  width: 4rem;
  height: 0.5rem;
  accent-color: var(--brand-2);
}

.upload-progress__pct {
  font-size: 0.75rem;
  color: var(--color-gray-700, #374151);
  line-height: 1;
}

.upload-error {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-danger, #dc2626);
  text-align: center;
}

.upload-processing {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-gray-600, #4b5563);
}
