:root { color-scheme: only light; --bg:#fbf7f2; --ink:#1f2a44; --sub:#5b6178; --line:#e9e1d9; --pri:#1f2a44; --pri2:#5d6b8f; --ok:#2f8f5b; --warn:#b7791f; --bad:#c0392b; --card:#fff;
  color:var(--ink); }
* { box-sizing:border-box; }
html,body { margin:0; height:100%; background:var(--bg); overflow:hidden; }
body { display:flex; flex-direction:column; height:100vh; height:100dvh; -webkit-tap-highlight-color:transparent; }
[hidden] { display:none !important; }
.topbar { display:flex; align-items:center; gap:12px; padding:10px 16px; padding-top:max(10px, env(safe-area-inset-top)); background:#1f2a44; color:#fff; position:sticky; top:0; z-index:5; }
.brand { font-weight:800; font-size:20px; display:flex; align-items:center; gap:10px; white-space:nowrap; }
.logo { width:28px; height:28px; border-radius:50%; background:conic-gradient(#f7a58c 0 25%, #b9d7f0 0 50%, #c47a5a 0 75%, #6d1a36 0); }
.steps { flex:1; display:flex; gap:6px; justify-content:center; overflow:hidden; }
.steps span { font-size:14px; padding:4px 10px; border-radius:99px; background:rgba(255,255,255,.1); color:#d6d2e4; white-space:nowrap; }
.steps span.done { background:rgba(255,255,255,.22); color:#fff; } .steps span.cur { background:#fff; color:#1f2a44; font-weight:700; }
.topbar .btn.ghost { color:#fff; border-color:rgba(255,255,255,.4); background:transparent; margin-left:auto; }

#app { flex:1; display:flex; flex-direction:column; min-height:0; }
.stage { display:none; position:relative; background:#111; overflow:hidden; touch-action:pan-y; }
body.has-stage .stage { display:block; }
.stage video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.stage.mirror video { transform:scaleX(-1); }
.overlay { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.overlay .dim { fill:rgba(0,0,0,.45); }
.overlay .ovalline { fill:none; stroke:#fff; stroke-width:5; stroke-dasharray:18 12; }
#layerOval.faint .dim { fill:rgba(0,0,0,0); } #layerOval.faint .ovalline { stroke:rgba(255,255,255,.5); stroke-width:3; }
.overlay .paperline { fill:none; stroke:#fff; stroke-width:6; stroke-dasharray:20 12; }
.overlay .divider { stroke:#fff; stroke-width:4; }
.overlay .drapetag { fill:#fff; paint-order:stroke; stroke:rgba(0,0,0,.45); stroke-width:6px; font-weight:800; text-anchor:middle; font-family:inherit; }
.stage-msg { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); color:#fff; background:rgba(0,0,0,.6); padding:16px 20px; border-radius:14px; max-width:86%; text-align:center; font-size:18px; line-height:1.5; }
.meter { position:absolute; left:12px; top:12px; display:flex; flex-wrap:wrap; gap:8px; }
.meter .m { padding:8px 12px; border-radius:99px; font-size:16px; font-weight:700; color:#fff; background:rgba(0,0,0,.55); }
.meter .m.ok::before { content:'● '; color:#5be39a; } .meter .m.warn::before { content:'● '; color:#ffd166; } .meter .m.bad::before { content:'● '; color:#ff6b6b; }
.stage-tools { position:absolute; right:12px; top:12px; }
.btn.round { width:60px; height:60px; border-radius:50%; font-size:26px; padding:0; background:rgba(255,255,255,.9); }

.panel { flex:1; min-height:0; padding:16px 20px 0; overflow:auto; overscroll-behavior:contain; }
.screen { max-width:760px; margin:0 auto; min-height:100%; display:flex; flex-direction:column; }
h1 { font-size:34px; margin:12px 0; } h2 { font-size:26px; margin:6px 0 12px; } .lead { font-size:19px; line-height:1.6; color:#333c58; }
.btn { font:inherit; font-size:18px; font-weight:700; border:2px solid var(--line); background:#fff; color:var(--ink); border-radius:14px; padding:12px 18px; min-height:52px; cursor:pointer; touch-action:manipulation; }
.btn:active { transform:scale(.98); } .btn:disabled { opacity:.45; cursor:not-allowed; }
.btn.xl { font-size:21px; min-height:68px; padding:14px 22px; }
.btn.primary { background:var(--pri); border-color:var(--pri); color:#fff; } .btn.danger { background:#fff; border-color:var(--bad); color:var(--bad); }
.btn.ghost { background:transparent; }
.bigbtns { display:flex; flex-direction:column; gap:12px; margin:18px 0; } .bigbtns.row { flex-direction:row; flex-wrap:wrap; } .bigbtns.row .btn { flex:1 1 220px; }
.notes, .tips, .consent-list { font-size:18px; line-height:1.6; padding-left:22px; color:#333c58; }
.consent-list li { margin:8px 0; } .consent-list b { display:block; }
.check { display:flex; align-items:center; gap:12px; font-size:20px; font-weight:700; padding:16px; border:2px solid var(--line); border-radius:14px; background:#fff; }
.check input { width:30px; height:30px; }
.status { padding:12px 16px; border-radius:12px; background:#fff; border:2px solid var(--line); font-size:18px; } .status.ok { border-color:var(--ok); color:var(--ok); font-weight:700; }
.spinner { width:64px; height:64px; border-radius:50%; border:7px solid #e6e1ef; border-top-color:var(--pri); animation:spin 1s linear infinite; margin:60px auto 20px; }
@keyframes spin { to { transform:rotate(360deg); } }
[data-for="analyzing"] { text-align:center; }
.chip { display:inline-block; font-size:15px; padding:4px 12px; border-radius:99px; background:#eceaf5; color:var(--pri); vertical-align:middle; font-weight:700; }
.chip.high { background:#e3f4ea; color:#1f6e44; } .chip.mid { background:#fdf1dc; color:#875a12; } .chip.low { background:#fbe4e1; color:#a8301f; } .chip.ghost { background:#f3f0ee; color:var(--sub); }
.cands { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cand { background:#fff; border:2px solid var(--line); border-radius:16px; padding:14px; display:flex; flex-direction:column; gap:6px; }
.cand.first { border-color:var(--pri); } .cand b { font-size:22px; } .cand span { color:var(--sub); }
.cand .sw { height:38px; border-radius:10px; }
.measure { display:flex; gap:14px; align-items:center; background:#fff; border-radius:16px; padding:14px; margin:14px 0; border:2px solid var(--line); font-size:17px; line-height:1.5; }
.skinchip { width:64px; height:64px; border-radius:50%; flex:none; border:3px solid #fff; box-shadow:0 0 0 2px var(--line); }
.axis { margin:10px 0; } .axis-l { font-weight:700; margin-bottom:4px; }
.axis-track { display:flex; align-items:center; gap:10px; } .axis-end { width:72px; font-size:15px; color:var(--sub); text-align:center; }
.axis-bar { flex:1; height:12px; border-radius:99px; background:linear-gradient(90deg,#9cc3ea,#e8e2ea,#f2b38a); position:relative; }
.axis-bar i { position:absolute; top:50%; width:24px; height:24px; border-radius:50%; background:var(--pri); border:3px solid #fff; transform:translate(-50%,-50%); box-shadow:0 1px 4px rgba(0,0,0,.3); }
.warn { color:#8a5a12; background:#fdf4e3; border-radius:10px; padding:10px 12px; margin:8px 0; font-size:16px; }
.honest { font-size:16px; color:var(--sub); background:#fff; border-radius:10px; padding:10px 12px; }
.tabs { display:flex; gap:8px; margin-bottom:12px; } .tab { flex:1; font:inherit; font-size:19px; font-weight:700; min-height:56px; border-radius:14px; border:2px solid var(--line); background:#fff; color:var(--sub); }
.tab.on { background:var(--pri); color:#fff; border-color:var(--pri); }
.progress { display:flex; gap:6px; align-items:center; } .progress i { flex:1; height:8px; border-radius:99px; background:#e4dde6; } .progress i.done { background:var(--pri2); } .progress i.cur { background:var(--pri); }
.progress span { margin-left:8px; color:var(--sub); font-weight:700; }
.choice { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:12px 0; }
.dot { display:inline-block; width:26px; height:26px; border-radius:50%; vertical-align:middle; margin-right:10px; border:2px solid rgba(0,0,0,.15); }
.selrow { display:grid; grid-template-columns:1fr 1fr; gap:12px; } .selrow label { font-weight:700; display:flex; flex-direction:column; gap:6px; }
select { font:inherit; font-size:19px; min-height:56px; border-radius:12px; border:2px solid var(--line); padding:0 10px; background:#fff; }
.navrow { display:flex; align-items:center; gap:12px; margin:12px 0; } .navrow .btn { width:84px; }
.colorname { flex:1; display:grid; grid-template-columns:auto 1fr 1fr; gap:10px; align-items:center; font-size:18px; text-align:center; }
.hint { color:var(--sub); margin:0; }
.votes { margin:10px 0; font-size:16px; } .vote { display:inline-block; margin:4px 6px 0 0; padding:5px 10px; border-radius:99px; background:#fff; border:1px solid var(--line); }

.card { background:var(--card); border-radius:24px; overflow:hidden; box-shadow:0 6px 24px rgba(43,35,64,.12); padding:0 24px 18px; }
.card-top { height:14px; margin:0 -24px; } .card-head small { display:block; margin-top:18px; color:var(--sub); font-weight:700; }
.card-head h1 { font-size:40px; margin:4px 0; } .kw { margin:0; color:var(--sub); font-size:18px; } .meta { margin:10px 0 0; display:flex; flex-wrap:wrap; gap:6px; }
.desc { font-size:18px; line-height:1.65; }
.card h2.sec { margin:18px 0 8px; font-size:20px; }
.palette { display:grid; grid-template-columns:repeat(6,1fr); gap:12px 8px; margin-bottom:8px; }
.swatch { display:flex; flex-direction:column; gap:4px; min-width:0; }
.swatch i { display:block; aspect-ratio:1/1; border-radius:12px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch.sm i { aspect-ratio:1.4/1; }
.swatch span { font-size:13px; text-align:center; color:var(--sub); line-height:1.25; word-break:keep-all; }
.tipsgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:8px; } .tipsgrid div { background:#f7f1ea; border-radius:14px; padding:12px; }
.tipsgrid h3 { margin:0 0 6px; font-size:17px; } .tipsgrid p { margin:0; font-size:16px; line-height:1.55; }
.note { font-size:15px; color:var(--sub); }
.modal { position:fixed; inset:0; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; z-index:20; }
.modal-box { background:#fff; border-radius:18px; padding:22px; width:min(92vw,440px); font-size:19px; } .modal-btns { display:flex; gap:10px; justify-content:flex-end; } .modal-btns .btn { min-width:110px; }
.toast { position:fixed; left:50%; top:calc(76px + env(safe-area-inset-top)); transform:translateX(-50%); background:#1f2a44; color:#fff; padding:14px 20px; border-radius:14px; font-size:18px; z-index:30; max-width:90vw; text-align:center; }

/* 휴대폰 세로: 카메라 위, 조작 아래 */
body.has-stage .stage { height:58vh; height:clamp(190px, calc(100dvh - 330px), 58dvh); flex:none; }
body[data-screen="drape"].has-stage .stage { height:52vh; height:clamp(180px, calc(100dvh - 410px), 52dvh); }
@media (max-width:600px) {
  .steps { display:none; } .brand { font-size:18px; } h1 { font-size:28px; } h2 { font-size:22px; }
  .panel { padding:14px; } .palette { grid-template-columns:repeat(4,1fr); } .palette.avoid { grid-template-columns:repeat(3,1fr); }
  .tipsgrid { grid-template-columns:1fr; } .card { padding:0 16px 14px; } .card-top { margin:0 -16px; } .card-head h1 { font-size:32px; }
  .btn.xl { font-size:19px; min-height:62px; } .choice .btn { font-size:17px; padding:10px; }
}
/* 태블릿/노트북 가로: 카메라 왼쪽, 조작 오른쪽 */
@media (orientation:landscape) and (min-width:800px) {
  body.has-stage #app { flex-direction:row; }
  body.has-stage .stage { height:auto !important; flex:1.35; min-height:0; }
  body.has-stage .panel { flex:1; max-width:520px; }
  body.has-stage .screen { max-width:none; }
  .bigbtns.row .btn { flex:1 1 200px; }
  body[data-screen="result"] .screen, body[data-screen="auto"] .screen { max-width:980px; }
}

.choice .btn { display:flex; align-items:center; gap:10px; text-align:left; }
.choice .dot { margin-right:0; flex:none; width:32px; height:32px; }
.choice .ct small { display:block; font-size:14px; color:var(--sub); font-weight:600; }

/* ---------- 선택·조작 버튼 한 화면에 보이기 ---------- */
/* 각 화면의 버튼 묶음은 패널 아래쪽에 고정(내용만 스크롤) */
.screen > .bigbtns { position:sticky; bottom:0; z-index:2; margin:auto 0 0; padding:10px 0 max(12px, env(safe-area-inset-bottom));
  background:var(--bg); box-shadow:0 -10px 12px -10px rgba(43,35,64,.25); display:flex; flex-direction:row; flex-wrap:wrap; gap:8px; }
.screen > .bigbtns::before { content:''; position:absolute; inset:0 -20px; background:var(--bg); z-index:-1; }
.screen > .bigbtns > * { flex:1 1 40%; min-width:0; }
.screen > .bigbtns > .primary, .screen > .bigbtns > .check { flex-basis:100%; }
.screen > .bigbtns .btn.xl { min-height:56px; font-size:19px; padding:10px 14px; }
.screen > .bigbtns .btn { min-height:52px; padding:8px 12px; word-break:keep-all; }
.screen > .bigbtns .check { padding:10px 14px; font-size:18px; }
.screen[data-for="home"] > .bigbtns { position:static; margin:18px 0; box-shadow:none; padding:0; }
.screen[data-for="home"] > .bigbtns::before { display:none; }
.screen[data-for="home"] > .bigbtns > * { flex-basis:100%; }
[data-for="analyzing"] { justify-content:center; }
/* 드레이핑: 비교 버튼·결과 버튼을 한 번에 */
[data-for="drape"] .tabs { margin-bottom:8px; } [data-for="drape"] .tab { min-height:48px; font-size:17px; }
.roundhead { display:flex; align-items:center; gap:12px; margin:2px 0; } .roundhead h2 { margin:0; font-size:20px; white-space:nowrap; } .roundhead .progress { flex:1; }
[data-for="drape"] #roundQ { font-size:16px; line-height:1.45; margin:4px 0; }
[data-for="drape"] .choice { margin:8px 0; gap:8px; } [data-for="drape"] .choice .btn.xl { min-height:60px; padding:8px 10px; font-size:17px; }
[data-for="drape"] #roundDone .lead { font-size:16px; margin:6px 0; }
[data-for="drape"] .selrow { gap:8px; } [data-for="drape"] .selrow label { flex-direction:row; align-items:center; gap:6px; white-space:nowrap; }
[data-for="drape"] select { flex:1; min-width:0; min-height:48px; font-size:16px; padding:0 6px; }
[data-for="drape"] .navrow { margin:8px 0; gap:8px; } [data-for="drape"] .navrow .btn.xl { min-height:52px; width:64px; padding:0; }
[data-for="drape"] .colorname { font-size:16px; gap:6px; }
[data-for="drape"] .votes { margin:4px 0; white-space:nowrap; overflow-x:auto; font-size:14px; }
[data-for="drape"] .votes:empty { display:none; }
[data-for="drape"] .bigbtns > .btn { flex-basis:40%; }
@media (max-height:760px) { [data-for="drape"] .hint { display:none; } .panel { padding-top:12px; } }
@media (max-width:600px) { .topbar { padding:8px 12px; padding-top:max(8px, env(safe-area-inset-top)); } .panel { padding:12px 14px 0; } .screen > .bigbtns::before { inset:0 -14px; }
  h2 { margin:4px 0 8px; } .tips, .consent-list, .notes { font-size:16px; } .status { font-size:16px; padding:10px 12px; } }
[data-for="drape"] .selrow { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } [data-for="drape"] .selrow label { min-width:0; }
/* ---------- 결과: 얼굴형 · 탭(컬러/립/안경/눈썹) ---------- */
.facerow { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin:12px 0 4px; padding:10px 12px; background:#f7f1ea; border-radius:14px; }
.facerow label { font-weight:800; } .facerow select { min-height:48px; font-size:17px; }
.fnote { flex:1 1 220px; font-size:14px; color:var(--sub); line-height:1.4; }
.rtabs { display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin:10px 0 4px; position:sticky; top:-16px; z-index:1; background:var(--card); padding:6px 0; }
.rtab { font:inherit; font-size:17px; font-weight:800; min-height:48px; border-radius:12px; border:2px solid var(--line); background:#fff; color:var(--sub); cursor:pointer; }
.rtab.on { background:var(--pri); border-color:var(--pri); color:#fff; }
.card h2.sec small { font-size:15px; color:var(--sub); font-weight:700; margin-left:6px; }
.palette.lips, .palette.frames { grid-template-columns:repeat(4,1fr); } .palette.lips.avoid { grid-template-columns:repeat(4,1fr); }
.swatch.lip i, .swatch.frame i { aspect-ratio:1/1; border-radius:50%; } .swatch.lip.sm i { width:70%; margin:0 auto; }
.tip { font-size:16px; line-height:1.55; margin:6px 0; } .tip .sub { display:block; color:var(--sub); font-size:15px; margin-top:2px; }
.glist { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.gitem { background:#f7f1ea; border-radius:14px; padding:10px 6px; display:flex; flex-direction:column; align-items:center; gap:6px; font-weight:800; }
.gitem .gl { width:100%; max-width:150px; height:auto; }
.browrec { display:flex; gap:14px; align-items:center; background:#f7f1ea; border-radius:14px; padding:12px; }
.browrec .brow { width:140px; flex:none; } .browrec b { font-size:19px; } .browrec p { margin:4px 0 0; font-size:16px; line-height:1.5; }
.warn.pick { font-weight:700; }
@media (max-width:600px) { .rtabs { top:-12px; } .browrec { flex-direction:column; align-items:flex-start; } .browrec .brow { width:120px; } }
/* 결과 화면 하단 버튼: 저장(전체 폭) + 나머지 2개 한 줄 → 추천 내용이 더 많이 보이게 */
.screen > .bigbtns.row > .btn { flex:1 1 40%; } .screen > .bigbtns.row > .btn.primary { flex-basis:100%; }
@media (orientation:landscape) and (min-width:800px) { .screen > .bigbtns.row > .btn, .screen > .bigbtns.row > .btn.primary { flex:1 1 0; } }
@media (max-width:600px) { .card-head small { margin-top:12px; } .card-head h1 { font-size:28px; } .kw { font-size:16px; } .facerow { margin-top:8px; padding:8px 10px; } .fnote { font-size:13px; } }
@media (max-width:600px) { .screen > .bigbtns > .btn:not(.primary) { font-size:16px; padding:6px 8px; } }
/* ---------- 진단권(QR) · 관리자 ---------- */
.overlay .qrline { fill:none; stroke:#fff; stroke-width:6; stroke-dasharray:28 14; }
body[data-screen="ticket"].has-stage .stage, body[data-screen="adminScan"].has-stage .stage { height:50vh; height:clamp(180px, calc(100dvh - 400px), 52dvh); }
.lead.sm { font-size:17px; margin:4px 0 8px; }
.status.bad { border-color:var(--bad); color:var(--bad); font-weight:700; background:#fdf0ee; }
.manual { display:flex; flex-direction:column; gap:6px; margin:10px 0 0; font-size:15px; color:var(--sub); font-weight:600; }
.manual input, .pwinput, .issuerow input, .issuerow select, .pwgrid input { font:inherit; font-size:18px; min-height:50px; border-radius:12px; border:2px solid var(--line); padding:0 12px; background:#fff; color:var(--ink); }
.manual input { font-family:'DejaVu Sans Mono',Menlo,Consolas,monospace; letter-spacing:.5px; text-transform:uppercase; }
.pwinput { width:100%; font-size:28px; letter-spacing:10px; text-align:center; margin:6px 0 10px; }
.linkbtn { align-self:flex-end; margin-top:auto; background:none; border:0; color:var(--sub); font:inherit; font-size:14px; text-decoration:underline; padding:10px 4px; cursor:pointer; opacity:.75; }
.adminhead { display:flex; align-items:center; gap:10px; flex-wrap:wrap; } .adminhead h2 { margin:0 0 8px; }
[data-for="admin"] .tab { min-height:48px; font-size:16px; }
.issuerow { display:grid; grid-template-columns:1fr 1.3fr; gap:8px; align-items:end; }
.issuerow label { display:flex; flex-direction:column; gap:4px; font-weight:700; font-size:15px; } .issuerow input, .issuerow select { width:100%; min-width:0; }
.issuerow #issueDate { grid-column:1/-1; } .issuerow #btnIssue { grid-column:1/-1; }
.cardnav { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:10px 0 6px; font-weight:700; color:var(--sub); font-size:15px; } .cardnav .btn { min-width:52px; padding:0; }
.cardpreview { display:block; width:100%; max-width:440px; margin:0 auto; aspect-ratio:90/50; border-radius:14px; box-shadow:0 6px 18px rgba(43,35,64,.25); background:#ddd; }
.issueacts { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:10px; } .issueacts .btn { padding:6px; font-size:16px; }
.sub { color:var(--sub); font-size:15px; }
.qlist { display:flex; flex-direction:column; gap:6px; max-height:46dvh; overflow:auto; margin-bottom:10px; }
.qrow { display:grid; grid-template-columns:auto 1fr auto 64px; gap:8px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:12px; padding:6px 10px; font-size:15px; }
.mono { font-family:'DejaVu Sans Mono',Menlo,Consolas,monospace; font-weight:700; } .qd { color:var(--sub); font-size:13px; }
.st { font-weight:800; font-size:14px; padding:3px 8px; border-radius:99px; background:#eceaf5; color:var(--pri); white-space:nowrap; }
.st-used { background:#e3f4ea; color:var(--ok); } .st-revoked { background:#fbe4e1; color:var(--bad); } .st-expired { background:#f3f0ee; color:var(--sub); }
.btn.sm { min-height:44px; padding:4px 8px; font-size:15px; }
.pwgrid { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; margin-bottom:10px; } .pwgrid input { width:100%; min-width:0; box-sizing:border-box; } .pwgrid label { display:flex; flex-direction:column; gap:4px; font-weight:700; font-size:15px; }
.printview { position:fixed; inset:0; z-index:25; background:#3a4258; display:flex; flex-direction:column; }
.pv-bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:10px 14px; background:#1f2a44; color:#fff; } .pv-bar b { flex:1 1 220px; font-size:16px; } .pv-bar .btn { min-height:48px; }
.pv-pages { flex:1; overflow:auto; padding:16px; display:flex; flex-direction:column; align-items:center; gap:16px; }
.pv-page { width:min(92vw, 640px); aspect-ratio:210/297; background:#fff; box-shadow:0 4px 16px rgba(0,0,0,.4); }
@media (max-width:600px) { .qrow { grid-template-columns:auto 1fr 64px; } .qrow .qd { display:none; } }
@media print {
  @page { size:A4; margin:0; }
  html, body { height:auto !important; overflow:visible !important; background:#fff; display:block; }
  body > *:not(#printView) { display:none !important; }
  #printView { position:static; display:block !important; background:#fff; } .pv-bar { display:none !important; }
  .pv-pages { display:block; padding:0; overflow:visible; } .pv-page { display:block; width:210mm; height:297mm; box-shadow:none; break-after:page; page-break-after:always; }
}
/* 진단권·관리자 화면도 버튼을 한 화면에 */
.screen > .bigbtns > .manual { flex-basis:100%; margin:0; }
[data-for="ticket"] .bigbtns > .btn, [data-for="admin"] .bigbtns > .btn { flex:1 1 40%; }
[data-for="ticket"] .bigbtns > .btn.primary { flex-grow:1.6; }
@media (min-width:700px) { .issuerow { grid-template-columns:1fr 1.3fr 1fr; } .issuerow #btnIssue { grid-column:auto; } }
@media (max-height:760px) { .cardpreview { max-width:min(440px, 68%); } .cardnav { margin:6px 0 4px; } .cardnav .btn { min-height:44px; } [data-for="admin"] .tab { min-height:44px; } .adminhead h2 { font-size:20px; margin-bottom:4px; } }
.screen[data-for="home"] { position:relative; }
.appver { margin:14px 0 0; text-align:center; font-size:12px; color:#5b6178; letter-spacing:.02em; } .appver:empty { display:none; }
.screen[data-for="home"] > .linkbtn { position:absolute; top:2px; right:2px; margin:0; min-height:40px; z-index:2; }
/* ---------- v1.4 ---------- */
.iconbtn { min-width:48px; min-height:48px !important; padding:0 !important; font-size:22px !important; margin-left:auto; }
.topbar .iconbtn + .btn.ghost { margin-left:0; }
body[data-screen="shared"] #btnReset, body[data-screen="shared"] #btnFull { display:none; }
.linkbtn { opacity:1; color:#4f5670; min-height:44px !important; min-width:56px; padding:10px 8px; }
.passdot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#5d6b8f; margin-left:4px; vertical-align:super; }
.btn.resume { border-color:var(--ok); color:var(--ok); }
.camnote { margin:0 0 8px; font-size:15px; color:#434a64; background:#fff; border-radius:10px; padding:8px 10px; border:1px dashed var(--line); }
.screen > .bigbtns .check { line-height:1.35; }
[data-for="consent"] .consent-list { margin-top:4px; } [data-for="consent"] .consent-list li { margin:6px 0; }
[data-for="consent"] .bigbtns > .btn:not(.primary) { flex:1 1 40%; }
@media (max-width:600px) { [data-for="consent"] .consent-list { font-size:15px; line-height:1.5; } .screen > .bigbtns .check { font-size:16px; padding:8px 10px; gap:10px; } .check input { width:26px; height:26px; flex:none; } }
.clockwarn { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 8px; font-size:15px; }
.issuerow .memo { grid-column:1/-1; } .issuerow .memo input { width:100%; }
@media (min-width:700px) { .issuerow .memo { grid-column:auto; } .issuerow { grid-template-columns:1fr 1.2fr 1.4fr 1fr; } }
.listbar { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:6px; } .listbar select { min-height:48px; font-size:16px; min-width:0; width:100%; }
.qrow .qd { font-size:14px; }
@media (max-width:600px) { .qrow { grid-template-columns:1fr auto 64px; grid-template-rows:auto auto; row-gap:2px; } .qrow .mono { grid-column:1; } .qrow .qd { display:block !important; grid-column:1 / -1; grid-row:2; font-size:13px; }
  .qrow .st { grid-column:2; grid-row:1; } .qrow > :nth-child(4) { grid-column:3; grid-row:1 / span 2; } .qrow.brow { grid-template-columns:1fr auto; } }
.statgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; } .statgrid.five { grid-template-columns:repeat(5,1fr); }
.statgrid > div { background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 6px; text-align:center; display:flex; flex-direction:column; gap:2px; }
.statgrid b { font-size:26px; color:var(--pri); } .statgrid span { font-size:14px; color:var(--sub); } .statgrid .warnbox { border-color:var(--warn); } .statgrid .warnbox b { color:var(--warn); }
@media (max-width:600px) { .statgrid.five { grid-template-columns:repeat(3,1fr); } }
.bars { display:flex; gap:6px; align-items:flex-end; height:140px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 8px 6px; }
.barcol { flex:1; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:2px; font-size:13px; }
.barcol i { display:block; width:70%; min-height:2px; background:var(--pri2); border-radius:6px 6px 0 0; } .barcol b { font-size:14px; } .barcol span { color:var(--sub); }
[data-for="admin"] h3 { margin:16px 0 8px; font-size:18px; } [data-for="admin"] h3 small { font-size:14px; color:var(--sub); font-weight:600; }
.setgrid { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:8px; margin-bottom:6px; } .setgrid .btn { font-size:16px; }
.check.sm { font-size:16px; padding:10px 12px; margin-bottom:6px; } .check.sm input { width:24px; height:24px; }
.pv-progress { height:6px; background:#2c3654; } .pv-progress i { display:block; height:100%; width:0; background:#cfc6ea; transition:width .2s; }
.countdown { font-size:22px; font-weight:800; color:var(--bad); text-align:center; } .countdown span { font-size:34px; }
#idlePrompt .modal-btns .btn { flex:1; }
.qrbox { text-align:center; } .qrbox canvas { width:min(70vw, 300px); height:auto; aspect-ratio:1; image-rendering:pixelated; border-radius:8px; background:#fff; }
.modal-box.wide { width:min(96vw, 620px); } .qrbox #syncCanvas { width:min(88vw, 56vh, 560px); } /* 사용 기록 QR은 촘촘해서 크게 */
.qrbox .modal-btns { justify-content:center; flex-wrap:wrap; }
.updbar { position:fixed; left:50%; bottom:max(14px, env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:28; display:flex; align-items:center; gap:10px; background:#1f2a44; color:#fff; padding:10px 12px 10px 18px; border-radius:16px; font-size:17px; font-weight:700; box-shadow:0 6px 20px rgba(0,0,0,.35); max-width:94vw; }
.updbar .btn { min-height:48px; font-size:16px; padding:6px 14px; }
.expiry { margin:10px 2px 0; font-size:15px; font-weight:600; color:#1f2a44; }
.bizline { display:flex; align-items:center; gap:8px; margin:0 0 6px; color:#1f2a44; font-size:15px; } .bizline img { border-radius:6px; box-shadow:0 0 0 1px #ebe3dc; } .bizline.big { font-size:28px; gap:10px; margin:4px 0 10px; } .bizline.big b { font-size:32px; line-height:1.15; } .bizline .bizmark img { width:auto; height:40px; border-radius:0; box-shadow:none; display:block; } .bizline.big .bizmark img { height:46px; } .bizline [hidden] { display:none; } .bizline.big span { font-size:15px; color:var(--sub); font-weight:500; }
.legal { margin:10px 2px 4px; font-size:13px; line-height:1.5; color:#4f5670; }
.errcard h2.sec { margin-top:0; }
.myqr { display:flex; gap:14px; align-items:center; margin:14px 0 6px; padding:12px; border:2px solid #1f2a44; border-radius:14px; background:#fbf8f4; }
.myqr canvas { width:132px; height:132px; flex:none; background:#fff; border-radius:6px; }
.myqr h2.sec { margin:0 0 4px; font-size:18px; } .myqr p { margin:0; font-size:14px; color:var(--sub); }
html.locked #btnReset, html.locked #btnFull, html.locked #steps, html.locked #updBar, html.locked #idlePrompt { display:none !important; }
html.locked #brand { pointer-events:none; }
.sharednote { margin:4px 0 10px; font-size:15px; color:var(--sub); }
[data-for="adminScan"] .bigbtns .btn { flex-basis:100%; }
/* 결과 화면 하단: 저장 · 휴대폰으로 / 드레이핑 다시 · 다음 고객 (2×2) */
[data-for="result"] .bigbtns.row > .btn.primary { flex:1 1 40%; }
@media (orientation:landscape) and (min-width:800px) { [data-for="result"] .bigbtns.row > .btn, [data-for="result"] .bigbtns.row > .btn.primary { flex:1 1 40%; } }
[data-for="admin"] .bigbtns > .btn { font-size:17px; }
#btnReset { white-space:nowrap; }
@media (max-width:420px) { .topbar { gap:8px; } .brand { font-size:16px; gap:8px; } .topbar #btnReset { font-size:16px; padding:6px 10px; min-height:44px; } .iconbtn { min-width:44px; min-height:44px !important; font-size:20px !important; } }
@media (max-width:600px) { .topbar #btnReset, .topbar .iconbtn { min-height:48px !important; } .iconbtn { min-width:48px; } }

/* v1.5 헤어 탭 */
.palette.hairc { grid-template-columns:repeat(4,1fr); } .swatch.hairc i { aspect-ratio:1/1; width:min(100%, 96px); margin:0 auto; border-radius:50% 50% 46% 46% / 60% 60% 40% 40%; }
.hairhead { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.seg { display:inline-flex; border:2px solid var(--line); border-radius:12px; overflow:hidden; }
.segbtn { font:inherit; font-size:15px; font-weight:800; min-height:40px; min-width:64px; padding:0 12px; border:0; background:#fff; color:var(--sub); cursor:pointer; }
.segbtn.on { background:var(--pri); color:#fff; }
.hlist { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.hitem { background:#f7f1ea; border-radius:14px; padding:8px 6px 10px; display:flex; flex-direction:column; align-items:center; gap:3px; text-align:center; min-width:0; }
.hitem .hairsvg { width:100%; max-width:120px; height:auto; }
.hitem b { font-size:15px; line-height:1.3; word-break:keep-all; } .hitem .hlen { font-size:12px; font-weight:800; color:var(--pri); background:#eceaf5; border-radius:99px; padding:1px 8px; }
.hitem .hdesc { font-size:12.5px; color:var(--sub); line-height:1.35; word-break:keep-all; }
.dbg { font-size:12px; color:#5b6178; background:#f4f1f8; border:1px dashed #d6d2e4; border-radius:10px; padding:6px 8px; margin:6px 0; font-family:ui-monospace,Menlo,monospace; line-height:1.5; word-break:keep-all; }
@media (max-width:600px) { .rtab { font-size:15px; } .hitem .hdesc { display:none; } }
/* ---------- v1.6 ---------- */
/* 사진 드레이핑: 비디오 대신 진단한 사진을 무대에 표시 (사진 전체가 보이게) */
.stage #photo { display:none; position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
body.photo-drape .stage #photo { display:block; }
body.photo-drape .stage video, body.photo-drape .stage-tools, body.photo-drape .meter { display:none; }
/* 첫 화면에서는 '처음으로' 버튼이 필요 없음 */
body[data-screen="home"] #btnReset { display:none; }
/* 키보드 초점 표시 */
.btn:focus-visible, .tab:focus-visible, .rtab:focus-visible, select:focus-visible, input:focus-visible, .segbtn:focus-visible { outline:3px solid #f2a33a; outline-offset:2px; }
/* 코디 색 조합 */
.outfits { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:8px 0 4px; }
.outfit { background:#f7f1ea; border-radius:14px; padding:12px; display:flex; flex-direction:column; gap:6px; }
.outfit b { font-size:16px; } .outfit span { font-size:14px; color:var(--sub); line-height:1.45; }
.ofsw { position:relative; display:flex; flex-direction:column; width:64px; height:84px; border-radius:10px; overflow:hidden; box-shadow:0 0 0 1px rgba(0,0,0,.08); }
.ofsw i { flex:1; } .ofsw i.pt { position:absolute; right:6px; top:8px; width:18px; height:18px; border-radius:50%; flex:none; box-shadow:0 0 0 2px #fff; }
.celebs { margin-top:14px; background:#f7f1ea; border-radius:14px; padding:12px; }
.celebs h3 { margin:0 0 4px; font-size:16px; } .celebs h3 small { color:var(--sub); font-weight:500; } .celebs p { margin:2px 0; font-size:16px; } .celebs .sub { font-size:13px; color:var(--sub); }
@media (max-width:600px) { .outfits { grid-template-columns:1fr; } .outfit { flex-direction:row; flex-wrap:wrap; align-items:center; } .outfit b { flex:1; } .outfit span { flex-basis:100%; } .ofsw { width:52px; height:64px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }

/* ---------- v1.7.0 ---------- */
.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.stage-msg .btn { display:block; margin:12px auto 0; min-height:48px; font-size:17px; }
.offready { margin:10px 0 0; text-align:center; font-size:14px; color:#4a5068; } .offready.ok { color:#1f6e44; } .offready.warn { color:#875a12; }
.diag { margin:8px 0 4px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; font-size:15px; line-height:1.6; }
.diag table { border-collapse:collapse; width:100%; } .diag td { padding:3px 4px; vertical-align:top; } .diag td:first-child { color:var(--sub); white-space:nowrap; padding-right:10px; }
.diag .verdict { margin:8px 0 0; font-weight:700; }
/* 결과 버튼: 2×2 (작은 화면) / 한 줄 4개 (넓거나 낮은 화면) + 더보기 */
[data-for="result"] > .bigbtns.resbar { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
[data-for="result"] > .bigbtns.resbar > .btn { min-height:50px; font-size:17px; padding:6px 10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (min-width:700px), (max-height:520px) { [data-for="result"] > .bigbtns.resbar { grid-template-columns:repeat(4, 1fr); } }
@media (max-height:520px) { [data-for="result"] > .bigbtns.resbar { padding-top:6px; padding-bottom:max(6px, env(safe-area-inset-bottom)); } [data-for="result"] > .bigbtns.resbar > .btn { min-height:44px; font-size:16px; } }
.resmore { position:absolute; right:0; bottom:calc(100% + 6px); width:min(100%, 340px); display:flex; flex-direction:column; gap:6px; padding:8px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 8px 24px rgba(0,0,0,.16); z-index:4; }
.resmore[hidden] { display:none; }
.bigbtns.row .resmore .btn { flex:none; min-height:50px; font-size:17px; justify-content:flex-start; text-align:left; }
/* v1.8: 결과 링크 첫 화면 — JS가 뜨기 전에도 결과 전용 화면만 */
html.boot-r .screen:not([data-for^="shared"]) { display:none !important; }
html.boot-r #btnReset, html.boot-r #btnFull, html.boot-r #steps { display:none !important; }
html.boot-r #sharedCard:empty { min-height:110vh; }
/* ---------- v2.0 글꼴 (자체 포함, OFL) ---------- */
@font-face { font-family:'PC Sans'; src:url(fonts/pc-sans-var.woff2) format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'Cormorant Garamond'; src:url(fonts/cormorant-garamond-var.woff2) format('woff2'); font-weight:300 700; font-display:swap; }
:root { --sys:'Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR','Noto Sans CJK KR',system-ui,sans-serif; --font-body:'PC Sans',var(--sys); --font-head:var(--font-body); --font-latin:'Cormorant Garamond',Georgia,serif; --head-w:750; }
:root { font-family:var(--font-body); }
h1, h2, .card-head h1, .cv-title { font-family:var(--font-head); font-weight:var(--head-w); letter-spacing:-0.01em; }
.latin { font-family:var(--font-latin); }
.card-head h1 { letter-spacing:-0.02em; }

/* ---------- 표지 (매장 기기 첫 화면) ---------- */
body[data-screen="cover"] .topbar { display:none; }
.screen.cover { max-width:none; margin:0; min-height:0; }
.cover { position:fixed; inset:0; z-index:6; overflow:hidden; cursor:pointer; display:flex; flex-direction:column; justify-content:space-between;
  padding:max(28px, env(safe-area-inset-top)) clamp(24px, 7vw, 88px) max(32px, env(safe-area-inset-bottom)); color:#1f2a44; }
.cover[hidden] { display:none; }
.cv-bg { position:absolute; inset:0; z-index:-1; pointer-events:none; display:none; }
.cv-top, .cv-main, .cv-cta { position:relative; }
.cv-logo img { display:block; height:24px; width:auto; }
.cv-main { margin:auto 0; max-width:720px; }
.cv-eyebrow { margin:0 0 18px; font-size:clamp(15px, 2vw, 20px); letter-spacing:.32em; text-transform:uppercase; color:#4a4f6a; font-weight:500; }
.cv-title { margin:0; font-size:clamp(36px, 7.4vw, 76px); line-height:1.18; color:#1f2a44; word-break:keep-all; }
.cv-en { margin:14px 0 0; font-size:clamp(28px, 5vw, 54px); font-style:italic; font-weight:500; color:#3b4a6b; }
.cv-sub { margin:22px 0 0; font-size:clamp(16px, 2.2vw, 21px); color:#4a4f6a; }
.cv-cta { align-self:flex-start; font:inherit; font-size:clamp(17px, 2.2vw, 22px); font-weight:650; color:#fff; background:#1f2a44; border:0; border-radius:999px; padding:18px 30px; min-height:56px; box-shadow:0 10px 30px rgba(31,42,68,.18); }
.cv-cta:focus-visible { outline:3px solid #c9a3ff; outline-offset:4px; }
/* 콘셉트 1: Soft Bloom — 크림 바탕 위 번지는 파스텔 빛 */
.cover { background:#fbf7f2; }
.cv-bloom { display:block; }
.cv-bloom i { position:absolute; border-radius:50%; filter:blur(48px); opacity:.85; animation:cvfloat 22s ease-in-out infinite alternate; }
.cv-bloom i:nth-child(1) { width:62vmax; height:62vmax; left:-18vmax; top:-22vmax; background:radial-gradient(circle, #f8c3ab 0%, rgba(248,195,171,0) 68%); }
.cv-bloom i:nth-child(2) { width:56vmax; height:56vmax; right:-20vmax; top:-6vmax; background:radial-gradient(circle, #efb1c0 0%, rgba(239,177,192,0) 68%); animation-delay:-6s; }
.cv-bloom i:nth-child(3) { width:60vmax; height:60vmax; left:-10vmax; bottom:-30vmax; background:radial-gradient(circle, #bcd3c5 0%, rgba(188,211,197,0) 68%); animation-delay:-11s; }
.cv-bloom i:nth-child(4) { width:52vmax; height:52vmax; right:-16vmax; bottom:-22vmax; background:radial-gradient(circle, #cfc6ea 0%, rgba(207,198,234,0) 68%); animation-delay:-3s; }
.cv-bloom i:nth-child(5) { width:22vmax; height:22vmax; right:12vmax; bottom:8vmax; background:radial-gradient(circle, rgba(44,62,100,.30) 0%, rgba(44,62,100,0) 70%); animation-delay:-15s; }
@keyframes cvfloat { from { transform:translate3d(0,0,0) scale(1); } to { transform:translate3d(3vmax,-2vmax,0) scale(1.08); } }
@media (orientation:landscape) and (min-width:900px) { .cv-main { max-width:56vw; } }
@media (max-height:520px) { .cv-sub { display:none; } .cv-eyebrow { margin-bottom:8px; } .cv-cta { padding:12px 22px; min-height:48px; } }
@media (prefers-reduced-motion: reduce) { .cv-bloom i { animation:none; } }

/* ---------- v2.1 표지와 맞춘 화면 스타일 (크림 · 파스텔 번짐 · 네이비) ---------- */
:root { --peach:#f8c3ab; --pink:#efb1c0; --sage:#bcd3c5; --lav:#cfc6ea; --navy:#1f2a44; --shadow:0 10px 30px rgba(31,42,68,.07), 0 1px 3px rgba(31,42,68,.05); }
html, body { background:#fbf7f2; }
/* 화면 뒤 은은한 번짐 (움직이지 않음) */
body::before { content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(60vmax 60vmax at -10% -12%, rgba(248,195,171,.38), transparent 62%), radial-gradient(52vmax 52vmax at 110% 4%, rgba(239,177,192,.30), transparent 62%),
    radial-gradient(56vmax 56vmax at -8% 112%, rgba(188,211,197,.32), transparent 62%), radial-gradient(50vmax 50vmax at 108% 104%, rgba(207,198,234,.34), transparent 62%); }
.topbar { background:rgba(251,247,242,.86); color:var(--navy); border-bottom:1px solid rgba(31,42,68,.08); -webkit-backdrop-filter:saturate(1.2) blur(12px); backdrop-filter:saturate(1.2) blur(12px); }
.brand { font-weight:700; letter-spacing:-.01em; }
.logo { width:22px; height:22px; background:conic-gradient(var(--peach) 0 25%, var(--sage) 0 50%, var(--lav) 0 75%, var(--pink) 0); box-shadow:0 0 0 1px rgba(31,42,68,.12); }
.steps span { background:rgba(31,42,68,.05); color:#5b6178; } .steps span.done { background:rgba(31,42,68,.10); color:var(--navy); } .steps span.cur { background:var(--navy); color:#fff; }
.topbar .btn.ghost { color:var(--navy); border-color:rgba(31,42,68,.18); background:rgba(255,255,255,.6); }
.btn { border:1px solid #e3dad1; border-radius:18px; font-weight:650; box-shadow:0 1px 2px rgba(31,42,68,.04); transition:background-color .15s, box-shadow .15s; }
.btn.xl { border-radius:20px; }
.btn.primary { background:var(--navy); border-color:var(--navy); box-shadow:0 8px 22px rgba(31,42,68,.16); }
.btn.primary:hover { background:#2b3a5e; }
.btn.danger { border-color:#d9a19a; color:#a8301f; }
.btn.ghost { box-shadow:none; }
.btn.round { background:rgba(251,247,242,.92); }
.tab, .rtab, .segbtn { border-width:1px; border-color:#e3dad1; font-weight:650; }
.tab.on, .rtab.on, .segbtn.on { background:var(--navy); border-color:var(--navy); color:#fff; }
.card { border-radius:28px; border:1px solid rgba(31,42,68,.06); box-shadow:var(--shadow); }
.status, .check, .cand, .measure, .qrow, .statgrid > div, .bars, .diag, .camnote, select, .manual input, .pwinput, .issuerow input, .issuerow select, .pwgrid input { border-width:1px; border-color:#e6ddd4; }
.status, .cand, .measure, .check, .statgrid > div, .bars, .diag { border-radius:18px; box-shadow:var(--shadow); }
.cand.first { border-color:var(--navy); border-width:2px; }
.tipsgrid div, .gitem, .hitem, .outfit, .celebs, .browrec, .facerow { background:rgba(255,255,255,.7); border:1px solid #efe7df; border-radius:18px; }
.chip { background:#eceaf5; color:var(--navy); }
.axis-bar { background:linear-gradient(90deg, #b9cde6, #ece6ea, #f8c3ab); } .axis-bar i { background:var(--navy); }
.progress i { background:#ece4dc; } .progress i.done { background:#8e9ab8; } .progress i.cur { background:var(--navy); }
.screen > .bigbtns { background:transparent; box-shadow:none; }
.screen > .bigbtns::before { background:linear-gradient(to bottom, rgba(251,247,242,0) 0, #fbf7f2 14px); inset:-14px -20px 0; }
.modal { background:rgba(31,42,68,.32); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.modal-box { border-radius:26px; box-shadow:0 24px 60px rgba(31,42,68,.22); background:#fffdfb; }
.toast, .updbar { background:var(--navy); border-radius:18px; box-shadow:0 12px 30px rgba(31,42,68,.25); }
.resmore { border-radius:20px; box-shadow:0 16px 40px rgba(31,42,68,.16); }
.myqr { border:1px solid #e6ddd4; border-radius:20px; background:rgba(255,255,255,.75); box-shadow:var(--shadow); }
.spinner { border-color:#ece4dc; border-top-color:var(--navy); }
.cardpreview { box-shadow:0 10px 28px rgba(31,42,68,.14); }
.pv-bar { background:var(--navy); }
.expiry { color:var(--navy); }
.bizline { color:var(--navy); }
.passdot { background:#d47a92; }
/* 영문 포인트 (Cormorant 기울임) */
.eyebrow { margin:6px 0 -4px; font-family:var(--font-latin); font-style:italic; font-weight:500; font-size:22px; color:#4f5670; letter-spacing:.01em; }
h1, h2 { color:var(--navy); }
.lead, .notes, .tips, .consent-list { color:#333c58; }
/* 키보드 초점: 크림 바탕에서도 잘 보이게 */
.btn:focus-visible, .tab:focus-visible, .rtab:focus-visible, select:focus-visible, input:focus-visible, .segbtn:focus-visible, .linkbtn:focus-visible { outline:3px solid var(--navy); outline-offset:3px; box-shadow:0 0 0 6px rgba(239,177,192,.55); }
.btn.primary:focus-visible { outline-color:#d47a92; }
@media (max-width:600px) { .eyebrow { font-size:19px; } .card { border-radius:24px; } }
@media (prefers-reduced-motion: reduce) { .btn { transition:none; } }
@media (max-width:600px) { .screen > .bigbtns::before { inset:-14px -14px 0; } }

/* ---------- v2.2 올리브영 제품 예시 ---------- */
.pchips { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:8px; margin:6px 0 4px; }
.pchip { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid #e6ddd4; border-radius:16px; background:#fff; color:var(--ink); text-decoration:none; min-height:56px; position:relative; }
.pchip > i { width:34px; height:34px; border-radius:50%; flex:none; box-shadow:inset 0 0 0 1px rgba(0,0,0,.1); }
.pchip span { display:flex; flex-direction:column; min-width:0; line-height:1.3; }
.pchip small { font-size:12.5px; color:var(--sub); } .pchip b { font-size:15.5px; } .pchip em { font-style:normal; font-size:12.5px; color:var(--sub); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
a.pchip { padding-right:30px; } a.pchip .ext { position:absolute; right:10px; top:10px; font-size:14px; color:var(--sub); }
a.pchip:focus-visible { outline:3px solid var(--navy); outline-offset:2px; }
.pnote { margin-top:6px; }
/* v2.3 체형별 코디 */
.bodyhead { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.bodydesc { display:flex; flex-direction:column; gap:4px; }
.bodydesc span { color:var(--sub); } .bodydesc span.on { color:#1f2a44; } .bodydesc span.on b { color:#1f2a44; }
.looks { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:8px 0 4px; }
.look { margin:0; display:flex; align-items:center; gap:12px; padding:12px; background:rgba(255,255,255,.7); border:1px solid #efe7df; border-radius:18px; }
.bodysvg { width:96px; height:208px; flex:none; }
.look figcaption b { font-size:17px; } .look ul { list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
.look li { font-size:15px; display:flex; flex-wrap:wrap; align-items:center; gap:6px; line-height:1.3; } .look li span { flex-basis:100%; padding-left:22px; font-size:13px; color:var(--sub); }
.look li i { width:16px; height:16px; border-radius:50%; box-shadow:0 0 0 1px rgba(0,0,0,.12); flex:none; }
@media (max-width:600px) { .looks { grid-template-columns:1fr; } }
