/* Ułamki na lekcję — style ekranu. Podstawa wspólna z Zegarem, Działaniami i Termometrem na lekcję (ta sama paleta, przyciski, słoneczko). */
:root {
  --sky: #dff1ff;
  --cream: #fff8e6;
  --ink: #1d2b4f;
  --ink-soft: #4a5a7d;
  --paper: #ffffff;
  --line: #c9d8ea;
  --blue: #1f66d6;
  --blue-dark: #174fa8;
  --sun: #ffd23f;
  --sun-dark: #e0a800;
  --sun-ink: #7a5a00;
  --green: #2e9e5b;
  --green-bg: #dcf5e4;
  --red: #e8523f;
  --red-bg: #ffe3dd;
  --orange: #f28c28;
  --face: #fffdf7;
  --face-ink: #1d2b4f;
  --radius: 22px;
  --hand: "Segoe Print", "Chalkboard SE", "Comic Sans MS", "Bradley Hand", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--sky); }
body {
  margin: 0; min-height: 100vh;
  background: linear-gradient(180deg, var(--sky) 0%, #eef7ff 45%, var(--cream) 100%);
  color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.4;
  display: flex; flex-direction: column;
}
body.follow-on { padding-bottom: 120px; }

a { color: var(--blue-dark); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nagłówek ---------- */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding: 14px 20px 6px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo { width: 56px; height: 56px; flex: none; }
.top h1 { margin: 0; font-family: var(--hand); font-size: 32px; line-height: 1.1; }
.top h1 span { color: var(--blue); }
.top .sub { margin: 2px 0 0; color: var(--ink-soft); font-size: 16px; }
.modes { display: flex; gap: 8px; flex-wrap: wrap; }
.modes .btn { border-width: 3px; }
.modes .btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; min-width: 44px; padding: 8px 20px;
  font-size: 20px; font-weight: 700; line-height: 1.15;
  border-radius: 999px; border: 3px solid var(--ink);
  background: var(--paper); color: var(--ink);
  text-decoration: none; box-shadow: 0 3px 0 var(--ink);
  transition: transform .08s ease;
}
.btn:hover { background: #f3f8ff; }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible, .toggle:focus-visible, .seg button:focus-visible, .answer:focus-visible, .option:focus-visible {
  outline: 4px solid var(--blue); outline-offset: 3px;
}
.btn[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue-dark); box-shadow: 0 3px 0 var(--blue-dark); }
.btn--gold { background: var(--sun); border-color: var(--sun-dark); box-shadow: 0 3px 0 var(--sun-dark); }
.btn--gold:hover { background: #ffdc66; }
.btn--blue { background: var(--blue); color: #fff; border-color: var(--blue-dark); box-shadow: 0 3px 0 var(--blue-dark); }
.btn--blue:hover { background: #2b74e6; }
.btn--ghost { background: transparent; box-shadow: none; border-color: var(--ink-soft); }
.btn--big { font-size: 24px; min-height: 62px; padding: 10px 28px; }
.btn--sq { min-width: 62px; font-size: 30px; padding: 4px 14px; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }

/* ---------- pasek ustawień ---------- */
.settings {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  margin: 6px 20px 0; padding: 10px 16px; border-radius: var(--radius);
  background: rgba(255,255,255,.7); border: 2px dashed var(--line);
}
.group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.group .lbl { color: var(--ink-soft); font-size: 16px; margin-right: 4px; }
.level-btn { flex-direction: column; gap: 0; padding: 6px 16px; line-height: 1.1; min-height: 54px; }
.level-btn small { font-size: 13px; font-weight: 500; opacity: .85; }
.seg { display: inline-flex; border-radius: 999px; overflow: hidden; border: 3px solid var(--ink); background: var(--paper); }
.seg button { min-height: 44px; padding: 6px 14px; border: 0; background: transparent; font-size: 18px; font-weight: 700; }
.seg button + button { border-left: 3px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px 4px 4px;
  border-radius: 999px; border: 2px solid transparent; background: transparent; font-size: 18px; font-weight: 600;
}
.toggle .sw { width: 48px; height: 28px; border-radius: 14px; background: #b9c8dd; position: relative; flex: none; border: 2px solid var(--ink); }
.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-sizing: border-box; }
.toggle[aria-checked="true"] .sw { background: var(--green); }
.toggle[aria-checked="true"] .sw::after { left: 22px; }

main { flex: 1; padding: 16px 20px 24px; }

/* ---------- maskotka: słoneczko ---------- */
.mascot { display: flex; align-items: flex-start; gap: 10px; }
.mascot .sun { width: 110px; height: 110px; flex: none; }
.bubble {
  position: relative; flex: 1; min-height: 60px; padding: 12px 16px; border-radius: 20px;
  background: var(--paper); border: 3px solid var(--ink); font-family: var(--hand); font-size: 21px; line-height: 1.3;
}
.bubble::before, .bubble::after { content: ""; position: absolute; left: -16px; top: 26px; border: 8px solid transparent; border-right-color: var(--ink); border-left: 0; }
.bubble::after { left: -12px; border-right-color: var(--paper); }
.bubble.ok { background: var(--green-bg); border-color: var(--green); }
.bubble.ok::after { border-right-color: var(--green-bg); } .bubble.ok::before { border-right-color: var(--green); }
.bubble.bad { background: var(--red-bg); border-color: var(--red); }
.bubble.bad::after { border-right-color: var(--red-bg); } .bubble.bad::before { border-right-color: var(--red); }
.sun .ray { stroke: var(--sun-dark); stroke-width: 6; stroke-linecap: round; }
.sun .disc { fill: var(--sun); stroke: var(--sun-dark); stroke-width: 3; }
.sun .eye, .sun .brow, .sun .mouth, .sun .eye-happy { display: none; }
.sun .eye { fill: var(--ink); }
.sun .cheek { fill: #ffb2a6; opacity: .8; }
.sun .brow, .sun .mouth, .sun .eye-happy { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.sun .mouth--big { fill: #b23a2e; stroke-width: 3; }
.sun .mouth--o { fill: #b23a2e; }
.sun--idle .eye, .sun--idle .mouth--smile { display: block; }
.sun--happy .eye-happy, .sun--happy .mouth--big { display: block; }
.sun--think .eye, .sun--think .brow, .sun--think .mouth--o { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .sun .rays { transform-origin: 60px 60px; animation: spin 40s linear infinite; }
  .sun--happy { animation: bounce .6s ease; }
  .sun--think { animation: tilt .5s ease; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes bounce { 0%,100% { transform: translateY(0) } 30% { transform: translateY(-12px) scale(1.06) } 60% { transform: translateY(0) } 80% { transform: translateY(-5px) } }
  @keyframes tilt { 0%,100% { transform: rotate(0) } 40% { transform: rotate(-10deg) } 70% { transform: rotate(6deg) } }
}

.panel { display: flex; flex-direction: column; gap: 14px; }
.panel h3 { margin: 4px 0 0; font-family: var(--hand); font-size: 20px; font-weight: 700; color: var(--ink-soft); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row .btn { flex: 1 1 auto; }
.stepper { display: grid; grid-template-columns: 62px 1fr 62px; gap: 8px; align-items: center; }
.stepper .name { text-align: center; font-size: 20px; font-weight: 600; }
.note { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* ---------- zaproszenie ---------- */
.follow {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--ink); color: #fff; border-top: 4px solid var(--sun);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px;
  padding: 12px 56px 12px 20px; font-size: 18px; line-height: 1.3;
}
.follow p { margin: 0; max-width: 620px; }
.follow .btn { box-shadow: none; }
.follow .close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; }
.follow .close:hover { background: rgba(255,255,255,.15); }

/* ---------- sekcja opisowa pod aplikacją ---------- */
.seo { max-width: 780px; margin: 36px auto 0; padding: 28px 20px 8px; border-top: 2px dashed var(--line); font-size: 18px; line-height: 1.55; }
.seo h2 { font-family: var(--hand); font-size: 30px; margin: 28px 0 10px; line-height: 1.15; }
.seo h2:first-child { margin-top: 0; }
.seo h3 { font-size: 21px; margin: 22px 0 6px; }
.seo p { margin: 0 0 12px; }
.seo .levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 6px; }
@media (max-width: 640px) { .seo .levels { grid-template-columns: 1fr; } }
.seo .levels a { display: block; padding: 14px 16px; border-radius: var(--radius); border: 3px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 3px 0 var(--ink); }
.seo .levels a:hover { background: #f3f8ff; }
.seo .levels a strong { display: block; font-family: var(--hand); font-size: 22px; }
.seo .levels a span { color: var(--ink-soft); font-size: 16px; }
.seo .faq h3 { font-family: var(--hand); font-size: 22px; }
footer { padding: 14px 20px; text-align: center; color: var(--ink-soft); font-size: 15px; }
footer a { color: var(--ink-soft); }


@media (max-width: 480px) {
  .top { padding: 12px 14px 6px; }
  .top h1 { font-size: 26px; }
  .brand .logo { width: 44px; height: 44px; }
  .settings { margin: 6px 12px 0; padding: 8px 10px; }
  main { padding-left: 12px; padding-right: 12px; }
  .btn { padding: 8px 14px; }
  .mascot .sun { width: 80px; height: 80px; }
  .bubble { font-size: 19px; }
}

/* ---------- ćwiczenie i tablica: zwarty nagłówek, więcej miejsca na plansze ---------- */
.mode-tablica .top .sub, .mode-cwiczenie .top .sub { display: none; }
.mode-tablica .top, .mode-cwiczenie .top { padding-top: 8px; padding-bottom: 2px; }
.mode-tablica .top h1, .mode-cwiczenie .top h1 { font-size: 26px; }
.mode-tablica .brand .logo, .mode-cwiczenie .brand .logo { width: 42px; height: 42px; }
.mode-tablica main, .mode-cwiczenie main { padding-top: 10px; }

/* ---------- zwinięty pasek ustawień (ćwiczenie i tablica) ---------- */
.set-summary { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 16px; color: var(--ink-soft); }
.set-summary .sum-text { flex: 1 1 280px; }
.set-summary .sum-text strong { color: var(--ink); }
.settings.collapsed { padding-top: 6px; padding-bottom: 6px; }
.settings.collapsed > :not(.set-summary) { display: none !important; }
.settings:not(.collapsed) .set-summary { padding-bottom: 8px; border-bottom: 2px dashed var(--line); }

/* ---------- pasek zadań (ćwiczenie i tablica) ---------- */
.task-bar { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 8px; border-top: 2px dashed var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 40px; padding: 4px 14px; border-radius: 999px; border: 2px solid var(--ink-soft); background: var(--paper); font-size: 16px; font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue-dark); color: #fff; }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.chip:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.btn--sm { min-height: 40px; padding: 4px 14px; font-size: 16px; border-width: 2px; }
#segN button { min-width: 48px; }

/* ---------- okno „Udostępnij uczniom" (jak w ortografii) ---------- */
dialog.share { border: 4px solid var(--ink); border-radius: var(--radius); padding: 20px; max-width: min(92vw, 560px); color: var(--ink); background: var(--paper); font-family: var(--body); }
dialog.share::backdrop { background: rgba(29,43,79,.55); }
dialog.share h2 { margin: 0 0 8px; font-family: var(--hand); font-size: 26px; }
dialog.share .link { width: 100%; font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 12px; border: 3px solid var(--ink); word-break: break-all; }
dialog.share canvas { display: block; margin: 12px auto; width: min(60vw, 260px); height: auto; image-rendering: pixelated; }
dialog.share .row { justify-content: center; }
dialog.share .copied { color: var(--green); font-weight: 700; }

/* ---------- zapis ułamka: zawsze pionowo (licznik, kreska, mianownik) ---------- */
.ul { display: inline-flex; flex-direction: column; align-items: stretch; text-align: center; vertical-align: middle; line-height: 1.04; margin: 0 .12em; font-variant-numeric: lining-nums tabular-nums; font-weight: 700; }
.ul-l, .ul-m { display: block; padding: 0 .22em; }
.ul-m { border-top: .1em solid currentColor; padding-top: .03em; }
.ul-c { font-size: 1.55em; line-height: 1; vertical-align: middle; font-variant-numeric: lining-nums; font-weight: 700; }
.ulm { display: inline-flex; align-items: center; vertical-align: middle; gap: .02em; }
.ulm .ul { margin-left: .06em; }
.ul-op { margin: 0 .2em; vertical-align: middle; font-weight: 700; }
.bubble .ul, .note .ul, .uk-kom .ul, .feedback .ul { font-size: .8em; }
.bubble .ul-c, .uk-kom .ul-c { font-size: 1em; }

/* ---------- figura ---------- */
.fg { display: block; width: 100%; height: auto; }
.fg-host { display: block; border-radius: 14px; outline: none; }
.fg-host--zamaluj { cursor: pointer; touch-action: manipulation; }
.fg-host--zamaluj .fg-cz:hover { filter: brightness(.94); }
.fg-host:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }

/* ---------- układanka ---------- */
.uk { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; -webkit-user-select: none; user-select: none; }
.uk-plansze { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 6px 16px; width: 100%; padding: 6px; border-radius: 18px; outline: 3px dashed transparent; outline-offset: -3px; transition: background .12s; }
.uk-plansze.uk-cel { background: rgba(31,102,214,.1); outline-color: var(--blue); }
.uk-plansza { width: var(--uk-w, 300px); display: flex; flex-direction: column; align-items: center; }
.uk-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: none; }
.uk-cala { min-height: 30px; font-family: var(--hand); font-size: 22px; font-weight: 700; line-height: 30px; color: var(--green); white-space: pre; }
.uk-k { cursor: grab; outline: none; }
.uk-k:focus-visible path { stroke: var(--blue); stroke-width: 6; }
.uk-k.uk-ciagniety { opacity: .3; }
.uk-ciagnie, .uk-ciagnie .uk-k, .uk-ciagnie .uk-kaw { cursor: grabbing; }
.uk-duch { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; will-change: transform; filter: drop-shadow(0 8px 10px rgba(29,43,79,.35)); }
.uk-duch svg { display: block; width: 100%; height: 100%; overflow: visible; }

.uk-zapis {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 2px;
  min-height: 92px; width: 100%; max-width: 900px; padding: 8px 18px; border-radius: var(--radius);
  background: var(--paper); border: 3px solid var(--line); font-size: clamp(26px, 4.4vh, 44px); color: var(--ink);
}
.uk-zapis-pusty { font-size: 19px; font-weight: 500; color: var(--ink-soft); }

.uk-taca { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; max-width: 900px; padding: 10px; border-radius: var(--radius); background: rgba(255,255,255,.75); border: 2px dashed var(--line); outline: 3px dashed transparent; outline-offset: -3px; }
.uk-taca.uk-cel { outline-color: var(--red); background: var(--red-bg); }
.uk-kaw {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 72px; min-height: 92px; padding: 6px 4px 4px; border-radius: 16px; border: 3px solid var(--ink);
  background: var(--paper); box-shadow: 0 3px 0 var(--ink); font-size: 19px; cursor: grab; touch-action: none;
}
.uk-kaw:hover { background: #f3f8ff; }
.uk-kaw:active { transform: translateY(3px); box-shadow: none; }
.uk-kaw:focus-visible, .uk-menu-b:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.uk-kaw svg { display: block; width: 48px; height: auto; pointer-events: none; }
.uk--prostokat .uk-kaw svg { width: 56px; }
.uk-kaw-p { pointer-events: none; }

.uk-akcje { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.uk-akcje .btn { min-height: 48px; font-size: 19px; }
.uk-menu {
  position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  width: max-content; max-width: min(92vw, 520px); padding: 12px; border-radius: 18px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 8px 24px rgba(29,43,79,.3);
}
.uk-menu-t { flex-basis: 100%; font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.uk-menu-b { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 60px; min-height: 64px; padding: 6px 12px; border-radius: 14px; border: 3px solid var(--ink); background: var(--paper); font-size: 22px; box-shadow: 0 3px 0 var(--ink); }
.uk-menu-b:hover { background: #f3f8ff; }
.uk-menu-b small { font-size: 12px; font-weight: 600; color: var(--blue-dark); }
.uk-kom { margin: 0; min-height: 26px; max-width: 760px; text-align: center; font-size: 18px; color: var(--ink-soft); }
.uk-kom:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .uk-nowy { animation: uk-pop .3s ease-out; transform-box: fill-box; transform-origin: center; }
  .uk-ciety path { animation: uk-blysk .9s ease-out; }
  .uk-dokrojony path { animation: uk-blysk .6s ease-out; }
  .uk-domknieta .uk-svg { animation: uk-domkniecie .7s ease; }
  .uk-domknieta .uk-cala { animation: uk-pop .5s ease-out; }
  @keyframes uk-pop { from { transform: scale(1.14); opacity: .15; } to { transform: none; opacity: 1; } }
  @keyframes uk-blysk { 0% { filter: brightness(1.7) saturate(.4); } 100% { filter: none; } }
  @keyframes uk-domkniecie { 0% { transform: scale(1); } 35% { transform: scale(1.05); } 100% { transform: scale(1); } }
}

/* ---------- tryb: układanka do pokazywania ---------- */
.show { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1000px) { .show { grid-template-columns: minmax(0, 1fr) 350px; } }
.show .stage-wrap { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.show .panel { gap: 10px; }
.show .panel h3 { margin-top: 6px; }
.chips .chip { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 52px; padding: 4px 8px; font-size: 17px; }
.chips .chip[aria-pressed="true"]::before { content: ""; }
.chips .chip[aria-pressed="false"] { opacity: .75; }
.panel .seg button { font-size: 17px; padding: 6px 12px; }
.panel .toggle { font-size: 17px; text-align: left; }
#view-pokaz:fullscreen { background: var(--sky); padding: 16px 20px; overflow: auto; }
.soon { max-width: 640px; margin: 30px auto; text-align: center; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 3px dashed var(--line); }
.soon h2 { font-family: var(--hand); margin: 0 0 8px; }
.soon p { margin: 0; color: var(--ink-soft); }

@media (max-width: 600px) {
  .top { gap: 8px; padding-bottom: 4px; }
  .top .sub { display: none; }
  .modes { display: grid; grid-template-columns: repeat(4, auto); gap: 5px; width: 100%; }
  .modes .btn { min-height: 40px; padding: 4px 6px; font-size: 14px; border-width: 2px; }
  .settings { gap: 6px 10px; padding: 6px 8px; }
  .settings .group[aria-label="Poziom"] { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .level-btn { min-height: 44px; padding: 4px 6px; font-size: 16px; }
  .level-btn small { display: none; }
  main { padding-top: 8px; }
  .sum-typy { display: none; }
  .uk-kaw { width: 62px; min-height: 84px; }
  .uk-kaw svg { width: 42px; }
  .uk-akcje .btn { font-size: 17px; padding: 6px 14px; }
  .uk-zapis { min-height: 76px; padding: 6px 10px; }
}

/* niski ekran laptopa albo projektora: zwarty nagłówek i taca, żeby plansza dostała jak najwięcej wysokości */
@media (min-width: 1000px) and (max-height: 800px) {
  .mode-pokaz .top .sub { display: none; }
  .mode-pokaz .top { padding-top: 8px; padding-bottom: 2px; }
  .mode-pokaz .top h1 { font-size: 26px; }
  .mode-pokaz .brand .logo { width: 42px; height: 42px; }
  .mode-pokaz .settings { padding-top: 6px; padding-bottom: 6px; }
  .mode-pokaz .level-btn { min-height: 46px; }
  .mode-pokaz main { padding-top: 10px; }
  .uk { gap: 8px; }
  .uk-zapis { min-height: 74px; padding-top: 4px; padding-bottom: 4px; }
  .uk-taca { padding: 6px; }
  .uk-kaw { min-height: 78px; padding-top: 4px; font-size: 17px; }
  .uk-kaw svg { width: 38px; }
  .uk--prostokat .uk-kaw svg { width: 46px; }
  .uk-akcje .btn { min-height: 44px; }
}

.answer {
  width: min(100%, 66vh); min-height: 96px; padding: 12px 18px; border-radius: var(--radius);
  border: 3px dashed var(--ink-soft); background: var(--paper); text-align: center; line-height: 1.2;
}
.answer .hint { font-size: 20px; color: var(--ink-soft); }
.answer .w { display: block; font-family: var(--hand); font-size: clamp(26px, 4.5vh, 44px); font-weight: 700; }
.answer .d { display: block; font-size: clamp(26px, 4.5vh, 44px); font-weight: 700; color: var(--blue); }
.answer .x { display: block; font-size: 20px; color: var(--ink-soft); margin-top: 4px; }
.answer.open { border-style: solid; border-color: var(--blue); }

/* ---------- tryb: ćwiczenie ---------- */
.ex-wrap { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.ex { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.ex-progress { display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); font-size: 18px; font-weight: 600; }
.ex-progress .bar { flex: 1; height: 12px; margin: 0 14px; background: #fff; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.ex-progress .bar i { display: block; height: 100%; background: var(--green); width: 0; }
.ex-q { font-family: var(--hand); font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; text-align: center; line-height: 1.2; margin: 0; }
.ex-q small { display: block; font-family: var(--body); font-size: 18px; font-weight: 500; color: var(--ink-soft); margin-top: 4px; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .options { grid-template-columns: 1fr; } }
.option {
  min-height: 80px; padding: 10px 14px; border-radius: var(--radius); border: 3px solid var(--ink);
  background: var(--paper); text-align: center; line-height: 1.15; box-shadow: 0 3px 0 var(--ink);
}
.option .d { display: block; font-size: 32px; font-weight: 700; }
.option .w { display: block; font-family: var(--hand); font-size: 19px; color: var(--ink-soft); }
.option:hover { background: #f3f8ff; }
.option.ok { border-color: var(--green); background: var(--green-bg); box-shadow: 0 3px 0 var(--green); }
.option.bad { border-color: var(--red); background: var(--red-bg); box-shadow: 0 3px 0 var(--red); }
.option:disabled { cursor: default; }

.feedback { padding: 14px 18px; border-radius: var(--radius); font-size: 22px; line-height: 1.3; text-align: center; border: 3px solid var(--line); background: var(--paper); }
.feedback.ok { border-color: var(--green); background: var(--green-bg); }
.feedback.bad { border-color: var(--red); background: var(--red-bg); }

.ex-end { text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; padding: 20px 0; }
.ex-end .score { font-family: var(--hand); font-size: clamp(34px, 6vw, 60px); font-weight: 700; margin: 0; }
.ex-start { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 10px 0; }
.ex-start p { max-width: 560px; margin: 0; color: var(--ink-soft); }

.ex-side .mascot .sun { width: 54px; height: 54px; }
.ex-side .mascot .bubble { font-size: 17px; padding: 6px 12px; min-height: 0; line-height: 1.25; }
.ex-side .mascot .bubble::before, .ex-side .mascot .bubble::after { top: 16px; }
#view-cwiczenie .ex-wrap { max-width: 1200px; gap: 10px; }
.ex { gap: 12px; }

.ex-body { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px 28px; }
.ex-terms { display: flex; flex-wrap: nowrap; justify-content: center; gap: 10px; }
.ex-side { flex: 1 1 200px; min-width: 190px; max-width: 320px; display: flex; flex-direction: column; gap: 10px; }
.ex-side .feedback { font-size: 20px; text-align: left; }
.feedback .big { display: block; font-size: 30px; font-weight: 800; }
.feedback .why { display: block; margin-top: 4px; }
.options--col { grid-template-columns: 1fr; }
.options--col .option { min-height: 64px; }
.options--col .option .d { font-size: 30px; }

.kp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kp-key { min-height: 50px; border-radius: 16px; border: 3px solid var(--ink); background: var(--paper); font-size: 26px; font-weight: 800; box-shadow: 0 3px 0 var(--ink); }
.kp-key:active { transform: translateY(3px); box-shadow: none; }

.kp-key:disabled, .kp-ok:disabled { opacity: .45; }
.errs { text-align: left; max-width: 640px; margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.errs span { display: block; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 600px) {
  .mascot .sun { width: 58px; height: 58px; }
  .bubble { font-size: 17px; padding: 8px 12px; min-height: 0; }
  .ex-q { font-size: 24px; }
  .ex-story { font-size: 18px; }
  .ex-side { min-width: 170px; }
  .kp-key { min-height: 48px; }
}

.bd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 900px) { .bd { grid-template-columns: minmax(0, 1fr) 420px; } }

.bd-panel { gap: 16px; }
.bd-count { margin: 0; color: var(--ink-soft); font-size: 18px; font-weight: 600; }
.bd-task { padding: 14px 18px; border-radius: var(--radius); background: var(--paper); border: 3px solid var(--sun-dark); }
.bd-story { margin: 0 0 8px; font-size: 24px; line-height: 1.35; }
.bd-q { margin: 0; font-family: var(--hand); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.2; }
.bd-q .big { color: var(--blue); white-space: nowrap; }
.bd-panel .answer .d { display: block; font-size: clamp(34px, 5vh, 54px); font-weight: 800; color: var(--blue); }
.bd-panel .answer .x { font-size: 21px; color: var(--ink); line-height: 1.35; }
#view-tablica:fullscreen { background: var(--sky); padding: 16px 20px; overflow: auto; }

/* ---------- figury w zadaniach ---------- */
.fig { width: var(--fig, 260px); max-width: 100%; margin: 0 auto; }
.fig--prostokat { width: calc(var(--fig, 260px) * 1.38); }
.fig--mala { --fig: 120px; }
.fig--mini { --fig: 84px; margin: 0; }
.fig svg { display: block; width: 100%; height: auto; }
.ex-scena { --fig: clamp(170px, 34vh, 300px); flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sc-uk { width: 100%; }
.sc-licznik { margin: 0; min-height: 28px; font-family: var(--hand); font-size: 20px; font-weight: 700; color: var(--blue-dark); white-space: pre; }
.sc-wzor { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 17px; font-weight: 600; color: var(--ink-soft); }
.sc-wzor .fig { margin: 0; }
.tletter { position: absolute; left: 8px; top: 2px; font-family: var(--hand); font-size: 26px; font-weight: 700; color: var(--blue-dark); }

/* równe części: figury do wyboru */
.fpicks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
.fpick { position: relative; width: calc(var(--fig, 260px) * .8 + 36px); max-width: 100%; padding: 30px 16px 14px; border-radius: 18px; border: 3px solid var(--line); background: var(--paper); box-shadow: 0 3px 0 var(--line); }
.fpick.fig--prostokat { width: calc(var(--fig, 260px) * 1.05 + 36px); }
.fpick svg { display: block; width: 100%; height: auto; }
.fpick-fig { display: block; }
.fpick:hover:not(:disabled) { border-color: var(--blue); }
.fpick:focus-visible, .znak:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.fpick:disabled { cursor: default; }
.fpick.ok { border-color: var(--green); background: var(--green-bg); box-shadow: 0 3px 0 var(--green); }
.fpick.bad { border-color: var(--red); background: var(--red-bg); box-shadow: 0 3px 0 var(--red); }
.fpick.shown { opacity: .8; }

/* porównywanie: dwie figury i znak między nimi */
.por { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; }
.por figure { margin: 0; flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.por figcaption { font-size: clamp(26px, 4vh, 38px); font-weight: 800; }
.por-znak { flex: none; min-width: 58px; height: 64px; padding: 0 8px; border-radius: 16px; border: 3px dashed var(--ink-soft); background: var(--paper); text-align: center; font-size: 40px; font-weight: 800; line-height: 58px; color: var(--ink-soft); }
.por-znak.ok { border-style: solid; border-color: var(--green); background: var(--green-bg); color: var(--ink); }
.znaki { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.znak { min-height: 72px; padding: 6px; }
.znak .d { font-size: 40px; }

/* ---------- pole odpowiedzi: okienka licznik / mianownik ---------- */
.ex-input { display: flex; flex-direction: column; gap: 8px; }
.pole-wyr { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 4px; font-size: 34px; color: var(--ink); }
.pole-przed { display: inline-flex; align-items: center; }
.pole-odp { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 18px; border: 3px solid transparent; }
.pole-odp.ok { border-color: var(--green); background: var(--green-bg); }
.pole-odp.bad { border-color: var(--red); background: var(--red-bg); }
.pole-ul { display: inline-flex; flex-direction: column; align-items: stretch; gap: 5px; }
.pole-kreska { height: 5px; border-radius: 3px; background: var(--ink); }
.pole-ok { width: 66px; height: 54px; padding: 0; border-radius: 12px; border: 3px dashed var(--ink-soft); background: var(--paper); font-size: 34px; font-weight: 800; line-height: 1; color: var(--ink); }
.pole-ok.pole-c { width: 58px; height: 86px; font-size: 48px; }
.pole-ok.akt { border-style: solid; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,102,214,.22); }
.pole-ok:disabled { color: var(--ink); opacity: 1; cursor: default; }
.pole-staly { height: 54px; font-size: 38px; font-weight: 800; line-height: 54px; text-align: center; }
.ul-pyt { color: var(--blue); }

/* informacja zwrotna z figurami (błąd „góry i doły osobno") */
.fb-fig { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 10px 22px; margin-top: 10px; }
.fb-fig figure { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.fb-fig figcaption { flex-basis: 100%; text-align: center; font-size: 24px; font-weight: 800; }
.feedback strong { font-weight: 700; }
.errs strong { font-weight: 600; font-size: 20px; }
.errs .ul, .errs .ulm { font-size: .9em; }

/* ---------- ćwiczenie: układ ---------- */
#view-cwiczenie .ex-wrap { max-width: 1240px; }
.ex-body { align-items: flex-start; }
.ex-side { flex: 1 1 250px; min-width: 240px; max-width: 360px; }
.ex-q .ul, .bd-q .ul { font-size: 1.05em; color: var(--blue-dark); }
.ex-body--dodaj .ex-scena, .ex-body--odejmij .ex-scena, .ex-body--rowne .ex-scena, .ex-body--mieszane .ex-scena, .ex-body--zloz .ex-scena { flex-basis: 420px; }
.ex-scena .uk-zapis { min-height: 70px; font-size: clamp(24px, 3.6vh, 34px); }
.ex-scena .uk { gap: 8px; }
.uk-taca-t { padding: 14px 10px; font-size: 17px; font-weight: 600; color: var(--ink-soft); }

/* ---------- na tablicę ---------- */
.bd-stage { --fig: clamp(240px, 56vh, 620px); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; min-width: 0; flex-wrap: nowrap; }
.bd-stage--rowne-czesci { --fig: clamp(180px, 38vh, 400px); }
.bd-stage--porownaj { --fig: clamp(180px, 40vh, 420px); }
.bd-stage .fpick { border-width: 4px; }
.bd-stage .tletter { font-size: 34px; }
.bd-stage .sc-licznik { font-size: 28px; min-height: 40px; }
.bd-stage .sc-wzor { font-size: 22px; }
.bd-stage .por figcaption { font-size: clamp(34px, 5vh, 54px); }
.bd-stage .por-znak { min-width: 76px; height: 84px; font-size: 54px; line-height: 78px; }
.bd-stage .uk-zapis { font-size: clamp(30px, 5vh, 52px); }
.bd-dz { margin: 10px 0 0; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.1; }
.bd-panel .answer .d .ul, .bd-panel .answer .d .ulm { font-size: 1em; }
.bd-panel .answer .x .ul { font-size: .85em; }

@media (max-width: 600px) {
  .ex-side { max-width: none; }
  .pole-wyr { font-size: 30px; }
  .por { gap: 6px; }
  .por-znak { min-width: 44px; height: 54px; font-size: 32px; line-height: 48px; }
  .ex-scena { --fig: clamp(130px, 38vw, 220px); }
  .fpick { padding: 26px 10px 10px; }
}

/* wąski ekran (tablet pionowo, telefon): polecenie nad figurą, odpowiedź i przyciski pod nią */
@media (max-width: 899px) {
  .bd { display: flex; flex-direction: column; gap: 12px; }
  .bd-panel { display: contents; }
  .bd-panel > * { order: 4; }
  .bd-panel > .bd-count { order: 1; }
  .bd-panel > .bd-task { order: 2; }
  .bd-stage { order: 3; }
  .bd-panel .answer { width: 100%; }
}

/* ---------- tryb: karta pracy ---------- */
.sheet-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1000px) { .sheet-layout { grid-template-columns: 340px minmax(0, 1fr); } }
.sheet-settings { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: var(--radius); background: rgba(255,255,255,.7); border: 2px dashed var(--line); }
.sheet-settings input[type="number"] {
  width: 120px; min-height: 48px; font: inherit; font-size: 22px; font-weight: 700; text-align: center;
  border-radius: 999px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
}
.print-hint { margin: 0; font-size: 16px; color: var(--blue-dark); font-weight: 600; }

.paper {
  background: #fff; color: #000; width: 100%; max-width: 210mm; margin: 0 auto;
  padding: 12mm 12mm; box-shadow: 0 8px 30px rgba(29,43,79,.25); font-size: 12pt; font-family: var(--body);
}
.paper + .paper { margin-top: 20px; }
.paper h2 { margin: 0; font-size: 15pt; display: inline; }
.paper h2 + span { margin-left: 3mm; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6mm; border-bottom: 1.2pt solid #000; padding-bottom: 1.5mm; margin-bottom: 3mm; }
.sheet-head .fields { display: flex; gap: 8mm; font-size: 11pt; white-space: nowrap; }
.sheet-head .fields span { display: inline-block; border-bottom: 1pt solid #000; min-width: 40mm; }
.sheet-head .fields .data-f span { min-width: 24mm; }
.sheet-foot { margin-top: 3mm; padding-top: 1mm; border-top: .6pt solid #999; font-size: 9pt; color: #333; display: flex; justify-content: space-between; }
.sheet-settings input[type="text"] { width: 100%; min-height: 46px; font: inherit; font-size: 17px; padding: 6px 12px; border-radius: 14px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); }
.sheet-settings .group.col { flex-direction: column; align-items: flex-start; }
.kinds { display: grid; grid-template-columns: 1fr; gap: 6px; width: 100%; }
.kinds .btn { justify-content: flex-start; text-align: left; min-height: 46px; font-size: 17px; padding: 6px 14px; }

/* ---------- karta pracy: zadania ---------- */
.mode-karta #taskBar .group[aria-label="Liczba zadań"], .mode-karta #taskBar .group:has(#seedNo) { display: none; }
.sheet-settings .toggle { text-align: left; }
.paper { padding: 15mm; min-height: 297mm; display: flex; flex-direction: column; -webkit-print-color-adjust: exact; print-color-adjust: exact; line-height: 1.3; }
.paper .sheet-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sheet-head { flex-wrap: wrap; gap: 2mm 6mm; }
.sheet-head .title { flex: 1 1 95mm; }
.sheet-head .fields { margin-left: auto; }
.paper .grp { font-size: 11pt; font-weight: 700; margin: 0 3mm; }
.kinstr { margin: 0 0 3mm; font-size: 11.5pt; }
.ksec { margin: 0 0 2mm; font-size: 11pt; font-weight: 700; }
.paper .ul { font-size: 1em; color: #000; }
.kgrid { flex: 1; display: grid; gap: 4mm 3mm; align-content: space-around; align-items: start; }
.kcell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2mm; text-align: center; padding-top: 1mm; }
.kcell--bok { flex-direction: row; justify-content: center; gap: 3mm; }
.paper .no { position: absolute; left: 0; top: 0; font-size: 10pt; font-weight: 700; }
.kf { display: inline-block; flex: none; }
.kf svg { display: block; width: 100%; height: auto; }
.kodp { display: inline-flex; align-items: center; gap: 1.5mm; }
.kul { display: inline-flex; flex-direction: column; align-items: stretch; gap: 1mm; }
.kbox { display: block; box-sizing: border-box; width: 9mm; height: 8mm; border: .8pt solid #000; border-radius: 1mm; text-align: center; font-size: 13pt; font-weight: 800; line-height: 7.4mm; }
.kbox-c { height: 13mm; line-height: 12.4mm; font-size: 17pt; }
.kkreska { display: block; height: .8mm; background: #000; border-radius: .4mm; }
.kstaly { display: block; height: 8mm; text-align: center; font-size: 14pt; font-weight: 800; line-height: 8mm; }
.kznak { width: 9mm; height: 9mm; line-height: 8.4mm; flex: none; }
.ans { color: #c0392b; font-weight: 800; }
.bw .ans { color: #000; }
.kval { font-size: 15pt; font-weight: 700; line-height: 1; }
.kval--slowo { font-size: 13pt; font-weight: 800; }
.kslowa { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1mm; font-size: 10.5pt; }
.kslowo { padding: .6mm 1.6mm; border: 1.2pt solid transparent; border-radius: 50%; }
.kcirc { border-color: #c0392b !important; }
.bw .kcirc { border-color: #000 !important; }
.kpara { position: relative; display: flex; align-items: center; justify-content: center; gap: 3mm; padding-top: 1mm; }
.kpara--bez { gap: 2.5mm; padding: 2mm 0; }
.kpara--bez .kval { font-size: 17pt; }
.kstr { display: flex; flex-direction: column; align-items: center; gap: 1.5mm; }
.ktask { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2.5mm; padding-top: 1mm; }
.ktask--bok { flex-direction: row; align-items: center; justify-content: flex-start; gap: 3mm; padding-left: 5mm; }
.kfigs { display: flex; align-items: center; justify-content: center; gap: 1.5mm; }
.kop { font-size: 15pt; font-weight: 800; padding: 0 .6mm; }
.kwyr { display: flex; align-items: center; justify-content: center; gap: .6mm; font-size: 14pt; font-weight: 700; }
.kwyr--lewo { justify-content: flex-start; padding: 2mm 0 2mm 2mm; }
.kpyt { margin: 0; font-size: 11pt; line-height: 1.5; text-align: left; }
.paper .line { display: inline-block; width: 14mm; border-bottom: 1pt solid #000; height: 5mm; vertical-align: bottom; }
.kpick { padding: 5mm 2mm 2mm; border: 1.4pt solid transparent; border-radius: 4mm; }
.kl { position: absolute; left: 1mm; top: 0; font-size: 11pt; font-weight: 800; }
.kmix { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 3mm; }
.ksekcja { display: flex; flex-direction: column; }
.ksekcja .kgrid { flex: none; gap: 2mm 3mm; }
.ksekcja .kwyr { font-size: 12.5pt; }
.ksekcja .kbox { width: 8mm; height: 7mm; line-height: 6.4mm; font-size: 12pt; }
.ksekcja .kbox-c { height: 11mm; line-height: 10.4mm; }
.ksekcja .kznak { height: 8mm; }
.ksekcja .kval { font-size: 13pt; }

/* komplety do wycięcia: koła, kwadraty, prostokąty i paski */
.kkomplet { display: grid; justify-items: center; align-content: space-around; }
.kkomplet--3 { flex: 1; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
.paper--wytnij .sheet-body > .kkomplet--3:nth-child(2):not(:last-child) { flex: none; margin-bottom: 5mm; }
.kkomplet--paski { flex: 1; grid-template-columns: 1fr; gap: 1.5mm; }
.kkom { position: relative; width: 52mm; }
.kkom--prostokat { width: 56mm; }
.kkom--pasek { width: 100%; }
.kkom svg { display: block; width: 100%; height: auto; }
.kpodpis { display: block; margin-top: 1mm; text-align: center; font-size: 10pt; font-weight: 700; }
.paper--wytnij .kpyt, .paper--wytnij .kwyr { padding: 2.5mm 0; }

/* kontrola druku (narzedzia-dev/karty.mjs): kartka w wymiarach obszaru druku A4 z marginesami 15 mm */
body.kontrola .paper { width: 180mm; max-width: none; height: 266mm; min-height: 0; padding: 0; box-shadow: none; margin: 0 0 10mm; }

/* numer zadania nie wchodzi pod figurę; w karcie mieszanej figury i zapis stoją obok siebie */
.kcell, .kpara, .ktask { padding-left: 5mm; padding-right: 1mm; }
.kpick { padding-left: 2mm; padding-right: 2mm; }
.ksekcja .ktask { flex-direction: row; justify-content: center; gap: 4mm; }
.ksekcja .ktask--bok { justify-content: flex-start; }
.ksekcja .ktask--kol { flex-direction: column; gap: 1.5mm; }
.ksekcja .kfigs { gap: 1mm; }
.ksekcja .kop { font-size: 12pt; padding: 0 .3mm; }

/* wspólny mianownik: dwa kwadraty i znak działania między nimi */
.wsp-op { border: 0; background: none; color: var(--ink); }
.wsp-siatka[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.ex-scena .row, .bd-stage .row { justify-content: center; }
.ex-scena .row .btn, .bd-stage .row .btn { flex: 0 0 auto; }

/* ---------- pakiet na cały rok (jak w ortografii) ---------- */
.pakiet { max-width: 980px; margin: 32px auto 0; padding: 0 20px; }
.pakiet-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--ink); color: #fff; border-top: 5px solid var(--sun); }
@media (min-width: 860px) { .pakiet-wrap { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); align-items: center; } }
.pakiet-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: 14px; }
.pakiet-copy h2 { margin: 10px 0 8px; font-family: var(--hand); font-size: 30px; line-height: 1.15; }
.pakiet-copy h2 em { font-style: normal; color: var(--sun); }
.pakiet-copy p { margin: 0 0 10px; font-size: 17px; line-height: 1.5; color: #e6ecf7; }
.pakiet-perks { margin: 0; padding-left: 20px; font-size: 16px; color: #e6ecf7; }
.pakiet-perks li { margin-bottom: 4px; }
.pakiet-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--paper); color: var(--ink); }
.pakiet-card select { min-height: 50px; font: inherit; font-size: 20px; font-weight: 700; padding: 0 14px; border-radius: 999px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); }
.pakiet-card .note { font-size: 14px; }
.pakiet-dlg .gdpr { font-size: 13px; color: var(--ink-soft); line-height: 1.4; margin: 10px 0 0; }
.pakiet-dlg .ml-embedded { min-height: 120px; }
/* formularz MailerLite: chowamy jego nagłówek i dopasowujemy kolory do palety narzędzia */
.pakiet-dlg .ml-form-embedContent { display: none !important; }
.pakiet-dlg .ml-form-embedWrapper.embedForm { background-color: transparent !important; max-width: none !important; }
.pakiet-dlg .ml-form-embedBody { padding: 0 !important; }
.pakiet-dlg .ml-form-embedSubmit { margin-top: 10px !important; }
.pakiet-dlg #mlb2-46069408.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input.form-control { border: 3px solid var(--ink) !important; border-radius: 999px !important; padding: 12px 16px !important; font-family: var(--body) !important; font-size: 17px !important; color: var(--ink) !important; background: #fff !important; }
.pakiet-dlg #mlb2-46069408.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input.form-control::placeholder { color: var(--ink-soft) !important; }
.pakiet-dlg #mlb2-46069408.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary { background: var(--sun) !important; color: var(--ink) !important; border: 3px solid var(--sun-dark) !important; border-radius: 999px !important; font-family: var(--body) !important; font-weight: 700 !important; font-size: 18px !important; padding: 12px 20px !important; }
.pakiet-dlg .ml-form-successBody { padding: 0 !important; }
.seo .levels a { text-decoration: none; }
@media (min-width: 641px) { .seo .levels { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
