@font-face { font-family: "SungSans"; src: url("/static/fonts/SungSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SungSans"; src: url("/static/fonts/SungSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f4f3f0;
  --surface: #ffffff;
  --ink: #1c1c20;
  --ink-2: #44444b;
  --muted: #74747c;
  --line: #e7e5e0;
  --line-2: #d9d6cf;
  --primary: #155e57;
  --primary-ink: #ffffff;
  --primary-soft: #e6f0ee;
  --warn: #b45309;
  --warn-soft: #fff6e5;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --sun: #c2410c;
  --sat: #2754c5;
  --r: 10px;
  --r-sm: 8px;
  --shadow: 0 1px 3px rgba(20, 20, 30, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "SungSans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 15px; line-height: 1.5; word-break: keep-all;
}
body.noscroll { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
em { font-style: normal; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.primary:active { background: #0f4a44; }
.btn.primary:disabled { background: #a8bdb9; cursor: default; }
.btn.ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:active { background: #f1f0ec; }
.btn.disabled { background: #ecebe7; color: #9a9aa0; cursor: default; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 52px; font-size: 16px; }
.btn.block { display: flex; width: 100%; }
.icon-btn { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; }

/* ------------------------------------------------------------ guest layout */
.strip { background: #2b2b31; color: #f3f1ea; font-size: 12px; text-align: center; padding: 6px 12px; }
.guest { max-width: 520px; margin: 0 auto; background: var(--surface); min-height: 100vh; }
@media (min-width: 560px) { html { background: var(--bg); } .guest { box-shadow: 0 0 0 1px var(--line); } }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 8px 0 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.topbar .brand { font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.2px; }
.topbar .title { font-weight: 700; font-size: 16px; }
.has-bar .topbar, .done ~ .topbar { padding-left: 8px; }
.wrap { padding: 0 0 32px; }
.wrap.narrow { padding: 12px 16px 120px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); min-height: calc(100vh - 86px); }

.hero { aspect-ratio: 16 / 9; overflow: hidden; background: #2e3450; }
.room-art { display: block; width: 100%; height: 100%; }
.intro { padding: 18px 16px 6px; }
.intro h1 { font-size: 24px; letter-spacing: -0.3px; }
.tags { margin: 4px 0 14px; color: var(--ink-2); font-size: 14px; }
.addr { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: #f7f6f3; border-radius: var(--r); }
.addr-line { font-size: 14px; }

.search {
  position: sticky; top: 56px; z-index: 15; background: var(--surface); padding: 12px 16px; display: flex; flex-direction: column; gap: 10px;
  border-bottom: 1px solid var(--line); margin-top: 14px;
}
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #efeeea; border-radius: var(--r-sm); padding: 3px; }
.seg button { height: 40px; border: 0; background: none; border-radius: 6px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.date-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); background: var(--surface); cursor: pointer; text-align: left; font-weight: 700; font-size: 15px;
}
.date-btn svg { color: var(--primary); flex: none; }
.date-btn span:first-of-type { flex: 1; }
.date-btn .chev { font-size: 13px; color: var(--primary); font-weight: 700; }
.slots-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.rooms { padding: 18px 16px 4px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-head h2, .guide h2 { font-size: 18px; }
.room-list { display: flex; flex-direction: column; gap: 14px; transition: opacity .15s ease; }
.room-list.loading { opacity: .5; }
.room { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.room-img { aspect-ratio: 16 / 8; overflow: hidden; }
.room.soldout .room-img { filter: grayscale(.7); opacity: .75; }
.room-body { padding: 14px; }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.room-top h3 { font-size: 18px; }
.left { font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.left.low { color: var(--warn); background: var(--warn-soft); }
.left.none { color: var(--muted); background: #efeeea; }
.room-sum { margin: 6px 0 2px; color: var(--ink-2); font-size: 14px; }
.room-meta { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.amen { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; }
.amen li { font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; }
.room-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.price { display: flex; flex-direction: column; }
.price strong { font-size: 20px; letter-spacing: -0.3px; }

.guide { margin: 18px 16px 0; padding: 16px; background: #f7f6f3; border-radius: var(--r); }
.guide dl { display: grid; grid-template-columns: 72px 1fr; gap: 8px 10px; margin: 12px 0 0; font-size: 14px; }
.guide dt { color: var(--muted); }
.guide dd { margin: 0; }
.foot { padding: 24px 16px 40px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.admin-link { font-weight: 700; color: var(--primary); text-decoration: none; }

/* ------------------------------------------------------------ calendar sheet */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(15, 15, 20, .45); }
.sheet-panel {
  position: relative; width: 100%; max-width: 520px; max-height: 90vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 12px 12px 0 0; overflow: hidden;
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 12px 8px 16px; }
.sheet-head h3 { font-size: 18px; }
.sheet-head p { margin: 2px 0 0; }
.dow { display: grid; grid-template-columns: repeat(7, 1fr); padding: 6px 10px; font-size: 12px; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); }
.dow span:first-child { color: var(--sun); }
.dow span:last-child { color: var(--sat); }
.cal-body { overflow-y: auto; padding: 0 10px 8px; flex: 1; }
.month-title { font-weight: 700; padding: 14px 4px 6px; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cell {
  position: relative; height: 58px; border: 0; background: none; padding: 5px 0 0; display: flex; flex-direction: column; align-items: center;
  gap: 1px; cursor: pointer; border-radius: 0;
}
.cell b { font-size: 15px; font-weight: 700; width: 30px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.cell i { font-style: normal; font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.cell i.cnt { color: var(--primary); }
.cell i.cnt.low { color: var(--warn); }
.cell i.full { color: var(--danger); }
.cell.sun b { color: var(--sun); }
.cell.sat b { color: var(--sat); }
.cell.off { cursor: default; }
.cell.off b { color: #c8c6c0; }
.cell.empty { cursor: default; }
.cell.today b { text-decoration: underline; text-underline-offset: 3px; }
.cell.mid { background: var(--primary-soft); }
.cell.start, .cell.end { background: var(--primary-soft); }
.cell.start { border-radius: 8px 0 0 8px; }
.cell.end { border-radius: 0 8px 8px 0; }
.cell.start:not(.mid):last-child, .cell.start + .cell:not(.mid):not(.end) { }
.cell.start b, .cell.end b { background: var(--primary); color: #fff; }
.cell.start i, .cell.end i { color: var(--primary); font-weight: 700; }
.sheet-foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cal-left { display: flex; flex-wrap: wrap; gap: 4px 12px; min-height: 18px; }
.cal-left .lbl { color: var(--muted); }
.cal-left span:not(.lbl) { font-weight: 700; color: var(--primary); }
.cal-left span.z { color: var(--danger); }

/* ------------------------------------------------------------ booking / pay / done */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card.soft { background: #f7f6f3; }
.card.center { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.card-title { font-size: 15px; margin-bottom: 12px; }
.summary { display: flex; gap: 12px; padding: 12px; align-items: center; }
.sum-img { width: 96px; height: 64px; border-radius: var(--r-sm); overflow: hidden; flex: none; }
.sum-title { display: flex; align-items: center; gap: 6px; }
.sum-title h2 { font-size: 18px; }
.kind { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.kind.stay { background: #e8ecfb; color: #2a47a8; }
.kind.day { background: #fdf0e4; color: #a24a08; }
.sched { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.sched > div:not(.sched-mid) { display: flex; flex-direction: column; }
.sched > div:last-child { text-align: right; }
.sched strong { font-size: 16px; }
.sched-mid { font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 6px; }
.avail { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--primary); }
.avail.low { color: var(--warn); }
.avail.none { color: var(--danger); }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; }
.lines li > span:first-child { color: var(--muted); flex: none; }
.lines li > span:last-child { text-align: right; }
.lines .total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; align-items: baseline; }
.lines .total span { color: var(--ink) !important; font-weight: 700; }
.lines .total strong { font-size: 19px; }
.wk { font-size: 11px; color: var(--sun); border: 1px solid #f3c7b0; padding: 0 5px; border-radius: 5px; margin-left: 2px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; }
.field small { font-size: 12px; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  font: inherit; font-size: 16px; width: 100%; padding: 0 12px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); outline: none; transition: border-color .15s ease;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21, 94, 87, .12); }
.small-seg label { position: relative; display: flex; }
.small-seg input { position: absolute; opacity: 0; pointer-events: none; }
.small-seg b { flex: 1; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--muted); cursor: pointer; }
.small-seg input:checked + b { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.err { margin: 0; color: var(--danger); background: var(--danger-soft); padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; }

.bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.bar-price { display: flex; flex-direction: column; }
.bar-price strong { font-size: 19px; }
.bar .btn { flex: 0 0 52%; }

.hold { display: flex; align-items: center; background: var(--warn-soft); border-color: #f4dfb8; }
.hold strong { font-size: 15px; }
.hold #timer { color: var(--warn); font-variant-numeric: tabular-nums; }
.methods { display: flex; flex-direction: column; gap: 8px; }
.method { position: relative; display: flex; cursor: pointer; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.m-body {
  flex: 1; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px 10px 42px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); position: relative; transition: border-color .15s ease, background-color .15s ease;
}
.m-body::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  border: 2px solid var(--line-2); background: #fff;
}
.method input:checked + .m-body { border-color: var(--primary); background: var(--primary-soft); }
.method input:checked + .m-body::before { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 0 4px, #fff 5px); }
.method input:focus-visible + .m-body { box-shadow: 0 0 0 3px rgba(21, 94, 87, .2); }
.m-body small { margin-left: auto; font-size: 12px; text-align: right; }
.method-group { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; background: #fafaf8; }
.mg-title { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; }
.mg-title small { font-size: 12px; }
.mg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.method.sub .m-body { padding-left: 38px; min-height: 48px; background: #fff; gap: 6px; }
.method.sub .m-body::before { left: 12px; }
.method.sub b { font-size: 14px; }
.pay-mark { display: inline-flex; align-items: center; justify-content: center; height: 20px; min-width: 20px; padding: 0 4px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.pay-mark.kakao { background: #ffe94a; color: #1c1c1c; }
.pay-mark.naver { background: #1fb15a; color: #fff; }
.notice { margin-top: 14px; padding: 12px 14px; background: var(--warn-soft); border: 1px solid #f4dfb8; border-radius: var(--r-sm); font-size: 13px; }
.notice b { color: var(--warn); }
.notice p { margin: 4px 0 0; color: var(--ink-2); }

.sheet-panel.pg { padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); gap: 14px; }
.pg-head { display: flex; align-items: center; gap: 8px; }
.pg-badge { font-weight: 700; font-size: 13px; color: var(--warn); background: var(--warn-soft); border: 1px solid #f4dfb8; padding: 3px 8px; border-radius: 6px; }
.pg-body { text-align: center; padding: 8px 0; }
.pg-method { font-weight: 700; color: var(--ink-2); }
.pg-amount { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; margin: 4px 0; }
.pg-note { font-size: 13px; color: var(--ink-2); background: #f7f6f3; border-radius: var(--r-sm); padding: 10px 12px; margin: 12px 0 0; text-align: left; }
.pg-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.pg-actions .btn { height: 52px; }
.pg-wait { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; font-weight: 700; color: var(--primary); }
.spin { width: 18px; height: 18px; border: 2px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.done { text-align: center; padding: 20px 0 6px; }
.done .check { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.done h1 { font-size: 22px; }
.done p { margin: 6px 0 12px; }
.done .code { display: inline-block; background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: var(--r-sm); font-size: 14px; }
.done .code b { letter-spacing: 1px; margin-left: 4px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.msg { margin-top: 40px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); width: max-content;
  background: #26262c; color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-size: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

/* ------------------------------------------------------------ admin */
body.admin { background: var(--bg); min-height: 100vh; }
.a-top { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 12px 0 16px; background: #1f2326; color: #fff; }
.a-brand b { font-size: 16px; }
.a-brand span { margin-left: 8px; font-size: 12px; color: #b9c0c4; border: 1px solid #4b5357; border-radius: 5px; padding: 1px 6px; }
.a-actions { display: flex; gap: 6px; }
.a-actions form { margin: 0; }
.a-top .btn.ghost { background: transparent; color: #e6e9eb; border-color: #4b5357; }
.a-nav { display: flex; gap: 2px; overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 8px; position: sticky; top: 0; z-index: 10; scrollbar-width: none; }
.a-nav a { flex: none; padding: 14px 12px 12px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; font-size: 15px; }
.a-nav a.on { color: var(--ink); border-bottom-color: var(--primary); }
.count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; background: var(--danger); color: #fff; border-radius: 10px; font-size: 12px; }
.a-sample { max-width: 760px; margin: 12px auto 0; padding: 0 16px; font-size: 12.5px; color: var(--muted); }
.a-wrap { max-width: 760px; margin: 0 auto; padding: 12px 16px 48px; display: flex; flex-direction: column; gap: 12px; }
.a-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.a-lead { margin: 0; font-size: 14px; color: var(--ink-2); }
.a-h3 { font-size: 15px; margin: 8px 0 0; }
.a-h3.first { margin-top: 0; }
.flash { background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: var(--r-sm); }
.flash a { color: var(--primary); }
.alert-new { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--warn-soft); border: 1px solid #f4dfb8; padding: 12px 14px; border-radius: var(--r); }
.alert-new[hidden] { display: none; }
.alert-new b { color: var(--warn); }
.sms { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sms p { margin: 2px 0 0; }
.switch { position: relative; flex: none; width: 48px; height: 28px; display: inline-block; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #cfcdc7; border-radius: 14px; transition: background-color .15s ease; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s ease; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { left: 23px; }
.switch-l { display: flex; align-items: center; gap: 8px; }
.today-line { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 14px; }
.today-line b { font-size: 15px; }
.tonight { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.tn b { color: var(--primary); }
.tn.z b { color: var(--danger); }
.filters { display: flex; gap: 6px; overflow-x: auto; align-items: center; scrollbar-width: none; }
.filters form { margin: 0; }
.ml-auto { margin-left: auto !important; }
.empty { text-align: center; padding: 24px 0; }
.blist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bk { display: flex; gap: 10px; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.bk.new { background: #fffaf0; border-color: #f0cf91; box-shadow: inset 3px 0 0 #e09a1a; }
.bk.cancelled { opacity: .62; }
.bk-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bk-l1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bk-amt { margin-left: auto; font-weight: 700; }
.bk-l2 { font-size: 14px; }
.bk-l3 { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; }
.bk-l3 a { color: var(--primary); text-decoration: none; }
.bk-memo { font-size: 13px; color: var(--ink-2); background: #f7f6f3; padding: 4px 8px; border-radius: 6px; margin-top: 2px; }
.bk-act { display: flex; flex-direction: column; gap: 6px; flex: none; }
.bk-act form { margin: 0; }
.bk-act .btn { width: 56px; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.badge.new { background: #e09a1a; color: #fff; }
.badge.cancel { background: #ecebe7; color: var(--muted); }
.badge.wait { background: #e8ecfb; color: #2a47a8; }
.room-edit { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 60px; }
.room-edit.saved { border-color: #9cc4bd; }
.re-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.re-head b { font-size: 17px; margin-right: 8px; }
.re-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .room-edit .re-grid { grid-template-columns: repeat(3, 1fr); } }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.stepper button { border: 0; background: #f4f3ef; font-size: 20px; font-weight: 700; cursor: pointer; height: 44px; }
.stepper input { border: 0 !important; border-radius: 0 !important; text-align: center; height: 44px !important; font-weight: 700; box-shadow: none !important; }
.money { position: relative; }
.money input:not([type=checkbox]) { padding-right: 36px; text-align: right; font-weight: 700; }
.money em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.blocks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.blk { display: flex; justify-content: space-between; align-items: center; }
.blk > div { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.blk form { margin: 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-between p { margin: 2px 0 0; }
.danger { display: flex; flex-direction: column; gap: 8px; }
.danger p { margin: 0; }
.danger form { margin: 0; }

.login-page { display: flex; justify-content: center; }
.login { width: 100%; max-width: 400px; padding: 48px 20px; display: flex; flex-direction: column; gap: 16px; }
.login-brand { text-align: center; }
.login-brand b { font-size: 22px; display: block; }
.login-brand span { color: var(--muted); font-size: 14px; }
.demo-cred { background: var(--warn-soft); border: 1px solid #f4dfb8; border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.dc-title { font-weight: 700; color: var(--warn); font-size: 14px; }
.dc-row { display: flex; justify-content: space-between; font-size: 14px; }
.dc-row code { font-family: inherit; font-weight: 700; font-size: 15px; }
.demo-cred .btn { margin-top: 4px; }
.login .form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; }
.login .back { text-align: center; }
