:root {
  color-scheme: light;
  --bg: #f3f6f3;
  --surface: #ffffff;
  --surface-subtle: #f6f8f5;
  --ink: #173b36;
  --muted: #667974;
  --muted-2: #98a8a2;
  --line: #dbe5df;
  --line-strong: #bfd1c8;
  --primary: #1e625b;
  --primary-dark: #104843;
  --primary-soft: #e8f1ed;
  --success: #2f7c5b;
  --success-soft: #eaf6ef;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --kakao: #fee500;
  --nav-height: 68px;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(18, 63, 57, .04), 0 6px 18px rgba(18, 63, 57, .07);
  --shadow-lg: 0 20px 50px rgba(18, 63, 57, .16);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(30, 98, 91, .2); outline-offset: 2px; }
[hidden] { display: none !important; }

.loading-bar { position: fixed; z-index: 200; top: 0; left: 0; width: 0; height: 3px; background: var(--primary); opacity: 0; transition: width .3s, opacity .2s; }
.loading-bar.active { width: 72%; opacity: 1; }
.loading-bar.done { width: 100%; opacity: 0; }

.app-shell { min-height: 100vh; }
.topbar { position: sticky; z-index: 40; top: 0; display: flex; align-items: center; justify-content: space-between; height: calc(76px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(18px, calc((100vw - 960px) / 2)) 0; border-bottom: 0; background: linear-gradient(100deg, #264f49 0%, #1d4d51 100%); box-shadow: 0 5px 22px rgba(13, 65, 60, .16); }
.brand { min-width: 0; display: flex; align-items: center; color: white; text-decoration: none; }
.brand-logo { display: block; width: clamp(145px, 38vw, 178px); height: auto; }
.week-chip { min-height: 34px; max-width: 40%; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid rgba(255,255,255,.23); border-radius: 999px; background: rgba(255,255,255,.12); color: white; font-size: 11px; font-weight: 720; box-shadow: none; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #a9e6c2; box-shadow: 0 0 0 3px rgba(169,230,194,.13); }

main { width: min(100%, 960px); margin: 0 auto; padding: 30px 18px calc(150px + env(safe-area-inset-bottom)); }
.page { display: none; animation: page-in .22s ease both; }
.page.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.page-title-row, .page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.page-title-row h1, .page-intro h1 { margin: 0; font-size: clamp(26px, 7vw, 34px); line-height: 1.15; letter-spacing: -.06em; }
.page-title-row p { margin: 7px 0 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.page-intro > span { color: var(--muted); font-size: 12px; }
.status-badge { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 29px; padding: 0 10px; border: 1px solid #b9dbc8; border-radius: 999px; background: var(--success-soft); color: #276948; font-size: 11px; font-weight: 760; }
.status-badge::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.status-badge.closed { border-color: #fecaca; background: var(--danger-soft); color: var(--danger); }

.notice-card { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: -7px 0 18px; padding: 10px 13px; border: 1px solid #c8dcd1; border-radius: 13px; background: #edf5f0; color: #276148; }
.notice-icon { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.notice-card p { margin: 0; font-size: 12px; font-weight: 650; line-height: 1.5; }

.order-controls { display: grid; gap: 11px; margin-bottom: 14px; }
.field-block { display: block; }
.field-block > span:first-child, .input-label, .stack-form label, .login-card label { display: block; margin: 0 0 8px; color: #506762; font-size: 12px; font-weight: 720; }
.select-wrap { position: relative; display: block; }
.select-wrap::after { content: ""; position: absolute; top: 50%; right: 18px; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.select-wrap select, .search-wrap input, input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); transition: border-color .18s, box-shadow .18s; }
.select-wrap select { min-height: 54px; padding: 0 46px 0 15px; appearance: none; font-size: 15px; font-weight: 700; }
.select-wrap select:focus, .search-wrap input:focus, input:focus, textarea:focus { border-color: #8ebdaf; box-shadow: 0 0 0 4px rgba(30, 98, 91, .1); outline: 0; }
.identity-hint { display: block; margin: 7px 2px 0; color: var(--muted-2); font-size: 10px; line-height: 1.45; }
.search-wrap { position: relative; display: block; }
.search-wrap svg { position: absolute; top: 50%; left: 15px; width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.8; transform: translateY(-50%); pointer-events: none; }
.search-wrap input { min-height: 50px; padding: 0 15px 0 44px; font-size: 14px; }

.last-order-banner { margin: 14px 0; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #c6dbd0; border-radius: 15px; background: #edf5f0; }
.last-order-banner > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.last-order-banner > div > span { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); color: var(--primary); font-size: 18px; }
.last-order-banner p { min-width: 0; margin: 0; }
.last-order-banner b, .last-order-banner small { display: block; }
.last-order-banner b { margin-bottom: 3px; font-size: 12px; }
.last-order-banner small { overflow: hidden; color: #516760; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.last-order-banner button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--primary); color: white; font-size: 11px; font-weight: 750; }

.my-order-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0; padding: 14px; border: 1px solid #bcd8c9; border-radius: 15px; background: #edf6f0; }
.my-order-copy { min-width: 0; }
.my-order-copy span, .my-order-copy b, .my-order-copy small { display: block; }
.my-order-copy span { margin-bottom: 5px; color: var(--primary); font-size: 10px; font-weight: 780; }
.my-order-copy b { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.my-order-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.my-order-actions { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, auto); gap: 6px; }
.my-order-actions button { min-height: 34px; padding: 0 10px; border: 1px solid #b7d6c6; border-radius: 9px; background: white; color: var(--primary); font-size: 10px; font-weight: 760; }
.my-order-actions .cancel-order-button { border-color: #fecaca; color: var(--danger); }

.quick-pay-card { margin: 18px 0 29px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 18px; background: linear-gradient(125deg, #173f3b, #266a62); color: white; box-shadow: 0 12px 28px rgba(20, 74, 67, .2); }
.quick-pay-info { min-width: 0; display: flex; align-items: center; gap: 11px; }
.kakao-badge, .kakao-logo { display: grid; place-items: center; flex: 0 0 auto; width: 39px; height: 29px; border-radius: 9px; background: var(--kakao); color: #191919; font-size: 13px; font-weight: 900; letter-spacing: -.04em; }
.quick-pay-info p { min-width: 0; margin: 0; }
.quick-pay-info b, .quick-pay-info small { display: block; }
.quick-pay-info b { margin-bottom: 4px; font-size: 13px; }
.quick-pay-info small { overflow: hidden; color: #94a3b8; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.quick-pay-card > button { min-height: 40px; flex: 0 0 auto; padding: 0 13px; border: 0; border-radius: 11px; background: var(--kakao); color: #191919; font-size: 11px; font-weight: 800; }
.quick-pay-card > button span { margin-left: 4px; font-size: 16px; vertical-align: -1px; }
.quick-pay-card > button.needs-setup { background: #45655f; color: #d5e2dd; }

.section-heading, .card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading { margin: 0 2px 13px; }
.section-heading h2, .card-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.035em; }
.section-heading small { color: var(--muted); font-size: 11px; }
.group-tabs { display: flex; gap: 7px; margin: 0 -18px 15px; padding: 0 18px 2px; overflow-x: auto; scrollbar-width: none; }
.group-tabs::-webkit-scrollbar { display: none; }
.group-tabs button { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; }
.group-tabs button.active { border-color: var(--primary); background: var(--primary); color: white; box-shadow: 0 5px 13px rgba(30, 98, 91, .2); }
.menu-grid { display: grid; gap: 10px; }
.menu-card { min-width: 0; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 84px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .18s, box-shadow .18s, transform .18s; }
.menu-card.selected { border-color: #8dbba9; box-shadow: 0 0 0 3px rgba(30, 98, 91, .09), var(--shadow-sm); }
.menu-art { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #e9f0e9; color: #45615a; font-size: 17px; font-weight: 850; }
.menu-card.selected .menu-art { background: var(--primary-soft); color: var(--primary); }
.menu-info { min-width: 0; }
.menu-info small { display: block; margin-bottom: 3px; color: var(--muted-2); font-size: 9px; font-weight: 700; }
.menu-info h3 { overflow: hidden; margin: 0 0 5px; font-size: 15px; letter-spacing: -.025em; white-space: nowrap; text-overflow: ellipsis; }
.menu-info strong { color: var(--primary); font-size: 12px; }
.stepper { display: grid; grid-template-columns: 34px 28px 34px; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-subtle); overflow: hidden; }
.stepper button { width: 34px; min-height: 36px; border: 0; background: transparent; color: var(--ink); font-size: 18px; }
.stepper button:active { background: var(--primary-soft); color: var(--primary); }
.stepper output { text-align: center; font-size: 12px; font-weight: 800; }

.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.metric { min-height: 104px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.metric small { display: block; margin-bottom: 17px; color: var(--muted); font-size: 11px; font-weight: 680; }
.metric strong { font-size: 27px; line-height: 1; letter-spacing: -.05em; }
.metric i { margin-left: 3px; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 650; }
.content-card { margin-top: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-heading { margin-bottom: 13px; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-subtle); color: var(--muted); font-size: 17px; }
.rank-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid #f1f5f9; }
.rank-row:first-child { border-top: 0; }
.rank-number { color: var(--muted-2); font-size: 10px; font-weight: 750; }
.rank-main { min-width: 0; }
.rank-main > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rank-main b { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.rank-main small { color: var(--muted); font-size: 9px; }
.rank-track { display: block; height: 4px; margin-top: 8px; border-radius: 999px; background: #e6eee9; overflow: hidden; }
.rank-track i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.rank-row > strong { font-size: 12px; }
.w-10{width:10%}.w-20{width:20%}.w-30{width:30%}.w-40{width:40%}.w-50{width:50%}.w-60{width:60%}.w-70{width:70%}.w-80{width:80%}.w-90{width:90%}.w-100{width:100%}
.member-row { border-top: 1px solid #f1f5f9; }
.member-row:first-child { border-top: 0; }
.member-toggle { width: 100%; min-height: 62px; display: grid; grid-template-columns: 35px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 10px 0; border: 0; background: transparent; text-align: left; color: inherit; }
.member-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; }
.member-toggle b { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.member-toggle small { padding: 4px 6px; border-radius: 6px; background: #f7f1e9; color: #9a5b24; font-size: 8px; font-weight: 750; }
.member-toggle small.paid { background: var(--success-soft); color: var(--success); }
.member-toggle strong { font-size: 11px; }
.member-detail { display: none; padding: 4px 0 11px 44px; }
.member-row.open .member-detail { display: block; }
.member-item { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; color: var(--muted); font-size: 10px; }
.member-item b { color: #516760; }
.self-payment-button { width: 100%; min-height: 40px; margin-top: 8px; border: 1px solid #b8d7c7; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 760; }
.self-payment-button.paid { border-color: #a7f3d0; background: var(--success-soft); color: var(--success); }

.admin-intro { margin-bottom: 18px; }
.login-card { max-width: 440px; margin: 42px auto 0; padding: 28px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-align: center; box-shadow: var(--shadow-sm); }
.login-symbol { display: grid; place-items: center; width: 49px; height: 49px; margin: 0 auto 17px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-weight: 900; letter-spacing: .08em; }
.login-card h2 { margin: 0; font-size: 20px; }
.login-card > p { margin: 8px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.login-card form { text-align: left; }
input, textarea { min-height: 48px; padding: 12px 13px; font-size: 14px; }
textarea { min-height: 80px; resize: vertical; line-height: 1.55; }
.primary-button, .secondary-button { width: 100%; min-height: 48px; border: 0; border-radius: 12px; font-size: 13px; font-weight: 800; }
.primary-button { margin-top: 12px; background: var(--primary); color: white; box-shadow: 0 7px 16px rgba(30, 98, 91, .2); }
.primary-button:hover { background: var(--primary-dark); }
.secondary-button { margin-top: 12px; border: 1px solid var(--line); background: var(--ink); color: white; }
button:disabled { cursor: wait; opacity: .55; }
.admin-toolbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 14px; border: 1px solid #b9d8c8; border-radius: 13px; background: var(--primary-soft); }
.admin-toolbar span { font-size: 11px; font-weight: 750; color: #216058; }
.admin-toolbar i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--primary); }
.admin-toolbar button { min-height: 32px; border: 0; background: transparent; color: var(--primary); font-size: 10px; font-weight: 750; }
.admin-section { margin-top: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.admin-section summary { min-height: 57px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; list-style: none; cursor: pointer; }
.admin-section summary::-webkit-details-marker { display: none; }
.admin-section summary > span:first-child { display: flex; align-items: center; gap: 10px; }
.admin-section summary i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-subtle); color: var(--muted); font-size: 9px; font-style: normal; }
.admin-section summary b { font-size: 13px; }
.summary-chevron { color: var(--muted); transition: transform .2s; }
.admin-section[open] .summary-chevron { transform: rotate(180deg); }
.admin-body { padding: 16px; border-top: 1px solid var(--line); }
.switch-row { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.switch-row span b, .switch-row span small { display: block; }
.switch-row span b { font-size: 12px; }
.switch-row span small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row > i { position: relative; flex: 0 0 auto; width: 43px; height: 25px; border-radius: 999px; background: var(--line-strong); transition: background .2s; }
.switch-row > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(15,23,42,.2); transition: transform .2s; }
.switch-row input:checked + i { background: var(--primary); }
.switch-row input:checked + i::after { transform: translateX(18px); }
.stack-form { display: grid; gap: 12px; }
.stack-form label { margin: 0; }
.stack-form label input, .stack-form label textarea { margin-top: 7px; }
.form-split { display: grid; gap: 10px; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.inline-form button { min-width: 66px; border: 0; border-radius: 11px; background: var(--primary); color: white; font-size: 12px; font-weight: 750; }
.field-help { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.admin-list, .payment-list, .admin-menu-list { margin-top: 13px; }
.admin-list-row, .payment-row { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #f1f5f9; }
.admin-list-row > span:first-child, .payment-row b { min-width: 0; overflow: hidden; font-size: 11px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.admin-actions, .payment-actions { flex: 0 0 auto; display: flex; gap: 6px; }
.admin-actions button, .payment-actions button, .admin-menu-title button { min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-subtle); color: #516760; font-size: 9px; font-weight: 700; }
.admin-actions .delete-button { width: 32px; padding: 0; border-color: #fecaca; background: var(--danger-soft); color: var(--danger); font-size: 15px; }
.payment-row > div:first-child small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.payment-actions button.paid { border-color: #a7f3d0; background: var(--success-soft); color: var(--success); }
.admin-menu-group { margin-top: 17px; }
.admin-menu-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 4px; }
.admin-menu-title b { font-size: 12px; }
.admin-menu-title button { color: var(--danger); }
.file-input { padding: 10px; }

.bottom-nav { position: fixed; z-index: 50; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 520px); height: var(--nav-height); display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px; border: 1px solid rgba(209, 224, 215, .96); border-radius: 20px; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 32px rgba(23, 71, 64, .16); backdrop-filter: blur(18px); transform: translateX(-50%); }
.bottom-nav button { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 14px; background: transparent; color: var(--muted-2); }
.bottom-nav button.active { background: var(--primary-soft); color: var(--primary); }
.bottom-nav span { height: 21px; }
.bottom-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav b { font-size: 9px; font-weight: 760; }

.cart-bar { position: fixed; z-index: 52; left: 50%; bottom: calc(var(--nav-height) + 20px + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 520px); min-height: 62px; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 14px; border: 0; border-radius: 17px; background: var(--primary); color: white; text-align: left; box-shadow: 0 14px 30px rgba(30, 98, 91, .3); transform: translateX(-50%); }
.cart-count { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.18); font-size: 12px; font-weight: 850; }
.cart-bar small, .cart-bar b { display: block; }
.cart-bar small { margin-bottom: 2px; color: #cfe5da; font-size: 9px; }
.cart-bar b { font-size: 12px; }
.cart-bar strong { font-size: 13px; white-space: nowrap; }
.cart-bar i { margin-left: 4px; font-style: normal; }

.sheet-backdrop { position: fixed; z-index: 80; inset: 0; background: rgba(14, 57, 52, .52); backdrop-filter: blur(2px); }
.bottom-sheet { position: fixed; z-index: 90; left: 50%; bottom: 0; width: min(100%, 560px); max-height: min(86vh, 760px); padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-bottom: 0; border-radius: 25px 25px 0 0; background: var(--surface); box-shadow: var(--shadow-lg); overflow-y: auto; transform: translateX(-50%); animation: sheet-up .24s ease both; }
@keyframes sheet-up { from { transform: translate(-50%, 24px); opacity: .65; } to { transform: translate(-50%, 0); opacity: 1; } }
.sheet-handle { width: 38px; height: 4px; margin: 0 auto 15px; border-radius: 999px; background: var(--line-strong); }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-header p { margin: 0 0 5px; color: var(--primary); font-size: 9px; font-weight: 800; }
.sheet-header h2 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
.close-button { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-subtle); color: var(--muted); font-size: 21px; }
.cart-items { margin: 18px 0 12px; }
.cart-item { min-height: 59px; display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 11px 0; border-top: 1px solid #f1f5f9; }
.cart-item:first-child { border-top: 0; }
.cart-item b, .cart-item small { display: block; }
.cart-item b { font-size: 12px; }
.cart-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.cart-item > strong { font-size: 12px; }
.account-copy { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-subtle); color: inherit; text-align: left; }
.account-copy small, .account-copy b { display: block; }
.account-copy small { margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.account-copy b { font-size: 10px; }
.account-copy i { color: var(--primary); font-size: 10px; font-style: normal; font-weight: 750; }
.sheet-total { display: flex; align-items: center; justify-content: space-between; padding: 19px 2px 4px; }
.sheet-total span { color: var(--muted); font-size: 11px; }
.sheet-total strong { font-size: 21px; letter-spacing: -.04em; }
.submit-order { min-height: 54px; }
.kakao-pay-button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 12px; padding: 0 13px; border: 0; border-radius: 13px; background: var(--kakao); color: #191919; text-align: left; }
.kakao-pay-button b { font-size: 13px; text-align: center; }
.later-button { width: 100%; min-height: 43px; margin-top: 5px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }

.empty-state { grid-column: 1 / -1; padding: 34px 16px; border: 1px dashed var(--line-strong); border-radius: 15px; background: var(--surface-subtle); text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 10px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 18px; font-weight: 800; }
.empty-state b, .empty-state p { display: block; }
.empty-state b { font-size: 12px; }
.empty-state p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.toast { position: fixed; z-index: 150; left: 50%; bottom: calc(var(--nav-height) + 24px + env(safe-area-inset-bottom)); max-width: min(calc(100% - 36px), 440px); padding: 12px 16px; border-radius: 12px; background: #0f172a; color: white; font-size: 11px; line-height: 1.45; text-align: center; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.fatal-error { width: min(calc(100% - 36px), 420px); margin: 18vh auto 0; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-align: center; box-shadow: var(--shadow-sm); }
.fatal-error > span { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 13px; border-radius: 13px; background: var(--danger-soft); color: var(--danger); font-weight: 900; }
.fatal-error h2 { margin: 0; font-size: 19px; }
.fatal-error p { color: var(--muted); font-size: 11px; }
.fatal-error button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--primary); color: white; font-size: 11px; font-weight: 750; }

@media (min-width: 620px) {
  main { padding-right: 24px; padding-left: 24px; }
  .order-controls { grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); align-items: end; }
  .search-wrap { margin-bottom: 0; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-split { grid-template-columns: 1fr 1fr; }
  .content-card, .admin-section { border-radius: 20px; }
}

@media (min-width: 940px) {
  main { padding-top: 38px; }
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-card { grid-template-columns: 45px minmax(0, 1fr); }
  .menu-card .stepper { grid-column: 1 / -1; width: 100%; grid-template-columns: 1fr 34px 1fr; }
  .menu-card .stepper button { width: auto; }
  .content-card { padding: 22px; }
}

@media (max-width: 370px) {
  main { padding-right: 14px; padding-left: 14px; }
  .topbar { padding-right: 14px; padding-left: 14px; }
  .brand-logo { width: 138px; }
  .week-chip { padding: 0 9px; font-size: 10px; }
  .quick-pay-card { align-items: stretch; flex-direction: column; }
  .quick-pay-card > button { width: 100%; }
  .menu-card { grid-template-columns: 44px minmax(0, 1fr); }
  .menu-art { width: 44px; height: 44px; }
  .menu-card .stepper { grid-column: 1 / -1; width: 100%; grid-template-columns: 1fr 30px 1fr; }
  .menu-card .stepper button { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
