/* Dangol — 예약권(티켓) 모티프. 초록 = 가게, 노란 점 = 단골 도장. */
:root {
  --paper: #EEF3F0;
  --surface: #FFFFFF;
  --surface-2: #F6F9F7;
  --ink: #132923;
  --muted: #5B6C66;
  --line: #D5DFDA;
  --jade: #0D6E5C;
  --jade-deep: #09574A;
  --jade-ink: #FFFFFF;
  --jade-soft: #DCEFE8;
  --sun: #F2B544;
  --sun-soft: #FCF0D3;
  --sky: #285A8C;
  --sky-soft: #E1EBF6;
  --amber: #8A5100;
  --amber-soft: #FAECD3;
  --red: #A2231A;
  --red-soft: #F8E0DC;
  --stone: #8A938F;
  --focus: #285A8C;
  --shadow: 0 1px 2px rgba(19, 41, 35, .06), 0 6px 20px rgba(19, 41, 35, .06);
  --shadow-up: 0 -1px 0 var(--line), 0 -8px 24px rgba(19, 41, 35, .06);
  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 12px;
  --tabbar-h: 64px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1815;
    --surface: #16221E;
    --surface-2: #1B2925;
    --ink: #E4EDE9;
    --muted: #9AACA5;
    --line: #2A3A35;
    --jade: #3FB399;
    --jade-deep: #5CC6AD;
    --jade-ink: #04211A;
    --jade-soft: #163A31;
    --sun: #F2B544;
    --sun-soft: #3A2E12;
    --sky: #8DB8E5;
    --sky-soft: #172B3E;
    --amber: #F0B45C;
    --amber-soft: #382A12;
    --red: #F08A80;
    --red-soft: #3C1C19;
    --stone: #6E7A75;
    --focus: #8DB8E5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-up: 0 -1px 0 var(--line);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 64px); -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Be Vietnam Pro", "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { display: block; margin: 0 auto; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
.logo { width: 32px; height: 32px; flex: none; display: block; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 16px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .08s;
}
.btn:active { transform: scale(.98); }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.btn.primary { background: var(--jade); border-color: var(--jade); color: var(--jade-ink); }
.btn.primary:hover { background: var(--jade-deep); border-color: var(--jade-deep); }
.btn.danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.big { min-height: 54px; font-size: 16px; border-radius: 14px; }
.btn.small { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.btn svg { width: 20px; height: 20px; }
.link { background: none; border: 0; min-height: 44px; padding: 6px 4px; color: var(--jade); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--red); }
.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 0; background: transparent; color: var(--ink); flex: none;
}
.iconbtn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.iconbtn.big { width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); }
.iconbtn.big svg { width: 26px; height: 26px; }

label.f { display: grid; gap: 6px; }
label.f > span { font-size: 14px; font-weight: 600; color: var(--muted); }
label.f em { font-style: normal; font-weight: 400; margin-left: 4px; }
input:not([type]), input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], input[type=tel], select, textarea {
  width: 100%; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; min-height: 48px; font-size: 16px;
}
input:focus, textarea:focus, select:focus { border-color: var(--jade); outline: none; box-shadow: 0 0 0 3px var(--jade-soft); }
textarea { resize: vertical; line-height: 1.5; }
.codeinput { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }
.stack { display: grid; gap: 14px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btnrow > .btn { flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 7px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 15px; font-weight: 500; color: var(--ink);
}
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.chip.guess-chip:not(.on) { border-color: var(--sun); background: var(--sun-soft); }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg.small button { padding: 5px 11px; font-size: 13px; min-height: 32px; }

.stamp {
  display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 6px;
  border: 1.5px solid currentColor; line-height: 1.4; white-space: nowrap;
}
.st-inquiry .stamp, .stamp.st-inquiry { color: var(--sky); background: var(--sky-soft); }
.st-confirmed .stamp, .stamp.st-confirmed { color: var(--jade); background: var(--jade-soft); }
.st-changed .stamp, .stamp.st-changed { color: var(--amber); background: var(--amber-soft); }
.st-cancelled .stamp, .stamp.st-cancelled { color: var(--stone); }
.st-done .stamp, .stamp.st-done { color: var(--muted); }
.st-noshow .stamp, .stamp.st-noshow { color: var(--red); background: var(--red-soft); }
.t-ch { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; font-weight: 500; }

.note { display: flex; gap: 8px; align-items: flex-start; border-radius: var(--r-md); padding: 11px 14px; font-size: 15px; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.warnnote { background: var(--red-soft); color: var(--red); }
.infonote { background: var(--sky-soft); color: var(--sky); }
.flaglist { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.flaglist li { background: var(--amber-soft); color: var(--amber); border-radius: 10px; padding: 8px 12px; font-size: 14.5px; }

.spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .7s linear infinite; vertical-align: -3px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- boot / fatal ---------- */
.boot, .fatal { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 24px; }
.boot .logo, .fatal .logo { width: 56px; height: 56px; }
.boot .logo { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }

/* ---------- landing ---------- */
.landing { max-width: 1080px; margin: 0 auto; padding: 18px 18px 40px; }
.land-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.land-top .seg { margin-left: auto; }
.wordmark { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); }
.tagline { display: inline-flex; gap: 8px; color: var(--muted); font-size: 13px; }
.tagline span + span::before { content: "/"; margin-right: 8px; color: var(--line); }
.land-grid { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 900px) { .land-grid { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 56px; margin-top: 64px; } }
.hero h1 { font-size: clamp(30px, 7.5vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; }
.hero-sub { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 34em; }
.demo { margin-top: 26px; display: grid; grid-template-columns: 1fr auto 1.1fr; align-items: center; gap: 10px; }
.demo-lbl { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.bubble { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 11px 13px; font-size: 14px; line-height: 1.4; }
.demo-arrow { color: var(--jade); }
.demo-arrow svg { width: 26px; height: 26px; }
.demo-out { display: grid; gap: 8px; }
.mini-ticket {
  position: relative; background: var(--surface); border-radius: 12px; padding: 9px 12px 9px 18px; font-size: 13.5px; line-height: 1.35;
  border: 1.5px solid var(--line); box-shadow: var(--shadow);
}
.mini-ticket::before { content: ""; position: absolute; left: 7px; top: 9px; bottom: 9px; border-left: 2px dotted var(--jade); }
.mini-ticket.vi::before { border-left-color: var(--sun); }
.demo-foot { margin-top: 14px; display: flex; gap: 8px; align-items: center; color: var(--jade); font-weight: 600; font-size: 15px; }
.demo-foot svg { width: 20px; height: 20px; }
@media (max-width: 520px) {
  .demo { grid-template-columns: 1fr; }
  .demo-arrow { transform: rotate(90deg); justify-self: center; }
}
.authcard { background: var(--surface); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 16px; }
.authcard h2 { font-size: 22px; }
.switch { text-align: center; color: var(--muted); font-size: 15px; }

/* ---------- welcome ---------- */
.welcome { max-width: 420px; margin: 0 auto; padding: 64px 20px 40px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.welcome .logo { width: 64px; height: 64px; }
.welcome h1 { font-size: 28px; font-weight: 800; }
.bigcode { display: flex; gap: 6px; }
.bigcode span { display: grid; place-items: center; width: 46px; height: 58px; border-radius: 12px; background: var(--surface); border: 2px solid var(--ink); font-size: 28px; font-weight: 800; }
.welcome .btn.big { width: 100%; margin-top: 8px; }

/* ---------- app shell ---------- */
.appbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); padding-top: env(safe-area-inset-top, 0px); }
.appbar-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; min-height: 44px; }
.brand .logo { width: 30px; height: 30px; }
.shopname { margin-left: auto; font-weight: 600; font-size: 15px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45vw; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: grid; grid-template-columns: repeat(var(--tab-count, 4), 1fr);
  background: var(--surface); box-shadow: var(--shadow-up);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
}
.tabbar.two { grid-template-columns: 1fr 1fr; }
.tab { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; border-radius: 12px; }
.tab-ic { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 999px; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] .tab-ic { background: var(--jade-soft); color: var(--jade); }
.tab-new .tab-ic { background: var(--jade); color: var(--jade-ink); width: 48px; height: 34px; }
.tab-new[aria-current="page"] .tab-ic { background: var(--jade-deep); color: var(--jade-ink); }
main { max-width: 1080px; margin: 0 auto; padding: 6px 16px calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom, 0px)); }
main.view-new { padding-bottom: calc(var(--tabbar-h) + 140px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) {
  .tabbar {
    position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); bottom: auto; box-shadow: none; background: transparent;
    display: flex; gap: 6px; max-width: 1080px; margin: 0 auto; padding: 0 12px 10px;
  }
  .tab { display: flex; align-items: center; gap: 6px; font-size: 15px; padding: 4px 14px 4px 4px; border-radius: 999px; }
  .tab[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow); }
  .tab-new { margin-left: auto; order: 9; background: var(--jade); color: var(--jade-ink); padding-right: 18px; }
  .tab-new .tab-ic { background: transparent; width: 34px; }
  .tab-new[aria-current="page"] { background: var(--jade-deep); color: var(--jade-ink); }
  main { padding-bottom: 60px; }
  main.view-new { padding-bottom: 60px; }
}
.pagetitle { font-size: 26px; font-weight: 800; margin: 8px 0 16px; }

/* ---------- board ---------- */
.dayhead { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px; margin: 4px -6px 6px; }
.dayttl { position: relative; display: grid; justify-items: center; cursor: pointer; padding: 4px 0; }
.day-rel { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.day-date { font-size: 14px; color: var(--muted); font-weight: 500; }
.dayttl input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; border: 0; padding: 0; }
.daychips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.counts { display: flex; gap: 12px; margin-left: auto; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.counts b { color: var(--ink); margin-left: 2px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.dot.jade { background: var(--jade); } .dot.sky { background: var(--sky); } .dot.amber { background: var(--amber); }

.newbanner {
  position: sticky; top: calc(66px + env(safe-area-inset-top, 0px)); z-index: 15; width: 100%; margin: 4px 0 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper); padding: 11px 16px; font-weight: 700; box-shadow: var(--shadow);
}
.obcard, .notifcard, .setcard, .pastecard, .block, .ed-ticket, .plainlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.obcard { padding: 16px; margin-bottom: 14px; }
.ob-head { display: flex; align-items: baseline; justify-content: space-between; }
.ob-head h2 { font-size: 17px; }
.ob-count { font-weight: 700; color: var(--muted); }
.ob-bar { height: 6px; border-radius: 99px; background: var(--surface-2); margin: 10px 0 6px; overflow: hidden; }
.ob-bar span { display: block; height: 100%; background: var(--sun); border-radius: 99px; transition: width .4s; }
.ob-list { list-style: none; padding: 0; margin: 0 0 4px; }
.ob-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 2px; border: 0; background: none; text-align: left; text-decoration: none; color: inherit; font-size: 15.5px; }
.ob-item > svg:last-child { margin-left: auto; color: var(--muted); }
.ob-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.ob-check svg { width: 15px; height: 15px; }
.ob-list li.ok .ob-check { background: var(--jade); border-color: var(--jade); color: var(--jade-ink); }
.ob-list li.ok .ob-item > span:nth-child(2) { color: var(--muted); text-decoration: line-through; }
.notifcard { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 14px; background: var(--sky-soft); border-color: transparent; color: var(--sky); }
.notifcard > svg { flex: none; margin-top: 2px; }
.notifcard p { font-size: 13.5px; margin-top: 2px; }
.notifcard .btn { margin-left: auto; }

/* the ticket */
.tickets { display: grid; gap: 12px; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.t-main { display: grid; grid-template-columns: 86px minmax(0, 1fr); width: 100%; border: 0; background: none; text-align: left; padding: 0; color: inherit; }
.stub { position: relative; display: grid; align-content: center; justify-items: center; padding: 16px 6px; border-right: 2px dashed var(--line); }
.stub::before, .stub::after {
  content: ""; position: absolute; right: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
}
.stub::before { top: -10px; }
.stub::after { bottom: -10px; }
.t-time { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.t-time.none { color: var(--muted); font-size: 20px; }
.t-dur { font-size: 12.5px; color: var(--muted); margin-top: 3px; text-align: center; }
.t-body { display: grid; gap: 4px; padding: 14px 14px 12px 16px; min-width: 0; }
.t-line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-who { font-weight: 700; font-size: 16.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 100%; line-height: 1.3; }
.t-what { font-size: 15.5px; }
.t-note { font-size: 14px; color: var(--muted); }
.t-flag { justify-self: start; font-size: 13px; font-weight: 600; color: var(--amber); background: var(--amber-soft); border-radius: 6px; padding: 2px 8px; }
.t-flag.red { color: var(--red); background: var(--red-soft); }
.t-acts { display: flex; gap: 8px; padding: 0 12px 12px 102px; }
.t-acts .act { flex: 1; min-height: 46px; }
.t-acts .iconbtn { border: 1.5px solid var(--line); width: 46px; height: 46px; }
.ticket.conflict { border-color: var(--red); }
.ticket.conflict::after, .ticket.st-changed::after, .ticket.st-inquiry::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red);
}
.ticket.st-changed::after { background: var(--amber); }
.ticket.st-inquiry::after { background: var(--sky); }
.ticket.st-cancelled { box-shadow: none; background: var(--surface-2); }
.ticket.st-cancelled .t-main { opacity: .55; }
.ticket.st-cancelled .t-what { text-decoration: line-through; }
.ticket.st-done .t-time, .ticket.st-noshow .t-time { color: var(--muted); }
.sec-title { font-size: 15px; color: var(--muted); font-weight: 700; margin: 26px 0 10px; }
.pad { padding: 4px 2px; }
.empty { text-align: center; padding: 34px 20px; border: 2px dashed var(--line); border-radius: var(--r-xl); display: grid; justify-items: center; gap: 8px; }
.empty-art .logo, .empty-art svg { width: 52px; height: 52px; opacity: .9; }
.empty-art svg { color: var(--muted); }
.empty h2 { font-size: 19px; margin-top: 4px; }
.empty p { color: var(--muted); max-width: 26em; }
.empty .btn { margin-top: 8px; }

.plainlist { overflow: hidden; }
.plainlist.flat { border: 0; border-radius: 0; background: transparent; margin: 0 -4px; }
.pl-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; border: 0; background: none; text-align: left; color: inherit; }
.pl-row + .pl-row { border-top: 1px solid var(--line); }
.pl-row.tap:hover { background: var(--surface-2); }
.pl-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.pl-main.col { flex-direction: column; align-items: flex-start; gap: 1px; }
.pl-meta { display: grid; justify-items: end; gap: 1px; text-align: right; flex: none; }
.pl-row > svg:last-child { color: var(--muted); flex: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--jade-soft); color: var(--jade); font-weight: 800; flex: none; }

/* ---------- new booking ---------- */
.pastecard { padding: 20px 18px; display: grid; gap: 14px; max-width: 640px; margin: 8px auto 0; }
.pastecard h1 { font-size: 24px; font-weight: 800; }
.pastebtn { min-height: 60px; border: 2px dashed var(--jade); color: var(--jade); background: var(--jade-soft); font-size: 16.5px; border-radius: 14px; }
.pastebtn:hover { border-style: solid; border-color: var(--jade); }
.pastebtn svg { width: 24px; height: 24px; }
.field-group { display: grid; gap: 8px; }
.fg-lbl { font-size: 14px; font-weight: 600; color: var(--muted); }
.paste-actions { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.paste-actions svg { width: 20px; height: 20px; }

.review { display: grid; gap: 18px; }
@media (min-width: 900px) { .review { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } .rv-side { position: sticky; top: 120px; } }
.rv-main { display: grid; gap: 12px; }
.rv-main h1 { font-size: 24px; font-weight: 800; }
.rv-side { display: grid; gap: 14px; }
.back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; text-decoration: none; padding-left: 0; }
.back svg { width: 18px; height: 18px; }

.ed-ticket { display: grid; grid-template-columns: 96px minmax(0, 1fr); box-shadow: var(--shadow); overflow: hidden; }
.ed-stub { position: relative; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 16px 8px; border-right: 2px dashed var(--line); background: var(--surface-2); }
.ed-stub::before, .ed-stub::after { content: ""; position: absolute; right: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.ed-stub::before { top: -10px; } .ed-stub::after { bottom: -10px; }
.ed-stub .t-time { font-size: 27px; }
.ed-rows { display: grid; }
.erow {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 18px; align-items: center; gap: 10px;
  width: 100%; border: 0; background: none; text-align: left; padding: 13px 12px 13px 16px; color: inherit; min-height: 56px; position: relative;
}
.erow + .erow { border-top: 1px solid var(--line); }
.erow:hover { background: var(--surface-2); }
.erow.warn { background: var(--amber-soft); }
.erow.warn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--amber); }
.er-lbl { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.er-val { display: grid; gap: 3px; font-size: 16px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.er-empty { color: var(--muted); font-weight: 500; }
.er-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.erow { border-radius: 0; }
.er-sub { font-size: 13px; font-weight: 500; color: var(--muted); }
.er-why { font-size: 13.5px; font-weight: 500; color: var(--amber); }
.er-chev { color: var(--muted); display: grid; }
.badge { font-size: 12px; font-weight: 700; color: var(--amber); border: 1.5px solid var(--amber); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.guess { display: inline-flex; align-items: center; min-height: 38px; justify-self: start; margin-top: 2px; font-size: 14.5px; font-weight: 700; color: var(--ink); background: var(--sun); border-radius: 999px; padding: 4px 14px; }
@media (max-width: 560px) {
  .ed-ticket { grid-template-columns: 1fr; }
  .ed-stub { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 12px; border-right: 0; border-bottom: 2px dashed var(--line); padding: 14px 18px; }
  .ed-stub::before, .ed-stub::after { right: auto; top: auto; bottom: -10px; }
  .ed-stub::before { left: -10px; } .ed-stub::after { right: -10px; }
  .erow { grid-template-columns: 64px minmax(0, 1fr) auto 18px; padding-left: 14px; }
}
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.check svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.check.jade { color: var(--jade); background: var(--jade-soft); border-color: transparent; }
.check.amber { color: var(--amber); background: var(--amber-soft); border-color: transparent; }
.check.red { color: var(--red); background: var(--red-soft); border-color: transparent; font-weight: 600; }

.block { padding: 16px; display: grid; gap: 12px; }
.block h3 { font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.block summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.meaning { font-size: 14px; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.meaning b { color: var(--ink); margin-right: 4px; }
.src { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 12px; font-size: 14px; }

.staffcard { border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; background: var(--surface); display: grid; gap: 3px; }
.sc-top { display: flex; align-items: center; justify-content: space-between; }
.sc-time { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.sc-date { font-weight: 600; color: var(--muted); }
.sc-what { font-size: 16.5px; font-weight: 700; margin-top: 4px; }
.sc-note { background: var(--sun-soft); border-radius: 8px; padding: 6px 10px; margin-top: 6px; font-size: 15px; }

.savebar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); z-index: 22;
  background: var(--surface); box-shadow: var(--shadow-up); padding: 10px 16px; display: grid; gap: 6px;
}
.savebar-in { display: flex; gap: 10px; max-width: 1080px; margin: 0 auto; width: 100%; }
.savebar-in .btn { flex: 1; }
.savebar-in .btn.primary { flex: 1.4; }
.savebar p { max-width: 1080px; margin: 0 auto; width: 100%; }
@media (min-width: 900px) {
  .savebar { position: sticky; bottom: 0; left: auto; right: auto; margin: 18px -16px 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

/* ---------- sheets ---------- */
#sheets { position: relative; z-index: 50; }
.sheet-wrap { position: fixed; inset: 0; display: grid; align-items: end; justify-items: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 16, .42); opacity: 0; transition: opacity .2s; }
.sheet {
  position: relative; width: 100%; max-width: 640px; max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px));
  overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 6px 18px calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .3, 1);
  outline: none;
}
.sheet-wrap.on .sheet-backdrop { opacity: 1; }
.sheet-wrap.on .sheet { transform: none; }
.sheet-grip { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 4px auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0 10px; position: sticky; top: -6px; background: var(--surface); z-index: 1; }
.sheet-head h2 { font-size: 19px; font-weight: 800; }
.sheet-body { display: grid; gap: 14px; }
@media (min-width: 720px) {
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 22px; max-width: 520px; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .18s, opacity .18s; padding-bottom: 22px; }
  .sheet.wide { max-width: 680px; }
  .sheet-wrap.on .sheet { opacity: 1; }
  .sheet-grip { display: none; }
}
.menu-sec { display: grid; gap: 10px; padding-bottom: 6px; }
.menu-lbl { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--muted); }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; font-weight: 600; font-size: 16px; }
.menu-item:hover { background: var(--surface-2); }
.menu-item.danger { color: var(--red); }
.actlist { display: grid; gap: 8px; }
.detail-top { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.detail-top .stamp { justify-self: start; }
.dt-what { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 18px; }
.dt-who { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.dt-note { color: var(--muted); }
.logrow { padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.timegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.timegrid .chip { padding: 7px 0; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 8px 0; }
.stepper output { font-size: 44px; font-weight: 800; min-width: 2ch; text-align: center; }
.stepper.sm { gap: 6px; }
.stepper.sm output { font-size: 22px; }
.stepper.sm .iconbtn { border: 1.5px solid var(--line); width: 40px; height: 40px; }
.svcpick { display: grid; gap: 8px; }
.svcopt { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 54px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; font-weight: 600; font-size: 15.5px; }
.svcopt span:last-child { font-weight: 500; font-size: 13.5px; }
.svcopt.on { border-color: var(--jade); background: var(--jade-soft); box-shadow: inset 0 0 0 1px var(--jade); }
.samplelist { display: grid; gap: 10px; }
.sample { display: grid; gap: 8px; justify-items: start; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); }
.sample:hover { border-color: var(--jade); }
.sample-txt { white-space: pre-wrap; font-size: 14.5px; line-height: 1.45; }
.cust-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cust-stats div { display: grid; justify-items: center; padding: 12px 6px; border-radius: 12px; background: var(--surface-2); }
.cust-stats b { font-size: 22px; }
.cust-stats span { font-size: 13px; color: var(--muted); }
.histlist { display: grid; }
.hist { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }

/* ---------- customers & settings ---------- */
.searchbox { position: relative; margin-bottom: 14px; }
.searchbox svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.searchbox input { padding-left: 44px; border-radius: 999px; }
.setcard { padding: 18px 16px; display: grid; gap: 14px; margin-bottom: 14px; }
.setcard h2 { font-size: 18px; font-weight: 800; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.codechip { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); background: var(--surface); border-radius: 10px; padding: 8px 12px; font-weight: 800; letter-spacing: .14em; font-size: 17px; }
.codechip svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .view-settings, .view-customers { max-width: 720px; } }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--paper); padding: 12px 16px 12px 18px; border-radius: 14px;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 80; width: max-content; max-width: calc(100vw - 32px); box-shadow: 0 8px 28px rgba(0, 0, 0, .25); font-size: 15px;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { border: 0; background: none; color: var(--sun); font-weight: 800; padding: 4px; white-space: nowrap; }
.view-new ~ #toast, body:has(.savebar) #toast { bottom: calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { #toast { bottom: 28px; } body:has(.savebar) #toast { bottom: 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .spin { animation-duration: 1.5s !important; }
}


/* Generic shop operations */
select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 10px; width: 100%; }
.form-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.check-option { display:flex; align-items:center; gap:10px; min-height:44px; padding:4px 0; }
.check-option input[type=checkbox] { width:22px; height:22px; flex:none; accent-color:var(--jade); }
.hours-grid { display:grid; gap:8px; }
.hours-day { display:grid; grid-template-columns:30px minmax(0,1fr); align-items:center; gap:8px; }
.hours-day input { min-width:0; width:100%; }
.capacity-input { width:90px; min-width:64px; text-align:center; }
.setrow:has(.capacity-input) { flex-wrap:wrap; }
.inbox-controls,.inquiry-heading { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; }
.inbox-controls { margin:12px 0 20px; }
.inbox-controls .f { flex:1; min-width:120px; }
.inbox-list { display:grid; gap:12px; }
.inquiry-card { margin:0; }
.inquiry-card.overdue { border-left:4px solid var(--red); }
.inquiry-card p { overflow-wrap:anywhere; }
.staff-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.tab-lbl { overflow-wrap:anywhere; text-align:center; }
@media(max-width:400px) { .form-pair { grid-template-columns:1fr; } .tab { font-size:11px; } }
/* ---------- 출시판 추가 ---------- */
.tabbar { grid-template-columns: repeat(5, 1fr); }
.tab-ic { position: relative; }
.tabbadge { position: absolute; top: -4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.tabbadge.static { position: static; }
.tabbadge[hidden] { display: none; }
.planbar { max-width: 1100px; margin: 8px auto 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--sky-soft); color: var(--sky); font-size: 14px; font-weight: 600; }
.planbar.warn { background: var(--amber-soft); color: var(--amber); }
@media (max-width: 720px) { .planbar { margin: 8px 16px 0; } }
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.bdg { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; line-height: 1.2; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.bdg svg { width: 13px; height: 13px; }
.bdg.jade { background: var(--jade-soft); color: var(--jade); border-color: transparent; }
.bdg.sun { background: var(--sun-soft); color: var(--amber); border-color: transparent; }
.bdg.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.pl-row.wrap { flex-wrap: wrap; }
.pl-row.wrap .pl-main { flex: 1 1 200px; flex-wrap: wrap; }
.pl-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.pl-row.unread b { color: var(--jade); }
.clamp1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sec-title { display: flex; align-items: center; gap: 6px; }
.sec-title svg { width: 18px; height: 18px; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pagehead .pagetitle { margin-bottom: 12px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chips.scroll .chip { flex: none; }
.pastebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pastebtns .shotbtn { grid-column: 1 / -1; }
@media (max-width: 420px) { .pastebtns { grid-template-columns: 1fr; } }
/* 캡처 올리기 */
.shots { border: 1.5px solid var(--jade); background: var(--jade-soft); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.shotrow { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.shot { position: relative; margin: 0; flex: none; width: 72px; height: 128px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shotx { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 17px; line-height: 26px; padding: 0; cursor: pointer; }
.shotbar { display: flex; justify-content: space-between; align-items: center; }
.shotprog { display: grid; gap: 4px; }
.shotprog .bar { height: 6px; border-radius: 3px; background: rgba(0,0,0,.08); overflow: hidden; }
.shotprog .bar i { display: block; height: 100%; background: var(--jade); transition: width .2s; }
.filebtn { display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border-color: var(--sky); color: var(--sky); background: var(--sky-soft); }
.dropzone { position: relative; border-radius: 14px; }
.dropzone textarea { width: 100%; }
.dropzone.over::after { content: attr(data-hint); position: absolute; inset: 0; display: grid; place-items: center; border: 2.5px dashed var(--jade); border-radius: 14px; background: color-mix(in srgb, var(--jade-soft) 92%, transparent); color: var(--jade); font-weight: 800; font-size: 18px; pointer-events: none; }
.note .btn { margin-left: auto; flex: none; }
.convo { display: grid; gap: 10px; max-height: 46vh; overflow-y: auto; padding: 4px 2px 8px; }
.msg { display: grid; gap: 2px; max-width: 85%; }
.msg.in { justify-self: start; }
.msg.out { justify-self: end; justify-items: end; }
.msg.out .bubble { background: var(--jade-soft); border-color: transparent; border-radius: 18px 18px 4px 18px; }
.msg .bubble { white-space: normal; word-break: break-word; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0 16px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi { display: grid; gap: 2px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.kpi b { font-size: clamp(17px, 5.2vw, 22px); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars { display: grid; gap: 8px; }
.bars + .bars { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.bar { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.bar-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--jade); }
.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 15px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.switch .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .sw { background: var(--jade); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.switch input:focus-visible + .sw { outline: 3px solid var(--focus); outline-offset: 2px; }
.setrow .switch { flex: 1; }
.inline-sel select { min-height: 44px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 420px) { .grid3 { grid-template-columns: 1fr; } }
.linkbox { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }
.cust-stats { grid-template-columns: repeat(4, 1fr); }
.cust-stats b { font-size: 18px; overflow-wrap: anywhere; text-align: center; }
.cust-stats span { text-align: center; }
/* 손님 예약 페이지 */
.bookwrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 48px; }
.book-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.book-top h1 { font-size: 26px; font-weight: 800; }
.book-done { display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* 운영자 화면 */
.adminwrap { max-width: 980px; margin: 0 auto; padding: 16px 16px 48px; }
.admintable { display: grid; gap: 4px; margin-top: 14px; }
.setcard.off { opacity: .6; }

/* 개인정보 처리방침 */
.policy { margin-bottom: 20px; }
.policy-sec { margin: 0 0 18px; }
.policy-sec h2 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.policy-sec p, .policy-sec li { line-height: 1.6; margin: 0 0 6px; overflow-wrap: anywhere; }
.policy-sec ul { margin: 0 0 6px; padding-left: 20px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--jade, #0D6E5C); }
.consent a { color: inherit; text-decoration: underline; }
.pl-row.dim { opacity: .6; }
/* 개인정보 요청 본인 확인 */
.warn-text { color: var(--red); }
label.radio, label.check { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 15px; }

/* 긴 요청사항·이름: 예약판 카드에서는 두 줄까지만, 긴 단어는 줄바꿈 */
.t-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket, .staffcard, .detail-top, .pl-row { overflow-wrap: anywhere; }

/* 시간 숫자는 절대 줄바꿈하지 않음 (긴 이름 줄바꿈 규칙이 시간까지 쪼개던 문제) */
.t-time, .t-dur, .slothead b { white-space: nowrap; overflow-wrap: normal; }
/* 바쁜 날: 시간대 묶음 + 촘촘한 카드 */
.boardfilter { margin: 4px 0 12px; position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 8px 0; }
.boardfilter .chip b { margin-left: 2px; }
.slot { margin-bottom: 14px; }
.slothead { display: flex; align-items: baseline; gap: 8px; padding: 6px 4px 8px; }
.slothead b { font-size: 17px; }
.slotcap { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--jade, #0f6b55); }
.slotcap.full { color: var(--red); }
.pastfold { margin: 0 0 14px; }
.pastfold summary { cursor: pointer; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); font-weight: 700; font-size: 14px; list-style: none; }
.pastfold summary::-webkit-details-marker { display: none; }
.pastfold summary::before { content: '▸ '; }
.pastfold[open] summary::before { content: '▾ '; }
.pastfold[open] summary { margin-bottom: 10px; }
.tickets.compact { gap: 8px; }
.tickets.compact .t-main { grid-template-columns: 66px minmax(0, 1fr); }
.tickets.compact .stub { padding: 10px 4px; }
.tickets.compact .t-time { font-size: 19px; }
.tickets.compact .t-dur { font-size: 11.5px; }
.tickets.compact .t-body { padding: 9px 10px 8px 12px; gap: 2px; }
.tickets.compact .t-note { -webkit-line-clamp: 1; }
.tickets.compact .t-acts { padding: 0 10px 9px 78px; }
.tickets.compact .t-acts .act { min-height: 40px; }
.tickets.compact .t-acts .iconbtn { width: 40px; height: 40px; }
.tickets.compact .ticket.st-done .t-acts, .tickets.compact .ticket.st-noshow .t-acts, .tickets.compact .ticket.st-cancelled .t-acts { display: none; }
.kpi b { white-space: nowrap; }
.kpi span { overflow-wrap: anywhere; }
/* 촘촘한 카드: 버튼을 오른쪽 한 줄로 → 카드 높이 절반 */
.tickets.compact .ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.tickets.compact .t-acts { padding: 8px 10px 8px 0; gap: 6px; }
.tickets.compact .t-acts .act { flex: none; min-height: 38px; padding: 0 12px; font-size: 13.5px; }
.tickets.compact .t-acts .iconbtn { width: 38px; height: 38px; }
.tickets.compact .t-flag.red { display: none; }
.tickets.compact .t-line1 .t-ch { display: none; }
.tickets.compact .badges { gap: 4px; }
.tickets.compact .stub::before, .tickets.compact .stub::after { display: none; }
.tickets.compact .t-note { display: none; }
.tickets.compact .t-what { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.morefold summary { cursor: pointer; padding: 12px 14px; color: var(--jade); font-weight: 700; font-size: 14px; list-style: none; }
.morefold summary::-webkit-details-marker { display: none; }
