/* SeoulPick Skin Lab — Skin Analysis Kiosk
   Portrait-first (Galaxy Tab S11 Ultra, 924×1480), responsive down to 390×844 */

@font-face{
  font-family:'MyanmarSans';
  src:url('fonts/NotoSansMyanmar.ttf') format('truetype');
  font-weight:400 700;
  font-display:swap;
}

:root{
  --ink:#241222;
  --ink-2:#4c3542;
  --muted:#7f6a75;
  --paper:#fffafc;
  --paper-2:#fdf1f6;
  --card:#ffffff;
  --line:#f2dee8;
  --line-2:#f8eaf1;
  --navy:#2e1122;
  --navy-2:#4a1b33;
  --rose:#d6487e;
  --rose-d:#9b1b4d;
  --rose-l:#fff0f6;
  --rose-soft:#f8d2e0;
  --coral:#ff8a65;
  --peach:#fff1e8;
  --lav:#efe4ff;
  --plum:#361520;
  --gold:#d29b5e;
  --ok:#2f8f6b;

  --h1:40px;
  --h2:26px;
  --h3:19px;
  --body:16px;
  --small:13.5px;
  --tiny:11.5px;
  --pad:20px;
  --radius:22px;
  --shadow:0 18px 50px -32px rgba(88,20,50,.38);
  --shadow-soft:0 3px 14px -6px rgba(155,27,77,.12);
  --grad-cta:linear-gradient(135deg,#b3164f 0%,#d6487e 46%,#ff5c8a 74%,#ff8a65 100%);
  --grad-berry:linear-gradient(150deg,#6d1030,#9b1b4d 55%,#d6487e 100%);
  --glass:rgba(255,255,255,.82);
  --glass-line:rgba(214,72,126,.18);
}

@media (min-width:700px){
  :root{
    --h1:56px; --h2:34px; --h3:23px; --body:17.5px; --small:15px; --tiny:12.5px;
    --pad:34px; --radius:26px;
  }
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%;margin:0}
body{
  font-family:'Inter','Helvetica Neue',Arial,'MyanmarSans','Noto Sans Myanmar','Padauk',sans-serif;
  color:var(--ink);
  background:
    radial-gradient(58% 40% at 8% -4%, #ffe3ef 0%, rgba(255,227,239,0) 62%),
    radial-gradient(54% 38% at 100% 2%, #ffecdd 0%, rgba(255,236,221,0) 58%),
    radial-gradient(70% 46% at 46% 104%, #f0e4ff 0%, rgba(240,228,255,0) 64%),
    linear-gradient(180deg, #fff8fb 0%, #fff5f2 52%, #fdeef5 100%);
  overscroll-behavior:none;
  -webkit-font-smoothing:antialiased;
}
:lang(my) .l1, .l1[lang="my"]{font-family:'MyanmarSans','Noto Sans Myanmar','Padauk',sans-serif;line-height:1.65}

.stage{height:100dvh;display:flex;align-items:center;justify-content:center}
#app{
  position:relative;
  width:100%;height:100dvh;
  display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;
  background:linear-gradient(180deg,#fffafc 0%,#fff7f4 46%,#fff2f8 100%);
  overflow:hidden;
}
@media (min-width:860px){
  .stage{padding:16px}
  #app{
    height:calc(100dvh - 32px);
    max-width:1160px;
    border-radius:30px;
    border:1px solid #f4dee8;
    box-shadow:0 44px 96px -52px rgba(88,20,50,.55), 0 0 0 1px rgba(255,255,255,.75) inset;
  }
}

/* ---------- top bar ---------- */
.top{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex-wrap:nowrap;padding:14px var(--pad) 13px;
  border-bottom:1px solid rgba(214,72,126,.14);
  background:linear-gradient(180deg,rgba(255,252,253,.98),rgba(255,243,248,.94));
  backdrop-filter:blur(12px);
  box-shadow:0 8px 24px -22px rgba(88,20,50,.55);
  position:relative;z-index:8;
}
.top::after{
  content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;
  background:linear-gradient(90deg,rgba(214,72,126,0),rgba(214,72,126,.5) 22%,rgba(255,138,101,.5) 62%,rgba(214,72,126,0));
}
@media (min-width:700px){ .top{padding:20px var(--pad) 18px} }
.brand{display:flex;align-items:center;gap:11px;min-width:0}
.brand-logo{height:32px;width:auto;display:block;flex:0 0 auto}
@media (min-width:700px){ .brand-logo{height:40px} }
.brand-div{width:1px;height:26px;background:var(--line);flex:0 0 auto;display:none}
@media (min-width:760px){ .brand-div{display:block} }
.logo{
  width:38px;height:38px;flex:0 0 auto;border-radius:12px;
  background:linear-gradient(150deg,var(--navy),#24395c);
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:800;letter-spacing:.06em;
  box-shadow:0 6px 16px -8px rgba(18,32,57,.7);
}
@media (min-width:700px){ .logo{width:46px;height:46px;border-radius:14px;font-size:14px} }
.brand-line{font-size:13.5px;font-weight:800;letter-spacing:.13em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:none}
.brand-line em{font-style:normal;color:var(--rose);font-weight:700;padding:0 2px}
.brand-sub{font-size:10.5px;letter-spacing:.14em;color:var(--muted);text-transform:uppercase;white-space:nowrap}
@media (min-width:700px){ .brand-line{font-size:16px} .brand-sub{font-size:11.5px} }

.top-right{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.steps{display:none;align-items:center;gap:6px;flex:0 0 auto}
@media (min-width:760px){ .steps{display:flex} }
.step{
  display:flex;align-items:center;gap:7px;white-space:nowrap;
  border:1px solid transparent;background:none;padding:6px 10px;border-radius:999px;
  font:inherit;font-size:12px;letter-spacing:.02em;color:var(--muted);
}
.step i{
  width:19px;height:19px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-style:normal;font-size:10.5px;font-weight:700;background:#eae4d9;color:#8b8578;
}
.step.on{color:var(--ink);background:#fff;border-color:var(--rose-soft);box-shadow:0 4px 14px -8px rgba(155,27,77,.45)}
.step.on i{background:var(--grad-berry);color:#fff;box-shadow:0 4px 10px -6px rgba(155,27,77,.8)}
.step.done i{background:var(--rose-soft);color:var(--rose-d)}
.step span{line-height:1.2;white-space:nowrap}

.lang{display:flex;padding:3px;background:linear-gradient(180deg,#fdeaf2,#fbe3ee);border-radius:999px;gap:2px;box-shadow:inset 0 1px 2px rgba(155,27,77,.08)}
.lang button{
  border:0;background:none;font:inherit;font-size:11px;font-weight:600;color:#7d5f6d;white-space:nowrap;
  padding:6px 9px;border-radius:999px;letter-spacing:.01em;transition:background .16s,color .16s,box-shadow .16s;
}
@media (min-width:700px){ .lang button{font-size:12px;padding:7px 10px} }
.lang button.on{background:var(--grad-cta);color:#fff;box-shadow:0 6px 14px -8px rgba(179,22,79,.85)}

/* ---------- main / screens ---------- */
#main{position:relative;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
#main::-webkit-scrollbar{display:none}
.screen{display:none;min-height:100%;padding:22px var(--pad) 18px;flex-direction:column}
@media (min-width:700px){ .screen{padding:28px var(--pad) 22px} }
.screen.on{display:flex;animation:fade .35s ease both}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.foot{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px var(--pad) 11px;border-top:1px solid rgba(214,72,126,.12);
  font-size:10.5px;letter-spacing:.05em;color:#9c8691;background:linear-gradient(180deg,#fff8fb,#fff1f6);
}
.foot .ver{opacity:.95}
.foot b{font-weight:600;color:#8d8676}
#data-src{font-weight:600;color:var(--rose-d)}

/* ---------- shared type ---------- */
.eyebrow{
  font-size:11px;letter-spacing:.26em;text-transform:uppercase;color:var(--rose-d);
  font-weight:700;display:flex;align-items:center;gap:9px;
}
.eyebrow::before{content:'';width:22px;height:1px;background:var(--rose);opacity:.7}
h1{margin:0;font-size:var(--h1);line-height:1.12;letter-spacing:-.02em;font-weight:700}
h2{margin:0;font-size:var(--h2);line-height:1.2;letter-spacing:-.015em;font-weight:700}
h3{margin:0;font-size:var(--h3);line-height:1.25;font-weight:700;letter-spacing:-.01em}
p{margin:0;font-size:var(--body);line-height:1.55;color:var(--ink-2)}

.l1{display:block;font-weight:inherit}
.l2{display:block;font-size:.78em;font-weight:500;color:var(--muted);letter-spacing:.005em;margin-top:2px;line-height:1.35}
.on-dark .l2{color:rgba(255,255,255,.62)}
.inline .l1,.inline .l2{display:inline}
.inline .l2{margin:0 0 0 6px}

/* ---------- welcome · live-motion K-beauty model (v2.4) ---------- */
#scr-welcome{
  justify-content:flex-end;align-items:center;position:relative;overflow:hidden;
  text-align:center;isolation:isolate;padding-top:10px;padding-bottom:14px;
}

/* full-bleed model scene — lives inside the welcome screen only */
.w-scene{
  position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;
  background:radial-gradient(120% 72% at 50% 10%,#ffe9f1 0%,#ffe1e6 46%,#ffd8d6 100%);
}
.w-model{
  position:absolute;inset:0;overflow:hidden;
}
.w-model picture{display:block;width:100%;height:100%}
.w-model-img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0;
  -webkit-user-drag:none;user-select:none;
}
/* v2.5 — the 10-second model clip plays in place of the Ken Burns still */
.w-video{
  display:block;width:100%;height:100%;object-fit:cover;object-position:50% 35%;
  background:#1a1116;pointer-events:none;-webkit-user-select:none;user-select:none;
}
@keyframes wBreath{from{transform:scale(1)}to{transform:scale(1.06)}}

/* floating soft-light bokeh above the model */
.w-bokeh{position:absolute;inset:0;overflow:hidden}
.w-bokeh span{
  position:absolute;border-radius:50%;opacity:0;mix-blend-mode:screen;
  background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.9) 0%,rgba(255,236,244,.45) 48%,rgba(255,236,244,0) 74%);
  animation:wFloat 16s ease-in-out infinite;
}
.w-bokeh span:nth-child(1){width:20px;height:20px;left:6%;top:32%;animation-duration:16s;animation-delay:-1s}
.w-bokeh span:nth-child(2){width:11px;height:11px;left:12%;top:18%;animation-duration:14s;animation-delay:-5s}
.w-bokeh span:nth-child(3){width:26px;height:26px;left:88%;top:22%;animation-duration:18s;animation-delay:-8s}
.w-bokeh span:nth-child(4){width:14px;height:14px;left:94%;top:36%;animation-duration:15s;animation-delay:-3s}
.w-bokeh span:nth-child(5){width:9px;height:9px;left:4%;top:44%;animation-duration:13s;animation-delay:-6s}
.w-bokeh span:nth-child(6){width:18px;height:18px;left:18%;top:46%;animation-duration:17s;animation-delay:-10s}
.w-bokeh span:nth-child(7){width:13px;height:13px;left:82%;top:46%;animation-duration:15s;animation-delay:-2s}
.w-bokeh span:nth-child(8){width:16px;height:16px;left:96%;top:12%;animation-duration:19s;animation-delay:-12s}
.w-bokeh span:nth-child(9){width:10px;height:10px;left:9%;top:8%;animation-duration:14s;animation-delay:-7s}
@keyframes wFloat{
  0%{opacity:0;transform:translate3d(0,14px,0) scale(.86)}
  24%{opacity:.62}
  50%{opacity:.42;transform:translate3d(10px,-24px,0) scale(1.06)}
  78%{opacity:.55}
  100%{opacity:0;transform:translate3d(-6px,-70px,0) scale(.9)}
}

/* soft scrim so the model melts into the glass panel (v2.5.1: much lighter — the
   panel itself is see-through now, so a heavy scrim would hide the motion again) */
.w-scrim{
  position:absolute;left:0;right:0;bottom:0;height:64%;
  background:linear-gradient(180deg,rgba(255,247,251,0) 0%,rgba(255,247,251,.04) 28%,rgba(255,246,250,.14) 56%,rgba(255,244,249,.30) 82%,rgba(255,243,249,.50) 100%);
}

/* frosted hero panel — lower half, model stays open above it */
.welcome-wrap{
  position:relative;z-index:3;width:100%;max-width:672px;
  display:flex;flex-direction:column;align-items:center;gap:13px;
  padding:20px 26px 16px;border-radius:30px;
  background-color:rgba(255,248,251,.55);
  border:1px solid rgba(214,72,126,.24);
  backdrop-filter:blur(8px) saturate(1.5) brightness(1.14);
  -webkit-backdrop-filter:blur(8px) saturate(1.5) brightness(1.14);
  box-shadow:0 42px 90px -54px rgba(88,20,50,.6),0 1px 0 rgba(255,255,255,.95) inset,0 0 0 1px rgba(255,255,255,.45);
  animation:rise .6s cubic-bezier(.2,.8,.2,1) both;
}

.w-badge{
  position:relative;z-index:3;
  display:inline-flex;align-items:center;gap:8px;padding:7px 15px;border-radius:999px;
  background:linear-gradient(120deg,rgba(255,255,255,.96),rgba(255,232,242,.92));
  border:1px solid rgba(214,72,126,.24);backdrop-filter:blur(10px);
  font-size:10px;font-weight:800;letter-spacing:.2em;color:var(--rose-d);text-transform:uppercase;
  box-shadow:0 12px 28px -20px rgba(155,27,77,.7),inset 0 1px 0 rgba(255,255,255,.95);white-space:nowrap;
}
.w-badge .sp{color:#e0457b;font-size:11px;line-height:1}

.w-hero{position:relative;display:grid;place-items:center;width:100%;padding:2px 0 0;flex:0 0 auto}
.w-hero .w-glow{
  position:absolute;width:min(226px,46vw);aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle at 50% 46%,rgba(255,255,255,.92) 0%,rgba(255,240,247,.5) 44%,rgba(255,240,247,0) 74%);
}
.w-logo{
  position:relative;display:block;width:min(170px,40%);max-width:40%;height:auto;z-index:2;
  filter:drop-shadow(0 12px 22px rgba(54,21,32,.16));
}

.w-copy{display:flex;flex-direction:column;align-items:center;gap:7px;width:100%}
.w-copy p{max-width:480px;font-size:14.5px;line-height:1.5;color:#5b3f4c}
.w-title .l1{font-size:clamp(25px,3.2vh,38px);font-weight:700;line-height:1.16;letter-spacing:-.02em;color:#2a0f1e}
.w-title .l2{font-size:calc(clamp(25px,3.2vh,38px)*.46);margin-top:4px;color:var(--rose-d);font-weight:700;letter-spacing:-.005em}
/* v2.5.1 — a whisper of light under the copy keeps it crisp over the see-through glass */
.w-title .l1,.w-title .l2,.w-copy p{text-shadow:0 1px 0 rgba(255,255,255,.82),0 0 12px rgba(255,255,255,.72)}
:lang(my) .w-title .l1{line-height:1.45}
:lang(my) .w-title .l2{line-height:1.4}

/* three glow-feature cards */
.w-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;width:100%;max-width:540px;margin:0}
.w-card{
  display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 9px 10px;border-radius:16px;
  background:rgba(255,255,255,.78);backdrop-filter:blur(10px) saturate(1.1);
  -webkit-backdrop-filter:blur(10px) saturate(1.1);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:0 18px 36px -28px rgba(88,20,50,.55),inset 0 1px 0 rgba(255,255,255,.95),0 0 0 1px rgba(214,72,126,.08);
  animation:rise .6s cubic-bezier(.2,.8,.2,1) both;
}
.w-card:nth-child(2){animation-delay:.09s}
.w-card:nth-child(3){animation-delay:.18s}
@keyframes rise{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
.w-ci{
  width:34px;height:34px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;
  box-shadow:0 10px 20px -12px rgba(155,27,77,.7),inset 0 1px 0 rgba(255,255,255,.55);
}
.w-ci svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.w-card:nth-child(1) .w-ci{background:linear-gradient(140deg,#ff8fb6,#e23a78)}
.w-card:nth-child(2) .w-ci{background:linear-gradient(140deg,#ffc48a,#ff7e6b)}
.w-card:nth-child(3) .w-ci{background:linear-gradient(140deg,#c7a8ff,#9b6bf0)}
.w-ct{font-size:11px;font-weight:800;line-height:1.32;color:#3a1526;letter-spacing:.005em}
.w-cd{font-size:9.5px;line-height:1.32;color:var(--muted);letter-spacing:.005em}
:lang(my) .w-ct,:lang(my) .w-cd{font-family:'MyanmarSans','Noto Sans Myanmar','Padauk',sans-serif}
:lang(my) .w-ct{line-height:1.55}
:lang(my) .w-cd{line-height:1.6}
@media (min-width:700px){ .w-ci{width:38px;height:38px;border-radius:13px} .w-ct{font-size:12px} .w-cd{font-size:10px} }

/* trust chips */
.w-feats{display:flex;flex-wrap:wrap;gap:7px;justify-content:center}
.chip{
  display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;
  background:rgba(255,255,255,.82);border:1px solid rgba(214,72,126,.16);font-size:11.5px;color:#6b4a58;
  box-shadow:0 8px 20px -18px rgba(88,20,50,.7);backdrop-filter:blur(8px);
}
.chip b{font-weight:600;color:var(--ink)}
.chip .dot{width:6px;height:6px;border-radius:50%;background:var(--grad-cta)}
.chip .ic{width:16px;height:16px;stroke:var(--rose-d);fill:none;stroke-width:1.6}

@media (max-width:620px){
  .welcome-wrap{gap:10px;padding:16px 16px 13px;border-radius:24px}
  .w-badge{font-size:8.8px;letter-spacing:.12em;padding:6px 11px;gap:6px}
  .w-badge .sp{font-size:10px}
  .w-hero .w-glow{width:min(190px,46vw)}
  .w-logo{width:min(126px,38%);max-width:38%}
  .w-title .l1{font-size:clamp(22px,4.2vh,28px)}
  .w-title .l2{font-size:calc(clamp(22px,4.2vh,28px)*.5);margin-top:3px}
  .w-copy p{font-size:12.5px;line-height:1.45}
  .w-cards{gap:6px}
  .w-card{padding:9px 5px 8px;gap:4px;border-radius:14px}
  .w-ci{width:29px;height:29px;border-radius:10px}
  .w-ci svg{width:16px;height:16px}
  .w-ct{font-size:9.6px}
  .w-cd{display:none}
  .chip{font-size:10px;padding:5px 9px;gap:5px}
}

/* short viewports: keep the CTA and chips above the fold */
@media (max-height:980px){
  .welcome-wrap{gap:9px;padding:16px 22px 12px}
  .w-hero .w-glow{width:min(200px,46vw)}
  .w-logo{width:min(146px,38%);max-width:38%}
  .w-copy p{font-size:13.5px}
}
@media (max-height:880px) and (max-width:620px){
  .welcome-wrap{gap:8px;padding:13px 15px 11px}
  .w-hero .w-glow{width:158px}
  .w-logo{width:124px;max-width:124px}
  .w-copy p{display:none}
  .w-cards{gap:5px}
  .w-card{padding:8px 4px 7px}
  .w-ci{width:26px;height:26px}
  .w-ci svg{width:14px;height:14px}
  .w-ct{font-size:8.8px}
}

.btn{
  appearance:none;border:1px solid rgba(255,255,255,.28);font:inherit;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  padding:18px 30px;border-radius:999px;font-weight:700;font-size:18px;letter-spacing:.01em;
  background:var(--grad-cta);color:#fff;
  box-shadow:0 20px 38px -22px rgba(179,22,79,.95),0 6px 14px -10px rgba(255,92,138,.6),inset 0 1px 0 rgba(255,255,255,.32);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s;
  text-shadow:0 1px 1px rgba(109,16,48,.28);
}
.btn:hover{filter:saturate(1.06) brightness(1.03)}
.btn:active{transform:translateY(1px) scale(.995)}
.btn .arrow{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8}
.btn.big{padding:21px 34px;font-size:19px}
@media (min-width:700px){ .btn.big{padding:23px 40px;font-size:21px} .welcome-wrap #start{padding:18px 42px;font-size:19px} }
.btn.rose{background:linear-gradient(140deg,#ff7fa4,#e0447c 60%,#c2185b)}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--rose-soft);box-shadow:var(--shadow-soft);text-shadow:none}
.btn.dark{background:#fff;color:var(--rose-d);border-color:var(--rose-soft);text-shadow:none}
.btn[disabled]{opacity:.4;pointer-events:none}
.btn .l1{display:inline;font-weight:700}
.btn .l2{display:none}
.btn .sub{display:block;font-size:11px;opacity:.72;font-weight:500;letter-spacing:.06em;text-transform:uppercase}

/* the welcome CTA: glowing hero button with a slow sheen */
#start{position:relative;overflow:hidden;padding:16px clamp(28px,5vh,44px);font-size:17.5px;box-shadow:0 26px 46px -24px rgba(179,22,79,.95),0 10px 22px -14px rgba(255,92,138,.75),inset 0 1px 0 rgba(255,255,255,.36)}
#start::after{
  content:'';position:absolute;top:-60%;left:-40%;width:38%;height:220%;transform:rotate(18deg);
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.42),rgba(255,255,255,0));
  animation:shine 5.2s ease-in-out infinite;pointer-events:none;
}
@keyframes shine{0%,62%{left:-42%}100%{left:122%}}
@media (prefers-reduced-motion: reduce){
  .w-model,.w-bokeh span,#start::after,.w-card,.screen.on{animation:none !important}
}

/* ---------- quiz ---------- */
.quiz{display:flex;flex-direction:column;gap:18px;flex:1;max-width:760px;margin:0 auto;width:100%;justify-content:center}
.q-head{display:flex;flex-direction:column;gap:8px}
.q-num{display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:.16em;color:var(--muted);text-transform:uppercase}
.q-dots{display:flex;gap:5px}
.q-dots i{width:22px;height:3px;border-radius:2px;background:#f3e2ea;display:block;transition:background .2s}
.q-dots i.on{background:var(--grad-cta)}
.q-dots i.done{background:var(--rose-soft)}
.q-title{font-size:calc(var(--h2)*.96);font-weight:700;line-height:1.25;letter-spacing:-.01em}
.q-title .l2{font-size:calc(var(--h2)*.5);margin-top:4px;font-weight:500}

.opts{display:grid;gap:11px;margin:2px 0 0;width:100%}
.opts.two{grid-template-columns:1fr 1fr}
@media (max-width:420px){ .opts.two{grid-template-columns:1fr} }
.opt{
  position:relative;display:flex;align-items:center;gap:14px;text-align:left;
  padding:17px 18px;border-radius:18px;border:1.5px solid #f4e2ea;background:linear-gradient(180deg,#fff,#fffbfd);
  font:inherit;color:var(--ink);cursor:pointer;min-height:76px;
  transition:border-color .15s, background .15s, transform .15s, box-shadow .15s;
  box-shadow:0 3px 14px -8px rgba(155,27,77,.16);
}
.opt:active{transform:scale(.995)}
.opt .mark{
  width:24px;height:24px;border-radius:50%;border:1.5px solid #edd3df;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;background:#fff;
  font-size:11px;font-weight:700;color:transparent;
}
.opt .txt{min-width:0}
.opt .txt .l1{font-size:var(--body);font-weight:600;line-height:1.35}
.opt .txt .l2{font-size:var(--small);color:var(--muted);margin-top:3px}
.opt.sel{border-color:rgba(214,72,126,.55);background:linear-gradient(155deg,#fff6fa,#ffe9f2);box-shadow:0 14px 30px -20px rgba(214,72,126,.95),inset 0 1px 0 #fff}
.opt.sel .mark{background:var(--grad-cta);border-color:transparent;color:#fff;box-shadow:0 4px 10px -6px rgba(179,22,79,.8)}

.q-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:6px}
.q-back{border:0;background:none;font:inherit;font-size:var(--small);color:var(--muted);padding:12px 6px;cursor:pointer;display:flex;align-items:center;gap:6px}
.q-back[disabled]{opacity:0;pointer-events:none}
.q-back svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8}

/* ---------- scan ---------- */
.scan{display:flex;flex-direction:column;gap:14px;flex:1;max-width:720px;margin:0 auto;width:100%;justify-content:center}
.scan-head{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center}
.scan-head h2{font-size:var(--h2)}
.scan-head .l2{font-size:var(--small);color:var(--muted);margin-top:4px;max-width:460px}.frame{
  position:relative;margin:2px auto 0;width:min(100%,520px,43.5vh);flex:0 0 auto;aspect-ratio:3/4;
  border-radius:26px;overflow:hidden;background:#1a0f18;
  box-shadow:0 30px 64px -34px rgba(88,20,50,.85),0 0 0 1px rgba(255,255,255,.1) inset,0 0 0 3px rgba(255,255,255,.55),0 0 0 4px rgba(214,72,126,.32);
}
@media (min-width:700px){ .frame{border-radius:30px} }
.frame video,.frame img,.frame canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.frame video{transform:scaleX(-1)}
.frame .veil{position:absolute;inset:0;background:
  radial-gradient(ellipse 44% 50% at 50% 44%, rgba(255,255,255,.10), rgba(255,255,255,0) 62%),
  radial-gradient(ellipse at center, rgba(10,16,28,0) 42%, rgba(10,16,28,.42) 78%, rgba(10,16,28,.62) 100%)}
.frame svg.guide{position:absolute;inset:0;width:100%;height:100%}
.frame .oval{fill:none;stroke:rgba(255,255,255,.92);stroke-width:1.6;stroke-dasharray:7 6;animation:dash 22s linear infinite}
.frame .oval-rose{fill:none;stroke:var(--rose);stroke-width:2.4;stroke-dasharray:3 9;opacity:.9;animation:dash 10s linear infinite reverse}
@keyframes dash{to{stroke-dashoffset:-260}}
.frame .corner{stroke:rgba(255,255,255,.8);stroke-width:2;fill:none;stroke-linecap:round}
.frame .hint{
  position:absolute;left:50%;bottom:14px;transform:translateX(-50%);
  font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.72);
  white-space:nowrap;
}
.scanbar{
  position:absolute;left:0;right:0;height:64px;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,138,101,0) 0%,rgba(255,92,138,.26) 52%,rgba(255,255,255,.72) 92%,rgba(255,255,255,0) 100%);
  animation:sweep 1.7s cubic-bezier(.4,0,.6,1) infinite;
  mix-blend-mode:screen;
}
@keyframes sweep{0%{top:-20%}100%{top:96%}}
.scan-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px);background-size:100% 26px;opacity:.5}
.scan-band{
  position:absolute;left:0;right:0;bottom:0;padding:34px 16px 16px;
  background:linear-gradient(180deg,rgba(10,16,28,0),rgba(10,16,28,.80));
  color:#fff;text-align:center;
}
.scan-band .st{font-size:13.5px;letter-spacing:.02em;font-weight:600;transition:opacity .18s}
.scan-band .st .l2{color:rgba(255,255,255,.62);font-size:11px}
.scan-prog{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.16)}
.scan-prog i{display:block;height:100%;width:0;background:linear-gradient(90deg,#ff8a65,#ff5c8a 55%,#d6487e);transition:width .12s linear}
.cam-msg{
  position:absolute;inset:auto 16px 56px;background:rgba(10,16,28,.72);color:#fff;border-radius:14px;
  padding:12px 14px;font-size:12.5px;line-height:1.45;backdrop-filter:blur(6px);
}
.scan-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:2px}
.scan-actions .btn{padding:14px 20px;font-size:15px;gap:8px}
.scan-actions .btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7}
.shutter{
  width:74px;height:74px;border-radius:50%;background:#fff;border:0;position:relative;cursor:pointer;
  box-shadow:0 12px 26px -12px rgba(18,32,57,.7), inset 0 0 0 1px rgba(18,32,57,.08);
}
.shutter::after{content:'';position:absolute;inset:7px;border-radius:50%;border:2.5px solid var(--navy)}
.shutter:active::after{background:var(--rose-soft)}
.shutter-row{display:flex;align-items:center;justify-content:center;gap:18px}
@media (max-width:520px){ .shutter{width:64px;height:64px} }

/* ---------- result ---------- */
.result{display:flex;flex-direction:column;gap:14px;flex:1}
.r-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.r-head h2{font-size:calc(var(--h2)*.92)}
.r-head .meta{font-size:var(--tiny);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;row-gap:6px}
.r-head .meta .badge{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;background:#fff;border:1px solid var(--line);text-transform:none;letter-spacing:.02em;font-size:11px;color:var(--ink-2);white-space:nowrap}
.r-head .meta .badge i{width:6px;height:6px;border-radius:50%;background:var(--ok);display:block}
.r-head .meta .badge.ref i{background:var(--gold)}

.r-grid{display:grid;gap:12px;grid-template-columns:1fr}
@media (min-width:720px){ .r-grid{grid-template-columns:minmax(240px,4.2fr) minmax(0,7.8fr)} }
.card{background:linear-gradient(180deg,#fff,#fffafd);border:1px solid rgba(214,72,126,.13);border-radius:var(--radius);box-shadow:var(--shadow),inset 0 1px 0 #fff;padding:18px}
@media (min-width:700px){ .card{padding:22px} }

.score-card{display:flex;flex-direction:column;align-items:center;gap:2px;position:relative;overflow:hidden}
.score-card::before{content:'';position:absolute;top:-64px;right:-64px;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(255,196,219,.85),rgba(255,196,219,0) 70%)}
.ring-wrap{position:relative;width:172px;height:172px;flex:0 0 auto}
@media (min-width:700px){ .ring-wrap{width:196px;height:196px} }
.ring-wrap svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring-wrap .bg{fill:none;stroke:#f8e6ee;stroke-width:9}
.ring-wrap .fg{fill:none;stroke:url(#gradScore);stroke-width:9;stroke-linecap:round;transition:stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1)}
.ring-mid{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
.ring-mid .num{font-size:52px;font-weight:700;letter-spacing:-.04em;line-height:1;font-variant-numeric:tabular-nums}
@media (min-width:700px){ .ring-mid .num{font-size:58px} }
.ring-mid .num small{font-size:.36em;font-weight:600;color:var(--muted);margin-left:2px;letter-spacing:0}
.ring-mid .lbl{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);text-align:center;margin-top:5px}
.grade{display:inline-flex;align-items:center;gap:7px;margin-top:10px;padding:6px 13px;border-radius:999px;background:var(--rose-l);color:var(--rose-d);font-size:13px;font-weight:650}
.grade .l2{display:none}
.score-note{font-size:12.5px;color:var(--muted);text-align:center;margin-top:8px;line-height:1.45;max-width:250px}
.score-note .l2{display:none}
.score-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:14px}
.stat{background:var(--paper-2);border-radius:14px;padding:11px 12px;text-align:center}
.stat .k{font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.stat .v{font-size:20px;font-weight:700;margin-top:3px;letter-spacing:-.02em}
.stat .v small{font-size:11px;font-weight:600;color:var(--muted);margin-left:4px;letter-spacing:0}
.stat .s{font-size:11px;color:var(--ink-2);margin-top:1px}

.radar-card{display:flex;flex-direction:column;gap:6px}
.card-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.card-head .ttl{font-size:var(--h3);font-weight:700}
.card-head .ttl .l2{display:none}
.card-head .sub{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.radar-body{display:flex;align-items:center;gap:8px;flex:1;min-height:0;justify-content:center}
@media (min-width:720px){
  .radar-body{flex-direction:column;gap:6px;justify-content:center}
  .radar-body svg{width:min(100%,310px);max-width:310px;max-height:280px;flex:0 1 auto}
  .radar-body .metrics{width:100%;flex:0 0 auto;grid-template-columns:1fr 1fr;gap:9px 26px}
}
.radar-body svg{flex:1 1 56%;max-width:370px;height:auto;max-height:290px;margin:0 auto;display:block}
.metrics{flex:1 1 42%;display:grid;gap:7px;align-content:center;min-width:0}
.metric{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 8px}
.metric .m-l{font-size:11.5px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.metric .m-l .l1{display:inline}
.metric .m-l .l2{display:none}
.metric .m-v{font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums}
.metric .bar{grid-column:1/-1;height:4px;border-radius:3px;background:#f8e6ee;overflow:hidden;box-shadow:inset 0 1px 1px rgba(155,27,77,.06)}
.metric .bar i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#ffa9c4,#d6487e);width:0;transition:width .9s cubic-bezier(.2,.8,.2,1)}
.metric.low .bar i{background:linear-gradient(90deg,#f5cf9e,#d29b5e)}

.rec-card{grid-column:1/-1}
.rec-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.rec-head .ttl{font-size:var(--h3);font-weight:700}
.rec-head .ttl .l2{display:none}
.rec-head .hint{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.recs{display:grid;gap:10px;grid-template-columns:1fr}
@media (min-width:640px){ .recs{grid-template-columns:repeat(3,1fr)} }
.rec{
  display:flex;gap:12px;padding:12px;border-radius:16px;background:linear-gradient(150deg,#fff,#fff5fa);
  border:1px solid rgba(214,72,126,.14);position:relative;min-width:0;
  box-shadow:0 10px 24px -22px rgba(88,20,50,.6);
}
.rec .step{
  flex:0 0 auto;width:38px;height:38px;border-radius:12px;background:var(--grad-berry);color:#fff;
  box-shadow:0 8px 16px -10px rgba(155,27,77,.9);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;
}
.rec .step b{font-size:15px;line-height:1;font-weight:700}
.rec .step span{font-size:7.5px;letter-spacing:.06em;text-transform:uppercase;opacity:.7;margin-top:2px}
.rec .body{min-width:0;flex:1}
.rec .nm{font-size:14px;font-weight:700;line-height:1.3}
.rec .nm .l1{display:block}
.rec .nm .l2{display:block;font-size:11px;color:var(--muted);font-weight:500;margin-top:1px}
.rec .why{font-size:11.5px;color:var(--rose-d);margin-top:5px;line-height:1.35}
.rec .why .l2{display:none}
.rec .foot2{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:7px}
.rec .price{font-size:14.5px;font-weight:700;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.rec .price small{font-size:10px;font-weight:600;color:var(--muted);margin-left:2px}
.rec .stock{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;color:var(--ok);font-weight:600}
.rec .stock i{width:5px;height:5px;border-radius:50%;background:var(--ok);display:block}
.rec .stock .l1{display:inline}
.rec .stock .l2{display:none}

.qr-card{grid-column:1/-1;display:flex;gap:20px;align-items:center;justify-content:center;flex-wrap:wrap}
.qr-card .qr-box{background:#fff;border:1px solid rgba(214,72,126,.2);border-radius:14px;padding:8px;flex:0 0 auto;box-shadow:0 10px 26px -20px rgba(88,20,50,.6)}
.qr-card canvas{display:block;width:150px;height:150px;image-rendering:pixelated}
@media (min-width:720px){ .qr-card canvas{width:178px;height:178px} .qr-card .txt{max-width:330px} }
.qr-card .txt{flex:0 1 330px;min-width:160px}
.qr-card .txt .t{font-size:15px;font-weight:700;line-height:1.3}
.qr-card .txt .t .l2{display:none}
.qr-card .txt .d{font-size:11.5px;color:var(--muted);margin-top:5px;line-height:1.4}
.qr-card .txt .d .l2{display:none}
.r-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:2px}
.r-actions .note{font-size:10.5px;color:#9c8691;line-height:1.45;max-width:62%}
.r-actions .note .l2{display:none}
.r-actions .btn{padding:12px 20px;font-size:14px}

/* ---------- phone (QR) view ---------- */
#scr-phone{padding:0;background:var(--paper)}
.phone-wrap{max-width:560px;margin:0 auto;width:100%;padding:22px 18px 30px;display:flex;flex-direction:column;gap:14px}
.ph-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:4px}
.ph-brand{font-size:10.5px;letter-spacing:.16em;font-weight:800;color:var(--navy)}
.ph-brand em{font-style:normal;color:var(--rose)}
.ph-flag{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.ph-hero{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:var(--shadow-soft)}
.ph-hero .ring-wrap{width:118px;height:118px}
.ph-hero .ring-mid .num{font-size:36px}
.ph-hero .ring-mid .lbl{display:none}
.ph-hero .info{flex:1;min-width:0}
.ph-hero .info h2{font-size:20px;line-height:1.2}
.ph-hero .info .row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.pill{display:inline-block;padding:5px 10px;border-radius:999px;background:var(--paper-2);font-size:11.5px;font-weight:600;color:var(--ink-2)}
.pill.rose{background:var(--rose-l);color:var(--rose-d)}
.ph-radar{background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px 16px}
.ph-radar .metrics{margin-top:8px;gap:8px}
.ph-radar svg{max-width:300px;width:100%;display:block;margin:0 auto}
.ph-radar .card-head{margin-bottom:2px}
.ph-recs{background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px 16px}
.ph-recs .rec{border:0;background:var(--paper-2);margin-top:8px;padding:10px}
.ph-note{font-size:11px;color:var(--muted);text-align:center;line-height:1.5}

.hidden{display:none !important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* phone mode: the QR result page stands alone */
body.phone .top,body.phone .foot{display:none}
body.phone #app{display:block;background:var(--paper);height:100dvh;overflow-y:auto}
body.phone #main{overflow:visible}
body.phone #scr-phone{padding:0}
body.phone .screen{padding:0}
body.phone .phone-wrap{padding-top:26px}

@media (max-width:620px){
  .top{padding:12px 14px;gap:6px}
  .brand{gap:8px;min-width:0;flex:1 1 auto}
  .brand-sub{display:none}
  .brand-logo{height:26px}
  .logo{width:34px;height:34px;border-radius:11px;font-size:11px}
  .top-right{gap:8px}
  .lang button{padding:5px 6px;font-size:9.5px;letter-spacing:0}
  .lang{flex:0 0 auto}
  .r-head .meta{font-size:10px;letter-spacing:.04em}
  .lang{padding:2px}
  .foot{font-size:9.5px;letter-spacing:.02em;padding:8px 16px 9px}
  .foot .ver{display:none}
  .radar-body{flex-direction:column;align-items:center;gap:2px}
  .radar-body svg{max-width:260px;width:82%;max-height:230px}
  .metrics{width:100%;flex:1 1 auto}
  .ring-wrap{width:150px;height:150px}
  .scan-head h2{font-size:20px}
  .scan-head .l2{font-size:12px}
  .frame{width:min(100%,38vh)}
  .scan{gap:10px}
  .hint2{display:none}
  .scan-actions .btn{padding:12px 14px;font-size:13px}
  .ph-radar .metrics{grid-template-columns:1fr 1fr;gap:10px 16px}
  .ring-mid .num{font-size:44px}
  .result{gap:12px}
}

/* result: bottom CTA strip + routine line */
.cta-card{
  grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:10px;
  background:linear-gradient(100deg,#fff3f8,#ffe9f1);border-color:rgba(214,72,126,.2);color:var(--rose-d);
  font-size:14.5px;font-weight:650;padding:15px 18px;text-align:center;
}
.cta-card .dot{width:7px;height:7px;border-radius:50%;background:var(--rose);flex:0 0 auto;box-shadow:0 0 0 4px rgba(194,112,123,.16)}
.cta-card .l2{display:none}
.routine-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}
.routine-strip .lbl{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-right:2px}
.routine-strip .rs{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ink-2)}
.routine-strip .rs b{width:18px;height:18px;border-radius:50%;background:var(--rose-l);color:var(--rose-d);font-size:10px;display:flex;align-items:center;justify-content:center}
.routine-strip .arw{color:#c9c1b3;font-size:11px}
.qr-url{font-size:10.5px;color:#a9a293;margin-top:8px;letter-spacing:.03em}

.notice{
  margin:2px auto 0;max-width:480px;width:100%;text-align:center;
  background:linear-gradient(180deg,#fff4f9,#ffe9f2);border:1px solid rgba(214,72,126,.22);border-radius:14px;
  padding:11px 14px;font-size:12.5px;line-height:1.4;color:var(--rose-d);
}
.notice .l1{font-weight:600}
.notice .l2{color:#b07f86;font-size:11px;margin-top:2px}
.scan-actions .btn.rose{color:#fff}

/* =====================================================================
   v2 — brand logo, report tabs, zone / indicator / routine / share panels
   ===================================================================== */
.r-head{flex-direction:column;align-items:flex-start;gap:8px}
.r-logo{height:30px;width:auto;display:block}
@media (min-width:700px){ .r-logo{height:34px} }
.r-head-txt{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;width:100%}
.r-head-txt .meta{justify-content:flex-end}

.r-tabs{
  position:sticky;top:0;z-index:6;display:flex;gap:4px;padding:6px 2px;
  background:linear-gradient(180deg,rgba(255,250,252,.97),rgba(255,244,249,.9));
  backdrop-filter:blur(10px);border-bottom:1px solid rgba(214,72,126,.14);
  overflow-x:auto;scrollbar-width:none;margin:0 -2px;
}
.r-tabs::-webkit-scrollbar{display:none}
.r-tabs button{
  flex:1 1 auto;border:0;background:none;font:inherit;font-size:12.5px;font-weight:650;
  color:var(--muted);padding:9px 11px;border-radius:999px;white-space:nowrap;cursor:pointer;
  transition:background .15s,color .15s;
}
@media (min-width:700px){ .r-tabs button{font-size:13.5px;padding:10px 16px} }
.r-tabs button.on{background:var(--grad-cta);color:#fff;box-shadow:0 8px 18px -10px rgba(179,22,79,.9)}

.r-panels{display:block}
.r-panel{display:none}
.r-panel.on{display:flex;flex-direction:column;gap:12px;animation:fade .3s ease both}
.panel-head{display:flex;flex-direction:column;gap:3px;margin:4px 0 2px}
.panel-head h3{font-size:var(--h3)}
.panel-head .sub{font-size:11.5px;color:var(--muted);line-height:1.4}

/* routine preview on the summary tab */
.rt-preview{grid-column:1/-1;padding:16px 18px}
.rtp-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rtp-head .ttl{font-size:var(--h3);font-weight:700}
.rtp-more{border:0;background:var(--grad-berry);color:#fff;box-shadow:0 8px 16px -10px rgba(155,27,77,.9);font:inherit;font-size:11.5px;font-weight:650;padding:8px 13px;border-radius:999px;cursor:pointer;white-space:nowrap}
.rtp-lbl{font-size:10.5px;font-weight:700;color:var(--rose-d);letter-spacing:.08em;text-transform:uppercase;margin-top:10px}
.rtp-line{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:7px}
.rtp-step{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;background:var(--paper-2);padding:5px 9px;border-radius:999px;color:var(--ink-2)}
.rtp-step b{width:15px;height:15px;border-radius:50%;background:#fff;color:var(--navy);font-size:9px;display:flex;align-items:center;justify-content:center}
.rtp-arw{color:#c9c1b3;font-size:10px}
.rtp-foot{font-size:11px;color:var(--muted);margin-top:9px;padding-top:8px;border-top:1px dashed var(--line)}

/* ---- zones ---- */
.zones-wrap{display:grid;gap:12px;grid-template-columns:1fr}
@media (min-width:760px){ .zones-wrap{grid-template-columns:212px minmax(0,1fr);align-items:start} }
.zones-map{background:linear-gradient(180deg,#fff,#fff7fb);border:1px solid rgba(214,72,126,.14);border-radius:var(--radius);padding:10px;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-soft)}
.zone-map{width:100%;max-width:196px;height:auto}
.zm-face{fill:#fff4f9;stroke:#f3d6e3;stroke-width:1.4;stroke-dasharray:5 5}
.zm-no{fill:#9b1b4d}
.zm-num{fill:#fff;font-size:9.5px;font-weight:800;text-anchor:middle;font-family:inherit}
.zones-grid{display:grid;gap:10px;grid-template-columns:1fr;align-content:start}
@media (min-width:760px){ .zones-grid{grid-template-columns:1fr 1fr} }
.zone-card{background:linear-gradient(180deg,#fff,#fffafd);border:1px solid rgba(214,72,126,.13);border-radius:18px;padding:14px;box-shadow:var(--shadow-soft)}
.zc-head{display:flex;align-items:center;gap:10px}
.zc-no{width:22px;height:22px;border-radius:50%;background:var(--rose-l);color:var(--rose-d);font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.zc-t{flex:1;min-width:0}
.zc-t .ttl{font-size:13.5px;font-weight:700;line-height:1.28}
.zc-t .sub{font-size:10px;color:var(--muted);letter-spacing:.07em;text-transform:uppercase;margin-top:1px}
.zc-score{font-size:24px;font-weight:700;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.zc-score small{font-size:9.5px;color:var(--muted);font-weight:600}
.zone-card .bar{height:5px;border-radius:3px;background:#f8e6ee;overflow:hidden;margin-top:10px}
.zone-card .bar i,.md-card .bar i{display:block;height:100%;width:0;border-radius:3px;transition:width .9s cubic-bezier(.2,.8,.2,1);background:linear-gradient(90deg,#ffa9c4,#d6487e)}
.z-good .bar i{background:linear-gradient(90deg,#a8dcc4,#3f9c78)!important}
.z-fair .bar i{background:linear-gradient(90deg,#f6d6a8,#d29b5e)!important}
.z-care .bar i{background:linear-gradient(90deg,#ffb3c8,#e0608f)!important}
.zc-txt{font-size:12.5px;line-height:1.5;color:var(--ink-2);margin-top:9px}
.zc-sig{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;align-items:center}
.zsig{font-size:10.5px;padding:3px 8px;border-radius:999px;background:var(--paper-2);color:var(--ink-2)}
.zsig b{font-weight:800;color:var(--ink)}
.zstate{font-size:9.5px;font-weight:800;padding:4px 9px;border-radius:999px;letter-spacing:.04em;margin-left:auto}
.zstate.z-good{background:#eaf3ee;color:#4d7d64}
.zstate.z-fair{background:#fbf1e0;color:#9a7433}
.zstate.z-care{background:var(--rose-l);color:var(--rose-d)}

/* ---- six indicators in detail ---- */
.md-grid{display:grid;gap:10px;grid-template-columns:1fr}
@media (min-width:780px){ .md-grid{grid-template-columns:1fr 1fr} }
.md-card{background:linear-gradient(180deg,#fff,#fffafd);border:1px solid rgba(214,72,126,.13);border-radius:18px;padding:15px;box-shadow:var(--shadow-soft);display:flex;flex-direction:column}
.md-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.md-name .l1{font-size:14.5px;font-weight:700;line-height:1.25}
.md-name .l2{font-size:10px;display:block;color:var(--muted);margin-top:1px}
.md-score{font-size:22px;font-weight:700;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.md-card .bar{height:5px;border-radius:3px;background:#f8e6ee;overflow:hidden;margin-top:9px}
.md-card.md-fair .bar i{background:linear-gradient(90deg,#f6d6a8,#d29b5e)!important}
.md-card.md-care .bar i{background:linear-gradient(90deg,#ffb3c8,#e0608f)!important}
.md-state{font-size:12.5px;line-height:1.55;margin-top:9px;color:var(--ink-2)}
.md-block{margin-top:10px;padding-top:9px;border-top:1px dashed var(--line)}
.md-k{font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:3px}
.ing{font-size:12px;font-weight:700;color:var(--rose-d);line-height:1.5}
.md-watch{margin-top:10px;font-size:11.5px;line-height:1.5;background:var(--paper-2);border-radius:11px;padding:9px 11px;color:var(--ink-2)}
.md-watch b{display:block;font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:#9a8f79;margin-bottom:2px}

/* ---- AM / PM apply order ---- */
.rt-switch{display:flex;gap:6px;padding:4px;background:linear-gradient(180deg,#fdeaf2,#fbe2ed);border-radius:999px;align-self:flex-start;box-shadow:inset 0 1px 2px rgba(155,27,77,.08)}
.rt-tab{border:0;background:none;font:inherit;font-size:13px;font-weight:650;color:#7d5f6d;padding:9px 16px;border-radius:999px;display:flex;align-items:center;gap:7px;cursor:pointer}
.rt-tab small{font-size:9.5px;font-weight:600;opacity:.65;letter-spacing:.05em;text-transform:uppercase}
.rt-tab .ic{font-size:14px;line-height:1}
.rt-tab.on{background:linear-gradient(180deg,#fff,#fff6fa);color:var(--rose-d);box-shadow:0 3px 10px -6px rgba(155,27,77,.6)}
.rt-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.rt-list[hidden]{display:none}
.rt-step{display:grid;grid-template-columns:50px minmax(0,1fr);gap:12px;position:relative;padding-bottom:12px}
.rt-step:not(:last-child)::before{content:'';position:absolute;left:24px;top:52px;bottom:0;width:2px;background:linear-gradient(180deg,#fbd3e2,#fbeaf1)}
.rt-no{width:50px;height:50px;border-radius:16px;background:var(--grad-berry);color:#fff;box-shadow:0 10px 20px -12px rgba(155,27,77,.9);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:0 0 auto;position:relative;z-index:1}
.rt-no b{font-size:7.5px;letter-spacing:.1em;opacity:.65;font-weight:700}
.rt-no span{font-size:20px;font-weight:700;line-height:1}
.rt-step.weekly .rt-no{background:linear-gradient(150deg,#b3451f,#ff7e5f)}
.rt-main{background:linear-gradient(180deg,#fff,#fffcfd);border:1px solid rgba(214,72,126,.13);border-radius:18px;padding:13px 15px;box-shadow:var(--shadow-soft);min-width:0}
.rt-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rt-name{font-size:15.5px;font-weight:700;line-height:1.25}
.rt-freq{font-size:9.5px;font-weight:800;letter-spacing:.05em;color:var(--rose-d);background:var(--rose-l);padding:3px 8px;border-radius:999px;white-space:nowrap}
.rt-tip,.rt-why{font-size:12.5px;line-height:1.55;color:var(--ink-2);margin-top:7px}
.rt-tip .k,.rt-why .k{display:inline-block;font-size:9px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin-right:6px;font-weight:800;vertical-align:1px}
.rt-why{color:#6d7787}
.rt-prod{margin-top:10px;border-radius:12px;background:linear-gradient(160deg,#fff,#fff4f9);border:1px solid rgba(214,72,126,.14);padding:9px 11px}
.rt-prod .rp-label{font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:700}
.rt-prod .rp-name{font-size:13px;font-weight:700;margin-top:2px}
.rt-prod .rp-name .l1{display:inline}
.rt-prod .rp-name .l2{display:inline;font-size:10.5px;font-weight:500;color:var(--muted);margin-left:5px}
.rp-meta{display:flex;align-items:center;gap:10px;margin-top:5px;flex-wrap:wrap}
.rp-meta b{font-size:13.5px;font-variant-numeric:tabular-nums}
.rp-meta b small{font-size:9.5px;color:var(--muted);margin-left:1px}
.rp-stock{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:700;color:var(--ok)}
.rp-stock i{width:5px;height:5px;border-radius:50%;background:var(--ok)}
.rt-prod.rt-empty{background:#fbf8f3}
.rt-empty .rp-none{font-size:11.5px;color:var(--muted);margin-top:3px;line-height:1.45}
.rt-extra{margin-left:62px;margin-top:2px}
.rt-extra-txt{font-size:11px;color:var(--muted);line-height:1.5;background:var(--paper-2);border-radius:10px;padding:8px 11px}
.lf-card{background:linear-gradient(160deg,#fff,#fff5ef);border:1px solid rgba(214,72,126,.13);border-radius:18px;padding:15px 16px}
.lf-title{font-size:13.5px;font-weight:700;margin-bottom:8px}
.lf-list{margin:0;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:7px}
.lf-list li{position:relative;padding-left:16px;font-size:11.5px;line-height:1.55;color:var(--ink-2)}
.lf-list li::before{content:'';position:absolute;left:3px;top:7px;width:5px;height:5px;border-radius:50%;background:var(--rose);opacity:.7}

/* ---- save & send ---- */
.share-grid{display:grid;gap:10px;grid-template-columns:1fr}
@media (min-width:700px){ .share-grid{grid-template-columns:1fr 1fr} }
.sh-card{display:flex;align-items:center;gap:12px;text-align:left;background:linear-gradient(180deg,#fff,#fffafd);border:1px solid rgba(214,72,126,.14);border-radius:18px;padding:14px;font:inherit;color:var(--ink);cursor:pointer;text-decoration:none;box-shadow:var(--shadow-soft);min-width:0}
.sh-ic{width:40px;height:40px;border-radius:13px;background:var(--rose-l);color:var(--rose-d);display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:800;flex:0 0 auto}
.sh-viber .sh-ic{background:#6d3f8f;color:#fff}
.sh-card>div{min-width:0}
.sh-t{font-size:14px;font-weight:700;line-height:1.3}
.sh-d{font-size:10.5px;color:var(--muted);margin-top:2px;line-height:1.4}
.sh-card.ok{border-color:#bcd6c6;background:#f4faf6}
.email-card{background:linear-gradient(180deg,#fff,#fffafd);border:1px solid rgba(214,72,126,.14);border-radius:18px;padding:15px}
.em-head .sh-t{font-size:14.5px}
.em-row{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.em-row input{flex:1 1 190px;min-width:0;border:1.5px solid #f3d9e4;border-radius:12px;padding:12px 14px;font:inherit;font-size:14px;background:#fff;color:var(--ink)}
.em-row input:focus{outline:none;border-color:var(--rose);box-shadow:0 0 0 3px rgba(214,72,126,.14)}
.em-row .btn{padding:12px 18px;font-size:13.5px;border-radius:12px;text-decoration:none;box-shadow:none}
.em-foot{font-size:10.5px;color:var(--muted);margin-top:8px;line-height:1.45}
.sh-privacy{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);line-height:1.45;padding:2px 2px 0}
.sh-privacy .dot{width:6px;height:6px;border-radius:50%;background:var(--ok);flex:0 0 auto}

/* ---- phone (QR) report ---- */
body.phone #scr-phone.on{display:block}
body.phone .phone-result{padding:18px 16px 34px;max-width:560px;margin:0 auto;width:100%}
body.phone .r-head{padding-top:2px}
body.phone .ph-brand img{height:24px;width:auto;display:block}
body.phone .r-tabs button{font-size:11.5px;padding:8px 10px}
body.phone .r-logo{height:24px}
body.phone .md-grid,body.phone .zones-grid,body.phone .share-grid{grid-template-columns:1fr}
body.phone .zones-map{max-width:150px;margin:0 auto}
body.phone .zone-map{max-width:150px}
body.phone .rt-step{grid-template-columns:42px minmax(0,1fr);gap:10px}
body.phone .rt-no{width:42px;height:42px;border-radius:13px}
body.phone .rt-no span{font-size:17px}
body.phone .rt-step:not(:last-child)::before{left:20px;top:44px}
body.phone .rt-extra{margin-left:52px}
body.phone .r-actions{justify-content:center}
body.phone .r-actions .note{max-width:100%;text-align:center}
body.phone .r-actions .btn{width:100%;text-align:center}

@media (max-width:620px){
  .panel-head h3{font-size:18px}
  .zc-t .ttl{font-size:13px}
  .rt-name{font-size:14.5px}
  .rt-tip,.rt-why{font-size:12px}
  .rt-switch{align-self:stretch}
  .rt-tab{flex:1;justify-content:center}
}

/* ---------- v2.1: header mark, basket, 中文 ---------- */
/* v2.2: the mark is capped in CSS *and* by width/height attributes in the HTML,
   so a stale stylesheet can never render the 436px source inside the header. */
img.brand-mark{
  width:30px;height:30px;max-width:30px;max-height:30px;min-width:0;
  flex:0 0 auto;display:block;object-fit:contain;object-position:center;
}
@media (min-width:700px){ img.brand-mark{width:36px;height:36px;max-width:36px;max-height:36px} }
@media (max-width:620px){ img.brand-mark{width:26px;height:26px;max-width:26px;max-height:26px} }
.brand{flex:1 1 auto;overflow:hidden}
.brand-txt{min-width:0;overflow:hidden}
.brand-name{font-size:13px;font-weight:800;letter-spacing:.22em;white-space:nowrap;line-height:1.1}
@media (min-width:700px){ .brand-name{font-size:15px} }
.brand .brand-sub{margin-top:3px;font-size:9.5px}
@media (min-width:700px){ .brand .brand-sub{font-size:10.5px} }

/* product pick buttons */
.pick-row{margin-top:8px}
.rt-prod .rp-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.pick{
  display:inline-flex;align-items:center;gap:6px;border:1.5px solid #f3d9e4;background:#fff;
  color:var(--ink-2);font:inherit;font-size:11.5px;font-weight:650;padding:6px 11px;
  border-radius:999px;cursor:pointer;transition:border-color .15s,background .15s,color .15s;
}
.pick .pk-ic{width:16px;height:16px;border-radius:50%;background:var(--paper-2);color:var(--ink-2);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;line-height:1}
.pick.on{border-color:rgba(214,72,126,.5);background:linear-gradient(180deg,#fff3f8,#ffe4f0);color:var(--rose-d)}
.pick.on .pk-ic{background:var(--grad-cta);color:#fff}

/* cart summary card (replaces the plain staff strip) */
.cta-card.cart-card{display:block;text-align:left;background:#fff;border-color:var(--line);color:var(--ink);padding:16px 18px}
.cc-head{display:flex;align-items:flex-start;gap:10px}
.cc-head .dot{width:7px;height:7px;border-radius:50%;background:var(--rose);flex:0 0 auto;margin-top:5px;box-shadow:0 0 0 4px rgba(194,112,123,.14)}
.cc-head-t{min-width:0}
.cc-ttl{font-size:15px;font-weight:700;line-height:1.3}
.cc-sub{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.45}
.cc-list{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.cc-row{display:flex;align-items:center;gap:9px;background:var(--paper-2);border-radius:11px;padding:8px 10px}
.cc-n{width:18px;height:18px;border-radius:50%;background:#fff;color:var(--navy);font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.cc-name{flex:1;min-width:0;font-size:12.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-price{font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums}
.cc-x{border:0;background:none;color:#b9b1a3;font-size:15px;line-height:1;cursor:pointer;padding:2px 4px}
.cc-empty{font-size:12px;color:var(--muted);padding:4px 2px}
.cc-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}
.cc-cnt{font-size:11px;color:var(--muted);letter-spacing:.04em;font-weight:700}
.cc-total{font-size:17px;font-weight:700}
.cc-total small{font-size:10px;color:var(--muted);font-weight:600}

/* fixed basket bar (kiosk: under the screen, above the footer) */
.cart-bar{background:linear-gradient(180deg,#fffafc,#fff1f7);border-top:1px solid rgba(214,72,126,.18);padding:9px var(--pad);box-shadow:0 -12px 26px -24px rgba(88,20,50,.7)}
.cart-bar[hidden]{display:none}
.cb-in{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cb-info{display:flex;align-items:baseline;gap:12px;min-width:0;flex-wrap:wrap}
.cb-count{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800;white-space:nowrap}
.cb-total{font-size:19px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.cb-total small{font-size:9.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;margin-right:6px;font-weight:800}
.cb-total em{font-style:normal;font-size:10.5px;color:var(--muted);margin-left:3px}
.cb-btns{display:flex;gap:8px;align-items:center;flex:0 0 auto}
.cb-all{border:0;background:var(--grad-cta);color:#fff;box-shadow:0 8px 16px -10px rgba(179,22,79,.9);font:inherit;font-size:12.5px;font-weight:650;padding:10px 16px;border-radius:999px;cursor:pointer;white-space:nowrap}
.cb-clear{border:1px solid var(--line);background:#fff;color:var(--muted);font:inherit;font-size:11.5px;padding:9px 12px;border-radius:999px;cursor:pointer;white-space:nowrap}
.cb-clear[disabled]{opacity:.35;pointer-events:none}

/* share tab: basket block */
.sh-cart{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px 15px}
.sc-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:13.5px;font-weight:700}
.sc-head b{font-size:15px;font-variant-numeric:tabular-nums}
.sc-list{margin-top:9px;display:flex;flex-direction:column;gap:6px}

.lang button{padding:6px 9px}
@media (min-width:700px){ .lang button{padding:7px 11px} }
@media (max-width:620px){
  .lang button{padding:6px 7px;font-size:9.5px}
  .brand-name{font-size:11.5px;letter-spacing:.14em}
  .brand-mark{width:26px;height:26px;max-width:26px;max-height:26px}
  .cb-total{font-size:16px}
  .cb-all{font-size:11px;padding:9px 12px}
  .cb-clear{font-size:10.5px;padding:8px 10px}
}

/* phone: the basket bar rides at the bottom of the viewport */
body.phone .cart-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;padding-bottom:calc(9px + env(safe-area-inset-bottom))}
body.phone .phone-result{padding-bottom:112px}
body.phone .cb-in{gap:8px}
body.phone .cb-total{font-size:17px}

/* compact basket bar + wrapping tabs on narrow screens */
.cb-in{flex-wrap:nowrap}
.cb-info{flex:1 1 auto;overflow:hidden}
@media (max-width:700px){
  .r-tabs{flex-wrap:wrap;overflow-x:visible}
  .r-tabs button{flex:0 1 auto;font-size:11.5px;padding:8px 10px}
}
@media (max-width:620px){
  .cart-bar{padding:8px 14px}
  .cb-total{font-size:15px;letter-spacing:-.01em}
  .cb-total small{display:none}
  .cb-count{font-size:9.5px;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:96px}
  .cb-all{font-size:10.5px;padding:9px 11px}
  .cb-clear{display:none}
}
body.phone .r-tabs{flex-wrap:wrap}
body.phone .cart-bar{padding:8px 14px}
body.phone .cb-total{font-size:16px}
body.phone .cb-count{max-width:130px}
.cb-short{display:none}
@media (max-width:620px){
  .cb-full{display:none}
  .cb-short{display:inline}
  .cb-count{max-width:none}
}

/* phone header: logo + compact language switch */
.ph-head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
.ph-brand-img{height:26px;width:auto;display:block}
.ph-lang{display:flex;gap:2px;padding:2px;background:#fbe6ef;border-radius:999px}
.ph-lang button{border:0;background:none;font:inherit;font-size:9px;font-weight:650;color:#7d5f6d;padding:5px 6px;border-radius:999px;cursor:pointer;white-space:nowrap}
.ph-lang button.on{background:var(--grad-cta);color:#fff;box-shadow:0 4px 10px -6px rgba(179,22,79,.8)}

/* ============================================================
   v2.5 — age band + multi-select concerns
   four-question consult, personalised profile and concern care
   ============================================================ */
.q-hint{font-size:var(--small);color:var(--muted);margin-top:-2px;line-height:1.4}
.q-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;margin-left:auto;border-radius:999px;background:var(--grad-cta);color:#fff;font-size:11.5px;font-weight:800;letter-spacing:0}
.q-count b{font-weight:800;margin-left:3px}
.opts.compact .opt{min-height:62px;padding:13px 15px}
.opts.compact .opt .txt .l1{font-size:calc(var(--body)*.94);line-height:1.3}
.opts.compact .opt .txt .l2{font-size:calc(var(--small)*.9);margin-top:2px}
@media (max-width:420px){
  .opts.compact .opt{min-height:54px;padding:11px 13px;gap:11px}
  .opts.compact .opt .txt .l1{font-size:calc(var(--body)*.86)}
  .opts.compact .opt .txt .l2{font-size:10.5px}
}
.q-note{font-size:var(--small);line-height:1.5;color:var(--ink-2);background:#fff6fa;border:1px dashed #f1d2e0;border-radius:14px;padding:10px 13px}
.q-note .l1{font-weight:650;display:block}
.q-note .l2{display:block;margin-top:3px;color:var(--muted);font-size:calc(var(--small)*.9)}

/* ---- personalised profile (age band · chosen concerns) ---- */
.profile-card{grid-column:1/-1;padding:16px 18px;background:linear-gradient(150deg,#fff,#fff5fa 58%,#fff8f3);border-color:rgba(214,72,126,.2)}
@media (min-width:700px){ .profile-card{padding:18px 22px} }
.pf-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px 14px;flex-wrap:wrap}
.pf-ttl{font-size:var(--h3);font-weight:700}
.pf-note{font-size:11.5px;color:var(--muted);line-height:1.4;flex:1 1 260px}
.pf-rows{display:flex;flex-direction:column;gap:9px;margin-top:11px}
.pf-row{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap}
.pf-k{font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:800;min-width:70px}
.pf-age{font-size:13.5px;font-weight:700;padding:5px 12px;border-radius:999px;background:var(--grad-berry);color:#fff;box-shadow:0 8px 18px -12px rgba(155,27,77,.9)}
.pf-chips{display:flex;flex-wrap:wrap;gap:6px}
.pf-chip{font-size:11.5px;font-weight:650;padding:5px 11px;border-radius:999px;background:#fff;border:1px solid rgba(214,72,126,.3);color:var(--rose-d)}
.pf-chip.none{color:var(--muted);border-style:dashed;font-weight:500}
.pf-age-note{display:flex;gap:6px 10px;margin-top:11px;padding-top:10px;border-top:1px dashed var(--line);font-size:11.5px;line-height:1.55;color:var(--ink-2);flex-wrap:wrap}
.pf-age-note .pf-k{min-width:70px}
.pf-age-note .pf-txt{flex:1 1 220px;text-align:left}
@media (max-width:520px){ .pf-k{min-width:0;width:100%} }

/* ---- care for the selected concerns (indicators tab) ---- */
.cf-block{display:flex;flex-direction:column;gap:10px}
.cf-grid{display:grid;gap:9px;grid-template-columns:1fr}
@media (min-width:780px){ .cf-grid{grid-template-columns:1fr 1fr} }
.cf-card{background:linear-gradient(155deg,#fff,#fff6fa);border:1px solid rgba(214,72,126,.2);border-radius:16px;padding:12px 14px;box-shadow:var(--shadow-soft)}
.cf-top{display:flex;align-items:baseline;justify-content:space-between;gap:6px 10px;flex-wrap:wrap}
.cf-name{font-size:13px;font-weight:800;color:var(--ink);line-height:1.3}
.cf-zone{font-size:10px;color:var(--muted);font-weight:600;white-space:nowrap}
.cf-line{font-size:11.5px;line-height:1.5;color:var(--ink-2);margin-top:6px}
.cf-line b{display:block;font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:800;margin-bottom:1px}
.cf-steps{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.cf-s{font-size:10px;font-weight:700;padding:3px 8px;border-radius:999px;background:var(--rose-l);color:var(--rose-d);white-space:nowrap}
.cf-s b{margin-right:3px}

/* ---- zone card marked as a chosen-concern focus ---- */
.zone-card.focus{border-color:rgba(214,72,126,.42);box-shadow:0 12px 26px -20px rgba(155,27,77,.7),inset 0 0 0 1px rgba(214,72,126,.1)}
.zfocus{font-size:9.5px;font-weight:800;padding:4px 8px;border-radius:999px;background:var(--grad-berry);color:#fff;letter-spacing:.02em;white-space:nowrap}

/* ---- routine: concern strip and per-step actives ---- */
.rt-focus{background:linear-gradient(150deg,#fff,#fff4f9);border:1px solid rgba(214,72,126,.2);border-radius:16px;padding:11px 13px}
.rtf-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.rtf-h b{font-size:13px}
.rtf-h span{font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700}
.rtf-list{display:flex;flex-direction:column;gap:5px;margin-top:7px}
.rtf-row{display:flex;align-items:center;gap:4px 8px;font-size:11px;flex-wrap:wrap}
.rtf-n{font-weight:700;color:var(--rose-d)}
.rtf-a{color:var(--ink-2);flex:1 1 150px}
.rtf-s{font-size:9.5px;font-weight:800;color:var(--muted);letter-spacing:.04em;white-space:nowrap}
.rt-focus-line{margin-top:8px;font-size:11.5px;line-height:1.5;color:var(--rose-d);background:var(--rose-l);border-radius:10px;padding:6px 10px}
.rt-focus-line .k{display:inline-block;font-size:9px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);font-weight:800;margin-right:5px}
.rt-focus-line b{font-weight:800}
.rt-focus-line i{font-style:normal;color:#c9a3b5;margin:0 4px}

/* v2.5 polish — the concern-care block reads as a sub-section, not a second title */
.cf-block{margin-top:2px}
.cf-block > .panel-head h3{font-size:calc(var(--h3)*.86)}
.cf-block > .panel-head{margin-top:0;padding-top:10px;border-top:1px dashed var(--line)}

/* v2.5 mobile — keep all seven concern chips and Continue inside one screen */
@media (max-width:420px){
  .quiz{gap:12px}
  .opts{gap:8px}
  .opts.compact .opt{min-height:46px;padding:8px 12px;gap:10px;border-radius:15px}
  .opts.compact .opt .mark{width:20px;height:20px;font-size:10px}
  .opts.compact .opt .txt .l1{font-size:14.5px;line-height:1.25}
  .opts.compact .opt .txt .l2{font-size:9.5px;margin-top:1px}
  .q-title{font-size:23px;line-height:1.2}
  .q-title .l2{font-size:12px}
  .q-hint{font-size:12px}
  .q-note{font-size:11.5px;padding:8px 10px;line-height:1.45}
  .q-note .l2{font-size:10.5px}
}

/* ============================================================
   v2.6 — four independent languages (MY / EN / 한국어 / 中文)
   MY and EN render one language only; the header pill carries
   four buttons, and the English headline keeps both lines the
   same size because nothing smaller sits under it any more.
   ============================================================ */
#lang{flex:0 1 auto;max-width:100%}
#lang button{min-width:0}
html[lang=en] .w-title .l1,
html[lang=en] .w-title .l2{font-size:clamp(25px,3.2vh,38px);line-height:1.14;color:#2a0f1e;margin-top:0}
html[lang=en] .w-title .l2{margin-top:2px}
@media (max-width:620px){
  html[lang=en] .w-title .l1,
  html[lang=en] .w-title .l2{font-size:clamp(22px,4.2vh,28px)}
}
/* a single-language screen should not leave an empty sub-line gap */
html[lang=my] .w-title .l2{color:var(--rose-d)}

/* ============================================================
   v2.7 — kiosk summary + QR coupon, phone gate, 60-minute coupon,
   full mobile report and instant online ordering
   ============================================================ */

/* ---- kiosk: summary only, QR coupon block at its bottom ---- */
.kiosk-result{gap:16px}
.qr-card.qr-coupon{
  grid-column:1/-1;
  position:relative;
  gap:26px;
  padding:24px 26px;
  background:
    radial-gradient(120% 140% at 0% 0%, #fff4f9 0%, rgba(255,244,249,0) 60%),
    radial-gradient(120% 140% at 100% 100%, #fff2e8 0%, rgba(255,242,232,0) 62%),
    #fff;
  border:1px solid rgba(214,72,126,.34);
  box-shadow:0 26px 60px -46px rgba(155,27,77,.8), 0 0 0 1px rgba(255,255,255,.7) inset;
}
.qr-card.qr-coupon::before{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(135deg,rgba(255,92,138,.16),rgba(255,138,101,.14));
  -webkit-mask:linear-gradient(#000,#000) content-box,linear-gradient(#000,#000);
  -webkit-mask-composite:xor;mask-composite:exclude;padding:1px;
}
.qr-card.qr-coupon .qr-box{position:relative;background:#fff;border-color:rgba(214,72,126,.26);padding:12px;border-radius:18px}
.qr-card.qr-coupon canvas{width:196px;height:196px}
@media (min-width:720px){ .qr-card.qr-coupon canvas{width:228px;height:228px} }
.qr-card .qr-tag{
  display:block;margin:10px auto 0;text-align:center;
  background:var(--grad-cta);color:#fff;font-size:10px;font-weight:800;letter-spacing:.08em;
  padding:4px 10px;border-radius:999px;white-space:nowrap;box-shadow:0 8px 16px -10px rgba(179,22,79,.9);
  width:-moz-fit-content;width:fit-content;
}
.qr-card.qr-coupon .txt{flex:1 1 320px;max-width:520px}
.qr-card.qr-coupon .txt .t{font-size:21px;font-weight:800;line-height:1.36;letter-spacing:-.01em}
@media (min-width:700px){ .qr-card.qr-coupon .txt .t{font-size:24px;line-height:1.32} }
.qr-card.qr-coupon .txt .d{font-size:13px;margin-top:9px;color:var(--rose-d);font-weight:650}
.qr-card.qr-coupon .qr-url{margin-top:9px;font-size:10.5px;letter-spacing:.02em;color:#b09aa5;font-variant-numeric:tabular-nums}
html[lang=my] .qr-card.qr-coupon .txt .t{line-height:1.6;font-size:20px}
@media (min-width:700px){ html[lang=my] .qr-card.qr-coupon .txt .t{font-size:22px} }

/* ---- kiosk basket bar: start again at the bottom right ---- */
.cb-again{
  border:0;background:var(--grad-berry);color:#fff;font:inherit;font-size:12.5px;font-weight:650;
  padding:11px 18px;border-radius:999px;cursor:pointer;white-space:nowrap;
  box-shadow:0 10px 20px -12px rgba(109,16,48,.95);
}
.cb-order{
  border:0;background:var(--grad-cta);color:#fff;font:inherit;font-size:12px;font-weight:700;
  padding:11px 15px;border-radius:999px;cursor:pointer;white-space:nowrap;
  box-shadow:0 10px 20px -12px rgba(179,22,79,.95);
}
@media (max-width:620px){
  .cb-again{font-size:11px;padding:9px 13px}
  .cb-order{font-size:10.5px;padding:9px 11px}
}

/* ---- phone gate: Viber number -> report + coupon ---- */
body.phone #scr-gate{padding:0}
.gate-wrap{gap:16px}
.gate-preview{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  background:linear-gradient(150deg,#fff,#fff4f9 60%,#fff7f1);
  border:1px solid rgba(214,72,126,.2);border-radius:20px;padding:16px 18px;
  box-shadow:var(--shadow-soft);
}
.gp-score{display:flex;align-items:baseline;gap:2px;font-variant-numeric:tabular-nums}
.gp-score b{font-size:40px;line-height:1;letter-spacing:-.03em;background:var(--grad-berry);-webkit-background-clip:text;background-clip:text;color:transparent}
.gp-score span{font-size:12px;color:var(--muted);font-weight:700}
.gp-info{flex:1 1 130px;min-width:0}
.gp-k{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:800}
.gp-v{font-size:14px;font-weight:700;margin-top:3px}
.gp-chip{
  flex:0 0 auto;background:var(--grad-cta);color:#fff;font-size:10.5px;font-weight:800;
  padding:7px 12px;border-radius:999px;letter-spacing:.02em;
  box-shadow:0 10px 18px -12px rgba(179,22,79,.9);
}
.gate-card{
  background:#fff;border:1px solid rgba(214,72,126,.22);border-radius:24px;
  padding:22px 20px 18px;box-shadow:0 26px 60px -48px rgba(88,20,50,.9);
  display:flex;flex-direction:column;gap:8px;
}
.gc-t{font-size:19px;font-weight:800;letter-spacing:-.01em}
.gc-s{font-size:13px;line-height:1.55;color:var(--ink-2);margin:0 0 6px}
.gc-l{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800;margin-top:6px}
.gc-in{
  font:inherit;font-size:16px;padding:14px 15px;border-radius:14px;
  border:1.5px solid #f0d9e4;background:#fffafc;color:var(--ink);width:100%;
  -webkit-appearance:none;appearance:none;
}
.gc-in:focus{outline:none;border-color:var(--rose);box-shadow:0 0 0 4px rgba(214,72,126,.14);background:#fff}
.gc-in.bad{border-color:#c2185b;background:#fff4f8}
.gc-err{font-size:12px;color:#b3164f;font-weight:650;line-height:1.45}
.gc-err[hidden]{display:none}
.gc-cta{margin-top:10px;width:100%;font-size:15px}
.gc-priv{font-size:10.5px;line-height:1.5;color:#9c8691;text-align:center;margin-top:4px}

/* ---- phone report: the 60-minute coupon card ---- */
.coupon-card{
  position:sticky;top:0;z-index:14;
  background:linear-gradient(150deg,#6d1030,#9b1b4d 48%,#d6487e 100%);
  color:#fff;border-radius:22px;padding:16px 17px 15px;margin:0 0 12px;
  box-shadow:0 20px 40px -26px rgba(88,20,50,.95),0 0 0 1px rgba(255,255,255,.14) inset;
}
.cp-top{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:800;letter-spacing:.01em}
.cp-ico{font-size:13px;opacity:.9}
.cp-ttl{line-height:1.35}
.cp-timer{display:flex;align-items:baseline;gap:8px;margin-top:8px}
.cp-left-l{font-size:10px;letter-spacing:.12em;text-transform:uppercase;opacity:.75;font-weight:800}
.cp-left{font-size:30px;line-height:1;letter-spacing:.01em;font-variant-numeric:tabular-nums;font-weight:800}
.cp-benefits{display:flex;flex-direction:column;gap:5px;margin-top:10px}
.cp-b{display:flex;gap:8px;align-items:flex-start;font-size:11.5px;line-height:1.45;color:rgba(255,255,255,.94)}
.cp-b b{
  flex:0 0 auto;background:rgba(255,255,255,.94);color:#9b1b4d;font-size:10.5px;font-weight:800;
  padding:2px 6px;border-radius:999px;margin-top:1px;
}
.cp-staff{font-size:11px;line-height:1.5;margin-top:9px;padding-top:9px;border-top:1px dashed rgba(255,255,255,.28);color:rgba(255,255,255,.9)}
.cp-foot{display:flex;align-items:center;gap:10px;margin-top:11px;flex-wrap:wrap}
.cp-code{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.cp-code span{font-size:9px;letter-spacing:.14em;text-transform:uppercase;opacity:.7;font-weight:800}
.cp-code b{font-size:17px;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.cp-use{
  border:0;background:#fff;color:#9b1b4d;font:inherit;font-size:11.5px;font-weight:800;
  padding:11px 14px;border-radius:999px;cursor:pointer;white-space:nowrap;
}
.cp-use[disabled]{background:rgba(255,255,255,.28);color:#fff;cursor:default}
.cp-used{font-size:10.5px;margin-top:8px;color:rgba(255,255,255,.85)}
.coupon-card[data-state="redeemed"]{background:linear-gradient(150deg,#3f2a20,#6b4a35 60%,#9b7b52 100%)}
.coupon-card.cp-expired{
  background:linear-gradient(150deg,#fff,#fff4f8);color:var(--ink);
  border:1px solid rgba(214,72,126,.28);box-shadow:var(--shadow-soft);
}
.coupon-card.cp-expired .cp-ttl{color:var(--rose-d)}
.cp-exp-d{font-size:12px;line-height:1.55;color:var(--ink-2);margin:8px 0 0}
.cp-store{
  display:inline-flex;align-items:center;gap:6px;margin-top:11px;text-decoration:none;
  background:var(--grad-cta);color:#fff;font-size:12px;font-weight:700;
  padding:10px 16px;border-radius:999px;
}
.cp-store .arw{opacity:.9}

/* ---- recommended product: buy online ---- */
.rec-buy{
  display:inline-flex;align-items:center;gap:6px;margin-top:10px;text-decoration:none;
  border:1px solid rgba(214,72,126,.35);background:#fff6fa;color:var(--rose-d);
  font-size:11.5px;font-weight:700;padding:9px 13px;border-radius:999px;
}
.rec-buy .arw{font-size:12px}

/* ---- share strip under the phone report ---- */
.share-strip{display:flex;gap:8px;margin-top:6px}
.ss-btn{
  flex:1 1 0;display:flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid var(--line);background:#fff;color:var(--ink-2);text-decoration:none;
  font:inherit;font-size:11px;font-weight:650;padding:11px 8px;border-radius:14px;cursor:pointer;
}
.ss-ic{font-size:12px;color:var(--rose-d)}
.ss-btn.ok{background:#f0fbf6;border-color:#bfe7d6;color:var(--ok)}

/* ---- order summary sheet ---- */
.order-modal{position:fixed;inset:0;z-index:60;background:rgba(36,18,34,.46);display:flex;align-items:flex-end}
.order-modal[hidden]{display:none}
.om-sheet{
  width:100%;max-height:82dvh;overflow-y:auto;background:#fff;
  border-radius:24px 24px 0 0;padding:18px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow:0 -20px 50px -30px rgba(0,0,0,.6);animation:omUp .24s ease both;
}
@keyframes omUp{from{transform:translateY(22px);opacity:.5}to{transform:none;opacity:1}}
.om-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:16px}
.om-x{border:0;background:#fbe6ef;color:#7d5f6d;width:30px;height:30px;border-radius:999px;font-size:16px;line-height:1;cursor:pointer}
.om-note{font-size:11.5px;line-height:1.55;color:var(--muted);margin-top:8px}
.om-k{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:800;margin-top:14px}
.om-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.om-row{display:flex;justify-content:space-between;gap:10px;background:var(--paper-2);border-radius:11px;padding:9px 11px;font-size:12.5px}
.om-n{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.om-p{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.om-empty{font-size:12px;color:var(--muted)}
.om-total{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:12px;padding-top:12px;border-top:1px dashed var(--line);font-size:13px;font-weight:700}
.om-total b{font-size:20px;font-variant-numeric:tabular-nums}
.om-total small{font-size:10px;color:var(--muted)}
.om-code{margin-top:8px;font-size:11.5px;color:var(--rose-d)}
.om-acts{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.om-acts .btn{width:100%;text-align:center;justify-content:center;text-decoration:none;font-size:14px}
.btn.ghost{background:#fff;color:var(--muted);border:1px solid var(--line);box-shadow:none}
body.phone .phone-result{padding-bottom:136px}

/* ---- v2.7 refinements: compact phone coupon, one-row tabs, two-row bar ---- */
@media (max-width:700px){
  .coupon-card{padding:13px 14px 12px;border-radius:20px}
  .cp-top{font-size:11.5px}
  .cp-timer{margin-top:6px;gap:7px}
  .cp-left{font-size:25px}
  .cp-benefits{gap:3px;margin-top:8px}
  .cp-b{font-size:10.5px;line-height:1.4;gap:6px}
  .cp-b b{font-size:9.5px;padding:1px 5px}
  .cp-staff{font-size:10px;line-height:1.45;margin-top:7px;padding-top:7px}
  .cp-foot{margin-top:8px;gap:8px;flex-wrap:nowrap}
  .cp-code b{font-size:15px}
  .cp-use{font-size:10.5px;padding:9px 11px}
  .cp-used{font-size:10px;margin-top:6px}
  .cp-exp-d{font-size:11.5px}
  body.phone .r-tabs{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
    gap:4px;overflow:visible;flex-wrap:nowrap;
  }
  body.phone .r-tabs button{
    width:100%;padding:9px 3px;font-size:10px;line-height:1.2;
    white-space:normal;text-align:center;letter-spacing:0;
  }
  body.phone .cb-in{flex-wrap:wrap;gap:6px}
  body.phone .cb-info{flex:1 1 100%;justify-content:space-between;gap:8px}
  body.phone .cb-btns{flex:1 1 100%;gap:7px}
  body.phone .cb-order{flex:1 1 auto;text-align:center}
  body.phone .cb-all{flex:0 0 auto}
}
