/* Scan & Cook by AMart – podle AMart Brand Identity Guidelines (03.2026) */
:root {
  --red: #FF1B15;
  --orange: #FF9900;
  --beige: #FFFBF1;
  --brown: #581716;
  --line: #F2E3CF;
  --soft: #F6EAD8;
  --tint: #FFF4E0;
  --alert-bg: #FFE9E4;
  --alert: #7E002C;
  --ok: #006841;
  --white: #FFFFFF;
  --radius: 6px;
  --maxw: 860px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--brown);
  font-family: 'Parkinsans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
button, input { font: inherit; color: inherit; }
a { color: var(--brown); }
a:hover { color: var(--red); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.app { min-height: 100%; display: flex; flex-direction: column; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--beige); border-bottom: 1px solid var(--line); }
.topbar__inner { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { height: 40px; width: auto; display: block; }
.brand__name { font-size: 17px; font-weight: 600; padding-left: 12px; border-left: 2px solid var(--line); white-space: nowrap; }
.btn-soft { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 14px; border: 0; border-radius: var(--radius); background: var(--soft); font-weight: 600; font-size: 15px; cursor: pointer; }
.btn-soft svg { width: 18px; height: 18px; stroke-width: 2.4; }
.btn-soft:hover { background: #F0DEC5; }

/* ---------- Chat ---------- */
.chat { flex: 1 1 auto; }
.chat__inner { max-width: var(--maxw); margin: 0 auto; padding: 24px 14px 24px; display: flex; flex-direction: column; gap: 20px; }

.msg { display: flex; gap: 10px; align-items: flex-start; }
.avatar { width: 32px; height: auto; flex: 0 0 auto; }
.msg--user { justify-content: flex-end; }
.msg--user .ubox { max-width: min(82%, 460px); display: flex; flex-direction: column; align-items: flex-end; }
.ububble { background: var(--orange); border-radius: var(--radius); padding: 11px 14px; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.ububble img { display: block; max-width: 220px; max-height: 220px; border-radius: 4px; margin-bottom: 8px; }
.tail { display: block; width: 20px; height: 9px; margin-right: 14px; }
.tail--left { margin-left: 14px; margin-right: 0; }

.bot-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.status svg { width: 14px; height: 14px; stroke: var(--ok); stroke-width: 3; }
.card--refusal { font-size: 15px; }
.card--error { background: var(--alert-bg); border-color: #F3B9AC; color: var(--alert); font-weight: 500; }

/* Markdown v odpovědi */
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md h2 { font-size: 22px; line-height: 1.15; font-weight: 700; margin: 0 -16px 12px; padding: 14px 16px; background: var(--orange); }
.md > h2:first-child { margin-top: -14px; border-radius: var(--radius) var(--radius) 0 0; }
.md h3 { font-size: 16px; font-weight: 700; margin: 18px 0 6px; }
.md p { margin: 8px 0; }
.md ul, .md ol { margin: 6px 0; padding-left: 22px; }
.md li { margin: 3px 0; }
.md strong { font-weight: 700; }
.md em { font-style: italic; }
.md .ai-note { display: inline-block; font-style: normal; font-size: 13px; font-weight: 600; color: var(--alert); }
.md .cite { font-size: 11px; font-weight: 600; text-decoration: none; background: var(--soft); border-radius: 3px; padding: 1px 5px; margin-left: 2px; vertical-align: 1px; }
.md h3.shop-h { display: flex; align-items: center; gap: 8px; }
.md h3.shop-h::before { content: ""; width: 18px; height: 18px; flex: 0 0 auto; background: url("mark.png") center / contain no-repeat; }
.md ul.shop-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.md ul.shop-list li { margin: 0; background: var(--tint); border-radius: var(--radius); padding: 10px 12px; font-size: 15px; }
.md ul.shop-list a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--orange); }
.md ul.shop-list a:hover { color: var(--red); border-bottom-color: var(--red); }
.md ul.shop-list a::after { content: " ↗"; font-weight: 500; }
.sources { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.sources summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; gap: 6px; list-style: none; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary::before { content: "▸"; transition: transform .15s; }
.sources[open] summary::before { transform: rotate(90deg); }
.sources[open] { gap: 6px; }
.sources a { text-decoration: none; overflow-wrap: anywhere; }
.sources a b { font-weight: 600; }

/* Typing */
.typing { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; } }

/* Welcome */
.welcome .avatar { width: 40px; }
.welcome__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bubble-hero { align-self: flex-start; position: relative; background: var(--orange); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 8px; }
.bubble-hero::after { content: ""; position: absolute; left: 18px; bottom: -10px; border: 11px solid transparent; border-bottom: 0; border-top-color: var(--orange); }
.bubble-hero h1 { margin: 0; font-size: clamp(26px, 6vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.3px; }
.welcome__text { margin: 0; font-size: 17px; max-width: 600px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; text-align: left; background: var(--white); border: 2px solid var(--orange); border-radius: var(--radius); padding: 9px 14px; font-size: 15px; font-weight: 500; cursor: pointer; }
.chip:hover { background: var(--tint); }
.chip:disabled { opacity: .5; cursor: default; }

/* ---------- Composer ---------- */
.composer { position: sticky; bottom: 0; z-index: 5; background: var(--beige); padding-bottom: env(safe-area-inset-bottom); }
.composer__inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 12px 8px; }
.composer__form { display: flex; gap: 6px; align-items: center; background: var(--white); border: 2px solid var(--brown); border-radius: 8px; padding: 6px; }
.composer__form input[type=text] { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; background: transparent; padding: 0 8px; font-size: 16px; }
.composer__form input[type=text]:focus { outline: none; }
.composer__form:focus-within { box-shadow: 0 0 0 3px rgba(255,153,0,.45); }
.composer__form input::placeholder { color: #8a5a55; }
.composer__note { margin: 6px 2px 0; font-size: 12px; line-height: 1.4; text-align: center; }
#quota { font-weight: 600; }
.icon-btn { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn--red { background: var(--red); color: var(--white); }
.icon-btn--orange { background: var(--orange); color: var(--brown); }
.icon-btn--dark { background: var(--brown); color: var(--beige); }
.icon-btn--ghost { background: rgba(255,251,241,.15); color: var(--beige); }
.icon-btn:disabled { opacity: .45; cursor: default; }

.preview { position: relative; display: inline-block; margin: 0 0 8px; }
.preview[hidden] { display: none; }
.preview img { display: block; height: 72px; width: auto; border-radius: var(--radius); border: 2px solid var(--orange); }
.preview__x { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--brown); color: var(--beige); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.preview__x svg { width: 14px; height: 14px; stroke-width: 3; }

.stripes { display: flex; flex-direction: column; gap: 4px; padding-bottom: 6px; }
.stripes i { display: block; height: 8px; background: var(--red); }
.stripes i + i { background: var(--orange); }

/* ---------- Scanner ---------- */
.scanner { width: 100%; max-width: 520px; padding: 0; border: 0; border-radius: 8px; background: #2B0B0A; color: var(--beige); }
.scanner::backdrop { background: rgba(43, 11, 10, .75); }
.scanner__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; font-weight: 600; }
.scanner__view { position: relative; aspect-ratio: 4 / 3; background: #000; }
.scanner__view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner__frame { position: absolute; inset: 22% 12%; border: 4px solid var(--orange); border-radius: var(--radius); }
.scanner__frame i { position: absolute; left: 8%; right: 8%; top: 50%; height: 3px; background: var(--red); }
.scanner__hint { margin: 0; padding: 12px 16px 16px; font-size: 14px; text-align: center; }

/* ---------- Větší obrazovky ---------- */
@media (min-width: 720px) {
  .chat__inner { padding: 40px 24px 28px; gap: 26px; }
  .avatar { width: 40px; }
  .welcome .avatar { width: 52px; }
  .card { padding: 18px 20px; }
  .md h2 { font-size: 28px; margin: 0 -20px 14px; padding: 18px 20px; }
  .md > h2:first-child { margin-top: -18px; }
  .composer__inner { padding: 12px 24px 10px; }
  .composer__note { font-size: 13px; }
  .brand__logo { height: 44px; }
  .brand__name { font-size: 20px; padding-left: 16px; }
}
@media (max-width: 420px) {
  .hide-sm { display: none; }
  .brand__name { font-size: 15px; }
}

/* Hodnocení odpovědi */
.fb { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.fb button { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 13px; font-weight: 600; cursor: pointer; }
.fb button:hover { border-color: var(--orange); background: var(--tint); }
.composer__note a { color: inherit; }

/* Anketa + recept e-mailem */
.survey, .mailbox { background: var(--tint); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.survey p { margin: 0 0 8px; }
.survey .chip { min-height: 38px; font-size: 14px; padding: 6px 12px; }
.chip--skip { border-color: var(--line) !important; }
.mailbox summary { cursor: pointer; font-weight: 600; }
.mailbox form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mailbox input[type=email] { height: 44px; border: 2px solid var(--brown); border-radius: var(--radius); padding: 0 12px; font-size: 16px; background: var(--white); }
.mailbox .chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.mailbox button { align-self: flex-start; min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--radius); background: var(--brown); color: var(--beige); font-weight: 600; cursor: pointer; }
.mailmsg { margin: 0; font-size: 13px; }

/* Uvítání: výzva k akci */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border: 0; border-radius: var(--radius); font-size: 19px; font-weight: 700; cursor: pointer; }
.cta svg { width: 24px; height: 24px; }
.cta--photo { background: var(--red); color: var(--white); }
.cta--scan { background: var(--orange); color: var(--brown); }
.cta:hover { filter: brightness(0.95); }
.chips-label { margin: 4px 0 -6px; font-size: 14px; font-weight: 600; }

/* ===== Hey AMart – prvky podle brand manuálu (str. 57–94) ===== */
/* Stripe: 3 stejně vysoké pásy v pořadí červená – béžová – oranžová */
.stripe3 { height: 18px; background: linear-gradient(var(--red) 0 33.34%, var(--beige) 33.34% 66.67%, var(--orange) 66.67% 100%); }
.stripe3--thin { height: 12px; }
/* Pattern: šachovnice ze základní jednotky (obdélník s ostrými rohy + trojúhelník 108°) */
.pattern { height: 27px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56.00' height='22.00' viewBox='0 0 56.00 22.00'%3E%3Cpath d='M0.000 0.000L28.000 0.000L28.000 11.000L23.156 11.000A7.000 7.000 0 0 0 19.042 12.337L14.588 15.573A1.000 1.000 0 0 1 13.412 15.573L8.958 12.337A7.000 7.000 0 0 0 4.844 11.000L0.000 11.000L0.000 0.000ZM28.000 11.000L56.000 11.000L56.000 22.000L51.156 22.000A7.000 7.000 0 0 0 47.042 23.337L42.588 26.573A1.000 1.000 0 0 1 41.412 26.573L36.958 23.337A7.000 7.000 0 0 0 32.844 22.000L28.000 22.000L28.000 11.000ZM28.000 -11.000L56.000 -11.000L56.000 0.000L51.156 0.000A7.000 7.000 0 0 0 47.042 1.337L42.588 4.573A1.000 1.000 0 0 1 41.412 4.573L36.958 1.337A7.000 7.000 0 0 0 32.844 0.000L28.000 0.000L28.000 -11.000Z' fill='%23FF1B15'/%3E%3C/svg%3E") repeat-x 0 0 / 56px 22px; }
/* Basic bubble: rohy R = 0,2·h, ocas 108° (h = 12 px) se zaoblením 42/30 a 6/30 */
.bubble-hero { background: var(--orange); border-radius: 3px; margin-bottom: 12px; }
.bubble-hero::after { content: ""; position: absolute; left: 20px; top: 100%; margin-top: -1px; width: 44.95px; height: 13px; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44.95' height='13.00' viewBox='0 0 44.95 13.00'%3E%3Cpath d='M44.950 0.000L44.950 1.000L41.912 1.000A8.986 8.986 0 0 0 36.630 2.716L23.886 11.975A2.400 2.400 0 0 1 21.065 11.975L8.321 2.716A8.986 8.986 0 0 0 3.039 1.000L0.000 1.000L0.000 0.000L44.950 0.000Z' fill='%23FF9900'/%3E%3C/svg%3E") no-repeat; }
.ububble { border-radius: 3px; }
.tail { width: 19.31px; height: 11px; margin-top: -1px; margin-right: 12px; }
/* Hey – dynamic bubble (rovnoběžník + ocas 54°) */
.brand { gap: 8px; }
.hey { display: block; width: 66px; height: 40px; flex: 0 0 auto; }
.brand__tag { font-size: 16px; font-weight: 600; color: var(--brown); padding-left: 10px; border-left: 2px solid var(--line); white-space: nowrap; }
/* Highlight arrow: krátký obdélník + trojúhelník 108° */
.chips-label { display: inline-block; padding-bottom: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72.00' height='13.00' viewBox='0 0 72.00 13.00'%3E%3Cpath d='M1.400 0.000L70.600 0.000A1.400 1.400 0 0 1 72.000 1.400L72.000 3.600A1.400 1.400 0 0 1 70.600 5.000L34.819 5.000A9.800 9.800 0 0 0 29.059 6.872L22.823 11.402A1.400 1.400 0 0 1 21.177 11.402L14.941 6.872A9.800 9.800 0 0 0 9.181 5.000L1.400 5.000A1.400 1.400 0 0 1 0.000 3.600L0.000 1.400A1.400 1.400 0 0 1 1.400 0.000Z' fill='%23FF9900'/%3E%3C/svg%3E") no-repeat left bottom / 72px 13px; }
/* Ilustrace: plochý 2D styl, jedna plná barva, bez obrysů a přechodů */
.welcome { position: relative; }
.deco { position: absolute; top: -4px; right: 0; display: flex; gap: 8px; pointer-events: none; }
.deco__i { width: 34px; height: 34px; animation: bob 3.2s ease-in-out infinite; }
.deco__i:nth-child(2) { animation-delay: .4s; } .deco__i:nth-child(3) { animation-delay: .8s; } .deco__i:nth-child(4) { animation-delay: 1.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.welcome .msg { padding-top: 36px; }
/* rozšířená paleta pro návrhy */
#suggestions .chip:nth-child(4n+1) { border-color: #FF9900; }
#suggestions .chip:nth-child(4n+2) { border-color: #29B1E8; background: #F0FAFE; }
#suggestions .chip:nth-child(4n+3) { border-color: #36CE8E; background: #EFFBF5; }
#suggestions .chip:nth-child(4n+4) { border-color: #817FA7; background: #F5F4FA; }
.typing .bowl { width: 22px; height: 22px; animation: bob 1s ease-in-out infinite; }
.pop { position: relative; display: inline-block; background: var(--orange); color: var(--brown); font-weight: 700; padding: 6px 12px; border-radius: 3px; margin-bottom: 12px; animation: pop .35s ease-out; }
.pop::after { content: ""; position: absolute; left: 10px; top: 100%; margin-top: -1px; width: 44.95px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44.95' height='13.00' viewBox='0 0 44.95 13.00'%3E%3Cpath d='M44.950 0.000L44.950 1.000L41.912 1.000A8.986 8.986 0 0 0 36.630 2.716L23.886 11.975A2.400 2.400 0 0 1 21.065 11.975L8.321 2.716A8.986 8.986 0 0 0 3.039 1.000L0.000 1.000L0.000 0.000L44.950 0.000Z' fill='%23FF9900'/%3E%3C/svg%3E") no-repeat; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .deco__i, .typing .bowl, .pop { animation: none; } }
@media (max-width: 420px) { .brand__logo { height: 32px; } .hey { width: 56px; height: 34px; } }
/* Grafické prvky a ilustrace: plné tvary bez obrysu (globální styl ikon jim přidával tah) */
svg.hey, svg.deco__i, svg.bowl, svg.tail { stroke: none; }

/* iPhone: bez šedého záblesku po klepnutí, výřez displeje na šířku */
button, a, .chip, summary { -webkit-tap-highlight-color: transparent; }
.topbar__inner, .composer__inner { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
/* Malé iPhony (SE, mini): tlačítka Vyfotit / Naskenovat musí být vidět bez posouvání */
@media (max-width: 400px), (max-height: 700px) {
  .bubble-hero h1 { font-size: 21px; line-height: 1.15; }
  .bubble-hero { padding: 10px 14px; }
  .welcome__text { font-size: 15px; }
  .welcome__body { gap: 12px; }
}
@media (max-height: 700px) {
  .deco { display: none; }
  .welcome .msg { padding-top: 8px; }
}
@media (max-width: 400px), (max-height: 700px) {
  .cta-row { flex-wrap: nowrap; gap: 8px; }
  .cta { flex: 1 1 0; min-width: 0; justify-content: center; gap: 6px; min-height: 48px; padding: 0 10px; font-size: 15px; }
  .cta svg { width: 20px; height: 20px; }
}

.scanner__alt { margin: 0; padding: 0 16px 16px; text-align: center; }

/* ===== Sdílení receptu ===== */
.share { margin-top: 14px; padding: 14px; background: var(--tint); border-radius: var(--radius); }
.share__label { margin: 0 0 10px; font-weight: 600; font-size: 15px; }
.share__row { display: flex; flex-wrap: wrap; gap: 8px; }
.share__main, .share__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--radius); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.share__main { background: var(--red); color: var(--white); border: 0; flex: 1 1 100%; justify-content: center; min-height: 50px; font-size: 17px; }
.share__btn { background: var(--white); color: var(--brown); border: 2px solid var(--brown); }
.share__btn:hover, .share__main:hover { filter: brightness(0.96); color: inherit; }
.share__main:hover { color: var(--white); }
.share__btn b { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brown); color: var(--white); font-size: 13px; line-height: 1; }
.share__fb b { background: #1877F2; } .share__wa b { background: #25D366; } .share__ms b { background: #0084FF; }
.share svg { width: 20px; height: 20px; }
.share__ig { flex: 1 1 auto; justify-content: center; }

/* Stránka sdíleného receptu /r/<id> */
.recipe-page .brand__hey { height: 34px; width: auto; display: block; }
.rp { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.rp__eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.rp .bubble-hero { margin-bottom: 14px; }
.rp .bubble-hero h1 { font-size: clamp(26px, 6vw, 40px); }
.rp__sub { margin: 0; font-weight: 600; font-size: 17px; }
.rp__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.rp__cta .cta { text-decoration: none; }
.rp__note { margin: 0; font-size: 15px; }
.rp__legal { margin: 8px 0 0; font-size: 12px; color: #8a5a55; }
@media (max-width: 400px) { .rp__cta .cta { flex: 1 1 100%; justify-content: center; } }
.recipe-page a.btn-soft { text-decoration: none; color: var(--brown); }
.rp__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.rp__chips span { background: var(--brown); color: var(--white); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; }
.rp__cta-h { margin: 10px 0 0; font-size: 20px; line-height: 1.25; }

/* ===== Můj recept (recepty zákazníků) ===== */
.ugc-card { margin-top: 14px; background: var(--white); border: 2px solid var(--brown); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ugc-card__bub { position: relative; align-self: flex-start; margin: 0 0 6px; background: var(--orange); border-radius: 4px; padding: 8px 12px; font-size: 17px; font-weight: 700; }
.ugc-card__bub::after { content: ""; position: absolute; left: 18px; bottom: -10px; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 10px solid var(--orange); }
.ugc-card__t { margin: 0; font-size: 15px; line-height: 1.45; }
.ugc-card__btn, .ugc-next { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border: 0; border-radius: var(--radius); background: var(--red); color: var(--white); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none; }
.ugc-next:disabled { opacity: .7; cursor: progress; }
.ugc-link:hover { color: var(--white); }
.ugc-card__note { font-size: 12px; color: #8a5a55; text-align: center; }
body.ugc-lock { overflow: hidden; }
.ugc-ov { position: fixed; inset: 0; z-index: 50; background: rgba(88, 23, 22, .45); display: flex; justify-content: center; align-items: stretch; }
.ugc-ov__in { background: var(--beige); width: 100%; max-width: 520px; display: flex; flex-direction: column; overflow: hidden; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.ugc-h { padding: 10px 16px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ugc-h__row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.ugc-back { min-height: 44px; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--brown); cursor: pointer; padding: 0; }
.ugc-prog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ugc-prog i { height: 6px; border-radius: 3px; background: var(--line); } .ugc-prog i.on { background: var(--red); }
.ugc-m { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ugc-m h2 { margin: 0 0 4px; font-size: 24px; line-height: 1.15; }
.ugc-m h3 { margin: 8px 0 0; font-size: 15px; }
.ugc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ugc-chip { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 2px solid var(--brown); background: var(--white); color: var(--brown); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.ugc-chip.on { background: var(--brown); color: var(--white); }
.ugc-chip--plus { border-color: var(--line); } .ugc-chip--plus.on { background: var(--tint); color: var(--brown); border-color: var(--red); }
.ugc-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ugc-seg button { min-height: 48px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--white); font: inherit; font-size: 15px; font-weight: 600; color: var(--brown); cursor: pointer; }
.ugc-seg button.on { background: var(--orange); border-color: var(--orange); font-weight: 700; }
.ugc-l { margin-top: 8px; font-size: 15px; font-weight: 700; } .ugc-l span { font-weight: 500; color: #8a5a55; }
.ugc-m input, .ugc-m select, .ugc-m textarea { box-sizing: border-box; width: 100%; border: 2px solid var(--brown); border-radius: var(--radius); padding: 10px 12px; font: inherit; font-size: 16px; color: var(--brown); background: var(--white); }
.ugc-m input, .ugc-m select { height: 48px; padding-block: 0; }
.ugc-m textarea { resize: vertical; line-height: 1.4; }
.ugc-sugg { font-size: 13px; color: #8a5a55; } .ugc-sugg button { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--brown); text-decoration: underline; cursor: pointer; }
.ugc-hint { margin: 0; font-size: 12px; color: #8a5a55; }
.ugc-prev { margin-top: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ugc-prev span { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--red); } .ugc-prev b { font-size: 16px; } .ugc-prev small { font-size: 13px; }
.ugc-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; margin-top: 6px; }
.ugc-chk input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--red); }
.ugc-err { margin: 0; color: #B3261E; font-weight: 600; font-size: 14px; }
.ugc-f { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; text-align: center; }
.ugc-load { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.ugc-done { justify-content: center; } .ugc-done p { margin: 0; font-size: 16px; line-height: 1.45; }
.ugc-done__h { font-size: 28px; }
.ugc-status { display: flex; align-items: center; gap: 10px; background: var(--tint); border-radius: var(--radius); padding: 10px 14px; font-size: 14px !important; font-weight: 600; }
.ugc-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; }
.ugc-tops { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ugc-top { display: flex; flex-direction: column; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; text-decoration: none; color: var(--brown); }
.ugc-top b { font-size: 15px; } .ugc-top small { font-size: 12px; } .ugc-top span { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--red); }
.ugc-top--feat { border: 2px solid var(--orange); }
/* stránka receptu zákazníka */
.ugc-author { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ugc-author__ava { width: 40px; height: 40px; border-radius: 50%; background: var(--brown); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.ugc-badge { margin-left: auto; background: var(--tint); border-radius: 14px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.ugc-stats { margin: 0; font-size: 14px; font-weight: 600; }
.ugc-stats:empty { display: none; }
.ugc-tip { background: var(--tint); border-radius: var(--radius); padding: 12px 14px; } .ugc-tip p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.ugc-vote { background: var(--white); border: 2px solid var(--brown); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ugc-vote h2 { margin: 0; font-size: 18px; }
.ugc-vote .cta { justify-content: center; }
.ugc-stars { display: flex; gap: 2px; }
.ugc-stars button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 30px; color: #D9C3AE; cursor: pointer; padding: 0; }
.ugc-stars button.on { color: var(--orange); }
.ugc-vote__msg { margin: 0; font-size: 14px; font-weight: 600; }
.ugc-vote__msg:empty { display: none; }
