/* Blok „Twoje” na starcie i wiersz „Dodaj zrzut, tytuł i cenę” (nowy panel 19.11.2026).
   Reguły przepisane 1:1 z makiety (RAPORTY/2026-11-10_NOWY_PANEL/makiety/app.html, stan: Cisza, Lżejsza, start),
   wyciągnięte narzędziem RAPORTY/2026-11-19_NOWY_PANEL_ROZNICE/narzedzia/wyciagnij-css.js.
   Przedrostki body[data-sp="prop"], body[data-lk="1"] i body[data-wg="cisza"] są w apce zawsze prawdziwe, więc ich nie ma,
   a każda reguła siedzi pod #twoje albo .dodaj-wiersz, żeby nie ruszyć reszty apki (stare .kw, .hist, .nr, .btn-tekst).
   Porównanie z makietą element po elemencie: RAPORTY/2026-11-19_NOWY_PANEL_ROZNICE/narzedzia/porownaj.js. */

#twoje,.dodaj-wiersz{--line-mocna:#5B7B9C;}
#twoje{font-size:16px;line-height:1.5;color:var(--text);}
#twoje *,.dodaj-wiersz *{box-sizing:border-box;}
#twoje [hidden]{display:none !important;}
#twoje p{margin:0;}
#twoje h2{margin:0;line-height:1.15;font-weight:800;}
#twoje button,.dodaj-wiersz button{font:inherit;color:inherit;cursor:pointer;}
#twoje :focus-visible,.dodaj-wiersz :focus-visible{outline:2px solid var(--gold-b);outline-offset:3px;border-radius:8px;}
#twoje .kw{font-variant-numeric:tabular-nums;font-stretch:125%;font-weight:800;letter-spacing:-.02em;white-space:nowrap;}
#twoje .ikona,.dodaj-wiersz .ikona{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}

/* przyciski tekstowe (wygląd Cisza: kremowe, ikona szara, złote pod kursorem) */
#twoje .btn-tekst,.dodaj-wiersz .btn-tekst{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;border:0;background:none;color:var(--cream);font-weight:600;font-size:15px;}
#twoje .btn-tekst .ikona{color:var(--muted);}
#twoje .btn-tekst:hover{color:var(--gold-b);}

/* ── wiersz „Dodaj zrzut, tytuł i cenę” pod polem ── */
.dodaj-wiersz{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;text-align:left;margin-top:12px;}
.dodaj-wiersz .dodaj{justify-self:start;min-height:44px;padding:0 16px 0 12px;border:1px solid rgba(221,187,112,.55);border-radius:999px;
  background:rgba(221,187,112,.08);color:var(--cream);font-size:15px;font-weight:700;line-height:1.5;}
.dodaj-wiersz .dodaj .ikona{width:18px;height:18px;color:var(--gold-b);transition:transform .16s var(--ease);}
.dodaj-wiersz .dodaj .ik-zwin{display:none;rotate:-90deg;}
.dodaj-wiersz .dodaj[aria-expanded="true"] .ik-plus{display:none;}
.dodaj-wiersz .dodaj[aria-expanded="true"] .ik-zwin{display:block;}
.dodaj-wiersz .dodaj-pod{display:none;font-size:14px;line-height:1.5;color:var(--muted);}
#search-form:not(:has(.opcje-wejscia.show)) .dodaj-pod{display:inline;}
@media (hover:hover){.dodaj-wiersz .dodaj:hover{color:var(--cream);border-color:rgba(221,187,112,.8);background:rgba(221,187,112,.13);}}
@media (hover:none){.dodaj-wiersz .dodaj:hover{color:var(--cream);}}
@media (min-width:1024px){.dodaj-wiersz .dodaj{min-height:40px;}}
@media (prefers-reduced-motion:reduce){.dodaj-wiersz .dodaj .ikona{transition:none;}}

/* ── kwota (lewa kolumna) ── */
#twoje .wu-glowna{font-size:16px;line-height:1.4;color:var(--muted);text-wrap:pretty;}
#twoje .wu-kw{display:block;margin-top:2px;font-size:32px;line-height:1.1;font-weight:800;font-stretch:118%;letter-spacing:-.01em;color:var(--cream);font-variant-numeric:tabular-nums;}
#twoje .wu-pod{margin-top:8px;font-size:14px;line-height:1.45;color:var(--muted);text-wrap:pretty;}
#twoje .wu-pod b{color:var(--cream);font-weight:700;}
#twoje .wu-pod .btn-tekst{min-height:36px;font-size:14px;}
#twoje .wu-pod .btn-tekst .ikona{width:16px;height:16px;}
#twoje .wu-in:is([data-u-pokaz="b"],[data-u-pokaz="c"]) .wu-pod{display:none;}
#twoje .wu-ile{margin-top:4px;font-size:15px;line-height:1.4;color:var(--muted);}

/* ── lista (prawa kolumna) ── */
#twoje .tw-lista{background:var(--bg2);border:1px solid var(--hair);border-radius:20px;overflow:hidden;text-align:left;}
#twoje .mod-g{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px 8px;}
#twoje .mod-t{font-size:16px;line-height:1.3;font-weight:700;font-stretch:100%;letter-spacing:0;color:var(--cream);}
#twoje .pierwsze .mod-t{padding:14px 16px 12px;}
#twoje .mod-g .btn-tekst{min-height:36px;font-size:14px;}
#twoje .mod-g .btn-tekst .ikona{width:16px;height:16px;}

#twoje .hist{list-style:none;margin:28px 0 0;padding:0;border-radius:20px;background:var(--bg2);border:1px solid var(--hair);overflow:hidden;max-width:900px;}
#twoje .hist li+li{border-top:1px solid var(--hair);}
#twoje .hist button{all:unset;box-sizing:border-box;cursor:pointer;width:100%;display:grid;grid-template-columns:1fr auto;gap:4px 16px;padding:16px 20px;}
#twoje .hist button:hover{background:rgba(242,236,223,.03);}
#twoje .hist button:focus-visible{outline:2px solid var(--gold-b);outline-offset:-2px;}
#twoje .h-nazwa{font-weight:600;color:var(--cream);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#twoje .h-kiedy{font-size:14px;color:var(--muted);grid-column:1;}
#twoje .h-wynik{grid-column:2;grid-row:1/span 2;align-self:center;text-align:right;}
#twoje .h-wynik .kw{display:block;font-size:18px;color:var(--cream);}
#twoje .h-wynik span{font-size:14px;color:var(--ok);font-weight:600;}
#twoje .h-wynik span.nie{color:var(--muted);font-weight:500;}
@media (max-width:599px){
  #twoje .hist button{grid-template-columns:1fr;}
  #twoje .h-nazwa{white-space:normal;}
  #twoje .h-wynik{grid-column:1;grid-row:auto;text-align:left;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:6px;}
  #twoje .h-wynik .kw{display:inline;}
}
#twoje .tw-hist{margin:0;max-width:none;border:0;border-top:1px solid var(--hair);border-radius:0;background:none;}
#twoje .tw-hist button{grid-template-columns:minmax(0,1fr) auto;gap:2px 16px;padding:12px 16px;}
#twoje .tw-hist .h-nazwa{white-space:nowrap;}
#twoje .tw-hist .h-kiedy{grid-column:1;}
#twoje .tw-hist .h-wynik{grid-column:2;grid-row:1/span 2;display:block;margin:0;text-align:right;}
#twoje .tw-hist .h-wynik .kw{display:none;}
#twoje .tw-hist .h-wynik span:not(.nie){font-size:15px;font-weight:700;}
#twoje .tw-hist .h-wynik span.nie{display:block;margin-left:auto;line-height:1.35;color:rgba(242,236,223,.78);text-wrap:balance;}

/* „Jak zacząć” u nowego ucznia */
#twoje .nr{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;border:1.5px solid rgba(221,187,112,.55);color:var(--gold-b);font-weight:800;font-size:15px;font-variant-numeric:tabular-nums;}
#twoje .kroki-s{list-style:none;margin:0;padding:0;border-top:1px solid var(--hair);}
#twoje .kroki-s li{display:grid;grid-template-columns:28px 1fr;gap:14px;padding:12px 16px;}
#twoje .kroki-s li+li{border-top:1px solid var(--hair);}
#twoje .kroki-s .nr{width:28px;height:28px;font-size:14px;border-color:var(--line-mocna);color:var(--cream);}
#twoje .kroki-s b{display:block;font-weight:700;color:var(--cream);text-wrap:balance;}
#twoje .kroki-s div span{display:block;margin-top:2px;font-size:14px;line-height:1.45;color:var(--muted);text-wrap:pretty;}
#twoje .pierwsze-pomoc{margin-top:14px;}
#twoje .pierwsze-pomoc .btn-tekst{display:inline-flex;align-items:center;gap:8px;min-height:44px;}
#twoje .pierwsze-pomoc .btn-tekst .ikona{width:18px;height:18px;}

/* ── wykres ── */
#twoje .wu-wykres{position:relative;margin:0;}
#twoje .wu-wykres svg{display:block;width:100%;height:auto;overflow:visible;}
#twoje .wu-wykres .wk-os{fill:none;stroke:var(--hair);stroke-width:1;}
#twoje .wu-wykres .wk-linia{fill:none;stroke:var(--ok);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1;}
#twoje .wu-wykres .wk-pkt{fill:var(--bg2);stroke:var(--ok);stroke-width:1.5;transform-box:fill-box;transform-origin:center;}
#twoje .wu-wykres .wk-ost{fill:var(--ok);stroke:rgba(143,208,143,.28);stroke-width:5;paint-order:stroke;}
#twoje .wu-wykres .wk-plus{position:absolute;right:0;top:0;font-size:14px;line-height:1;font-weight:700;color:var(--ok);font-variant-numeric:tabular-nums;}
#twoje .wu-wykres figcaption{display:flex;justify-content:space-between;margin-top:6px;font-size:13px;line-height:1.3;color:var(--muted);}
#twoje .wu-wykres.rysuj .wk-linia{animation:wk-rysuj .9s cubic-bezier(.22,1,.36,1) both;}
#twoje .wu-wykres.rysuj .wk-pole{animation:wk-wejdz .6s ease-out .45s both;}
#twoje .wu-wykres.rysuj .wk-pkt{animation:wk-pkt .3s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--d) * 1ms);}
#twoje .wu-wykres.rysuj .wk-plus{animation:wk-plus .35s cubic-bezier(.22,1,.36,1) .9s both;}
@keyframes wk-rysuj{from{stroke-dashoffset:1}}
@keyframes wk-wejdz{from{opacity:0}}
@keyframes wk-pkt{from{opacity:0;scale:.3}}
@keyframes wk-plus{from{opacity:0;translate:0 4px}}
@media (prefers-reduced-motion:reduce){#twoje .wu-wykres.rysuj *{animation:none !important;}}

/* ── stan „nic tańszego” (u=c) ── */
#twoje .wu-rada{display:block;margin-top:18px;padding:12px 14px 14px;border-radius:12px;background:rgba(242,236,223,.06);}
#twoje .wu-rada p{margin:0;}
#twoje .wr-t{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.3;font-weight:600;color:var(--cream);}
#twoje .wr-t .ikona{width:18px;height:18px;color:var(--cream);}
#twoje .wr-p{font-size:14px;line-height:1.5;color:var(--muted);text-wrap:balance;margin-top:6px !important;}
#twoje .wr-p b{font-weight:600;color:var(--text);}
#twoje .wu-kw-c{white-space:nowrap;word-spacing:-.1em;}
#twoje .wu-kw-c span{font-size:22px;letter-spacing:0;font-stretch:100%;}
#twoje .wu-ile-c{color:var(--text);text-wrap:pretty;}

/* ── telefon i tablet: kwota pod polem, lista niżej (u=b i u=c pod kartą Nisz) ── */
@media (max-width:1023px){
  .start-kol{display:flex;flex-direction:column;}
  #twoje{display:contents;}
  #twoje .wu{margin-top:28px;}
  #twoje .wu-pod .btn-tekst{display:none;}
  #twoje .tw-lista{order:1;margin-top:28px;}
  #twoje[data-u="a"] .tw-lista{order:0;}
  #twoje .wu-wykres{display:none;}
  #twoje .tw-hist .h-nazwa{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:clip;}
  #twoje .tw-hist .h-wynik{max-width:min(168px,42vw);text-wrap:balance;}
  #twoje .mod-g{padding:6px 16px 4px;}
  #twoje .mod-g .btn-tekst{flex:0 0 auto;white-space:nowrap;min-height:44px;}
}

/* ── komputer: jedna karta, kwota po lewej (248 px), lista po prawej ── */
@media (min-width:1024px){
  #twoje .wu-glowna{text-wrap:balance;}
  #twoje .wu-pod b{display:block;}
  #twoje{display:grid;grid-template-columns:248px minmax(0,1fr);margin-top:36px;text-align:left;background:var(--bg2);border:1px solid var(--hair);border-radius:20px;overflow:hidden;}
  #twoje[data-bez-kwoty]{grid-template-columns:minmax(0,1fr);}
  #twoje .wu{display:flex;flex-direction:column;padding:20px 24px 16px;border-right:1px solid var(--hair);
    background:radial-gradient(140% 55% at 0% -10%,rgba(221,187,112,.20),transparent 64%);} /* 19.11: cicha złota poświata nad kwotą, jak w oknach */
  #twoje .wu-in{display:flex;flex-direction:column;flex:1;justify-content:flex-start;}
  #twoje .wu-kw{font-size:40px;font-stretch:110%;font-variant-numeric:proportional-nums;}
  #twoje .wu-kw[data-dl]{font-size:32px;}
  #twoje .wu-pod{margin-top:auto;padding-top:14px;border-top:1px solid var(--hair);}
  #twoje .wu-pod .btn-tekst{display:flex;margin-top:2px;}
  #twoje .tw-lista{background:none;border:0;border-radius:0;}
  #twoje .mod-g{padding:14px 24px 8px;}
  #twoje .pierwsze .mod-t{padding:18px 24px 12px;}
  #twoje :is(.tw-hist button,.kroki-s li){padding:12px 24px;}
  #twoje .wu-wykres{margin-top:auto;padding-top:16px;}
  #twoje .wu-wykres-a{margin-bottom:4px;}
  #twoje .wu-rada{margin:auto -12px 0;}
  #twoje .wu-wykres-a + .wu-pod{margin-top:12px;}
  #twoje .wu-ile-c{margin-bottom:16px;}
  #twoje .wu-wykres figcaption{font-size:14px;}
  #twoje .wu-wykres .wk-plus{top:10px;}
  #twoje .mod-t{font-size:18px;}
  #twoje .tw-hist .h-wynik span.nie{max-width:180px;font-size:15px;}
}
@media (min-width:1024px) and (max-height:860px){#twoje{margin-top:28px;}}
@media (min-width:1024px) and (hover:hover){#twoje .tw-hist button:hover{background:rgba(242,236,223,.05);}}

/* Blok żyje tylko na starcie: przy szukaniu i wyniku znika (jak karta Nisz). Stary licznik startu i kwota w pasku
   (kafelek „Drop Club znalazł Ci już taniej o”) na starcie nie stoją, bo kwotę pokazuje ten blok.
   19.11: start po „Wyszukaj kolejny produkt” (poprzedni wynik w pamięci, data-stan="start") liczy się jak pierwszy start. */
body:not([data-stan="start"]) main:has(#card-src.filled,#card-src.loading) #twoje{display:none;}
#card-src:not(.filled):not(.loading){display:none;}
:is(body[data-stan="start"],body:not(:has(#card-src.filled,#card-src.loading))) #osz-wrap{display:none !important;}
/* Schowany licznik nie zawija nagłówka (index.html: header:has(.osz-wrap:not([hidden])) przy ≤1000 px). Bez tego na 320 px
   chip „Masz … wyszukań” spadał pod logo na każdym ekranie bez wyniku; w makiecie stoi w jednej linii z logo. */
:is(body[data-stan="start"],body:not(:has(#card-src.filled,#card-src.loading))) header:has(#osz-wrap){flex-wrap:nowrap;}
/* Kwota z serwera jest, a na tym urządzeniu nie ma jeszcze wyszukań: sama kolumna kwoty, bez pustej listy. */
@media (min-width:1024px){#twoje[data-bez-listy]{grid-template-columns:minmax(0,1fr);} #twoje[data-bez-listy] .wu{border-right:0;}}

/* ═════ 1:1 z makietą: lewy pasek, licznik i pole szukania (19.11, wartości z reguł makiety, narzędzie reguly.js) ═════
   Makieta ma body z line-height 1.5, apka „normal”, więc wysokość linii ustawiamy tam, gdzie makieta jej używa. */
.chip.credits.pula{line-height:1.5;font-variant-numeric:normal;}
.search-input-wrap .lupa{width:20px;height:20px;flex:0 0 20px;margin-left:16px;}
.search-input-wrap input#q{padding:0 10px;font-weight:400;line-height:1.5;}
.search-input-wrap input#q::placeholder{color:rgb(130,150,170);opacity:1;}
.paste-chip{gap:8px;}
.paste-chip .ikona{width:20px;height:20px;flex:0 0 20px;}
.paste-chip span{line-height:1.5;}
.send{border:1px solid transparent;line-height:1.2;}
@media (min-width:1024px){
  aside.bok{line-height:1.5;}
  aside.bok nav > a.nav-nisze{gap:10px;}
  aside.bok #ccc-bok{gap:10px;margin:16px 0 0;}   /* makieta: .ccc 18 px pod menu, w apce karta siedzi w nav z odstępem 2 px */
  .ccc-cel-bok .ccc-cel-g svg{flex:0 0 18px;}
  aside.bok #ccc-bok .bok-cena{position:static;gap:10px;margin-top:auto;padding:14px 2px 0;border-top:1px solid var(--hair);background:none;box-shadow:none;}
  aside.bok #ccc-bok .bok-cena .bc-kw{margin:2px 0;}
  aside.bok nav > a.nav-ustawienia{height:52px;margin-top:6px;padding-top:8px;border-top:1px solid var(--hair);border-radius:0;}
  aside.bok nav > a.nav-ustawienia::before{display:none;}
}
@media (min-width:1024px) and (max-height:940px){
  aside.bok #ccc-bok{gap:8px;margin-top:6px;}
  aside.bok #ccc-bok .bok-cena{padding-top:10px;}
  aside.bok nav > a.nav-ustawienia{height:44px;padding-top:0;}
}
@media (min-width:1024px) and (max-height:740px){
  aside.bok #ccc-bok{gap:6px;}
  aside.bok nav > a.nav-ustawienia{height:38px;}
  /* bardzo niski ekran (1366×768 z paskiem przeglądarki): pasek się przewija, cena zostaje przyklejona na dole w kolorze paska */
  aside.bok #ccc-bok .bok-cena{position:sticky;bottom:0;z-index:1;padding-top:8px;
    background:linear-gradient(rgba(13,26,39,.32),rgba(13,26,39,.32)),var(--bg);box-shadow:0 -14px 14px -6px #122233;}
}
/* makieta przy ograniczonym ruchu: stała poświata zamiast pulsu */
@media (prefers-reduced-motion:reduce){
  .ccc-karta{box-shadow:0 0 22px rgba(255,64,90,.5);}
  .ccc-karta::after,.ccc-cel-bok::after{opacity:0;}
  .ccc-cel-bok{border-color:rgba(255,77,97,.7);box-shadow:0 0 0 3px rgba(255,77,97,.22);}
}
/* telefon: czerwona karta, karta Celu i linijka ceny pod polem (makieta .ccc-tel, .cel-tel, .cena-tel) */
@media (max-width:1023px){
  .start-kol > .ccc-tel{margin:28px 0 0;line-height:1.5;}
  .ccc-tel-g{font-stretch:125%;}
  .ccc-tel-pig{height:24px;font-size:12px;}
  .cena-tel span{text-wrap:balance;}
  .cena-tel b{text-wrap:wrap;}
  aside.bok nav > a,aside.bok nav > .nav-staty{line-height:1.5;}
}
@media (prefers-reduced-motion:reduce){
  .ccc-tel-karta{box-shadow:0 0 22px rgba(255,64,90,.5);}
  .ccc-tel-karta::after,.ccc-cel-tel::after{opacity:0;}
  .ccc-cel-tel{border-color:rgba(255,77,97,.7);box-shadow:0 0 0 3px rgba(255,77,97,.22);}
}
@media (max-width:1023px){
  .ccc-tel > .cena-tel{margin-top:0;line-height:1.5;}   /* odstęp 12 px daje już gap kolumny */
  .search-input-wrap input#q{font-size:17px;}
  .paste-chip{padding:0 10px;}
}
/* makieta: na telefonie i tablecie nazwa ma min(54px, 15vw), czyli 48 px przy 320 i 54 px od 360 px w górę */
@media (max-width:1023px){h1.marka{font-size:min(54px,15vw);}}
/* ═════ 19.11, runda ui-designer-landing (zrzuty makieta | apka): telefon 1:1, wartości z wyliczonego stylu makiety ═════
   kłódka ceny szara (makieta: :is(.pula,.cena-zamek,.cena-tel) .ikona{color:var(--muted)}), ikony w karcie cieńsze (1,8),
   pigułka „Nowość” do góry karty (:is(.ccc-karta,.ccc-tel) .ccc-pig{align-self:flex-start}), .wklej{margin-right:6px},
   kreska aktywnej zakładki kremowa, pod panelem bez marginesu (odstęp daje sam dół main, jak .start w makiecie). */
@media (max-width:1023px){
  .cena-tel svg{stroke:var(--muted);stroke-width:1.8;}
  .ccc-tel svg{stroke-width:1.8;}
  .ccc-tel-pig{align-self:flex-start;}
  .paste-chip{margin-right:6px;}
  aside.bok nav > a.active::before{background:var(--cream);}
}
@media (max-width:760px){.search-panel{margin-bottom:0;}}
