/* 참사랑어머니회 안동점 — 관리자 (모바일 먼저) */
:root {
  --bg: #FFF8F4; --panel: #FBEDE7; --blush: #F4D9DA; --rose: #B87090; --rose-d: #9C5677; --leaf: #80B848;
  --ink: #33262B; --ink-2: #4A3940; --muted: #76666B; --line: rgba(51, 38, 43, .12); --line-2: rgba(51, 38, 43, .22);
  --card: #fff; --danger: #A8322D; --danger-bg: #FBEAE8; --ok-ink: #3D6B1C;
  --r-xl: 20px; --r-lg: 16px; --r-md: 12px; --pill: 999px;
  --ring: 0 0 0 3px rgba(156, 86, 119, .38);
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --tab-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
  --font: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lock, html.lock body { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--font); word-break: keep-all; overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--rose-d); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; top: 0; left: 0; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; opacity: 0; }
.ic { width: 20px; height: 20px; flex: none; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring); }
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: var(--ring); border-color: var(--rose-d); }

/* ── 버튼 ── */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: var(--pill); border: 1px solid transparent; font-weight: 650; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; color: var(--ink); transition: transform .16s var(--ease), background-color .18s, border-color .18s, color .18s; user-select: none; }
.b .ic { width: 18px; height: 18px; }
.b:active:not(:disabled) { transform: scale(.97); }
.b:disabled { opacity: .55; cursor: default; }
.b-pri { background: var(--ink); color: #fff; }
.b-sec { background: var(--card); border-color: var(--line-2); }
.b-ghost { color: var(--rose-d); }
.b-del { background: var(--card); border-color: rgba(168, 50, 45, .3); color: var(--danger); }
.b-danger { background: var(--danger); color: #fff; }
.b-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.b-lg { min-height: 52px; font-size: 16px; }
.b-block { width: 100%; }
@media (hover: hover) {
  .b-pri:hover:not(:disabled) { background: var(--ink-2); }
  .b-sec:hover:not(:disabled), .b-del:hover:not(:disabled) { border-color: var(--ink); }
  .b-ghost:hover { background: var(--panel); }
  .b-danger:hover { background: #8F2925; }
}
.b-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--pill); color: var(--ink); transition: transform .16s var(--ease), background-color .18s; flex: none; }
.b-icon:active:not(:disabled) { transform: scale(.94); }
.b-icon:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .b-icon:hover:not(:disabled) { background: var(--panel); } }
.lnk { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--rose-d); font-weight: 650; font-size: 14px; }
.lnk .ic { width: 16px; height: 16px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(156, 86, 119, .25); border-top-color: var(--rose-d); animation: spin .8s linear infinite; flex: none; }
.spin.sm { width: 16px; height: 16px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.b-sec .spin.sm, .b-del .spin.sm { border-color: var(--line-2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 첫 로딩 · 로그인 ── */
.boot { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(120% 70% at 50% 0%, var(--blush) 0%, var(--bg) 62%); }
.login-card { width: min(400px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px 22px; display: grid; gap: 14px; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.login-brand h1 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.login-brand p { color: var(--muted); font-size: 14px; }
.login-note { background: var(--panel); border-radius: var(--r-md); padding: 10px 14px; font-size: 14px; }
.mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--rose-d); color: #fff; font-weight: 800; font-size: 18px; flex: none; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); border-radius: var(--pill); }
.msg { min-height: 1.4em; color: var(--danger); font-weight: 600; font-size: 14px; }
.msg:empty { min-height: 0; }
.hint { text-align: center; color: var(--muted); font-size: 13px; }

/* ── 뼈대 ── */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 56px; padding: 0 6px 0 16px; background: rgba(255, 248, 244, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: -.02em; line-height: 1.2; }
.brand small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.topbar .mark { width: 34px; height: 34px; font-size: 15px; }
.side { display: none; }
.main { padding: 18px 16px calc(var(--tab-h) + var(--safe-b) + 28px); min-width: 0; max-width: 1200px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 4px var(--safe-b); background: rgba(255, 248, 244, .96); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); }
.tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; color: var(--muted); font-size: 11.5px; font-weight: 600; border-radius: var(--r-md); transition: color .18s, transform .16s var(--ease); }
.tabbar button .ic { width: 23px; height: 23px; padding: 0; transition: transform .2s var(--ease); }
.tabbar button:active { transform: scale(.95); }
.tabbar button.on { color: var(--rose-d); }
.tabbar button.on .ic { transform: translateY(-1px); }
.tabbar button.on span { font-weight: 750; }
.tabbar .nb { position: absolute; top: 6px; left: calc(50% + 6px); }
.nb { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--rose-d); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; line-height: 1; }
.weak { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; background: var(--blush); border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 18px; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.weak > .ic { color: var(--rose-d); }
.weak p { flex: 1 1 200px; }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
  .topbar, .tabbar { display: none; }
  .side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; padding: 22px 14px 18px; background: var(--panel); border-right: 1px solid var(--line); }
  .side .brand { padding: 0 8px; }
  .nav { display: grid; gap: 4px; }
  .nav button { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: var(--pill); font-weight: 650; color: var(--ink-2); text-align: left; transition: background-color .18s, color .18s, transform .16s var(--ease); }
  .nav button .ic { color: var(--rose-d); }
  .nav button:hover { background: rgba(255, 255, 255, .7); }
  .nav button:active { transform: scale(.97); }
  .nav button.on { background: var(--ink); color: #fff; }
  .nav button.on .ic { color: #fff; }
  .nav .nb { margin-left: auto; }
  .nav button.on .nb { background: #fff; color: var(--ink); }
  .side-ft { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
  .side-ft a, .side-ft button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: var(--pill); color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
  .side-ft a:hover, .side-ft button:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
  .side-ft .ic { width: 18px; height: 18px; }
  .main { padding: 32px clamp(24px, 3.5vw, 48px) 64px; }
}

/* ── 페이지 머리 · 공통 ── */
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 16px; margin-bottom: 18px; }
.ph > div:first-child { flex: 1 1 260px; min-width: 0; }
.ph h1 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.ph p { color: var(--muted); margin-top: 4px; font-size: 14.5px; }
.ph-act { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 519px) { .ph-act { width: 100%; } .ph-act .b { flex: 1 1 auto; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px 16px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; min-height: 28px; }
.card-h h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.card-h h2 .ic { color: var(--rose-d); }
.card-sub { color: var(--muted); font-size: 13px; }
.note { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.note.top { margin: -4px 0 14px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 16px; color: var(--muted); }
.empty { text-align: center; padding: 36px 20px; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r-xl); display: grid; justify-items: center; gap: 6px; }
.card .empty { border: 0; padding: 22px 8px; }
.empty-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--panel); color: var(--rose-d); margin-bottom: 4px; }
.empty-ic .ic { width: 24px; height: 24px; }
.empty-t { font-weight: 750; font-size: 16px; }
.empty-l { color: var(--muted); font-size: 14px; max-width: 420px; }
.empty .b { margin-top: 10px; }
.empty-s { color: var(--muted); font-size: 14px; padding: 6px 0; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--panel); border-radius: var(--r-lg); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.notice .ic { color: var(--rose-d); margin-top: 1px; }
.notice.warn { background: var(--danger-bg); }
.notice.warn .ic { color: var(--danger); }
.count { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; min-height: 1.2em; }

/* 배지 · 태그 */
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--panel); color: var(--ink); flex: none; }
.st-new { background: var(--rose-d); color: #fff; }
.st-contacted { background: var(--blush); color: #6E3553; }
.st-consulting { background: #fff; color: var(--rose-d); box-shadow: inset 0 0 0 1.5px var(--rose-d); }
.st-booked { background: #E6F1DA; color: var(--ok-ink); }
.st-done { background: #EFE8E6; color: var(--muted); }
.st-cancelled { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 9px; border-radius: var(--pill); font-size: 12px; font-weight: 700; background: var(--panel); color: var(--ink-2); white-space: nowrap; }
.tag .ic { width: 13px; height: 13px; }
.cat-notice { background: var(--ink); color: #fff; }
.cat-event { background: var(--rose-d); color: #fff; }
.cat-news { background: var(--blush); color: #6E3553; }
.t-pin { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.t-off { background: #EFE8E6; color: var(--muted); }
.t-wait { background: #FFF1D9; color: #7A5414; }
.t-feat { background: #E6F1DA; color: var(--ok-ink); }
.t-mute { background: var(--panel); color: var(--muted); margin-left: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.k-care { background: var(--rose); } .k-premium { background: var(--rose-d); } .k-sitter { background: var(--leaf); } .k-edu { background: var(--ink); } .k-etc { background: #B9AAAE; }
.kd { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }

/* 칩 */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 6px; scrollbar-width: none; scroll-padding: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--pill); background: var(--card); border: 1px solid var(--line-2); font-weight: 650; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: background-color .18s, color .18s, transform .16s var(--ease); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-n { font-size: 12px; font-weight: 700; opacity: .7; }
@media (pointer: coarse) { .chip { min-height: 44px; } }
@media (min-width: 900px) { .chips { margin: 0 0 14px; padding: 2px 2px 4px; flex-wrap: wrap; overflow: visible; } }

/* ── 폼 ── */
.form { display: grid; gap: 16px; }
.f { display: grid; gap: 6px; min-width: 0; }
.f > label { display: grid; gap: 6px; min-width: 0; }
.f-l { font-weight: 650; font-size: 14.5px; color: var(--ink); }
.f-l .req { font-style: normal; font-size: 12px; font-weight: 700; color: var(--rose-d); margin-left: 4px; }
.f-l .opt { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }
legend.f-l { padding: 0; margin-bottom: 8px; }
.f-h { color: var(--muted); font-size: 13px; line-height: 1.55; }
.form > .f-h { margin-top: -8px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card); font-size: 16px; line-height: 1.45; transition: border-color .18s, box-shadow .18s; -webkit-appearance: none; appearance: none;
}
select { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 20px center, right 14px center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
input[type=date], input[type=time] { min-width: 0; }
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #A3959A; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.ferr { color: var(--danger); font-size: 13.5px; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 520px) { .row2 { grid-template-columns: 1fr 1fr; } }
.row2.pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.row2.pair input { padding-left: 12px; padding-right: 8px; }
.grid-f { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .grid-f { grid-template-columns: 1fr 1fr; } }
.sub { display: grid; gap: 10px; }
.sub:empty { display: none; }
.sub-t { font-weight: 700; font-size: 14px; color: var(--rose-d); }
.sub .grid-f { background: var(--panel); border-radius: var(--r-lg); padding: 14px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@media (max-width: 519px) { .row-end .b { width: 100%; } }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.rpill { position: relative; }
.rpill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rpill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--card); font-weight: 650; transition: background-color .18s, color .18s; }
.rpill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.rpill input:focus-visible + span { box-shadow: var(--ring); }
.switches { display: grid; gap: 10px; }
.sw { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; position: relative; }
.sw input { position: absolute; opacity: 0; width: 48px; height: 30px; margin: 0; cursor: pointer; }
.sw-ui { position: relative; width: 48px; height: 30px; flex: none; border-radius: var(--pill); background: #DCCFD2; transition: background-color .2s; }
.sw-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(51, 38, 43, .25); transition: transform .22s var(--ease); }
.sw input:checked + .sw-ui { background: var(--rose-d); }
.sw input:checked + .sw-ui::after { transform: translateX(18px); }
.sw input:focus-visible + .sw-ui { box-shadow: var(--ring); }
.sw-t { display: grid; font-weight: 650; line-height: 1.35; }
.sw-t small { font-weight: 400; color: var(--muted); font-size: 13px; }

/* 사진 올리기 */
.up-pv { position: relative; aspect-ratio: 4 / 3; max-width: 360px; border-radius: var(--r-lg); background: var(--panel); overflow: hidden; display: grid; place-items: center; }
.up-pv img { width: 100%; height: 100%; object-fit: contain; }
.up-empty { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; }
.up-empty .ic { width: 28px; height: 28px; color: var(--rose); }
.up-act { display: flex; flex-wrap: wrap; gap: 8px; }
.up-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255, 248, 244, .86); font-weight: 650; font-size: 14px; }
.up.busy .up-act { opacity: .5; pointer-events: none; }

/* ── 대시보드 ── */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tile { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 14px 16px; display: grid; gap: 2px; transition: transform .16s var(--ease), border-color .18s; min-width: 0; }
.tile:active { transform: scale(.97); }
@media (hover: hover) { .tile:hover { border-color: var(--line-2); } }
.tile-l { color: var(--muted); font-weight: 650; font-size: 14px; }
.tile b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile small { color: var(--muted); font-size: 12.5px; }
.tile.hot { background: var(--rose-d); border-color: var(--rose-d); color: #fff; }
.tile.hot .tile-l, .tile.hot small { color: rgba(255, 255, 255, .86); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.dash-grid { display: grid; gap: 14px; }
@media (min-width: 1000px) {
  .dash-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .c-recent { grid-row: span 2; }
}
.rl { display: grid; }
.rl li + li { border-top: 1px solid var(--line); }
.rl-i { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 12px 4px; min-height: 60px; border-radius: var(--r-md); transition: background-color .18s, transform .16s var(--ease); }
.rl-i:active { transform: scale(.985); }
@media (hover: hover) { .rl-i:hover { background: var(--bg); } }
.rl-main { display: grid; gap: 1px; min-width: 0; }
.rl-main b { font-size: 15.5px; }
.rl-main span { color: var(--muted); font-size: 13.5px; }
.rl-main .rl-date { color: var(--rose-d); font-weight: 600; font-size: 13px; }
.rl-side { display: grid; justify-items: end; gap: 4px; flex: none; }
.rl-side time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.kb { display: grid; gap: 12px; }
.kb li { display: grid; grid-template-columns: minmax(0, 1fr) 40%; grid-template-areas: "l n" "bar bar"; gap: 6px 10px; align-items: center; }
.kb-l { grid-area: l; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
.kb b { grid-area: n; justify-self: end; font-size: 14px; font-variant-numeric: tabular-nums; }
.kb-bar { grid-area: bar; height: 8px; border-radius: var(--pill); background: var(--panel); overflow: hidden; }
.kb-bar i { display: block; height: 100%; width: 0; border-radius: var(--pill); background: var(--rose-d); transition: width .5s var(--ease); }
.ctiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
@media (min-width: 520px) { .ctiles { grid-template-columns: repeat(4, 1fr); } }
.ctile { display: grid; gap: 0; text-align: left; padding: 10px 12px; min-height: 60px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); transition: background-color .18s, border-color .18s, transform .16s var(--ease); }
.ctile:active { transform: scale(.97); }
.ctile span { color: var(--muted); font-size: 13px; font-weight: 600; }
.ctile b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ctile[aria-pressed="true"] { background: var(--panel); border-color: var(--rose-d); box-shadow: inset 0 0 0 1px var(--rose-d); }
.bc-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.bc-head span:first-child { color: var(--ink); font-weight: 650; }
.bc-plot { position: relative; display: grid; grid-template-columns: repeat(30, 1fr); align-items: end; height: 120px; padding-top: 4px; border-bottom: 1px solid var(--line-2); touch-action: pan-y; cursor: crosshair; }
.bc-col { height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; }
.bc-bar { display: block; width: 100%; max-width: 14px; height: 0; border-radius: 4px 4px 0 0; background: var(--rose-d); transition: height .45s var(--ease), background-color .15s; }
.bc-bar.zero { height: 0; }
.bc-col.hl .bc-bar { background: var(--ink); }
.bc-col.hl { background: rgba(156, 86, 119, .07); }
.bc-grid { position: absolute; left: 0; right: 0; top: 4px; border-top: 1px dashed var(--line-2); pointer-events: none; }
.bc-grid em { position: absolute; right: 0; top: -18px; font-style: normal; font-size: 11.5px; color: var(--muted); }
.bc-tip { position: absolute; bottom: calc(100% - 6px); z-index: 2; display: grid; gap: 1px; padding: 7px 11px; border-radius: var(--r-md); background: var(--ink); color: #fff; font-size: 12.5px; white-space: nowrap; pointer-events: none; }
.bc-tip b { font-size: 12.5px; }
.bc-x { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }
.bc-tbl { margin-top: 10px; font-size: 13.5px; }
.bc-tbl summary { cursor: pointer; color: var(--rose-d); font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.bc-tbl table { width: 100%; border-collapse: collapse; margin-top: 4px; font-variant-numeric: tabular-nums; }
.bc-tbl th, .bc-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.bc-tbl th:first-child { text-align: left; font-weight: 600; }
.bc-tbl thead th { color: var(--muted); font-weight: 600; font-size: 12.5px; }

/* ── 예약·상담 목록 ── */
.filters { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
@media (min-width: 600px) { .filters { grid-template-columns: 240px minmax(0, 1fr); } }
.search { position: relative; display: block; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 44px !important; }
.rq-list { display: grid; gap: 10px; }
.rq { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); transition: transform .16s var(--ease), border-color .18s; }
.rq:active { transform: scale(.985); }
.rq-main { display: grid; gap: 4px; width: 100%; text-align: left; padding: 14px 64px 14px 16px; border-radius: var(--r-xl); }
.rq-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.rq-name { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rq-name b { font-size: 17px; letter-spacing: -.02em; }
.rq-name span { color: var(--ink-2); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.rq-meta { color: var(--muted); font-size: 13.5px; }
.rq-memo { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--ink-2); background: var(--bg); border-radius: 10px; padding: 6px 10px; margin-top: 2px; }
.rq-memo .ic { width: 15px; height: 15px; color: var(--rose-d); margin-top: 2px; }
.rq-time { color: var(--muted); font-size: 12.5px; }
.rq-call { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--panel); color: var(--rose-d); transition: transform .16s var(--ease), background-color .18s; }
.rq-call:active { transform: translateY(-50%) scale(.92); }
.tw { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 650; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FFFCFA; white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background-color .15s; }
.tbl tbody tr:hover { background: var(--bg); }
.tbl tbody tr:focus-visible { box-shadow: inset var(--ring); }
.tbl .nw { white-space: nowrap; font-variant-numeric: tabular-nums; }
.memo-ic { display: inline-flex; vertical-align: -3px; margin-left: 6px; color: var(--rose-d); }
.memo-ic .ic { width: 16px; height: 16px; }

/* ── 서랍 (상세·편집) ── */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(51, 38, 43, .38); animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: 100%; display: flex; flex-direction: column; background: var(--bg); animation: drawerIn .32s var(--ease-drawer); }
@keyframes drawerIn { from { transform: translateX(100%); } }
@media (min-width: 640px) { .drawer { width: 600px; border-radius: 24px 0 0 24px; box-shadow: -24px 0 60px rgba(51, 38, 43, .16); } @keyframes drawerIn { from { transform: translateX(48px); opacity: 0; } } }
.dh { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 18px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--bg); flex: none; }
.dh-t { flex: 1; min-width: 0; }
.dh h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.dh p { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 28px; display: grid; gap: 22px; align-content: start; -webkit-overflow-scrolling: touch; }
.df { flex: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: rgba(255, 248, 244, .97); }
.df .b-pri { flex: 1 1 140px; }
@media (min-width: 640px) { .db { padding: 22px 26px 32px; } .df { padding: 14px 26px; } .df .b-pri { flex: 0 0 auto; min-width: 140px; } }
.sec { display: grid; gap: 10px; }
.sec h3 { font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; }
.sec .f-h { margin-top: -4px; }
.callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.b-call, .b-sms { min-height: 56px; font-size: 16px; border-radius: var(--r-lg); }
.b-call { background: var(--rose-d); color: #fff; }
.b-sms { background: var(--card); border-color: var(--line-2); }
.b-call .ic, .b-sms .ic { width: 20px; height: 20px; }
.callnum { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13.5px; margin-top: -12px; }
.callnum span:first-child { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--card); font-weight: 650; font-size: 14.5px; transition: background-color .18s, color .18s, border-color .18s, transform .16s var(--ease); }
.seg button:active { transform: scale(.96); }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.kv { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 14px; }
.kv > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
.kv > div + div { border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 13.5px; }
.kv dd { margin: 0; font-weight: 600; font-size: 14.5px; }
.msgbox { background: var(--panel); border-radius: var(--r-lg); padding: 14px; }
.msgbox h4 { font-size: 13px; color: var(--rose-d); margin-bottom: 4px; }
.msgbox p { white-space: pre-wrap; }
.save-st { font-size: 13px; color: var(--muted); min-height: 1.3em; }
.save-st.ok { color: var(--ok-ink); }
.save-st.err { color: var(--danger); font-weight: 600; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.qchip { min-height: 40px; padding: 0 13px; border-radius: var(--pill); background: var(--panel); font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: background-color .18s, transform .16s var(--ease); }
.qchip:active { transform: scale(.95); }
@media (hover: hover) { .qchip:hover { background: var(--blush); } }
@media (pointer: coarse) { .qchip { min-height: 44px; } }
.tl { display: grid; gap: 0; margin-top: 4px; }
.tl-i { position: relative; padding: 0 0 14px 22px; }
.tl-i::before { content: ''; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); }
.tl-i::after { content: ''; position: absolute; left: 8px; top: 22px; bottom: 2px; width: 1px; background: var(--line-2); }
.tl-i:last-child::after { display: none; }
.tl-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: -8px 0 -6px; }
.tl-h time { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tl-i p { white-space: pre-wrap; font-size: 14.5px; }
.tl-empty { color: var(--muted); font-size: 13.5px; padding: 4px 0; }
.b-icon.sm { width: 40px; height: 40px; color: var(--muted); }
.b-icon.sm .ic { width: 16px; height: 16px; }
.src { border-top: 1px dashed var(--line-2); padding-top: 14px; color: var(--muted); font-size: 12.5px; display: grid; gap: 2px; }
.src h4 { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 2px; }
.src p { word-break: break-all; }
.danger { display: flex; justify-content: flex-start; }

/* ── 소식 · 후기 카드 ── */
.cards { display: grid; gap: 10px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1280px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pc, .rv { width: 100%; height: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); transition: transform .16s var(--ease), border-color .18s; }
.pc:active, .rv:active { transform: scale(.985); }
@media (hover: hover) { .pc:hover, .rv:hover { border-color: var(--line-2); } }
.is-off { opacity: .62; }
.pc { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 12px; align-items: start; }
.pc-img { width: 84px; height: 84px; border-radius: var(--r-md); background: var(--panel); display: grid; place-items: center; overflow: hidden; color: var(--rose); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-img .ic { width: 28px; height: 28px; }
.pc-b { display: grid; gap: 4px; min-width: 0; padding-top: 2px; }
.pc-t { font-size: 15.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-s { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pc-b time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rv { display: grid; gap: 6px; padding: 16px; align-content: start; }
.rv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stars-t { color: var(--rose); letter-spacing: 1px; font-size: 15px; }
.rv-t { font-size: 15.5px; line-height: 1.4; }
.rv-hl { font-size: 14px; }
.rv-hl mark { background: linear-gradient(transparent 55%, var(--blush) 55%); color: var(--ink); padding: 0 2px; }
.rv-meta { color: var(--ink-2); font-size: 13.5px; }
.rv-src { color: var(--muted); font-size: 12.5px; }
.stars { display: flex; align-items: center; gap: 2px; }
.star { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--pill); color: #DCCFD2; transition: color .15s, transform .16s var(--ease); }
.star .ic { width: 30px; height: 30px; }
.star.on { color: var(--rose); }
.star:active { transform: scale(.9); }
.stars-v { margin-left: 8px; font-weight: 700; color: var(--ink-2); }

/* ── FAQ ── */
.fq-g { margin-bottom: 22px; }
.fq-g h2 { font-size: 16.5px; font-weight: 750; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.fq-g h2 small { color: var(--muted); font-weight: 500; font-size: 13px; }
.fq-list { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.fq { display: flex; align-items: center; gap: 4px; padding-right: 6px; }
.fq + .fq { border-top: 1px solid var(--line); }
.fq-main { flex: 1; min-width: 0; display: grid; gap: 6px; text-align: left; padding: 14px 8px 14px 16px; min-height: 56px; transition: background-color .15s; }
@media (hover: hover) { .fq-main:hover { background: var(--bg); } }
.fq-q { font-weight: 650; font-size: 15px; line-height: 1.45; }
.fq-ord { display: flex; flex: none; }

/* ── 사진 ── */
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1180px) { .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.slot { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; }
.slot-img { position: relative; aspect-ratio: 3 / 4; background: var(--panel); display: grid; place-items: center; }
.slot-img img { width: 100%; height: 100%; object-fit: cover; }
.slot-miss { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.slot-miss .ic { width: 26px; height: 26px; color: var(--rose); }
.slot-b { padding: 12px; display: grid; gap: 10px; flex: 1; align-content: space-between; }
.slot-h { display: grid; gap: 6px; justify-items: start; }
.slot-h b { font-size: 14.5px; line-height: 1.35; }
.slot-h .tag { margin: 0; }
.slot-act { display: grid; gap: 6px; }
.slot-act .b { width: 100%; padding: 0 10px; font-size: 14px; }
.slot.busy .slot-act { opacity: .5; pointer-events: none; }

/* ── 설정 ── */
.jump { margin-bottom: 16px; }
.set-grid { display: grid; gap: 14px; }
@media (min-width: 1100px) { .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.set-grid .card { scroll-margin-top: 72px; }
@media (min-width: 900px) { .set-grid .card { scroll-margin-top: 20px; } }
.bn-pv { border-radius: var(--r-md); background: var(--ink); color: #fff; text-align: center; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.bn-pv.empty { background: var(--panel); color: var(--muted); font-weight: 500; }
#set-acct .note b { color: var(--ink); word-break: break-all; }

/* ── 더보기 시트 (모바일) ── */
.sheet { position: fixed; z-index: 42; left: 0; right: 0; bottom: 0; background: var(--bg); border-radius: 24px 24px 0 0; padding: 8px 12px calc(14px + var(--safe-b)); display: grid; gap: 4px; animation: sheetIn .3s var(--ease-drawer); box-shadow: 0 -12px 40px rgba(51, 38, 43, .14); }
@keyframes sheetIn { from { transform: translateY(100%); } }
.sheet-grip { justify-self: center; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 4px 0 8px; }
.sheet-i { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 14px; border-radius: var(--r-lg); text-align: left; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 16px; transition: background-color .15s, transform .16s var(--ease); }
.sheet-i:active { transform: scale(.98); background: var(--panel); }
.sheet-i .ic { width: 24px; height: 24px; color: var(--rose-d); }
.sheet-i span { display: grid; }
.sheet-i small { color: var(--muted); font-weight: 400; font-size: 13px; }
.sheet-i.on { background: var(--panel); }

/* ── 확인창 · 토스트 ── */
.modal-bg { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(51, 38, 43, .45); animation: fade .16s ease-out; }
.modal { width: min(400px, 100%); background: var(--card); border-radius: var(--r-xl); padding: 22px 20px 18px; animation: pop .18s var(--ease); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal-t { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.modal-b { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; white-space: pre-line; }
.modal-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); display: flex; align-items: center; gap: 8px; width: max-content; max-width: min(calc(100vw - 32px), 460px); padding: 12px 18px; border-radius: var(--r-lg); background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; line-height: 1.45; box-shadow: 0 10px 30px rgba(51, 38, 43, .22); opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s ease-out, transform .25s var(--ease); pointer-events: none; }
.toast .ic { width: 18px; height: 18px; color: #B9DB94; }
.toast.err { background: var(--danger); }
.toast.err .ic { color: #fff; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
html.lock .toast { bottom: calc(var(--safe-b) + 84px); }
@media (min-width: 640px) { html.lock .toast { bottom: 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .spin { animation: spin 1.6s linear infinite !important; }
}
@media print { .side, .tabbar, .topbar, .weak { display: none !important; } }
