/* FlotiON – vzhľad. Rovnaký základ ako SadON: telefón na slnku, veľké písmo, tlačidlá aspoň 52 px. */
:root {
  --brand: #1f4e79;
  --brand-dark: #153a5b;
  --brand-soft: #dbe7f3;
  --bg: #f1f4f7;
  --card: #ffffff;
  --ink: #15202b;
  --muted: #4c5866;
  --line: #ccd5de;
  --red: #b3261e;
  --red-soft: #fbe3e0;
  --orange: #a85400;
  --orange-soft: #ffe8cc;
  --green: #1f6f3a;
  --green-soft: #ddf0e2;
  --grey-soft: #e7ebef;
  --radius: 14px;
  --tap: 52px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 17px; overflow-y: scroll; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.12rem; margin: 22px 0 10px; }
h3 { font-size: .98rem; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }

/* horná lišta */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; background: var(--brand); color: #fff;
  padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); min-height: 58px; }
.bar h1 { flex: 1; font-size: 1.1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.bar-btn { width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; flex: none; position: relative; }
.bar-btn .badge { position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ffb020; color: #000; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }

main { max-width: 860px; margin: 0 auto; padding: 14px 14px calc(96px + env(safe-area-inset-bottom)); }

/* spodná navigácia */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; color: var(--muted); text-decoration: none; font-size: .74rem; font-weight: 600; min-height: 58px; justify-content: center; }
.nav a svg { width: 24px; height: 24px; }
.nav a.on { color: var(--brand); }

/* karty a zoznamy */
.card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.card + .card { margin-top: 10px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: inherit; border: 0; width: 100%; text-align: left; box-shadow: 0 1px 2px rgba(0,0,0,.06); min-height: var(--tap); }
.item .stripe { width: 6px; align-self: stretch; border-radius: 3px; flex: none; background: var(--line); }
.item .title { font-weight: 700; }
.item .sub { color: var(--muted); font-size: .88rem; }
.chev { color: var(--muted); font-size: 1.4rem; }

/* stav platnosti */
.st-ok { --c: var(--green); --s: var(--green-soft); }
.st-soon { --c: var(--orange); --s: var(--orange-soft); }
.st-expired { --c: var(--red); --s: var(--red-soft); }
.st-none, .st-na { --c: var(--muted); --s: var(--grey-soft); }
.stripe.st-ok, .stripe.st-soon, .stripe.st-expired, .stripe.st-none { background: var(--c); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--s, var(--grey-soft)); color: var(--c, var(--muted)); white-space: nowrap; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* semafor na prehľade */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.tile { border: 0; border-radius: var(--radius); padding: 14px 8px; background: var(--s); color: var(--c); text-align: center; text-decoration: none; }
.tile b { display: block; font-size: 1.8rem; line-height: 1.1; }
.tile span { font-size: .76rem; font-weight: 700; }

/* formuláre */
label.f { display: block; margin-top: 12px; }
label.f > span { display: block; font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
textarea { min-height: 90px; }
input.big { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; }
.check input { width: 24px; height: 24px; }
.uncertain { border-color: var(--orange) !important; background: var(--orange-soft) !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; padding: 0 12px; font-size: .9rem; }
.btn[aria-busy=true] { opacity: .6; }
.btn:disabled { opacity: .45; cursor: default; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btns > .btn { flex: 1 1 140px; }

/* záložky */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 12px; }
.tabs button { border: 0; background: var(--grey-soft); color: var(--ink); padding: 9px 14px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.tabs button.on { background: var(--brand); color: #fff; }

/* tabuľka údajov */
dl.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 6px 12px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .9rem; }
dl.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th, table.t td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--muted); font-weight: 600; font-size: .84rem; }

.notice { border-radius: var(--radius); padding: 12px 14px; background: var(--brand-soft); }
.notice.warn { background: var(--orange-soft); }
.notice.err { background: var(--red-soft); }
.notice + .notice, .card + .notice, .notice + .card { margin-top: 10px; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--grey-soft); }

.search { position: sticky; top: 66px; z-index: 5; background: var(--bg); padding-bottom: 8px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #222; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 50; max-width: 92vw; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.toast.err { background: var(--red); }

/* prihlásenie */
.login { max-width: 400px; margin: 40px auto; }
.login .logo { text-align: center; font-size: 2rem; font-weight: 800; color: var(--brand); margin-bottom: 18px; }
.login .logo i { font-style: normal; color: #2e8b57; }

.qr img { width: 220px; height: 220px; background: #fff; }
.codes { columns: 2; font-family: ui-monospace, Menlo, monospace; }

