/* Portal akceptacji Lejkowni: narzędzie robocze. Identyfikacja „Warsztat”: grafit + bursztyn, krój Atkinson Hyperlegible
   (czytelny: l, I i 1 się nie mylą), przyciski z wyraźną krawędzią, statusy jak pieczątki. Fonty lokalnie (/fonts, licencja OFL). */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/atkinson-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/atkinson-400-latin.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; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/atkinson-700-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/atkinson-700-latin.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: #f6f5f2; --surface: #ffffff; --ink: #24211d; --muted: #6e675c; --line: #e4e1da;
  --accent: #24211d; --accent-ink: #f6f5f2; --accent-soft: #fcefd2; --amber: #f2a922; --amber-ink: #24211d; --link: #8a5604;
  --ok: #2e6a39; --ok-soft: #e2efe4; --warn: #85580a; --warn-soft: #faefd6; --info-soft: #e8edf6; --info: #2c4a7a;
  --del: #a12437; --del-soft: #fbe3e7; --add: #2e6a39; --add-soft: #e2f1e5; --internal: #fff6dc;
  --f: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a17; --surface: #262320; --ink: #f2f0eb; --muted: #aaa293; --line: #3b3731;
    --accent: #f2a922; --accent-ink: #24211d; --accent-soft: #3a2f17; --amber: #f2a922; --amber-ink: #24211d; --link: #f2c063;
    --ok: #8fd09b; --ok-soft: #1e3322; --warn: #e9c26b; --warn-soft: #392e16; --info-soft: #1f2a3c; --info: #a9c1ea;
    --del: #f28c9c; --del-soft: #3e1f26; --add: #8fd09b; --add-soft: #1c3321; --internal: #3a3218;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 16px; line-height: 1.55; }
a { color: var(--link); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .4rem; text-wrap: balance; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
h3 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
p { margin: 0 0 .6rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.pad { padding: 1rem 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.offscreen { position: fixed; left: -9999px; }
[hidden] { display: none !important; }

.bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: nowrap; gap: .5rem 1.2rem; align-items: center; padding: .7rem 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; flex: none; white-space: nowrap; }
/* linki w jednym wierszu; gdy się nie mieszczą, przewijają się w bok wewnątrz paska */
#nav { display: flex; flex-wrap: nowrap; gap: .9rem; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: .15rem 0; }
#nav::-webkit-scrollbar { display: none; }
#nav a { color: var(--muted); text-decoration: none; font-size: .95rem; flex: none; white-space: nowrap; }
#nav a:hover, #nav a:focus-visible { color: var(--ink); }
.me { color: var(--muted); font-size: .9rem; flex: 0 1 auto; min-width: 0; max-width: 16rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#logout { flex: none; white-space: nowrap; }
main { max-width: 900px; margin: 0 auto; padding: 1.4rem 16px 4rem; display: flex; flex-direction: column; gap: 1.1rem; }
main > * { min-width: 0; max-width: 100%; }
@media (max-width: 560px) {
  .bar { gap: .7rem; padding: .5rem 12px; }
  .brand-long { display: none; }
  #nav { gap: .8rem; }
  #nav a { font-size: .9rem; }
  .me { max-width: 6.5rem; font-size: .8rem; }
  #logout { padding: .35rem .6rem; font-size: .85rem; }
}

button, .btn { font: inherit; font-size: .95rem; font-weight: 700; padding: .5rem .95rem; border-radius: 5px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.ghost { background: transparent; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, a:focus-visible, .inp:focus-visible, .editable:focus { outline: 3px solid var(--amber); outline-offset: 2px; }
.inp, input[type=email], input[type=password], input[type=text], select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: .55rem .7rem; width: 100%; }
.inp.narrow { width: auto; }
label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.check input { width: auto; }
.stack { display: flex; flex-direction: column; gap: .3rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.note { background: var(--info-soft); color: var(--info); border-radius: 8px; padding: .6rem .8rem; font-size: .92rem; }
.err { color: var(--del); font-size: .92rem; }
.warn { color: var(--warn); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 1.4rem; color: var(--muted); text-align: center; }
.login { max-width: 460px; width: 100%; margin: 3rem auto; display: flex; flex-direction: column; gap: 1rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; color: var(--muted); }
.crumbs > * + *::before { content: "›"; margin-right: .4rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.list > li { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: .8rem 1rem; }

.fhead { display: flex; flex-direction: column; gap: .3rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; margin-top: .4rem; }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: .7rem .9rem; display: flex; flex-direction: column; }
.stats b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.stats span { font-size: .85rem; color: var(--muted); }
.stages { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .9rem; counter-reset: st; }
.stage { counter-increment: st; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; }
.stage h2::before { content: counter(st) ". "; color: var(--muted); font-variant-numeric: tabular-nums; }
.els { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.els li + li { border-top: 1px solid var(--line); }
.el { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding: .6rem .2rem; text-decoration: none; color: var(--ink); }
.el:hover .el-title { color: var(--accent); }
.el-title { min-width: 0; flex: 1 1 260px; }
.el-meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.kind { font-size: .75rem; color: var(--muted); }
.count { font-size: .75rem; background: var(--info-soft); color: var(--info); border-radius: 999px; padding: .1rem .5rem; white-space: nowrap; }
.pill { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: .15rem .55rem; white-space: nowrap; background: var(--line); color: var(--ink); }
.pill.s-do-akceptacji { background: var(--accent-soft); color: var(--accent); }
.pill.s-poprawki { background: var(--warn-soft); color: var(--warn); }
.pill.s-zaakceptowany { background: var(--ok-soft); color: var(--ok); }
.lock { font-size: .78rem; color: var(--ok); }

.ehead { display: flex; flex-direction: column; gap: .35rem; }
.titlerow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.titlerow h1 { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .3rem; }
.confirm { background: var(--warn-soft); border-radius: 8px; padding: .7rem .9rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.confirm p { margin: 0; flex: 1 1 240px; color: var(--warn); }
.internal { background: var(--internal); border-radius: 6px; padding: .35rem .6rem; overflow-wrap: anywhere; }
.tabs { display: flex; flex-wrap: nowrap; gap: .3rem; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .45rem .8rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; flex: none; white-space: nowrap; }
.tabs a.on { color: var(--ink); font-weight: 700; border-bottom: 3px solid var(--amber); }

.fields { display: flex; flex-direction: column; gap: .9rem; }
.field { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.flabel { display: flex; gap: .5rem; align-items: center; }
.rich { overflow-wrap: anywhere; }
.rich p { margin: 0 0 .55rem; }
.plain { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.editable { background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: .7rem .8rem; min-height: 8rem; }
.tools { display: flex; gap: .3rem; margin-bottom: .3rem; }
.fbtns { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sug { border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 8px 8px 0; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .4rem; }
.sug.closed { border-left-color: var(--line); }
.done summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.done .sug { margin-top: .5rem; }
.ok { color: var(--ok); font-weight: 600; }
.no { color: var(--del); font-weight: 600; }
.diff { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.dl { margin: 0; padding: .15rem .45rem; border-radius: 4px; overflow-wrap: anywhere; }
.dl.ctx { color: var(--muted); font-size: .9rem; }
.dl.del { background: var(--del-soft); }
.dl.add { background: var(--add-soft); }
del { color: var(--del); background: var(--del-soft); text-decoration: line-through; }
ins { color: var(--add); background: var(--add-soft); text-decoration: none; }
.dl.del del, .dl.add ins { background: transparent; }

.comments { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.com { border-top: 1px solid var(--line); padding-top: .5rem; }
.com.internal { background: var(--internal); border-radius: 6px; padding: .5rem .6rem; border-top: 0; }
.cbody { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.hist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.hist li { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: .7rem .9rem; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }

.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; }
tr.off td { color: var(--muted); text-decoration: line-through; }
pre.mail { font-family: var(--mono); font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border-radius: 6px; padding: .6rem; margin: .3rem 0; }
.toast { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .55rem 1.1rem; border-radius: 999px; font-size: .92rem; z-index: 20; max-width: calc(100% - 32px); }
@media (max-width: 560px) { h1 { font-size: 1.35rem; } main { padding-top: 1rem; } }
@media (prefers-reduced-motion: no-preference) { button { transition: background-color .15s, border-color .15s; } }

/* grafiki, wersje, wdrożenie */
.pill.s-wdrożony { background: var(--info-soft); color: var(--info); }
img.media { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
img.media.inline { margin: .4rem 0; max-height: 420px; width: auto; }
img.media.thumb { max-height: 220px; width: auto; }
.imgview img.media, .imgedit img.media { max-height: 480px; width: auto; }
.imgdiff { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.imgdiff figure { margin: 0; display: flex; flex-direction: column; gap: .3rem; }
.imgdiff figcaption { font-size: .8rem; color: var(--muted); }
.confirm .inp, .confirm label { flex: 1 1 100%; }
.vbody, .vdiff { display: flex; flex-direction: column; gap: .4rem; border-top: 1px solid var(--line); padding-top: .6rem; }

/* moduł kreacji */
.list > li.row { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.chip { font-size: .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .5rem; white-space: nowrap; }
.pill.c-do-oceny { background: var(--amber); color: var(--amber-ink); }
.pill.c-w-trakcie { background: var(--warn-soft); color: var(--warn); }
.pill.c-zaakceptowana { background: var(--ok-soft); color: var(--ok); }
.pill.c-wgrana { background: var(--info-soft); color: var(--info); }
.pill.c-odrzucona { background: var(--line); color: var(--muted); }
.batches { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.batch { display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .7rem; text-decoration: none; color: var(--ink); }
img.media.cover, .empty-cover { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; flex: none; background: var(--bg); }
.cgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.ccard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); height: 100%; }
.ccard:hover, .ccard:focus-visible { border-color: var(--accent); }
.cthumb { background: var(--bg); display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; }
.cthumb img.media { max-height: 100%; width: auto; max-width: 100%; border: 0; border-radius: 0; object-fit: contain; }
.cmeta { padding: .55rem .7rem .7rem; display: flex; flex-direction: column; gap: .3rem; }
.cgrid > li.cli { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cli .ccard { border: 0; border-radius: 0; flex: 1; }
.cli:focus-within { border-color: var(--accent); }
.qbar { display: flex; flex-direction: column; gap: .4rem; padding: 0 .7rem .7rem; }
.qbar .qcomment { font-size: .88rem; padding: .4rem .55rem; resize: vertical; min-height: 2.4rem; }
.qbar .qreason { font-size: .88rem; padding: .4rem .55rem; }
.qbtns { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.qbtns button { justify-content: center; }
.qbtns button.qno { border-color: var(--warn); color: var(--warn); }
.reason { color: var(--warn); }
.cgrid2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 760px) { .cgrid2 { grid-template-columns: 1fr; } }
.titlerow .spacer { flex: 1; }
.small-tabs a { font-size: .9rem; padding: .35rem .6rem; }
.cstage { display: flex; flex-direction: column; gap: .6rem; }
.pinwrap { position: relative; display: inline-block; max-width: 100%; }
.pinwrap img.media { max-height: 70vh; width: auto; }
.pinwrap.pinning { cursor: crosshair; outline: 2px dashed var(--accent); outline-offset: 3px; border-radius: 8px; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.pin.new { background: var(--warn); }
.pinform { display: flex; flex-wrap: wrap; gap: .5rem; }
.pinform .inp { flex: 1 1 220px; }
.pinlist { margin: 0; padding-left: 1.4rem; font-size: .92rem; }
.decide, .adminbox, .ctexts { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.adminbox { background: var(--internal); }
.reject { display: flex; flex-direction: column; gap: .35rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.consent { font-size: .9rem; }
.ptext { border-left: 3px solid transparent; padding-left: .5rem; }
.ptext.on { border-left-color: var(--accent); }
button.small { font-size: .8rem; padding: .2rem .5rem; }
.vstrip { display: flex; flex-wrap: wrap; gap: .6rem; }
.vstrip figure { margin: 0; max-width: 160px; }
.vstrip img.media.thumb { max-height: 140px; }
/* podglądy reklam */
.mock { background: #fff; color: #1c1e21; border: 1px solid #dddfe2; border-radius: 10px; max-width: 420px; width: 100%; overflow: hidden; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 14px; }
.mock .mhead { display: flex; gap: .5rem; align-items: center; padding: .6rem .7rem; }
.mock .mhead div { display: flex; flex-direction: column; line-height: 1.2; }
.mock .av { width: 36px; height: 36px; border-radius: 50%; background: #82142e; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.mock .mtext { padding: 0 .7rem .6rem; margin: 0; white-space: pre-wrap; }
.mock .mimg { background: #f0f2f5; display: flex; justify-content: center; }
.mock .mimg img.media { border: 0; border-radius: 0; width: 100%; height: auto; }
.mock .mlink { display: flex; justify-content: space-between; gap: .6rem; align-items: center; background: #f0f2f5; padding: .6rem .7rem; }
.mock .mcta { background: #e4e6eb; border-radius: 6px; padding: .45rem .7rem; font-weight: 600; white-space: nowrap; }
.mock.ig .igcta { background: #0095f6; color: #fff; font-weight: 600; padding: .55rem .7rem; }
.mock.ig .mtext { padding-top: .6rem; }
.mock.st { position: relative; aspect-ratio: 9 / 16; max-width: 320px; background: #111; border: 0; }
.mock.st .stimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mock.st .stimg img.media { border: 0; border-radius: 0; width: 100%; height: auto; }
.mock.st .safe { position: absolute; left: 0; right: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center; }
.mock.st .safe.top { top: 0; height: 14%; }
.mock.st .safe.bottom { bottom: 0; height: 20%; }
.mock.st .mcta { background: #fff; color: #111; }

/* ocena tekstów głównych */
.rates { display: flex; flex-wrap: wrap; gap: .3rem; }
.rate { font-size: .8rem; border-radius: 999px; padding: .1rem .55rem; background: var(--line); overflow-wrap: anywhere; }
.rate.r-ok { background: var(--ok-soft); color: var(--ok); }
.rate.r-zmiana { background: var(--warn-soft); color: var(--warn); }
button.r-on-ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
button.r-on-zmiana { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.rateform { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.rateform .inp { flex: 1 1 200px; }
.ptext { display: flex; flex-direction: column; gap: .35rem; padding-top: .3rem; padding-bottom: .3rem; }
.ptext + .ptext { border-top: 1px solid var(--line); }
.textflags { display: flex; flex-direction: column; gap: .4rem; background: var(--bg); border-radius: 8px; padding: .6rem .7rem; }
.chip.warnchip { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

/* pasek decyzji przy kreacji: na komputerze w ramce, na telefonie przyklejony do dołu ekranu */
.dbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.dbar .navbtn { display: none; }
.dbar.navonly { display: none; }
@media (max-width: 760px) {
  .dbar, .dbar.navonly { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; flex-wrap: nowrap; gap: .5rem; background: var(--surface); border-top: 1px solid var(--line);
    padding: .6rem max(12px, env(safe-area-inset-right)) calc(.6rem + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); }
  .dbar .navbtn { display: inline-flex; flex: none; justify-content: center; min-width: 3rem; min-height: 2.9rem; font-size: 1.1rem; }
  .dbar.navonly .navbtn { font-size: .95rem; }
  .dbar .spacer { flex: 1; }
  .dbar .dbtn { flex: 1 1 0; justify-content: center; min-height: 2.9rem; }
  .dbar .kbd { display: none; }
  body.has-dbar main { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
  body.has-dbar .toast { bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .only-desk { display: none !important; }
}

/* raport powodów odrzuceń */
td.num { font-variant-numeric: tabular-nums; text-align: right; }
.quotes { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .25rem; }
.plain.clip { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.actions .inp.narrow { max-width: 100%; }

/* paski przewijane w bok: cień przy krawędzi, za którą jest jeszcze coś do przewinięcia */
.tabs.more-r, #nav.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.tabs.more-l, #nav.more-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
.tabs.more-l.more-r, #nav.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
@media (max-width: 560px) {
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .cmeta { padding: .45rem .55rem .55rem; font-size: .92rem; }
  .batch { gap: .7rem; }
  img.media.cover, .empty-cover { width: 72px; height: 72px; }
}
@media (max-width: 760px) {
  /* sama decyzja bez dodatkowych pól: na telefonie bez pustej ramki (przyciski są w pasku na dole) */
  .decide.decide-min { display: contents; }
  .decide.decide-min .reject { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .9rem; }
}
@media (max-width: 560px) { table.wide { min-width: 640px; } }
td.nowrap, .nowrap { white-space: nowrap; }
table.reg { min-width: 980px; }
input[type=date].inp { width: auto; }

/* ---------- strony HTML do akceptacji ---------- */
.f-page { aspect-ratio: 4 / 3; }
.f-page img.media { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pgph { display: flex; flex-direction: column; align-items: center; gap: .3rem; color: var(--muted); font-size: .9rem; }
.pgph-ico { font-size: 2.2rem; line-height: 1; color: var(--accent); }
.pgview { min-width: 0; }
.pgview .tabs { align-items: center; }
.pgopen { margin-left: auto; font-size: .9rem; }
.pgbox { width: 100%; min-width: 0; display: flex; justify-content: center; }
.pgouter { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 3px rgb(0 0 0 / .06); }
.pgouter.phone { border: 10px solid #1d1a1c; border-radius: 26px; }
.pgouter.pinning { outline: 2px dashed var(--accent); outline-offset: 3px; }
.pginner { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.pgframe { display: block; border: 0; background: #fff; }
.pgoverlay { position: absolute; inset: 0; pointer-events: none; }
.pgoverlay.on { pointer-events: auto; cursor: crosshair; background: rgb(130 20 46 / .04); }
.pginner .pin { width: 2rem; height: 2rem; font-size: .95rem; box-shadow: 0 0 0 3px #fff; transform: translate(-50%, -50%) scale(var(--inv, 1)); }
.pin.hot { background: var(--warn); }
.pinlist li.hot { background: var(--warn-soft); border-radius: 6px; }
.pgview .pinform { position: sticky; top: 3.6rem; z-index: 4; background: var(--surface); padding: .5rem; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 700px) { .pgouter.phone { border: 1px solid var(--line); border-radius: 8px; } .pgview .tabs { flex-wrap: wrap; } }
body.pg-wide main { max-width: 1360px; }
.pgpins:not(:empty) { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; display: flex; flex-direction: column; gap: .3rem; }
.pgtypes a { font-weight: 600; display: inline-flex; gap: .45rem; align-items: center; }
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: .72rem; padding: .05rem .5rem; font-weight: 700; }

/* ---------- identyfikacja Lejkowni ---------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand img { height: 30px; width: auto; display: block; }
.brand .logo-dark { display: none; }
.brand-tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-left: 1.5px solid var(--line); padding-left: .55rem; }
.login-logo { display: block; height: 46px; width: auto; margin-bottom: .2rem; }
.login-logo.logo-dark { display: none; }
.login .card { border: 1.5px solid var(--ink); border-radius: 8px; box-shadow: 6px 6px 0 var(--amber); }
.pill { border-radius: 4px; border: 1.5px solid currentColor; }
.pill.c-do-oceny, .pill.s-do-akceptacji { border-color: var(--amber-ink); transform: rotate(-1.5deg); }
.pill.s-do-akceptacji { background: var(--amber); color: var(--amber-ink); }
.pin, .pginner .pin { background: var(--amber); color: var(--amber-ink); box-shadow: 0 0 0 2px var(--ink); }
.pin.new { background: #fff; color: var(--ink); }
.badge { background: var(--amber); color: var(--amber-ink); }
@media (prefers-color-scheme: dark) {
  .brand .logo-light, .login-logo.logo-light { display: none; }
  .brand .logo-dark, .login-logo.logo-dark { display: block; }
}
@media (max-width: 560px) { .brand img { height: 24px; } .brand-tag { display: none; } }
.fixes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.fix { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 8px; padding: .7rem .8rem; display: flex; flex-direction: column; gap: .35rem; }
.fix.fx-nie { border-left-color: var(--line); opacity: .75; }
.fix.fx-zrobione { border-left-color: var(--ok); }
.fix.fx-robimy { border-left-color: var(--ink); }
.fix .cbody { margin: 0; }
.fxchip { font-weight: 700; }
