/* Wygląd klikalnego ekranu. Paleta i proporcje przepisane z aplikacji i z prawdziwych
   zrzutów — rozmiary w `cqw`, czyli w procentach szerokości telefonu, żeby ekran skalował
   się w całości razem z ramką, a nie rozjeżdżał na mniejszym oknie. */
.fon-ekran.mockup {
  --m-tlo: #0c0b0b; --m-karta: #141212; --m-sunk: #1b1818;
  --m-linia: #262322; --m-linia2: #3a3633;
  --m-ink: #f4f2f1; --m-ink2: #d6d1ce; --m-cichy: #9c9693;
  --m-marka: #FF1E00; --m-red: #e94c32; --m-amber: #ff9100; --m-zywy: #00C853;
  background: var(--m-tlo); color: var(--m-ink);
  font-size: 3.9cqw; line-height: 1.35;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .fon-ekran.mockup {
    --m-tlo: #fff; --m-karta: #f7f7f5; --m-sunk: #efeeec;
    --m-linia: #e6e3e0; --m-linia2: #cfcac6;
    --m-ink: #15120f; --m-ink2: #3d3733; --m-cichy: #6f6763; }
}
:root[data-theme="light"] .fon-ekran.mockup {
  --m-tlo: #fff; --m-karta: #f7f7f5; --m-sunk: #efeeec;
  --m-linia: #e6e3e0; --m-linia2: #cfcac6;
  --m-ink: #15120f; --m-ink2: #3d3733; --m-cichy: #6f6763; }

.mockup button { font: inherit; color: inherit; background: none; border: 0; padding: 0;
                 cursor: pointer; text-align: inherit; }
.mockup .m-glucha { cursor: default; }
.mockup .czerw { color: var(--m-marka); }
.mockup .zielony { color: var(--m-zywy); }

.m-wyspa { position: absolute; top: 2cqw; left: 50%; transform: translateX(-50%);
           width: 24cqw; height: 6.6cqw; border-radius: 3.3cqw; background: #000; z-index: 3; }
.m-stan { display: flex; justify-content: space-between; align-items: center;
          padding: 3cqw 6cqw 1cqw; font-size: 3.6cqw; font-weight: 600;
          font-family: var(--krój-liczby); flex: none; }
.m-ikonki { display: flex; gap: 1.4cqw; align-items: center; opacity: .85; }

.m-tresc { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
           padding: 1cqw 4cqw 3cqw; scrollbar-width: none; }
.m-tresc::-webkit-scrollbar { display: none; }

.m-naglowek { display: flex; align-items: center; gap: 2cqw; padding: 2cqw 0 1cqw; }
.m-wstecz { color: var(--m-cichy); font-size: 5.5cqw; line-height: 1; }
.m-naglowek b { font-size: 6.2cqw; font-weight: 700; letter-spacing: -.02em; }
.m-stanik { color: var(--m-marka); font-size: 3cqw; font-weight: 600; letter-spacing: .04em; }
.m-ikony-prawe { margin-left: auto; display: flex; gap: 3cqw; color: var(--m-ink2); }
.m-ikony-prawe svg { width: 5.4cqw; height: 5.4cqw; }

.m-podglowek { display: flex; align-items: center; justify-content: space-between;
               font-size: 3.4cqw; color: var(--m-cichy); padding-bottom: 3cqw; }
.m-live { background: var(--m-zywy); color: #06240f; font-weight: 700; font-size: 3cqw;
          letter-spacing: .08em; padding: .8cqw 2.4cqw; border-radius: 4cqw;
          font-family: var(--krój-liczby); }

.m-dwa { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.m-kafel { background: var(--m-karta); border-radius: 3cqw; padding: 3cqw 3.4cqw; position: relative; }
.m-grzeje { display: block; color: var(--m-marka); font-size: 2.8cqw; font-weight: 700; letter-spacing: .04em; }
.m-kafel-tyt { display: block; color: var(--m-ink2); font-size: 3.4cqw; letter-spacing: .02em; margin-bottom: 1cqw; }
.m-wl { display: inline-block; background: var(--m-marka); color: #fff; font-size: 2.7cqw;
        font-weight: 700; padding: .6cqw 1.8cqw; border-radius: .8cqw; }
.m-duza { font-family: var(--krój-liczby); font-size: 9cqw; font-weight: 700;
          letter-spacing: -.04em; margin-top: 1.4cqw; font-variant-numeric: tabular-nums; }
.m-duza i { font-size: 3.6cqw; font-style: normal; color: var(--m-cichy); margin-left: .5cqw; }
.m-pod { color: var(--m-cichy); font-size: 3.2cqw; margin-top: .4cqw; }
.m-rog { position: absolute; top: 3cqw; right: 3cqw; text-align: center; }
.m-rog b { display: block; font-family: var(--krój-liczby); font-size: 4.4cqw; font-weight: 600; }
.m-rog span { display: block; font-size: 2.7cqw; color: var(--m-cichy); }
.m-kolko { width: 7cqw; height: 7cqw; border-radius: 50%; border: 1px solid var(--m-linia2);
           display: grid; place-items: center; color: var(--m-cichy); font-size: 4cqw;
           margin: .8cqw auto; }

.m-sek { margin-top: 4cqw; }
.m-sek-gl { display: flex; align-items: center; justify-content: space-between;
            font-size: 3cqw; letter-spacing: .1em; color: var(--m-cichy); margin-bottom: 2cqw; }
.m-taby { display: flex; gap: .6cqw; }
.m-taby button { font-size: 3.2cqw; color: var(--m-cichy); padding: .6cqw 2cqw;
                 border-radius: 1.6cqw; letter-spacing: 0; }
.m-taby button[data-on] { background: var(--m-sunk); color: var(--m-ink);
                          border: 1px solid var(--m-linia2); }
.m-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.m-trio k { display: block; font-size: 3.2cqw; color: var(--m-cichy); }
.m-trio v { display: block; margin-top: .6cqw; font-family: var(--krój-liczby);
            font-size: 6cqw; font-weight: 700; letter-spacing: -.03em;
            font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-trio v u { font-size: 3cqw; color: var(--m-cichy); text-decoration: none; margin-left: .5cqw; }
.m-listki { display: inline-flex; gap: .3cqw; margin-left: 1cqw; vertical-align: middle; line-height: 0; }
.m-listki svg { width: 3.4cqw; height: 3.4cqw; display: block; }
.m-linia { height: 1px; background: var(--m-linia); margin: 3.4cqw 0; }
.m-maly { font-size: 3cqw; color: var(--m-cichy); margin-top: 1.6cqw; }

.m-wiersz { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw;
            padding: 2.2cqw 0; border-bottom: 1px solid var(--m-linia); font-size: 3.6cqw;
            color: var(--m-cichy); }
.m-wiersz b { color: var(--m-ink); font-family: var(--krój-liczby); font-weight: 600;
              font-variant-numeric: tabular-nums; text-align: right; }
.m-strefa b { font-weight: 500; }

.m-tryby { display: flex; gap: 1.6cqw; margin-bottom: 1cqw; }
.m-tryby button { flex: 1; font-size: 3.2cqw; padding: 2cqw 0; border-radius: 2cqw;
                  border: 1px solid var(--m-linia2); color: var(--m-ink2); text-align: center; }
.m-tryby button[data-on] { background: var(--m-marka); border-color: var(--m-marka);
                           color: #fff; font-weight: 700; }
.m-wylacz { border: 1px solid var(--m-marka); color: var(--m-marka); font-size: 3.2cqw;
            padding: 1.4cqw 4cqw; border-radius: 2cqw; }

/* pogoda */
.m-pogoda { margin-top: 4cqw; border-radius: 3.5cqw; padding: 3.4cqw 3.8cqw; color: #fff; }
.m-pog-gl { display: flex; align-items: center; gap: 2.6cqw; }
.m-pog-gl svg { width: 13cqw; height: 13cqw; flex: none; }
.m-pog-gl .op { flex: 1; font-size: 3.9cqw; font-weight: 600; line-height: 1.2; }
.m-pog-gl .op span { display: block; font-size: 3.2cqw; font-weight: 400; opacity: .82; }
.m-pog-gl .tm { font-family: var(--krój-liczby); font-size: 8.4cqw; font-weight: 600; letter-spacing: -.03em; }
.m-pog-gl .tm i { font-size: 3.4cqw; font-style: normal; opacity: .78; }
.m-pog-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; margin-top: 3cqw;
           padding-top: 2.6cqw; border-top: 1px solid rgba(255,255,255,.15); }
.m-pog-3 k { display: block; font-size: 2.6cqw; letter-spacing: .06em; opacity: .74; }
.m-pog-3 v { display: block; font-family: var(--krój-liczby); font-size: 4.2cqw; margin-top: .4cqw; }
.m-pog-dni { display: grid; grid-template-columns: repeat(7, 1fr); gap: .8cqw; margin-top: 2.8cqw;
             padding-top: 2.4cqw; border-top: 1px solid rgba(255,255,255,.15); }
.m-pog-dni div { display: flex; flex-direction: column; align-items: center; font-size: 2.6cqw; opacity: .85; }
.m-pog-dni svg { width: 6.4cqw; height: 6.4cqw; margin: .6cqw 0; flex: none; }
.m-pog-dni b { font-family: var(--krój-liczby); font-size: 3.2cqw; font-weight: 600; }
.m-pog-dni s { font-family: var(--krój-liczby); font-size: 2.9cqw; opacity: .62; text-decoration: none; }

/* wykresy */
.m-karta { background: var(--m-karta); border-radius: 3cqw; padding: 3.4cqw; margin-top: 3cqw; }
.m-karta-gl { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2.6cqw; }
.m-karta-gl b { font-size: 4.4cqw; font-weight: 700; }
.m-karta-gl span { font-size: 3cqw; color: var(--m-cichy); font-family: var(--krój-liczby); }
.m-slupki { display: flex; align-items: flex-end; gap: .8cqw; height: 28cqw; }
.m-slupek { flex: 1; position: relative; height: 100%; }
.m-slupek i { position: absolute; bottom: 4cqw; width: 100%; background: var(--m-marka); border-radius: .4cqw; }
.m-slupek u { position: absolute; bottom: 4cqw; width: 100%; background: var(--m-linia2); border-radius: .4cqw; }
.m-slupek span { position: absolute; bottom: 0; left: 0; right: 0; text-align: center;
                 font-size: 2.6cqw; color: var(--m-cichy); font-family: var(--krój-liczby); }
.m-legenda { display: flex; flex-wrap: wrap; gap: 3cqw; margin-top: 2.4cqw; font-size: 2.9cqw;
             color: var(--m-cichy); font-family: var(--krój-liczby); }
.m-legenda i { display: inline-block; width: 2.6cqw; height: .6cqw; margin-right: 1.2cqw; vertical-align: middle; }
.m-wykres { width: 100%; height: 40cqw; display: block; }
.m-os { stroke: var(--m-linia); stroke-width: .3; }
.m-os-t { fill: var(--m-cichy); font-size: 2.6px; text-anchor: end; font-family: var(--krój-liczby); }
.m-stopka { font-size: 2.9cqw; color: var(--m-cichy); margin: 3cqw 0 0; }

/* dolny pasek */
.m-pasek { display: grid; grid-template-columns: repeat(5, 1fr); flex: none;
           border-top: 1px solid var(--m-linia); padding: 2.8cqw 0 1.4cqw; background: var(--m-tlo); }
.m-pasek button { text-align: center; font-size: 3.4cqw; color: var(--m-cichy); line-height: 1.2;
                  letter-spacing: -.01em; }
.m-pasek button[data-on] { color: var(--m-marka); }
.m-pasek svg { width: 6.6cqw; height: 6.6cqw; display: block; margin: 0 auto 1.1cqw; }
.m-kreska-dolna { width: 34cqw; height: 1.2cqw; border-radius: .6cqw; background: var(--m-linia2);
                  margin: 0 auto 2.4cqw; flex: none; }

/* ---------- zakładka Wykresy ---------- */
.m-parametry { display: flex; align-items: center; justify-content: space-between;
               width: 100%; border: 1px solid var(--m-linia2); border-radius: 2.6cqw;
               padding: 3.4cqw 4cqw; font-size: 4cqw; margin-top: 2cqw; }
.m-parametry span { color: var(--m-cichy); }

.m-zakladki { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4cqw; }
.m-zakladki button { padding: 2.6cqw 0; font-size: 4cqw; color: var(--m-cichy);
                     text-align: center; position: relative; }
.m-zakladki button[data-on] { color: var(--m-ink); font-weight: 700; }
.m-zakladki button[data-on]::after { content: ""; position: absolute; left: 22%; right: 22%;
  bottom: 0; height: .9cqw; border-radius: .5cqw; background: var(--m-marka); }

.m-nawig { display: flex; align-items: center; justify-content: space-between;
           gap: 2cqw; padding: 3.4cqw 1cqw 1cqw; text-align: center; }
.m-nawig b { display: block; font-size: 4.6cqw; font-weight: 700; }
.m-nawig span { font-size: 3.2cqw; color: var(--m-cichy); }
.m-strzalka { font-size: 5.6cqw; color: var(--m-ink2); line-height: 1; }
.m-blada { opacity: .3; }

/* Słupki z podziałką: oś rysujemy POD słupkami, a nie obok — tak jest w aplikacji
   i dzięki temu wykres zajmuje całą szerokość karty. */
.m-karta-wyk { position: relative; padding: 5cqw 4cqw 3cqw; }
.m-sl-osie { position: absolute; left: 4cqw; right: 4cqw; top: 5cqw; bottom: 9cqw; }
.m-sl-osie div { position: absolute; left: 0; right: 0; border-top: 1px solid var(--m-linia); }
.m-sl-osie s { position: absolute; left: 0; top: -2cqw; font-size: 2.8cqw; color: var(--m-cichy);
               background: var(--m-karta); padding-right: 1.4cqw; text-decoration: none;
               font-family: var(--krój-liczby); }
.m-slupki { display: flex; align-items: flex-end; gap: .7cqw; height: 34cqw;
            position: relative; padding-left: 7cqw; }
.m-sl { flex: 1; position: relative; height: 100%; display: flex; flex-direction: column;
        justify-content: flex-end; }
.m-sl i { display: block; width: 100%; }
.m-sl-c { background: var(--m-marka); border-radius: .5cqw .5cqw 0 0; }
.m-sl-w { background: var(--m-amber); }
.m-sl-d { background: #29B6F6; border-radius: .5cqw .5cqw 0 0; }
.m-sl span { position: absolute; bottom: -5cqw; left: 50%; transform: translateX(-50%);
             font-size: 2.7cqw; color: var(--m-cichy); font-family: var(--krój-liczby);
             white-space: nowrap; }

.m-leg { margin-top: 7cqw; }
.m-leg-w { display: flex; justify-content: space-between; align-items: center;
           padding: 2.4cqw 0; border-bottom: 1px solid var(--m-linia); font-size: 4cqw; }
.m-leg-w span { display: flex; align-items: center; gap: 2.4cqw; }
.m-leg-w i { width: 3.4cqw; height: 3.4cqw; border-radius: .6cqw; display: block; }
.m-leg-w b { font-family: var(--krój-liczby); font-weight: 700; }
.m-razem { display: flex; justify-content: space-between; align-items: baseline;
           padding: 3.4cqw 0 1cqw; font-size: 4cqw; color: var(--m-cichy); }
.m-razem b { color: var(--m-ink); font-family: var(--krój-liczby); font-size: 7cqw;
             font-weight: 700; letter-spacing: -.03em; }
.m-razem b u { font-size: 3.2cqw; color: var(--m-cichy); text-decoration: none; margin-left: .6cqw; }

.m-hz-pole { fill: var(--m-marka); opacity: .18; }
.m-hz-linia { fill: none; stroke: var(--m-marka); stroke-width: 1.1;
              vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.m-hz { height: 30cqw; }

/* karty diagnostyczne */
.m-prog { stroke-width: .35; stroke-dasharray: 1.6 1.4; fill: none; }
.m-prog.niebieski { stroke: #2979FF; opacity: .55; }
.m-prog.czerwony { stroke: var(--m-red); opacity: .55; }
.m-prog.pomaranczowy { stroke: var(--m-amber); opacity: .7; }
.m-temp { fill: none; stroke: var(--m-amber); stroke-width: 1.2; stroke-dasharray: 2 1.6;
          vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.m-cel { fill: none; stroke: var(--m-cichy); stroke-width: 1; stroke-dasharray: 2 1.8;
         vector-effect: non-scaling-stroke; opacity: .8; }
.m-jedn { font-size: 2.8cqw; color: var(--m-cichy); font-family: var(--krój-liczby); margin-top: -1cqw; }
.m-pyt { display: inline-grid; place-items: center; width: 4cqw; height: 4cqw; margin-left: 1.4cqw;
         border: 1px solid var(--m-linia2); border-radius: 50%; font-size: 2.7cqw; font-style: normal;
         font-weight: 500; color: var(--m-cichy); vertical-align: 15%; }
.m-taby-karta { margin: -1cqw 0 2.4cqw; }
.m-pod-karta { font-size: 2.7cqw; letter-spacing: .09em; color: var(--m-cichy); margin: 2.4cqw 0 .6cqw; }
.m-mini { width: 100%; height: 20cqw; display: block; }
.m-mini .m-os-t { font-size: 2.4px; }
.m-trio-karta { margin-top: 3.4cqw; }
