/* ==========================================================================
   sprzet.app — animowana prezentacja aplikacji (strona główna, hero)
   Scena to makieta aplikacji w stałym rozmiarze 1280×720 px (.da-canvas),
   którą /demo-anim.js skaluje i prowadzi „kamerą” po ważnych miejscach.
   Kolory i wymiary makiety odpowiadają prawdziwej aplikacji (src/…/*.css).
   ========================================================================== */

.demo-anim {
  margin: 0;
  container-type: inline-size;
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
}

/* ── Okno sceny ───────────────────────────────────────────────────────── */

.da-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: #0a0a0b;
  cursor: pointer;
}
@container (max-width: 759px) { .da-stage { aspect-ratio: 4 / 3; } }
@container (max-width: 559px) { .da-stage { aspect-ratio: 4 / 5; } }

.da-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 720px;
  transform-origin: 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.35;
  color: #ecede8;
  pointer-events: none;
  user-select: none;
}
.da-canvas svg { display: block; flex: none; }

/* ── Aplikacja: nagłówek i pasek statystyk ────────────────────────────── */

.da-app { position: absolute; inset: 0; background: #0a0a0b; }

.da-top {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 72px;
  border-bottom: 1px solid #1a1c1f;
}
.da-brand { position: absolute; left: 24px; top: 13px; display: flex; flex-direction: column; gap: 5px; }
.da-brand img { display: block; width: 141px; height: 24px; }
.da-brand span { font-size: 12px; color: #80868d; }

.da-search {
  position: absolute;
  left: 248px;
  top: 14px;
  width: 452px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #26292d;
  border-radius: 10px;
  background: #111214;
  color: #80868d;
  font-size: 14.5px;
}
.da-search-ph { position: absolute; left: 44px; top: 11px; white-space: nowrap; }
.da-search-q { display: inline-flex; align-items: center; color: #ecede8; font-weight: 600; white-space: pre; }
.da-caret { display: inline-block; width: 2px; height: 19px; margin-left: 1px; background: #f97316; }
.da-search-res {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #a3a8ae;
  font-variant-numeric: tabular-nums;
}

.da-hbtns { position: absolute; right: 24px; top: 14px; display: flex; gap: 8px; }
.da-hbtn {
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #2a2d32;
  border-radius: 10px;
  background: #15171a;
  color: #c9cdd2;
}
.da-hbtn-add { padding: 0 16px 0 12px; border-color: #f97316; background: #f97316; color: #0a0a0b; font-size: 14px; font-weight: 700; }

.da-viewbar {
  position: absolute;
  left: 0;
  top: 72px;
  width: 1280px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
  border-bottom: 1px solid #1a1c1f;
  background: #0d0e10;
}
.da-stat { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #80868d; white-space: nowrap; }
.da-stat i { width: 7px; height: 7px; border-radius: 50%; }
.da-stat b { font-size: 14px; color: #ecede8; font-variant-numeric: tabular-nums; }

/* ── Tablica: kolumny ─────────────────────────────────────────────────── */

.da-board { position: absolute; left: 0; top: 120px; width: 1280px; height: 600px; overflow: hidden; }
.da-board-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 64px;
  background: linear-gradient(rgba(10, 10, 11, 0), #0a0a0b);
}

.da-col {
  position: absolute;
  top: 0;
  width: 320px;
  height: 600px;
  border-right: 1px solid #1a1c1f;
  background: #0a0a0b;
}
.da-col-wh { background: #0d0f0a; }
.da-col-srv { z-index: 1; background: #0f0a0a; }
.da-col-hl { position: absolute; inset: 0; z-index: 1; background: rgba(249, 115, 22, 0.07); opacity: 0; }

.da-col-head { height: 72px; padding: 12px 14px 10px; border-bottom: 1px solid #1a1c1f; }
.da-col-title { display: flex; align-items: center; gap: 10px; height: 28px; }
.da-col-av,
.da-col-icon {
  width: 28px;
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1f2226;
  font-size: 11px;
  font-weight: 700;
  color: #a3a8ae;
}
.da-col-icon { border-radius: 8px; }
.da-col-icon-wh { color: #f5b727; background: rgba(245, 183, 39, 0.12); }
.da-col-icon-srv { color: #ef4444; background: rgba(239, 68, 68, 0.12); }
.da-col-name { flex: 1; min-width: 0; overflow: hidden; font-size: 14px; font-weight: 700; color: #ecede8; white-space: nowrap; text-overflow: ellipsis; }
.da-col-count {
  padding: 2px 8px;
  border-radius: 10px;
  background: #15171a;
  font-size: 12px;
  font-weight: 700;
  color: #8b9096;
  font-variant-numeric: tabular-nums;
}
.da-col-meta { display: flex; align-items: center; margin-top: 4px; padding-left: 38px; font-size: 12px; color: #80868d; white-space: nowrap; }
.da-col-meta > span + span::before { content: '·'; margin: 0 6px; color: #4a4f56; }
.da-col-value { color: #a3a8ae; font-weight: 600; font-variant-numeric: tabular-nums; }
.da-col-pend { color: #c084fc; font-weight: 600; }

.da-col-body { position: relative; padding: 12px; }
.da-empty {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 20px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #33373c;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-style: italic;
  color: #5f646b;
}
.da-empty > span { position: absolute; }
.da-empty.is-drag { border-color: rgba(249, 115, 22, 0.6); color: #f97316; font-style: normal; font-weight: 600; }

/* ── Karta sprzętu (jak EquipmentCard, gęstość „comfortable”) ─────────── */

.da-slot { overflow: hidden; }
.da-card {
  position: relative;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid #262a2f;
  border-radius: 12px;
  background: #141517;
}
.da-card.is-ghost { border-style: dashed; border-color: #5b6168; }
.da-card-top { display: flex; align-items: flex-start; gap: 12px; }
.da-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #1f2226;
  color: #8b9096;
}
.da-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.da-card-main { flex: 1; min-width: 0; }
.da-card-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #ecede8;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.da-card-sub { display: block; margin-top: 3px; overflow: hidden; font-size: 13px; color: #8b9096; white-space: nowrap; text-overflow: ellipsis; }
.da-badges { display: flex; gap: 6px; margin-top: 8px; }
.da-chip { padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.da-w-new { color: #22c55e; background: rgba(34, 197, 94, 0.12); }
.da-w-75 { color: #84cc16; background: rgba(132, 204, 22, 0.12); }
.da-w-50 { color: #eab308; background: rgba(234, 179, 8, 0.12); }
.da-chip-muted { color: #8b9096; background: #1f2226; }
.da-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 31px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #23262a;
  font-size: 13px;
  color: #8b9096;
}
.da-cat { display: inline-flex; align-items: center; gap: 7px; }
.da-cat i { width: 8px; height: 8px; border-radius: 2px; }

/* Oczekujące przekazanie (fioletowy blok na górze karty) */
.da-pend { overflow: hidden; }
.da-pend-in { padding-bottom: 10px; }
.da-pend-box {
  padding: 7px 10px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.08);
  font-size: 12px;
  color: #c084fc;
}
.da-pend-actions { display: flex; gap: 6px; margin-top: 6px; }
.da-accept,
.da-reject { padding: 5px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.da-accept { background: #22c55e; color: #fff; }
.da-reject { padding: 4px 13px; border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; }

/* Karta w trakcie przeciągania */
.da-drag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 296px;
  margin: 0;
  border-color: #f97316;
  background: #191b1e;
  box-shadow: 0 28px 50px -14px rgba(0, 0, 0, 0.9);
  transform-origin: 40% 35%;
  visibility: hidden;
}

/* ── Okna (modale) ────────────────────────────────────────────────────── */

.da-backdrop { position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; }

.da-modal {
  position: absolute;
  left: 410px;
  top: 112px;
  z-index: 4;
  width: 460px;
  padding: 26px 28px 24px;
  border: 1px solid #33373c;
  border-radius: 12px;
  background: #1a1c1f;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform-origin: 50% 40%;
}
.da-modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #8b9096;
}
.da-modal-title { margin: 0; padding-right: 36px; font-size: 19px; font-weight: 700; line-height: 1.25; color: #f2f3ee; }
.da-modal-sub { margin: 4px 0 0; font-size: 13.5px; color: #8b9096; }
.da-sec { margin: 18px 0 8px; font-size: 13px; font-weight: 700; color: #a3a8ae; }
.da-box { padding: 14px 16px; border: 1px solid #2a2d32; border-radius: 10px; background: #15171a; }

.da-btn1,
.da-btn2 {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.da-btn1 { padding: 0 18px; background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.da-btn2 { padding: 0 16px; border: 1px solid #33373c; background: #15171a; color: #ecede8; }

/* Import z Excela */
.da-imp-file { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; }
.da-xls {
  width: 36px;
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
}
.da-imp-file b { display: block; font-size: 14px; color: #ecede8; }
.da-imp-file small { display: block; font-size: 12px; color: #80868d; }
.da-imp-ok { margin-left: auto; padding: 4px 9px; border-radius: 6px; background: rgba(34, 197, 94, 0.12); color: #4ade80; font-size: 12px; font-weight: 700; white-space: nowrap; }
.da-imp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.da-imp-table th {
  padding: 6px 8px;
  border-bottom: 1px solid #2a2d32;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  color: #80868d;
}
.da-imp-table td { padding: 7px 8px; border-bottom: 1px solid #222428; color: #c9cdd2; vertical-align: top; }
.da-imp-table td small { display: block; font-size: 11.5px; color: #80868d; }
.da-imp-more { margin: 8px 0 0 8px; font-size: 12px; color: #80868d; }
.da-imp-foot { position: relative; height: 40px; margin-top: 18px; }
.da-imp-actions { display: flex; justify-content: flex-end; gap: 10px; }
.da-imp-progress { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; font-size: 13px; color: #c9cdd2; opacity: 0; }
.da-imp-bar { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: #2a2d32; }
.da-imp-bar i { display: block; height: 100%; background: #f97316; transform: scaleX(0); transform-origin: 0 50%; }

/* Administracja: kod firmy */
.da-tabs {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid #2a2d32;
  border-radius: 10px;
  background: #15171a;
  font-size: 13px;
  font-weight: 700;
  color: #8b9096;
}
.da-tabs span { padding: 7px 10px; border-radius: 7px; }
.da-tabs .is-on { background: #26292d; color: #ecede8; }
.da-code { display: flex; align-items: center; gap: 14px; }
.da-code small { display: block; font-size: 12px; line-height: 1.4; color: #8b9096; }
.da-code b { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: #f2f3ee; }
.da-copy { position: relative; flex: none; }
.da-copy-b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: #4ade80; opacity: 0; }
.da-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-size: 12.5px; color: #a3a8ae; }
.da-limits b { color: #ecede8; }
.da-limit-bar { display: block; height: 5px; margin-top: 8px; border-radius: 3px; background: #2a2d32; }
.da-limit-bar i { display: block; height: 100%; border-radius: 3px; background: #8b9096; }

/* Szczegóły rzeczy z historią transferów */
.da-modal-detail { top: 104px; padding-top: 44px; }
.da-det-head { display: flex; justify-content: space-between; gap: 16px; }
.da-det-head h4 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; color: #f2f3ee; }
.da-det-head p { margin: 4px 0 0; font-size: 14px; color: #8b9096; }
.da-det-head .da-det-price { margin-top: 6px; font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: #22c55e; }
.da-det-img { width: 72px; height: 72px; flex: none; border-radius: 10px; background: #fff; object-fit: cover; }
.da-hr { height: 1px; margin: 16px 0; background: #2a2d32; }
.da-det-sn { margin: 0; font-size: 13.5px; color: #c9cdd2; }
.da-det-sn span { margin-right: 6px; color: #80868d; }
.da-det-chips { display: flex; gap: 8px; margin-top: 10px; }
.da-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.da-pill-wear { border: 1px solid rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.08); color: #22c55e; }
.da-pill-wear::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.da-pill-use { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.da-pill-cat { border: 1px solid rgba(59, 130, 246, 0.45); font-size: 10.5px; letter-spacing: 0.04em; color: #60a5fa; }
.da-det-sec { margin: 0; font-size: 14px; font-weight: 700; color: #a3a8ae; }
.da-timeline { margin: 12px 0 0; padding: 0 0 0 26px; list-style: none; }
.da-timeline li { position: relative; }
.da-dot { position: absolute; left: -26px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #f97316; }
.da-dot b { position: absolute; inset: 0; border: 2px solid #f97316; border-radius: 50%; opacity: 0; }
.da-timeline strong { display: block; font-size: 15px; color: #ecede8; }
.da-timeline span { display: block; margin-top: 3px; font-size: 12.5px; color: #80868d; }
.da-det-actions { display: flex; align-items: center; gap: 18px; }
.da-btn-green {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 8px;
  background: #22c55e;
  color: #0a0a0b;
  font-size: 14px;
  font-weight: 700;
}
.da-det-notes { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #8b9096; }
.da-det-more { width: 44px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #33373c; border-radius: 8px; color: #8b9096; }

/* ── Telefon odbiorcy ─────────────────────────────────────────────────── */

.da-phone {
  position: absolute;
  left: 950px;
  top: 92px;
  z-index: 6;
  width: 290px;
  height: 600px;
  padding: 9px;
  border: 1px solid #3a3e44;
  border-radius: 44px;
  background: #1b1d21;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), inset 0 0 0 2px #0a0a0b;
  visibility: hidden;
}
.da-phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 36px; background: #0a0a0b; }
.da-phone-status { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 12px; font-weight: 700; color: #ecede8; }
.da-phone-notch { width: 72px; height: 20px; border-radius: 12px; background: #000; }
.da-phone-top { display: flex; align-items: center; gap: 6px; padding: 4px 12px 10px; }
.da-phone-top img { width: 104px; height: auto; margin-right: auto; }
.da-pbtn {
  height: 30px;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid #2a2d32;
  border-radius: 8px;
  background: #15171a;
  font-size: 12px;
  font-weight: 700;
  color: #c9cdd2;
}
.da-pbtn-add { border-color: #f97316; background: #f97316; color: #0a0a0b; }
.da-phone-search { height: 34px; display: flex; align-items: center; margin: 0 12px 10px; padding: 0 12px; border: 1px solid #26292d; border-radius: 9px; background: #111214; font-size: 12px; color: #80868d; }
.da-phone-col { padding: 10px 12px 9px; border-top: 1px solid #1a1c1f; border-bottom: 1px solid #1a1c1f; }
.da-phone-body { padding: 10px; }
.da-phone .da-card { padding: 10px; }
.da-phone .da-thumb { width: 52px; height: 52px; }
.da-phone .da-card-name { font-size: 14px; }
.da-phone .da-card-sub { font-size: 12px; }
.da-phone .da-card-foot { height: 29px; margin-top: 10px; padding-top: 9px; font-size: 12px; }
.da-phone-toast {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #3a3e44;
  border-radius: 10px;
  background: #2a2d32;
  font-size: 12px;
  font-weight: 600;
  color: #ecede8;
  opacity: 0;
}
.da-phone-toast svg { color: #4ade80; }
.da-phone-home { position: absolute; left: 50%; bottom: 8px; width: 100px; height: 4px; margin-left: -50px; border-radius: 2px; background: #5b6168; }

/* ── Kursor, kliknięcia, dotyk ────────────────────────────────────────── */

.da-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9;
  margin: -2.5px 0 0 -3px;
  opacity: 0;
  transform-origin: 3px 2.5px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}
.da-ripple {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 2px solid #f97316;
  border-radius: 50%;
  opacity: 0;
}
.da-touch {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 7;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  opacity: 0;
}

/* ── Warstwy ekranu: powiadomienie, plansza końcowa, wygaszenie ───────── */

.da-toast {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: calc(100% - 36px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid #3a3e44;
  border-radius: 9px;
  background: #2a2d32;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.8);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #ecede8;
  opacity: 0;
  pointer-events: none;
}
.da-toast svg { flex: none; color: #4ade80; }
.da-toast.is-left { right: auto; left: 18px; }
@container (max-width: 759px) {
  .da-toast,
  .da-toast.is-left { right: auto; left: 50%; bottom: 14px; width: max-content; max-width: calc(100% - 28px); translate: -50% 0; font-size: 13px; }
}

.da-end {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(6px);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.da-end-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.da-end-in img { display: block; width: 148px; height: auto; }
.da-end-title {
  max-width: 20ch;
  font-size: clamp(22px, 3.4cqw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.da-end-note { font-family: var(--font-mono); font-size: clamp(12.5px, 1.4cqw, 15px); color: var(--text-muted); text-wrap: balance; }

.da-fade { position: absolute; inset: 0; z-index: 12; background: #0a0a0b; opacity: 0; pointer-events: none; }

/* ── Pasek sterowania: pauza, opis sceny, rozdziały ───────────────────── */

.da-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px 16px;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--border);
}
.da-play {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border-5);
  border-radius: 999px;
  background: var(--surface-4);
  color: var(--text);
  cursor: pointer;
}
.da-play:hover { border-color: var(--border-hover); }
.da-play svg[hidden] { display: none; }

.da-caps { display: grid; }
.da-cap { grid-area: 1 / 1; margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--text-muted); text-wrap: pretty; visibility: hidden; }
.da-cap.is-on { visibility: visible; }
.da-cap strong { margin-right: 4px; color: var(--text); }

.da-chapters {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.da-chapters button {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 6px 0 2px;
  border: 0;
  background: none;
  font: 500 12px/1.2 var(--font-mono);
  color: var(--text-subtle);
  text-align: left;
  cursor: pointer;
}
.da-chapters button:hover,
.da-chapters button[aria-current='step'] { color: var(--text); }
.da-track { display: block; height: 3px; overflow: hidden; border-radius: 2px; background: var(--border-4); }
.da-fill { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.da-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container (max-width: 859px) { .da-num { display: none; } }

/* Poniżej tej szerokości „Potwierdzenie” nie mieści się w kolumnie — zostają same paski */
@container (max-width: 659px) {
  .da-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}

@container (max-width: 559px) {
  .da-bar { gap: 12px 14px; padding: 14px 16px 16px; }
  .da-cap { font-size: 14.5px; }
  .da-chapters { gap: 4px; }
}
