/* Rodinný jídelníček – světlé a živé rozhraní. */

:root {
  --bg: #fffaf3;
  --bg-tint: #fff2e2;
  --card: #ffffff;
  --ink: #2a1f1a;
  --ink-soft: #7c6a5e;
  --line: #f0e2d2;

  --brand: #ff5a3c;
  --brand-soft: #ffe8e2;
  --warm: #ff9f1c;
  --warm-soft: #fff0d6;
  --cold: #2ec4d6;
  --cold-soft: #dcf7fb;
  --kids: #9b5de5;
  --kids-soft: #f2e8ff;
  --ok: #2fb457;
  --ok-soft: #e2f8e8;
  --offer: #12855a;
  --offer-bg: #dcf6e6;
  --money: #6d28d9;
  --money-soft: #f0e9ff;

  --shadow: 0 2px 8px rgba(180, 110, 60, 0.1);
  --shadow-md: 0 6px 18px rgba(180, 110, 60, 0.14);
  --shadow-lg: 0 14px 38px rgba(150, 90, 50, 0.22);
  --radius: 18px;
  --tabbar-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(900px 420px at 8% -8%, #ffe4d2 0%, rgba(255, 228, 210, 0) 70%),
    radial-gradient(760px 380px at 100% 0%, #e4f8ff 0%, rgba(228, 248, 255, 0) 72%);
  background-attachment: fixed;
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, sans-serif;
  overscroll-behavior-y: none;
}

#app {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 14px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 26px);
}

.boot { padding: 60px 0; text-align: center; color: var(--ink-soft); }

h1 { font-size: 23px; margin: 4px 0 2px; letter-spacing: -0.4px; }
h2 { font-size: 17px; margin: 22px 0 10px; letter-spacing: -0.2px; }
h3 { font-size: 15px; margin: 0 0 6px; }
p { margin: 6px 0; }
small { color: var(--ink-soft); }
button { font: inherit; cursor: pointer; color: var(--ink); }

/* ---------- hlavička a tlačítka ---------- */

header.top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
header.top .sub { color: var(--ink-soft); font-size: 13px; }
header.top .spacer { flex: 1; }

.btn {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}
.btn:active { transform: scale(0.96); }
.btn.primary {
  background: linear-gradient(135deg, #ff6a45, #ff4b6e);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 90, 60, 0.35);
}
.btn.ghost { background: rgba(255, 255, 255, 0.65); box-shadow: none; }
.btn.sm { padding: 5px 11px; font-size: 13px; }
.btn:disabled { opacity: 0.5; }

.weekbar {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 6px;
  box-shadow: var(--shadow); margin-bottom: 14px;
}
.weekbar .label { flex: 1; text-align: center; font-weight: 800; font-size: 14px; }
.weekbar button { border: 0; background: transparent; font-size: 19px; padding: 4px 14px; border-radius: 999px; }

/* ---------- chipy ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.chip {
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  display: inline-flex; gap: 5px; align-items: center;
}
.chip.good { background: var(--ok-soft); border-color: transparent; color: #1a7c3c; }
.chip.warn { background: var(--warm-soft); border-color: transparent; color: #b26a00; }
.chip.offer { background: var(--offer-bg); border-color: transparent; color: var(--offer); }
.chip.money { background: var(--money-soft); border-color: transparent; color: var(--money); }
.chip.bad { background: #ffe4e4; border-color: transparent; color: #c62828; }

.tag {
  display: inline-block; font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-tint); color: #9a6b45;
}
.tag.warm { background: var(--warm-soft); color: #b26a00; }
.tag.cold { background: var(--cold-soft); color: #10707d; }
.tag.kids { background: var(--kids-soft); color: #6d28d9; }
.tag.offer { background: var(--offer-bg); color: var(--offer); }
.tag.money { background: var(--money-soft); color: var(--money); }
.tag.viet { background: #ffe9f0; color: #c2185b; }

/* ---------- týden ---------- */

.slot {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 12px; overflow: hidden; display: flex;
}
.slot .stripe { width: 7px; flex: 0 0 7px; background: linear-gradient(180deg, #ffb24d, #ff8c1a); }
.slot.cold .stripe { background: linear-gradient(180deg, #6fe0ee, #21b4c8); }
.slot.kids .stripe { background: linear-gradient(180deg, #bd8bff, #8b45e0); }
.slot .body { flex: 1; min-width: 0; display: flex; gap: 10px; padding: 10px 11px; align-items: center; }
.slot .body > .btn { flex: 0 0 auto; }

.slot .meta { flex: 1; min-width: 0; }
.slot .daylabel {
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--ink-soft); display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.slot .name { font-weight: 800; font-size: 15.5px; margin: 3px 0 2px; line-height: 1.25; }
.slot .name.empty { color: var(--ink-soft); font-weight: 700; font-size: 14px; }
.slot .desc {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; margin: 2px 0 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.slot .foot { font-size: 12px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; }
.slot .foot span { white-space: nowrap; }

.thumb {
  width: 64px; height: 64px; border-radius: 14px; flex: 0 0 64px;
  background: linear-gradient(140deg, #ffd9a0, #ffb08a);
  display: grid; place-items: center; font-size: 30px;
  border: 0; overflow: hidden; padding: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.ph { background: linear-gradient(140deg, #ffe7c4, #ffc7a6); }
.slot.cold .thumb.ph { background: linear-gradient(140deg, #d5f5fb, #a8e6f2); }
.slot.kids .thumb.ph { background: linear-gradient(140deg, #efe1ff, #d3b8f7); }
.ph-emoji { width: 100%; height: 100%; display: grid; place-items: center; font-size: inherit; }

/* ---------- výběr dne: všech 5 návrhů ---------- */

.pickhead { margin-bottom: 8px; }
.pickhead .dayline {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 9px 12px; box-shadow: var(--shadow); margin-bottom: 8px;
}
.pickhead .dayline b { font-size: 16px; }
.pickhead .dayline .sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

.modeswitch { display: flex; gap: 6px; margin-bottom: 10px; }
.modeswitch button {
  flex: 1; border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 7px 10px; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow);
}
.modeswitch button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.opt {
  display: flex; gap: 11px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden;
  align-items: stretch; width: 100%; text-align: left; padding: 0;
}
.opt .pic { width: 108px; flex: 0 0 108px; background: linear-gradient(140deg, #ffe7c4, #ffc7a6); display: grid; place-items: center; font-size: 34px; overflow: hidden; }
.opt .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opt .txt { flex: 1; min-width: 0; padding: 9px 11px 10px 0; }
.opt .num {
  display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 900; margin-right: 5px;
}
.opt .nm { font-weight: 800; font-size: 15.5px; line-height: 1.2; }
.opt .ds {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; margin: 4px 0 6px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.opt .row2 { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.opt .acts { display: flex; gap: 6px; margin-top: 8px; }
.opt .acts .btn { padding: 5px 10px; font-size: 12.5px; }

/* ---------- swipe balíček ---------- */

.deck-wrap { position: relative; }
.deck { position: relative; height: min(58vh, 500px); margin: 4px 0 10px; touch-action: pan-y; }
.deck .card {
  position: absolute; inset: 0; background: var(--card);
  border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column; will-change: transform; user-select: none;
}
.deck .card .photo {
  flex: 0 0 56%; min-height: 0;
  background: linear-gradient(140deg, #ffd9a0, #ff9f77);
  display: grid; place-items: center; font-size: 80px; position: relative;
  overflow: hidden; /* jinak fotka přeteče přes název jídla */
}
.deck .card .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.deck .card .info { padding: 10px 14px 13px; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.deck .card .info h3 { font-size: 18.5px; line-height: 1.2; margin-bottom: 4px; }
.deck .card .info .cdesc {
  font-size: 13px; color: var(--ink-soft); line-height: 1.35; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.deck .card .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 88%; }
.deck .card .badges .tag { background: rgba(30, 15, 10, 0.68); color: #fff; backdrop-filter: blur(4px); font-size: 11px; padding: 4px 9px; }
/* tečky ukazují, kolikátý z pěti návrhů je vidět */
.dots { display: flex; justify-content: center; gap: 7px; margin: 0 0 10px; }
.dots i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
}
.dots i.on { background: var(--brand); transform: scale(1.35); }

.deck-actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 8px; }
.round {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: var(--shadow-md); font-size: 24px; display: grid; place-items: center;
}
.round:active { transform: scale(0.93); }
.round.yes {
  color: #fff; width: 68px; height: 68px; font-size: 30px;
  background: linear-gradient(135deg, #2fd075, #14a85a); border-color: transparent;
  box-shadow: 0 6px 18px rgba(20, 168, 90, 0.4);
}

.ingr { display: flex; flex-wrap: wrap; gap: 5px; }
.ingr span { font-size: 11.5px; padding: 3px 8px; border-radius: 8px; background: var(--bg-tint); color: #8a6a4f; }
.ingr span.on { background: var(--offer-bg); color: var(--offer); font-weight: 800; }

.progress { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 2px 0 6px; }
.who { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.who button {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 5px 11px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow);
}
.who button.on { background: linear-gradient(135deg, #ff6a45, #ff4b6e); border-color: transparent; color: #fff; }
.who.scroll { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 3px; margin-bottom: 6px; }
.who.scroll button { white-space: nowrap; flex: 0 0 auto; }

/* ---------- nákup ---------- */

.budget {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.budget .big { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; }
.budget .bar { height: 10px; border-radius: 999px; background: var(--bg-tint); overflow: hidden; margin: 9px 0 6px; }
.budget .bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2fd075, #14a85a); }
.budget.over .bar > i { background: linear-gradient(90deg, #ff8a5c, #e63946); }

.group { margin-bottom: 18px; }
.group > .head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--ink-soft); margin-bottom: 7px;
}
.shopbar {
  display: flex; align-items: center; gap: 8px; margin: 18px 0 10px;
  background: linear-gradient(135deg, #fff3e6, #ffe9d6); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 13px; font-weight: 800;
}
.shopbar.asie { background: linear-gradient(135deg, #ffeef5, #ffe0ec); }

.row {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 13px; padding: 10px 12px; margin-bottom: 7px;
}
.row.done { opacity: 0.5; }
.row.done .rname { text-decoration: line-through; }
/* mám doma: ztlumené, ale bez přeškrtnutí – není to koupené, jen se to nekupuje */
.row.home { opacity: 0.6; background: var(--bg-tint); }
.check.home { border-style: dashed; color: inherit; font-size: 13px; }
.row .rname { flex: 1; min-width: 0; font-weight: 700; }
.row .qty { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.row .price { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 13.5px; color: var(--money); white-space: nowrap; }
.row .why { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 400; margin-top: 1px; }
.check {
  width: 27px; height: 27px; flex: 0 0 27px; border-radius: 9px;
  border: 2px solid var(--line); background: transparent;
  display: grid; place-items: center; font-size: 15px; color: #fff; padding: 0;
}
.check.on { background: var(--ok); border-color: var(--ok); }
.havebtn {
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  border-radius: 999px; font-size: 11px; font-weight: 800; padding: 4px 9px; white-space: nowrap;
}
.havebtn.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.addrow { display: flex; gap: 7px; margin: 10px 0 18px; }
.addrow input, .searchrow input {
  flex: 1; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 9px 14px; font: inherit; box-shadow: var(--shadow);
}
.searchrow { display: flex; gap: 7px; margin-bottom: 10px; }

/* ---------- srovnání cen ---------- */

.cmp { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.cmp .heads { display: flex; gap: 10px; text-align: center; margin-bottom: 10px; }
.cmp .heads > div { flex: 1; background: var(--bg-tint); border-radius: 12px; padding: 9px 6px; }
.cmp .heads .win { background: var(--ok-soft); box-shadow: inset 0 0 0 2px #7fd79a; }
.cmp .heads b { display: block; font-size: 21px; font-weight: 900; }
.cmp table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp td.n { font-weight: 700; }
.cmp td.v { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp .up { color: #c62828; font-weight: 800; }
.cmp .down { color: #1a7c3c; font-weight: 800; }
.cmp .pname { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 400; }

/* ---------- oblíbené ---------- */

.filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.filters button {
  white-space: nowrap; border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow);
}
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 11px; }
.rcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow); text-align: left; padding: 0;
  display: flex; flex-direction: column;
}
.rcard .ph { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 38px; background: linear-gradient(140deg, #ffe7c4, #ffc7a6); border: 0; padding: 0; overflow: hidden; }
.rcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcard .t { padding: 8px 10px 10px; }
.rcard .t b { font-size: 14px; display: block; line-height: 1.25; }
.rcard .t small { font-size: 11px; display: block; margin-top: 2px; }
.rcard .vote { display: flex; gap: 5px; padding: 0 10px 10px; margin-top: auto; }
.rcard .vote button { flex: 1; border: 1px solid var(--line); background: transparent; border-radius: 10px; padding: 5px; font-size: 15px; }
.rcard .vote button.on.up { background: var(--ok-soft); border-color: #a5e2b8; }
.rcard .vote button.on.down { background: #ffe4e4; border-color: #f5b5b5; }

/* ---------- leták ---------- */

.flyer {
  display: flex; gap: 11px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 9px;
  color: inherit; text-decoration: none; box-shadow: var(--shadow);
}
.flyer img { width: 54px; height: 70px; object-fit: cover; border-radius: 8px; background: var(--line); display: block; }
.offerlist { display: flex; flex-wrap: wrap; gap: 6px; }
.offerlist .chip { background: var(--offer-bg); border-color: transparent; color: var(--offer); }

/* ---------- modal ---------- */

.modal {
  position: fixed; inset: 0; z-index: 60; background: rgba(60, 30, 15, 0.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal .sheet {
  background: var(--bg); width: 100%; max-width: 820px; max-height: 92vh;
  border-radius: 22px 22px 0 0; overflow-y: auto;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom));
  animation: up 0.22s ease;
}
@keyframes up { from { transform: translateY(30px); opacity: 0.4; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 9px auto 12px; }
.sheet .hero { border-radius: 16px; overflow: hidden; margin-bottom: 10px; aspect-ratio: 16/9; background: linear-gradient(140deg, #ffe7c4, #ffc7a6); display: grid; place-items: center; font-size: 60px; }
.sheet .hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet .lead { font-size: 15px; line-height: 1.45; margin: 6px 0 10px; }
.sheet ol, .sheet ul { padding-left: 20px; margin: 6px 0; }
.sheet ol li, .sheet ul li { margin-bottom: 6px; }
.tip { background: var(--warm-soft); border-left: 4px solid var(--warm); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin: 12px 0; }
.sheet .kidsbox { background: var(--kids-soft); border-left: 4px solid var(--kids); border-radius: 10px; padding: 9px 12px; margin: 12px 0; }
.sheet .moneybox { background: var(--money-soft); border-left: 4px solid var(--money); border-radius: 10px; padding: 9px 12px; margin: 12px 0; font-size: 14px; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sheet td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.sheet td:last-child { text-align: right; color: var(--ink-soft); white-space: nowrap; }
.actions { display: flex; gap: 8px; margin: 14px 0 4px; flex-wrap: wrap; }
.credit { font-size: 11px; color: var(--ink-soft); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- tabbar ---------- */

#tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(180, 110, 60, 0.1);
}
#tabbar button {
  flex: 1; border: 0; background: none; color: #a08c7d;
  font-size: 10.5px; font-weight: 800; padding: 7px 0 8px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
#tabbar button span { font-size: 21px; line-height: 1; }
#tabbar button.on { color: var(--brand); }

#toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
  background: var(--ink); color: #fff;
  padding: 10px 17px; border-radius: 999px; font-size: 14px; font-weight: 700;
  z-index: 70; box-shadow: var(--shadow-lg); max-width: 90vw; text-align: center;
}

.empty { text-align: center; color: var(--ink-soft); padding: 34px 16px; }
.empty .big { font-size: 46px; margin-bottom: 8px; }
.coldpick.on { background: var(--cold); border-color: var(--cold); color: #fff; }

/* Odkaz na akční leták nad kuchařkou */
.akcerow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff6e5, #ffe9c9);
  border: 1px solid #ffd79a;
}
.akcerow small { color: #8a6a2f; }
.akcerow .btn { text-decoration: none; }

/* ---------- přihlášení a průvodce ---------- */
.login { max-width: 460px; margin: 40px auto; text-align: center; }
.login .big { font-size: 64px; margin-bottom: 6px; }
.login h1 { font-size: 30px; margin-bottom: 8px; }
.login p { color: var(--ink-soft); }
.login .actions { margin: 18px 0; }
.login .actions .btn { min-width: 220px; justify-content: center; }
.devlogin { margin-top: 26px; padding: 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-align: left; }
.devlogin h2 { margin-top: 0; }

.wizard { max-width: 640px; margin: 0 auto; }
.wizard h1 { font-size: 26px; margin: 8px 0 4px; }
.wizard p { color: var(--ink-soft); }
.steps { display: flex; gap: 6px; margin: 8px 0 4px; }
.steps span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 800; color: var(--ink-soft);
}
.steps span.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps span.done { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.field { display: block; margin: 12px 0; font-weight: 700; }
.field input, .field textarea, .wizard textarea, .addrow input[type=number] {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
}
.field.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.field.check input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; accent-color: var(--brand); }
.field.check span { flex: 1; }
.memberrow { gap: 8px; }
.memberrow input, .memberrow select { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; background: var(--card); color: var(--ink); }
.memberrow input[data-f=name] { flex: 1; min-width: 0; }
.memberrow .kid { display: flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.filters.wrap { flex-wrap: wrap; overflow: visible; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.tags input { flex: 1; min-width: 140px; border: 0; background: transparent; font: inherit; padding: 6px; outline: none; color: var(--ink); }
.tags .chip button { border: 0; background: transparent; font-size: 11px; padding: 0 2px; color: var(--ink-soft); cursor: pointer; }
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.shopcard {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--card); border: 2px solid var(--line); cursor: pointer; box-shadow: var(--shadow);
}
.shopcard:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.shopcard input { display: none; }
.shopcard small { color: var(--ink-soft); }
.shopcard .tag { align-self: flex-start; }
.plates { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.plate { width: 140px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.plate img { width: 140px; height: 140px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-md); }
.plate select { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; background: var(--card); }
.upload { display: inline-flex; cursor: pointer; }
.tip.bad { background: #fff0ee; border-left-color: #e5533d; }
.code { display: block; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; word-break: break-all; }

#tabbar[hidden] { display: none; }
.row .price .pshop { display: block; font-size: 10px; font-weight: 700; color: var(--ink-soft); text-align: right; }

/* účtenky */
.row.receipt img { width: 44px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.row.receipt.failed .rname { color: #b3261e; }
.row.receipt.pending { opacity: 0.75; }
