/* =====================================================================
   GAJNIAK Pokladnice – štýly, verzia 2.6
   Pokladničný bloček, písmo Archivo (úzke nadpisy), svetlý aj tmavý režim.
   Jeden súbor bez prepisovaných vrstiev – každé pravidlo platí tam, kde je.
   ===================================================================== */

:root {
  --red: #DA3324;
  --red-2: #B8281B;
  --red-soft: #FBE9E7;
  --dark: #1C1F24;
  --bg: #ECEEF1;
  --paper: #FFFFFF;
  --text: #1C1F24;
  --heading: #1C1F24;
  --body-2: #3A3F47;
  --muted: #5B616B;
  --line: #D6DAE0;
  --field: #A9AFB8;
  --danger: #C42B1D;
  --surface: #FFFFFF;
  --surface-2: #F6F7F9;
  --red-text: #B8281B;
  --link: #1D4ED8;
  --soft-red-bg: #FBE9E7;
  --switch-off: #A9AFB8;
  --dash: #D6DAE0;
  --chip-all: #1C1F24;
  --chip-all-text: #FFFFFF;
  --fav: #CA8A04;
  --tabbar-h: 62px;
  --tap: 44px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121013;
  --surface: #1D1A1E;
  --surface-2: #27232A;
  --paper: #1F1C20;
  --text: #ECE7EA;
  --heading: #F7F3F5;
  --body-2: #C4BCC1;
  --muted: #A59CA2;
  --line: #36303A;
  --field: #4A434E;
  --red-soft: #3A1D1B;
  --red-text: #FF8A7D;
  --link: #8AB4FF;
  --soft-red-bg: #3F1D1D;
  --switch-off: #4A434E;
  --dash: #3C3640;
  --dark: #2E2A30;
  --chip-all: #ECE7EA;
  --chip-all-text: #121013;
}

/* ---------- základ ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none;
  background: linear-gradient(to bottom, var(--red) 0 50%, var(--surface) 50% 100%);
  color: var(--text); font-family: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px;
  /* zväčšovanie dvoma prstami povolené, dvojité ťuknutie nezoomuje */
  touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
/* písmo vo formulároch min. 16 px – iPhone potom pri písaní nezväčšuje stránku */
input, textarea, select { font-size: 16px !important; }
button { cursor: pointer; }
svg { width: 24px; height: 24px; fill: currentColor; }
.st { fill: none !important; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

#app { position: fixed; inset: 0; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; background: var(--bg); overflow: hidden; }
@media (min-width: 720px) { #app { box-shadow: 0 0 0 1px var(--line); } }
.screen { display: none; flex-direction: column; flex: 1; min-height: 0; }
.screen.active { display: flex; }

/* fokus z klávesnice */
button:focus-visible, a:focus-visible, select:focus-visible, label.row:focus-within,
.post:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid var(--text); outline-offset: 2px; }
.post:focus-visible { outline-offset: 3px; }
.topbar button:focus-visible, .lightbox button:focus-visible, .call-btn:focus-visible { outline-color: #FFFFFF; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }

/* ---------- horná lišta ---------- */
.topbar { background: var(--red); color: #FFFFFF; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px; flex-shrink: 0; min-height: 56px; }
.topbar .logo { width: 36px; height: 36px; border-radius: 8px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 18px; font-weight: 800; font-stretch: 125%; letter-spacing: .01em; }
.brand span { font-size: 13px; font-weight: 500; color: #FFFFFF; }

.topbar-feed { flex-wrap: wrap; row-gap: 12px; padding: calc(14px + var(--safe-t)) 16px 16px; }
.feed-title { flex-basis: 100%; margin: 0; font-size: 31px; line-height: 1; font-weight: 800; font-stretch: 62%; letter-spacing: -.005em; }
.help-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: var(--tap); padding: 0 14px 0 10px; border-radius: 22px;
  border: 1.5px solid #FFFFFF8C; background: transparent; color: #FFFFFF; font-weight: 700; font-size: 14px; }
.help-btn svg { width: 22px; height: 22px; }

.topbar.plain { background: var(--surface); color: var(--heading); border-bottom: 1px solid var(--line); padding: calc(16px + var(--safe-t)) 16px 14px; }
.topbar.plain h1 { margin: 0; font-size: 34px; line-height: 1; font-weight: 800; font-stretch: 62%; }

/* ---------- inštalácia ---------- */
.install-banner { background: var(--dark); color: #FFFFFF; padding: 6px 6px 6px 16px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.install-banner b { font-weight: 800; }
.install-banner button.go { background: var(--red); color: #FFFFFF; border: 0; border-radius: 8px; min-height: 40px; padding: 0 12px; font-weight: 700; white-space: nowrap; }
.install-banner .x { margin-left: auto; min-width: var(--tap); min-height: var(--tap); background: none; border: 0; font-size: 22px; line-height: 1; color: #FFFFFF; }

/* ---------- pripnuté – biely bloček s hrubým červeným pruhom ---------- */
.pinned { background: var(--bg); padding: 14px 12px 0; display: grid; gap: 10px; }
.pinned button { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 14px 14px 16px; text-align: left;
  background: var(--paper); color: var(--text); border: 0; border-top: 6px solid var(--red); border-radius: 0; filter: drop-shadow(0 1px 0 var(--line)); }
.pinned .pc { flex: 1; min-width: 0; }
.pinned .pl { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--red-text); }
.pinned .pl svg { width: 15px; height: 15px; }
.pinned .ps { display: block; font-size: 21px; line-height: 1.12; font-weight: 800; font-stretch: 75%; color: var(--heading); }
.pinned .t { margin-top: 6px; font-size: 15px; line-height: 1.38; font-weight: 500; color: var(--body-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pinned .ch { align-self: center; color: var(--muted); line-height: 1; }
.pinned .ch svg { width: 20px; height: 20px; }
.pinned .more { padding-bottom: 2px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* ---------- filtre – jeden riadok, posúvanie do strany ---------- */
.filters { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0;
  background: var(--surface); border-bottom: 1px solid var(--line); }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--tap); padding: 0 16px; border-radius: 22px;
  border: 1px solid var(--field); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip.on { background: var(--c); border-color: var(--c); color: #FFFFFF; }
.chip.on i { background: #FFFFFF; }
.chip.on[data-f=""] { color: var(--chip-all-text); }

/* ---------- kanál ---------- */
.feed { flex: 1; overflow-y: auto; padding: 14px 12px 20px; -webkit-overflow-scrolling: touch; }
.loading, .empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; padding: 24px; text-align: center; color: var(--muted); }
.empty .ico { color: var(--muted); }
.empty .ico svg { width: 44px; height: 44px; }
.empty .ico.fav { color: var(--fav); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.day { margin: 14px 4px 10px; }
.day span { font-size: 14px; font-weight: 700; color: var(--muted); }
.msg { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; }
.post { flex: 1; min-width: 0; filter: drop-shadow(0 1px 0 var(--line)); cursor: pointer; }
:root[data-theme="dark"] .post { filter: none; }

/* pokladničný bloček so zúbkovaným spodkom */
.receipt { position: relative; background: var(--paper); border-radius: 2px 2px 0 0; padding-bottom: 8px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
                conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 14px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
                conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 14px 8px repeat-x; }
.receipt.important { border-top: 6px solid var(--red); }
.receipt .inner { padding: 14px 16px 12px; }
.receipt .head { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.imp { margin-left: 2px; padding-left: 6px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 800; color: var(--red-text); }
.head .pin, .att-i { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.head .pin svg, .att-i svg, .hi-pin svg { width: 15px; height: 15px; }
.att-i { font-size: 12.5px; font-weight: 600; }
.fav-i { color: var(--fav); font-size: 15px; }
.head .pin, .head .att-i, .head .fav-i { margin-left: auto; }
.head .fav-i ~ .pin, .head .fav-i ~ .att-i, .head .pin ~ .att-i { margin-left: 6px; }
.more-btn { display: grid; place-items: center; min-width: var(--tap); min-height: var(--tap); margin: -10px -10px -10px auto;
  background: none; border: 0; border-radius: 8px; color: var(--muted); }
.head .pin ~ .more-btn, .head .att-i ~ .more-btn, .head .fav-i ~ .more-btn { margin-left: 0; }
.more-btn svg { width: 20px; height: 20px; display: block; }

.sum { margin-top: 8px; font-size: 15px; line-height: 1.42; color: var(--body-2); word-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sum b { display: inline-block; margin-bottom: 2px; font-size: 19px; line-height: 1.15; font-weight: 750; font-stretch: 80%; color: var(--heading); }
.subj { margin: 10px 0 0; font-size: 24px; line-height: 1.12; font-weight: 800; font-stretch: 75%; color: var(--heading); word-wrap: break-word; }
.subj a { color: inherit; }
.subj + .text { margin-top: 5px; }
.text { margin-top: 10px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; }
.text a { color: var(--link); }
.imgs { margin-top: 10px; display: grid; gap: 6px; }
.imgs img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 4px; background: var(--line); }
.file { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 10px; min-height: var(--tap);
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.file .pdf { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 4px; background: var(--soft-red-bg); color: var(--danger); font-size: 10px; font-weight: 800; }
.file .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot { display: flex; margin-top: 10px; padding-top: 6px; border-top: 1px dashed var(--dash);
  font-size: 12.5px; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--muted); }
.foot b { font-weight: 700; }
.foot span:last-child { margin-left: auto; }

/* odkazy v oznamoch – krátke, ako tlačidlo */
a.lnk { display: inline-block; max-width: 100%; padding: 1px 9px; border-radius: 8px; vertical-align: bottom;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--red-soft); color: var(--red-text) !important; text-decoration: none; font-weight: 700; font-size: .92em; }

.older { margin: 4px 0 8px; text-align: center; }
.older button { min-height: var(--tap); padding: 0 18px; border: 1px solid var(--field); border-radius: 22px; background: var(--surface); color: var(--heading); font-size: 14px; font-weight: 600; }

/* ---------- písanie (správca) ---------- */
.composer { flex-shrink: 0; padding: 8px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px #0F27440D; }
:root[data-theme="dark"] .composer { box-shadow: none; }
.composer-opts { display: flex; gap: 6px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
.composer-opts select, .opt { flex-shrink: 0; height: 36px; padding: 0 12px; border: 1px solid var(--field); border-radius: 18px; background: var(--surface); font-size: 13px; font-weight: 600; }
.composer-opts select { padding-right: 6px; }
.opt[aria-pressed="true"] { border-color: var(--danger); background: var(--soft-red-bg); color: var(--danger); }
#c-pinned[aria-pressed="true"] { border-color: var(--dark); background: var(--dark); color: #FFFFFF; }
.composer-files { display: flex; flex-wrap: wrap; gap: 6px; }
.composer-files:not(:empty) { padding-bottom: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; max-width: 200px; padding: 4px 4px 4px 10px; border-radius: 16px; background: var(--bg); font-size: 12.5px; }
.fchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchip button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; line-height: 1; background: color-mix(in srgb, var(--text) 12%, transparent); }
.composer-row { display: flex; align-items: flex-end; gap: 6px; }
.icon-btn { display: grid; place-items: center; flex-shrink: 0; width: var(--tap); height: var(--tap); border-radius: 50%; color: var(--muted); cursor: pointer; }
#c-text { flex: 1; max-height: 140px; padding: 10px 14px; border: 1px solid var(--field); border-radius: 22px; background: var(--surface); line-height: 1.35; resize: none; }
.send-btn { display: grid; place-items: center; flex-shrink: 0; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: var(--red); color: #FFFFFF; }
.send-btn:disabled { opacity: .5; }

/* ---------- stránky (kontakt, nastavenia) ---------- */
.page { flex: 1; overflow-y: auto; padding: 16px 16px 28px; }
.page-lead { margin: 0 2px 14px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.call-btn { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 10px; background: var(--red); color: #FFFFFF; text-decoration: none; }
.call-btn svg { flex: none; width: 28px; height: 28px; }
.call-btn > span { display: flex; flex-direction: column; gap: 2px; }
.call-btn b { font-size: 21px; font-weight: 800; font-stretch: 85%; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; padding: 14px 16px;
  border-radius: 10px; background: var(--surface); font-size: 14px; line-height: 1.4; }
.info-grid > * { display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.info-grid span { color: var(--muted); }
.big-btn { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 16px; border: 0; border-radius: 10px;
  background: var(--dark); color: #FFFFFF; text-align: left; }
.big-btn > svg:first-child { flex: none; width: 26px; height: 26px; }
.big-btn b { display: block; font-size: 18px; font-weight: 800; font-stretch: 85%; }
.big-btn small { font-size: 13px; }
.big-btn .chev-i { margin-left: auto; opacity: .7; }
.card { margin-top: 14px; overflow: hidden; border-radius: 10px; background: var(--surface); }
.row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.row:first-child { border-top: 0; }
.row .ic { display: grid; place-items: center; flex-shrink: 0; width: 22px; color: var(--red-text); font-size: 18px; }
.row .ic svg { width: 21px; height: 21px; }
.row .lbl { font-size: 12.5px; color: var(--muted); }
.row .val { font-size: 15px; font-weight: 600; }
.row .grow { flex: 1; min-width: 0; }
.row .chev-i { flex: none; width: 20px; height: 20px; color: var(--muted); }
.section-title { margin: 24px 2px 8px; font-size: 15px; font-weight: 700; color: var(--muted); }
.section-title:first-child { margin-top: 4px; }
.note { margin: 8px 4px 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.note.center { margin-top: 24px; text-align: center; }
.note a { color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 8px; background: #FEF3C7; color: #78350F; font-size: 14px; line-height: 1.45; }
.alert.ok { background: #DCFCE7; color: #14532D; }
:root[data-theme="dark"] .alert { background: #3A2E12; color: #F6D98A; }
:root[data-theme="dark"] .alert.ok { background: #14301F; color: #9BE3B4; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 13px 16px;
  border: 0; border-radius: 8px; background: var(--red); color: #FFFFFF; text-decoration: none; font-size: 15px; font-weight: 700; }
.btn svg { width: 20px; height: 20px; }
.btn.light { background: var(--surface); color: var(--heading); border: 1px solid var(--field); }
.btn.danger { background: var(--danger); }
.btn + .btn { margin-top: 10px; }
.btn.inline { width: auto; min-height: var(--tap); padding: 8px 14px; }
.btn:disabled { opacity: .55; }
.gap { height: 10px; }

/* prepínač */
.switch { position: relative; flex-shrink: 0; width: 52px; height: 32px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 16px; background: var(--switch-off); transition: .2s; }
.switch span::before { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; transition: .2s; }
.switch input:checked + span { background: var(--red); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:disabled + span { opacity: .5; }

/* formuláre */
.field { margin-bottom: 12px; }
.field label, .field .lab { display: block; margin: 0 0 6px 2px; font-size: 13px; font-weight: 600; color: var(--heading); }
.field input, .field textarea, .field select { width: 100%; padding: 12px; border: 1px solid var(--field); border-radius: 6px; background: var(--surface); outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--red); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border: 1px solid var(--field); border-radius: 8px; background: var(--surface); }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg button { min-height: var(--tap); padding: 9px; border: 0; border-radius: 6px; background: none; font-size: 14px; font-weight: 600; }
.seg button.on { background: var(--red); color: #FFFFFF; }

/* ---------- spodné menu ---------- */
.tabbar { display: flex; flex-shrink: 0; padding-bottom: max(var(--safe-b), 6px); background: var(--surface); border-top: 1px solid var(--line); }
.tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px;
  border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.tab svg { width: 24px; height: 24px; padding: 2px 0; box-sizing: content-box; }
.tab.active { color: var(--red-text); font-weight: 800; }
.tab .dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--surface); }

/* ---------- prekrytia ---------- */
.ov { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; }
.ov .backdrop { position: absolute; inset: 0; background: #0F274466; animation: fade .2s; }
:root[data-theme="dark"] .ov .backdrop { background: #000A; }
@keyframes fade { from { opacity: 0; } }
.ov [role="dialog"]:focus { outline: none; }
.sheet { position: relative; align-self: center; width: 100%; max-width: 720px; margin-top: auto; padding: 8px 0 calc(12px + var(--safe-b));
  border-radius: 14px 14px 0 0; background: var(--surface); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 4px; margin: 4px auto 10px; border-radius: 4px; background: var(--line); }
.sheet h3 { margin: 4px 20px 10px; font-size: 17px; }
.sheet button.item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 20px; border: 0; background: none; text-align: left; font-size: 16px; }
.sheet button.item .e { width: 24px; text-align: center; font-size: 18px; }
.sheet button.item.red { color: var(--danger); }
.dialog { position: relative; align-self: center; width: calc(100% - 40px); max-width: 440px; margin: auto 20px; padding: 20px;
  border-radius: 12px; background: var(--surface); animation: pop .2s; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.dialog h3 { margin: 0 0 8px; font-size: 18px; }
.dialog p { margin: 0 0 16px; line-height: 1.45; color: var(--body-2); }
.dialog textarea, .dialog input { width: 100%; margin-bottom: 14px; padding: 12px; border: 1px solid var(--field); border-radius: 8px; background: var(--surface-2); color: var(--text); }
.dialog .acts { display: flex; justify-content: flex-end; gap: 10px; }
.dialog .acts button { min-height: var(--tap); padding: 10px 16px; border: 0; border-radius: 8px; background: var(--bg); font-weight: 700; }
.dialog .acts button.primary { background: var(--red); color: #FFFFFF; }
.dialog .acts button.red { background: var(--danger); color: #FFFFFF; }
.dialog .choice { display: grid; gap: 8px; }
.dialog .choice button { padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); text-align: left; font-size: 15px; font-weight: 700; }
.dialog .choice button.primary { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.dialog .choice button.cancel { padding: 8px; border: 0; background: none; color: var(--muted); text-align: center; }
.dlg-check { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; font-size: 14px; color: var(--body-2); }
.dlg-check input { width: auto !important; margin: 0 !important; }

.full { position: relative; align-self: center; flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 720px; min-height: 0; overflow: hidden;
  background: var(--bg); animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.full .topbar button { display: grid; place-items: center; min-width: var(--tap); min-height: var(--tap); margin-left: -10px; padding: 0; border: 0; background: none; color: #FFFFFF; }
.full .topbar .brand b { font-size: 19px; font-stretch: 80%; letter-spacing: 0; }
.full .topbar .sp { flex: 1; }
.full .body { flex: 1; min-height: 0; padding: 16px 16px calc(24px + var(--safe-b)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
.full .post { cursor: default; }

.lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: #000000; animation: fade .2s; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: #FFFFFF33; color: #FFFFFF; font-size: 22px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px + var(--safe-b)); z-index: 80; max-width: calc(100% - 32px); transform: translateX(-50%);
  padding: 11px 16px; border-radius: 12px; background: var(--dark); color: #FFFFFF; font-size: 14px; box-shadow: 0 6px 20px #0003; animation: pop .2s; }
.toast.err { background: #B91C1C; }

/* ---------- obľúbené ---------- */
.fav-btn { display: block; width: 100%; margin-top: 16px; padding: 14px; border: 1.5px solid #E9C46A; border-radius: 8px;
  background: color-mix(in srgb, var(--fav) 10%, var(--surface)); color: #92400E; font-size: 15px; font-weight: 800; }
.fav-btn[aria-pressed="true"] { background: var(--fav); border-color: var(--fav); color: #FFFFFF; }
:root[data-theme="dark"] .fav-btn { color: #F2C94C; border-color: #6B5310; }
:root[data-theme="dark"] .fav-btn[aria-pressed="true"] { color: #1D1A1E; }

/* ---------- Pomoc a návody ---------- */
.full.help-screen { background: var(--surface); }
.help-screen .body { padding-top: 12px; }
.help-search input { width: 100%; padding: 12px 14px; border: 1px solid var(--field); border-radius: 8px; background: var(--surface-2); outline: none; }
.help-search input:focus { border-color: var(--red); background: var(--surface); }
.help-admin { display: flex; gap: 8px; margin-top: 10px; }
.help-admin .btn { flex: 1; margin: 0 !important; padding: 12px 10px; font-size: 14px; }
.help-admin .btn.light.on { background: var(--red); color: #FFFFFF; border-color: var(--red); }
.help-list { margin-top: 6px; }
.help-item { padding: 16px 2px; border-bottom: 1px solid var(--line); filter: none; cursor: default; }
.help-item.flash { border-radius: 10px; animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 40% { background: var(--red-soft); } 100% { background: transparent; } }
.hi-head { display: flex; align-items: flex-start; gap: 8px; }
.hi-head h2 { flex: 1; margin: 0; font-size: 16.5px; line-height: 1.3; font-weight: 700; color: var(--heading); }
.hi-head .more-btn { margin: -10px -10px -10px 0; }
.help-item p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--body-2); white-space: pre-wrap; }
.help-item img { display: block; width: 100%; max-height: 200px; margin-top: 10px; object-fit: cover; border-radius: 6px; }
.hi-links { display: grid; gap: 6px; margin-top: 10px; }
.hi-links:empty { display: none; }
.hi-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--tap); padding: 10px 12px; border-radius: 8px;
  background: var(--red-soft); color: var(--red-text); text-decoration: none; font-size: 14px; font-weight: 700; }
.hi-links a small { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--red-text); font-size: 12.5px; font-weight: 500; }
.help-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.help-foot { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.help-foot a { color: var(--red-text); font-weight: 700; }

/* zmena poradia v sekcii Pomoc */
.ord-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.ord-n { flex-shrink: 0; width: 26px; font-size: 14px; font-weight: 700; color: var(--muted); }
.ord-t { flex: 1; min-width: 0; line-height: 1.3; font-weight: 600; }
.ord-row button { flex-shrink: 0; width: var(--tap); height: var(--tap); border: 1px solid var(--field); border-radius: 8px; background: var(--surface); color: var(--red-text); font-size: 16px; }
.ord-row button:disabled { opacity: .3; }

/* ---------- obmedzený pohyb a vysoký kontrast ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .spinner { animation: spin 1.6s linear infinite !important; }   /* načítavanie ostáva viditeľné */
}
@media (forced-colors: active) {
  .chip.on, .tab.active, .seg button.on { outline: 2px solid CanvasText; }
  .receipt { border: 1px solid CanvasText; }
}
