:root { --green: #2f7d4f; --green-d: #1f5a37; --bg: #f4f6f5; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: -apple-system, "Noto Sans KR", sans-serif; background: var(--bg); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: var(--green); color: #fff;
}
.topbar h1 { margin: 0; font-size: 22px; letter-spacing: 1px; }
.topbar h1 span { font-weight: 300; opacity: .85; }
.status { display: flex; gap: 8px; }

.badge { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #fff3; }
.badge.online { background: #d6f5e0; color: var(--green-d); }
.badge.offline { background: #ffd9d9; color: #9b1c1c; }
.badge.ok { background: #d6f5e0; color: var(--green-d); }
.badge.muted { background: #ffffff22; }

main { display: grid; grid-template-columns: 1fr 320px; gap: 16px; padding: 16px; height: calc(100% - 64px); }

.menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-content: start; overflow-y: auto; }
.item {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  padding: 18px; border: none; border-radius: 14px; background: #fff;
  box-shadow: 0 2px 6px #0001; cursor: pointer; font-size: 16px;
}
.item:active { transform: scale(.97); }
.item em { font-style: normal; color: var(--green-d); font-weight: 700; }

.cart { background: #fff; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; box-shadow: 0 2px 6px #0001; }
.cart h2 { margin: 0 0 10px; font-size: 18px; }
.cart ul { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; }
.cart li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #eee; }
.qty button { width: 26px; height: 26px; border: 1px solid #ccc; background: #fafafa; border-radius: 6px; cursor: pointer; margin: 0 6px; }
.total { padding: 12px 0; font-size: 18px; }
.total strong { color: var(--green-d); }

#order { padding: 14px; border: none; border-radius: 12px; background: var(--green); color: #fff; font-size: 18px; cursor: pointer; }
#order:disabled { background: #b9c6bf; cursor: not-allowed; }
.msg { min-height: 18px; margin: 8px 0 0; font-size: 14px; }
.msg.ok { color: var(--green-d); }
.msg.err { color: #9b1c1c; }
