:root {
  color-scheme: light;
  --ink: #22292d;
  --muted: #7a858a;
  --line: #edf0f1;
  --paper: #fff;
  --subtle: #f7f9fa;
  --accent: #7057c8;
  --rail: 68px;
  --header: 68px;
  --toolbar: 66px;
  --time: 52px;
  --hour: 84px;
  --schedule: 924px;
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .46; }
button, input, select, textarea { outline-offset: 3px; }
:focus-visible { outline: 2px solid #8873d2; }
button { border: 0; }
button svg, a svg { flex: none; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
input, select, textarea { min-width: 0; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #929b9f; }
input, select { height: 42px; }
input, select, textarea { border: 1px solid #dfe4e6; border-radius: 6px; background: #fff; padding: 10px 12px; }
textarea { resize: vertical; min-height: 112px; line-height: 1.65; }
.hidden, [hidden] { display: none !important; }
.muted, .help-text { color: var(--muted); }
.app-header { height: var(--header); padding: 0 26px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.wordmark { display: flex; align-items: baseline; white-space: nowrap; color: #111a1e; font-size: 23px; font-weight: 750; letter-spacing: -.07em; text-decoration: none; }
.wordmark span { color: #7d6ab3; }
.header-right { display: flex; align-items: center; gap: 18px; }
.search-field { display: flex; align-items: center; gap: 9px; width: 234px; color: #6e797e; }
.search-field input { width: 100%; border: 0; background: transparent; height: 38px; padding: 7px 0; font-size: 13px; }
.search-field svg { width: 18px; height: 18px; }
.account { display: flex; align-items: center; gap: 8px; color: #46535a; font-size: 12px; white-space: nowrap; }
.account svg { width: 20px; height: 20px; }
.demo-badge { color: #8a9397; font-size: 10px; font-weight: 400; letter-spacing: .01em; padding: 4px 7px; border: 1px solid #edf0f1; border-radius: 4px; white-space: nowrap; }
.app-body { display: flex; min-height: calc(100dvh - var(--header)); align-items: flex-start; }
.rail { position: sticky; top: var(--header); width: var(--rail); flex: 0 0 var(--rail); height: calc(100dvh - var(--header)); min-height: 420px; background: #101b1f; display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 12px; z-index: 40; }
.nav-button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: transparent; color: #e3ebee; transition: background .15s, color .15s; }
.nav-button svg { width: 23px; height: 23px; }
.nav-button:hover { background: #233136; }
.nav-button.active, .nav-button[aria-current="page"] { color: #fff; background: #7659cc; }
.nav-button:last-child { margin-top: auto; }
.nav-label { display: none; }
.main { flex: 1; min-width: 0; background: #fff; }
.toolbar { min-height: var(--toolbar); padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: #fcfdfd; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pill, .icon-button, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #fff; border: 1px solid #dfe5e7; border-radius: 5px; height: 36px; padding: 0 12px; white-space: nowrap; font-size: 12px; font-weight: 450; }
.pill { border-radius: 18px; }
.icon-button { width: 36px; flex: 0 0 36px; padding: 0; }
.icon-button svg { width: 17px; height: 17px; }
.icon-button:hover, .pill:hover, .secondary:hover { border-color: #bcc9ce; background: #f7f9fa; }
.date-picker { display: inline-flex; align-items: center; gap: 0; border: 1px solid #dfe5e7; background: #fff; border-radius: 18px; overflow: hidden; white-space: nowrap; }
.date-picker .icon-button { border: 0; border-radius: 0; width: 30px; flex-basis: 30px; }
.date-picker button:not(.icon-button), .date-picker span { border: 0; background: transparent; padding: 0 9px; font-size: 12px; }
.date-picker input { width: 140px; border: 0; border-radius: 0; height: 34px; padding: 0 8px; font-size: 12px; background: #fff; }
.select-wrap { display: flex; align-items: center; min-width: 0; position: relative; }
.select-wrap select { height: 36px; padding: 0 29px 0 13px; border-radius: 18px; font-size: 12px; max-width: 170px; appearance: none; }
.select-wrap > svg { position: absolute; right: 10px; width: 13px; height: 13px; pointer-events: none; color: #7d8b92; }
.shop-label { font-size: 12px; font-weight: 500; color: #535e63; white-space: nowrap; }
.primary { display: inline-flex; justify-content: center; align-items: center; gap: 7px; border-radius: 5px; border: 1px solid #15262d; background: #15262d; color: #fff; height: 38px; padding: 0 16px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.primary svg { width: 16px; height: 16px; }
.primary:hover { background: #2d4149; }
.stats { display: flex; align-items: center; gap: 0; min-height: 38px; padding: 0 24px; border-bottom: 1px solid #f1f3f4; }
.stat { display: inline-flex; align-items: baseline; gap: 7px; color: #858e93; font-size: 11px; padding: 0 18px; background: transparent; border-right: 1px solid #e8edef; line-height: 1; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border: 0; }
.stat strong { color: #3f4a50; font-size: 12px; font-weight: 550; }
.toolbar .stats { padding: 0 0 0 12px; margin-left: 3px; border-bottom: 0; border-left: 1px solid #e6ebee; min-height: 22px; }
.toolbar .stat { padding: 0 10px; }
.toolbar .stat:first-child { padding-left: 0; }
.workspace { display: flex; align-items: stretch; min-width: 0; }
.calendar-shell { flex: 1; min-width: 0; }
.calendar-scroll { max-height: calc(100dvh - var(--header) - var(--toolbar) - 40px); min-height: 440px; overflow: auto; scrollbar-width: thin; scrollbar-color: #cfd8dd transparent; overscroll-behavior: contain; }
.staff-head { height: 108px; display: grid; grid-template-columns: var(--time) repeat(var(--columns, 6), minmax(0, 1fr)); position: sticky; top: 0; background: #fff; z-index: 10; border-bottom: 1px solid #e9eef0; }
.staff-cell { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; min-width: 0; padding: 10px 2px 9px; background: #fff; border: 0; border-radius: 0; }
.staff-cell:hover { background: #fcfdfd; }
.staff-name { font-size: 12px; color: #323d43; font-weight: 500; white-space: nowrap; }
.avatar { width: 58px; height: 58px; border-radius: 50%; border: 1px solid #c3dce2; box-shadow: 0 0 0 3px #f4f9fa; background-color: #e9eff1; background-image: url("assets/reference-portraits.png"); background-repeat: no-repeat; background-size: 1360px auto; background-position: var(--portrait-desktop, center); overflow: hidden; display: block; flex-shrink: 0; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.schedule-body { display: flex; position: relative; height: var(--schedule); min-height: var(--schedule); }
.time-axis { position: relative; width: var(--time); flex: 0 0 var(--time); border-right: 1px solid var(--line); background: #fff; }
.time-label { position: absolute; right: 8px; color: #849097; font-size: 10px; line-height: 14px; transform: translateY(-5px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.time-label:first-child { transform: translateY(3px); }
.day-columns { display: grid; grid-template-columns: repeat(var(--columns, 6), minmax(0, 1fr)); flex: 1; min-width: 0; }
.day-column { min-width: 0; position: relative; border-right: 1px solid #edf1f3; background: repeating-linear-gradient(to bottom, transparent 0, transparent 41px, #f5f7f8 41px, #f5f7f8 42px, transparent 42px, transparent 83px, #ecf0f2 83px, #ecf0f2 84px); }
.day-column:last-child { border-right: 0; }
.empty-slot { position: absolute; left: 0; right: 0; width: 100%; min-height: 20px; background: transparent; color: transparent; border: 0; border-radius: 0; padding: 0; z-index: 0; }
.empty-slot:hover { background: rgb(112 87 200 / .035); color: #abbac4; }
.empty-slot:focus-visible { outline: 1px solid #b9a8e5; outline-offset: -2px; }
.booking { position: absolute; z-index: 2; left: 3px; right: 3px; width: calc(100% - 6px); display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 7px 9px; overflow: hidden; border: 0; border-left: 3px solid var(--status-border, #bbc1c8); border-radius: 3px; background: var(--status-bg, #f0f1f3); color: var(--status-text, #404853); line-height: 1.35; box-shadow: none; }
.booking:hover { filter: brightness(.985); box-shadow: inset 0 0 0 1px rgb(43 65 74 / .15); }
.booking.selected { box-shadow: inset 0 0 0 1.5px #506f7c; }
.booking:focus-visible { outline: 2px solid #536d7a; outline-offset: -2px; }
.status-basic { --status-bg: #f0f1f3; --status-border: #bbc1c8; --status-text: #404853; }
.status-arrived { --status-bg: #fff0c9; --status-border: #ddb553; --status-text: #655125; }
.status-completed { --status-bg: #ddeef8; --status-border: #85bcd9; --status-text: #294a60; }
.status-noshow { --status-bg: #f8e1e5; --status-border: #d995a2; --status-text: #78424d; }
.booking-time { font-size: 12px; margin-bottom: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .86; }
.booking-name { font-weight: 600; font-size: 15px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.booking-service { font-size: 13px; font-weight: 400; margin-top: 3px; max-width: calc(100% - 13px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .86; }
.room-badge { position: absolute; right: 5px; bottom: 5px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 3px; color: #fff; background: var(--room-color, var(--room, #8b9eb6)); font-size: 10px; font-weight: 500; line-height: 1; }
.calendar-footer { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 20px; border-top: 1px solid #edf0f2; background: #fff; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #808a90; }
.legend-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 2px; background: var(--status-bg, #e8ecef); border-left: 2px solid var(--status-border, #b8c2c8); }
.footer-note { font-size: 10px; color: #a0a7ab; white-space: nowrap; }
.empty-message { position: absolute; top: 90px; left: var(--time); right: 0; z-index: 3; padding: 25px; color: #8a949a; text-align: center; line-height: 1.8; font-size: 13px; pointer-events: none; }
.empty-message small { display: block; font-size: 11px; margin-top: 5px; }
.detail-panel { width: 336px; flex: 0 0 336px; border-left: 1px solid #e5ebee; background: #fff; max-height: calc(100dvh - var(--header) - var(--toolbar)); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d9e0e4 transparent; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #f1f3f4; min-height: 64px; gap: 12px; }
.panel-head h2, .panel-head h3, .panel-head > span { font-size: 13px; font-weight: 550; color: #66747b; }
.panel-head .icon-button { border: 0; width: 28px; height: 28px; flex-basis: 28px; color: #79868c; }
.panel-body { padding: 24px 22px 28px; }
.customer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.customer-heading h2, .customer-heading h3 { color: #26343b; font-size: 24px; font-weight: 550; letter-spacing: -.04em; }
.status-chip { display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--status-bg, #eef2f4); color: var(--status-text, #64727a); font-size: 10px; line-height: 1; padding: 6px 8px; white-space: nowrap; font-weight: 450; }
.appointment-info { color: #52636d; font-size: 13px; line-height: 1.8; }
.appointment-info .muted { font-size: 12px; }
.panel-body > p.muted { font-size: 12px; line-height: 1.8; }
.panel-body > .help-text { margin-top: 18px; }
.caution-box { margin: 24px 0; padding: 12px 13px; border-left: 2px solid #d3ae6c; background: #fdf9f1; border-radius: 0 4px 4px 0; line-height: 1.7; font-size: 12px; color: #5c5446; }
.eyebrow { color: #8a969d; font-size: 10px; font-weight: 500; margin-bottom: 6px; letter-spacing: .01em; }
.caution-box .eyebrow { color: #a58b5e; }
.membership { margin: 23px 0; padding: 0 0 22px; border-bottom: 1px solid var(--line); line-height: 1.7; }
.membership h3, .membership p { font-size: 13px; font-weight: 450; }
.membership strong { font-size: 22px; font-weight: 550; letter-spacing: -.04em; color: #354a55; }
.membership strong small { color: #88979f; font-size: 11px; font-weight: 400; margin-left: 5px; letter-spacing: 0; }
.membership > .eyebrow { display: block; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.action-tile { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 56px; padding: 12px 8px; border: 1px solid #e0e7eb; border-radius: 5px; background: #fff; font-size: 12px; font-weight: 450; }
.action-tile svg { width: 17px; height: 17px; }
.action-tile:hover { background: #f5f8f9; }
.action-tile.main-action { color: #fff; background: #273e49; border-color: #273e49; }
.action-tile.main-action:hover { background: #3c5561; }
.detail-links { margin-top: 24px; }
.detail-link { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #edf1f3; padding: 14px 0; background: transparent; color: #586b75; font-size: 12px; text-align: left; }
.detail-link svg { width: 15px; height: 15px; color: #8a98a0; }
.detail-link:hover { color: #223c49; }
.note-preview { color: #7c8b93; font-size: 12px; line-height: 1.7; margin: 20px 0 0; white-space: pre-wrap; }
.status-buttons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 20px; }
.status-buttons button { padding: 6px 9px; border: 1px solid #e4eaed; border-radius: 4px; background: #fff; color: #8a959b; font-size: 10px; }
.status-buttons .current { background: #f2f5f6; color: #435e6b; border-color: #beced6; }
.subtle-link { padding: 6px 0; background: transparent; color: #86959d; font-size: 11px; text-align: left; }
.subtle-link:hover { color: #445e6d; text-decoration: underline; text-underline-offset: 3px; }
.page-content { max-width: 1160px; padding: 30px 32px 50px; margin: 0 auto; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.page-title h1, .page-title h2 { font-size: 23px; font-weight: 550; letter-spacing: -.035em; }
.page-title p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.customer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.customer-card { padding: 22px; border: 1px solid #e5ebee; background: #fff; border-radius: 6px; text-align: left; line-height: 1.8; }
.customer-card:hover { border-color: #b9cbd3; background: #fcfdfd; }
.customer-card h3 { font-size: 17px; font-weight: 550; margin-bottom: 8px; }
.customer-card p, .customer-card .muted { font-size: 12px; }
.customer-search { max-width: 360px; margin-bottom: 20px; }
.caution-text { display: block; margin-top: 12px; color: #b3996d; font-size: 10px; }
.pass-summary { display: flex; justify-content: space-between; gap: 10px; color: #607783; font-size: 12px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 13px; }
.pass-summary strong { font-weight: 550; }
.receipt-list { border-top: 1px solid #e6ecef; }
.receipt-row { display: grid; grid-template-columns: .8fr 1.6fr 1fr 1fr; align-items: center; gap: 16px; padding: 19px 12px; border-bottom: 1px solid #edf1f3; font-size: 13px; }
.receipt-row > strong { font-weight: 500; }
.receipt-row.head > :last-child { text-align: right; }
.receipt-row.head { font-size: 11px; color: #8b989f; padding-top: 13px; padding-bottom: 13px; }
.amount { font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; }
.payment-method { display: inline-flex; justify-content: center; border-radius: 3px; background: #f1f5f7; padding: 4px 8px; font-size: 11px; color: #72838c; width: fit-content; }
.receipt-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 15px; margin: 22px 0; color: #7c8a92; font-size: 12px; }
.receipt-total strong { font-size: 24px; font-weight: 550; color: #2b424e; }
.receipt-total strong small { font-size: 12px; margin-left: 5px; font-weight: 400; }
.setting-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.setting-card { border: 1px solid #e3ebee; border-radius: 6px; padding: 24px; }
.setting-card h2, .setting-card h3 { font-size: 15px; font-weight: 550; margin-bottom: 17px; }
.setting-card > p { color: #8b979e; font-size: 12px; line-height: 1.7; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid #edf1f3; font-size: 12px; }
.setting-row:last-child { border-bottom: 0; }
.setting-row > span:last-child { color: #7c8e99; }
.room-swatch { display: inline-flex; align-items: center; gap: 7px; }
.room-swatch::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--room-color, #a8b5bd); }
.setting-card > .secondary { margin-top: 20px; }
.setting-card > p + p { margin-top: 12px; }
.danger-text { color: #a56a73; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgb(24 39 46 / .31); padding: 24px; backdrop-filter: blur(2px); }
.modal { width: min(100%, 440px); max-height: calc(100dvh - 48px); overflow: auto; background: #fff; border-radius: 10px; box-shadow: 0 20px 90px rgb(20 37 45 / .14); }
.modal.wide { width: min(100%, 580px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 18px; font-weight: 550; letter-spacing: -.025em; }
.modal-header .icon-button { border: 0; height: 28px; width: 28px; flex-basis: 28px; color: #8b969b; }
.modal-body { padding: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-size: 12px; color: #687b86; }
.field input, .field select, .field textarea { width: 100%; font-size: 13px; color: #334d5b; }
.field label, label.field { font-weight: 450; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding: 18px 24px; }
.modal-actions .primary, .modal-actions .secondary { height: 40px; }
.modal-body .modal-actions { margin: 22px -24px -24px; }
.inline-option { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #71828c; padding: 8px 0; }
.inline-option input { width: 15px; height: 15px; padding: 0; accent-color: #7159bb; }
.form-error { border-radius: 4px; background: #fbf0f1; color: #a55d6a; padding: 10px 12px; font-size: 12px; line-height: 1.6; margin-bottom: 16px; }
.form-error:empty { display: none; }
.help-text { font-size: 11px; line-height: 1.7; }
.confirm-summary { padding: 17px; background: #f5f8f9; border-radius: 5px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; color: #667d89; font-size: 12px; }
.confirm-summary strong { color: #2e4c5b; font-size: 16px; font-weight: 550; }
.notice-card { padding: 18px; border: 1px solid #e6edf0; border-radius: 5px; background: #fafcfc; font-size: 12px; line-height: 1.8; color: #70848f; }
.notice-card > strong { display: block; margin-top: 6px; font-weight: 550; color: #425c6b; }
.toast { position: fixed; bottom: 28px; left: 50%; z-index: 2000; transform: translate(-50%, 12px); max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; padding: 12px 18px; background: #253b46; color: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgb(18 35 44 / .12); font-size: 12px; line-height: 1.5; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1600px) {
  .toolbar { padding-left: 28px; padding-right: 28px; }
  .booking { padding: 9px 11px; }
  .booking-name { font-size: 15px; }
  .booking-service { font-size: 13px; }
}
@media (max-width: 1150px) {
  .toolbar { padding: 13px 14px; gap: 8px; }
  .toolbar-left, .toolbar-right { gap: 6px; }
  .select-wrap select { max-width: 136px; }
  .shop-label { display: none; }
  .header-right { gap: 12px; }
  .search-field { width: 180px; }
  .detail-panel { width: 300px; flex-basis: 300px; }
  .panel-body { padding: 22px 18px; }
  .booking { padding: 7px 6px; }
  .booking-time { font-size: 12px; }
  .booking-service { font-size: 13px; }
  .customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) and (min-width: 701px) {
  .toolbar .select-wrap { display: none; }
  .detail-panel { position: fixed; right: 0; top: var(--header); bottom: 0; width: 336px; max-height: none; z-index: 70; box-shadow: -12px 0 45px rgb(27 45 55 / .08); }
  .search-field { width: 160px; }
}
@media (max-width: 700px) {
  :root { --header: 62px; --time: 34px; --toolbar: 96px; }
  body { padding-bottom: 64px; }
  .app-header { padding: 0 15px; gap: 9px; }
  .wordmark { font-size: 21px; letter-spacing: -.065em; }
  .header-right { gap: 10px; }
  .demo-badge { display: none; }
  .account { font-size: 10px; gap: 5px; }
  .account svg { width: 17px; height: 17px; }
  .search-field { width: 27px; }
  .search-field input { display: none; }
  .search-field svg { width: 20px; height: 20px; }
  .app-body { display: block; min-height: calc(100dvh - var(--header) - 64px); }
  .rail { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 64px; min-height: 0; border-top: 1px solid #e8edef; background: #fff; flex-direction: row; justify-content: space-around; padding: 4px 8px max(4px, env(safe-area-inset-bottom)); gap: 0; z-index: 90; }
  .nav-button { width: 60px; height: 50px; border-radius: 0; background: transparent; color: #94a0a7; flex-direction: column; gap: 4px; }
  .nav-button svg { width: 22px; height: 22px; }
  .nav-label { display: block; font-size: 10px; font-weight: 450; }
  .nav-button.active, .nav-button[aria-current="page"] { background: transparent; color: #6f55bd; }
  .nav-button:hover { background: #fafbfc; }
  .nav-button:last-child { margin-top: 0; }
  .main { width: 100%; }
  .toolbar { min-height: var(--toolbar); padding: 11px 11px 43px; gap: 6px; position: relative; }
  .toolbar-left, .toolbar-right { gap: 5px; }
  .toolbar .select-wrap, .toolbar .shop-label { display: none; }
  .toolbar-right > .icon-button { display: none; }
  .toolbar .pill { height: 32px; padding: 0 9px; font-size: 11px; }
  .toolbar .primary { height: 34px; padding: 0 10px; font-size: 11px; gap: 4px; }
  .toolbar .primary svg { width: 14px; height: 14px; }
  .date-picker { border-color: #e5eaed; }
  .date-picker .icon-button { width: 26px; height: 32px; flex-basis: 26px; }
  .date-picker span, .date-picker button:not(.icon-button) { font-size: 11px; padding: 0 4px; }
  .date-picker input { font-size: 11px; width: 121px; height: 32px; padding: 0 3px; }
  .stats { min-height: 35px; padding: 0 13px; justify-content: space-between; }
  .stat { font-size: 10px; padding: 0 10px; gap: 5px; }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { padding-right: 0; }
  .stat strong { font-size: 11px; }
  .toolbar .stats { position: absolute; left: 13px; right: 13px; bottom: 10px; min-height: 21px; padding: 0; margin: 0; border: 0; }
  .toolbar .stat { padding: 0 10px; }
  .toolbar .stat:first-child { padding-left: 0; }
  .toolbar .stat:last-child { padding-right: 0; }
  .workspace { display: block; }
  .calendar-scroll { max-height: calc(100dvh - var(--header) - var(--toolbar) - 64px - 34px); min-height: 320px; overflow-x: hidden; }
  .staff-head { height: 78px; grid-template-columns: var(--time) repeat(var(--columns, 6), minmax(0, 1fr)); }
  .staff-cell { padding: 9px 0 7px; gap: 7px; }
  .avatar { width: 31px; height: 31px; background-size: 850px auto; background-position: var(--portrait-mobile, center); box-shadow: 0 0 0 2px #f6fafb; }
  .staff-name { font-size: 10px; font-weight: 450; }
  .time-label { font-size: 8px; right: 4px; }
  .booking { left: 2px; right: 2px; width: calc(100% - 4px); padding: 7px 3px; border-left-width: 2px; border-radius: 3px; }
  .booking-time, .booking-service { display: none; }
  .booking-name { font-size: 11px; font-weight: 550; line-height: 1.35; letter-spacing: -.04em; }
  .room-badge { width: 13px; height: 13px; right: 3px; bottom: 4px; font-size: 8px; border-radius: 2px; }
  .calendar-footer { min-height: 34px; padding: 9px 12px; gap: 8px; }
  .legend { gap: 10px; }
  .legend-item { font-size: 9px; gap: 4px; }
  .legend-dot { width: 8px; height: 8px; flex-basis: 8px; }
  .footer-note { font-size: 8px; }
  .detail-panel { position: fixed; inset: var(--header) 0 64px 0; width: 100%; max-height: none; border-left: 0; z-index: 80; overflow: auto; }
  .panel-head { padding: 16px 22px; min-height: 58px; }
  .panel-body { max-width: 490px; padding: 24px 24px 36px; margin: 0 auto; }
  .customer-heading h2, .customer-heading h3 { font-size: 25px; }
  .action-tile { min-height: 58px; font-size: 13px; }
  .page-content { padding: 24px 17px 40px; }
  .page-title { gap: 12px; margin-bottom: 21px; }
  .page-title h1, .page-title h2 { font-size: 21px; }
  .page-title .primary { padding: 0 12px; }
  .customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .customer-card { padding: 17px 13px; }
  .customer-card h3 { font-size: 16px; }
  .customer-card p { font-size: 10px; }
  .pass-summary { gap: 5px; font-size: 10px; flex-wrap: wrap; }
  .receipt-row { grid-template-columns: .7fr 1.15fr .55fr 1fr; padding: 16px 1px; gap: 7px; font-size: 11px; }
  .receipt-row.head { font-size: 10px; }
  .receipt-total strong { font-size: 22px; }
  .setting-cards { grid-template-columns: 1fr; gap: 14px; }
  .setting-card { padding: 21px; }
  .modal-backdrop { padding: 14px; align-items: center; }
  .modal { max-height: calc(100dvh - 28px); border-radius: 8px; }
  .modal-header { padding: 20px; }
  .modal-body { padding: 20px; }
  .modal-actions { padding: 16px 20px; }
  .modal-body .modal-actions { margin: 22px -20px -20px; }
  .field-grid { gap: 0 11px; }
  .toast { bottom: 82px; font-size: 11px; }
}
@media (max-width: 370px) {
  .toolbar { padding-left: 7px; padding-right: 7px; }
  .toolbar-left { gap: 3px; }
  .toolbar .pill { padding: 0 7px; }
  .date-picker input { width: 110px; }
  .toolbar .primary { padding: 0 8px; }
  .header-right { gap: 7px; }
  .account { font-size: 9px; }
  .wordmark { font-size: 20px; }
  .booking-name { font-size: 9px; }
  .staff-name { font-size: 9px; }
  .legend { gap: 7px; }
  .footer-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Ticket packages and prepaid balance share a compact, readable summary. */
.customer-assets { margin: 24px 0; }
.customer-assets > .eyebrow { margin-bottom: 10px; font-weight: 500; }
.ticket-list { display: grid; gap: 0; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #eff1f2; font-size: 14px; }
.ticket-row > span { min-width: 0; overflow-wrap: anywhere; }
.ticket-row strong { font-size: 18px; font-weight: 600; white-space: nowrap; }
.customer-assets small { margin-left: 4px; font-size: 13px; font-weight: 400; }
.prepaid-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 13px; background: #f3f6f8; border-radius: 5px; font-size: 14px; }
.prepaid-row strong { color: #294553; font-size: 19px; font-weight: 600; white-space: nowrap; }
.completion-customer { margin-bottom: 23px; }
.completion-customer h3 { font-size: 21px; margin-bottom: 5px; font-weight: 600; }
.room-unassigned { color: #7f8b92 !important; background: transparent !important; border: 1px dashed #c6cdd1; }
.confirm-summary .form-error { margin-bottom: 0; }
#room-help { margin: -3px 0 0; }
#deduction-preview { margin: 18px 0 22px; }
#deduction-preview strong { font-size: 20px; overflow-wrap: anywhere; }
.pass-summary { gap: 14px; flex-wrap: wrap; }
.pass-summary strong { font-size: 14px; }
.field select option:disabled { color: #a3a8ad; }
@media(max-width:620px) {
 .customer-assets { margin: 22px 0; }
 .prepaid-row { padding: 14px 12px; }
 .nav-label { white-space: nowrap; }
}
.setting-chips { display:flex; flex-wrap:wrap; gap:12px 18px; margin:14px 0 22px; font-size:14px; }

/* =====================================================================
   사진 촬영·비교분석 (개발용 시제품) — 화면 구획: 진입 버튼 · 모달 공통 · 기록 목록 · 방향 선택 · 카메라(격자·수평계·안내)
   · 사진 확인 · 기준점 보정 · 강조 패널 · 지표 카드 · 비교(편집기·변화 카드) · 모바일
   ===================================================================== */
/* 진입 버튼 */
.face-entry > span { display: inline-flex; align-items: center; gap: 8px; color: #3f3383; font-weight: 500; }
.face-entry > span svg { color: var(--accent); }
.face-entry small { font-size: 10px; color: #8a7fc0; font-weight: 450; }
.face-cta { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: 10px; border: 1px solid #d9d0f6; background: linear-gradient(180deg, #f6f3ff, #efe9ff); color: #2d2466; text-align: left; }
.face-cta > svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 22px; }
.face-cta > svg:last-child { width: 16px; height: 16px; flex-basis: 16px; color: #8a7fc0; }
.face-cta span { display: grid; gap: 2px; flex: 1; }
.face-cta strong { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.face-cta small { font-size: 11px; color: #6a5fa8; }
.face-cta:hover, .face-cta:focus-visible { border-color: var(--accent); }
/* 모달 공통 */
.face-modal { width: min(100%, 760px); --cam-max-h: 58dvh; }
.face-modal.face-wide { width: min(100%, 1180px); }
.face-modal .modal-header { gap: 12px; }
.face-exit { flex: 0 0 auto; }
.face-sub { margin-top: 4px; font-size: 12px; color: var(--muted); }
.face-sub strong { color: var(--ink); font-weight: 600; }
.dev-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #efebfb; color: #5a45b0; font-size: 10px; font-weight: 500; }
.face-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; } /* 내용이 모달 폭을 밀어내지 않도록 */
.face-notice { padding: 10px 12px; border-radius: 6px; font-size: 12px; line-height: 1.6; background: #eef6f4; color: #23574e; }
.face-notice.error { background: #fbeaec; color: #8a2f3e; }
.face-privacy { padding: 10px 12px; border-radius: 6px; background: var(--subtle); }
.face-section { display: grid; gap: 10px; }
.face-section h3, .sub-head { font-size: 14px; font-weight: 650; }
.face-section h3 small, .sub-head small { font-size: 11px; color: var(--muted); font-weight: 450; margin-left: 4px; }
.face-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.primary.small-btn { height: 32px; padding: 0 12px; }
.face-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.face-choice-button { display: grid; gap: 4px; text-align: left; padding: 18px 16px; border: 1px solid #dfe5e7; border-radius: 8px; background: #fff; }
.face-choice-button strong { font-size: 15px; font-weight: 650; color: var(--ink); }
.face-choice-button span { font-size: 11px; color: var(--muted); }
.face-choice-button:hover, .face-choice-button:focus-visible { border-color: var(--accent); }
.face-records { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.face-record { width: 100%; display: grid; gap: 6px; text-align: left; padding: 8px; border: 1px solid #e3e8ea; border-radius: 8px; background: #fff; }
.face-record img, .face-thumb-missing { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 5px; background: #101d20; display: grid; place-items: center; color: #fff; font-size: 11px; }
.face-record span { display: grid; gap: 2px; }
.face-record strong { font-size: 12px; font-weight: 600; }
.face-record small { font-size: 10.5px; color: var(--muted); }
.face-record:hover, .face-record:focus-visible { border-color: var(--accent); }
/* 방향 선택 */
.view-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.view-pick input { position: absolute; opacity: 0; pointer-events: none; }
.view-pick span { display: grid; gap: 3px; height: 100%; padding: 12px; border: 1px solid #dfe5e7; border-radius: 8px; background: #fff; cursor: pointer; }
.view-pick strong { font-size: 14px; font-weight: 650; }
.view-pick small { font-size: 11px; color: var(--muted); line-height: 1.5; }
.view-pick em { font-style: normal; font-size: 10px; color: #6a5fa8; }
.view-pick input:checked + span { border-color: var(--accent); background: #f4f0ff; box-shadow: 0 0 0 2px rgb(112 87 200 / .15); }
.view-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cam-mode { font-size: 12px; color: #4a5960; }
.cam-mode b { color: var(--ink); }
/* 카메라: 상자 비율 = 카메라 프레임 비율, 영상은 늘이거나 자르지 않는다. 격자·검출 상자는 영상과 함께 반전 */
.cam-wrap, .photo-box-wrap { display: grid; justify-items: center; gap: 10px; }
.photo-box-wrap { background: #101d20; border-radius: 8px; padding: 6px; }
.cam-stage, .photo-box { position: relative; max-width: 100%; aspect-ratio: 3 / 4; width: min(100%, calc(var(--cam-max-h) * .75)); background: #101d20; border-radius: 8px; overflow: hidden; }
.cam-box { position: absolute; inset: 0; }
.cam-box.mirror { transform: scaleX(-1); }
.cam-box video, .photo-box canvas, .cam-live, .cam-grid-wrap { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: fill; }
.cam-live { pointer-events: none; }
.cam-grid-wrap { pointer-events: none; }
.cam-grid { width: 100%; height: 100%; display: block; fill: none; }
.cam-grid g { stroke: rgb(255 255 255 / .55); }
.cam-grid .cross { stroke: rgb(255 214 102 / .95); }
.cam-hud { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; }
.level { position: relative; width: 38%; height: 2px; --tilt: 0deg; }
.level i { position: absolute; inset: 0; background: rgb(255 255 255 / .95); border-radius: 2px; transform: rotate(var(--tilt)); box-shadow: 0 0 0 1px rgb(0 0 0 / .25); }
.level i.ref { transform: none; background: transparent; border-left: 2px solid rgb(255 255 255 / .9); border-right: 2px solid rgb(255 255 255 / .9); height: 10px; top: -4px; box-shadow: none; }
.level.ok i { background: #facc15; }
.level.ok i.ref { border-color: #facc15; }
.cam-guide-panel { width: 100%; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.cam-section { display: grid; gap: 6px; align-content: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.cam-section b { font-size: 12px; }
.cam-section b small { font-weight: 450; color: var(--muted); margin-left: 4px; }
.cam-section.posture { background: #f7f9fa; color: #4a5960; }
.cam-section.posture p { font-size: 11.5px; line-height: 1.6; }
.cam-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.cam-chips li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; background: #eef6f4; color: #1f6150; }
.cam-chips li span { font-weight: 700; }
.cam-chips li.warn { background: #fff3d6; color: #6a4a0c; }
.cam-chips li.wait { background: #f1f3f4; color: #5b676c; border-radius: 6px; }
.cam-level-text { font-size: 11.5px; color: #4a5960; line-height: 1.6; }
/* 사진 확인 */
.face-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.face-meta .field { margin: 0; }
.face-meta .field.wide { grid-column: span 2; }
.face-meta input:disabled { color: var(--ink); background: var(--subtle); }
.face-seg { border: 0; display: flex; gap: 6px; align-items: center; padding: 0; margin: 0; }
.face-seg legend { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.face-seg label { display: inline-flex; }
.face-seg input { position: absolute; opacity: 0; pointer-events: none; }
.face-seg span { padding: 9px 12px; border: 1px solid #dfe5e7; border-radius: 6px; font-size: 12px; cursor: pointer; background: #fff; white-space: nowrap; }
.face-seg input:checked + span { border-color: var(--accent); background: #f1edfd; color: #3f3383; font-weight: 600; }
.face-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.face-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding-top: 16px; }
.face-actions.inline { border-top: 0; padding-top: 0; justify-content: flex-start; }
.face-actions.sticky { position: sticky; bottom: -24px; background: #fff; padding-bottom: 4px; z-index: 3; }
.face-actions .primary, .face-actions .secondary { height: 40px; }
.secondary.small { height: 30px !important; padding: 0 10px; font-size: 11px; }
.face-check { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; line-height: 1.6; color: #4a5960; }
.face-check small { color: var(--muted); }
.face-error-box { display: grid; gap: 6px; padding: 16px; border-radius: 8px; background: #fbeaec; color: #6f2834; }
.face-error-box strong { font-size: 14px; font-weight: 600; }
.face-error-box p { font-size: 12px; line-height: 1.7; }
.face-loading { display: grid; justify-items: center; gap: 8px; padding: 40px 12px; text-align: center; font-size: 13px; }
.face-spinner { width: 28px; height: 28px; border: 3px solid #e3def6; border-top-color: var(--accent); border-radius: 50%; animation: face-spin .9s linear infinite; }
@keyframes face-spin { to { transform: rotate(360deg); } }
.face-warnings { display: grid; gap: 4px; padding: 10px 12px 10px 28px; border-radius: 6px; background: #fff6e0; color: #6a531c; font-size: 12px; line-height: 1.6; }
/* 확대·이동 보기, 기준점 보정 */
.pz-viewport { position: relative; overflow: hidden; background: #101d20; border-radius: 8px; user-select: none; -webkit-user-select: none; cursor: grab; }
.pz-viewport:active { cursor: grabbing; }
.review-viewport { height: min(62dvh, 640px); }
.pz-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.review-layout { display: grid; gap: 14px; }
.review-photo, .review-data { display: grid; gap: 10px; align-content: start; min-width: 0; }
.point-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.point-chip { display: grid; gap: 2px; padding: 8px; border: 1px solid #dfe5e7; border-radius: 6px; background: #fff; text-align: left; font-size: 11.5px; }
.point-chip small { font-size: 10.5px; color: #b0435b; }
.point-chip.done small { color: #1f7a58; }
.point-chip[aria-pressed="true"] { border-color: #e11d74; box-shadow: 0 0 0 2px rgb(225 29 116 / .18); background: #fff5f9; }
.record-tag { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 12px; }
.record-tag span { color: var(--muted); }
/* 강조 패널(눈에 띄는 특징 · 주요 변화): 색 + 번호 + 글자로 의미 전달 */
.hl-panel { display: grid; gap: 8px; padding: 14px; border-radius: 10px; background: #fff7fb; border: 1px solid #f6cfe0; }
.hl-panel.calm { background: #f6f8f9; border-color: var(--line); }
.hl-panel h3 { font-size: 15px; font-weight: 700; }
.hl-panel h3 small { font-size: 11px; font-weight: 450; color: var(--muted); margin-left: 4px; }
.hl-panel > p { font-size: 12.5px; color: #4a5960; }
.hl-panel ol { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.hl-panel li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 8px; background: #fff; border-left: 4px solid var(--hl); }
.hl-panel li strong { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.hl-panel li strong em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--hl); margin-left: 4px; }
.hl-panel li strong em.delta { font-size: 15px; }
.hl-panel li p { font-size: 12px; line-height: 1.6; color: #4a5960; margin-top: 2px; }
.hl-panel .hl-note { color: #8a5a00; }
.hl-panel .hl-basis { font-size: 10.5px; color: var(--muted); }
.hl-badge { display: inline-grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--hl, #e11d74); color: #fff; font-size: 12px; font-weight: 700; margin-right: 6px; }
/* 지표 카드: 항목명·핵심 수치를 크게 */
.metric-list { display: grid; gap: 8px; }
.metric-card { display: grid; align-content: start; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.metric-card.hl { border-color: var(--hl); box-shadow: inset 4px 0 0 var(--hl); }
.metric-card.needs { border-color: #f1d3da; background: #fffafb; }
.metric-card h4 { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.metric-card h4 small { font-size: 10px; color: #9aa5aa; font-weight: 450; margin-left: 6px; }
.mv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px 14px; }
.mv { display: grid; gap: 1px; }
.mv span { font-size: 11.5px; color: #586b75; }
.mv strong { font-size: 22px; font-weight: 750; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mv small { font-size: 11px; color: var(--muted); line-height: 1.5; }
.metric-need { font-size: 12.5px; color: #8a2f3e; line-height: 1.6; }
.metric-need-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.metric-need-actions small { font-size: 11px; color: var(--muted); }
.metric-card details, .face-details { font-size: 11px; color: #586b75; }
.metric-card details summary, .face-details summary { cursor: pointer; padding: 2px 0; }
.metric-card details p, .metric-card details ul { margin-top: 4px; line-height: 1.6; }
.metric-card details ul, .face-details ul { display: grid; gap: 4px; padding-left: 18px; margin-top: 6px; line-height: 1.6; overflow-wrap: anywhere; }
/* 비교: 변화 카드 */
.cmp-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cmp-pick .field { margin: 0; }
.cmp-pick select { width: 100%; }
.change-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.chg-card { display: grid; align-content: start; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.chg-card.hl { border-color: var(--hl); box-shadow: inset 4px 0 0 var(--hl); }
.chg-card.missing { background: #f8fafb; }
.chg-card h4 { display: flex; align-items: center; font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; }
.chg-main { display: grid; gap: 2px; }
.chg-main strong { font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.chg-main span { font-size: 12px; color: #4a5960; }
.chg-ba { font-size: 12px; color: var(--muted); }
.chg-ba b { color: #33414a; font-weight: 600; }
.delta.up { color: #b4235e; } .delta.down { color: #1d5fa8; } .delta.same { color: #5b676c; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; margin-top: 6px; }
.cmp-table th, .cmp-table td { padding: 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.cmp-table th:first-child { text-align: left; white-space: normal; font-weight: 500; }
.cmp-table th small { display: block; font-size: 9.5px; color: #8a7fc0; }
.cmp-table thead th { font-size: 10.5px; color: var(--muted); font-weight: 500; }
/* 비교: 편집기 */
.studio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
#studio-host { min-width: 0; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid #dfe5e7; border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { padding: 8px 12px; font-size: 12px; border: 0; background: transparent; color: #4a5960; }
.seg button + button { border-left: 1px solid #dfe5e7; }
.seg button[aria-pressed="true"] { background: #2d2466; color: #fff; font-weight: 600; }
.studio-modes button { padding: 10px 16px; font-size: 13px; }
.studio-target { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: #4a5960; }
.studio-stage { width: 100%; display: grid; justify-items: center; }
.studio-panels { display: flex; gap: 8px; justify-content: center; width: 100%; }
.studio-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0; }
.studio-panel figcaption, .studio-split-caption > span { display: grid; gap: 2px; align-content: start; font-size: 12px; }
.studio-panel figcaption b, .studio-split-caption b { color: #42535b; font-size: 13px; }
.studio-panel figcaption b.after, .studio-split-caption b.after { color: #482d85; }
.studio-panel figcaption small, .studio-split-caption small { font-size: 11px; color: #4a5960; }
.studio-panel canvas, .studio-split canvas { display: block; border-radius: 8px; outline: 3px solid transparent; outline-offset: 0; cursor: grab; }
.studio-panel.selected canvas { outline-color: #2d2466; }
.studio-split { margin: 0; }
.studio-split-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; }
.studio-hint { font-size: 12px; color: #2d2466; background: #f4f0ff; border-radius: 6px; padding: 8px 10px; line-height: 1.6; }
.studio-tools { display: grid; gap: 8px; }
.studio-rot, .studio-div { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4a5960; }
.studio-rot input, .studio-div input { flex: 1; min-width: 80px; }
.studio-rot output { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.studio-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.studio-buttons [aria-pressed="true"] { background: #2d2466; color: #fff; border-color: #2d2466; }
@media (min-width: 901px) {
  .review-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; }
  .review-data { max-height: calc(min(62dvh, 640px) + 140px); overflow: auto; padding-right: 4px; }
}
@media (max-width: 700px) {
  .face-modal { --cam-max-h: 54dvh; }
  .face-modal .modal-header h2 { font-size: 16px; }
  .face-choice { grid-template-columns: 1fr 1fr; }
  .face-choice-button { padding: 14px 12px; }
  .cam-guide-panel { grid-template-columns: 1fr; }
  .face-meta { grid-template-columns: 1fr 1fr; }
  .face-actions > button { flex: 1 1 auto; }
  .review-viewport { height: 54dvh; }
  .cmp-pick { grid-template-columns: 1fr 1fr; gap: 6px; }
  .cmp-pick select { font-size: 11px; }
  .face-records { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .change-list { grid-template-columns: 1fr 1fr; }
  .chg-main strong { font-size: 20px; }
  .mv strong { font-size: 20px; }
  .face-actions.sticky { bottom: -20px; }
  .studio-target { gap: 6px; }
  .seg button { padding: 7px 9px; font-size: 11px; }
}
@media (max-width: 380px) { .change-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .face-spinner { animation-duration: 3s; } }

/* =====================================================================
   매장 PoC(pilot-v0.2): 로그인·매장 선택·저장 상태·불러오기 실패 안내
   ===================================================================== */
.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: #f4f7f8; }
.auth-card { width: min(400px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px 24px; display: grid; gap: 14px; box-shadow: 0 8px 30px rgb(18 35 44 / .06); }
.auth-card h1 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.auth-card .wordmark { margin: 0 0 4px; }
.auth-form { display: grid; gap: 12px; }
/* 휴대폰 브라우저가 입력 시 화면을 확대하지 않도록 16px 이상 */
.auth-form input { font-size: 16px; height: 48px; }
.auth-submit { width: 100%; height: 48px; font-size: 15px; }
.auth-notice { margin: 0; padding: 10px 12px; border-radius: 6px; background: #fff4e5; color: #6b4610; font-size: 13px; line-height: 1.5; }
.auth-loading { margin: 0; color: var(--muted); }
.shop-choices { display: grid; gap: 8px; }
.shop-choice { display: grid; gap: 3px; text-align: left; padding: 14px 16px; min-height: 56px; border: 1px solid #dfe5e7; border-radius: 8px; background: #fff; }
.shop-choice strong { font-size: 15px; font-weight: 600; }
.shop-choice span { font-size: 12px; color: var(--muted); }
.shop-choice:hover { border-color: #15262d; }
button.account { background: none; border: 0; padding: 6px 4px; min-height: 40px; }
.sync-status { font-size: 11px; color: var(--muted); white-space: nowrap; min-width: 0; }
.sync-status[data-state="saving"], .sync-status[data-state="loading"] { color: #7a5b12; }
.sync-status[data-state="error"] { color: #a12a3b; font-weight: 600; }
.load-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fdecee; color: #7a2232; font-size: 13px; border-bottom: 1px solid #f3c9cf; }
.toast.error { background: #7a2232; }
button.busy { opacity: .6; cursor: progress; }
.avatar.avatar-initial { background-image: none; display: grid; place-items: center; font-size: 20px; font-weight: 650; color: #24343b; }
.setting-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.setting-actions .secondary { min-height: 44px; }
@media (max-width: 760px) {
  .avatar.avatar-initial { font-size: 13px; }
  .sync-status { font-size: 10px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
  .load-banner { flex-direction: column; align-items: stretch; }
}

/* ---------- 직영 파일럿 원본 수집(학습자료) ---------- */
.collect-panel { border: 1px solid #e2e8ea; border-radius: 8px; padding: 14px 16px; background: #fbfcfc; display: grid; gap: 8px; }
.collect-panel h3 small { font-weight: 400; color: var(--muted); font-size: 12px; }
.collect-ok, .collect-warn, .collect-summary { margin: 0; font-size: 13px; line-height: 1.5; }
.collect-ok { color: #1f5d43; }
.collect-warn { color: #7a5b12; }
.collect-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.collect-form .field { flex: 1 1 180px; }
.collect-form input#collect-ref { font-size: 16px; }
.collect-rows { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.collect-rows li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf1f2; }
.collect-rows li span { display: grid; gap: 2px; min-width: 0; }
.collect-rows li small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.collect-note { margin: 0; padding: 8px 10px; border-radius: 6px; font-size: 12px; line-height: 1.5; }
.collect-note.ok { background: #eaf6f0; color: #1f5d43; }
.collect-note.warn { background: #fff4e5; color: #6b4610; }
.collect-badge:empty, .collect-line:empty { display: none; }
.collect-badge, .collect-line { font-size: 11px; color: var(--muted); }
.collect-line { margin: 6px 0 0; font-size: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
[data-cb][data-state="done"] { color: #1f5d43; }
[data-cb][data-state="failed"], [data-cb][data-state="blocked"] { color: #a12a3b; }
[data-cb][data-state="uploading"], [data-cb][data-state="queued"] { color: #7a5b12; }

/* =====================================================================
   촬영 화면 배치 고정 — 실시간 안내가 바뀌어도 촬영 버튼이 움직이지 않게
   1) 촬영 중(.face-cam)에는 모달 높이를 화면 기준으로 고정한다.
   2) 미리보기·안내는 위쪽 스크롤 영역(.cam-scroll), 버튼은 그 밖의 하단 바(.cam-bar).
   3) 안내 칸(상태 칩·기울기 안내·자세 관찰)은 각자 높이를 미리 확보한다(글자 크기 em 기준 → 글자 확대 시 함께 커짐).
      넘치는 문구는 칸 안에서 스크롤하거나 '전체 보기'로 펼친다(펼쳐도 버튼 바는 스크롤 영역 밖이라 그대로).
   칸 높이는 화면 너비(미디어 쿼리)로만 정해지고, 같은 화면에서 문구가 바뀌어도 변하지 않는다.
   ===================================================================== */
.face-modal.face-cam { display: flex; flex-direction: column; overflow: hidden; height: min(calc(100dvh - 48px), 1000px); --cam-max-h: 50dvh; }
/* 촬영 중 스크롤은 안내 영역만 사용한다. 배경 CRM의 최소 너비가 확대된 뷰포트를 줄이지 않게 한다. */
html:has(.face-modal.face-cam), body:has(.face-modal.face-cam) { min-width: 0; overflow: hidden; }
.face-modal.face-cam .modal-header { flex: 0 0 auto; }
.face-modal.face-cam #face-stage { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 0; padding: 0; }
.cam-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 24px 16px; display: grid; gap: 10px; align-content: start; }
.face-actions.cam-bar { flex: 0 0 auto; margin: 0; border-top: 1px solid var(--line); background: #fff;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: repeat(3, auto) minmax(120px, 1fr); justify-content: stretch; gap: 8px; }
.cam-bar > button { min-height: 48px; height: auto; white-space: normal; line-height: 1.25; padding: 6px 12px; }
.cam-bar [data-face="shoot"] { justify-self: end; min-width: 132px; font-size: 15px; font-weight: 650; }

.cam-section { font-size: .78125rem; }
.cam-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.cam-permit { min-height: 32px; height: auto; }
.cam-permit.is-off { visibility: hidden; }   /* 자리는 유지 */
.cam-slot-wrap { position: relative; }
.cam-slot { overflow-y: auto; overscroll-behavior: contain; line-height: 1.6; padding-right: 2px; }
.cam-slot p { margin: 0; font-size: inherit; line-height: inherit; }
.cam-slot-chips { --chip-h: calc(1.45em + .7em); height: calc(var(--chip-h) * 2 + 5px); }
.cam-chips { align-content: flex-start; }
.cam-chips li { font-size: 1em; line-height: 1.45; padding: .35em .8em; }
.cam-slot-level { height: calc(1.6em * 2); }
.cam-slot-posture { height: calc(1.6em * 2); }
.cam-section.posture p, .cam-level-text { font-size: 1em; }
.cam-slot.more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.1em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 1.1em), transparent); }
.cam-slot.expanded { height: auto; overflow: visible; }
.cam-more { position: absolute; right: 0; bottom: -2px; transform: translateY(100%); font-size: .75rem; line-height: 1.3; padding: 2px 6px; min-height: 24px;
  color: #2d4a8a; background: #fff; border: 1px solid #d6dde8; border-radius: 999px; z-index: 1; }
.cam-more[hidden] { display: none; }
.cam-guide-panel .cam-section { padding-bottom: 16px; }   /* '전체 보기' 버튼이 겹쳐 놓일 자리 */

@media (max-width: 700px) {
  .face-modal.face-cam { height: calc(100dvh - 28px); --cam-max-h: 42dvh; }
  .cam-scroll { padding: 10px 14px 14px; gap: 8px; }
  .face-actions.cam-bar { padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr); gap: 6px; }
  .cam-bar > button { padding: 6px 6px; font-size: 13px; }
  .cam-bar [data-face="shoot"] { min-width: 0; justify-self: stretch; font-size: 16px; }
  .cam-section { font-size: .8125rem; padding: 9px 11px 16px; }
  .cam-slot-chips { height: calc(var(--chip-h) * 3 + 10px); }
  .cam-slot-level, .cam-slot-posture { height: calc(1.6em * 3); }
}
@media (max-width: 360px) {
  .cam-slot-chips { height: calc(var(--chip-h) * 4 + 15px); }
}
.cam-slot .cam-chips { margin: 0; padding: 0; justify-content: flex-start; }
.cam-bar > button { word-break: keep-all; }
@media (max-width: 700px) { .face-modal.face-cam { --cam-max-h: 40dvh; } }
/* 안내 칸 제목은 한 줄로, 수평계 버튼은 자리가 모자라면 다음 줄(보이지 않을 때도 같은 자리를 유지 → 높이 일정) */
.cam-section-head { flex-wrap: wrap; }
.cam-section-head b { white-space: nowrap; }
/* 매우 좁은 화면(글자 크게 보기 포함): 촬영 버튼을 아래 줄 전체 너비로. 줄 수는 화면 너비로만 정해지고 안내 문구와 무관하다. */
@media (max-width: 320px) {
  .face-actions.cam-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cam-bar [data-face="shoot"] { grid-column: 1 / -1; }
  .face-modal.face-cam { --cam-max-h: 34dvh; }
}
/* '전체 보기' 버튼 자리: 각 칸 아래에 항상 비워 둔다(버튼이 없을 때도) → 다른 칸 글자를 가리지 않고 높이도 일정 */
.cam-slot-wrap { padding-bottom: max(28px, 1.75rem); }
.cam-slot :is(p, li) { overflow-wrap: anywhere; }
.cam-more { bottom: 0; transform: none; min-height: 26px; }
.cam-guide-panel .cam-section { padding-bottom: 10px; }
.cam-slot-chips { height: calc(var(--chip-h) * 3 + 10px); }
@media (max-width: 360px) { .cam-slot-chips { height: calc(var(--chip-h) * 4 + 15px); } }
