:root {
  --ink: #1D2939;
  --ink-2: #475467;
  --ink-3: #7A8496;
  --line: #E3E7EE;
  --line-2: #CBD2DC;
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --surface-2: #F7F8FB;
  --sky: #2F6BD6;
  --sky-soft: #E7EEFC;
  --rose: #C2416B;
  --rose-soft: #FBE8EF;
  --slate-soft: #EDF0F5;
  --honey: #F5B400;
  --honey-deep: #7A4F00;
  --honey-soft: #FFF3CC;
  --teal: #0F7B6C;
  --teal-deep: #0A574D;
  --teal-soft: #DDF2EE;
  --red: #B93A2B;
  --red-soft: #FBE5E1;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 6px;
  --hex: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
  --shadow-card: 0 1px 2px rgba(29,41,57,.04), 0 6px 16px -10px rgba(29,41,57,.14);
  --shadow: 0 1px 0 rgba(28,38,51,.06), 0 10px 24px -12px rgba(28,38,51,.3);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
a { color: var(--teal-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--honey) 70%, transparent); outline-offset: 2px; }

.boot { min-height: 100vh; display: grid; place-items: center; color: var(--ink-3); }

/* ---------- 버튼 · 입력 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 16px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer;
  font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--ink);
}
.btn:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn { transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #2C3B50; border-color: #2C3B50; }
.btn-primary { box-shadow: 0 1px 2px rgba(29,41,57,.2); }
.btn-honey { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.btn-honey:hover { background: #E9AB00; border-color: #E9AB00; }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn-danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface);
}
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28,38,51,.1); }
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.hint { font-size: 12px; color: var(--ink-3); }
.err { font-size: 13px; color: var(--red); }

/* ---------- 레이아웃 ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: rgba(255,255,255,.94); color: var(--ink);
  border-bottom: 1px solid var(--line); box-shadow: inset 0 -2px 0 var(--honey);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.auth-side .brand { color: #fff; }
.brand .cell { width: 22px; height: 20px; background: var(--honey); clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.office-name { font-size: 13px; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 34vw; }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: 13px; color: var(--ink-2); text-align: right; line-height: 1.3; white-space: nowrap; }
@media (max-width: 420px) { .topbar { gap: 8px; padding: 10px 12px; } .topbar .who .small { display: none; } }
.topbar .btn { min-height: 34px; background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }

.body { flex: 1; display: flex; }
.sidenav { display: none; }
.main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 20px 16px 96px; }
.main.wide { max-width: 1180px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.page-head h1 { font-size: 22px; }
.ph-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ph-title .hx { width: 46px; height: 40px; }
.ph-title .hx svg { width: 22px; height: 22px; }
.hx.ph-ic:empty { display: none; }

/* 육각 아이콘 배지 (하이브) */
.hx { --tone: var(--ink-2); --tone-soft: var(--slate-soft);
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 30px;
  clip-path: var(--hex); background: var(--tone-soft); color: var(--tone); font-style: normal; }
.hx svg { width: 17px; height: 17px; }
.t-honey { --tone: var(--honey-deep); --tone-soft: var(--honey-soft); }
.t-teal { --tone: var(--teal-deep); --tone-soft: var(--teal-soft); }
.t-sky { --tone: var(--sky); --tone-soft: var(--sky-soft); }
.t-rose { --tone: var(--rose); --tone-soft: var(--rose-soft); }
.t-ink { --tone: var(--ink-2); --tone-soft: var(--slate-soft); }
.tabbar a { --tone: var(--honey-deep); --tone-soft: var(--honey-soft); }
.tabbar a.t-teal { --tone: var(--teal-deep); --tone-soft: var(--teal-soft); }
.tabbar a.t-sky { --tone: var(--sky); --tone-soft: var(--sky-soft); }
.tabbar a.t-rose { --tone: var(--rose); --tone-soft: var(--rose-soft); }
.tabbar a.t-ink { --tone: var(--ink); --tone-soft: var(--slate-soft); }
.pick-list button .hx { width: 30px; height: 26px; }
.pick-list button .hx svg { width: 15px; height: 15px; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; display: grid; place-items: center; gap: 2px; padding: 8px 2px 9px;
  font-size: 11px; font-weight: 600; color: var(--ink-3); text-decoration: none;
}
.tabbar { box-shadow: 0 -6px 18px -14px rgba(29,41,57,.3); }
.tabbar .tb-ic { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 999px; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--ink); }
.tabbar a.on .tb-ic { background: var(--tone-soft); color: var(--tone); }

@media (min-width: 960px) {
  .has-side .sidenav {
    display: block; width: 220px; flex: none; padding: 20px 12px;
    border-right: 1px solid var(--line); background: var(--surface);
    position: sticky; top: 56px; height: calc(100vh - 56px); overflow: auto;
  }
  .sidenav a {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-md);
    color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px;
  }
  .sidenav a { position: relative; padding: 7px 10px; }
  .sidenav a .hx { width: 30px; height: 26px; }
  .sidenav a .hx svg { width: 16px; height: 16px; }
  .sidenav a:hover { background: var(--surface-2); }
  .sidenav a.on { background: var(--honey-soft); color: var(--ink); }
  .sidenav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--honey); }
  .sidenav .group { font-size: 12px; color: var(--ink-3); padding: 16px 12px 6px; }
  .has-side .tabbar { display: none; }
  .has-side .main { padding-bottom: 40px; }
}

/* ---------- 카드 · 목록 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-card); }
.card + .card, .stack > * + * { margin-top: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.card-head > h2, .card-head > div > h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.card-head > h2::before, .card-head > div > h2::before { content: ""; flex: none; width: 12px; height: 11px; background: var(--honey); clip-path: var(--hex); }
.grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 > .card, .grid-2 > .stack { margin-top: 0; }
.stats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.stat { background: var(--surface); padding: 14px 16px; position: relative; }
.stat::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--honey); }
.stat:nth-child(4n+2)::before { background: var(--teal); }
.stat:nth-child(4n+3)::before { background: var(--sky); }
.stat:nth-child(4n+4)::before { background: var(--rose); }
.stat.alert::before { background: var(--red); }
.stat b { display: block; font-size: 20px; font-weight: 800; }
.stat span { font-size: 13px; color: var(--ink-3); }
.stat.alert b { color: var(--red); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; }
.list .sub { font-size: 13px; color: var(--ink-3); }
.amount-plus { color: var(--honey-deep); font-weight: 700; }
.amount-minus { color: var(--ink-2); font-weight: 700; }

.chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.honey { background: var(--honey-soft); color: var(--honey-deep); border-color: #F3D98A; }
.chip.teal { background: var(--teal-soft); color: var(--teal-deep); border-color: #A9DCD3; }
.chip.red { background: var(--red-soft); color: var(--red); border-color: #F1B9AF; }
.chip.ink { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty { text-align: center; padding: 36px 16px; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .input { width: auto; min-width: 180px; flex: 1; max-width: 320px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--ink); color: #fff; }
.seg { box-shadow: 0 1px 2px rgba(29,41,57,.04); }

/* ---------- 포인트 카드 (꿀) ---------- */
.honeycard {
  position: relative; overflow: hidden;
  background: var(--honey); color: var(--ink); border-radius: var(--r-lg); padding: 20px;
  box-shadow: 0 10px 24px -14px rgba(122,79,0,.55);
}
.honeycard::after {
  content: ""; position: absolute; right: -30px; top: -26px; width: 170px; height: 150px;
  background: rgba(255,255,255,.22);
  clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
  pointer-events: none;
}
.honeycard > * { position: relative; z-index: 1; }
.honeycard .label { font-size: 14px; font-weight: 600; color: var(--honey-deep); }
.honeycard .big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.honeycard .big small { font-size: 20px; font-weight: 700; margin-left: 2px; }
.honeycard .row { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--honey-deep); flex-wrap: wrap; }
.honeycard .row b { color: var(--ink); }
.honeycard .actions { display: flex; gap: 8px; margin-top: 16px; }
.honeycard .btn-primary { flex: 1; }
.honeycard + .card { margin-top: 12px; }

/* ---------- QR ---------- */
.qr-stage { display: grid; justify-items: center; gap: 14px; text-align: center; }
.qr-box { padding: 16px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); }
.qr-box canvas, .qr-box img { display: block; width: 236px; height: 236px; }
.qr-amount { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.countdown { font-weight: 700; color: var(--ink-2); }
.countdown.low { color: var(--red); }
.timer-bar { width: 236px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timer-bar i { display: block; height: 100%; background: var(--honey); transition: width 1s linear; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.result { text-align: center; padding: 28px 12px; }
.result .mark { width: 64px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); background: var(--teal); color: #fff; font-size: 28px; font-weight: 800; }
.result .mark.fail { background: var(--red); }

#qr-reader { width: 100%; max-width: 420px; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; background: #000; }
#qr-reader video { border-radius: var(--r-lg); }

/* ---------- 하이브 좌석도 ---------- */
.hive-scroll { overflow-x: auto; padding-bottom: 6px; }
.hive { display: grid; justify-items: center; gap: 0; min-width: max-content; padding: 4px 8px 8px; margin: 0 auto; }
.hive-tier { display: flex; justify-content: center; gap: 12px; position: relative; padding-bottom: 18px; }
.hive-tier.rooms { gap: calc(var(--lanegap) * 3 + var(--hexw) * 2); }
.hive-lanes { display: flex; gap: var(--lanegap); }
.hive-lane { display: flex; flex-direction: column; align-items: center; position: relative; }
.hive-lane::before { content: ""; position: absolute; top: 10px; bottom: 30px; left: 50%; width: 2px; margin-left: -1px; background: var(--line-2); }
.hive-tier::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 18px; width: 2px; margin-left: -1px; background: var(--line-2); }
.hive-tier.rooms::after { display: none; }
.hive-tier.rooms .hex-wrap::after { content: ""; position: absolute; left: 50%; bottom: -18px; height: 18px; width: 2px; margin-left: -1px; background: var(--line-2); }
.hex-wrap { position: relative; padding: 3px 0; }
.hex {
  --c: var(--surface); --t: var(--ink);
  width: var(--hexw); height: calc(var(--hexw) * .866);
  clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
  background: var(--line-2); display: grid; place-items: center; position: relative;
}
.hex::before { content: ""; position: absolute; inset: 1.5px; clip-path: inherit; background: var(--c); }
.hex > div { position: relative; z-index: 1; text-align: center; line-height: 1.2; padding: 0 12%; color: var(--t); }
.hex .role { font-size: 11px; font-weight: 600; opacity: .8; display: block; }
.hex .nm { font-size: 13px; font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: calc(var(--hexw) * .7); }
.hex.hq { --c: var(--ink); --t: #fff; background: var(--ink); }
.hex.room { --c: #33445A; --t: #fff; background: #33445A; }
.hex.lane { --c: var(--teal-soft); --t: var(--teal-deep); background: #8FCFC4; }
.hex.member.filled { --c: var(--honey-soft); --t: var(--honey-deep); background: #E8C25A; }
.hex.member.empty { --c: var(--surface); --t: var(--ink-3); background: var(--line-2); }
.hex.member.next { --c: #fff; --t: var(--ink); background: var(--honey); }
.hex.me { background: var(--honey) !important; }
.hex.me::before { inset: 4px; }
.hex.clickable { cursor: pointer; }
.hex.clickable:hover { filter: brightness(.96); }
@media (max-width: 520px) {
  .hive.t9 { --hexw: 86px !important; --lanegap: 8px !important; }
  .hive.t18 { --hexw: 78px !important; --lanegap: 6px !important; }
}
.hive-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.hive-legend i { display: inline-block; width: 12px; height: 10px; margin-right: 4px; vertical-align: -1px; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }

/* ---------- 홍보영상 ---------- */
.promo-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.promo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.promo-media { position: relative; aspect-ratio: 16/9; background: var(--ink); display: grid; place-items: center; color: #fff; cursor: pointer; border: 0; padding: 0; width: 100%; }
.promo-media.tall { aspect-ratio: 9/12; }
.promo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.promo-media .play { position: absolute; width: 58px; height: 50px; background: rgba(255,255,255,.92); clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); display: grid; place-items: center; color: var(--ink); }
.promo-media .ph { display: grid; justify-items: center; gap: 6px; font-weight: 700; }
.promo-media .ph small { font-weight: 500; color: #B9C2CF; }
.promo-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.promo-body .store { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.promo-body .store b { font-size: 16px; }
.plat-youtube { background: #FFE5E5; color: #A11313; border-color: #F5BDBD; }
.plat-instagram { background: #FBE6F2; color: #8E1F63; border-color: #EDBBD6; }
.plat-tiktok { background: #E6F7F8; color: #0B5A61; border-color: #B5E1E4; }

/* ---------- 모달 · 토스트 ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(20,28,38,.42); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.modal { background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 20px; box-shadow: 0 24px 60px -20px rgba(15,23,35,.45); border-top: 3px solid var(--honey); }
#picker-root .modal-back { z-index: 55; }
#top-root .modal-back { z-index: 58; }
@media (min-width: 640px) {
  .modal-back { align-items: center; padding: 20px; }
  .modal { border-radius: 18px; }
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.x-btn { border: 0; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }

#toast-root { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-md); font-size: 14px; box-shadow: var(--shadow); animation: toast-in .2s ease-out; }
.toast.err { background: var(--red); }
@media (min-width: 960px) { #toast-root { bottom: 24px; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .timer-bar i { transition: none; } }

/* ---------- 로그인 ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth-side { background: var(--ink); color: #fff; padding: 28px 24px; display: flex; flex-direction: column; gap: 20px; }
.auth-side h1 { font-size: 30px; line-height: 1.25; }
.auth-side p { color: #C2CAD5; max-width: 34ch; }
.auth-comb { display: grid; grid-template-columns: repeat(6, 34px); gap: 4px 2px; margin-top: auto; }
.auth-comb i { width: 34px; height: 30px; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); background: #2B394A; }
.auth-comb i:nth-child(odd) { transform: translateY(15px); }
.auth-comb i.on { background: var(--honey); }
.auth-main { padding: 28px 20px 40px; display: flex; justify-content: center; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h2 { font-size: 22px; margin-bottom: 4px; }
.auth-box .lead { color: var(--ink-3); margin-bottom: 20px; }
.auth-switch { margin-top: 18px; text-align: center; font-size: 14px; color: var(--ink-3); }
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-pick label { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px; cursor: pointer; background: var(--surface); }
.type-pick input { position: absolute; opacity: 0; }
.type-pick label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.type-pick b { display: block; }
.type-pick small { color: var(--ink-3); }
@media (min-width: 900px) {
  .auth { grid-template-columns: 420px 1fr; }
  .auth-side { padding: 48px 40px; }
  .auth-main { align-items: center; }
}

.notice { border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.notice.honey { background: var(--honey-soft); border-color: #F3D98A; color: var(--honey-deep); }
.notice.red { background: var(--red-soft); border-color: #F1B9AF; color: var(--red); }
.notice.teal { background: var(--teal-soft); border-color: #A9DCD3; color: var(--teal-deep); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; }
.pick-list { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 8px; }
.pick-list button { display: flex; width: 100%; text-align: left; gap: 10px; align-items: center; border: 0; border-top: 1px solid var(--line); background: var(--surface); padding: 10px 12px; cursor: pointer; }
.pick-list button:first-child { border-top: 0; }
.pick-list button:hover { background: var(--surface-2); }
.pick-group { font-size: 12px; font-weight: 700; color: var(--teal-deep); padding: 8px 12px; background: var(--teal-soft); }

/* ---------- v2 추가 ---------- */
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.check { width: 18px; height: 18px; accent-color: var(--ink); }
.sumbar { position: sticky; bottom: 64px; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 10px 14px; margin-top: 12px; box-shadow: var(--shadow); }
.sumbar .btn { min-height: 36px; }
.sumbar .btn:not(.btn-honey):not(.btn-teal) { background: transparent; color: #fff; border-color: #3A4757; }
@media (min-width: 960px) { .sumbar { bottom: 12px; } }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--line-2); }
.status-dot.honey { background: var(--honey); } .status-dot.teal { background: var(--teal); } .status-dot.red { background: var(--red); } .status-dot.ink { background: var(--ink); }
.steps { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.steps > div { flex: 1; padding: 8px 10px; font-size: 12px; color: var(--ink-3); border-right: 1px solid var(--line); text-align: center; }
.steps > div:last-child { border-right: 0; }
.steps > div b { display: block; font-size: 16px; color: var(--ink); }
.steps > div.on { background: var(--honey-soft); color: var(--honey-deep); }
.hex.held { --c: #fff; --t: var(--honey-deep); background: var(--honey); }
.hex.void { --c: var(--surface-2); --t: var(--ink-3); background: var(--line-2); }
.hex.vacant { --c: var(--surface); --t: var(--ink-3); background: var(--line-2); }
.hex .role, .hex .nm { pointer-events: none; }
.cand { display: flex; gap: 6px; flex-wrap: wrap; }
.cand button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.cand button:hover { border-color: var(--ink); }
.cand button.busy { opacity: .55; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lookup-result { margin-top: 6px; }
.big-confirm { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.split { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 10px 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--honey); border-bottom-width: 3px; }
.link-box { display: flex; gap: 8px; }
.link-box input { flex: 1; min-width: 0; }
.kpi-link { text-decoration: none; color: inherit; display: block; }
.kpi-link:hover b { text-decoration: underline; }

/* ---------- v2.1 제휴점 찾기 · 상세 · 마이 ---------- */
.pointbar { background: var(--honey-soft); border-bottom: 1px solid #F3D98A; }
.pointbar-in { max-width: 720px; margin: 0 auto; padding: 6px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pb-pts { font-size: 13px; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.pb-pts::before { content: ""; width: 14px; height: 12px; background: var(--honey); clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); margin-right: 2px; }
.pb-pts b { color: var(--ink); font-size: 15px; font-weight: 800; }
.pb-my { min-height: 30px; border-color: var(--ink); font-weight: 700; }
@media (min-width: 960px) { .has-side .pointbar-in { max-width: none; padding-left: 236px; } }

.sec { margin-bottom: 14px; }
.sec-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: thin; }
.new-card { flex: 0 0 148px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; }
.new-card .new-img { display: block; width: 100%; height: 96px; object-fit: cover; }
.new-body { padding: 8px 10px 10px; display: grid; gap: 2px; }
.new-body b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.new-body span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noimg { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, #EDF0F4 10px 20px); color: var(--ink-3); font-size: 11px; }
.new-card .noimg { height: 96px; display: grid; }
.shop-row .noimg.shop-thumb, .menu-list .noimg.menu-img { display: grid; }

.finder { display: grid; gap: 10px; margin-bottom: 12px; }
.search { display: flex; gap: 8px; }
.search .input { flex: 1; min-width: 0; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.cat { flex: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.cat.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sortbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.result-head { display: flex; align-items: center; gap: 8px; margin: 4px 2px 8px; }
.result-head .btn { margin-left: auto; }
.shop-list { display: grid; gap: 8px; }
.shop-row { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; text-decoration: none; color: inherit; box-shadow: var(--shadow-card); }
.shop-row:hover { border-color: var(--line-2); }
.shop-thumb { flex: none; width: 84px; height: 84px; border-radius: var(--r-md); object-fit: cover; }
.shop-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.shop-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.shop-name, .shop-info > .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.rate { color: var(--honey-deep); }
.rate b { color: var(--ink); }
.map-box { width: 100%; height: 60vh; min-height: 320px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.map-box.small-map { height: 240px; min-height: 0; }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--teal); }

.store-top { margin: -8px 0 8px -10px; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; }
.gal-item { flex: 0 0 86%; max-width: 520px; aspect-ratio: 4 / 3; scroll-snap-align: center; border: 0; padding: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.gal-item img, .gal-item .noimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .gal-item:only-child { flex-basis: 100%; }
.gal-count { margin: 4px 2px 10px; }
.store-head { display: grid; gap: 8px; }
.store-title { display: flex; align-items: center; gap: 8px; }
.store-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.store-rate { display: flex; align-items: center; gap: 6px; }
.store-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 4px; }
.stars { color: var(--line-2); letter-spacing: 1px; font-size: 16px; }
.stars.sm { font-size: 13px; }
.stars i { font-style: normal; }
.stars i.on { color: var(--honey); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.menu-list li:first-child { border-top: 0; }
.menu-list .grow { flex: 1; min-width: 0; }
.menu-img { flex: none; width: 64px; height: 64px; border-radius: var(--r-md); object-fit: cover; }
.menu-price { font-weight: 800; white-space: nowrap; }
.rate-sum { display: flex; gap: 18px; align-items: center; padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.rate-big { display: grid; justify-items: center; }
.rate-big b { font-size: 34px; font-weight: 800; line-height: 1.1; }
.rate-bars { flex: 1; display: grid; gap: 3px; font-size: 12px; }
.rate-bars div { display: grid; grid-template-columns: 12px 1fr 24px; gap: 6px; align-items: center; }
.rate-bars i { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.rate-bars i b { display: block; height: 100%; background: var(--honey); }
.review-list { list-style: none; margin: 0; padding: 0; }
.review-list li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.review-list li:first-child { border-top: 0; }
.rv-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.my-review, .review-form { background: var(--honey-soft); border: 1px solid #F3D98A; border-radius: var(--r-md); padding: 12px; margin-bottom: 12px; display: grid; gap: 8px; }
.star-pick { display: flex; align-items: center; gap: 2px; }
.star-pick button { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--line-2); cursor: pointer; padding: 0 2px; }
.star-pick button.on { color: var(--honey); }
.star-pick span { margin-left: 8px; }

.wk-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.wk-tabs button { border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-md); padding: 8px 4px; cursor: pointer; display: grid; gap: 0; line-height: 1.3; }
.wk-tabs button b { font-size: 14px; }
.wk-tabs button span { font-size: 11px; color: var(--ink-3); }
.wk-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.wk-tabs button.on span { color: #C9D1DC; }
.wk-range { display: grid; gap: 8px; margin-bottom: 10px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.wk-dates { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.wk-title { margin-bottom: 8px; }
.wk-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.wk-sum div { background: var(--surface); padding: 10px 12px; display: grid; }
.wk-sum span { font-size: 12px; color: var(--ink-3); }
.wk-sum b { font-size: 18px; font-weight: 800; }
.wk-status { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 2px; color: var(--ink-2); }
.kind-list { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.kind-list li { display: grid; grid-template-columns: 1fr auto minmax(96px, auto); gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.kind-list li:first-child { border-top: 0; }
.kind-list li b { text-align: right; }
.kind-list li.zero { color: var(--ink-3); }
.kind-list li.zero b { font-weight: 500; }
.kind-list li.total { background: var(--honey-soft); font-weight: 700; }
@media (max-width: 420px) { .wk-dates { grid-template-columns: 1fr 1fr; } .wk-dates .btn { grid-column: 1 / -1; } }

.upload-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.upload-box label.btn { cursor: pointer; }
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 8px; }
.photo-grid figure { margin: 0; position: relative; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.photo-grid .ph-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid figcaption { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; }
.ph-actions { display: flex; gap: 4px; padding: 6px; flex-wrap: wrap; }
.ph-actions .btn { flex: 1; min-width: 0; padding: 0 6px; }
.is-hidden { opacity: .5; }
.menu-photo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.menu-photo label.btn { cursor: pointer; }

/* ---------- v2.2 항목 누르면 창 ---------- */
.clickrow { cursor: pointer; }
tr.clickrow:hover td { background: var(--surface-2); }
li.clickrow { border-radius: var(--r-md); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
li.clickrow:hover { background: var(--surface-2); }
.clickrow:focus-visible { outline: 3px solid color-mix(in srgb, var(--honey) 70%, transparent); outline-offset: -2px; }
li.clickrow::after { content: "›"; color: var(--line-2); font-size: 20px; line-height: 1; margin-left: 2px; }
li.clickrow:hover::after { color: var(--honey-deep); }
.card.clickrow:hover { border-color: var(--line-2); }
.mtabs { margin-top: -4px; }
.mpane { min-height: 120px; }
.view-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.view-actions .grow { flex: 1; }
.json-kv dd { font-weight: 500; word-break: break-all; }
@media (max-width: 639px) {
  .modal { padding-top: 26px; position: relative; }
  .modal::before { content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
}
.perm-list { display: grid; gap: 2px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.perm-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.perm-row:has(input:checked) { background: var(--teal-soft); border-color: #A9DCD3; }

/* ---------- v2.3 참여하이브 · 좌석 배정 ---------- */
.hex.member.filled.masked { --c: #FFF8E2; --t: #A07A1E; }
.hex.myref { background: var(--teal) !important; }
.hex .refmark { color: var(--teal-deep); font-weight: 800; }
.check-line { display: flex; gap: 8px; align-items: center; }
.check-line.boxed { align-items: flex-start; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.check-line.boxed .check { margin-top: 2px; }
details.more { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.paid-line { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--honey-soft); border-radius: var(--r-md); }
.paid-line b { font-size: 20px; font-weight: 800; }
.hive-card { display: grid; gap: 8px; cursor: pointer; }
.hive-card:hover { border-color: var(--line-2); }
.hive-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hive-card .mine { display: flex; gap: 6px; flex-wrap: wrap; }
.progress { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; display: flex; }
.progress i { display: block; height: 100%; background: #E8C25A; }
.progress i.held { background: var(--honey); opacity: .55; }
.hive-nums { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.hive-nums b { color: var(--ink); font-size: 15px; }
.modal.sheet-full { max-width: 1100px !important; }
@media (max-width: 639px) { .modal.sheet-full { max-height: 96vh; height: 96vh; } }
.sheet-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 12px; }
.sheet-sum div { background: var(--surface); padding: 8px 10px; display: grid; }
.sheet-sum span { font-size: 12px; color: var(--ink-3); }
.sheet-sum b { font-size: 18px; font-weight: 800; }

/* 지사 정산 카드 */
.sub-h { font-size: 14px; font-weight: 700; margin: 4px 0 8px; }
.sumbar[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips:empty { display: none; }
.seg button:disabled { opacity: .4; cursor: default; }
/* 큰 목록 표 */
.dt-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.dt-bar .dt-q { flex: 1; max-width: 320px; }
.dt-bar .dt-count { margin-left: auto; }
table.dt th.sortable { cursor: pointer; user-select: none; }
table.dt th.sortable:hover { color: var(--ink); }
table.dt tr.click { cursor: pointer; }
table.dt tr.click:hover td { background: var(--surface-2); }
table.dt td { white-space: nowrap; }
table.dt tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line); }
/* 가게 영상 카드 */
.vid-card { flex: 0 0 168px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-align: left; padding: 0; cursor: pointer; font: inherit; color: inherit; display: block; }
.vid-thumb { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; background: #1C2633; overflow: hidden; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-thumb .play { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 16px; }
.vid-plat { color: #fff; font-weight: 700; font-size: 13px; opacity: .9; }
.plat-bg-instagram { background: linear-gradient(135deg, #F58529, #DD2A7B 50%, #8134AF); }
.plat-bg-tiktok { background: #111; }
.plat-bg-youtube { background: #C4302B; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.vid-grid .vid-card { width: 100%; }
/* 가게 상세 탭: 화면을 내려도 위에 붙어 있음 */
.store-tabs { position: sticky; top: 56px; z-index: 4; background: var(--bg, #EEF1F5); margin: 12px 0 10px; overflow-x: auto; white-space: nowrap; }
/* 대표 영상 돌아가기 */
.vcar { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
.vcar::-webkit-scrollbar { display: none; }
.vcar > .promo { flex: 0 0 100%; scroll-snap-align: start; }
.vdots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.vdots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line-2); cursor: pointer; }
.vdots button.on { background: var(--ink); width: 18px; border-radius: 4px; }

/* ---------- 동의 · 약관 ---------- */
button.link { border: 0; background: none; padding: 0; color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: inherit; }
.consent { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.consent-all { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--honey-soft); cursor: pointer; }
.consent-all .muted { margin-left: auto; }
.consent input[type=checkbox], .consent-all input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.consent ul { list-style: none; margin: 0; padding: 4px 14px; }
.consent li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--line); }
.consent li:first-child { border-top: 0; }
.consent li label { flex: 1; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.consent li .link { font-size: 13px; color: var(--ink-3); }
.consent em { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-right: 2px; }
.consent em.req { color: var(--teal-deep); background: var(--teal-soft); }
.consent em.opt { color: var(--ink-3); background: var(--slate-soft); }
.consent > p { padding: 0 14px 12px; }
.switch { position: relative; flex: none; width: 46px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .15s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + i { background: var(--teal); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--honey) 70%, transparent); outline-offset: 2px; }
.doc { font-size: 14px; line-height: 1.75; color: var(--ink-2); max-width: 72ch; }
.doc h1 { font-size: 22px; color: var(--ink); margin-bottom: 14px; }
.doc h3 { font-size: 15px; color: var(--ink); margin: 18px 0 6px; }
.doc section:first-of-type h3 { margin-top: 10px; }
.doc ol, .doc ul { padding-left: 20px; margin: 4px 0; }
.doc li + li { margin-top: 2px; }
.doc p + p, .doc p + .doc-table, .doc-table + p { margin-top: 8px; }
.doc-lead { color: var(--ink); background: var(--surface-2); border-left: 3px solid var(--honey); padding: 10px 12px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: 8px; }
.doc-table { overflow-x: auto; margin: 8px 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.doc-table th { background: var(--surface-2); text-align: left; padding: 8px 10px; color: var(--ink); white-space: nowrap; border-bottom: 1px solid var(--line); }
.doc-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.doc-ver { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.doc-page { max-width: 860px; margin: 0 auto; padding: 16px 16px 40px; }
.doc-page header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 0 16px; }
.doc-page nav { display: flex; gap: 6px; flex-wrap: wrap; }
.doc-page nav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); font-size: 13px; font-weight: 600; background: var(--surface); }
.doc-page nav a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.doc-page .doc { max-width: none; }
.legal-foot { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.legal-links { display: flex; gap: 14px; margin-bottom: 4px; }
.legal-links a { color: var(--ink-2); text-decoration: none; }
.auth-main { flex-direction: column; align-items: center; }
.auth-main .legal-foot { width: 100%; max-width: 400px; }

/* ---------- 공휴일 달력 ---------- */
.cal-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-title { font-size: 17px; }
.cal-sum { margin-left: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cal-wd { background: var(--surface-2); text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 6px 0; }
.cal-wd.sun { color: var(--red); } .cal-wd.sat { color: var(--sky); }
.cal-cell { background: var(--surface); min-height: 78px; padding: 6px 7px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; min-width: 0; }
.cal-cell.blank { background: var(--surface-2); cursor: default; }
.cal-cell:not(.blank):hover { background: var(--honey-soft); }
.cal-cell b { font-size: 14px; font-weight: 700; line-height: 1.2; }
.cal-cell.sun b, .cal-cell.off b { color: var(--red); }
.cal-cell.sat:not(.off) b { color: var(--sky); }
.cal-cell.off { background: color-mix(in srgb, var(--red-soft) 55%, var(--surface)); }
.cal-cell.past { opacity: .55; }
.cal-cell.today b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 999px; background: var(--ink); color: #fff !important; }
.cal-name { font-size: 11px; font-weight: 600; color: var(--red); line-height: 1.3; width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: keep-all; }
.cal-red { color: var(--red); }
.cal-cell:focus-visible { outline: 3px solid color-mix(in srgb, var(--honey) 70%, transparent); outline-offset: -3px; }
@media (max-width: 560px) {
  .cal-cell { min-height: 54px; padding: 4px; align-items: center; }
  .cal-name { font-size: 10px; text-align: center; -webkit-line-clamp: 1; }
  .cal-sum { margin-left: 0; width: 100%; }
}

/* ---------- 홈 화면에 추가 · 카카오톡 안내 ---------- */
.kakao-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: #FEE500; color: #191600; font-size: 14px; }
.kakao-bar span { flex: 1; min-width: 180px; }
.kakao-bar .btn { background: #191600; border-color: #191600; color: #FEE500; }
.pwa-hint { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 14px; background: var(--honey-soft); border-bottom: 1px solid #F3D98A; font-size: 13px; color: var(--honey-deep); }
.pwa-hint span { flex: 1; min-width: 0; }
.pwa-hint b { color: var(--ink); }
.pwa-hint .x-btn { width: 30px; height: 30px; background: transparent; font-size: 18px; color: var(--honey-deep); }
.pwa-hint .btn[hidden] { display: none; }
.pwa-ic { flex: none; width: 22px; height: 20px; background: var(--honey); clip-path: var(--hex); }
.pwa-steps { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }

/* ---------- 홈페이지 관리 ---------- */
.site-thumb { display: block; width: 72px; height: 44px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.site-thumb.none, .site-cover.none { display: inline-grid; place-items: center; font-size: 11px; color: var(--ink-3); background: var(--surface-2); }
.site-cover { display: block; width: 220px; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }
.site-img-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-img-pick .btn { cursor: pointer; }
.site-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.site-imgs figure { position: relative; margin: 0; }
.site-imgs .site-thumb { width: 96px; height: 64px; }
.site-imgs .x-btn { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; font-size: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.tab-n { color: var(--red); font-weight: 800; }
.inq-msg { white-space: pre-line; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
