* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root { --accent: #1c7ed6; --bg: #f4f6f8; --card: #fff; --ink: #222; --mute: #6b747e; --line: #dde3ea; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; padding-bottom: 90px; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; border: 0; }
button:disabled { opacity: .5; cursor: wait; }
button.ghost { background: #e9edf2; color: var(--ink); padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.sub { color: var(--mute); font-size: 13px; margin-left: 6px; }
.hint { color: var(--mute); font-size: 13px; margin: 6px 0 12px; }
.err { color: #c92a2a; font-size: 14px; margin: 8px 0 0; }

.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.card { background: #fff; padding: 28px; border-radius: 14px; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.card h1 { margin: 0; font-size: 22px; }
.card .sub { margin: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #555; }
input, textarea { padding: 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
#v-login button[type="submit"], .submit { background: var(--accent); color: #fff; padding: 14px; border-radius: 12px; font-size: 16px; font-weight: 700; width: 100%; }

#topbar { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
.hdr-r { display: flex; gap: 6px; }

.pane { padding: 14px; max-width: 760px; margin: 0 auto; }
.pane-top { display: flex; justify-content: space-between; align-items: center; }
.pane h2 { margin: 0; font-size: 20px; }

.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 8px; }
.tcell { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 22px; font-weight: 700; color: var(--mute); }
.tcell small { font-size: 12px; font-weight: 500; }
.tcell.open { border-color: #37b24d; color: var(--ink); background: #ebfbee; }
.tcell.open small { color: #2b8a3e; }
.tcell:active { transform: scale(.97); }

.menu-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0; max-width: 760px; margin: 0 auto; }
.tbl { font-size: 18px; font-weight: 700; }
#ctabs { position: sticky; top: 56px; z-index: 4; background: var(--bg); display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; max-width: 760px; margin: 0 auto; scrollbar-width: none; }
#ctabs::-webkit-scrollbar { display: none; }
#ctabs button { background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 99px; white-space: nowrap; font-size: 14px; }
#mlist { padding: 0 14px; max-width: 760px; margin: 0 auto; }
.sec h2 { font-size: 17px; margin: 18px 0 8px; scroll-margin-top: 120px; }
.mrow { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.minfo { min-width: 0; }
.mname { font-weight: 600; }
.mprice { color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 2px; }
.ctl { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ctl .add { background: var(--accent); color: #fff; padding: 9px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.step { width: 36px; height: 36px; border-radius: 50%; background: #e9edf2; font-size: 20px; line-height: 1; }
.step.plus { background: var(--accent); color: #fff; }
.ctl .qty { min-width: 22px; text-align: center; font-weight: 700; }
.empty { color: var(--mute); text-align: center; padding: 30px 0; }

#cartbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 40%); z-index: 6; }
#cartbtn { width: 100%; max-width: 760px; margin: 0 auto; display: block; background: var(--accent); color: #fff; padding: 14px 18px; border-radius: 14px; font-weight: 700; font-size: 16px; box-shadow: 0 4px 14px rgba(28,126,214,.35); }

#sheet-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
#sheet { background: var(--bg); width: 100%; max-width: 760px; max-height: 90vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
#sheet h3 { margin: 0; display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
#sheet .x { background: #e9edf2; border-radius: 50%; width: 32px; height: 32px; font-size: 16px; }
.line { background: #fff; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.line .l1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.line .lt { font-weight: 600; }
.line input { width: 100%; font-size: 14px; padding: 9px 10px; }
#sheet label { font-size: 13px; color: var(--mute); }
#sheet textarea { width: 100%; font-size: 14px; }
.total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; padding: 4px 2px; }
.done { text-align: center; padding: 16px 4px; }
.done .big { font-size: 56px; }
.ghost2 { background: #e9edf2; color: var(--ink); padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 600; width: 100%; }

#toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: #333; color: #fff; padding: 10px 16px; border-radius: 99px; font-size: 14px; z-index: 30; max-width: 90%; text-align: center; }
