:root {
  --bg: #fbf6f1;
  --card: #ffffff;
  --text: #2a1a10;
  --muted: #7a6656;
  --line: #eadfd4;
  --accent: #c2410c;
  --accent-bg: #fdeee4;
  --on-accent: #ffffff;
  --ok: #1f9d55;
  --ok-bg: #e3f6eb;
  --warn: #b45309;
  --warn-bg: #fff2d9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110d;
    --card: #231a14;
    --text: #f6ece4;
    --muted: #b9a594;
    --line: #3a2c22;
    --accent: #fb8a4c;
    --accent-bg: #3a2216;
    --on-accent: #2a1206;
    --ok: #4cd38a;
    --ok-bg: #173527;
    --warn: #ffb547;
    --warn-bg: #3a2c12;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
}
header h1 { margin: 0; font-size: 1.6rem; }
a { color: var(--accent); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
}
.hidden { display: none !important; }
.big { font-size: 1.35rem; font-weight: 600; margin: 0 0 6px; }
.muted { color: var(--muted); margin: 4px 0; }
.tiny { font-size: .8rem; }
.sub { color: var(--muted); }
h2 { font-size: 1.1rem; margin: 0 0 8px; }

.where {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 10px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.where-label { font-size: 1.05rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }

.btn {
  flex: 1;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  padding: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn.small { flex: 0 0 auto; padding: 8px 14px; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); flex: 0 0 auto; }

/* najbližšie menu */
.r-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.r-name { font-size: 1.4rem; font-weight: 700; margin: 0; }
.dist { white-space: nowrap; font-weight: 700; color: var(--accent); }
.r-meta { color: var(--muted); margin: 2px 0 0; font-size: .95rem; }
.tag {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 700;
  font-size: .95rem;
}
.dishes { list-style: none; padding: 0; margin: 12px 0 0; }
.dishes li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.dishes .k { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; display: block; }
.dishes .p { font-weight: 700; white-space: nowrap; }
.actions { display: flex; gap: 10px; margin-top: 14px; }
.actions .btn { padding: 11px; }

/* ďalšie */
.more { border-top: 1px solid var(--line); }
.more:first-of-type { border-top: 0; }
.more summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.more summary::-webkit-details-marker { display: none; }
.more summary b { display: block; }
.more summary .sub { font-size: .9rem; }
.more[open] summary { padding-bottom: 0; }
.more .dishes { margin-top: 6px; }
.more .actions { margin: 10px 0 14px; }

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.plain li:first-child { border-top: 0; }
.plain .d { color: var(--muted); white-space: nowrap; }

.pill { display: block; margin-top: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 700; text-align: center; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }

.picker-head { display: flex; justify-content: space-between; align-items: center; }
#placeSearch {
  width: 100%;
  font: inherit;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  margin: 8px 0;
}
.pick-list { list-style: none; margin: 0; padding: 0; max-height: 55vh; overflow-y: auto; }
.pick-list button {
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 12px 4px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.pick-list .d { color: var(--muted); text-align: right; font-size: .9rem; }
.pick-list li.muted { padding: 12px 4px; }

.install { border: 2px solid var(--accent); }
.install-btns { display: flex; gap: 10px; margin-top: 12px; }
.ios-steps { margin: 10px 0 0; padding-left: 22px; }
.ios-steps li { margin: 6px 0; }

footer #installFooter { width: 100%; margin-bottom: 10px; }

/* úvod */
.intro p { margin: 0 0 8px; }
.intro .muted { font-size: .95rem; margin-bottom: 0; }

/* obed / večer */
.meal { margin: 14px 0 -4px; font-weight: 700; font-size: .95rem; }
.eve { font-size: .8rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
