/* 스킨패스 — 고객 화면(휴대폰 먼저) + 관리 화면. 외부 글꼴·라이브러리 없음 */
:root {
  --ink: #1f2a33; --muted: #6b7781; --line: #e3e7ea; --bg: #f6f4f1; --card: #fff;
  --brand: #1f3a4d; --accent: #c9826b; --ok: #2f7d5b; --warn: #b7791f; --err: #b3403a;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", "Noto Sans KR", "Noto Sans JP", "Noto Sans TC", "Noto Sans Thai", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
h1 { font-size: 1.6rem; margin: .2em 0 .5em; line-height: 1.25; }
h2 { font-size: 1.15rem; margin: 0 0 .6em; }
h3 { font-size: 1rem; margin: 1em 0 .4em; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .mono { font-family: ui-monospace, Consolas, monospace; }
.center { text-align: center; } .inline { display: inline; } .sr { position: absolute; left: -9999px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 0 0 16px; }
.stack > * + * { margin-top: 12px; }
label { display: block; font-size: .92rem; }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cfd6db; border-radius: 10px; background: #fff; margin-top: 4px; }
input[type=checkbox], input[type=radio] { width: auto; margin: 0 6px 0 0; }
fieldset { border: 0; padding: 0; margin: 0; } legend { font-weight: 600; margin-bottom: 6px; }
.btn { display: inline-block; border: 0; border-radius: 999px; background: var(--brand); color: #fff; padding: 11px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn.small { padding: 7px 14px; font-size: .9rem; } .btn.tiny { padding: 4px 10px; font-size: .8rem; }
button.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .85rem; }
.flash { padding: 10px 14px; border-radius: 10px; margin: 0 0 12px; background: #eef6f1; color: var(--ok); }
.flash.err { background: #fbeeee; color: var(--err); } .flash.warn { background: #fdf6e8; color: var(--warn); }
.warn-t { color: var(--warn); }
.check { display: flex; align-items: flex-start; gap: 4px; } .check input { margin-top: 4px; }
.tag, .pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #f1ece7; font-size: .85rem; margin: 2px 0; }
.pill { background: #fff3ee; color: var(--accent); }

/* 고객 화면 */
.pub-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--brand); color: #fff; }
.pub-top .logo { color: #fff; text-decoration: none; font-weight: 700; }
.logo-mark { color: var(--accent); }
.lang select { margin: 0; padding: 6px 8px; width: auto; font-size: .85rem; }
.pub-main { max-width: 680px; margin: 0 auto; padding: 16px; }
.pub-foot { max-width: 680px; margin: 0 auto; padding: 20px 16px 40px; font-size: .85rem; color: var(--muted); }
.hero { padding: 10px 2px 6px; } .lead { font-size: 1.05rem; color: #44525d; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; list-style: none; counter-reset: s; margin: 14px 0; }
.steps3 li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: .85rem; counter-increment: s; }
.steps3 li::before { content: counter(s); display: block; font-weight: 700; color: var(--accent); }
.info > div + div { margin-top: 8px; }
.days span { display: inline-block; min-width: 2em; text-align: center; font-size: .8rem; margin-right: 2px; padding: 2px 4px; border-radius: 6px; background: #eef3f6; }
.days span.off { background: none; color: #b9c0c5; text-decoration: line-through; }
.opt { display: flex; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: block; text-align: center; padding: 10px 0; border: 1px solid #cfd6db; border-radius: 10px; background: #fff; cursor: pointer; }
.slot input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.slot input:focus-visible + span { outline: 3px solid var(--accent); }
.ok-mark { font-size: 2.4rem; color: var(--ok); margin: 0; }
.code { font: 700 2rem/1 ui-monospace, Consolas, monospace; letter-spacing: .15em; }
.big { font-size: 2.4rem; font-weight: 700; margin: 0; }
.passport .pp-head { padding: 4px 2px 10px; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .pp-grid .card { margin: 0 0 12px; }
.big-tag { font-size: 1.3rem; font-weight: 700; color: var(--accent); margin: 0; }
.note p { white-space: normal; }
.routine { list-style: none; padding: 0; margin: 0; }
.routine li { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.r-step { font-size: .8rem; color: var(--muted); }
.shop-list { list-style: none; padding: 0; } .shop-list li { padding: 12px 0; border-top: 1px solid var(--line); }
@media (max-width: 520px) {
  .pp-grid { grid-template-columns: 1fr; }
  .routine li { grid-template-columns: 1fr; gap: 4px; }
  .steps3 { grid-template-columns: 1fr; }
}

/* 관리 화면 */
.adm-top { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 10px 18px; background: var(--brand); color: #fff; }
.adm-top .logo { color: #fff; text-decoration: none; font-weight: 700; } .adm-top .logo small { font-weight: 400; opacity: .8; }
.adm-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.adm-nav a { color: #dfe8ee; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .92rem; }
.adm-nav a.on, .adm-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.adm-user { display: flex; gap: 10px; align-items: center; } .adm-user a, .adm-user button.link { color: #dfe8ee; }
.badge { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; }
.adm-main { max-width: 1180px; margin: 0 auto; padding: 18px; }
.adm-foot { text-align: center; padding: 20px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--ink); }
.kpi b { display: block; font-size: 1.7rem; } .kpi span { color: var(--muted); font-size: .85rem; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; font-size: .92rem; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: #f3f5f6; font-weight: 600; font-size: .85rem; }
.tbl tr.dim td { color: #a0a8ae; }
.actions form, .actions a { margin: 2px 2px 2px 0; }
.st { font-size: .8rem; padding: 2px 8px; border-radius: 999px; background: #eef1f3; }
.st-pending { background: #fdf2dd; color: var(--warn); } .st-confirmed { background: #e3eef7; color: var(--brand); }
.st-done { background: #e6f3ec; color: var(--ok); } .st-cancelled, .st-noshow { background: #f6e5e4; color: var(--err); }
.filters { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.filters label, .filters input, .filters select { width: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 7px 14px; border: 1px solid #cfd6db; border-radius: 999px; background: #fff; cursor: pointer; }
.chip input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); }
.prod-pick { display: grid; grid-template-columns: 1fr 140px; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.prod-pick select { margin: 0; padding: 6px 8px; }
.qr svg { width: 220px; height: 220px; }
.msg-body { font-size: .9rem; background: #fafbfb; }
.erase input { width: 70px; padding: 4px 6px; font-size: .8rem; margin: 0 4px 0 0; }
.plain { display: grid; place-items: center; min-height: 100vh; }
.plain-box { width: min(420px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
@media print {
  .adm-top, .adm-foot, .btn, .flash { display: none !important; }
  body { background: #fff; } .card { border: 0; }
}
