/* HOMECHEF — OMNI 4색 토큰(KG-APP-WORLD §5): 남색=앞으로 · 골드=홈 · 회색=뒤로 · 크림슨=경고 */
:root { --navy: #0D1B3E; --gold: #C9923A; --gold-ink: #7A5414; --cream: #FBF1E3; --crimson: #C8102E; --ink: #1C2233; --muted: #545B6E; --line: #E4DACB; --bg: #FFFDF9; --card: #FFFFFF; --gray: #5F6673; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink: #F1F2F6; --muted: #B4BACB; --line: #2E3547; --bg: #10141E; --card: #181E2B; --cream: #1E2433; --gold-ink: #E8B866; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", "Malgun Gothic", "Noto Sans Lao", sans-serif; padding-bottom: 84px; word-break: keep-all; overflow-wrap: anywhere; }
.flag { width: 24px; height: 16px; border-radius: 3px; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
main { max-width: 640px; margin: 0 auto; padding: 8px 16px 24px; }
h1 { font-size: 27px; line-height: 1.25; margin: 14px 0 8px; }
h2 { font-size: 21px; margin: 18px 0 8px; }
h3 { font-size: 18px; margin: 14px 0 6px; }
p { margin: 6px 0 12px; }
.muted { color: var(--muted); font-size: 16px; }
a { color: var(--gold-ink); }
img { max-width: 100%; }
.hero { position: relative; border-radius: 18px; overflow: hidden; margin-top: 8px; background: var(--navy); }
.hero img { display: block; width: 100%; height: 230px; object-fit: cover; opacity: .82; }
.hero .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; color: #fff; background: linear-gradient(transparent, rgba(13, 27, 62, .92)); }
.hero .cap h1 { color: #fff; margin: 0 0 4px; font-size: 25px; }
.hero .cap p { margin: 0; font-size: 16px; color: #F4ECDD; }
.langs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.langs button { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-size: 16px; }
.langs button.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--navy); color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer; margin: 10px 0; }
.btn.gold { background: var(--gold); color: #1B1406; }
.btn.gray { background: var(--gray); }
.btn.warn { background: var(--crimson); }
.btn.line { background: transparent; color: var(--ink); border: 2px solid var(--line); font-weight: 600; }
.btn:disabled { opacity: .55; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; counter-reset: s; }
.steps div { background: var(--cream); border-radius: 12px; padding: 10px 6px; text-align: center; font-size: 14px; line-height: 1.3; }
.steps div::before { counter-increment: s; content: counter(s); display: block; width: 28px; height: 28px; margin: 0 auto 4px; border-radius: 50%; background: var(--navy); color: #fff; line-height: 28px; font-weight: 700; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.chips button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-size: 15px; }
.chips button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cards { display: grid; gap: 12px; }
.card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; color: inherit; text-decoration: none; }
.card img, .card .ph { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.card b { font-size: 18px; display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: 14px; background: var(--cream); color: var(--ink); border-radius: 999px; padding: 2px 10px; }
.tag.g { background: var(--gold); color: #1B1406; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 12px 0; }
.menu-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.box .menu-row:has(.qty) { padding-right: 56px; }   /* 떠 있는 하트·WhatsApp 단추와 «+» 단추가 겹치지 않게 */
.menu-row:last-child { border-bottom: 0; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-size: 22px; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea { width: 100%; min-height: 48px; font: inherit; color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-weight: 400; margin: 8px 0; }
.check input { width: 26px; min-height: 26px; height: 26px; margin: 2px 0 0; }
.big-code { font-size: 38px; letter-spacing: .12em; font-weight: 800; text-align: center; padding: 14px; background: var(--cream); border-radius: 14px; margin: 12px 0; }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; background: var(--cream); }
.status.accepted, .status.done { background: #DCEFE2; color: #14532D; }
.status.declined { background: #F8D7DC; color: #7F0A1B; }
.stars { color: var(--gold-ink); letter-spacing: 2px; }
.starpick { display: flex; gap: 6px; }
.starpick button { width: 48px; height: 48px; font-size: 26px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--gold-ink); }
.starpick button.on { background: var(--gold); color: #1B1406; }
.filebtn { display: flex; align-items: center; gap: 10px; }
.filebtn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filebtn label { margin: 0; min-height: 48px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 12px; background: var(--navy); color: #fff; cursor: pointer; }
.note { font-size: 15px; color: var(--muted); background: var(--cream); border-radius: 12px; padding: 10px 12px; }
.navbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.navbar button { min-height: 48px; border: 0; border-radius: 12px; font-size: 16px; font-weight: 700; }
.navbar .b-back { background: var(--gray); color: #fff; }
.navbar .b-home { background: var(--gold); color: #1B1406; }
.navbar .pos { text-align: center; color: var(--muted); font-size: 15px; min-width: 56px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 96px; z-index: 50; background: var(--navy); color: #fff; padding: 14px 16px; border-radius: 14px; font-size: 16px; text-align: center; }
.toast.warn { background: var(--crimson); }
.foot { text-align: center; margin: 22px 0 6px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--muted); font-size: 15px; }
.foot .ver { display: block; color: var(--muted); font-size: 14px; }
.foot button { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 15px; min-height: 44px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0; }
.tabs button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-size: 15px; }
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--crimson); color: #fff; font-size: 13px; text-align: center; }
table.log { width: 100%; border-collapse: collapse; font-size: 14px; }
table.log td { border-bottom: 1px solid var(--line); padding: 6px 4px; vertical-align: top; word-break: break-word; }
.kg-host { margin: 12px 0; }
