/* MAPACEN-ROZWOJ-20261109 Z15: tekst dymka pozostaje w przepływie także przy powiększeniu. */
.ekran-bledu { container-type:inline-size; display:grid; grid-template-columns:minmax(0,1fr); width:100%; max-width:62rem; margin:0 auto; padding:1rem; box-sizing:border-box; color:var(--tusz); font-family:var(--font-tekst); overflow-wrap:anywhere; }
.ekran-bledu * { box-sizing:border-box; }
.eb-postac { margin:0; display:grid; justify-items:center; min-width:0; }
.eb-dymek { position:relative; margin:0 0 .5rem; padding:.65rem 1rem; border:.125rem solid var(--tusz); border-radius:1.2rem; background:var(--pow); color:var(--tusz); font-size:1.125rem; line-height:1.35; font-weight:700; max-width:100%; }
.eb-obraz::before { content:''; position:absolute; top:-.9rem; left:50%; width:1rem; height:1rem; transform:rotate(45deg); background:var(--pow); border-right:.125rem solid var(--tusz); border-bottom:.125rem solid var(--tusz); }
.eb-obraz { position:relative; display:block; text-align:center; max-width:100%; }
.eb-obraz img { display:block; object-fit:contain; max-height:min(23vh,10rem); max-width:100%; width:auto; height:auto; margin:auto; }
.eb-tresc { min-width:0; align-self:center; }
.ekran-bledu .eb-tytul { font-size:1.5rem; line-height:1.2; margin:.5rem 0; color:var(--tusz); }
.eb-kod { font-size:.875rem; color:var(--tusz2); margin:.3rem 0; }
.eb-opis,.eb-tresc > p { line-height:1.45; margin:.5rem 0; }
.eb-akcje { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem; }
.ekran-bledu .przycisk,.eb-zgloszenie .przycisk,.strona-bledu .przycisk,.awaria-startu .przycisk { display:inline-flex; align-items:center; justify-content:center; min-height:2.75rem; min-width:2.75rem; padding:.6rem 1rem; white-space:normal; line-height:1.25; font:inherit; border:1px solid var(--linia); border-radius:.5rem; background:var(--pow); color:var(--tusz); text-decoration:none; cursor:pointer; max-width:100%; }
.ekran-bledu .przycisk.glowny,.strona-bledu .przycisk.glowny { background:var(--akcent); color:var(--na-akcencie); border-color:var(--akcent); }
.ekran-bledu :focus-visible,.eb-zgloszenie :focus-visible,.strona-bledu :focus-visible,.awaria-startu :focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
/* MAPACEN-ROZWOJ-20261109 Z15: fokus nagłówka służy czytnikowi; obrys zostaje na działaniach klawiatury. */
.ekran-bledu .eb-tytul[tabindex="-1"]:focus { outline:none; }
.eb-zgloszenie { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; margin:.75rem 0; color:inherit; }
.eb-zgloszenie code { font-size:1rem; font-weight:700; overflow-wrap:anywhere; }
.eb-zgloszenie [role=status] { flex-basis:100%; font-size:.875rem; }
.eb-bez-obrazu .eb-obraz,.eb-bez-obrazu .eb-obraz::before { display:none; }
#polaczenie { position:sticky; top:0; z-index:1100; padding:.5rem 1rem; background:var(--ostrzezenie-tlo); color:var(--ostrzezenie); display:flex; align-items:center; gap:.5rem; font-family:var(--font-tekst); }
#polaczenie[hidden],.awaria-startu[hidden] { display:none; }
#polaczenie button { margin-left:auto; min-width:2.75rem; min-height:2.75rem; background:transparent; color:inherit; border:1px solid currentColor; border-radius:.5rem; font-size:1.5rem; }
.awaria-startu { max-width:40rem; padding:2rem; margin:2rem auto; background:var(--pow); color:var(--tusz); }
body.strona-bledu { margin:0; background:var(--tlo); color:var(--tusz); font-family:var(--font-tekst); }
.strona-bledu > header { padding:1rem; }
.strona-bledu > header img { max-width:10rem; height:auto; }
/* MAPACEN-ROZWOJ-20261109 Z15: kontener zmienia kolumny dzieci, nie własny układ. */
@container (min-width:40rem) {
  .eb-postac { width:36%; max-width:22rem; grid-column:1; grid-row:1; justify-self:start; }
  .eb-tresc { width:58%; max-width:34rem; grid-column:1; grid-row:1; justify-self:end; }
  .eb-obraz img { max-height:32rem; width:auto; }
  .eb-dymek { justify-self:end; margin-bottom:-.3rem; z-index:1; }
  .ekran-bledu .eb-tytul { font-size:2rem; }
}
@media (prefers-reduced-motion:reduce) { .ekran-bledu * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* MAPACEN-ROZWOJ-20261109 Z15: pasek pozostaje nad stałą warstwą widoku telefonu. */
.telefon #polaczenie { position:fixed; left:0; right:0; z-index:1600; font-size:.875rem; }
.telefon:has(#polaczenie:not([hidden])) #widoki > .widok:not(#w-przegladarka):not(.ukryte) { top:var(--wysokosc-polaczenia,0px); height:calc(100dvh - var(--wysokosc-polaczenia,0px)); }
/* MAPACEN-ROZWOJ-20261109 Z15: sekcja wyceny ma własne selektory ID z kontrolką 36 px. */
#w-wycena .ekran-bledu .przycisk, #w-wycena .eb-zgloszenie .przycisk { min-height:2.75rem; min-width:2.75rem; padding:.6rem 1rem; white-space:normal; }

/* MAPACEN-ROZWOJ-20261109 Z15: po utracie obrazu dymek zachowuje wysokość własnego tekstu. */
.eb-bez-obrazu { align-self:start; }
