/* herchat · Hela, asystentka beauty
   Design: czysta biel, czern i neutralne szarosci. Zero barwnego akcentu.
   Mobile-first. WCAG AA: wszystkie pary kolorow zweryfikowane matematycznie.
   PALETA: zmiana marki = podmiana wartosci w :root, reszta jedzie z tych zmiennych. */

/* Figtree self-hosted (variable, 300-900): bez zaleznosci od Google Fonts */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Jasny motyw. Landing wygasza sie do bieli przed przejsciem, wiec czat
     otwiera sie w tym samym kolorze, w ktorym skonczyla sie animacja. */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F4F4F5;
  --line: #E5E5E5;
  --line-strong: #D4D4D8;

  /* Tekst */
  --ink: #0A0A0A;          /* 19,8:1 na bieli */
  --ink-soft: #6E6E73;     /* 5,07:1 na bieli */

  /* Akcent = czern. Przyciski czarne z biala trescia (19,8:1 w obie strony). */
  --accent: #0A0A0A;
  --accent-deep: #262626;
  --accent-tint: #F4F4F5;
  --accent-tint-2: #E5E5E5;

  /* Stany */
  --danger-bg: #F7F7F8;
  --danger-line: #D4D4D8;
  --danger-ink: #1F1F1F;
  --star: #52525B;
  --focus: #0A0A0A;
  --focus-on-dark: #FFFFFF;

  /* Tinty trybow: jednolita neutralna szarosc, roznicuje ikona i podpis */
  --t-wlosy: #F4F4F5;      --i-wlosy: #3F3F46;
  --t-skora: #F4F4F5;      --i-skora: #3F3F46;
  --t-paznokcie: #F4F4F5;  --i-paznokcie: #3F3F46;
  --t-suplementy: #F4F4F5; --i-suplementy: #3F3F46;
  --t-quiz: #F4F4F5;       --i-quiz: #3F3F46;

  /* Ksztalt i cien */
  /* Promienie z jednej skali: 4 / 8 / 12 / 16 / 24. */
  --r-card: 24px;
  --r-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(10, 10, 10, 0.05), 0 8px 24px rgba(10, 10, 10, 0.06);
  --shadow-float: 0 2px 6px rgba(10, 10, 10, 0.07), 0 14px 40px rgba(10, 10, 10, 0.12);

  --font-display: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Skala typograficzna: siedem stopni zamiast pietnastu przypadkowych
     rozmiarow, zero wartosci polpikselowych. */
  --fs-2xs: 11px;    /* pigulki, badge, disclosure */
  --fs-xs: 12px;     /* etykiety, meta, linia prawna */
  --fs-sm: 13px;     /* wariant kompaktowy kart, naglowek toku myslenia */
  --fs-md: 14px;     /* tekst pomocniczy, chipy, pasek bledu */
  --fs-lg: 16px;     /* tresc wiadomosci, pole pisania, strony prawne */
  --fs-xl: 20px;     /* h2 */
  --fs-2xl: 22px;    /* wordmark */
  --fs-display: clamp(30px, 7.5vw, 44px);
  --col-max: 680px;
  --dock-h: 108px;

  /* Skala odstepow 4/8. Nowe reguly biora wartosci stad; wartosci spoza
     skali w istniejacych regulach migruja osobnym przejsciem. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-10: 40px;
  --s-16: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

html { height: 100%; }

body {
  height: 100vh;
  height: var(--app-height, 100dvh);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body.page { overflow: auto; height: auto; min-height: 100dvh; }

.app {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.col {
  width: 100%;
  max-width: var(--col-max);
  margin-inline: auto;
}

/* ---------- Dostepnosc ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--focus-local, var(--focus));
  outline-offset: 2px;
  border-radius: 6px;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }

/* ---------- Naglowek ---------- */

.app-header {
  flex: 0 0 auto;
  padding-block: calc(10px + env(safe-area-inset-top)) 10px;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}

.app-header .header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  border-radius: 8px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
}

.wordmark .wm-accent { color: var(--ink-soft); font-weight: 500; }

.brand-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border-radius: var(--r-pill);
  padding: 4px 9px;
  white-space: nowrap;
}

.icon-btn {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Obszar przewijania ---------- */

.scroll-region {
  flex: 1 1 auto;
  min-height: 30vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right));
  scroll-padding-bottom: min(var(--dock-h), 96px);
}

/* ---------- Hero / landing ---------- */

.hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 30px;
  animation: rise 0.5s ease-out both;
}

.hero-avatar {
  width: 60px; height: 60px;
  border-radius: 20px;
  background: linear-gradient(150deg, #2E2E33 0%, var(--accent) 60%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.18);
}

.hero-avatar svg { width: 30px; height: 30px; color: #FFFFFF; }

.hero-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(31px, 8.6vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-align: center;
  padding-top: 12px;
  animation: rise 0.5s 0.06s ease-out both;
}

.hero-title em { font-style: normal; color: var(--ink-soft); }

body.chat-active .hero-head,
body.chat-active .hero-rest { display: none; }

body.chat-active .hero-title {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.hero-rest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 14px 0 28px;
}

.hero-sub {
  max-width: 420px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
  animation: rise 0.5s 0.12s ease-out both;
}

/* ---------- Tryby (zastepuja kolaz produktow) ---------- */

.modes-wrap {
  width: 100%;
  animation: rise 0.5s 0.18s ease-out both;
}

.modes-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 12px;
}

.modes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modes li.wide { grid-column: 1 / -1; }

.mode-tile {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-family: var(--font-body);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.mode-tile:active { transform: scale(0.975); }

.mode-tile[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft), 0 0 0 3px var(--accent-tint);
}

.mode-ic {
  width: 38px; height: 38px;
  /* Promien wewnetrzny = promien kafla minus jego padding (14px).
     Liczony z tokena, wiec nadazy za ewentualna zmiana --r-card. */
  border-radius: calc(var(--r-card) - 14px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mode-ic svg { width: 21px; height: 21px; }

.mode-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}

.mode-sub {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-soft);
}

/* kolory per tryb */
.m-wlosy .mode-ic { background: var(--t-wlosy); color: var(--i-wlosy); }
.m-skora .mode-ic { background: var(--t-skora); color: var(--i-skora); }
.m-paznokcie .mode-ic { background: var(--t-paznokcie); color: var(--i-paznokcie); }
.m-suplementy .mode-ic { background: var(--t-suplementy); color: var(--i-suplementy); }
.m-quiz .mode-ic { background: var(--t-quiz); color: var(--i-quiz); }

.modes li.wide .mode-tile {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.modes li.wide .mode-text { display: flex; flex-direction: column; gap: 2px; }
.modes li.wide .mode-arrow { margin-left: auto; color: var(--ink-soft); flex: 0 0 auto; }
.modes li.wide .mode-arrow svg { width: 18px; height: 18px; display: block; }

/* ---------- Chipy propozycji ---------- */

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  animation: rise 0.4s ease-out both;
}

.chip {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 10px 15px;
  min-height: 44px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.chip:active { transform: scale(0.97); }

.trust {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 420px;
  animation: rise 0.5s 0.3s ease-out both;
}

.trust .star { color: var(--star); }

/* ---------- Wiadomosci ---------- */

.messages { list-style: none; padding-bottom: 20px; }

.msg { animation: rise 0.3s ease-out both; }

/* Wiadomosc uzytkowniczki: dymek po prawej, zeby od razu bylo widac czyja jest. */
.msg-user {
  display: flex;
  justify-content: flex-end;
  padding: 24px 0 2px;
}

.msg-user .bubble {
  max-width: 84%;
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 20px 20px 6px 20px;
  padding: 11px 15px;
  font-size: 15.5px;
  line-height: 1.45;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  text-align: left;
}

.msg-assistant {
  padding: 10px 0 4px;
  font-size: 16px;
  overflow-wrap: break-word;
}

.msg-assistant .md p { margin: 0 0 12px; }
.msg-assistant .md p:last-child { margin-bottom: 0; }
.msg-assistant .md strong { font-weight: 700; }
.msg-assistant .md ul { margin: 0 0 12px; padding-left: 20px; }
.msg-assistant .md li { margin: 5px 0; }
.msg-assistant .md li::marker { color: var(--accent); }

/* ---------- Karty produktow ---------- */

.pcards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0;
}

.pcards.two { grid-template-columns: 1fr 1fr; }

.pcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pcard-media { position: relative; background: var(--surface-2); }

.pcard-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.pcard-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: var(--r-pill);
  padding: 4px 10px;
}

.pcard-body { padding: 12px 14px 14px; }

/* Badge disclosure (transparentnosc) */
.pcard-disclosure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  margin-bottom: 7px;
}

.pcard-disclosure.is-house { color: var(--accent-deep); background: var(--accent-tint); }
.pcard-disclosure .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pcards.two .pcard-disclosure { padding: 2px 7px; }

.pcard-name { font-size: 14.5px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }

.pcard-name a { color: var(--ink); text-decoration: none; }
.pcard-name a::after { content: ""; position: absolute; inset: 0; }

/* Klikalna jest cala karta (::after wyzej), wiec pierscien fokusa tez ma
   obrysowac cala karte, a nie sam tekst nazwy. Obwodka rysuje sie poza
   elementem, wiec overflow: hidden na .pcard jej nie przycina. */
.pcard:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pcard-name a:focus-visible { outline: none; }

.pcard-rating { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.pcard-rating .star { color: var(--star); }

.pcard-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 7px;
  font-size: 15.5px;
}

.pcard-price strong { font-weight: 800; letter-spacing: -0.01em; }
.pcard-price s { color: var(--ink-soft); font-size: 12.5px; }

.pcard-cta {
  display: inline-block;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.pcards.two .pcard-body { padding: 10px 12px 12px; }
.pcards.two .pcard-name { font-size: 13px; }
.pcards.two .pcard-price { font-size: 14px; }
.pcards.two .pcard-cta { font-size: 12px; }

/* ---------- Tok myslenia (kroki pracy asystentki) ---------- */

.think {
  margin: 2px 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  animation: rise 0.3s ease-out both;
}

.think-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  padding: 12px 14px;
  min-height: 44px;
  text-align: left;
  cursor: default;
}

.think.is-done .think-head { cursor: pointer; }

.think-spark {
  width: 15px; height: 15px;
  flex: 0 0 auto;
  color: var(--ink);
}

.think.is-live .think-spark { animation: sparkPulse 1.5s ease-in-out infinite; }

.think-chev {
  margin-left: auto;
  width: 15px; height: 15px;
  flex: 0 0 auto;
  color: var(--ink-soft);
  /* Ta sama krzywa i ten sam czas co panel nizej: rozjazd strzalki
     i panelu czyta sie jak zaciecie. Opacity tez w transition, bo
     inaczej strzalka pojawia sie skokiem po zakonczeniu odpowiedzi. */
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.15s ease;
  opacity: 0;
}

.think.is-done .think-chev { opacity: 1; }
.think.is-done:not(.is-open) .think-chev { transform: rotate(-90deg); }

.think-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Zwijanie szybsze niz rozwijanie: wyjscie nie ma na co czekac. */
.think.is-done:not(.is-open) .think-body { grid-template-rows: 0fr; transition-duration: 0.1s; }

.think-inner { overflow: hidden; }

.think-steps {
  list-style: none;
  padding: 0 14px 12px 14px;
  margin: 0;
}

/* Os czasu: pionowa linia laczaca kropki krokow. */
.think-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 5px 0 5px 3px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  animation: stepIn 0.3s ease-out both;
}

.think-step::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 22px;
  bottom: -5px;
  width: 1px;
  background: var(--line);
}

.think-step:last-child::before { display: none; }

.think-dot {
  position: relative;
  z-index: 1;
  width: 11px; height: 11px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  flex: 0 0 auto;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.think-step.is-run .think-dot {
  border-color: var(--ink);
  animation: dotPulse 1.2s ease-in-out infinite;
}

.think-step.is-done .think-dot {
  border-color: var(--ink);
  background: var(--ink);
}

.think-step.is-done .think-dot::after {
  content: "";
  position: absolute;
  left: 2.4px; top: 0.6px;
  width: 3px; height: 6px;
  border: solid var(--surface);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.think-step.is-done .think-label { color: var(--ink-soft); }
.think-step.is-run .think-label { color: var(--ink); font-weight: 600; }

/* Delikatny przebieg swiatla po aktywnym kroku: sygnal, ze cos sie dzieje. */
.think-step.is-run .think-label {
  background: linear-gradient(90deg, var(--ink) 20%, #A1A1AA 45%, var(--ink) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 1.8s linear infinite;
}

.think-label { overflow-wrap: anywhere; }

/* Zrodla z wyszukiwania */
.think-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 2px 22px;
}

.src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 10px;
  text-decoration: none;
  min-height: 30px;
}

.src img { width: 13px; height: 13px; border-radius: 3px; flex: 0 0 auto; }
.src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }

/* ---------- Karet streamingu ---------- */

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
  border-radius: 1px;
  animation: blink 1s steps(2, start) infinite;
}

/* Karet doklejamy do ostatniego akapitu tylko w trakcie pisania (obecnosc .caret),
   zeby gotowa wiadomosc zachowala normalne odstepy miedzy akapitami.
   Celowo NIE dotyczy <li>: display:inline skasowalby punktor listy. */
.msg-content:has(> .caret) > .md:last-of-type > p:last-child {
  display: inline;
}

/* ---------- Szkielet karty (podczas streamingu) ---------- */

.pcard-skel { box-shadow: none; }

.pcard-skel .sk-media {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(100deg, var(--surface-2) 30%, #E9E9EB 50%, var(--surface-2) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}

.pcard-skel .sk-line {
  display: block;
  height: 11px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: linear-gradient(100deg, var(--surface-2) 30%, #E9E9EB 50%, var(--surface-2) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}

.pcard-skel .sk-line.sk-sm { width: 45%; height: 9px; }
.pcard-skel .sk-line.sk-md { width: 65%; }
/* Wysokosc zblizona do prawdziwego .pcard-body, zeby finalizacja nie przesuwala tresci. */
.pcard-skel .pcard-body { min-height: 168px; }
.pcards.two .pcard-skel .pcard-body { min-height: 150px; }

/* ---------- Akcje pod wiadomoscia ---------- */

.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ma {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 9px 12px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ma svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ma:active { transform: scale(0.96); }
.ma.is-done { color: var(--accent); border-color: var(--accent-tint-2); background: var(--accent-tint); }

/* ---------- Opcje odpowiedzi (przyciski do pytan Heli) ---------- */

.opts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  animation: rise 0.35s ease-out both;
}

.opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px 16px;
  min-height: 48px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.opt:active { transform: scale(0.985); }

.opt .opt-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  flex: 0 0 auto;
}

/* Ostatnia opcja: wlasnymi slowami. Wizualnie lzejsza, bo to wyjscie awaryjne. */
.opt-own {
  color: var(--ink-soft);
  font-weight: 500;
  border-style: dashed;
}

.opt-own svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ---------- Follow-upy ---------- */

.followups {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  animation: rise 0.35s ease-out both;
}

.fu {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-2);
  border-radius: var(--r-pill);
  padding: 11px 14px;
  min-height: 44px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, background 0.15s ease;
}

.fu:active { transform: scale(0.97); }

/* ---------- Toast ---------- */

.toast {
  --focus-local: var(--focus-on-dark);
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 11px 12px 11px 16px;
  margin-bottom: 10px;
  font-size: 13.5px;
  box-shadow: var(--shadow-float);
  /* Toast to komunikat systemowy, nie kolejny akapit rozmowy: dluzsze
     wejscie z lekkim przestrzeleniem lapie wzrok. Krzywa przestrzelona
     na istniejacej klatce rise daje pop bez nowych keyframes. */
  animation: rise 0.52s cubic-bezier(0.22, 1.24, 0.4, 1) both;
}

.toast.is-on { display: flex; }

.toast .toast-act {
  margin-left: auto;
  font: inherit;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  border-radius: var(--r-pill);
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
}



/* ---------- Przycisk powrotu na dol ---------- */

.scroll-fab {
  position: absolute;
  left: 50%;
  bottom: calc(var(--dock-h) + 8px);
  transform: translate(-50%, 8px);
  /* Cel dotykowy jak reszta kontrolek: przycisk jest uzywany kciukiem
     w trakcie czytania, wiec 40px bylo jedynym wyjatkiem in minus. */
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  /* Samo opacity zostawia przycisk w kolejnosci Tab: klawiatura ladowala
     na niewidocznej kontrolce, a pierscienia fokusa nie bylo widac.
     visibility wypada z kolejnosci Tab, opoznienie w transition pozwala
     dokonczyc wygaszanie zanim element zniknie. */
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 6;
}

.scroll-fab.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
.scroll-fab svg { width: 19px; height: 19px; }
.scroll-fab:active { transform: translate(-50%, 0) scale(0.92); }

/* ---------- Wskaznik pisania ---------- */

.typing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 22px;
}

.typing[hidden] { display: none; }

.typing-avatar {
  width: 28px; height: 28px;
  border-radius: 10px;
  background: linear-gradient(150deg, #2E2E33, var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.typing-avatar svg { width: 15px; height: 15px; color: #FFFFFF; }

.typing-dots { display: inline-flex; gap: 5px; }

.typing-dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.2s infinite ease-in-out;
}

.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }

/* ---------- Dock ---------- */

.dock {
  flex: 0 0 auto;
  padding-block: 6px calc(10px + env(safe-area-inset-bottom));
  padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
  background: linear-gradient(to top, var(--bg) 72%, rgba(255, 255, 255, 0));
  position: relative;
  z-index: 5;
}

.error-bar:empty { display: none; }

.error-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: var(--danger-ink);
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 14px;
  /* Ta sama klatka co reszta pliku, ale dluzej i z lekkim przestrzeleniem:
     to komunikat, ktory ma zlapac wzrok, a nie wtopic sie w tresc. */
  animation: rise 0.5s cubic-bezier(0.22, 1.2, 0.4, 1) both;
}

.error-bar .error-actions { display: flex; gap: 10px; margin-left: auto; }

.error-bar button {
  font: inherit;
  font-weight: 600;
  color: var(--danger-ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--danger-line);
  border-radius: var(--r-pill);
  padding: 10px 15px;
  min-height: 44px;
  cursor: pointer;
}

/* Chip aktywnego trybu (scope) */
.mode-chip {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-2);
  border-radius: var(--r-pill);
  padding: 5px 6px 5px 12px;
  margin-bottom: 8px;
  width: fit-content;
}

.mode-chip.is-on { display: inline-flex; }

/* Po pierwszej wiadomosci body.chat-active chowa .hero-rest razem z kaflami
   trybow, wiec chip w docku jest jedynym wejsciem z powrotem do wyboru.
   Etykieta chipa staje sie przyciskiem rozwijajacym poziomy pasek trybow. */
.mode-chip .mc-label {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  min-height: 44px;
  cursor: pointer;
  text-align: left;
}

.mode-switch {
  list-style: none;
  display: none;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 8px;
}

.mode-switch.is-on { display: flex; }
.mode-switch::-webkit-scrollbar { display: none; }
.mode-switch .chip { flex: 0 0 auto; }

.mode-chip .mc-x {
  /* Cel dotykowy 44px, jak .icon-btn, .chip, .ma i .fu. Wysokosc i tak
     szla juz z reguly zbiorczej nizej, brakowalo tylko szerokosci. */
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: inherit;
  border-radius: 50%;
  cursor: pointer;
}


.mode-chip .mc-x svg { width: 14px; height: 14px; }

.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 27px;
  padding: 5px 5px 5px 18px;
  box-shadow: var(--shadow-float);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.composer:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-float), 0 0 0 3px rgba(10, 10, 10, 0.08);
}

/* Bylo tu dodatkowe `outline` na .composer przy :has(textarea:focus-visible).
   Pola tekstowe pasuja do :focus-visible rowniez przy kliknieciu myszka, wiec
   pierscien pojawial sie ZAWSZE i nakladal na obramowanie z :focus-within.
   Stan fokusa niesie teraz wylacznie regula :focus-within powyzej. */

.composer textarea {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  resize: none;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  padding: 11px 0;
  max-height: 132px;
  overflow-y: hidden;
  outline: none;
}

.composer textarea::placeholder { color: var(--ink-soft); opacity: 1; }

.send-btn {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.send-btn:active { transform: scale(0.92); }

/* Stan wylaczony: pole puste, wiec nie ma czego wyslac. Neutralne
   wypelnienie i kursor zamiast samego wygaszenia przezroczystoscia. */
.send-btn:disabled {
  background: var(--surface-2);
  color: var(--ink-soft);
  cursor: not-allowed;
  transform: none;
}

.send-btn:disabled:active { transform: none; }
.send-btn svg { width: 20px; height: 20px; }
.send-btn .icon-stop { display: none; }
.send-btn.is-streaming .icon-send { display: none; }
.send-btn.is-streaming .icon-stop { display: block; }

.legal-line {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  /* Zapas u gory, zeby powiekszony obszar dotyku linkow nie wchodzil
     w dolna krawedz composera. */
  padding-top: 14px;
}

/* Obszar dotyku wiekszy niz sam tekst, bez zmiany wygladu. Rozsuniecie
   w poziomie celowo male (6px), zeby pola obu linkow nie zeszly sie na
   separatorze i nie bylo watpliwosci, w ktory link sie trafia. */
.legal-line a { color: var(--ink-soft); position: relative; display: inline-block; }
.legal-line a::after { content: ""; position: absolute; inset: -14px -6px; }
.legal-line a:hover { color: var(--ink); }

/* ---------- Strony prawne ---------- */

.page .page-main {
  max-width: var(--col-max);
  margin-inline: auto;
  padding: 26px 20px 60px;
}

.page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 26px;
  min-height: 44px;
}

.page h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.page .page-updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 30px; }

.page h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 32px 0 10px;
}

.page p, .page li { font-size: 15.5px; margin-bottom: 10px; }
.page ul, .page ol { padding-left: 22px; margin-bottom: 14px; }
.page li { margin-bottom: 6px; }

.page .page-footer {
  max-width: var(--col-max);
  margin-inline: auto;
  padding: 0 20px 40px;
  color: var(--ink-soft);
  font-size: 13px;
}

/* ---------- Animacje ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes shimmer {
  from { background-position: 140% 0; }
  to { background-position: -40% 0; }
}

@keyframes shimmerText {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10, 10, 10, 0.18); }
  50% { box-shadow: 0 0 0 4px rgba(10, 10, 10, 0); }
}

@keyframes sparkPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Hover tylko przy prawdziwym kursorze (bez zawieszania na dotyku) */
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { box-shadow: var(--shadow-soft); transform: translateY(-1px); }
  .chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); }
  .mode-tile:hover { transform: translateY(-8px); box-shadow: var(--shadow-float); border-color: var(--line-strong); }
  .pcard:not(.pcard-skel):hover { transform: translateY(-8px); box-shadow: var(--shadow-float); }
  .ma:hover { background: var(--surface-2); color: var(--ink); }
  .toast .toast-act:hover { background: rgba(255, 255, 255, 0.26); }
  .mode-chip .mc-x:hover { background: rgba(10, 10, 10, 0.08); }
  .fu:hover { background: var(--accent-tint-2); }
  .opt:hover { background: var(--surface-2); border-color: var(--ink); }
  .think.is-done .think-head:hover { background: var(--surface-2); }
  .src:hover { border-color: var(--line-strong); color: var(--ink); }
  .opt-own:hover { color: var(--ink); }
  .scroll-fab:hover { border-color: var(--line-strong); }
  .send-btn:hover { background: var(--accent-deep); }
  .error-bar button:hover { background: rgba(10, 10, 10, 0.18); }
}

/* ---------- Wieksze ekrany ---------- */

@media (max-width: 359px) {
  .pcards.two { grid-template-columns: 1fr; }
}

@media (min-width: 760px) {
  .app-header { padding-left: 24px; padding-right: 24px; }
  .app-header .header-inner {
    max-width: calc(var(--col-max) + 48px);
    margin-inline: auto;
  }
  .scroll-region { padding: 0 24px; }
  .hero-head { padding-top: 52px; }
  .hero-rest { gap: 26px; }
  .msg-user { padding-top: 38px; }
  .modes { grid-template-columns: repeat(4, 1fr); }
  .pcards { grid-template-columns: 1fr 1fr; }
  .dock { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* Niski viewport (klawiatura na malym telefonie): nie pozwol dockowi zjesc rozmowy. */
@media (max-height: 560px) {
  .composer textarea { max-height: 76px; }
}

/* ==========================================================================
   PLAYBOOK UX + TWARDE POPRAWKI MOBILNE (czat)
   Stoja na koncu pliku, zeby nadpisac wszystko powyzej.
   ========================================================================== */

/* --- Sprzezenie dotykowe -------------------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

a, button, [role="button"], input, textarea, select, summary,
.opt, .fu, .mode-tile, .mode-chip, .src, .ma {
  touch-action: manipulation;
}

/* Reakcja na dotkniecie ponizej 100ms: bez tego przycisk sprawia wrazenie,
   ze nie zarejestrowal wcisniecia i uzytkowniczka klika drugi raz. */
.opt:active, .fu:active, .mode-tile:active, .src:active, .ma:active {
  transform: scale(0.98);
  transition: transform 0.07s ease-out;
}
.send-btn:active { transform: scale(0.93); transition: transform 0.07s ease-out; }

/* --- Cele dotykowe -------------------------------------------------------- */
.brand,
.foot a,
footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.opt, .fu, .mode-chip .mc-x, .ma, .src {
  min-height: 44px;
}

/* --- Przewijanie ---------------------------------------------------------
   Bez tego gest przewijania w gore na poczatku rozmowy uruchamia
   odswiezenie strony i kasuje kontekst rozmowy. */
body { overscroll-behavior-y: none; }
.thread, .msgs, main { overscroll-behavior: contain; }

/* --- Fokus klawiatury ----------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Wybrany kafel trybu ma czarna ramke (--accent), a --focus jest tym samym
   czarnym, wiec z klawiatury nie dalo sie odroznic pozycji od zaznaczenia.
   Pierscien dostaje wlasny kolor: --star ma okolo 7,7:1 na bieli, czyli
   duzy zapas ponad 3:1 wymagane dla grafiki nietekstowej. */
.mode-tile:focus-visible { outline-color: var(--star); }

/* Pole w composerze nie dostaje wlasnego pierscienia: ramka dookola calego
   composera jest juz czytelnym wskazaniem fokusa, a dwa pierscienie jeden
   w drugim wygladaja jak blad renderowania. */
.composer textarea:focus-visible,
.composer input:focus-visible { outline: none; }

/* --- Waskie ekrany -------------------------------------------------------- */
@media (max-width: 640px) {
  .opt { min-height: 48px; padding-block: 0.7rem; }
  .fu  { min-height: 44px; }
  .mode-tile { min-height: 88px; }
  /* Kciuk siega dolnej krawedzi, wiec pole pisania musi miec zapas. */
  .composer textarea, .composer input { font-size: 16px; }
}

/* Chipy to cale zdania, wiec na waskim ekranie zawijaly sie w trzy rzedy
   i spychaly tresc pod krawedz. Jeden rzad z przewijaniem w poziomie
   i wygaszeniem przy prawej krawedzi, ktore zapowiada dalsze chipy. */
@media (max-width: 599px) {
  .chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    /* Zapas na pierscien fokusa, ktory inaczej zostalby przyciety. */
    padding-block: 5px;
    margin-block: -5px;
    margin-inline: -18px;
    padding-inline: 18px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .opt:active, .fu:active, .mode-tile:active, .src:active,
  .ma:active, .send-btn:active { transform: none; }
}

/* --- Czasy wejscia ekranu startowego -------------------------------------
   Wejscie ma miescic sie w 200-300 ms, a stagger ma byc rowny (~50 ms).
   Bylo 500 ms i odstepy 0/60/120/180/300, wiec ostatni element ladowal
   po 800 ms. Blok stoi na koncu pliku, wiec nadpisuje sekcje hero. */
.hero-head  { animation: rise 0.28s 0s ease-out both; }
.hero-title { animation: rise 0.28s 0.05s ease-out both; }
.hero-sub   { animation: rise 0.28s 0.1s ease-out both; }
.modes-wrap { animation: rise 0.28s 0.15s ease-out both; }
.chips      { animation: rise 0.28s 0.2s ease-out both; }
.trust      { animation: rise 0.28s 0.25s ease-out both; }

/* ==========================================================================
   STYLE DLA ELEMENTOW DODANYCH PRZY WDRAZANIU PLAYBOOKA
   Bez nich JS wstawia elementy, ktorych nie widac albo wygladaja systemowo.
   ========================================================================== */

/* Zamkniecie toastu recznie: 44px celu dotykowego, bez powiekszania paska. */
.toast .toast-x {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: -8px;
  border: none;
  background: transparent;
  color: inherit;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.toast .toast-x svg { width: 16px; height: 16px; }
.toast .toast-x:hover { opacity: 1; background: rgba(255, 255, 255, 0.16); }
.toast .toast-x:focus-visible { outline: 2px solid var(--focus-on-dark); outline-offset: 2px; }

/* Wyjscie toastu krotsze od wejscia, zgodnie z reguła 40% szybszego wyjscia. */
.toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.16s ease-in, transform 0.16s ease-in;
}

/* Gdy katalog nie wstal albo model podal nieistniejacy identyfikator, zamiast
   ciszy pokazujemy notke. Pelna szerokosc, zeby nie wlaczala siatki dwukolumnowej. */
.pcard-missing {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);          /* 5,07:1 na bieli */
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.pcard-missing a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* Miejsce na chipy propozycji rezerwowane z gory, zeby tresc nie podskakiwala. */
.followups.is-skel { pointer-events: none; }
.fu-skel {
  display: inline-block;
  height: 34px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--surface-2) 25%, #E9E9EB 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border: none;
}

/* Podpis w naglowku toku myslenia. */
.think-title { flex: 1 1 auto; text-align: left; }

/* Adnotacja o przerwanej odpowiedzi: ma byc czytelna, ale nie krzyczec. */
.msg-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  font-style: normal;
}
.msg-note::before { content: '· '; }

/* Naglowek toku myslenia w trakcie generowania nie jest jeszcze klikalny. */
.think-head[aria-disabled="true"] { cursor: default; }
.think-head[aria-disabled="true"] .think-chev { opacity: 0.35; }

@media (prefers-reduced-motion: reduce) {
  .fu-skel { animation: none; }
  .toast.is-leaving { transition-duration: 0.01ms; }
}

/* Podglad "Tak wyglada odpowiedz" to ilustracja, nie realne ladowanie.
   Migoczacy w nieskonczonosc szkielet czyta sie jak zawieszone wczytywanie,
   wiec tutaj zatrzymujemy przebieg swiatla i zostawiamy sam ksztalt. */
.ghost-preview .pcard-skel .sk-media,
.ghost-preview .pcard-skel .sk-line {
  animation: none;
  background: var(--surface-2);
}
