@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 400 700;
    font-stretch: 75% 100%;
    src: url("/fonts/instrument-sans-latin-ext-standard-normal.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: "Instrument Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 400 700;
    font-stretch: 75% 100%;
    src: url("/fonts/instrument-sans-latin-standard-normal.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;
}

:root {
    --bg: #eef0f7;
    --surface: #ffffff;
    --ink: #12163a;
    --kobalt: #2533d9;
    --pilne: #c2410c;
    --link: #2533d9;
    --na-pilnym: #ffffff;
    --blok-odstep: 16px;
    --r-panel: 20px;
    --r-karta: 14px;
    --r-przycisk: 10px;
    --muted: #565c7c;
    --line: #dfe2ee;
    --accent: #f2b01e;
    --fokus: #8a5a00;
    --on-accent: #16284b;
    --danger: #a32a2a;
    --nav-tlo: var(--ink);
    --nav-tekst: var(--bg);
    --cien: rgb(18 22 58 / 18%);
    --przyciemnienie: rgb(18 22 58 / 35%);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root[data-motyw="system"] {
        --bg: #0d1024;
        --surface: #171b36;
        --ink: #eef0fa;
        --muted: #aab0cc;
        --line: #2c3358;
        --pilne: #ff9a6b;
        --link: #aab4ff;
        --na-pilnym: #12163a;
        --danger: #ff9c9c;
        --fokus: #f2b01e;
        --nav-tlo: var(--surface);
        --nav-tekst: var(--ink);
        color-scheme: dark;
    }
}

:root[data-motyw="dark"] {
    --bg: #0d1024;
    --surface: #171b36;
    --ink: #eef0fa;
    --muted: #aab0cc;
    --line: #2c3358;
    --pilne: #ff9a6b;
    --link: #aab4ff;
    --na-pilnym: #12163a;
    --danger: #ff9c9c;
    --fokus: #f2b01e;
    --nav-tlo: var(--surface);
    --nav-tekst: var(--ink);
    color-scheme: dark;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.5 "Instrument Sans", system-ui, sans-serif;
    -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

.page {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 16px calc(96px + env(safe-area-inset-bottom));
}

h1 { font-size: 34px; line-height: 1.1; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.01em; }
h1::first-letter { text-transform: uppercase; }
h2 { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 32px 0 10px; }
h3 { font-size: 17px; font-weight: 600; margin: 20px 0 6px; }
h3::first-letter { text-transform: uppercase; }
p { margin: 0 0 12px; }

.lead { max-width: 60ch; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Nawigacja: na dole na telefonie, na górze na komputerze. */
.nav, .dol { --fokus: var(--accent); }

.nav { display: none; background: var(--nav-tlo); }

.nav a {
    padding: 14px 12px;
    text-decoration: none;
    font-weight: 600;
    color: var(--nav-tekst);
    flex: 0 0 auto;
}

.nav a.active { background: var(--accent); color: var(--on-accent); }

.nav a.nav-ikona { display: inline-flex; align-items: center; }

.nav a.nav-ikona:first-of-type { margin-left: auto; }

@media (min-width: 700px) {
    .nav { display: flex; justify-content: flex-start; align-items: stretch; padding: 0 16px; }
    .page { padding-bottom: 48px; }
}

/* Pas dni do końca roku. */
.day-head { display: flex; align-items: center; gap: 8px; }
.day-head h1 { flex: 1; margin: 0; }

.step {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font-size: 44px;
    line-height: 1;
    text-decoration: none;
}

.strip { display: flex; flex-wrap: wrap; gap: 4px; margin: 20px 0 8px; }
.strip-month { flex: 0 0 100%; font-size: 15px; font-weight: 600; margin-top: 6px; }
.strip-month::first-letter { text-transform: uppercase; }

.cell {
    position: relative;
    width: 28px;
    height: 34px;
    display: grid;
    place-items: center;
    font-size: 13px;
    text-decoration: none;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line);
    overflow: hidden;
}

.cell-planned { background: var(--surface); color: var(--ink); border-color: var(--ink); }

.cell-planned::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: var(--done);
    background: var(--accent);
}

.cell-full { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.cell-full::after { display: none; }
.cell-selected { outline: 3px solid var(--ink); outline-offset: 1px; font-weight: 700; }

/* Zadania i etapy. */
.tasks { list-style: none; margin: 0; padding: 0; }

.task {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.task-body { flex: 1 1 0; min-width: 0; padding-top: 9px; overflow-wrap: anywhere; }
.task-title { display: block; }
.task-done .task-title { text-decoration: line-through; color: var(--muted); }

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    font-size: 15px;
    color: var(--muted);
}

.tick {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.tick::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 2px solid var(--ink);
    background: var(--surface);
}

[aria-pressed="true"].tick::before { background: var(--accent); border-color: var(--accent); }

[aria-pressed="true"].tick::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 13px;
    width: 8px;
    height: 15px;
    border: solid var(--on-accent);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.task-more > summary {
    list-style: none;
    padding: 9px 4px;
    color: var(--muted);
    font-size: 15px;
    cursor: pointer;
}

.task-more > summary::-webkit-details-marker { display: none; }

.task-more[open] { flex: 0 0 100%; order: 3; }
.task-actions { display: grid; gap: 8px; padding: 4px 0 8px 54px; }

/* Formularze. */
label { display: block; font-weight: 600; font-size: 15px; }

input, select, textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    padding: 9px 10px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--muted);
}

input[type="radio"], input[type="checkbox"] {
    flex: none;
    width: 20px;
    height: 20px;
    min-height: 0;
    margin: 0;
    padding: 0;
}

label:has(> input[type="radio"]), label:has(> input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-weight: 400;
}

button {
    min-height: 44px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--ink);
    cursor: pointer;
}

button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }

button.link {
    color: var(--link);
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    font-weight: 400;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

button.danger { color: var(--danger); }

.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.row input { margin-top: 0; }
.row label input { margin-top: 4px; }
.row.between { justify-content: space-between; align-items: center; }
.row > form.row { flex-wrap: nowrap; align-items: center; }
.grow { flex: 1 1 120px; min-width: 0; }
.narrow { flex: 0 0 96px; }
.number { width: 110px; }

.add { margin-top: 28px; }
details.add > summary { font-weight: 600; min-height: 44px; padding: 10px 0; cursor: pointer; }
details.add form + form { margin-top: 16px; }

/* Cele i wyniki. */
.objective { padding: 4px 0 20px; border-bottom: 2px solid var(--ink); }
.objective h2 { margin-top: 16px; }

.results { list-style: none; margin: 10px 0 0; padding: 0; }
.results li { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }

.result { padding: 12px 0; border-bottom: 1px solid var(--line); }
.result-title { margin-bottom: 4px; }

.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.bar { flex: 1; height: 12px; background: var(--line); }
.bar span { display: block; height: 100%; background: var(--accent); }
.percent { font-weight: 700; min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }

/* Plan miesiąca. */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.pills a {
    padding: 9px 14px;
    text-decoration: none;
    border: 1px solid var(--ink);
    font-size: 15px;
}

.pills a::first-letter { text-transform: uppercase; }
.pills a.active { background: var(--ink); color: var(--bg); }

.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.weekday { text-align: center; font-size: 14px; color: var(--muted); }

.date {
    min-height: 54px;
    padding: 5px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    border: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
}

.date small { font-size: 13px; }
.date-past { color: var(--muted); }
.date-planned { background: var(--surface); border-color: var(--ink); }
.date-full { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.date-today { outline: 3px solid var(--ink); outline-offset: 1px; font-weight: 700; }

/* Komunikaty i reszta. */
.notice { padding: 10px 12px; background: var(--surface); border-left: 5px solid var(--accent); }
.notice p { margin: 0; }
.notice-error { border-left-color: var(--danger); }

pre { overflow-x: auto; padding: 12px; background: var(--surface); font-size: 14px; line-height: 1.4; }

.logout { margin-top: 40px; }

.codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0;
    list-style: none;
}

[hidden] { display: none !important; }

.quick-add-open { width: 100%; margin-bottom: 16px; }

.quick-add { display: grid; gap: 10px; margin-bottom: 20px; padding: 12px; background: var(--surface); border: 1px solid var(--line); }
.quick-add-field { display: flex; gap: 8px; align-items: flex-end; }
.quick-add-field textarea { min-height: 44px; max-height: 40vh; resize: none; }
.quick-add-help { min-width: 44px; min-height: 44px; }
.quick-add-days { display: flex; gap: 8px; }
.quick-add-days button { min-height: 44px; }
.quick-add-days button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.quick-add-question { margin: 0; font-weight: 600; }
.quick-add details ul { margin: 8px 0; padding-left: 20px; }
.quick-add details p { margin: 0; color: var(--muted); }

.chips { display: grid; gap: 6px; }
.chips:empty { display: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-title { font-weight: 600; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.chip-warn { color: var(--danger); border-color: var(--danger); }
.chip-remove { min-width: 44px; min-height: 44px; margin: -1px -12px -1px 0; padding: 0; font-size: 18px; color: var(--muted); background: none; border: 0; }

.search-results { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.search-results .muted { display: block; font-size: 14px; }

/* Pulpit */
.pulpit { display: grid; gap: var(--blok-odstep); }
.pulpit h2 { margin: 0 0 8px; font-size: 17px; }
.pulpit-naglowek h1 { margin-bottom: 4px; }
.blok { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-karta); }
.werdykt-tekst { margin: 0; font-size: 18px; font-weight: 600; }
.werdykt-pilne .werdykt-tekst { color: var(--pilne); }
.werdykt-alarm .werdykt-tekst { color: var(--danger); }
#stan-systemu { margin-top: var(--blok-odstep); font-size: 15px; }
#stan-systemu p, #stan-systemu ul { margin: 0; }
.kontrole { margin: 0 0 16px; padding: 0; list-style: none; }
.kontrola { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kontrola-glowa { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.kontrola-stan-red { color: var(--danger); }
.kontrola p { margin: 2px 0 0; font-size: 15px; }
.werdykt-zdjecie { margin: 8px 0 0; font-size: 15px; }
.teraz-rodzaj { margin: 0; font-size: 13.5px; color: var(--muted); }
.teraz-tytul { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.teraz-krok { margin: 0 0 8px; font-size: 15px; }
.pasek-odcinki { display: flex; gap: 3px; height: 16px; }
.pasek-odcinek { flex-basis: 0; min-width: 6px; background: var(--kobalt); border-radius: 4px; }
.pasek-zrobione { opacity: 0.35; }
.pasek .muted { margin: 8px 0 0; font-size: 14px; }
.licznik { display: inline-block; min-width: 24px; padding: 0 8px; font-size: 14px; text-align: center; color: var(--surface); background: var(--ink); border-radius: 999px; }
.kolejka-lista { display: grid; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.pozycja { padding-top: 12px; border-top: 1px solid var(--line); }
.pozycja-tytul { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pozycja-opis { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.pozycja-akcje { align-items: center; }
.przejrzyj-lista { margin: 8px 0 0; padding-left: 20px; }
.arkusz > summary, .rozbij > summary, .zmien-kontakt > summary, .przejrzyj > summary, .kolejka-wiecej > summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.arkusz form { margin-top: 8px; }
.tydzien-siatka { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tydzien-dzien { display: grid; gap: 2px; min-height: 44px; padding: 8px 4px; font-size: 13.5px; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r-przycisk); overflow: hidden; }
.tydzien-numer { font-size: 17px; font-weight: 600; }
.tydzien-tytul { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tydzien-obciazenie { color: var(--muted); }
.task-open { align-self: center; padding: 10px; font-size: 14px; }
.pusty h1 { font-size: 26px; }
@media (max-width: 699px) {
    .tydzien-tytul { display: none; }
    input, select, textarea { font-size: 16px; }
}

/* Moduł akcji: dymki i wiersz w trakcie zapisu. */
.wiersz-ukryty { display: none !important; }
.blad-pola { margin: 4px 0 0; color: var(--danger); font-size: 14px; }

.dymki {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    gap: 8px;
    width: min(380px, calc(100vw - 32px));
}

.dymek {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-karta);
    box-shadow: 0 8px 24px var(--cien);
    animation: dymek-wjazd 180ms ease-out;
}

.dymek p { flex: 1 1 100%; margin: 0; }
.dymek button { min-height: 44px; }

@keyframes dymek-wjazd {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .dymek { animation: none; }
}

/* Panel sprawy: szuflada z prawej, na telefonie cały ekran. */
[x-cloak] { display: none !important; }

.panel-tlo {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    justify-content: flex-end;
    background: var(--przyciemnienie);
}

.panel-szuflada {
    width: 440px;
    max-width: 100%;
    height: 100%;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface);
    border-radius: var(--r-panel) 0 0 var(--r-panel);
    outline: none;
}

.panel-wjazd, .panel-wjazd .panel-szuflada { transition: opacity 180ms ease-out, transform 180ms ease-out; }
.panel-wyjazd, .panel-wyjazd .panel-szuflada { transition: opacity 120ms ease-in, transform 120ms ease-in; }
.panel-poza { opacity: 0; }
.panel-poza .panel-szuflada { transform: translateX(32px); }

.panel { display: grid; gap: 24px; }
.panel-zamknij { display: none; }
.panel-szuflada .panel-zamknij { display: inline-block; }
.panel-gora { display: grid; gap: 12px; }
.panel-rodzaj { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.panel-tytul { font-size: 18px; font-weight: 600; }
.panel-blok { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.panel-blok h3 { margin: 0; font-size: 15px; }
.panel-opis { margin: 0; color: var(--muted); font-size: 14px; }
.panel-krok { display: grid; gap: 8px; }
.panel-znacznik { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.panel-znacznik input { width: 20px; min-height: 20px; margin: 0; }
.panel-historia summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 600; }
.panel-pasek { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 12px; background: var(--bg); border-radius: var(--r-karta); }
.panel-pasek[hidden] { display: none; }

@media (max-width: 699px) {
    .panel-szuflada {
        width: 100%;
        padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .panel-wjazd, .panel-wjazd .panel-szuflada, .panel-wyjazd, .panel-wyjazd .panel-szuflada { transition: none; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.licznik { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 13px; line-height: 20px; text-align: center; }

.licznik[hidden] { display: none; }

.dol { position: fixed; inset: auto 0 0 0; z-index: 10; display: flex; background: var(--nav-tlo); padding-bottom: env(safe-area-inset-bottom); }

.dol a, .dol button { flex: 1; min-height: 52px; padding: 14px 4px; border: 0; border-radius: 0; background: none; color: var(--nav-tekst); font: inherit; font-weight: 600; text-align: center; text-decoration: none; }

.dol a.active { background: var(--accent); color: var(--on-accent); }

.dol .dol-plus { font-size: 26px; line-height: 1; }

.arkusz-wiecej { position: fixed; inset: auto 0 calc(52px + env(safe-area-inset-bottom)) 0; z-index: 11; display: grid; background: var(--surface); border-top: 1px solid var(--line); }

.arkusz-wiecej a { padding: 14px 16px; color: var(--ink); text-decoration: none; font-weight: 600; }

@media (min-width: 700px) {
    .dol-korzen { display: none; }
}

@media (max-width: 699px) {
    .quick-add-open { display: none; }
}

.pasek-ladowania { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 3px; background: var(--kobalt); transform: scaleX(0); transform-origin: left; }

body.laduje .pasek-ladowania { transform: scaleX(.7); transition: transform 2s ease-out; }

.lista-naglowek { display: flex; align-items: center; gap: 8px; }

.lista-naglowek a { text-decoration: none; font-size: 22px; }

.lista-grupa { margin: 16px 0 4px; font-size: 16px; }

.lista-sprawy { display: grid; gap: 4px; padding: 0; list-style: none; }

.lista-sprawy a { display: flex; justify-content: space-between; padding: 12px; border-radius: var(--r-karta); background: var(--surface); text-decoration: none; }

.pozycja-pilne { color: var(--pilne); font-weight: 600; }

.lista-pusta { padding: 24px 0; color: var(--muted); text-align: center; }

.przycisk { display: inline-block; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-przycisk); text-decoration: none; color: inherit; }

/* Klawiatura, paleta, gesty. */
.wiersz-aktywny { outline: 3px solid var(--link); outline-offset: 2px; border-radius: var(--r-przycisk); }
.paleta-tlo { position: fixed; inset: 0; z-index: 35; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; background: var(--przyciemnienie); }
.paleta { display: grid; gap: 8px; width: 100%; max-width: 560px; max-height: 75vh; padding: 12px; background: var(--surface); border-radius: var(--r-panel); box-shadow: 0 8px 24px var(--cien); }
.paleta input { width: 100%; font-size: 16px; }
.paleta p { margin: 0; padding: 8px 12px; }
.paleta-lista { margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.paleta-lista li { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: var(--r-przycisk); cursor: pointer; }
.paleta-lista li.paleta-aktywna { background: var(--bg); outline: 2px solid var(--link); outline-offset: -2px; }
.pomoc-klawisze { max-width: 420px; padding: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
.pomoc-klawisze::backdrop { background: var(--przyciemnienie); }
.pomoc-klawisze h2 { margin-top: 0; }
.pomoc-klawisze dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.pomoc-klawisze dt { font-weight: 600; }
.pomoc-klawisze dd { margin: 0; }
.arkusz-potwierdz { width: 100%; max-width: 100%; max-height: 85vh; margin: auto 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel) var(--r-panel) 0 0; }
.arkusz-potwierdz[open] { animation: arkusz-wjazd 180ms ease-out; }
.arkusz-potwierdz::backdrop { background: var(--przyciemnienie); }
.arkusz-potwierdz h2 { margin: 0 0 4px; font-size: 1.05rem; }
.arkusz-wiersz { padding: 12px 0; border-bottom: 1px solid var(--line); }
.arkusz-wiersz.wiersz-ukryty { display: none; }
.arkusz-przyciski { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.arkusz-przyciski button { min-height: 44px; }
.arkusz-wiersz > a { display: inline-flex; align-items: center; min-height: 44px; }
.arkusz-potwierdz > form { margin-top: 12px; }
.arkusz-potwierdz > form button { width: 100%; min-height: 44px; }
@keyframes arkusz-wjazd { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) {
    .arkusz-potwierdz { max-width: 480px; margin: auto; border-radius: var(--r-panel); }
}
@media (prefers-reduced-motion: reduce) {
    .arkusz-potwierdz[open] { animation: none; }
}
.wiersz-akcje { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }

@media (hover: none) and (pointer: coarse) {
    [data-wiersz] { touch-action: pan-y; -webkit-touch-callout: none; }
}

.pasek-bez-zasiegu {
    margin: 0 0 12px;
    padding: 8px 12px;
    border: 1px solid var(--muted);
    border-radius: 8px;
    color: var(--muted);
}

[inert] { opacity: .55; }
