:root {
  color-scheme: light;
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  color: #17211b;
  background: #f4f0e8;
  font-synthesis: none;
  --ink: #17211b;
  --cream: #f4f0e8;
  --paper: #fffdf8;
  --sage: #a9bd9d;
  --green: #2f5d46;
  --line: rgba(23, 33, 27, .14);
  --coral: #e76547;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--cream); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; padding: 24px; }
.frame { width: min(1120px, 100%); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 0 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--ink); color: white; font-family: Georgia, serif; font-size: 20px; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.brand small { color: #68726b; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.quiet-link { color: #526058; font-size: 14px; text-decoration: none; border-bottom: 1px solid currentColor; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); min-height: 650px; border: 1px solid var(--line); background: var(--paper); border-radius: 34px; overflow: hidden; box-shadow: 0 24px 80px rgba(57, 50, 37, .10); }
.hero-copy { padding: clamp(42px, 7vw, 88px); display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 12% 4%, rgba(169,189,157,.35), transparent 38%), var(--paper); }
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(50px, 7vw, 92px); line-height: .96; font-weight: 500; letter-spacing: -.055em; }
.hero-copy > div > p:not(.eyebrow) { max-width: 520px; color: #58635c; font-size: clamp(17px, 2vw, 21px); line-height: 1.7; }
.status-strip { display: flex; align-items: center; gap: 28px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.status-strip strong { display: block; font-size: 28px; letter-spacing: -.04em; }
.status-strip span { color: #6e7771; font-size: 13px; }
.open-dot { width: 10px; height: 10px; border-radius: 50%; background: #48a06e; box-shadow: 0 0 0 7px rgba(72,160,110,.13); }
.closed .open-dot { background: #999; box-shadow: none; }
.ticket-panel { background: var(--ink); color: white; padding: clamp(34px, 5vw, 58px); display: flex; flex-direction: column; justify-content: center; }
.ticket-panel h2 { font-size: 28px; letter-spacing: -.04em; }
.ticket-panel .muted { color: rgba(255,255,255,.62); line-height: 1.6; }
.field { margin-top: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.08); color: white; outline: none; }
.field textarea { min-height: 92px; padding-top: 14px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(169,189,157,.15); }
.primary { width: 100%; min-height: 56px; margin-top: 28px; border: 0; border-radius: 14px; background: #e8d49e; color: var(--ink); font-weight: 900; }
.primary:hover { background: #f0dda9; }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.notice { min-height: 22px; margin: 14px 0 0; color: #f2c8b8; font-size: 13px; }
.my-ticket { padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: var(--green); color: white; text-align: center; }
.my-ticket .number { margin: 24px 0 14px; font-family: Georgia, serif; font-size: clamp(86px, 18vw, 160px); line-height: .8; }
.my-ticket .ahead { font-size: 19px; }
.my-ticket .pill { display: inline-flex; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; }
.secondary { min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: transparent; color: inherit; }
.called-list { display: flex; gap: 8px; flex-wrap: wrap; }
.called-list b { min-width: 46px; padding: 10px 12px; border-radius: 10px; background: #e8d49e; color: var(--ink); text-align: center; }
.admin-shell { width: min(1180px, 100%); margin: 0 auto; }
.admin-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.card h2 { font-size: 23px; letter-spacing: -.04em; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.next-button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--coral); color: white; font-weight: 800; }
.queue-list { display: grid; gap: 10px; }
.queue-row { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.queue-row.called { border-color: var(--coral); background: #fff5ef; }
.queue-number { font-family: Georgia, serif; font-size: 36px; text-align: center; }
.queue-meta strong { display: block; }
.queue-meta small { color: #6f7872; }
.actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.actions button, .small-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
.actions button.accent { background: var(--green); color: white; border-color: var(--green); }
.admin-form .field input, .admin-form .field textarea { border-color: var(--line); background: white; color: var(--ink); }
.toggle-line { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toggle-line input { width: 22px; height: 22px; accent-color: var(--green); }
.login { width: min(440px, 100%); margin: 10vh auto 0; }
.login .card { padding: 42px; }
.login h1 { font-family: inherit; font-size: 34px; }
.login .field input { border-color: var(--line); background: white; color: var(--ink); }
.empty { padding: 70px 20px; color: #727b75; text-align: center; border: 1px dashed var(--line); border-radius: 18px; }
.flash { position: fixed; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 18px; border-radius: 12px; background: var(--ink); color: white; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
@media (max-width: 800px) {
  .shell { padding: 14px; }
  .topbar { padding-bottom: 16px; }
  .hero { grid-template-columns: 1fr; border-radius: 24px; }
  .hero-copy { min-height: 480px; padding: 38px 28px; }
  .ticket-panel { padding: 36px 28px; }
  .admin-grid { grid-template-columns: 1fr; }
  .queue-row { grid-template-columns: 48px 1fr; }
  .actions { grid-column: 1 / -1; justify-content: stretch; }
  .actions button { flex: 1; }
}

