* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f7f4ee;            /* 따뜻한 아이보리 */
  --panel: #ffffff;
  --ink: #221c15;
  --muted: #8a8177;
  --line: #eae4da;
  --primary: #d9480f;       /* 감(persimmon) */
  --primary-deep: #b83c0a;
  --primary-soft: #fdeee2;
  --green: #2b8a3e;
  --green-soft: #e9f6ec;
  --red: #c92a2a;
  --red-soft: #fbebeb;
  --gold: #b98a2f;
  --gold-soft: #f9f1de;
  --side: #201a13;          /* 짙은 커피 브라운 */
  --side-ink: #cfc6ba;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34,28,21,.05), 0 4px 16px rgba(34,28,21,.05);
}

html { scrollbar-gutter: stable; }
body {
  font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.layout { display: flex; min-height: 100vh; }
.hidden { display: none !important; }
.ta-r { text-align: right; }
.row-gap { display: flex; gap: 8px; align-items: center; }

/* ---------- 사이드바 ---------- */
.sidebar {
  width: 232px; flex-shrink: 0;
  background: var(--side); color: var(--side-ink);
  display: flex; flex-direction: column;
  padding: 22px 14px 16px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 22px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #f08c00);
  color: #fff; font-weight: 900; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(217,72,15,.4);
}
.brand-text { font-size: 19px; font-weight: 800; color: #fff; line-height: 1.15; }
.brand-text span { color: #ff922b; }
.brand-text small { display: block; font-size: 11px; font-weight: 500; color: #918879; }

.nav-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  color: #6e6558; padding: 14px 12px 6px;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.nav-btn {
  display: flex; align-items: center; gap: 10px;
  text-align: left; padding: 10px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--side-ink); font-size: 14.5px; cursor: pointer;
  font-family: inherit; transition: background .12s;
}
.nav-btn .ico { width: 18px; text-align: center; opacity: .75; font-style: normal; }
.nav-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-btn.active { background: var(--primary); color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(217,72,15,.35); }
.nav-btn.active .ico { opacity: 1; }
.sidebar-foot { margin-top: auto; font-size: 11.5px; color: #6e6558; padding: 12px; line-height: 1.7; }
.foot-date { color: #a99e8f; font-weight: 600; }

/* ---------- 본문 ---------- */
.content { flex: 1; padding: 30px 36px 60px; max-width: 1240px; min-width: 0; }
h1 { font-size: 25px; font-weight: 800; }
.subtitle { font-size: 13px; color: var(--muted); margin-top: 3px; }
h2 { font-size: 15.5px; font-weight: 700; }
h2 small { color: var(--muted); font-weight: 500; font-size: 12px; }
h3 { font-size: 13px; margin-bottom: 10px; color: var(--muted); font-weight: 700; }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.panel-sub { font-size: 12px; color: var(--muted); }

/* ---------- KPI 카드 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(185px, 100%), 1fr)); gap: 14px; margin-bottom: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card.accent { background: linear-gradient(135deg, #2b2119, #4a2f14); border: 0; color: #fff; }
.card.accent .label { color: #cbb9a4; }
.card.accent .sub { color: #a08c74; }
.card .label { font-size: 12.5px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.card .value { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.card .sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.delta { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.delta.up { color: var(--green); background: var(--green-soft); }
.delta.down { color: var(--red); background: var(--red-soft); }
.delta.flat { color: var(--muted); background: #f1ede6; }
.card.accent .delta.up { background: rgba(120,220,140,.18); color: #8ce99a; }
.card.accent .delta.down { background: rgba(255,120,120,.18); color: #ffa8a8; }

.grid-73 { display: grid; grid-template-columns: 7fr 3fr; gap: 16px; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .grid-73, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- 차트 ---------- */
.area-chart svg { display: block; width: 100%; }
.axis-label { font-size: 10px; fill: var(--muted); }

.vbar-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.vbar-chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.vbar-chart .bar { width: 100%; max-width: 30px; background: linear-gradient(180deg, #f08c00, var(--primary)); border-radius: 5px 5px 2px 2px; min-height: 3px; }
.vbar-chart .bar.dim { background: #e8e0d3; }
.vbar-chart .bar-label { font-size: 10px; color: var(--muted); }

.hbar-chart { display: flex; flex-direction: column; gap: 12px; }
.hbar { display: grid; grid-template-columns: 74px 1fr 84px; align-items: center; gap: 10px; font-size: 13px; }
.hbar .track { background: #f1ede6; border-radius: 6px; height: 16px; overflow: hidden; }
.hbar .fill { height: 100%; background: linear-gradient(90deg, var(--primary), #f08c00); border-radius: 6px; transition: width .5s ease; }
.hbar .num { text-align: right; font-weight: 700; font-size: 12.5px; }

.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.rank-no {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800; background: #f1ede6; color: var(--muted);
}
.rank-item:first-child .rank-no { background: var(--gold-soft); color: var(--gold); }
.rank-name { flex: 1; font-weight: 600; }
.rank-meta { font-size: 12px; color: var(--muted); }

.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; flex: 1; }
.donut-legend .row { display: flex; align-items: center; gap: 8px; }
.donut-legend .sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.donut-legend .pct { margin-left: auto; font-weight: 700; }

/* ---------- 표 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; color: var(--muted); font-size: 11.5px; font-weight: 700;
  padding: 8px 10px; border-bottom: 1px solid var(--line); letter-spacing: .03em;
}
.table th.ta-r { text-align: right; }
.table td { padding: 11px 10px; border-bottom: 1px solid #f2eee7; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbf9f5; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.gray { background: #f1ede6; color: var(--muted); }
.badge.orange { background: var(--primary-soft); color: var(--primary); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }

/* ---------- 버튼/입력 ---------- */
.btn {
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 13.5px; cursor: pointer; color: var(--ink);
  font-family: inherit; font-weight: 600; text-decoration: none; display: inline-flex;
  align-items: center; gap: 6px; transition: all .12s;
}
.btn:hover { background: #faf7f1; border-color: #ddd5c8; }
.btn.primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 3px 10px rgba(217,72,15,.25);
}
.btn.primary:hover { background: var(--primary-deep); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); border-color: #eecaca; }
.btn.danger:hover { background: var(--red-soft); }
.btn.small { padding: 5px 11px; font-size: 12px; border-radius: 8px; }

.select, input[type="date"] {
  padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13.5px; background: #fff; font-family: inherit; color: var(--ink);
}

.filter-bar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px;
}
.filter-summary { margin-left: auto; font-size: 13px; color: var(--muted); }
.filter-summary b { color: var(--ink); }

/* ---------- 테이블 그리드 (좌석) ---------- */
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-empty { background: #ddd5c8; }
.dot-occupied { background: var(--primary); }
.dot-reserved { background: var(--gold); }

.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; margin-bottom: 16px; }
.seat {
  border-radius: var(--radius); padding: 15px; cursor: pointer;
  background: var(--panel); border: 1.5px solid var(--line);
  box-shadow: var(--shadow); transition: all .12s; position: relative;
}
.seat:hover { transform: translateY(-2px); border-color: var(--primary); }
.seat .seat-top { display: flex; justify-content: space-between; align-items: center; }
.seat .seat-label { font-weight: 800; font-size: 17px; }
.seat .seat-cap { font-size: 11px; color: var(--muted); }
.seat .seat-info { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.seat .seat-amount { font-weight: 800; color: var(--primary); font-size: 14px; }
.seat.occupied { background: linear-gradient(160deg, #fff7f0, var(--primary-soft)); border-color: #f3c6a5; }
.seat.occupied .seat-label { color: var(--primary); }
.seat.reserved { border-color: #e5cf9a; background: linear-gradient(160deg, #fffdf5, var(--gold-soft)); }
.seat.reserved .seat-label { color: var(--gold); }
.seat.selected { outline: 3px solid var(--primary); outline-offset: 1px; }
.elapsed { font-size: 11px; color: var(--primary); font-weight: 700; }

.order-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
@media (max-width: 900px) { .order-body { grid-template-columns: 1fr; } }
.order-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; padding: 14px 4px; border-top: 2px solid var(--ink); margin-top: 6px;
}
.order-total b { font-size: 20px; font-weight: 800; }
.pay-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.qty-ctl { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty-ctl button {
  width: 26px; height: 26px; border: 0; background: #faf7f1; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--ink); font-family: inherit;
}
.qty-ctl button:hover { background: var(--primary-soft); color: var(--primary); }
.qty-ctl .qty { min-width: 28px; text-align: center; font-weight: 700; font-size: 13px; }

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip {
  padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; font-size: 12.5px; cursor: pointer; font-family: inherit; font-weight: 600;
  color: var(--ink); transition: all .12s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.menu-pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.menu-pick {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px;
  background: #fff;
}
.menu-pick .mp-price { color: var(--muted); font-size: 12.5px; margin-left: 8px; }
.menu-pick.soldout { opacity: .45; }

/* ---------- 가맹점 카드 ---------- */
.fr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.fr-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.fr-card .fr-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.fr-card .fr-name { font-size: 17px; font-weight: 800; }
.fr-card .fr-meta { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin: 8px 0 14px; }
.fr-card .fr-stats { display: flex; gap: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.fr-card .fr-stat { flex: 1; }
.fr-card .fr-stat .k { font-size: 11px; color: var(--muted); font-weight: 600; }
.fr-card .fr-stat .v { font-size: 16px; font-weight: 800; margin-top: 3px; }
.fr-card .fr-actions { display: flex; gap: 6px; margin-top: 14px; }

/* ---------- 메뉴 그룹 ---------- */
.menu-cat-title { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .08em; margin: 22px 0 10px; }
.menu-cat-title:first-child { margin-top: 0; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.menu-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center;
}
.menu-card.soldout { opacity: .55; }
.menu-card .mc-name { font-weight: 700; font-size: 14.5px; }
.menu-card .mc-price { font-size: 13px; color: var(--muted); margin-top: 3px; }
.menu-card .mc-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }

/* ---------- AI ---------- */
.ai-panel { display: flex; flex-direction: column; height: calc(100vh - 170px); min-height: 480px; }
.ai-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px 4px 14px; }
.ai-msg {
  max-width: 82%; padding: 13px 17px; border-radius: 16px; font-size: 14px; line-height: 1.7;
  word-break: break-word;
}
.ai-msg.user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg.assistant { align-self: flex-start; background: #f6f2ea; border-bottom-left-radius: 4px; }
.ai-msg.assistant h4 { font-size: 14.5px; margin: 10px 0 4px; }
.ai-msg.assistant ul, .ai-msg.assistant ol { padding-left: 20px; margin: 6px 0; }
.ai-msg.assistant li { margin: 3px 0; }
.ai-msg.assistant p { margin: 6px 0; }
.ai-msg.assistant strong { color: var(--primary-deep); }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #c4b8a6; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.ai-input-row { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.ai-input-row input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; font-family: inherit; background: #fdfcfa;
}
.ai-input-row input:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }

/* ---------- 모달 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(30,24,17,.5); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.modal {
  background: #fff; border-radius: 18px; padding: 26px; width: 440px; max-width: 92vw;
  box-shadow: 0 20px 60px rgba(30,24,17,.3); animation: pop .18s ease;
  max-height: 88vh; overflow-y: auto;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h2 { margin-bottom: 18px; font-size: 18px; }
.modal .field { margin-bottom: 13px; }
.modal .field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.modal .field input, .modal .field select, .modal .field textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit;
}
.modal .field input:focus, .modal .field select:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.modal .modal-desc { font-size: 14px; line-height: 1.6; color: #4d453b; margin-bottom: 4px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ---------- 인증 화면 ---------- */
.auth-screen { display: flex; min-height: 100vh; }
.auth-side {
  width: 44%; min-width: 380px; padding: 60px 56px;
  background: linear-gradient(150deg, #201a13 0%, #3a2313 70%, #58300f 100%);
  color: #e8e0d3; display: flex; flex-direction: column;
}
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 60px; }
.brand-mark.big { width: 52px; height: 52px; font-size: 25px; border-radius: 15px; }
.auth-brand-name { font-size: 28px; font-weight: 900; color: #fff; }
.auth-brand-name span { color: #ff922b; }
.auth-tagline { font-size: 30px; font-weight: 800; line-height: 1.4; color: #fff; margin-bottom: 16px; }
.auth-desc { font-size: 15px; color: #b8ab99; line-height: 1.7; }
.auth-points { list-style: none; margin-top: auto; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: #d8cdbd; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 400px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 21px; margin-bottom: 20px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.auth-card .field input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit;
}
.auth-card .field input:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.btn.wide { width: 100%; justify-content: center; padding: 12px; font-size: 15px; margin-top: 6px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.auth-switch a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-demo {
  margin-top: 16px; padding: 11px 14px; background: #faf7f1; border-radius: 10px;
  font-size: 12px; color: var(--muted); line-height: 1.6;
}
@media (max-width: 860px) { .auth-side { display: none; } }

/* ---------- 사이드바 사용자 영역 ---------- */
.user-box {
  margin-top: auto; padding: 12px; border: 1px solid #3a322a; border-radius: 12px;
  background: rgba(255,255,255,.04);
}
.user-box .user-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #fff; font-size: 13.5px; }
.user-box .user-email { font-size: 11.5px; color: #8b8172; margin-top: 3px; word-break: break-all; }
.sidebar .sidebar-foot { margin-top: 0; }

/* ---------- 구독 / 요금제 ---------- */
.usage-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
@media (max-width: 800px) { .usage-meters { grid-template-columns: 1fr; } }
.meter .m-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.meter .m-head b { font-weight: 800; }
.meter .m-track { background: #f1ede6; height: 10px; border-radius: 6px; overflow: hidden; }
.meter .m-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--primary), #f08c00); transition: width .5s; }
.meter .m-fill.warn { background: linear-gradient(90deg, #e03131, #f08c00); }

.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.plan-card {
  background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  position: relative;
}
.plan-card.current { border-color: var(--primary); }
.plan-card.recommend { border-color: var(--ink); }
.plan-flag {
  position: absolute; top: -11px; left: 20px; padding: 3px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 800; background: var(--primary); color: #fff;
}
.plan-flag.dark { background: var(--ink); }
.plan-card .p-name { font-size: 16px; font-weight: 800; }
.plan-card .p-price { font-size: 26px; font-weight: 900; margin: 10px 0 2px; }
.plan-card .p-price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan-card .p-desc { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.plan-card ul { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13px; margin-bottom: 18px; }
.plan-card ul li::before { content: '✓ '; color: var(--green); font-weight: 800; }
.plan-card .btn { margin-top: auto; justify-content: center; }
.billing-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---------- 인증 배너 / 팀 / 리포트 ---------- */
.verify-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--gold-soft); border: 1px solid #e5cf9a; color: #7a5c17;
  border-radius: 12px; padding: 11px 16px; font-size: 13px; font-weight: 600;
  margin-bottom: 18px;
}
.verify-banner a { color: var(--primary); font-weight: 700; word-break: break-all; }
.auth-sub { font-size: 13px; color: var(--muted); margin: -8px 0 16px; line-height: 1.6; }
.toggle-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.toggle-row input { width: 18px; height: 18px; accent-color: var(--primary); }
.report-preview-frame { width: 100%; height: 60vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.modal.wide { width: 640px; }

/* ---------- 고객/직원 ---------- */
.pager { display: flex; gap: 6px; justify-content: center; padding-top: 14px; flex-wrap: wrap; }
.pager button {
  min-width: 34px; height: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600;
}
.pager button.cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.sch-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 720px; }
.sch-table th { padding: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.sch-table th.today { color: var(--primary); }
.sch-table td { padding: 6px; border: 1px solid #f2eee7; vertical-align: top; min-width: 90px; height: 64px; }
.sch-item {
  background: var(--primary-soft); border-radius: 8px; padding: 5px 8px; margin-bottom: 4px;
  font-size: 11.5px; line-height: 1.4; position: relative;
}
.sch-item b { display: block; }
.sch-item .sch-del {
  position: absolute; top: 2px; right: 5px; cursor: pointer; color: var(--muted); font-size: 11px;
  background: none; border: 0;
}
.sch-item .sch-del:hover { color: var(--red); }
.type-cards { display: flex; flex-direction: column; gap: 6px; }
.type-card {
  display: flex; flex-direction: column; gap: 1px; padding: 10px 13px;
  border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13.5px;
  position: relative;
}
.type-card small { color: var(--muted); font-size: 11.5px; }
.type-card input { position: absolute; opacity: 0; }
.type-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }

.tier-row { display: grid; grid-template-columns: 72px 76px 100px 1fr; gap: 6px; margin-bottom: 6px; align-items: center; }
.tier-row input {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; min-width: 0;
}
.tier-head { font-size: 11px; color: var(--muted); font-weight: 700; }

/* ---------- 주소 검색 (카카오 우편번호) ---------- */
.addr-search-box {
  height: 380px; margin-top: 8px;
  border: 1.5px solid var(--primary); border-radius: 12px; overflow: hidden;
  background: #fff;
}

/* ---------- 온보딩 ---------- */
.onboard-wrap { max-width: 620px; margin: 0 auto; }
.onboard-head { text-align: center; margin-bottom: 22px; }
.onboard-steps { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.ob-step {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  padding: 6px 14px; border-radius: 20px; background: #f1ede6;
}
.ob-step.active { background: var(--primary); color: #fff; }
.ob-step.done { background: var(--green-soft); color: var(--green); }
.ob-page .field input { width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; }
.ob-page .field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.ob-page .field { margin-bottom: 14px; }
.ob-menu-preview {
  display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px;
  max-height: 180px; overflow-y: auto; padding: 4px 0;
}
.ob-menu-preview span {
  padding: 5px 11px; background: #faf7f1; border: 1px solid var(--line); border-radius: 16px;
}
.ob-next-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; margin-top: 20px; }
.ob-next-cards .btn { flex-direction: column; padding: 14px; line-height: 1.5; }
.ob-next-cards .btn small { color: var(--muted); font-weight: 500; }

.cust-suggest { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.cust-suggest button {
  text-align: left; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; font-family: inherit; font-size: 13px;
}
.cust-suggest button:hover { border-color: var(--primary); background: var(--primary-soft); }

/* ---------- 표 가로 스크롤 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .table { min-width: 640px; }

/* ---------- 모바일 상단바 / 드로어 ---------- */
.mobile-topbar {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  align-items: center; gap: 12px; padding: 0 14px; height: 54px;
  background: var(--side); color: #fff;
  box-shadow: 0 2px 10px rgba(34,28,21,.25);
}
.menu-btn {
  width: 38px; height: 38px; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; font-size: 18px; font-family: inherit;
}
.mt-brand { font-size: 17px; font-weight: 800; }
.mt-brand span { color: #ff922b; }
.mobile-topbar .badge { margin-left: auto; }

.side-backdrop {
  position: fixed; inset: 0; background: rgba(20,16,11,.5); z-index: 55;
}

/* ---------- 반응형 ---------- */
@media (max-width: 920px) {
  .mobile-topbar { display: flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; z-index: 60; height: 100dvh;
    transform: translateX(-105%); transition: transform .22s ease;
    box-shadow: 8px 0 30px rgba(20,16,11,.3);
  }
  .sidebar.open { transform: none; }
  .content { padding: 72px 16px 48px; max-width: 100%; }
  h1 { font-size: 21px; }
  .view-head { align-items: flex-start; flex-direction: column; }
  .panel { padding: 16px; }
  .card .value { font-size: 21px; }
  .vbar-chart { gap: 3px; height: 120px; }
  .vbar-chart .bar-label { font-size: 8.5px; }
  .hbar { grid-template-columns: 64px 1fr 76px; }
  .order-total b { font-size: 18px; }
  .pay-actions .btn { flex: 1 1 45%; justify-content: center; }
  .filter-bar .select, .filter-bar input[type="date"] { flex: 1 1 40%; min-width: 0; }
  .filter-summary { margin-left: 0; width: 100%; }
  .ai-panel { height: calc(100dvh - 220px); min-height: 380px; }
  .ai-msg { max-width: 92%; }
  .donut-wrap { flex-direction: column; align-items: flex-start; }
  .modal { padding: 20px; border-radius: 16px; }
  .auth-main { padding: 24px 16px; }
  .auth-card { padding: 26px 22px; }
}

@media (max-width: 480px) {
  .content { padding: 68px 12px 40px; }
  .table th, .table td { padding: 8px 8px; font-size: 12.5px; }
  .seat { padding: 12px; }
  .plan-card { padding: 20px; }
}

/* ---------- 토스트 ---------- */
.toasts { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; box-shadow: 0 8px 24px rgba(30,24,17,.35);
  animation: slidein .22s ease; display: flex; align-items: center; gap: 8px;
}
.toast.success::before { content: '✓'; color: #8ce99a; font-weight: 900; }
.toast.error { background: var(--red); }
.toast.error::before { content: '!'; font-weight: 900; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.out { transition: all .25s; opacity: 0; transform: translateY(8px); }

@media (max-width: 920px) {
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { justify-content: center; }
}
