/* povsite v0.2 — druga marka na tym samym backendzie co rezgez (patrz river.js/
   episode.js dla logiki danych — ten plik i povsite-*.js dodaja tylko inny
   wyglad nad tymi samymi endpointami API). Kazda zmiana tego pliku = bump
   wersji tutaj + bump ?v=NN we WSZYSTKICH povsite-*.html, ktore go laduja —
   podglad w tym srodowisku cache'uje /povsite.css po samym URL i ignoruje
   nowa tresc bez cache-bustera (zweryfikowane na zywo). */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=Karla:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --bg: #F1F5F9;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --muted: #334155;
  --line: #E2E8F0;
  --accent: #1E293B;
  --accent-ink: #FFFFFF;
  --trail: #334155;
  --pop: #3B82F6;
  --orange: #F97316;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F172A; --surface: #1E293B; --ink: #F1F5F9; --muted: #94A3B8;
    --line: #334155; --accent: #E2E8F0; --accent-ink: #0F172A; --trail: #94A3B8;
    --pop: #3B82F6; --orange: #F97316;
  }
}
:root[data-theme="dark"] {
  --bg: #0F172A; --surface: #1E293B; --ink: #F1F5F9; --muted: #94A3B8;
  --line: #334155; --accent: #E2E8F0; --accent-ink: #0F172A; --trail: #94A3B8;
  --pop: #3B82F6; --orange: #F97316;
}

* { box-sizing: border-box; }
/* [hidden] MUSI wygrywac zawsze — bez tego kazdy element z wlasna regula
   "display" (np. .cut-list/.rng-row jako flex) potrafi zignorowac atrybut
   hidden ustawiany przez JS (setOwnerState() w river.js), bo obie reguly
   maja rowny priorytet CSS. Realny bug znaleziony w rezgez (patrz
   style.css) — kopiowana tu z wyprzedzeniem, zeby povsite-studio.html nie
   powtorzylo tego samego bledu. */
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Karla", system-ui, sans-serif; padding-inline: 24px; margin: 0;
}
.wrap { max-width: 760px; margin: 0 auto; }
h1, h2, h3 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0;
}
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 10px;
}

header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex; align-items: baseline; gap: 6px;
  font-family: "Big Shoulders Display", sans-serif; font-weight: 900; font-size: 24px;
  text-transform: lowercase; color: var(--ink); text-decoration: none;
}
.wordmark .dot { color: var(--muted); font-size: 28px; line-height: 0; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
}
.back-link:hover { color: var(--ink); }
.btn {
  font-family: "Karla", sans-serif; font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 10px 20px -10px rgba(15,23,42,.35); }
.btn-accent { background: var(--pop); color: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 10px 24px -10px rgba(59,130,246,.55); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.link-plain { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }

.river-hero { padding-block: clamp(28px, 5vw, 40px) 8px; }
.river-hero h1 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 10px; text-wrap: balance; }
.river-hero .sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; max-width: 60ch; }

.stat-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.stat-badge {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; min-width: 110px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 12px 26px -18px rgba(15,23,42,.18);
}
.stat-badge .num { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 24px; line-height: 1; }
.stat-badge .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-cta .btn { flex: 1; justify-content: center; min-width: 160px; }

.timeline-strip {
  display: flex; height: 26px; border-radius: 10px; overflow: hidden; margin: 22px 0 6px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.timeline-strip span {
  display: block; height: 100%; min-width: 2px; cursor: pointer;
  transition: opacity .1s ease; opacity: 1;
}
.timeline-strip span:hover { opacity: .7; }
.timeline-strip span.playing { opacity: 1; box-shadow: inset 0 0 0 2px #fff; }
.timeline-hint { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; }

.search-row { position: relative; margin-bottom: 22px; }
.field {
  width: 100%; font-family: "Karla", sans-serif; font-size: 14px;
  padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.field:focus { outline: 2px solid var(--pop); outline-offset: -1px; }
.field::placeholder { color: var(--muted); }
.search-hits {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; max-height: 320px; overflow-y: auto;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 20px 40px -18px rgba(15,23,42,.35);
}
.search-hit {
  display: block; width: 100%; text-align: left; background: none; border: none;
  cursor: pointer; padding: 9px 10px; border-radius: 8px; font-family: "Karla", sans-serif;
}
.search-hit:hover { background: var(--bg); }
.search-hit .who {
  display: block; font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--pop); margin-bottom: 3px;
}
.search-hit .text { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }

.section-divider { border: none; border-top: 1px solid var(--line); margin: 0; }

.voice-accordion { padding-block: 22px; }
.voice-accordion summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.voice-accordion summary::-webkit-details-marker { display: none; }
.voice-accordion summary::before {
  content: "▸"; color: var(--orange); font-size: 12px; transition: transform .15s ease;
}
.voice-accordion[open] summary::before { transform: rotate(90deg); }
.voice-accordion summary:hover { color: var(--pop); }
.voice-list { display: flex; flex-direction: column; gap: 2px; padding-block: 18px 8px; }
.voice-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.voice-row:last-child { border-bottom: none; }
.voice-row .av {
  width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 700; color: #fff;
}
.voice-row .who { flex: 1; min-width: 0; }
.voice-row .who .name { font-weight: 700; font-size: 14.5px; }
.voice-row .who .meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.voice-row .who .meta a { color: var(--pop); text-decoration: none; }
.voice-row .dur { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--muted); flex-shrink: 0; }
.voice-row .row-play {
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; cursor: pointer;
}
.voice-row .row-play:hover { border-color: var(--pop); color: var(--pop); }
.voice-row .row-play.playing { background: var(--pop); border-color: var(--pop); color: #fff; }

.support-btn {
  width: 100%; justify-content: center; margin-block: 26px;
  padding-block: 17px; font-size: 15.5px;
}

.hint { color: var(--muted); font-size: 14px; }

.subscribe-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; margin-block: 24px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 16px 32px -20px rgba(15,23,42,.18);
}
.subscribe-box .sub-title { font-weight: 700; font-size: 15px; margin: 0 0 12px; }
.sub-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sub-row .field { flex: 1; min-width: 180px; }
.sub-row .btn { flex-shrink: 0; }
.subscribe-box .hint { margin: 10px 0 0; }

.pv-footer { padding-block: 8px 40px; }
.pv-footer a { color: var(--muted); font-size: 13px; text-decoration: underline; }
.pv-footer a:hover { color: var(--ink); }

/* --- povsite-mapa.html: mapa glosow (Leaflet + OSM) w stylu povsite --- */
.wrap-wide { max-width: 1080px; }
.site-nav { display: flex; align-items: center; gap: 14px; }

.map-hero { padding-block: clamp(28px, 5vw, 40px) 4px; }
.map-hero h1 { font-size: clamp(28px, 5vw, 40px); margin: 6px 0 8px; }
.map-hero .sub { color: var(--muted); font-size: 14.5px; margin: 0; }

.map-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Karla", sans-serif; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.filter-chip:hover { border-color: var(--pop); color: var(--pop); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.map-wrap {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 48px -26px rgba(15,23,42,.3);
}
#mapEl { width: 100%; height: 65vh; min-height: 420px; background: var(--bg); }

/* popup Leaflet — nadpisanie domyslnego bialego dymka na karte w stylu povsite */
.leaflet-popup-content-wrapper { border-radius: 12px; padding: 2px; }
.leaflet-popup-content { margin: 12px 14px; }
.pin-popup { font-family: "Karla", sans-serif; min-width: 180px; }
.pin-popup b { display: block; font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: .01em; }
.pin-popup .pin-cat {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--orange); margin: 4px 0 0;
}
.pin-popup .pin-sub { font-size: 12.5px; color: var(--muted); margin: 6px 0 10px; }
.pin-popup .pin-sub a { color: var(--pop); text-decoration: none; }
.pin-popup .pin-play {
  font-family: "Karla", sans-serif; font-weight: 700; font-size: 12.5px;
  background: var(--pop); color: #fff; border: none; border-radius: 8px;
  padding: 8px 12px; cursor: pointer;
}

/* --- tryb terenowy (proximity) --- */
.field-mode-row { margin-bottom: 18px; }
.field-mode-row .hint { margin: 8px 2px 0; font-size: 12.5px; }
#fieldModeBtn.active { background: var(--pop); border-color: var(--pop); color: #fff; }

.field-toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 2000; width: min(360px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 20px 44px -18px rgba(15,23,42,.4);
}
.field-toast-body { flex: 1; min-width: 0; }
.field-toast-body b {
  display: block; font-family: "Big Shoulders Display", sans-serif; font-weight: 800;
  font-size: 15px; text-transform: uppercase; letter-spacing: .01em;
}
.field-toast-body p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.field-toast-play {
  font-family: "Karla", sans-serif; font-weight: 700; font-size: 12.5px;
  background: var(--pop); color: #fff; border: none; border-radius: 8px;
  padding: 9px 12px; cursor: pointer; flex-shrink: 0; white-space: nowrap;
}
.field-toast-close {
  background: none; border: none; color: var(--muted); font-size: 18px;
  cursor: pointer; flex-shrink: 0; line-height: 1; padding: 4px;
}
.field-toast-close:hover { color: var(--ink); }

/* --- auth.js sie montuje w #authBox uzywajac WLASNYCH nazw klas
   (.seg-btn/.link-danger/.auth-email/.field) niezaleznie od marki — te
   reguly tylko przebieraja je w wyglad povsite, logika zostaje wspolna --- */
.seg-btn {
  font-family: "Karla", sans-serif; font-weight: 600; font-size: 13px;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.seg-btn:hover { border-color: var(--pop); color: var(--pop); }
.link-danger { background: none; border: none; color: var(--muted); font-size: 12.5px;
  text-decoration: underline; cursor: pointer; }
.link-danger:hover { color: #DC2626; }
.auth-email { color: var(--muted); font-size: 13px; margin-right: 4px; }
#authBox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#authBox .field.au { width: auto; padding: 8px 10px; font-size: 13px; }

/* --- povsite-home.html --- */
.home-hero { padding-block: clamp(28px, 5vw, 40px) 8px; }
.home-hero h1 { font-size: clamp(32px, 5vw, 48px); margin: 8px 0 10px; }
.home-hero .lede { color: var(--muted); font-size: 15px; margin: 0 0 24px; max-width: 52ch; }

.consent-row {
  display: flex; align-items: flex-start; gap: 9px; font-size: 13px;
  color: var(--muted); line-height: 1.4; margin-top: 10px; cursor: pointer;
}
.consent-row input { margin-top: 2px; flex-shrink: 0; }
.reveal-fields { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

.own-river-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; margin-top: 20px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 16px 32px -20px rgba(15,23,42,.18);
}
.own-river-card blockquote { margin: 0 0 16px; color: var(--muted); font-size: 14px; font-style: italic; }
.own-river-card cite { display: block; margin-top: 4px; font-style: normal; font-size: 12.5px; }

.home-search { margin-top: 28px; }
.home-list { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
a.home-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 6px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
a.home-row:last-child { border-bottom: none; }
a.home-row:hover .home-row-title { color: var(--pop); }
.home-row-cover {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; object-fit: cover;
  background: var(--accent);
}
.home-row-fallback {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  background: color-mix(in srgb, var(--orange) 16%, var(--surface));
  display: flex; align-items: center; justify-content: center;
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; color: var(--orange);
}
.home-row-body { flex: 1; min-width: 0; }
.home-row-title { font-weight: 700; font-size: 15px; }
.home-row-meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.home-row-hook { color: var(--muted); font-size: 13px; margin-top: 3px; }
.home-row mark { background: color-mix(in srgb, var(--orange) 25%, transparent); color: var(--ink); border-radius: 3px; }

/* ======================================================================
   povsite-studio.html — skorka wizualna nad WSPOLNYM river.js (zero
   duplikacji logiki nagrywania/ciec/eksportu). Klasy ponizej to te same
   nazwy, ktorych river.js/style.css juz uzywaja — tu tylko inny wyglad.
   Stanowe klasy body ("live" podczas nagrywania, "is-owner", "tl-delete-
   mode") sa ustawiane przez river.js bez zmian, CSS tylko na nie reaguje.
   ====================================================================== */
.stage { max-width: 900px; margin: 0 auto; }
header.masthead {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 14px; padding-block: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px;
}
.share-btn {
  font-family: "Karla", sans-serif; font-weight: 700; font-size: 13px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.share-btn:hover { border-color: var(--pop); color: var(--pop); }

.res-head { margin-bottom: 22px; }
.res-title {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: clamp(26px, 4vw, 38px);
  text-transform: uppercase; letter-spacing: .01em; line-height: 1;
}
.res-desc { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* --- konsola nagrywania: element sygnaturowy, wiec dostaje najmocniejszy
   akcent (niebieski border), nie tylko kolejna szara karte --- */
.console {
  background: var(--surface); border: 1.5px solid var(--pop); border-radius: 16px;
  padding: 24px 22px; margin-top: 26px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 48px -26px rgba(59,130,246,.35);
}
.dial {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
}
.lamp { width: 11px; height: 11px; border-radius: 50%; background: var(--line); flex: none; }
.lamp.ready { background: var(--pop); box-shadow: 0 0 8px var(--pop), 0 0 16px rgba(59,130,246,.4); }
.dial-state { font-size: 12.5px; letter-spacing: .12em; color: var(--muted); }
.dial .dial-state.ready { color: var(--pop); }
.dial-time { margin-left: auto; font-size: 19px; color: var(--ink); }
body.live .lamp { background: #DC2626; box-shadow: 0 0 10px #DC2626, 0 0 20px rgba(220,38,38,.5); animation: pv-pulse 1.4s ease-in-out infinite; }
body.live .dial-state { color: #DC2626; }
@keyframes pv-pulse { 50% { opacity: .45; } }

.mode-row { display: flex; gap: 8px; margin: 16px 0 6px; flex-wrap: wrap; }
.mode-btn {
  flex: 1; min-width: 130px; padding: 10px 8px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line); border-radius: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 11.5px; cursor: pointer;
}
.mode-btn.active { border-color: var(--pop); color: var(--pop); background: color-mix(in srgb, var(--pop) 8%, var(--bg)); }

.anchor-set-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.hint-warn { color: #DC2626; font-weight: 500; }
label.consent-row { margin: 14px 0; }

.ptt {
  width: 100%; padding: 18px; border: none; border-radius: 12px;
  background: var(--pop); color: #fff;
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 18px;
  text-transform: uppercase; letter-spacing: .02em; cursor: pointer;
  transition: transform .06s, background .2s;
  box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 14px 28px -12px rgba(59,130,246,.5);
}
.ptt:hover { background: #2f6fe0; }
.ptt:active { transform: translateY(1px); }
.ptt.live { background: #DC2626; box-shadow: 0 14px 28px -12px rgba(220,38,38,.5); }
.ptt.live:hover { background: #b91c1c; }
.ptt:disabled { background: var(--line); color: var(--muted); cursor: wait; box-shadow: none; }

.consent { margin-top: 14px; font-family: "JetBrains Mono", monospace; font-size: 11px; line-height: 1.5; color: var(--muted); }

/* --- status przetwarzania po wyslaniu --- */
.upload-status {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin: 18px 0; display: flex; flex-direction: column; gap: 10px;
}
.us-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.us-row.us-active { color: var(--ink); font-weight: 600; }
.us-dot {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); font-size: 11px; color: transparent;
}
.us-dot.done { border-color: var(--pop); background: var(--pop); color: #fff; }
.us-dot.spin { border-color: var(--pop); border-top-color: transparent; animation: pv-spin .8s linear infinite; }
@keyframes pv-spin { to { transform: rotate(360deg); } }
.us-eta { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); margin: 0; }
.us-close-ok { font-size: 13px; color: var(--pop); margin: 0; }

/* --- kokpit administracyjny: karty --- */
.cockpit {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 20px 18px; margin: 18px 0 0;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 16px 32px -20px rgba(15,23,42,.18);
}
.cockpit-status { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.ck { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); }
.ck.ok { color: var(--pop); }
.ck.sub { margin-left: auto; color: var(--muted); }
.ck-off { opacity: .45; cursor: not-allowed; }
.cockpit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cockpit-actions .seg-btn { text-decoration: none; font-size: 12px; }
.ck-group { margin-top: 18px; }
.ck-group:first-of-type { margin-top: 0; }
.ck-group-label {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
}
.cockpit > .ck-group-label:first-child,
.console > .ck-group-label:first-child {
  font-size: 15px; font-weight: 700; letter-spacing: 0;
  color: var(--ink); margin-bottom: 14px; font-family: "Big Shoulders Display", sans-serif;
  text-transform: uppercase;
}
.seg-btn.last-used { border-color: var(--pop); color: var(--pop); }
.seg-btn.last-used::after { content: " \2605"; }

.dual-cta { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.dual-cta .seg-btn { flex: 1; min-width: 160px; padding: 14px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; text-align: center; }
.dual-cta .cta-link { background: var(--accent); color: var(--accent-ink); border: none; }
.dual-cta .cta-link:hover { background: var(--accent); opacity: .9; }
.dual-cta .cta-invite { background: transparent; border: 1.5px solid var(--pop); color: var(--pop); }
.dual-cta .cta-invite:hover { background: color-mix(in srgb, var(--pop) 10%, transparent); }
.minor-actions .seg-btn { font-size: 12px; padding: 7px 11px; }

.cover-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cover-preview { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }

/* --- danger zone --- */
.danger-zone {
  display: none; border: 1px dashed #DC2626; border-radius: 12px; padding: 18px 20px; margin-top: 18px;
}
body.is-owner .danger-zone { display: block; }
.danger-zone .ck-group-label { color: #DC2626; font-size: 15px; font-weight: 700;
  text-transform: uppercase; font-family: "Big Shoulders Display", sans-serif; margin-bottom: 10px; }
.danger-zone .seg-btn { border-color: #DC2626; color: #DC2626; margin-top: 10px; }
.danger-zone .seg-btn:hover { background: rgba(220,38,38,.08); }

/* --- os czasu / ciecia --- */
.timeline {
  position: relative; display: flex; height: 40px; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--line); margin: 12px 0;
}
.tl-b { position: relative; height: 100%; border-right: 1px solid rgba(255,255,255,.4); background: var(--accent); }
.tl-b:hover { filter: brightness(1.15); }
.tl-head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--pop); }
.tl-sel { position: absolute; top: 0; bottom: 0; background: rgba(249,115,22,.28); border-left: 1px solid var(--orange); border-right: 1px solid var(--orange); }
.timeline-controls { display: none; justify-content: flex-end; margin-bottom: 6px; }
body.is-owner .timeline-controls { display: flex; }
.tl-del-toggle { font-size: 12px; }
.tl-del-toggle.active { border-color: #DC2626; color: #DC2626; background: rgba(220,38,38,.08); }
.tl-label {
  position: absolute; top: -32px; transform: translateX(-50%); z-index: 5;
  background: var(--ink); color: var(--bg); font-family: "JetBrains Mono", monospace;
  font-size: 11px; padding: 3px 7px; border-radius: 6px; white-space: nowrap;
}
.tl-label.danger { background: #DC2626; }

.rng-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.rng-lab { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); }
.field.rng { width: auto; flex: 1; min-width: 100px; margin: 0; }
.cut-btn { border-color: var(--orange); color: var(--orange); }
.cut-btn:hover { background: color-mix(in srgb, var(--orange) 10%, transparent); }
.cut-btn:disabled { opacity: .4; cursor: not-allowed; border-color: var(--line); color: var(--muted); }

.cut-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.cut-chip {
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 10px; display: inline-flex; align-items: center; gap: 6px;
}
.cut-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0 2px; }
.cut-x:hover { color: #DC2626; }
.cut-tree { margin: 8px 0 12px; }
.cut-tree summary { cursor: pointer; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); }
.cut-group {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 6px;
}
.cut-g-info { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink); }
.cut-mini { font-size: 11px; padding: 5px 9px; }
.cut-final { border-color: #DC2626; color: #DC2626; }
.cut-g-items { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.cut-bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.cut-bulk label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; color: var(--muted); }
.cut-sel { accent-color: var(--pop); }
.clip-empty { color: var(--muted); font-style: italic; font-size: 13px; }

/* --- plyniecie calosci / komendy glosowe --- */
.flow-bar { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; flex-wrap: wrap; }
.flow-btn { width: auto; padding: 12px 22px; font-size: 14px; }
.flow-now { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--pop); }
.flow-row { display: flex; align-items: center; gap: 14px; }
.flow-ctl { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.flow-time { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }
#flowRange { flex: 1; accent-color: var(--pop); }
.voice-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.voice-bar .seg-btn.on { border-color: #DC2626; color: #DC2626; }
.voice-heard { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); }
.voice-heard.hit { color: var(--pop); }
.voice-hint { width: 100%; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted); margin: 2px 0 0; }

/* --- rozwijane listy (glosy techniczne, esencja) --- */
.dev-drops, .res-summary { margin-top: 18px; }
.dev-drops summary, .res-summary summary {
  cursor: pointer; color: var(--muted); font-size: 13px; font-family: "JetBrains Mono", monospace;
}
.res-summary[open] summary { margin-bottom: 10px; }

.clip {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px 12px; margin-bottom: 12px;
}
.clip-top { display: flex; align-items: center; gap: 10px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--pop); margin-bottom: 8px; }
.clip-time { color: var(--muted); margin-left: auto; }
.clip-err { color: #DC2626; font-weight: 600; }
.retry-btn { margin-left: 8px; padding: 2px 8px; font-size: 11px; }
.clip-quote { font-size: 15px; line-height: 1.45; margin-bottom: 6px; }
.clip-hook { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.clip audio { width: 100%; height: 38px; }

.ck-setrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.ck-mail { flex: 1; min-width: 220px; margin-bottom: 0; padding: 9px 12px; font-size: 13px; }
.ep-pin-link { color: var(--pop); font-size: 12px; text-decoration: none; margin-left: 6px; }
.ep-pin-link:hover { text-decoration: underline; }

.ep-step { margin: 16px 2px 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ep-step:first-child { margin-top: 4px; }
#epMomentRow { margin: 0 2px 8px; }
#epMomentPreview { margin: 0 2px 14px; font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--muted); }

/* ======================================================================
   povsite.html — landing marketingowy (ustalony wyglad w artefakcie,
   przeniesiony 1:1). .landing-section zamiast golego selektora "section" —
   inne strony povsite (studio ma 11 <section>, home ma 2) juz uzywaja
   wlasnego, INNEGO stylowania tego tagu; goly "section {padding-block;
   border-top}" rozjechalby je wszystkie naraz.
   ====================================================================== */
.hero {
  padding-block: clamp(36px, 6vw, 56px);
  background:
    radial-gradient(ellipse 820px 460px at 14% -12%, color-mix(in srgb, var(--pop) 12%, transparent), transparent 68%),
    radial-gradient(ellipse 620px 420px at 92% 8%, color-mix(in srgb, var(--orange) 10%, transparent), transparent 70%);
  margin-inline: -24px; padding-inline: 24px;
}
.hero h1 { font-size: clamp(40px, 7vw, 74px); margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--ink); }
.hero p.lede { max-width: 46ch; font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0 0 30px; }

.landing-section { padding-block: clamp(36px, 6vw, 56px); border-top: 1px solid var(--line); }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }
.persona {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 16px 32px -20px rgba(15,23,42,.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.persona:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 20px 36px -18px rgba(15,23,42,.24); }
.persona .icon {
  width: 44px; height: 44px; border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 14%, var(--surface));
  display: flex; align-items: center; justify-content: center; color: var(--orange);
}
.persona h3 { font-size: 20px; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 700; }
.persona p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.waypoints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; margin-top: 28px; }
@media (max-width: 860px) { .waypoints { grid-template-columns: 1fr; gap: 28px; } }
.waypoints::before {
  content: ""; position: absolute; top: 21px; left: 6%; right: 6%; height: 2px;
  background: repeating-linear-gradient(to right, var(--trail) 0 8px, transparent 8px 14px);
}
@media (max-width: 860px) { .waypoints::before { display: none; } }
.waypoint { position: relative; padding-right: 20px; }
.waypoint .stop {
  width: 44px; height: 44px; border-radius: 999px; background: var(--trail);
  color: var(--surface); display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace; font-weight: 600; font-size: 14px;
  position: relative; z-index: 1; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 10px 18px -8px rgba(15,23,42,.3);
}
.waypoint h3 { font-size: 19px; text-transform: none; letter-spacing: 0; font-weight: 700; margin: 0 0 6px; }
.waypoint p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; max-width: 30ch; }

.grid-examples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
@media (max-width: 860px) { .grid-examples { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-examples { grid-template-columns: 1fr; } }
.rec-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 16px 32px -20px rgba(15,23,42,.18);
}
a.rec-card { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.rec-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 20px 36px -18px rgba(15,23,42,.24); }
.rec-art { height: 78px; display: flex; align-items: center; padding: 0 16px; gap: 10px; }
.rec-bars { display: flex; align-items: center; gap: 3px; flex: 1; min-width: 0; overflow: hidden; }
.rec-bars span { display: block; width: 4px; flex-shrink: 0; border-radius: 2px; background: var(--accent-ink); opacity: .85; }
.rec-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rec-coord { color: var(--surface); opacity: .85; font-size: 11px; flex-shrink: 0; white-space: nowrap; }
.rec-title { font-size: 16px; font-weight: 700; margin: 0; line-height: 1.25; }
.rec-desc { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; flex: 1; }
.rec-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.rec-tag { font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--orange); text-transform: uppercase; }
.rec-dur { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); }

.cta-band {
  border-top: 1px solid var(--line); padding-block: clamp(36px, 6vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(ellipse 760px 380px at 82% 120%, color-mix(in srgb, var(--pop) 10%, transparent), transparent 70%);
  margin-inline: -24px; padding-inline: 24px;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; }
.cta-band p { margin: 0; color: var(--muted); font-size: 15px; max-width: 42ch; }
.cta-band .side { flex-shrink: 0; }

footer.site {
  border-top: 1px solid var(--line); padding-block: 26px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
footer.site .wordmark { font-size: 18px; }
footer.site .fine { color: var(--muted); font-size: 12.5px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; max-width: 68ch; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.faq-item summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--orange); font-size: 20px; font-weight: 400; flex-shrink: 0; transition: transform .15s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--pop); }
.faq-item p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* --- povsite-prywatnosc.html --- */
.legal h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; }
.legal h2 { font-size: 15px; margin: 26px 0 8px; color: var(--orange); text-transform: none; letter-spacing: 0; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.legal ul { margin: 0 0 8px 18px; }
.legal li { margin-bottom: 6px; }
.legal li b { color: var(--ink); }
.legal .upd { color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.legal a { color: var(--pop); }
.legal code {
  font-family: "JetBrains Mono", monospace; font-size: 12.5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px;
}
