* { box-sizing: border-box; }
body {
  margin: 0; padding: 24px 16px 120px;
  background: #f2f4f6; color: #191f28;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
}
main { max-width: 560px; margin: 0 auto; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
h1 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
h1 span { color: #2ac1bc; }
h2 { font-size: 17px; margin: 0 0 12px; }
a.switch { color: #6b7684; font-size: 14px; text-decoration: none; }
.card { background: #fff; border-radius: 18px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.store { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; cursor: pointer; }
.store:hover, .store.on { background: #f0fbfb; }
.store .emoji { font-size: 32px; }
.store b { display: block; font-size: 16px; }
.muted { color: #8b95a1; font-size: 13px; }
.menu { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f2f4f6; }
.menu:last-child { border-bottom: 0; }
.qty { display: flex; align-items: center; gap: 10px; }
button {
  border: 0; border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 600;
  background: #2ac1bc; color: #fff; cursor: pointer;
}
button:hover { filter: brightness(.95); }
button.sm { padding: 6px 11px; }
button.gray { background: #f2f4f6; color: #4e5968; }
button.red { background: #fee; color: #e5484d; }
button:disabled { opacity: .4; cursor: default; }
input, select { width: 100%; padding: 12px; border: 1px solid #e5e8eb; border-radius: 10px; font: inherit; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.total { font-size: 20px; font-weight: 700; }
.steps { display: flex; justify-content: space-between; margin: 18px 0 8px; }
.steps div { flex: 1; text-align: center; font-size: 12px; color: #b0b8c1; position: relative; }
.steps div::before { content: ""; display: block; width: 14px; height: 14px; margin: 0 auto 6px; border-radius: 50%; background: #e5e8eb; }
.steps div.done { color: #2ac1bc; font-weight: 600; }
.steps div.done::before { background: #2ac1bc; }
.bar { height: 8px; background: #f2f4f6; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: #2ac1bc; transition: width .8s; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.PENDING { background: #fff4e5; color: #d97706; }
.ACCEPTED, .READY { background: #eaf3ff; color: #3182f6; }
.DELIVERING { background: #e6f9f8; color: #0f9e99; }
.DELIVERED { background: #ecfdf5; color: #059669; }
.REJECTED, .CANCELED { background: #f2f4f6; color: #8b95a1; }
.order { border: 1px solid #f2f4f6; border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.order.new { animation: flash 1.2s ease 3; }
@keyframes flash { 50% { background: #fff4e5; } }
.actions { display: flex; gap: 8px; margin-top: 12px; }
.actions button { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #191f28; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; }
.map { height: 260px; border-radius: 14px; margin: 14px 0; z-index: 0; }
.emoji-pin { background: none; border: 0; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.stack { display: flex; flex-direction: column; gap: 10px; }
#cartCard input { margin-bottom: 8px; }
.tabs { display: flex; gap: 6px; margin-top: 14px; background: #f2f4f6; padding: 4px; border-radius: 12px; }
.tabs button { flex: 1; background: transparent; color: #6b7684; }
.tabs button.on { background: #fff; color: #191f28; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.menu-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.menu.soldout b, .menu.soldout .muted { color: #b0b8c1; }
.menu-edit { padding: 12px 0; border-bottom: 1px solid #f2f4f6; }
/* ---------- 매출 통계 ---------- */
:root { --series-1: #0f9e99; --grid: #eef0f2; --text-2: #4e5968; --text-3: #8b95a1; --up: #059669; --down: #e5484d; }
.period { display: flex; flex-wrap: wrap; gap: 6px; }
.range { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.range input { flex: 1; min-width: 0; padding: 8px; }
.hero { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 4px 0; }
.tile-label { font-size: 13px; color: var(--text-2); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.tile { background: #f9fafb; border-radius: 12px; padding: 14px; }
.tile-value { font-size: 20px; font-weight: 700; margin: 4px 0 2px; }
.tile .muted, .delta { font-size: 12px; }
.delta .up { color: var(--up); font-weight: 600; }
.delta .down { color: var(--down); font-weight: 600; }
.delta .flat { color: var(--text-3); }
.chart { position: relative; margin-top: 8px; }
.chart .bar { fill: var(--series-1); }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: #d1d6db; stroke-width: 1; }
.chart .axis { fill: var(--text-3); font-size: 11px; }
.chart .peak { fill: var(--text-2); font-size: 11px; font-weight: 600; }
.chart .hit { fill: transparent; cursor: pointer; outline: none; }
.chart .hit.on { fill: rgba(15, 158, 153, 0.07); }
.chart .tip { position: absolute; top: 0; background: #191f28; color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.5; pointer-events: none; white-space: nowrap; }
.table-wrap { overflow-x: auto; max-height: 360px; overflow-y: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th, .table-wrap td { padding: 8px; text-align: right; border-bottom: 1px solid #f2f4f6; font-variant-numeric: tabular-nums; }
.table-wrap th:first-child, .table-wrap td:first-child { text-align: left; }
.table-wrap th { position: sticky; top: 0; background: #fff; color: var(--text-2); font-weight: 600; }
.rank { display: grid; grid-template-columns: minmax(0, 1.2fr) 1.5fr auto; align-items: center; gap: 10px; padding: 8px 0; }
.rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { display: flex; align-items: center; gap: 6px; }
.rank-bar i { display: block; height: 12px; min-width: 2px; background: var(--series-1); border-radius: 0 4px 4px 0; }
.rank-bar b { font-size: 13px; white-space: nowrap; }
.rank-rev { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.center { text-align: center; }
/* 영업 상태 */
.store-status { margin-top: 14px; padding: 14px; border-radius: 12px; background: #f9fafb; }
.store-status p { margin: 6px 0 0; }
.status-line { font-size: 16px; }
.status-line.OPEN b { color: #059669; }
.status-line.PAUSED b { color: #d97706; }
.status-line.CLOSED b { color: #4e5968; }
.status-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.status-btns button { flex: 1; min-width: 96px; }
.status-btns select { width: auto; flex: 0 0 auto; padding: 8px; }
/* 예상 조리 시간 */
.cook-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.cook-pick .muted { margin-right: 2px; }
.chip { padding: 6px 10px; border-radius: 999px; background: #f2f4f6; color: #4e5968; font-size: 13px; }
.chip.on { background: #2ac1bc; color: #fff; }
.cook-timer { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #eaf3ff; color: #1b64da; font-size: 14px; }
.cook-timer.late { background: #fff1f1; color: #c62828; }
.eta { margin-top: 10px; font-size: 15px; }
.eta b { font-size: 18px; }
/* 영업 시간표 */
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #4e5968; white-space: nowrap; cursor: pointer; }
.toggle input { width: auto; }
.sched-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #f2f4f6; }
.sched-row b { width: 22px; }
.sched-row b.sun { color: #e5484d; }
.sched-row b.sat { color: #3182f6; }
.sched-row input[type=time] { width: auto; flex: 1 1 96px; max-width: 130px; padding: 8px; }
.sched-row.off input[type=time] { opacity: .4; }
.sched-row .next-day { font-size: 12px; }
.store.closed { opacity: .55; }
.store .state { font-size: 12px; font-weight: 600; margin-left: 4px; }
.store .state.OPEN { color: #059669; }
.store .state.PAUSED { color: #d97706; }
.store .state.CLOSED { color: #8b95a1; }
.export-btns { flex-wrap: wrap; }
.export-btns button { min-width: 140px; }
@media (max-width: 420px) { .hero { font-size: 40px; } .tiles { grid-template-columns: 1fr; } }
.empty { text-align: center; color: #b0b8c1; padding: 30px 0; }
.holiday-add { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.holiday-add input[type=date] { width: auto; flex: 0 1 180px; padding: 8px; }
.holiday-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: #fff1f1; color: #e5484d; border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 14px; }
.chip .x { background: none; color: inherit; border: 0; padding: 0 6px; font-size: 16px; line-height: 1; cursor: pointer; width: auto; }
.card h3 { font-size: 15px; margin: 18px 0 4px; }
.pw-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f2f4f6; }
.pw-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
