/* HelloWorship · Poranek. Plik generowany z resources/poranek — nie edytuj ręcznie. */
/* ==== css/tokens.css ==== */
/* Tokeny stylu F · Poranek. Jedyne miejsce, w którym wpisujemy kolory. */
:root,
[data-bs-theme="light"] {
  --hw-bg: #F1F5F9;
  --hw-surface: #FFFFFF;
  --hw-surface-2: #F1F5F9;
  --hw-ink: #1E293B;
  --hw-ink-2: #334155;
  --hw-muted: #475569;
  --hw-line: #E2E8F0;
  --hw-line-2: #CBD5E1;

  /* Ciemne karty wyróżnione (najbliższa próba, podsumowania) */
  --hw-hero: #1E293B;
  --hw-hero-2: #334155;
  --hw-hero-ink: #FFFFFF;
  --hw-hero-muted: #CBD5E1;

  --hw-accent: var(--dashui-primary, #624BFF);
  --hw-accent-ink: #FFFFFF;
  --hw-accent-ring: rgba(98, 75, 255, 0.18);

  --hw-ok: #198754;
  --hw-ok-soft: #D1E7DD;
  --hw-warn: #FFC107;
  --hw-warn-soft: #FFF3CD;
  --hw-bad: #DC3545;
  --hw-bad-soft: #F8D7DA;

  /* Dekoracja „słońca” */
  --hw-sun-outer: #E2E8F0;
  --hw-sun-inner: var(--hw-accent);

  --hw-r-card: 30px;
  --hw-r-tile: 22px;
  --hw-r-field: 24px;
  --hw-r-pill: 999px;

  --hw-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hw-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --hw-mono: "DM Mono", ui-monospace, "SFMono-Regular", monospace;
}

[data-bs-theme="dark"] {
  --hw-bg: #0F172A;
  --hw-surface: #1E293B;
  --hw-surface-2: #172033;
  --hw-ink: #F1F5F9;
  --hw-ink-2: #E2E8F0;
  --hw-muted: #94A3B8;
  --hw-line: #334155;
  --hw-line-2: #475569;

  --hw-hero: #334155;
  --hw-hero-2: #475569;
  --hw-hero-ink: #FFFFFF;
  --hw-hero-muted: #CBD5E1;

  --hw-accent-ring: rgba(161, 147, 255, 0.28);

  --hw-ok-soft: rgba(25, 135, 84, 0.22);
  --hw-warn-soft: rgba(255, 193, 7, 0.2);
  --hw-bad-soft: rgba(220, 53, 69, 0.22);

  --hw-sun-outer: #1E293B;
}

/* ==== css/base.css ==== */
/* Reset i typografia. Interfejs Poranek nie korzysta z Bootstrapa. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.hw {
  margin: 0;
  min-height: 100vh;
  background: var(--hw-bg);
  color: var(--hw-ink-2);
  font: 400 15px/1.5 var(--hw-font);
  -webkit-font-smoothing: antialiased;
}
.hw h1, .hw h2, .hw h3, .hw h4 { margin: 0; font-family: var(--hw-display); color: var(--hw-ink); letter-spacing: -0.02em; line-height: 1.1; }
.hw h1 { font-weight: 800; letter-spacing: -0.035em; }
.hw h2 { font-weight: 700; }
.hw h3 { font-weight: 700; font-size: 19px; }
.hw p { margin: 0; }
.hw a { color: var(--hw-accent); text-decoration: none; }
.hw a:hover { text-decoration: underline; }
.hw img { max-width: 100%; }
.hw button, .hw input, .hw select, .hw textarea { font: inherit; color: inherit; }
.hw button { cursor: pointer; }
.hw :focus-visible { outline: 3px solid var(--hw-accent-ring); outline-offset: 2px; }
.hw code, .hw .mono { font-family: var(--hw-mono); }
.hw hr { border: 0; border-top: 1px solid var(--hw-line); margin: 0; }

.hw-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hw-muted { color: var(--hw-muted); }
.hw-small { font-size: 13px; }
.hw-strong { font-weight: 700; color: var(--hw-ink); }
.hw-display { font-family: var(--hw-display); }
.hw-nowrap { white-space: nowrap; }
.hw-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hw-break { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .hw *, .hw *::before, .hw *::after { transition: none !important; animation: none !important; }
}

/* ==== css/shell.css ==== */
/* Szkielet aplikacji: boczne menu + górny pasek + treść. */
.hw-shell { display: flex; min-height: 100vh; position: relative; overflow-x: clip; }

/* Dekoracja „słońca” */
.hw-shell::before, .hw-shell::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.hw-shell::before { top: -220px; right: -160px; width: 520px; height: 520px; background: var(--hw-sun-outer); }
.hw-shell::after { top: -130px; right: -70px; width: 300px; height: 300px; background: var(--hw-sun-inner); }

/* --- Boczne menu --- */
.hw-side {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 270px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 24px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 20;
  background: var(--hw-bg);
  scrollbar-width: thin;
}
.hw-brand { display: flex; align-items: center; gap: 10px; padding: 2px 12px 6px; color: var(--hw-ink); }
.hw-brand:hover { text-decoration: none; }
.hw-brand-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--hw-accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hw-brand-mark::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; }
.hw-brand-name { font: 800 19px/1 var(--hw-display); letter-spacing: -0.02em; }
.hw-brand img { max-height: 38px; max-width: 190px; object-fit: contain; }
.hw-brand .hw-logo-dark { display: none; }
[data-bs-theme="dark"] .hw-brand .hw-logo-dark { display: block; }
[data-bs-theme="dark"] .hw-brand .hw-logo-light { display: none; }

.hw-nav { display: flex; flex-direction: column; gap: 2px; }
.hw-nav-link {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--hw-r-pill);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hw-ink-2) !important;
  text-decoration: none !important;
}
.hw-nav-link:hover { background: var(--hw-surface); }
.hw-nav-link .hw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hw-line-2); flex-shrink: 0; }
.hw-nav-link[aria-current="page"] { background: var(--hw-hero); color: var(--hw-hero-ink) !important; }
.hw-nav-link[aria-current="page"] .hw-dot { background: var(--hw-accent); }
[data-bs-theme="dark"] .hw-nav-link[aria-current="page"] .hw-dot { background: #FFFFFF; }
.hw-nav-link .hw-count { margin-left: auto; }
.hw-nav-group > summary {
  list-style: none;
  height: 38px;
  margin-top: 6px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-radius: var(--hw-r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hw-muted);
  cursor: pointer;
}
.hw-nav-group > summary::-webkit-details-marker { display: none; }
.hw-nav-group > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; }
.hw-nav-group[open] > summary::after { transform: rotate(-135deg); }
.hw-nav-group.is-active > summary { color: var(--hw-ink); }
.hw-nav-pinned { padding: 8px 14px 2px 34px; font-size: 11px; font-weight: 700; color: var(--hw-muted); }
.hw-nav-pin { height: 34px; padding: 0 14px 0 34px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hw-ink-2) !important; }
.hw-nav-pin::before { content: "★"; color: var(--hw-warn); font-size: 12px; }

.hw-side-card { margin-top: auto; padding: 16px; border-radius: 24px; background: var(--hw-hero); color: var(--hw-hero-ink); display: flex; flex-direction: column; gap: 8px; }
.hw-side-card strong { font: 700 15px var(--hw-display); }
.hw-side-card span { font-size: 13px; line-height: 1.4; color: var(--hw-hero-muted); }
.hw-side-card a { height: 38px; border-radius: var(--hw-r-pill); background: #FFFFFF; color: #1E293B; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* --- Treść --- */
.hw-main { flex: 1; min-width: 0; position: relative; z-index: 1; padding: 20px clamp(16px, 3vw, 36px) 48px; display: flex; flex-direction: column; gap: 22px; }
.hw-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hw-top .hw-search { flex: 1 1 280px; max-width: 480px; }
.hw-top-spacer { flex: 1; }
.hw-btn.hw-burger { display: none; }

/* --- Wąskie ekrany: menu jako wysuwany panel --- */
@media (max-width: 991.98px) {
  .hw-side {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 0 0 100vmax transparent;
  }
  .hw-menu-open .hw-side { transform: none; box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.45); }
  .hw-btn.hw-burger { display: inline-flex; }
  .hw-shell::before { width: 300px; height: 300px; top: -150px; right: -120px; }
  .hw-shell::after { width: 170px; height: 170px; top: -90px; right: -60px; }
}

/* --- Widok osadzony w aplikacji iOS (WKWebView) --- */
.hw-embedded .hw-side, .hw-embedded .hw-top { display: none; }
.hw-embedded .hw-main { padding-top: 16px; }

/* --- Strony bez menu (logowanie) --- */
.hw-bare .hw-shell::before, .hw-bare .hw-shell::after { display: none; }

/* ==== css/components.css ==== */
/* Komponenty: nagłówek strony, karty, przyciski, zakładki, etykiety, daty, awatary, menu rozwijane, powiadomienia. */

/* Nagłówek strony */
.hw-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.hw-head-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hw-kicker { font-size: 14px; font-weight: 500; color: var(--hw-muted); }
.hw-kicker a { font-weight: 700; color: var(--hw-ink-2); }
.hw-head h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.02; }
.hw-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Układ */
.hw-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.hw-row.is-stretch { align-items: stretch; }
.hw-col-3 { flex: 3 1 540px; min-width: 0; }
.hw-col-2 { flex: 2 1 340px; min-width: 0; }
.hw-col-1 { flex: 1 1 280px; min-width: 0; }
.hw-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hw-stack.is-tight { gap: 8px; }
.hw-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hw-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--hw-min, 260px), 1fr)); gap: 14px; }
.hw-sticky { position: sticky; top: 20px; }
@media (max-width: 991.98px) { .hw-sticky { position: static; } }

/* Karty */
.hw-card { background: var(--hw-surface); border: 1px solid var(--hw-line); border-radius: var(--hw-r-card); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hw-card.is-flush { padding: 0; gap: 0; overflow: hidden; }
.hw-card.is-flush > .hw-card-head { padding: 18px 22px; border-bottom: 1px solid var(--hw-line); }
.hw-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hw-card-head h2 { font-size: 19px; }
.hw-card-head .hw-small { color: var(--hw-muted); }
.hw-card.is-soft { background: var(--hw-surface-2); }
.hw-tile { background: var(--hw-surface-2); border-radius: var(--hw-r-tile); padding: 12px 14px; }

.hw-hero { background: var(--hw-hero); color: var(--hw-hero-ink); border-radius: 34px; padding: 26px; display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-end; justify-content: space-between; }
.hw-hero h2 { color: var(--hw-hero-ink); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.hw-hero .hw-muted, .hw-hero-muted { color: var(--hw-hero-muted); }
.hw-hero .hw-btn.is-ghost { color: #FFFFFF !important; border-color: #475569; }
.hw-hero .hw-btn.is-ghost:hover { border-color: #CBD5E1; }
.hw-hero .hw-chip:not(.is-on) { background: var(--hw-hero-2); border-color: var(--hw-hero-2); color: #FFFFFF !important; }
.hw-hero .hw-tile { background: var(--hw-hero-2); }
.hw-hero.is-stack { flex-direction: column; align-items: stretch; }

/* Kafelki liczb */
.hw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.hw-stat { background: var(--hw-surface); border: 1px solid var(--hw-line); border-radius: 28px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; color: var(--hw-ink) !important; text-decoration: none !important; }
a.hw-stat:hover { border-color: var(--hw-line-2); }
.hw-stat-label { font-size: 13px; font-weight: 700; color: var(--hw-muted); }
.hw-stat-value { font: 800 38px/1 var(--hw-display); letter-spacing: -0.03em; }
.hw-stat-foot { font-size: 13px; color: var(--hw-muted); }
.hw-stat.is-dark { background: var(--hw-hero); border-color: var(--hw-hero); color: var(--hw-hero-ink) !important; }
.hw-stat.is-dark .hw-stat-label, .hw-stat.is-dark .hw-stat-foot { color: var(--hw-hero-muted); }

/* Przyciski */
.hw-btn {
  height: 46px;
  padding: 0 20px;
  border-radius: var(--hw-r-pill);
  border: 1px solid var(--hw-line);
  background: var(--hw-surface);
  color: var(--hw-ink) !important;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none !important;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}
.hw-btn:hover { border-color: var(--hw-line-2); }
.hw-btn.is-primary { background: var(--hw-accent); border-color: var(--hw-accent); color: var(--hw-accent-ink) !important; }
.hw-btn.is-primary:hover { opacity: 0.9; }
.hw-btn.is-dark { background: var(--hw-hero); border-color: var(--hw-hero); color: var(--hw-hero-ink) !important; }
.hw-btn.is-ok { background: var(--hw-ok); border-color: var(--hw-ok); color: #FFFFFF !important; }
.hw-btn.is-danger { background: var(--hw-surface); border-color: var(--hw-line); color: var(--hw-bad) !important; }
.hw-btn.is-danger-solid { background: var(--hw-bad); border-color: var(--hw-bad); color: #FFFFFF !important; }
.hw-btn.is-ghost { background: transparent; }
.hw-btn.is-white { background: #FFFFFF; border-color: #FFFFFF; color: #1E293B !important; }
.hw-btn.is-dashed { border-style: dashed; border-color: var(--hw-line-2); background: transparent; color: var(--hw-ink-2) !important; }
.hw-btn.is-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.hw-btn.is-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.hw-btn.is-block { width: 100%; }
.hw-btn.is-icon { width: 44px; padding: 0; }
.hw-btn.is-icon.is-sm { width: 34px; }
.hw-btn[disabled], .hw-btn.is-disabled { opacity: 0.45; pointer-events: none; }
.hw-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.hw-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--hw-r-pill); background: var(--hw-bad); color: #FFFFFF; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.hw-icon-btn { position: relative; }
.hw-icon-btn .hw-count { position: absolute; top: -4px; right: -4px; }

/* Zakładki podsekcji i chipy filtrów */
.hw-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.hw-tabs::-webkit-scrollbar { display: none; }
.hw-chip {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--hw-r-pill);
  border: 1px solid var(--hw-line);
  background: var(--hw-surface);
  color: var(--hw-ink-2) !important;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none !important;
}
.hw-chip.is-on, .hw-chip[aria-current="page"], .hw-chip[aria-pressed="true"] { background: var(--hw-hero); border-color: var(--hw-hero); color: var(--hw-hero-ink) !important; }
.hw-chip.is-sm { height: 32px; padding: 0 12px; font-size: 12px; }

.hw-seg { display: inline-flex; padding: 4px; border-radius: var(--hw-r-pill); background: var(--hw-line); gap: 2px; }
.hw-seg > a, .hw-seg > button, .hw-seg > label { height: 36px; padding: 0 14px; border: 0; border-radius: var(--hw-r-pill); background: transparent; color: var(--hw-muted) !important; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; text-decoration: none !important; cursor: pointer; }
.hw-seg > .is-on, .hw-seg > [aria-current="page"], .hw-seg input:checked + span { background: var(--hw-surface); color: var(--hw-ink) !important; }
.hw-seg > label { padding: 0; }
.hw-seg > label > span { height: 36px; padding: 0 14px; border-radius: var(--hw-r-pill); display: inline-flex; align-items: center; }
.hw-seg > label > input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* Etykiety statusu i tagi */
.hw-status { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--hw-r-pill); font-size: 12px; font-weight: 700; color: var(--hw-ink); background: var(--hw-surface-2); white-space: nowrap; }
.hw-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hw-line-2); }
.hw-status.is-ok { background: var(--hw-ok-soft); } .hw-status.is-ok::before { background: var(--hw-ok); }
.hw-status.is-warn { background: var(--hw-warn-soft); } .hw-status.is-warn::before { background: var(--hw-warn); }
.hw-status.is-bad { background: var(--hw-bad-soft); } .hw-status.is-bad::before { background: var(--hw-bad); }
.hw-status.is-accent { background: var(--hw-accent); color: #FFFFFF; } .hw-status.is-accent::before { background: #FFFFFF; }
.hw-tag { height: 24px; padding: 0 10px; border-radius: var(--hw-r-pill); background: var(--hw-line); color: var(--hw-ink-2); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
.hw-key { min-width: 36px; height: 28px; padding: 0 9px; border-radius: var(--hw-r-pill); background: var(--hw-surface-2); color: var(--hw-accent); font: 800 13px var(--hw-display); display: inline-flex; align-items: center; justify-content: center; }
.hw-pill-dark { height: 26px; padding: 0 10px; border-radius: var(--hw-r-pill); background: var(--hw-hero); color: var(--hw-hero-ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; }

/* Kafelek daty i awatar */
.hw-date { width: 52px; height: 56px; border-radius: 18px; background: var(--hw-surface-2); color: var(--hw-ink); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.hw-date small { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--hw-muted); }
.hw-date b { font: 800 20px var(--hw-display); margin-top: 3px; }
.hw-date.is-accent { background: var(--hw-accent); color: #FFFFFF; } .hw-date.is-accent small { color: #FFFFFF; }
.hw-date.is-dark { background: var(--hw-hero); color: #FFFFFF; } .hw-date.is-dark small { color: var(--hw-hero-muted); }

.hw-ava { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: var(--hw-line); color: var(--hw-ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.hw-ava.is-sm { width: 30px; height: 30px; font-size: 11px; }
.hw-ava.is-lg { width: 76px; height: 76px; font: 800 28px var(--hw-display); }
.hw-avas { display: inline-flex; }
.hw-avas > * { margin-left: -8px; border: 2px solid var(--hw-surface); }
.hw-avas > *:first-child { margin-left: 0; }

/* Menu rozwijane na <details> */
.hw-menu { position: relative; }
.hw-menu > summary { list-style: none; }
.hw-menu > summary::-webkit-details-marker { display: none; }
.hw-menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; max-width: min(360px, 90vw); padding: 8px; border-radius: 20px; border: 1px solid var(--hw-line); background: var(--hw-surface); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14); z-index: 50; display: flex; flex-direction: column; gap: 2px; }
.hw-menu-pop.is-left { right: auto; left: 0; }
.hw-menu-item { min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 0; background: transparent; color: var(--hw-ink-2) !important; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; text-decoration: none !important; }
.hw-menu-item:hover { background: var(--hw-surface-2); }
.hw-menu-item.is-on { background: var(--hw-hero); color: #FFFFFF !important; }
.hw-menu-head { padding: 8px 12px 4px; font-size: 12px; font-weight: 700; color: var(--hw-muted); }

/* Pusty stan */
.hw-empty { border: 1px dashed var(--hw-line-2); border-radius: var(--hw-r-tile); padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--hw-muted); }
.hw-empty strong { font: 700 18px var(--hw-display); color: var(--hw-ink); }

/* Komunikaty (flash) */
.hw-toasts { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.hw-toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: var(--hw-hero); color: #FFFFFF; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25); animation: hw-in 0.18s ease-out; }
.hw-toast::before { content: ""; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; flex-shrink: 0; background: var(--hw-accent); }
.hw-toast.is-ok::before { background: #34D399; } .hw-toast.is-bad::before { background: #F87171; } .hw-toast.is-warn::before { background: var(--hw-warn); }
.hw-toast div { flex: 1; white-space: pre-line; font-size: 14px; }
.hw-toast button { border: 0; background: transparent; color: #CBD5E1; font-size: 18px; line-height: 1; padding: 2px 4px; }
@keyframes hw-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Paginacja */
.hw-pages { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.hw-pages a, .hw-pages span { min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--hw-r-pill); border: 1px solid var(--hw-line); background: var(--hw-surface); color: var(--hw-ink) !important; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; }
.hw-pages [aria-current="page"] { background: var(--hw-hero); border-color: var(--hw-hero); color: #FFFFFF !important; }
.hw-pages .is-off { opacity: 0.45; }

/* Okno dialogowe */
.hw-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--hw-line); border-radius: var(--hw-r-card, 28px); background: var(--hw-surface); color: var(--hw-ink); box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3); }
.hw-dialog::backdrop { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(2px); }
.hw-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 0; }
.hw-dialog-body { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 16px; }

/* ==== css/forms.css ==== */
/* Formularze: pola-pigułki, etykiety, checkboxy, przełączniki, karty wyboru, pliki. */
.hw-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hw-label { font-size: 13px; font-weight: 700; color: var(--hw-muted); }
.hw-label .hw-req { color: var(--hw-bad); }
.hw-help { font-size: 12px; color: var(--hw-muted); }
.hw-error { font-size: 13px; font-weight: 600; color: var(--hw-bad); }
.hw-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--hw-min, 220px), 1fr)); gap: 14px; }

.hw-input, .hw-select, .hw-textarea {
  width: 100%;
  min-height: 48px;
  border-radius: var(--hw-r-field);
  border: 1px solid var(--hw-line);
  background: var(--hw-surface-2);
  color: var(--hw-ink);
  padding: 0 18px;
  font-size: 15px;
  font-weight: 500;
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.hw-textarea { padding: 14px 18px; border-radius: 22px; line-height: 1.5; resize: vertical; min-height: 110px; }
.hw-textarea.is-mono { font-family: var(--hw-mono); font-size: 14px; }
.hw-select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 22px center, right 17px center; background-size: 5px 5px; background-repeat: no-repeat; }
.hw-select[multiple] { background-image: none; padding: 10px 14px; min-height: 140px; border-radius: 22px; }
.hw-input::placeholder, .hw-textarea::placeholder { color: #64748B; }
.hw-input:focus, .hw-select:focus, .hw-textarea:focus { background-color: var(--hw-surface); border-color: var(--hw-accent); box-shadow: 0 0 0 3px var(--hw-accent-ring); }
.hw-input.is-invalid, .hw-select.is-invalid, .hw-textarea.is-invalid { border-color: var(--hw-bad); }
.hw-input.is-sm, .hw-select.is-sm { min-height: 38px; font-size: 13px; padding: 0 14px; }
.hw-select.is-sm { padding-right: 34px; background-position: right 17px center, right 12px center; }
.hw-input.is-white, .hw-select.is-white, .hw-textarea.is-white { background-color: var(--hw-surface); }

.hw-search { position: relative; display: flex; }
.hw-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--hw-muted); pointer-events: none; }
.hw-search .hw-input { padding-left: 46px; background-color: var(--hw-surface); }

.hw-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--hw-ink); cursor: pointer; }
.hw-check input { width: 20px; height: 20px; accent-color: var(--hw-accent); flex-shrink: 0; margin: 0; }

/* Przełącznik */
.hw-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--hw-ink); }
.hw-switch input { appearance: none; width: 46px; height: 26px; border-radius: 13px; background: var(--hw-line-2); position: relative; margin: 0; flex-shrink: 0; transition: background 0.2s; cursor: pointer; }
.hw-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; transition: transform 0.2s; }
.hw-switch input:checked { background: var(--hw-ok); }
.hw-switch input:checked::after { transform: translateX(20px); }
.hw-switch input:disabled { opacity: 0.5; }

/* Karty wyboru (checkbox/radio w ramce) */
.hw-pick { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; border: 2px solid transparent; background: var(--hw-surface-2); cursor: pointer; font-size: 14px; font-weight: 700; color: var(--hw-ink); }
.hw-pick:has(input:checked) { background: var(--hw-surface); border-color: var(--hw-accent); }
.hw-pick input { width: 20px; height: 20px; accent-color: var(--hw-accent); flex-shrink: 0; margin: 0; }
.hw-pick .hw-pick-sub { display: block; font-size: 12px; font-weight: 500; color: var(--hw-muted); }
.hw-pick.is-card { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; }
.hw-pick.is-card input { position: absolute; opacity: 0; }
.hw-pick.is-hidden-input input { position: absolute; opacity: 0; }

/* Pole pliku */
.hw-drop { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; border: 2px dashed var(--hw-line-2); background: var(--hw-surface-2); cursor: pointer; color: var(--hw-ink-2); }
.hw-drop:hover { border-color: var(--hw-accent); }
.hw-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hw-drop-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--hw-surface); color: var(--hw-accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hw-drop-name { font-weight: 700; }

/* Licznik ± */
.hw-stepper { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 3px; border-radius: var(--hw-r-pill); background: var(--hw-surface); border: 1px solid var(--hw-line); }
.hw-stepper button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--hw-surface-2); color: var(--hw-ink); font-weight: 700; }
.hw-stepper input { width: 46px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 13px; color: var(--hw-ink); outline: 0; }

.hw-form-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--hw-line); }

/* Wiersze edytowalnych list (sekcje utworu, punkty planu, utwory setu) */
.hw-editrow { border-radius: 24px; background: var(--hw-surface-2); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.hw-editrow-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hw-num { width: 30px; height: 30px; border-radius: 50%; background: var(--hw-hero); color: #FFFFFF; font: 800 13px var(--hw-display); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hw-num.is-accent { background: var(--hw-accent); }
.hw-num.is-soft { background: var(--hw-surface-2); color: var(--hw-ink); }
.hw-handle { cursor: grab; color: var(--hw-muted); padding: 0 4px; user-select: none; }
.hw-mini { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hw-line); background: var(--hw-surface); color: var(--hw-ink-2); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hw-mini.is-bad { color: var(--hw-bad); }
.hw-mini svg { width: 14px; height: 14px; }
.hw-editrow.is-folded [data-fold-body] { display: none; }
.hw-editrow.is-folded [data-repeater-fold] svg { transform: rotate(180deg); }

/* Podgląd ustawień utworów: przyklejony panel z ramką */
.hw-seg > button.active { background: var(--hw-surface); color: var(--hw-ink) !important; }
.hw-sticky-preview { display: flex; flex-direction: column; gap: 12px; }
.hw-sticky-preview iframe { width: 100%; height: 70vh; min-height: 300px; border: 1px solid var(--hw-line); border-radius: var(--hw-r-tile); background: #FFFFFF; }
@media (min-width: 1200px) {
  .hw-sticky-preview { position: sticky; top: 16px; align-self: flex-start; height: calc(100dvh - 32px); }
  .hw-sticky-preview iframe { flex: 1 1 0; height: auto; min-height: 0; }
}

/* ==== css/data.css ==== */
/* Tabele, listy, wiersze, akordy, kalendarz, wykresy słupkowe. */
.hw-table-wrap { overflow-x: auto; }
.hw-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hw-table th { text-align: left; padding: 12px 14px; font-size: 12px; font-weight: 700; color: var(--hw-muted); white-space: nowrap; }
.hw-table td { padding: 13px 14px; border-top: 1px solid var(--hw-line); vertical-align: middle; }
.hw-table td.is-num, .hw-table th.is-num { text-align: right; }
.hw-table tbody tr:hover td { background: var(--hw-surface-2); }
.hw-table a.hw-strong { color: var(--hw-ink); }

.hw-list { display: flex; flex-direction: column; }
.hw-list-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--hw-line); min-width: 0; }
.hw-list-row:first-child { border-top: 0; }
.hw-list.is-padded .hw-list-row { padding-left: 22px; padding-right: 22px; }
.hw-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hw-list-title { font-size: 15px; font-weight: 700; color: var(--hw-ink); }
a.hw-list-title:hover { color: var(--hw-accent); }
.hw-list-meta { font-size: 13px; color: var(--hw-muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }

/* Wpis / komentarz */
.hw-post { display: flex; flex-direction: column; gap: 12px; }
.hw-post-head { display: flex; align-items: center; gap: 12px; }
.hw-post-body { font-size: 16px; line-height: 1.55; color: var(--hw-ink); white-space: pre-line; overflow-wrap: anywhere; }
.hw-bubble { background: var(--hw-surface-2); border-radius: 18px; padding: 10px 14px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }

/* Tekst z akordami */
.hw-sheet { border-radius: 24px; background: var(--hw-surface-2); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.hw-sheet-sec { display: flex; flex-direction: column; gap: 4px; }
.hw-sheet pre { margin: 0; font-family: var(--hw-mono); font-size: 14px; line-height: 1.5; white-space: pre-wrap; color: var(--hw-ink); }
.hw-sheet .hw-chords { color: var(--hw-accent); font-weight: 500; }

/* Kalendarz miesięczny */
.hw-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; min-width: 640px; }
.hw-cal-dow { font-size: 12px; font-weight: 700; color: var(--hw-muted); padding: 4px 10px; }
.hw-cal-day { min-height: 108px; border-radius: 18px; border: 1px solid var(--hw-line); background: var(--hw-surface); padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hw-cal-day.is-out { background: var(--hw-surface-2); border-color: transparent; color: #64748B; }
.hw-cal-day.is-today .hw-cal-num { background: var(--hw-hero); color: #FFFFFF; }
.hw-cal-num { align-self: flex-start; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; font: 800 13px var(--hw-display); display: inline-flex; align-items: center; justify-content: center; }
.hw-cal-ev { display: block; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--hw-accent); color: #FFFFFF !important; text-decoration: none !important; }
.hw-cal-ev.is-event { background: var(--hw-ok); }
.hw-cal-ev.is-room { background: var(--hw-warn); color: #1E293B !important; }
.hw-cal-ev.is-other { background: var(--hw-hero); }

/* Oś czasu sal */
.hw-timeline { min-width: 680px; display: flex; flex-direction: column; gap: 8px; }
.hw-timeline-hours { display: flex; padding-left: 160px; }
.hw-timeline-hours span { flex: 1; font-size: 12px; font-weight: 700; color: var(--hw-muted); border-left: 1px solid var(--hw-line); padding-left: 6px; }
.hw-timeline-row { display: flex; min-height: 64px; }
.hw-timeline-room { width: 160px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; padding-right: 12px; }
.hw-timeline-track { flex: 1; position: relative; border-radius: 18px; background: var(--hw-surface-2); }
.hw-timeline-block { position: absolute; top: 6px; bottom: 6px; border-radius: 14px; padding: 6px 10px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; font-size: 11px; background: var(--hw-ok); color: #FFFFFF !important; text-decoration: none !important; min-width: 8px; }
.hw-timeline-block b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-timeline-block.is-pending { background: var(--hw-warn); color: #1E293B !important; }
.hw-timeline-block.is-mine { background: var(--hw-accent); }

/* Poziome słupki (statystyki) */
.hw-bars { display: flex; flex-direction: column; gap: 4px; }
.hw-bar-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.hw-bar-label { width: 170px; flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--hw-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-bar-track { flex: 1; height: 18px; position: relative; border-left: 1px solid var(--hw-line-2); }
.hw-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--hw-accent); }
.hw-bar-value { width: 44px; text-align: right; font-size: 13px; font-weight: 700; color: var(--hw-ink-2); }
.hw-meter { width: 90px; height: 6px; border-radius: 3px; background: var(--hw-line); overflow: hidden; display: inline-block; vertical-align: middle; }
.hw-meter > span { display: block; height: 100%; border-radius: 3px; background: var(--hw-ok); }
.hw-meter.is-warn > span { background: var(--hw-warn); }
.hw-meter.is-bad > span { background: var(--hw-bad); }

/* Macierz uprawnień */
.hw-perm { display: flex; align-items: center; gap: 12px; border-radius: 18px; background: var(--hw-surface-2); padding: 10px 12px; }
.hw-perm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hw-perm-text b { font-size: 14px; color: var(--hw-ink); }
.hw-perm-text code { font-size: 11px; color: var(--hw-muted); }

/* ==== css/pages.css ==== */
/* Strony z własnym układem: logowanie / rejestracja. */
.hw-auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.hw-auth-hero { flex: 1 1 480px; min-height: 380px; position: relative; overflow: hidden; background: #1E293B; color: #FFFFFF; padding: 40px clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hw-auth-hero::before, .hw-auth-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hw-auth-hero::before { bottom: -260px; right: -200px; width: 640px; height: 640px; background: #334155; }
.hw-auth-hero::after { bottom: -150px; right: -90px; width: 400px; height: 400px; background: var(--hw-accent); }
.hw-auth-hero > * { position: relative; z-index: 1; }
.hw-auth-hero .hw-brand { padding: 0; color: #FFFFFF; }
.hw-auth-hero h1 { color: #FFFFFF; font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -0.04em; max-width: 560px; }
.hw-auth-hero p { margin-top: 16px; font-size: 17px; line-height: 1.5; color: #CBD5E1; max-width: 520px; }
.hw-auth-hero .hw-pill-dark { background: #334155; height: 34px; padding: 0 14px; font-size: 13px; }
.hw-auth-panel { flex: 1 1 440px; padding: 32px clamp(20px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.hw-auth-card { width: 100%; max-width: 460px; align-self: center; }
.hw-auth-card.hw-card { border-radius: 34px; padding: 32px; gap: 18px; }
.hw-auth-card h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.hw-auth-card .hw-input { min-height: 52px; border-radius: 26px; }
.hw-divider { display: flex; align-items: center; gap: 10px; color: var(--hw-muted); font-size: 13px; }
.hw-divider::before, .hw-divider::after { content: ""; flex: 1; height: 1px; background: var(--hw-line); }
