/* 태닝 예약 — 업무용 화면 스타일
   원칙: 한 가지 글꼴, 차분한 회색 바탕, 얇은 선, 작은 둥근 모서리. 색은 의미가 있을 때만
   (네이버=초록, 경고=빨강, 강조=금색). */
:root {
  --ink: #111827; --ink-2: #374151; --muted: #6b7280; --faint: #9ca3af;
  --line: #e5e7eb; --line-2: #eef0f3; --bg: #f5f6f8; --surface: #fff;
  --accent: #b7791f; --accent-soft: #fdf6ea; --accent-line: #f0dcb8;
  --naver: #03c75a; --naver-ink: #067647; --naver-soft: #effaf3; --naver-line: #c6ecd6;
  --danger: #c0352b; --danger-soft: #fdf1f0; --danger-line: #f6cdc9;
  --radius: 10px; --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04);
  --navy: var(--ink); --gold: var(--accent); --gold-soft: var(--accent-soft);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 15px; line-height: 1.5; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
h2 { margin: 22px 0 8px; font-size: 15px; font-weight: 700; }
h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
small { font-size: 12.5px; }
.muted { color: var(--muted); } .bad { color: var(--danger); } .gold-text { color: var(--accent); font-weight: 600; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 위쪽 메뉴 */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 56px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand .logo { width: 24px; height: 24px; border-radius: 6px; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.brand .logo svg { width: 16px; height: 16px; stroke: #e0a94a; stroke-width: 2; fill: none; }
.nav { display: flex; gap: 2px; margin-left: auto; height: 100%; }
.nav a { display: flex; align-items: center; padding: 0 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); border-bottom-color: var(--ink); }
.page { max-width: 1080px; margin: 0 auto; padding: 18px 20px 100px; }
.flash { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent-line); color: #7a4f12; font-weight: 500; }

/* 버튼·입력 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #d1d5db; background: #fafafa; }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.gold { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.naver-btn { background: var(--naver); border-color: var(--naver); color: #fff; }
.btn.danger { color: var(--danger); border-color: var(--danger-line); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.round { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; font-size: 18px; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.pill.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.holiday { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.head-right { margin-left: auto; }
.linkish { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
form.mini { display: inline; margin: 0 0 0 6px; }
label { display: block; margin: 10px 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 9px 11px; border: 1px solid #d9dce1; border-radius: var(--radius-sm); font: inherit; font-size: 15px; background: var(--surface); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,24,39,.08); }
textarea { resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 8px 0; }
.inline label { margin: 0; } .inline input, .inline select { width: auto; min-width: 120px; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.actions form { margin: 0; }
.actions-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.seg label { display: flex; align-items: center; gap: 6px; margin: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; background: var(--surface); cursor: pointer; }
.seg input { width: auto; margin: 0; accent-color: var(--ink); }
.seg.tabs { gap: 0; padding: 3px; border-radius: var(--radius-sm); background: var(--line-2); }
.seg.tabs button { flex: 1; padding: 8px; border: 0; border-radius: 5px; background: transparent; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-weight: 500; } .check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }

/* 날짜 줄·요약 */
.day-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.date-pick { position: relative; }
.date-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.date-pick strong { font-size: 18px; font-weight: 700; padding: 0 4px; }
.month-title { font-size: 18px; min-width: 120px; text-align: center; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { padding: 4px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.chip.n { background: var(--naver-soft); border-color: var(--naver-line); color: var(--naver-ink); }
.gold-chip { background: var(--accent-soft); border-color: var(--accent-line); color: #7a4f12; }
.nb { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; background: var(--naver); color: #fff; font-weight: 800; font-size: 11px; font-style: normal; flex: 0 0 auto; }
.alert { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.alert p { margin: 0; flex: 1; font-size: 14px; }
.alert.naver { background: var(--naver-soft); border-color: var(--naver-line); }
.alert.gold { background: var(--accent-soft); border-color: var(--accent-line); }
.alert.warn { background: var(--danger-soft); border-color: var(--danger-line); }

/* 시간표 */
.grid { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.row { display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); min-height: 54px; }
.row:last-child { border-bottom: 0; }
.row.head { min-height: 40px; background: #fafbfc; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--ink-2); position: sticky; top: var(--topbar-h, 56px); z-index: 5; }
.row.head div { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 4px; }
.row.now { background: #fffcf5; } .row.now .time { color: var(--accent); }
.time { display: flex; justify-content: center; padding-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--faint); border-right: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.cell { margin: 3px; border-radius: var(--radius-sm); font: inherit; text-align: left; cursor: pointer; }
.cell.empty { border: 1px dashed transparent; background: transparent; color: transparent; font-size: 16px; text-align: center; }
.cell.empty:hover { border-color: var(--line); color: var(--faint); }
.card { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; padding: 6px 9px; border: 1px solid var(--line); border-left: 3px solid #94a3b8; background: #fbfbfc; }
.card.naver { background: var(--naver-soft); border-color: var(--naver-line); border-left-color: var(--naver); }
.card.check { border-style: dashed; border-left-style: solid; }
.card.done { opacity: .5; } .card.noshow { opacity: .5; border-left-color: var(--danger); }
.card .nm { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; }
.card .sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .state { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--naver-ink); } .card .state.bad { color: var(--danger); }
.tag { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #eef2f7; color: #475569; }
.tag.walk { background: var(--accent-soft); color: #8a5a14; }
.tag.k-pass { background: #eef2f7; color: #334155; } .tag.k-service { background: var(--naver-soft); color: var(--naver-ink); }
.tag.k-product { background: var(--accent-soft); color: #8a5a14; } .tag.k-etc { background: var(--line-2); color: var(--ink-2); }
.tag.k-refund, .tag.refund { background: var(--danger-soft); color: var(--danger); }
.fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px; border-radius: var(--radius); background: var(--ink); color: #fff; font: inherit; font-weight: 600; font-size: 15px; border: 0; box-shadow: 0 6px 18px rgba(17,24,39,.22); cursor: pointer; }

/* 창 */
dialog.sheet { width: min(520px, calc(100% - 24px)); max-height: calc(100% - 40px); overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 20px 50px rgba(17,24,39,.2); color: var(--ink); }
dialog::backdrop { background: rgba(17, 24, 39, .4); }
.sheet .meta { display: flex; justify-content: space-between; font-weight: 600; }
.box { margin: 12px 0; padding: 12px; border-radius: var(--radius); background: var(--naver-soft); border: 1px solid var(--naver-line); }
.gold-box { background: var(--accent-soft); border-color: var(--accent-line); }
.results { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.results button { padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-align: left; font: inherit; cursor: pointer; }
.results button:hover { border-color: var(--ink); }
.picked { margin: 6px 0; padding: 8px 11px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent-line); font-weight: 600; }
.relink { margin: 10px 0; } .relink summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 6px 0; }
.pay { margin: 10px 0; padding: 10px 12px; border-radius: var(--radius); background: #fafbfc; border: 1px solid var(--line); }
.pay-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pay .seg { margin: 6px 0 0; }
.pay-once { margin: 6px 0; }
.calc { margin: 12px 0; padding: 12px 14px; border-radius: var(--radius); background: #fafbfc; border: 1px solid var(--line); }
.calc p { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.calc p small { color: var(--muted); font-weight: 400; }
.calc .total { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.calc .total b { color: var(--danger); }

/* 공통 블록 */
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.page-title h1 { display: flex; align-items: center; gap: 8px; }
.search-row { display: flex; gap: 8px; margin-bottom: 12px; } .search-row input { margin: 0; } .search-row .btn { white-space: nowrap; }
.panel { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 10px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.panel-head h2 { margin: 0; }
.panel-head a { font-size: 13px; color: var(--muted); text-decoration: none; }
.gold-panel { background: var(--surface); border-left: 3px solid var(--accent); }
.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel .list { border-radius: var(--radius-sm); }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); text-decoration: none; background: var(--surface); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: #fafbfc; }
.list-item .right { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 14px; }
.list-item.faded { opacity: .5; }
.adjust { display: flex; gap: 4px; align-items: center; } .adjust input { width: 110px; margin: 0; padding: 5px 8px; font-size: 13px; }
.empty { margin: 0; padding: 18px; text-align: center; color: var(--muted); background: var(--surface); font-size: 14px; }
.login-card { max-width: 380px; margin: 70px auto; padding: 28px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.danger-zone { margin: 22px 0 8px; text-align: right; }
.avatar { display: none; }
.totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.total-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.total-card span { font-size: 12.5px; color: var(--muted); font-weight: 500; } .total-card b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.total-card.big b { color: var(--ink); font-size: 20px; } .total-card.big span { color: var(--ink-2); font-weight: 600; }
.total-card.bad b { color: var(--danger); }
.sale-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* 한 달 달력 */
.month { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.month-head, .month-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-head span { padding: 8px 0; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); background: #fafbfc; border-bottom: 1px solid var(--line); }
.month-row { border-bottom: 1px solid var(--line-2); } .month-row:last-child { border-bottom: 0; }
.mday { display: flex; flex-direction: column; gap: 2px; min-height: 100px; padding: 5px; border-right: 1px solid var(--line-2); text-decoration: none; min-width: 0; }
.mday:last-child { border-right: 0; }
.mday:hover { background: #fafbfc; }
.mday.out { background: #fafbfc; } .mday.out b { color: #cbd5e1; }
.mday.is-today .mday-top b { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; background: var(--ink); color: #fff !important; }
.mday-top { display: flex; justify-content: space-between; align-items: center; }
.mday-top b { font-size: 13px; font-weight: 600; }
.mcount { min-width: 18px; padding: 0 5px; border-radius: 4px; background: var(--line-2); font-size: 11px; font-weight: 600; text-align: center; color: var(--ink-2); }
.mholiday { font-size: 11px; color: var(--danger); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mitem { display: flex; align-items: center; gap: 3px; padding: 1px 4px; border-radius: 4px; background: #f1f4f8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mitem.naver { background: var(--naver-soft); }
.mitem.cancelled { opacity: .45; text-decoration: line-through; }
.mitem .nb { width: 13px; height: 13px; font-size: 8px; border-radius: 3px; }
.mmore { font-size: 11px; color: var(--muted); font-weight: 500; }
.sun { color: var(--danger) !important; } .sat { color: #2563eb !important; }

/* 통계 */
.big-line { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; } .big-line b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chg { padding: 2px 7px; border-radius: 5px; font-size: 12px; font-weight: 600; }
.chg.up { background: var(--naver-soft); color: var(--naver-ink); } .chg.down { background: var(--danger-soft); color: var(--danger); }
.progress { display: block; height: 6px; margin: 6px 0 4px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end; height: 140px; margin-top: 14px; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.bar i { display: block; width: 56%; max-width: 40px; border-radius: 3px 3px 0 0; background: #cbd5e1; }
.bar:hover i { background: var(--ink); }
.bar small { font-size: 12px; color: var(--muted); font-weight: 500; } .bar em { font-style: normal; font-size: 11px; color: var(--faint); }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.kv:last-child { border-bottom: 0; }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut { position: relative; width: 128px; height: 128px; border-radius: 50%; background: conic-gradient(var(--naver) 0 var(--a), #64748b var(--a) var(--b), #d6a356 var(--b) 100%); }
.donut::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--surface); }
.donut span { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.legend p { display: flex; align-items: center; gap: 6px; margin: 6px 0; font-size: 14px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }
.dot.naver { background: var(--naver); } .dot.phone { background: #64748b; } .dot.walkin { background: #d6a356; }
.stack { display: flex; height: 10px; border-radius: 3px; overflow: hidden; background: var(--line-2); margin: 4px 0 8px; }
.m-card { background: #334155; } .m-cash { background: #10b981; } .m-transfer { background: #94a3b8; }
.daily { display: flex; flex-direction: column; }
.daily-row { display: grid; grid-template-columns: 1.3fr .8fr .9fr 1.2fr; gap: 6px; padding: 9px 4px; border-bottom: 1px solid var(--line-2); text-decoration: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.daily-row span:not(:first-child) { text-align: right; }
.daily-row.head { font-size: 12px; color: var(--muted); font-weight: 600; }

/* 설정 */
h2.group { font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 20px 2px 6px; }
.menu-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); text-decoration: none; font-weight: 500; }
.menu-list a:last-child { border-bottom: 0; } .menu-list a:hover { background: #fafbfc; } .menu-list a > span:last-child { color: var(--faint); }
.menu-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); background: var(--surface); }
.menu-row:last-child { border-bottom: 0; }
.menu-row input { margin: 0; width: auto; min-width: 0; padding: 7px 9px; }
.menu-row > input[name="name"] { flex: 1 1 140px; }
.menu-row .unit { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 13px; font-weight: 500; }
.menu-row .unit input { width: 92px; }
.menu-row.add { margin-top: 8px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.menu-row.faded { opacity: .5; }
.steps { margin: 0; padding-left: 20px; line-height: 1.75; }
.small-note { font-size: 13px; margin: 4px 0 10px; }
.prefs { display: flex; flex-direction: column; gap: 2px; }
.prefs .check { margin: 6px 0; }

/* 홈 */
.home-date { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.home-date h1 small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow); }
.kpi a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-right: 1px solid var(--line-2); text-decoration: none; }
.kpi a:last-child { border-right: 0; } .kpi a:hover { background: #fafbfc; }
.kpi span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi .kpi-sub { font-size: 12px; color: var(--faint); }
.next-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: var(--radius); text-decoration: none; }
.next-row.warn { border-left-color: var(--danger); }
.next-row .lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.next-row b { font-size: 15px; }
.next-row .go { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.home-cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; align-items: start; }
.mtable { display: flex; flex-direction: column; }
.mrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.mrow:last-child { border-bottom: 0; }
.mrow .m-name { font-weight: 600; }
.mrow .m-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; justify-self: end; }
.mrow .m-state i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.mrow small { grid-column: 1 / -1; color: var(--muted); }
.mrow.busy .m-state { color: var(--accent); } .mrow.busy .m-state i { background: var(--accent); }
.mrow.free .m-state { color: var(--naver-ink); } .mrow.free .m-state i { background: var(--naver); }
.mrow.idle .m-state { color: var(--faint); }
.mailbar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.mailbar form { margin: 0; }
.mail-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.mail-text b { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.mail-text small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.mailbar .dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); margin: 0; }
.mailbar.ok .dot { background: var(--naver); }
.mailbar.error { border-color: var(--danger-line); } .mailbar.error .dot { background: var(--danger); } .mailbar.error small { color: var(--danger); }
.mailbar.off { border-color: var(--accent-line); } .mailbar.off .dot { background: var(--accent); }
.todo-list { display: flex; flex-direction: column; }
.todo-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.todo-item:last-child { border-bottom: 0; }
.todo-item b { min-width: 24px; padding: 1px 8px; border-radius: 5px; background: var(--line-2); font-size: 13px; text-align: center; }
.todo-item.naver b { background: var(--naver-soft); color: var(--naver-ink); } .todo-item.gold b { background: var(--accent-soft); color: #8a5a14; } .todo-item.bad b { background: var(--danger-soft); color: var(--danger); }
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 14px; }
.shortcuts a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 6px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; }
.shortcuts a:hover { border-color: #cfd3da; }
.shortcuts .ico { color: var(--muted); }

/* 처음 설정 체크리스트 */
.setup { margin: 0 0 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.setup-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.setup-head b { font-size: 15px; } .setup-head small { color: var(--muted); }
.setup-head .linkish { margin-left: auto; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist .ck { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid #c7ccd4; display: inline-flex; align-items: center; justify-content: center; }
.checklist li.done .ck { background: var(--ink); border-color: var(--ink); }
.checklist li.done .ck::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.checklist .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.checklist .txt b { font-weight: 600; font-size: 14.5px; }
.checklist .txt small { color: var(--muted); }
.checklist li.done .txt b { color: var(--muted); }
.checklist li.done .btn { display: none; }

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; height: auto; gap: 0; padding: 10px 14px 0; }
  .topbar .nav { width: 100%; margin: 6px 0 0; height: 40px; overflow-x: auto; scrollbar-width: none; }
  .topbar .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; padding: 0 10px; }
  .page { padding: 14px 14px 96px; }
  .two { grid-template-columns: 1fr; }
  .row { grid-template-columns: 46px repeat(var(--cols), minmax(0, 1fr)); }
  .card .sub { white-space: normal; }
  .kpi { grid-template-columns: repeat(2, 1fr); }
  .kpi a:nth-child(2) { border-right: 0; }
  .kpi a:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .kpi b { font-size: 21px; }
  .home-cols { grid-template-columns: 1fr; }
  .shortcuts { grid-template-columns: repeat(2, 1fr); }
  .mday { min-height: 80px; padding: 3px 2px; }
  .mitem { font-size: 11px; padding: 1px 2px; }
  .totals { grid-template-columns: repeat(2, 1fr); }
}
.kpi .kpi-sub .bad { color: var(--danger); font-weight: 600; }

/* ═════ 테마 G: 다크 틸 머리줄 + 초록(네이버·정상) + 촘촘한 배치 (1+7+8+11 조합) ═════ */
:root { --main: #134e4a; --main-deep: #0f3f3c; --main-line: #5eead4; --main-soft: #ecf7f5; --radius: 7px; --radius-sm: 6px; }
body { font-size: 14.5px; }
.topbar { background: var(--main); border-bottom: 0; color: #fff; }
.brand { color: #fff; }
.brand .logo { background: rgba(255, 255, 255, .12); }
.nav a { color: rgba(255, 255, 255, .62); }
.nav a:hover { color: #fff; }
.nav a.on { color: #fff; border-bottom-color: var(--main-line); }
.top-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.top-chip.error { background: rgba(255, 120, 110, .25); }
.top-chip.off { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75); }
.btn.primary, .pill.dark, .fab { background: var(--main); border-color: var(--main); }
.btn.primary:hover { background: var(--main-deep); }
input:focus, select:focus, textarea:focus { border-color: var(--main); box-shadow: 0 0 0 3px rgba(19, 78, 74, .12); }
.check input, .seg input { accent-color: var(--main); }
.progress i { background: var(--main); }
.checklist li.done .ck { background: var(--main); border-color: var(--main); }
.setup { border-left-color: var(--main-line); }
.row.now { background: #f0fbf8; } .row.now .time { color: var(--main); }
.mday.is-today .mday-top b { background: var(--main); }
.next-row { border-left-color: var(--naver); }
.next-row.warn { border-left-color: var(--danger); }

/* 홈: 숫자 4개 한 줄 */
.kpi { grid-template-columns: repeat(4, 1fr) !important; border-radius: var(--radius); }
.kpi a { padding: 10px 12px; border-right: 1px solid var(--line-2) !important; border-bottom: 0 !important; }
.kpi a:last-child { border-right: 0 !important; }
.kpi span { font-size: 12px; }
.kpi b { font-size: 20px; }
.kpi em { display: block; font-style: normal; font-size: 11.5px; color: var(--faint); }
.kpi em.g { color: var(--naver-ink); } .kpi em.r { color: var(--danger); font-weight: 600; }
/* 표 카드 */
.tcard { margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tcard-head { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.tcard-head b { font-size: 14px; } .tcard-head small { color: var(--muted); }
.tcard .mrow { display: grid; grid-template-columns: 1fr auto 96px; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.tcard .mrow:last-child { border-bottom: 0; }
.tcard .m-detail { text-align: right; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); text-decoration: none; font-size: 13.5px; }
.trow:last-child { border-bottom: 0; } .trow:hover, .tcard .mrow:hover { background: #fafbfc; }
.trow b { min-width: 22px; padding: 0 6px; border-radius: 4px; background: var(--line-2); font-size: 12.5px; text-align: center; }
.trow b.g { background: var(--naver-soft); color: var(--naver-ink); } .trow b.r { background: var(--danger-soft); color: var(--danger); }
.trow b.gold { background: var(--accent-soft); color: #8a5a14; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.month-sum { display: block; padding: 10px 12px 4px; font-size: 18px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.progress.tight { margin: 2px 12px 8px; }
.mailbar.ok { background: var(--naver-soft); border-color: var(--naver-line); } .mailbar.ok small { color: var(--naver-ink); }
.mailbar { padding: 10px 12px; margin-bottom: 12px; }
.shortcuts { margin-bottom: 12px; }
.shortcuts a { padding: 10px 6px; font-size: 13.5px; }
.home-date { margin-bottom: 10px; }
.next-row { padding: 10px 12px; margin-bottom: 12px; }
/* 다른 화면도 촘촘하게 */
.panel { padding: 12px 14px; }
.list-item { padding: 10px 12px; }
.row { min-height: 50px; }
@media (max-width: 760px) {
  .topbar { padding: 10px 14px 0; }
  .top-chip { margin-left: auto; }
  .kpi a { padding: 9px 8px; }
  .kpi b { font-size: 17px; }
  .kpi span { font-size: 11px; } .kpi em { font-size: 10.5px; }
  .pair { grid-template-columns: 1fr 1fr; }
  .tcard .mrow { grid-template-columns: 1fr auto 74px; }
  .shortcuts { grid-template-columns: repeat(4, 1fr); }
  .shortcuts a { flex-direction: column; gap: 3px; font-size: 12px; padding: 9px 2px; }
}@media (max-width: 760px) { .totals { grid-template-columns: repeat(3, 1fr) !important; } .total-card { padding: 10px; } .total-card b { font-size: 15px; } }

/* ═════ 최종 테마: 흰 머리줄 + 초록 버튼·밑줄 (대표님이 고른 시안) ═════ */
:root { --main: #03a94e; --main-deep: #02913f; --main-line: #03a94e; }
.topbar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); }
.brand .logo { background: #f1f3f6; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); border-bottom-color: var(--main); }
.top-chip { background: var(--naver-soft); color: var(--naver-ink); border: 1px solid var(--naver-line); }
.top-chip.error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.top-chip.off { background: #f1f3f6; color: var(--muted); border-color: var(--line); }
.btn.primary, .pill.dark, .fab { background: var(--main); border-color: var(--main); color: #fff; }
.btn.primary:hover { background: var(--main-deep); }
input:focus, select:focus, textarea:focus { border-color: var(--main); box-shadow: 0 0 0 3px rgba(3, 169, 78, .14); }
.progress i { background: var(--main); }
.checklist li.done .ck { background: var(--main); border-color: var(--main); }
.setup { border-left-color: var(--main); }
.row.now { background: #f2fbf6; } .row.now .time { color: var(--naver-ink); }
.mday.is-today .mday-top b { background: var(--main); }
/* 청소 알림 */
.tcard .mrow { grid-template-columns: 1fr auto 96px; }
.tcard .mrow .m-name { text-decoration: none; }
.m-clean { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 12.5px; color: var(--muted); }
.m-clean form { margin: 0; }
.mrow.clean-due { background: var(--danger-soft); }
.row.head .m-count { margin-left: 5px; padding: 0 5px; border-radius: 4px; background: var(--line-2); color: var(--muted); font-size: 11px; font-weight: 600; }
.row.head .m-count.due { background: var(--danger-soft); color: var(--danger); }.clean-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 8px; }
.clean-form .check { margin: 0; }
.inline-num { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.inline-num input { width: 80px; margin: 0; text-align: center; }
.mail-guide { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 10px 14px; margin: 0 0 10px; }
.mail-guide summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mail-guide summary small { font-weight: 500; color: #6b7280; }
.mail-guide[open] summary { margin-bottom: 6px; }
.mail-guide .gm { display: inline-flex; width: 20px; height: 20px; border-radius: 5px; background: #fff; border: 1px solid #d1d5db; color: #4285f4; font-weight: 800; font-size: 12px; align-items: center; justify-content: center; }

/* 숨김(hidden) 표시가 label·.check·.two 의 display 설정에 덮여 보이던 문제 (현금영수증 체크, 새 손님 칸 등) */
[hidden] { display: none !important; }

/* ═════ 로션 · 손님 연락 알림 (2026-11-30, 시안 1-2 · 2-2 · 3-4 · 4-2 · 5-3) ═════ */
.h-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* 손님 화면: 로션 병 그림 */
.lotion-card { display: flex; align-items: center; gap: 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lotion-card.low { border-color: var(--danger-line); }
.bottle { flex: none; }
.bottle .cap { fill: #374151; } .bottle .neck { fill: #9ca3af; } .bottle .glass { fill: #f8fafc; }
.bottle .liquid { fill: #f59e0b; } .bottle.low .liquid { fill: #dc2626; }
.bottle .outline { fill: none; stroke: #cbd5e1; stroke-width: 2; }
.bottle .label { fill: #fff; stroke: #e5e7eb; } .bottle .label-text { font-size: 9px; font-weight: 800; fill: #9a5b00; }
.lotion-info { min-width: 0; }
.lotion-name { margin: 0 0 2px; }
.lotion-left { margin: 0; font-weight: 700; }
.lotion-left b { margin-right: 2px; font-size: 28px; font-variant-numeric: tabular-nums; }
.lotion-card.low .lotion-left b, .lotion-left.out { color: var(--danger); }
.lotion-left.out { font-size: 20px; }
.lotion-when { margin: 8px 0 0; padding: 8px 11px; border-radius: var(--radius-sm); background: #f0fdf4; color: #14532d; font-size: 13.5px; }
.lotion-when.dim { background: var(--line-2); color: var(--muted); }
.lotion-actions { margin: 8px 0 4px; } .lotion-actions form { margin: 0; }
.lotion-history { margin: 6px 0 0; } .lotion-history summary { padding: 4px 0; color: var(--muted); font-size: 13px; cursor: pointer; }
/* 시간표: 작은 병 + 숫자 */
.lotion-mark { display: inline-flex; flex: none; align-items: center; gap: 2px; color: #c2410c; font-size: 12px; font-weight: 800; }
.lotion-mark.out { color: var(--danger); }
.bottle-ico { flex: none; }
.lotion-alert { display: flex; align-items: center; gap: 6px; margin: 8px 0; padding: 8px 11px; border-radius: var(--radius-sm); background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; font-size: 13.5px; }
.check.lotion-use { align-items: flex-start; margin: 10px 0 4px; padding: 9px 11px; border-radius: var(--radius-sm); background: #fffbf2; border: 1px solid #fde4b5; }
.check.lotion-use input { margin-top: 3px; }
.check.lotion-use small { display: block; color: var(--muted); font-weight: 400; }
.flash .btn { margin-left: 8px; vertical-align: middle; }
/* 로션 판매 창 */
.prod-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.prod-pick .prod { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.prod-pick .prod small { color: var(--muted); }
.prod-pick .prod.on { border-color: var(--main); background: var(--naver-soft); box-shadow: inset 0 0 0 1px var(--main); }
.field-title { display: block; margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg.big label { flex: 1; justify-content: center; padding: 10px 8px; font-size: 15px; font-weight: 700; }
.seg.big label:has(input:checked) { border-color: var(--main); background: var(--naver-soft); color: var(--naver-ink); }
.calc-line { margin: 6px 0 10px; padding: 8px 11px; border-radius: var(--radius-sm); background: #f0fdf4; color: #14532d; font-size: 13.5px; font-weight: 600; }
.hint-box { margin: 8px 0; padding: 9px 11px; border-radius: var(--radius-sm); background: var(--line-2); color: var(--ink-2); font-size: 13px; }
/* 홈: 오늘 할 일 (체크 목록) */
.todo-card .count-badge { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 99px; background: #e5484d; color: #fff; font-size: 11.5px; text-align: center; vertical-align: 1px; }
.todo-card .tcard-head .linkish { margin-left: 6px; font-size: 12px; }
.todo { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.todo form { margin: 0; }
.todo .cb { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 1px; padding: 0; border: 1.5px solid #c7ccd4; border-radius: 6px; background: var(--surface); color: #fff; font-size: 13px; cursor: pointer; }
.todo .cb:hover { border-color: var(--main); }
.todo .cb.on { background: var(--main); border-color: var(--main); }
.todo .t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; }
.todo .t a { color: inherit; text-decoration: none; }
.todo .t small { display: block; color: var(--muted); font-size: 12.5px; }
.todo .tm { margin-right: 4px; font-weight: 800; color: var(--naver-ink); font-variant-numeric: tabular-nums; }
.todo .btn.small { flex: none; min-height: 30px; padding: 3px 9px; }
.todo.done { opacity: .5; }
.todo-hint { margin: 0; padding: 7px 12px 9px; color: var(--muted); font-size: 12px; }
/* 설정: 손님 연락 알림 (설명 카드 + 스위치) */
.alert-card { margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.alert-card .alert-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.alert-card p { margin: 6px 0 0; color: var(--ink-2); font-size: 13.5px; }
.alert-card .ex { display: block; margin-top: 6px; padding: 5px 8px; border-radius: var(--radius-sm); background: #f7f8fa; color: var(--muted); font-size: 12.5px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch span { position: relative; width: 46px; height: 26px; border-radius: 99px; background: #d1d5db; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.switch input:checked + span { background: var(--main); }
.switch input:checked + span::after { left: 23px; }
.switch input:focus-visible + span { outline: 2px solid var(--main); outline-offset: 2px; }
.switch em { order: -1; font-style: normal; }
.switch input:checked ~ em { color: var(--naver-ink); }
/* 설명서 */
.guide-steps { margin: 6px 0 0; padding-left: 22px; }
.guide-steps li { margin: 0 0 12px; }
.guide-steps li b { font-size: 15px; }
.guide-steps p { margin: 3px 0 6px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ═════ 네이버 예약 메일 받는 주소 · 원장님이 직접 바꾼 예약 (2026-11-30) ═════ */
.address-box { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 10px 0 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--naver-soft); border: 1px solid var(--naver-line); }
.address-box code { flex: 1 1 220px; min-width: 0; color: var(--naver-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15.5px; font-weight: 700; word-break: break-all; }
.notes { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.notes li { margin: 4px 0; } .notes b { color: var(--ink-2); }
.other-way > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; cursor: pointer; }
.other-way[open] > summary { margin-bottom: 10px; }
.other-way h3 { margin: 16px 0 8px; font-size: 15px; }
.naver-sync { margin: 12px 0 4px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--naver-soft); border: 1px solid var(--naver-line); color: var(--ink-2); font-size: 13.5px; }
.naver-sync p { margin: 0 0 8px; } .naver-sync b { color: var(--naver-ink); }
.naver-sync .actions { justify-content: flex-start; margin: 0; }
.mail-text-view { padding: 0 14px 10px; border-bottom: 1px solid var(--line-2); background: var(--surface); }
.mail-text-view summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.mail-text-view pre { max-height: 260px; overflow: auto; margin: 6px 0 0; padding: 10px; border-radius: var(--radius-sm); background: var(--line-2); color: var(--ink-2); font-family: inherit; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
#change-notice textarea { width: 100%; }

/* ───── 신규 손님(보라) · 회원권 다 씀(빨간 0회) · 등록만 — 시안 1-3 (2026-12-02) ───── */
:root { --new: #9333ea; --new-ink: #7e22ce; --new-soft: #f3e8ff; --new-line: #c084fc; --zero: #dc2626; }
.card.new { background: var(--new-soft); border-color: var(--new-line); border-left-color: var(--new); }
.card.new .sub { color: var(--new-ink); font-weight: 600; }
.new-badge, .zero-badge { display: inline-block; flex: none; margin-right: 4px; padding: 0 5px; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 800; line-height: 1.55; vertical-align: 1px; }
.new-badge { background: var(--new); }
.zero-badge { background: var(--zero); }
.card .sub .zero-badge, .card .sub .new-badge { margin-right: 4px; }
.card.registered { opacity: .55; background: #f8fafc; border-left-color: #94a3b8; }
.card .state.reg { color: #64748b; }
.reg-tag { display: inline-block; padding: 0 6px; border-radius: 4px; background: #eef2f7; color: #475569; font-size: 12px; font-weight: 700; }
.reg-extra { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.reg-extra .linkish { margin: 0 2px; }
.btn.new-btn { background: var(--new); border-color: var(--new); color: #fff; }
.btn.new-btn:hover { background: var(--new-ink); border-color: var(--new-ink); }
.new-box { margin: 10px 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--new-soft); border: 1px solid var(--new-line); }
.new-box p { margin: 0 0 8px; font-size: 13.5px; color: #4c1d95; }
.zero-line { display: flex; align-items: center; gap: 4px; margin: 8px 0; padding: 8px 11px; border-radius: var(--radius-sm); background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 13.5px; font-weight: 600; }
.alert .new-badge { margin-left: 2px; }
.next-row .new-badge, .next-row .zero-badge { margin-left: 2px; }

/* ───── 회원권 고르기 (시안 3-1): 종류 → 10·20·30회 → 마지막 버튼 두 개 ───── */
.sale-who { margin: -2px 0 8px; }
.sale-ctx { margin: 0 0 8px; padding: 7px 10px; border-radius: var(--radius-sm); background: var(--line-2); font-size: 13px; }
.pass-picker .seg.tabs { margin: 6px 0 8px; }
.cat-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 8px; }
.cat-tab { padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: 15px; font-weight: 800; color: var(--ink-2); line-height: 1.3; cursor: pointer; }
.cat-tab small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.cat-tab.on.brown { border-color: #b45309; background: #fff7ed; color: #92400e; box-shadow: inset 0 0 0 1px #b45309; }
.cat-tab.on.white { border-color: #0284c7; background: #f0f9ff; color: #075985; box-shadow: inset 0 0 0 1px #0284c7; }
.cat-tab.on.other { border-color: var(--ink-2); background: #f8fafc; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }   /* 10·20·30회가 휴대폰에서도 한 줄에 */
.price-card { padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; text-align: center; line-height: 1.35; cursor: pointer; }
.price-card b { display: block; font-size: 15px; }
.price-card b i { margin-left: 2px; font-style: normal; font-size: 11px; color: var(--naver-ink); }
.price-card span { display: block; font-size: 13px; font-weight: 700; }
.price-card small { display: block; color: var(--muted); font-size: 11.5px; }
.price-card.on { border-color: var(--main); background: var(--naver-soft); box-shadow: inset 0 0 0 1px var(--main); }
.custom-pass { margin: 10px 0 0; }
.custom-pass summary, .find-old summary, .add-products summary { cursor: pointer; padding: 4px 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.sale-sum { margin: 12px 0 4px; padding: 8px 11px; border-radius: var(--radius-sm); background: #f7f8fa; font-size: 13.5px; font-weight: 600; }
.btn.two-line { flex-direction: column; gap: 1px; min-height: 52px; margin-top: 8px; white-space: normal; line-height: 1.3; }
.btn.two-line small { font-size: 12px; font-weight: 500; opacity: .92; }
.btn.line { background: var(--surface); border: 1.5px solid var(--accent); color: #8a5a14; }
.btn.line:hover { background: var(--accent-soft); }
.flash.ok { background: #effaf3; border-color: #c6ecd6; color: #065f46; }

/* ───── 신규 등록 3단계 (시안 2-2) ───── */
.steps-bar { display: flex; gap: 4px; margin: 8px 0 10px; }
.steps-bar i { flex: 1; height: 4px; border-radius: 99px; background: var(--line); }
.steps-bar i.on { background: var(--main); }
.step-name { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--main); }
.step-error { margin: 8px 0 0; color: var(--danger); font-size: 13px; font-weight: 600; }
.step-foot { margin: 10px 0 0; text-align: center; }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.find-old, .add-products { margin: 8px 0; }
.find-old input { margin-top: 6px; }
.prod-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; }
.chip-check input { width: auto; margin: 0; accent-color: var(--main); }
.chip-check:has(input:checked) { border-color: var(--main); background: var(--naver-soft); color: var(--naver-ink); font-weight: 700; }
.per-use { margin-top: 6px; }

/* ───── 메뉴·가격: 종류별 카드 (시안 ③ 설정) ───── */
.menu-help { margin: -4px 0 10px; }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; }
.cat-card { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cat-head .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
.cat-head .dot.brown { background: #b45309; } .cat-head .dot.white { background: #0284c7; }
.cat-rename { display: flex; flex: 1; align-items: center; gap: 6px; margin: 0; }
.cat-rename input { flex: 1; width: auto; min-width: 0; margin: 0; padding: 6px 9px; font-weight: 700; }
.cat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 6px 0; border-top: 1px solid var(--line-2); }
.cat-row.head { gap: 0; padding: 0 0 2px; border-top: 0; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.cat-row.head span { flex: none; }   /* 아래 칸 폭에 맞춘 제목 */
.cat-row.head span:nth-child(1) { width: 84px; } .cat-row.head span:nth-child(2) { width: 79px; }
.cat-row.head span:nth-child(3) { width: 118px; } .cat-row.head span:nth-child(4) { width: 91px; }
.cat-row input { width: auto; min-width: 0; margin: 0; padding: 6px 8px; }
.cat-row .unit { display: inline-flex; align-items: center; gap: 3px; margin: 0; font-size: 12.5px; font-weight: 500; }
.cat-row .unit input { width: 62px; }
.cat-row .unit input[name="price"] { width: 96px; }
.cat-row .cat-name { flex: 1 1 120px; }
.cat-row .row-btns { display: inline-flex; gap: 4px; margin-left: auto; }
.cat-row.add { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.cat-row.new-cat { margin-top: 12px; padding: 9px 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.cat-row.faded { opacity: .5; }


/* ═════ 시간표 100점안 (2026-12-05) — 색·버튼 자리는 그대로, 글자 정리만 ═════ */
/* 1) 낱말 중간에서 끊지 않기 · 잘림 없애기 */
.alert p, .card .sub { word-break: keep-all; }
.card.done .tag, .card.registered .tag { display: none; }          /* 끝난 예약은 '완료'만 — 전화·방문 표시 숨김 */
.chips { gap: 5px; } .chip { padding: 4px 7px; font-size: 12.5px; }   /* 요약 칩 한 줄 */
/* 2) 알림: 설명은 두 줄, 안내는 버튼 속 작은 글씨 */
.alert { padding: 10px 12px; gap: 10px; }
.alert small.ref { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.alert.naver .actions-inline { flex-wrap: nowrap; gap: 6px; }
.alert .btn.two-line { margin-top: 0; min-height: 46px; padding: 4px 11px; font-size: 13.5px; }
.alert .btn.two-line small { font-size: 11px; }
.alert.gold .btn { min-height: 36px; padding: 5px 12px; font-size: 13.5px; }
/* 3) 강약: 시간은 진하게, 칸은 줄 단위(숫자만 굵게) — 시간 칸 8px 줄여 손님 칸에 나눔 */
.grid .row { grid-template-columns: 50px repeat(var(--cols), minmax(0, 1fr)); }
.grid .time { color: var(--ink-2); font-weight: 700; }
.grid .card { padding: 7px 8px; }
.grid .card .nm { font-size: 14.5px; }
.grid .card .sub { font-size: 12px; white-space: normal; }
.grid .card .sub .ln { display: flex; align-items: center; gap: 0 3px; white-space: nowrap; min-width: 0; }
.grid .card .sub .ln b { flex: none; color: var(--ink); font-weight: 700; }
.grid .card .sub .ln .kd { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }   /* 종류가 길면 종류만 줄이고 숫자는 그대로 */
.grid .card.done .sub .ln b, .grid .card.registered .sub .ln b { color: inherit; }
/* 칸이 좁을 때 (기계 4대 이상, 접힌 폴더블 바깥 화면 등): 자르지 말고 낱말 단위로 줄바꿈.
   기준 = 화면 폭이 아니라 '칸 폭' (컨테이너 쿼리). 오래된 브라우저는 아래 화면 폭 기준이 대신 받쳐 줌 */
.grid .cell.card { container-type: inline-size; }
@container (max-width: 84px) {
  .sub .ln { flex-wrap: wrap; white-space: normal; }
  .sub .ln .kd { overflow: visible; }
  .nm { flex-wrap: wrap; white-space: normal; row-gap: 2px; }
}
@media (max-width: 380px) {
  .grid .card .sub .ln { flex-wrap: wrap; white-space: normal; }
  .grid .card .sub .ln .kd { overflow: visible; }
  .grid .card .nm { flex-wrap: wrap; white-space: normal; row-gap: 2px; }
  .alert .btn.two-line { padding: 4px 8px; }
}
/* 모든 화면: 한글은 낱말 단위로만 줄바꿈 (긴 번호·주소처럼 띄어쓰기 없는 글자만 칸 끝에서 끊음) */
body { word-break: keep-all; overflow-wrap: break-word; }

/* ═════ 홈 100점안 (2026-12-05) — 시간표와 같은 방식 ═════ */
.next-row { flex-wrap: wrap; row-gap: 2px; }
.next-row .np { color: var(--muted); font-size: 13px; white-space: nowrap; }
.next-row .np b { font-size: 13px; color: var(--ink); font-weight: 700; }
.todo .t > a b { font-weight: 600; }      /* 오늘 할 일: 굵게는 시간·할 일만, 이름은 한 단계 낮춤 */
/* 손님 목록·손님 기록: 회원권은 '화이트 10회 남음'(숫자 굵게), 주황은 곧 끝나는 것만 */
.pass-short { color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.pass-short b { font-weight: 700; color: var(--ink); }
.pass-short.gold-text { color: var(--accent); font-weight: 600; } .pass-short.gold-text b { color: inherit; }
.pass-left { display: block; white-space: nowrap; font-weight: 400; font-size: 14px; } .pass-left b { font-weight: 700; }
.list-item .right small.vp { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
/* 메뉴·가격: 좁은 화면(폭 344)에서 종류 이름 칸이 옆으로 밀리던 것 (원래 있던 문제) */
.cat-rename { min-width: 0; } .cat-rename .btn { flex: none; }
.cat-card { min-width: 0; }
@media (max-width: 400px) { .cat-cards { grid-template-columns: minmax(0, 1fr); } }
.cat-row.head { overflow: hidden; }
/* 매장 설정 → 기계: 이름 칸·이름 저장·쉬게 하기를 한 줄로 */
.list-item > form.inline { flex: 1; flex-wrap: nowrap; align-items: center; margin: 0; min-width: 0; }
.list-item > form.inline input { flex: 1; min-width: 0; }
/* 처음 설정에 '네이버 예약 메일 연결'이 보이는 동안엔 아래 같은 안내 칸(연결 전)을 겹쳐 보이지 않게 */
.setup:not([hidden]):has(li[data-step="mail"]:not(.done)) ~ .mailbar.off { display: none; }

/* ═════ 메뉴·가격 B안 (2026-12-05) — 평소엔 읽기만, '고치기 ›' 누른 줄만 열림 ═════ */
.cat-head { flex-wrap: wrap; }
.cat-head .nm-b { font-size: 16px; font-weight: 800; }
.cat-head details.rn { margin-left: auto; }
.cat-head details.rn > summary { list-style: none; font-size: 12.5px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.cat-head details.rn > summary::-webkit-details-marker { display: none; }
.cat-head details.rn[open] { flex-basis: 100%; min-width: 0; margin: 6px 0 0; }
.cat-head details.rn[open] > summary { margin-bottom: 4px; }
.cat-head details.rn .cat-rename input { width: 0; }   /* 좁은 화면에서 이름 칸이 줄어들게 (flex로 남은 폭을 채움) */
.mi-list { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; background: var(--surface); }
details.mi { border-top: 1px solid var(--line-2); }
.mi-list details.mi:first-child, .cat-head + details.mi { border-top: 0; }
details.mi > summary { list-style: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; padding: 11px 2px; cursor: pointer; font-size: 15px; }
details.mi > summary::-webkit-details-marker { display: none; }
details.mi > summary b { min-width: 46px; font-size: 16px; }
details.mi > summary b.nm { min-width: 0; }
details.mi > summary .pr { font-weight: 700; font-variant-numeric: tabular-nums; }
details.mi > summary .sv, details.mi > summary .vm { color: var(--muted); font-size: 13px; }
details.mi > summary .hid { color: var(--muted); font-size: 12px; }
details.mi > summary .ed { margin-left: auto; color: var(--main); font-size: 13px; font-weight: 700; white-space: nowrap; }
details.mi[open] > summary .ed { color: var(--muted); }
details.mi.off > summary { opacity: .5; }
details.mi.add { border-top: 1px dashed var(--line); }
details.mi.add > summary .ed { margin-left: 0; font-size: 14px; }
details.mi.new-cat { margin-top: 10px; border-top: 0; }
.mi-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; align-items: end; margin: 0 0 10px; padding: 10px; border-radius: var(--radius-sm); background: #f6f8f7; }
.mi-form label.f { display: flex; flex-direction: column; gap: 3px; margin: 0; min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.mi-form label.f.wide { grid-column: 1 / -1; }
.mi-form label.f input { width: 100%; min-width: 0; margin: 0; padding: 8px 10px; color: var(--ink); font-size: 15px; }
.mi-btns { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; }
.mi-btns .btn { min-width: 76px; }