/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* Ported from skin-studio (8).html â exact visual language */

:root {
  --bg: #f5f5f7;
  --card: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --line: rgba(0, 0, 0, 0.07);
  --blue: #0071e3;
  --green: #1d8a53;
  --green2: #e8f5ee;
  --amber: #d9a21b;
  --amber2: #fff6dd;
  --red: #d7263d;
  --red2: #fdecee;
  --violet: #5e5ce6;
  --r: 22px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.studio {
  display: grid;
  grid-template-columns: 236px 1fr;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
input,
select {
  font: inherit;
  color: inherit;
}
.ico {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* sidebar */
.side {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 8px 16px;
}
.brand em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
  display: block;
  font-size: 12px;
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  white-space: nowrap;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.st {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 14px;
  text-align: left;
  color: var(--muted);
  transition:
    background 0.15s,
    transform 0.12s;
}
.st:hover {
  background: rgba(0, 0, 0, 0.04);
}
.st:active {
  transform: scale(0.99);
}
.st b {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  flex: 0 0 auto;
}
.st span {
  font-size: 13.5px;
  font-weight: 600;
  display: block;
  color: var(--ink);
}
.st small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.st.on {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.st.on:hover {
  background: var(--ink);
}
.st.on b {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.st.on span,
.st.on small {
  color: #fff;
}
.st.on small {
  opacity: 0.75;
}
.st.done b {
  background: var(--green2);
  color: var(--green);
}
.st[disabled] {
  opacity: 0.45;
  pointer-events: none;
}
.side .client {
  margin-top: auto;
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 30px 12px 12px;
  text-align: left;
  position: relative;
  width: 100%;
  transition: background 0.15s;
}
.side .client:hover {
  background: #ececf0;
}
.client .sv {
  font-size: 11px;
  color: var(--green);
  margin-top: 4px;
  font-weight: 600;
}
.client .chev {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--faint);
}
.side .clients {
  margin-top: 8px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.side .clients .ico {
  width: 16px;
  height: 16px;
}
.side .clients b {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
}
.client h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.client .nm {
  font-weight: 600;
  font-size: 14px;
}
.client .sm {
  font-size: 12px;
  color: var(--muted);
}
.side .exit {
  margin-top: 10px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.side .exit:hover {
  color: var(--ink);
}
/* main */
main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.topbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar h1 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.topbar .sub {
  font-size: 12.5px;
  color: var(--muted);
}
.topbar .acts {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  transition:
    transform 0.12s,
    background 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.btn:hover {
  background: #fafafa;
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary {
  background: var(--blue);
  color: #fff;
  border-color: transparent;
}
.btn.primary:hover {
  background: #0077ed;
}
.btn.dark {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}
.btn.ghost {
  background: none;
  border-color: transparent;
  color: var(--blue);
}
.btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
}
.btn .ico {
  width: 16px;
  height: 16px;
}
.view {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 24px 24px;
  display: none;
}
.view.on {
  display: block;
}
.card {
  background: var(--card);
  border-radius: var(--r);
  padding: 22px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
}
.k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
/* step 1 */
.p1 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-gap: 16px;
  gap: 16px;
  align-items: start;
}
.p1l,
.p1r {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ig {
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
}
.ir {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.ir:first-child {
  border-top: 0;
}
.ir > span {
  font-size: 14px;
  color: var(--muted);
}
.ir input,
.ir select {
  height: 48px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  padding: 0;
}
.ir select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>")
    no-repeat right center;
  padding-right: 18px;
  cursor: pointer;
}
.ir input::placeholder {
  color: var(--faint);
}
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg);
}
.seg .chip {
  flex: 1 1;
  height: 36px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
}
.seg .chip.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.ksub {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--faint);
  margin-left: 6px;
  flex: 1 1;
}
.link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--blue);
}
.link:hover {
  text-decoration: underline;
}
.ctiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 8px;
  gap: 8px;
}
.ctile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border-radius: 14px;
  background: var(--bg);
  border: 1.5px solid transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s;
}
.ctile .ci {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.ctile .ci svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ctile.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.ctile.on .ci {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.swatches {
  display: flex;
  gap: 8px;
  align-items: center;
}
.swatches button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.swatches button.on {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--ink);
}
.hero1 h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 4px 0 8px;
}
.hero1 p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}
.flow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}
.flow div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.flow div b {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.flow i {
  flex: 1 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 18px;
}
.fine {
  font-size: 12px;
  color: var(--faint);
  margin-top: 14px;
  line-height: 1.45;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 12px;
  gap: 12px;
}
.f {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.f label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.f input,
.f select {
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0 12px;
  outline: none;
}
.f input:focus,
.f select:focus {
  border-color: var(--blue);
  background: #fff;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
}
.chip.on {
  background: var(--ink);
  color: #fff;
}
.intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-gap: 16px;
  gap: 16px;
}
.visits {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vis {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg);
  border-radius: 12px;
  padding: 6px 10px 6px 6px;
  text-align: left;
  transition: background 0.15s;
}
.vis:hover {
  background: #ececf0;
}
.vis img {
  width: 38px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
}
.vis b {
  font-size: 12.5px;
  display: block;
}
.vis small {
  font-size: 11px;
  color: var(--muted);
}
.lights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
  gap: 10px;
  margin-top: 8px;
}
.lt {
  background: var(--bg);
  border-radius: 14px;
  padding: 12px;
}
.lt i {
  display: block;
  width: 100%;
  height: 46px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.lt b {
  font-size: 13px;
  display: block;
}
.lt small {
  font-size: 11.5px;
  color: var(--muted);
}
/* step 2 capture */
.cap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-gap: 16px;
  gap: 16px;
  height: 100%;
}
.stage {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: #0f0f12;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  max-height: calc(100vh - 150px);
  margin: 0 auto;
  width: 100%;
  max-width: 560px;
}
.stage video,
.stage img.src {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage video {
  transform: none;
}
.stage video.mirror {
  transform: scaleX(-1);
}
#stageC {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: -webkit-grab;
  cursor: grab;
}
#stageC.drag {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}
.lm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.lm .h {
  pointer-events: auto;
  cursor: move;
}
.adjbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(20, 20, 22, 0.62);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  color: #fff;
  z-index: 4;
}
.adjbar[hidden] {
  display: none;
}
.adjbar .ab {
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.adjbar .ab .ico {
  width: 15px;
  height: 15px;
}
.adjbar .ab.on {
  background: #fff;
  color: #111;
}
.zoomrow {
  flex: 1 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
}
.zoomrow input {
  flex: 1 1;
  accent-color: #fff;
}
.stage .hint {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.55);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
  white-space: nowrap;
  z-index: 4;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.stage .hint[hidden] {
  display: none;
}
.stage .guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stage .guide svg {
  width: 100%;
  height: 100%;
}
.stage .hud {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 6px;
}
.pill {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.6);
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
}
.stage .empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  text-align: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.35);
  z-index: 3;
}
.stage .empty p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
  font-size: 13.5px;
}
.opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(340px, 100%);
}
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  text-align: left;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition:
    background 0.15s,
    transform 0.12s;
}
.opt:hover {
  background: rgba(255, 255, 255, 0.18);
}
.opt:active {
  transform: scale(0.99);
}
.opt .oi {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
}
.opt b {
  display: block;
  font-size: 14px;
}
.opt small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
#btnCam .oi {
  background: var(--blue);
  color: #fff;
}
.camtools {
  position: absolute;
  left: 12px;
  bottom: 62px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.camtools[hidden] {
  display: none;
}
.camtools .ab {
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(20, 20, 22, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.camtools .ab.on {
  background: #fff;
  color: #111;
}
.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  z-index: 6;
  pointer-events: none;
}
.ring[hidden] {
  display: none;
}
.ring svg {
  width: 100%;
  height: 100%;
}
.ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: luminosity;
}
.ghost[hidden] {
  display: none;
}
.stage .shutter {
  position: absolute;
  left: 50%;
  bottom: 62px;
  z-index: 5;
  transform: translateX(-50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.stage .flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.stage .flash.go {
  animation: flash 0.5s ease;
}
@keyframes flash {
  0% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}
.poses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  gap: 10px;
}
.poses.poses-front-only {
  grid-template-columns: 1fr;
  max-width: 220px;
}
.pose {
  background: var(--bg);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s,
    border-color 0.15s;
}
.pose:hover {
  transform: translateY(-1px);
}
.pose.on {
  border-color: var(--blue);
  background: #fff;
}
.pose .ph {
  height: 118px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7f7f9, #ebebf0);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 8px;
}
.pose .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pose .ph svg.headsvg {
  width: 88px;
  height: 104px;
}
.pose.on .ph .arr {
  animation: arrpulse 1.4s ease-in-out infinite;
}
@keyframes arrpulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
.pose:not(.done) .ph svg.headsvg {
  transition: transform 0.25s;
}
.pose:not(.done):hover .ph svg.headsvg {
  transform: scale(1.06);
}
.pose b {
  font-size: 13px;
}
.pose small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.pose .st2 {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: #eaf3ff;
  padding: 3px 8px;
  border-radius: 999px;
}
.pose.done .ph {
  outline: 2px solid var(--green);
}
.pose.done .st2 {
  color: var(--green);
  background: var(--green2);
}
.capture-guide-card {
  overflow: hidden;
}
.capture-guide-card .k {
  margin-bottom: 10px;
}
.capture-guide-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #f5f5f7;
  object-fit: contain;
}
.cap-test-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tips li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  margin: 7px 0;
  color: var(--muted);
}
.tips li svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.srcrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.quality {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin-top: 10px;
}
.q {
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
}
.q b {
  display: block;
  font-size: 13px;
}
.q.ok b {
  color: var(--green);
}
.q.warn b {
  color: var(--amber);
}
/* model picker */
.models {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 18, 0.92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 16px;
  color: #fff;
  z-index: 5;
}
.models[hidden] {
  display: none;
}
.models .mh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.models .mh b {
  font-size: 15px;
}
.models .mh button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.mgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
  flex: 1 1;
  min-height: 0;
}
.mcard {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #222;
  text-align: left;
  min-height: 0;
}
.mcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
  transition: transform 0.3s;
}
.mcard:hover img {
  transform: scale(1.04);
}
.mcard .mt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.mcard .mt b {
  display: block;
  font-size: 14px;
}
.mcard .mt small {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.75);
}
.mcard .tone {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
}
/* step 3 lights */
.lgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 12px;
  gap: 12px;
  height: 100%;
}
.lcard {
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.lcard .lh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.lcard .lh b {
  font-size: 13px;
}
.lcard .lh small {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.lcard .tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 6px;
  color: #fff;
}
.lcard .im {
  flex: 1 1;
  min-height: 0;
  background: #000;
  position: relative;
  cursor: zoom-in;
}
.lcard .im canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.lcard .lf {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.lcard .im .scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #5ac8fa, transparent);
  opacity: 0.9;
  animation: scan 1.6s ease-in-out infinite;
}
@keyframes scan {
  0% {
    top: 0;
  }
  50% {
    top: calc(100% - 3px);
  }
  100% {
    top: 0;
  }
}
/* step 4 analysis */
.an {
  display: grid;
  grid-template-columns: minmax(340px, 380px) 1fr;
  grid-gap: 16px;
  gap: 16px;
  height: 100%;
}
.mlist {
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--line);
  padding: 10px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  box-shadow: var(--shadow);
}
.mtype {
  padding: 10px 10px 12px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--bg);
}
.mtype b {
  display: block;
  font-size: 18px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.mtype .tchips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.mtype .tchips span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
}
.mgroup {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 10px 10px 4px;
}
.mi {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  grid-template-rows: auto auto;
  grid-column-gap: 9px;
  column-gap: 9px;
  grid-row-gap: 5px;
  row-gap: 5px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  text-align: left;
}
.mi:hover {
  background: var(--bg);
}
.mi.on {
  background: var(--ink);
  color: #fff;
}
.mi i {
  grid-row: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mi span {
  grid-row: 1;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.mi .num {
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}
.mi .num b {
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.mi .num .dl {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--faint);
}
.mi .num .dl.up {
  color: var(--green);
  background: var(--green2);
}
.mi .num .dl.down {
  color: var(--red);
  background: var(--red2);
}
.mi.on .num .dl {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.mi .bar {
  grid-column: 2/4;
  grid-row: 2;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.mi.on .bar {
  background: rgba(255, 255, 255, 0.18);
}
.mi .bar b {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.mi.good .bar b {
  background: var(--green);
}
.mi.normal .bar b {
  background: var(--amber);
}
.mi.bad .bar b {
  background: var(--red);
}
.mi.good i {
  background: var(--green);
}
.mi.normal i {
  background: var(--amber);
}
.mi.bad i {
  background: var(--red);
}
.res {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-gap: 16px;
  gap: 16px;
  min-height: 0;
}
.rimg {
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.rimg .rh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.rimg .rh h3 {
  font-size: 16px;
  font-weight: 700;
}
.rimg .rh .tg {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg);
}
.rimg .rh .tg button {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.rimg .rh .tg button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.mask-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.mask-switch > span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.mask-switch button {
  position: relative;
  width: 42px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8c8c8;
  transition: background 0.18s ease;
  flex: none;
}
.mask-switch button.on {
  background: var(--green, #1d8a53);
}
.mask-switch button i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
  pointer-events: none;
}
.mask-switch button.on i {
  transform: translateX(18px);
}
.mask-switch button:focus-visible {
  outline: 2px solid var(--blue, #0071e3);
  outline-offset: 2px;
}
.rimg .im {
  flex: 1 1 auto;
  min-height: 320px;
  background: #000;
  position: relative;
  overflow: hidden;
}
.rimg .im canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rimg .im canvas.loupe {
  inset: auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  display: none;
  z-index: 3;
  background: #000;
}
/* Reserve 3 text lines so longer measure copy never shifts the image stage */
.rimg .rf {
  flex: 0 0 auto;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  min-height: calc(24px + 3 * 1.4em);
  box-sizing: border-box;
}
.an-param-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: #fafafa;
  flex: 0 0 auto;
}
.an-param-nav .btn {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.an-param-nav .btn .ico {
  width: 15px;
  height: 15px;
}
.an-param-pos {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}
.zone {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 14px;
  gap: 14px;
  align-items: center;
}
.zmap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.zmap canvas {
  width: 100%;
  max-width: 256px;
  border-radius: 16px;
  display: block;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.zl {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.zl i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: -1px;
}
.score {
  text-align: center;
}
.score .big {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.score .lb {
  font-size: 12px;
  color: var(--muted);
}
.score .avg {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.gauge5 {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}
.gauge5 i {
  flex: 1 1;
  height: 10px;
  border-radius: 999px;
  opacity: 0.35;
}
.gauge5 i:nth-child(1) {
  background: #34c759;
}
.gauge5 i:nth-child(2) {
  background: #8fd14f;
}
.gauge5 i:nth-child(3) {
  background: #ffcc00;
}
.gauge5 i:nth-child(4) {
  background: #ff9500;
}
.gauge5 i:nth-child(5) {
  background: #ff3b30;
}
.gauge5 i.on {
  opacity: 1;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3.5px var(--ink);
}
.grade {
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}
.pctl {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.pctl b {
  color: var(--ink);
}
.addr {
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  flex: 0 0 auto;
  margin-left: auto;
}
.addr.on {
  background: var(--green2);
  color: var(--green);
}
.pr {
  display: flex;
  align-items: center;
}
.treats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tr {
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 14px;
}
.trh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.trh b {
  font-size: 13.5px;
}
.trg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 6px 14px;
  gap: 6px 14px;
  margin-top: 8px;
}
.trg span {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.35;
}
.trg em {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.gauge {
  margin-top: 12px;
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #34c759 0 33%,
    #ffcc00 33% 66%,
    #ff3b30 66%
  );
}
.gauge i {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ink);
  transform: translate(-50%, -50%);
  transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.glabels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
}
.bar {
  flex: 1 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
}
.bar i {
  flex: 1 1;
  border-radius: 4px 4px 0 0;
  position: relative;
  transform-origin: bottom;
  animation: grow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.bar i.m {
  background: var(--blue);
}
.bar i.a {
  background: #c7c7cc;
}
.bar i b {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
@keyframes grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
.barlabels {
  display: flex;
  gap: 10px;
  padding: 6px 4px 0;
}
.barlabels span {
  flex: 1 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.legend {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
}
.verdict {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.verdict .ic {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.verdict .ic svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.verdict p {
  font-size: 13.5px;
  line-height: 1.45;
}
.prods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 8px;
  gap: 8px;
}
.pr {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg);
  border-radius: 12px;
  padding: 10px;
}
.pr .sw {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: 0 0 auto;
}
.pr b {
  font-size: 13px;
  display: block;
}
.pr small {
  font-size: 11.5px;
  color: var(--muted);
}
.an,
#anWrap {
  height: 100%;
}
.running {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  grid-gap: 24px;
  gap: 24px;
  height: 100%;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.rface {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r);
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: var(--shadow);
}
.rface canvas,
.rface img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.rface img {
  opacity: 0;
  transition: opacity 0.85s ease;
}
.rface img.on {
  opacity: 1;
}
.rface-pose {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  pointer-events: none;
}
.rscan {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #5ac8fa,
    #fff,
    #5ac8fa,
    transparent
  );
  box-shadow: 0 0 18px #5ac8fa;
  animation: scan 2s ease-in-out infinite;
}
.rzones {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.rzones i {
  position: absolute;
  border: 1.5px dashed rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: zpulse 1.6s ease-in-out infinite;
  box-sizing: border-box;
}
.rzones i::after {
  content: attr(data-n);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1c1a22;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.18);
}
.rzones .rz-fh {
  left: 22%;
  top: 10%;
  width: 56%;
  height: 18%;
  animation-delay: 0s;
}
.rzones .rz-lc {
  left: 10%;
  top: 38%;
  width: 28%;
  height: 22%;
  animation-delay: 0.2s;
}
.rzones .rz-rc {
  right: 10%;
  top: 38%;
  width: 28%;
  height: 22%;
  animation-delay: 0.4s;
}
.rzones .rz-ns {
  left: 36%;
  top: 34%;
  width: 28%;
  height: 26%;
  animation-delay: 0.6s;
}
.rzones .rz-ch {
  left: 30%;
  top: 68%;
  width: 40%;
  height: 16%;
  animation-delay: 0.8s;
}
@keyframes zpulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.95;
  }
}
.rlight {
  position: absolute;
  left: 12px;
  top: 12px;
}
.rside h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 2px 0 6px;
}
.rside p {
  color: var(--muted);
  font-size: 14px;
  min-height: 20px;
}
.rprog {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 16px;
}
.rbar {
  flex: 1 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.rbar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #5ac8fa);
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rprog b {
  font-size: 14px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  width: 40px;
  text-align: right;
}
.rlog {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rlog li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--faint);
  transition: all 0.25s;
}
.rlog li .rd {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.rlog li.now {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.rlog li.now .rd {
  border-color: var(--blue);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
.rlog li.done {
  color: var(--ink);
}
.rlog li.done .rd {
  background: var(--green);
  border-color: var(--green);
}
.rlog li.done .rd::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 900px) {
  .running {
    grid-template-columns: 1fr;
    height: auto;
    align-content: start;
  }
  .running .rface {
    display: block;
    max-width: min(300px, 78vw);
    width: min(300px, 78vw);
    margin: 0 auto;
  }
}
/* step 5 report */
.rep {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-gap: 16px;
  gap: 16px;
}
.brandbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.qrbox {
  text-align: center;
}
.qrbox canvas {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.qrbox small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 4px;
}
.trend {
  width: 100%;
  max-width: 420px;
  display: block;
}
.ov {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: 18px;
  gap: 18px;
  align-items: center;
}
.ring2 {
  width: 132px;
  height: 132px;
  position: relative;
}
.ring2 svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring2 .c {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.ring2 .c b {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ring2 .c small {
  font-size: 11px;
  color: var(--muted);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
}
.kpi {
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px;
}
.kpi b {
  font-size: 20px;
  font-weight: 700;
  display: block;
  letter-spacing: -0.02em;
}
.kpi small {
  font-size: 11.5px;
  color: var(--muted);
}
.radar {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: block;
}
.top3 li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.top3 li:first-child {
  border-top: 0;
}
.top3 li i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.top3 li b {
  flex: 1 1;
}
.top3 li em {
  font-style: normal;
  color: var(--muted);
  font-size: 12.5px;
}
.routine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
}
.rt {
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 14px;
}
.rt h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.rt li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  padding: 5px 0;
}
.rt li b {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.compare {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 8px;
  gap: 8px;
}
.cmp {
  text-align: center;
  background: var(--bg);
  border-radius: 12px;
  padding: 8px;
}
.cmp canvas {
  width: 100%;
  border-radius: 8px;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.cmp small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
/* compare / simulation */
.cmpbox {
  background: var(--card);
  border-radius: 22px;
  width: min(760px, 96vw);
  padding: 16px;
  position: relative;
}
.cmph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cmph b {
  font-size: 16px;
}
.cmpbox .cmph .x,
.modal .cmpbox .x {
  position: static;
  right: auto;
  top: auto;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.cmpsel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.cmpsel select {
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0 8px;
  font-size: 12.5px;
}
.cmpstage {
  position: relative;
  height: min(62vh, 620px);
  aspect-ratio: 4/5;
  max-width: 100%;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 auto;
}
.cmpstage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cmptop {
  position: absolute;
  inset: 0;
  -webkit-clip-path: inset(0 50% 0 0);
          clip-path: inset(0 50% 0 0);
}
.cmpline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.cmpline i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.cmpl {
  position: absolute;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.6);
  color: #fff;
  font-size: 11.5px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.cmpl.l {
  left: 10px;
}
.cmpl.r {
  right: 10px;
}
.cmpstage input {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.simctl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.simctl input {
  flex: 1 1;
  min-width: 160px;
  accent-color: var(--blue);
}
.simctl b {
  color: var(--ink);
}
.simctl p {
  flex-basis: 100%;
  font-size: 12px;
  margin: 0;
}
/* light views */
.vt {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: var(--bg);
  margin-bottom: 8px;
}
.vt button {
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.vt button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
/* advisor */
.advfab {
  display: none !important;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.advfab[hidden] {
  display: none;
}
.advfab .ico {
  width: 16px;
  height: 16px;
}
.adv {
  position: fixed;
  right: 22px;
  top: 74px;
  z-index: 46;
  width: 360px;
  max-height: 72vh;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
}
.adv[hidden] {
  display: none;
}
.advh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.advh b {
  font-size: 14px;
}
.advh button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
}
.advm {
  flex: 1 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
}
.msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
}
.msg.ai {
  background: var(--bg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg.me {
  background: var(--ink);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.advq {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 12px 10px;
}
.advq button {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
}
.advq button:hover {
  color: var(--ink);
}
.advi {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.advi input {
  flex: 1 1;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 10px;
  background: var(--bg);
  outline: none;
}
.advi button {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}
/* clients window */
.cwin {
  width: min(1100px, 96vw);
  height: min(760px, 92vh);
  display: flex;
  flex-direction: column;
}
.csearch {
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0 12px;
  font-size: 13.5px;
  outline: none;
  width: 220px;
}
.cbody {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-gap: 14px;
  gap: 14px;
  flex: 1 1;
  min-height: 0;
}
.clist {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
  scrollbar-width: thin;
}
.crow {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg);
  text-align: left;
  border: 1.5px solid transparent;
}
.crow:hover {
  background: #ececf0;
}
.crow.on {
  background: var(--card);
  border-color: var(--ink);
}
.crow .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex: 0 0 auto;
  overflow: hidden;
}
.crow .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crow b {
  display: block;
  font-size: 14px;
}
.crow small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.crow .sc {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}
.cdetail {
  overflow: auto;
  background: var(--bg);
  border-radius: 18px;
  padding: 18px;
  scrollbar-width: thin;
}
.cdetail .none {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.chead {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.chead .big {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 auto;
}
.chead .big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chead h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.chead p {
  font-size: 13px;
  color: var(--muted);
}
.cacts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.cacts .btn {
  height: 36px;
  font-size: 13px;
}
.btn.danger {
  color: var(--red);
  border-color: rgba(215, 38, 61, 0.25);
}
.btn.danger:hover {
  background: var(--red2);
}
.cvis {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cv {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border-radius: 14px;
  padding: 8px 10px;
}
.cv img {
  width: 48px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
}
.cv b {
  font-size: 13.5px;
  display: block;
}
.cv small {
  font-size: 11.5px;
  color: var(--muted);
}
.cv .ba {
  display: flex;
  gap: 6px;
}
.cv .ba button {
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
}
.cv .ba button:hover {
  background: #e9e9ee;
}
.cv .ba button.del {
  color: var(--red);
}
.ctrend {
  width: 100%;
  max-width: 420px;
  display: block;
  margin-top: 6px;
}
@media (max-width: 800px) {
  .cbody {
    grid-template-columns: 1fr;
  }
  .clist {
    max-height: 200px;
  }
}
/* recommendation editor */
.recg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 14px;
  gap: 14px;
}
.recg h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.rci {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 6px;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.rci.on {
  border-color: var(--green);
  background: var(--green2);
}
.rci input {
  margin-top: 3px;
}
.rci b {
  font-size: 13px;
  display: block;
}
.rci small {
  font-size: 11.5px;
  color: var(--muted);
}
.rci .for {
  font-size: 10.5px;
  color: var(--faint);
  display: block;
  margin-top: 2px;
}
@media (max-width: 760px) {
  .recg {
    grid-template-columns: 1fr;
  }
}
/* visit + print preview */
.vhead {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.vhead img {
  width: 110px;
  height: 138px;
  object-fit: cover;
  border-radius: 14px;
  flex: 0 0 auto;
}
.vhead h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.vlist li {
  padding: 7px 0;
}
.pv {
  display: grid;
  grid-template-columns: 1fr 240px;
  grid-gap: 18px;
  gap: 18px;
  align-items: start;
}
.pvpages {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--bg);
  border-radius: 16px;
  padding: 16px;
  justify-content: center;
}
.pg {
  width: 210px;
  height: 297px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}
.pg .in {
  position: absolute;
  left: 0;
  top: 0;
  width: 840px;
  height: 1188px;
  transform: scale(0.25);
  transform-origin: 0 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pg .in .card {
  box-shadow: none;
}
.pg .pn {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 9px;
  color: var(--faint);
}
.pvlist li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  margin: 8px 0;
}
.pvlist li svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 860px) {
  .pv {
    grid-template-columns: 1fr;
  }
}
/* zoom modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open {
  display: flex;
}
.modal canvas {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 16px;
}
.modal .x {
  position: absolute;
  right: 20px;
  top: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: #fff;
  color: #111;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.25s;
  pointer-events: none;
  z-index: 60;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.cap .ctiles {
  grid-template-columns: repeat(5, 1fr);
}
.cap .ctile {
  padding: 10px 4px 9px;
}
@media (max-width: 1500px) {
  .cap .ctiles {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1250px) {
  .cap .ctiles {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1100px) {
  .cap .ctiles {
    grid-template-columns: repeat(5, 1fr);
  }
  .an {
    grid-template-columns: 1fr;
  }
  .mlist {
    flex-direction: row;
    overflow-x: auto;
  }
  .res,
  .rep,
  .cap,
  .intro {
    grid-template-columns: 1fr;
  }
  .lgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  body {
    grid-template-columns: 1fr;
  }
  .side {
    display: none;
  }
  .view {
    padding: 14px;
  }
  .grid2,
  .form,
  .prods {
    grid-template-columns: 1fr;
  }
}
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  html,
  body {
    display: block;
    overflow: visible;
    height: auto;
    background: #fff;
  }
  .side,
  .topbar,
  .btn,
  .advfab,
  .adv,
  .modal,
  .toast {
    display: none !important;
  }
  main {
    display: block;
    overflow: visible;
  }
  .view {
    display: none !important;
  }
  .view.print {
    display: block !important;
    overflow: visible;
    padding: 0;
  }
  .rep {
    display: block;
  }
  .rep > div {
    display: block;
  }
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
    margin: 0 0 10px;
    page-break-inside: avoid;
  }
  .radar {
    max-width: 300px;
  }
  .compare {
    grid-template-columns: repeat(4, 1fr);
  }
  .brandbar {
    border-top-width: 6px;
  }
}
.tl {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.navtog {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.navtog:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
}
.navtog .ico {
  width: 18px;
  height: 18px;
}
.stepchip {
  display: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.06);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
body.navless .studio,
.studio.navless {
  grid-template-columns: 1fr;
}
body.navless .side,
.studio.navless .side {
  display: none;
}
body.navless .stepchip,
.studio.navless .stepchip {
  display: inline-block;
}

/* ===== brand theming, attract screen, motion ===== */
:root {
  --brand: #1d8a53;
  --brand-soft: rgba(29, 138, 83, 0.1);
  --brand-soft2: rgba(29, 138, 83, 0.06);
}
body {
  background:
    radial-gradient(1100px 620px at 8% -8%, var(--brand-soft), transparent 60%),
    radial-gradient(
      900px 560px at 104% 108%,
      var(--brand-soft2),
      transparent 60%
    ),
    var(--bg);
}
.btn.primary {
  background: var(--brand);
}
.btn.primary:hover {
  background: var(--brand);
  filter: brightness(1.07);
}
.st.on b {
  background: var(--brand);
  color: #fff;
}
.pose.on {
  border-color: var(--brand);
}
.pose .st2 {
  color: var(--brand);
}
.ctile.on {
  background: var(--brand);
  border-color: var(--brand);
}
.btn:active {
  transform: translateY(1px);
}
.ctile,
.pose,
.opt {
  transition:
    transform 0.12s,
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
.ctile:active,
.pose:active,
.opt:active {
  transform: scale(0.97);
}
.ctile:hover {
  border-color: rgba(0, 0, 0, 0.12);
}
.view.on {
  animation: viewin 0.32s ease;
}
@keyframes viewin {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.stage .guide svg > ellipse {
  transform-origin: 200px 250px;
  animation: breathe 2.8s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.015);
  }
}
.stage.has-face .guide svg > ellipse {
  stroke: var(--brand);
  stroke-dasharray: none;
  stroke-width: 2.5;
  animation: none;
  opacity: 1;
  filter: drop-shadow(0 0 8px var(--brand));
}
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  box-shadow: 0 0 18px var(--brand);
  opacity: 0;
  pointer-events: none;
}
.scanline.go {
  animation: scan 1.1s ease-in-out;
}
@keyframes scan {
  0% {
    top: 8%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 92%;
    opacity: 0;
  }
}
.brand {
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.15s;
}
.brand:hover {
  background: rgba(0, 0, 0, 0.04);
}
.brand .mark {
  background: var(--brand);
}
.welcome {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  grid-gap: 40px;
  gap: 40px;
  padding: 6vh 7vw;
  background:
    radial-gradient(900px 600px at 15% 20%, var(--brand-soft), transparent 60%),
    linear-gradient(160deg, #fbfbfd, #eef0f4);
  transition: opacity 0.45s ease;
}
.welcome.hide {
  opacity: 0;
  pointer-events: none;
}
.welcome .wbrand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 28px;
}
.welcome .wbrand .brand-name {
  font-size: 22px;
}
.welcome .wbrand em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}
.welcome h1 {
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 18px;
  max-width: 14ch;
}
.welcome p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 44ch;
  margin: 0 0 30px;
  line-height: 1.5;
}
.welcome .big {
  height: 60px;
  padding: 0 34px;
  font-size: 18px;
  border-radius: 999px;
  box-shadow: 0 14px 34px var(--brand-soft);
}
.welcome small {
  display: block;
  margin-top: 16px;
  color: var(--faint);
  font-size: 13px;
}
.wr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.wface {
  position: relative;
  width: min(34vw, 440px);
  aspect-ratio: 4/5;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}
.wface img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: wcycle 12s infinite;
}
.wface i {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: wcycle 12s infinite;
  pointer-events: none;
}
.wface img:nth-of-type(1) {
  animation-delay: 0s;
}
.wface img:nth-of-type(2) {
  animation-delay: 3s;
  filter: saturate(0.55) contrast(1.2) brightness(0.8) hue-rotate(190deg);
}
.wface i.uv {
  animation-delay: 3s;
  background: rgba(60, 70, 230, 0.45);
  mix-blend-mode: screen;
}
.wface img:nth-of-type(3) {
  animation-delay: 6s;
  filter: saturate(1.35) contrast(1.05);
}
.wface i.pl {
  animation-delay: 6s;
  background: rgba(230, 80, 80, 0.14);
  mix-blend-mode: multiply;
}
.wface img:nth-of-type(4) {
  animation-delay: 9s;
  filter: grayscale(1) contrast(1.45) brightness(1.08);
}
@keyframes wcycle {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  31% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.wlabels {
  display: flex;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--faint);
}
.wlabels span {
  animation: wlabel 12s infinite;
  position: relative;
}
.wlabels span:nth-child(2) {
  animation-delay: 3s;
}
.wlabels span:nth-child(3) {
  animation-delay: 6s;
}
.wlabels span:nth-child(4) {
  animation-delay: 9s;
}
@keyframes wlabel {
  0% {
    color: var(--faint);
  }
  6% {
    color: var(--ink);
  }
  25% {
    color: var(--ink);
  }
  31% {
    color: var(--faint);
  }
  100% {
    color: var(--faint);
  }
}
.bgrid {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}
.bswatches {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.bswatches button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: transform 0.12s;
}
.bswatches button.on {
  border-color: var(--ink);
  transform: scale(1.08);
}
.bswatches input[type="color"] {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.bpreview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border-radius: 16px;
  padding: 14px 16px;
}
.bpreview .mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
@media (max-width: 900px) {
  .welcome {
    grid-template-columns: 1fr;
    padding: 8vh 7vw 6vh;
  }
  .wr {
    display: none;
  }
}
@media print {
  .welcome,
  .brandbtn {
    display: none !important;
  }
}

/* ===== palette: lilac Â· blush Â· peach Â· cream (glass) ===== */
:root {
  --bg: #f4f0f8;
  --card: rgba(255, 255, 255, 0.78);
  --ink: #1c1a22;
  --muted: #6b6578;
  --faint: #a39eb0;
  --line: rgba(120, 90, 170, 0.1);
  --blue: #8b78e6;
  --green: #27b65a;
  --green2: #e6f7ec;
  --amber: #e4b73b;
  --amber2: #fff5d6;
  --red: #e4505a;
  --red2: #fde9ec;
  --violet: #8b78e6;
  --peach: #f5c59a;
  --cream: #fff4e3;
  --lilac: #ebe3f8;
  --blush: #fbe4ee;
  --brand: #ee9f63;
  --brand-soft: rgba(238, 159, 99, 0.16);
  --brand-soft2: rgba(238, 159, 99, 0.08);
  --shadow:
    0 1px 2px rgba(60, 40, 90, 0.04), 0 12px 32px rgba(120, 90, 170, 0.1);
}
body {
  background:
    radial-gradient(1200px 700px at 0% 0%, var(--lilac) 0%, transparent 55%),
    radial-gradient(1000px 600px at 100% 0%, var(--blush) 0%, transparent 55%),
    radial-gradient(1100px 700px at 50% 110%, var(--cream) 0%, transparent 60%),
    radial-gradient(
      900px 500px at 100% 100%,
      var(--brand-soft) 0%,
      transparent 55%
    ),
    var(--bg);
}
.card,
.lcard,
.mlist {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.side {
  background: rgba(255, 255, 255, 0.55);
  border-right: 1px solid rgba(255, 255, 255, 0.7);
}
.topbar {
  background: rgba(250, 247, 252, 0.7);
}
.btn {
  border-radius: 999px;
}
.btn.primary {
  background: var(--ink);
  color: #fff;
}
.btn.primary:hover {
  background: #2a2733;
  filter: none;
}
.btn.dark {
  background: var(--ink);
}
.st.on {
  background: var(--ink);
}
.st.on b {
  background: var(--brand);
  color: var(--ink);
}
.st b {
  background: var(--lilac);
  color: var(--ink);
}
.ig {
  background: rgba(255, 255, 255, 0.6);
}
.ir {
  border-top: 1px solid var(--line);
}
.kpi,
.q,
.seg,
.pose,
.ctile {
  background: rgba(255, 255, 255, 0.6);
}
.ctile {
  border-color: rgba(255, 255, 255, 0.8);
}
.ctile:hover {
  border-color: var(--brand);
}
.ctile.on {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
}
.ctile.on .ci {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}
.pose.on {
  border-color: var(--brand);
  background: #fff;
}
.pose .ph {
  background: linear-gradient(180deg, #f7f3fb, var(--lilac));
}
.pose .st2 {
  color: var(--ink);
  background: var(--cream);
}
.chip.on,
.seg .chip.on {
  background: #fff;
}
.welcome {
  background:
    radial-gradient(900px 600px at 10% 10%, var(--lilac), transparent 60%),
    radial-gradient(800px 600px at 90% 20%, var(--blush), transparent 60%),
    radial-gradient(900px 600px at 60% 110%, var(--cream), transparent 60%),
    #f6f2f9;
}
.welcome .big {
  background: var(--ink);
  box-shadow: 0 16px 36px rgba(28, 26, 34, 0.22);
}
.welcome .wbrand .mark {
  background: var(--brand);
  color: var(--ink);
}
.wface {
  border-radius: 32px;
}
.brand .mark {
  background: var(--brand);
  color: var(--ink);
}
/* capture stage: scanning look */
.stage {
  background: radial-gradient(600px 500px at 50% 0%, #2a2034, #120f18);
}
.stage .empty {
  background: linear-gradient(
    180deg,
    rgba(20, 14, 28, 0.55),
    rgba(20, 14, 28, 0.25)
  );
}
.stage .guide .corner {
  stroke: #fff;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  opacity: 0.95;
  animation: cornerpulse 2.4s ease-in-out infinite;
}
@keyframes cornerpulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}
.stage.has-face .guide .corner {
  stroke: var(--brand);
  animation: none;
  opacity: 1;
}
.stage .guide svg > ellipse {
  stroke: rgba(255, 255, 255, 0.85);
}
.stage.scanning .scanline {
  animation: scan 1.7s ease-in-out infinite;
  opacity: 1;
}
.stage.scanning::after {
  content: "Scanningâ¦";
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 4;
  animation: scanpill 1.4s ease-in-out infinite;
}
@keyframes scanpill {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}
.lm circle {
  animation: lmpulse 2.6s ease-in-out infinite;
}
.lm circle:nth-of-type(4n + 1) {
  animation-delay: 0.2s;
}
.lm circle:nth-of-type(4n + 2) {
  animation-delay: 0.6s;
}
.lm circle:nth-of-type(4n + 3) {
  animation-delay: 1s;
}
@keyframes lmpulse {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}
.lm ellipse {
  fill: rgba(245, 197, 154, 0.14) !important;
  stroke: rgba(255, 255, 255, 0.5) !important;
}
.pill {
  background: rgba(28, 26, 34, 0.55);
}
.adjbar {
  background: rgba(28, 26, 34, 0.6);
}
/* lights, analysis, report */
.lcard {
  animation: viewin 0.5s both;
}
.lcard:nth-child(2) {
  animation-delay: 0.08s;
}
.lcard:nth-child(3) {
  animation-delay: 0.16s;
}
.lcard:nth-child(4) {
  animation-delay: 0.24s;
}
.rbar i {
  background: linear-gradient(90deg, var(--brand), var(--violet));
}
.rlog li.now .rd {
  border-color: var(--brand);
}
.rlog li.done .rd {
  background: var(--green);
  border-color: var(--green);
}
.rscan {
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand),
    transparent
  ) !important;
  box-shadow: 0 0 20px var(--brand) !important;
}
.mi.on {
  background: var(--ink);
}
.kpi b {
  color: var(--ink);
}
.legend span i {
  opacity: 0.9;
}

/* ===== tighter, calmer layout ===== */
:root {
  --r: 20px;
}
.view {
  padding: 16px 20px 18px;
}
.card {
  padding: 18px 20px;
}
.k {
  margin-bottom: 10px;
}
.cap {
  gap: 14px;
}
.cap .card {
  padding: 16px 18px;
}
.cap > div:last-child {
  gap: 10px;
}
.pose {
  padding: 10px;
}
.pose .ph {
  height: 92px;
}
.pose b {
  font-size: 13px;
}
.pose small {
  font-size: 11.5px;
}
.pose .st2 {
  font-size: 11px;
}
.quality {
  margin-top: 8px;
}
.q {
  padding: 8px 10px;
}
.cap .ir {
  min-height: 42px;
}
.cap .ctile {
  padding: 8px 4px 7px;
  font-size: 11.5px;
  gap: 4px;
}
.cap .ctile .ci {
  width: 30px;
  height: 30px;
}
.lgrid {
  gap: 12px;
}
.lcard .lh {
  padding: 10px 14px;
}
.rep .card {
  padding: 16px 18px;
}
.rep .radar {
  max-width: 340px;
  margin: 0 auto;
}
/* lights: developing intro */
#v3 {
  position: relative;
}
.ldev {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  grid-gap: 36px;
  gap: 36px;
  padding: 24px 6vw;
  background:
    radial-gradient(900px 600px at 0% 0%, var(--lilac), transparent 55%),
    radial-gradient(900px 600px at 100% 100%, var(--cream), transparent 55%),
    var(--bg);
  transition: opacity 0.45s ease;
}
.ldev.out {
  opacity: 0;
  pointer-events: none;
}
.ldface {
  position: relative;
  justify-self: end;
  height: min(70vh, 560px);
  aspect-ratio: 4/5;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 80px rgba(60, 40, 90, 0.25);
}
.ldface canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}
.ldsweep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  left: -30%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  pointer-events: none;
}
.ldsweep.go {
  animation: ldsweep 0.8s ease-in-out;
}
@keyframes ldsweep {
  from {
    left: -30%;
  }
  to {
    left: 110%;
  }
}
.ldside h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 4px 0 8px;
}
.ldside p {
  color: var(--muted);
  font-size: 15px;
  max-width: 38ch;
}
.lddots {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.lddots i {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  transition: background 0.3s;
}
.lddots i.on {
  background: var(--brand);
}
.ldlab {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.ldlab span {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--faint);
  transition: all 0.3s;
}
.ldlab span.on {
  background: var(--ink);
  color: #fff;
}
@media (max-width: 1100px) {
  .ldev {
    grid-template-columns: 1fr;
  }
  .ldface {
    justify-self: center;
    height: min(44vh, 420px);
  }
}
.pv2 {
  display: grid;
  grid-template-columns: minmax(380px, 520px) 1fr;
  grid-gap: 14px;
  gap: 14px;
  height: auto;
  align-items: start;
}
.pvshop {
  grid-column: 1/-1;
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}
.pvstage .cmpstage {
  height: min(56vh, 540px);
  aspect-ratio: 4/5;
}
.pvstage .simctl {
  margin-top: 12px;
}
.wkchips {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.wkchips .chip {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.wkchips .chip.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.pvside {
  min-height: 0;
  overflow: auto;
  max-height: calc(100vh - 110px);
}
.tlhead {
  display: grid;
  grid-template-columns: 170px 1fr 92px;
  grid-gap: 12px;
  gap: 12px;
  font-size: 11.5px;
  color: var(--faint);
  font-weight: 600;
  padding: 0 0 6px;
}
.tlscale {
  display: flex;
  justify-content: space-between;
}
.tlhead b {
  color: var(--ink);
}
.xtl .row {
  display: grid;
  grid-template-columns: 170px 1fr 92px;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.xtl .nm b {
  display: block;
  font-size: 13.5px;
}
.xtl .nm small {
  display: block;
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 1px;
}
.xtl .track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}
.xtl .seg {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-soft), var(--brand));
}
.xtl .now {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 16px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  border-radius: 2px;
  transition: left 0.25s;
}
.xtl .st {
  font-size: 12.5px;
  font-weight: 700;
  text-align: right;
}
@media (max-width: 1100px) {
  .pv2 {
    grid-template-columns: 1fr;
  }
  .pvside {
    max-height: none;
  }
}
/* marks that each light reveals */
.lcard .im canvas.rev {
  -webkit-clip-path: inset(0 0 100% 0);
          clip-path: inset(0 0 100% 0);
  transition: opacity 0.25s;
}
.lcard .im canvas.rev.go {
  animation: reveal 1.3s ease forwards;
}
@keyframes reveal {
  from {
    -webkit-clip-path: inset(0 0 100% 0);
            clip-path: inset(0 0 100% 0);
  }
  to {
    -webkit-clip-path: inset(0 0 0 0);
            clip-path: inset(0 0 0 0);
  }
}
.fc {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s,
    transform 0.35s;
  pointer-events: none;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc.show {
  opacity: 1;
  transform: none;
}
.fc i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.lfr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mk {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
}
.mk.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.rv {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}
.rv b {
  color: var(--ink);
}
/* welcome tiles and steps */
.wgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 12px;
  gap: 12px;
  width: min(38vw, 540px);
}
.wt {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 24px 60px rgba(60, 40, 90, 0.22);
}
.wt canvas,
.wt img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt canvas.rev {
  -webkit-clip-path: inset(0 0 100% 0);
          clip-path: inset(0 0 100% 0);
}
.wt canvas.rev.go {
  animation: reveal 1.4s ease forwards;
}
.wtl {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.wtl b {
  color: var(--ink);
  margin-right: 6px;
}
.wsteps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}
.wsteps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.wsteps b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.welcome h1 {
  max-width: 12ch;
}
.welcome p {
  max-width: 52ch;
}
.pose .ph img.ex {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45);
  opacity: 0.92;
}
.pose .ph {
  position: relative;
}
.extag {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.pose.done .extag {
  display: none;
}
@media (max-width: 900px) {
  .wgrid {
    width: 100%;
  }
}

/* ===== Apple-style layer: white, hairlines, SF type, segmented controls ===== */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --well: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --violet: #5e5ce6;
  --r: 18px;
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.02), 0 8px 24px rgba(0, 0, 0, 0.06);
  --brand: #0071e3;
  --brand-soft: rgba(0, 113, 227, 0.1);
  --brand-soft2: rgba(0, 113, 227, 0.05);
}
body {
  background:
    radial-gradient(1200px 700px at 50% -20%, #ffffff 0%, transparent 60%),
    var(--bg);
  letter-spacing: -0.01em;
}
h1,
h2,
h3 {
  letter-spacing: -0.022em;
}
.card,
.lcard,
.mlist {
  background: #fff;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow);
}
.k {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--faint);
}
.side {
  background: rgba(245, 245, 247, 0.86);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}
.topbar {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.topbar h1 {
  font-size: 19px;
  font-weight: 600;
}
.topbar .sub {
  color: var(--faint);
}
.st {
  border-radius: 12px;
  padding: 9px 10px;
}
.st:hover {
  background: rgba(0, 0, 0, 0.04);
}
.st.on,
.st.on:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  box-shadow: none;
}
.st.on span {
  color: var(--ink);
}
.st.on small {
  color: var(--muted);
}
.st b {
  background: #fff;
  color: var(--muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}
.st.on b {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}
.st.done b {
  background: #e3f6ea;
  color: #1d8a53;
}
.brand .mark {
  background: var(--ink);
  color: #fff;
}
.brand:hover {
  background: rgba(0, 0, 0, 0.04);
}
.side .client {
  background: #fff;
  box-shadow: var(--shadow);
}
.side .clients,
.side .exit {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.btn {
  height: 36px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 14px;
  border: 0;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}
.btn:hover {
  background: rgba(0, 0, 0, 0.08);
}
.btn.primary {
  background: var(--brand);
  color: #fff;
}
.btn.primary:hover {
  background: var(--brand);
  filter: brightness(1.08);
}
.btn.dark {
  background: var(--ink);
  color: #fff;
}
.btn:disabled {
  opacity: 0.4;
}
.navtog:hover {
  background: rgba(0, 0, 0, 0.05);
}
.stepchip {
  background: rgba(0, 0, 0, 0.05);
}
.ig {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
}
.ir {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.ir > span {
  color: var(--muted);
}
.seg {
  background: rgba(0, 0, 0, 0.05);
}
.seg .chip.on {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.ctile {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--muted);
}
.ctile:hover {
  border-color: rgba(0, 0, 0, 0.18);
}
.ctile.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.ctile.on .ci {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.pose {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.pose.on {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.pose .ph {
  background: #f5f5f7;
}
.pose .st2 {
  background: #f5f5f7;
  color: var(--brand);
}
.kpi,
.q {
  background: #f5f5f7;
}
.stage {
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
.stage .empty {
  background: rgba(0, 0, 0, 0.45);
}
.opt {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.lcard .lh {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.lcard .lf {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.vt {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 9px;
  padding: 2px;
  gap: 0;
}
.vt button {
  height: 26px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
}
.vt button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.mk {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.mk.on {
  background: var(--ink);
  border-color: var(--ink);
}
.wkchips .chip {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.wkchips .chip.on {
  background: var(--ink);
  border-color: var(--ink);
}
.mi.on {
  background: var(--ink);
}
.rbar i {
  background: var(--brand);
}
.rlog li.now .rd {
  border-color: var(--brand);
}
.rscan {
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand),
    #fff,
    var(--brand),
    transparent
  ) !important;
  box-shadow: 0 0 18px var(--brand) !important;
}
.xtl .seg {
  background: linear-gradient(90deg, var(--brand-soft), var(--brand));
}
.xtl .now {
  background: var(--ink);
}
.pill {
  background: rgba(0, 0, 0, 0.55);
}
.adjbar {
  background: rgba(0, 0, 0, 0.6);
}
.cmpbox {
  border-radius: 20px;
}
.modal {
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.toast {
  background: var(--ink);
  color: #fff;
}
/* welcome */
.welcome {
  background:
    radial-gradient(1200px 700px at 50% -10%, #fff 0%, transparent 60%), #f5f5f7;
}
.welcome h1 {
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 13ch;
}
.welcome p {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--muted);
  max-width: 50ch;
}
.welcome .wbrand .mark {
  background: var(--ink);
  color: #fff;
}
.wsteps span {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
}
.wsteps b {
  background: var(--brand);
}
.welcome .big {
  height: 56px;
  padding: 0 30px;
  font-size: 17px;
  background: var(--brand);
  box-shadow: 0 10px 30px var(--brand-soft);
}
.welcome small {
  color: var(--faint);
}
.wt {
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}
.wtl {
  background: rgba(255, 255, 255, 0.9);
}
/* lights intro + preview */
.ldev {
  background:
    radial-gradient(1200px 700px at 50% -10%, #fff 0%, transparent 60%), #f5f5f7;
}
.ldface {
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}
.ldlab span {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.ldlab span.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.lddots i.on {
  background: var(--brand);
}
.pvstage .cmpstage {
  border-radius: 16px;
}
/* brand modal */
.bpreview {
  background: #f5f5f7;
}
.bswatches button.on {
  border-color: var(--ink);
}
/* ===== less text, more picture ===== */
.opt {
  padding: 14px 14px;
}
.opt b {
  font-size: 15px;
}
.opt small {
  display: none;
}
.opt .oi {
  width: 40px;
  height: 40px;
}
.pose small {
  display: none;
}
.pose b {
  margin-top: 8px;
}
.pose .st2 {
  margin-top: 6px;
}
.quality {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.q {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.q b {
  display: inline;
  font-size: 12px;
  font-weight: 600;
}
.q b::after {
  content: " Â·";
}
.lcard .lh small {
  display: none;
}
.lcard .rv {
  display: none;
}
.lcard .lf {
  padding: 8px 10px;
}
.stage .empty h3 {
  font-size: 19px;
}
.xtl .row {
  grid-template-columns: 150px 1fr 80px;
}
.welcome p {
  font-size: clamp(17px, 1.4vw, 21px);
}
.wsteps {
  margin-bottom: 22px;
}
.wsteps span {
  padding-right: 14px;
}
.wsteps b {
  min-width: 26px;
  padding: 0 6px;
  border-radius: 999px;
  width: auto;
  height: 24px;
}
.fine {
  font-size: 11.5px;
  color: var(--faint);
}
/* ===== my routine ===== */
.rt2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-gap: 16px;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}
.rtl,
.rtr {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.hello {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hello h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.hello h2 b {
  font-weight: 700;
}
.hello p {
  color: var(--muted);
  margin-top: 2px;
}
.dr {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f7;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}
.dr .ico {
  width: 18px;
  height: 18px;
  color: var(--brand);
}
.pct {
  width: 90px;
  height: 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.pct i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 0.3s;
}
.days {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.day {
  flex: none;
  width: 74px;
  padding: 14px 0 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--ink);
  transition:
    transform 0.12s,
    background 0.15s;
}
.day:hover {
  transform: translateY(-2px);
}
.day b {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.day small {
  font-size: 12px;
  color: var(--faint);
}
.day.on {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.day.on small {
  color: rgba(255, 255, 255, 0.7);
}
.day.full b::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1d8a53;
  margin-left: 4px;
  vertical-align: middle;
}
.day.on.full b::after {
  background: #7ee0a8;
}
.steps2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 12px;
  gap: 12px;
}
.step2 {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  color: var(--ink);
  transition: transform 0.12s;
}
.step2:hover {
  transform: translateY(-2px);
}
.step2 .tile {
  position: relative;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
}
.step2 .tile svg {
  width: 58%;
  height: 58%;
}
.step2 .chk {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 0.15s;
}
.step2 .chk svg {
  width: 16px;
  height: 16px;
}
.step2.done .chk {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.step2.done .tile {
  opacity: 0.75;
}
.step2 .txt {
  padding: 10px 12px 12px;
}
.step2 .txt b {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}
.step2 .txt small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.step2 .txt em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 6px;
}
.foryou {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.fy {
  flex: none;
  width: 210px;
  border-radius: 18px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  transition: transform 0.12s;
}
.fy:hover {
  transform: translateY(-2px);
}
.fy {
  padding: 0 0 14px;
  overflow: hidden;
}
.fyph {
  display: block;
  height: 120px;
  overflow: hidden;
  position: relative;
}
.fyph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.fy .min {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  background: #fff;
  border-radius: 999px;
  padding: 4px 9px;
  margin: -14px 0 8px 12px;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.fy b,
.fy small {
  padding: 0 14px;
}
.fy .min .ico {
  width: 12px;
  height: 12px;
}
.fy b {
  display: block;
  font-size: 14.5px;
  line-height: 1.3;
}
.fy small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.special {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 4px;
  scrollbar-width: none;
}
.sp {
  flex: none;
  width: 100px;
  position: relative;
}
.sp .tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.sp .tile svg {
  width: 58%;
  height: 58%;
}
.sp .add {
  position: absolute;
  right: -6px;
  top: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.sp .add:hover {
  background: var(--ink);
  color: #fff;
}
.sp small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 7px;
  line-height: 1.25;
}
@media (max-width: 1100px) {
  .rt2 {
    grid-template-columns: 1fr;
  }
  .steps2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pr .prt {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex: none;
}
.pr .prt svg {
  width: 70%;
  height: 70%;
}
/* ===== shop cards in the preview ===== */
.steps2.also {
  grid-template-columns: repeat(4, 1fr);
}
.step2.shop {
  cursor: default;
}
.step2.shop:hover {
  transform: none;
}
.step2 .stepn {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}
.buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.price {
  font-weight: 700;
  font-size: 14px;
}
.bag {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.bag.in {
  background: #e3f6ea;
  color: #1d8a53;
}
.bagl {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bagi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.bagi i {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
}
.bagi i svg {
  width: 70%;
  height: 70%;
}
.bagi div {
  flex: 1 1;
}
.bagi b {
  display: block;
  font-size: 14px;
}
.bagi small {
  color: var(--muted);
  font-size: 12px;
}
.bagi span {
  font-weight: 700;
}
.bagt {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  font-size: 15px;
}
@media (max-width: 1100px) {
  .steps2.also {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ===== start hub ===== */
.welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 5vh 6vw 4vh;
}
.whero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  grid-gap: 40px;
  gap: 40px;
}
.welcome h1 em {
  font-style: normal;
  color: var(--brand);
}
.wcta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.welcome .wghost {
  height: 56px;
  padding: 0 24px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  border-radius: 999px;
}
.welcome .wghost:hover {
  background: rgba(0, 0, 0, 0.09);
}
.wtrust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.wtrust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.wtrust .ico {
  width: 16px;
  height: 16px;
  color: var(--brand);
}
.wportrait {
  position: relative;
  width: min(36vw, 460px);
  aspect-ratio: 4/5;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  margin-left: auto;
}
.wportrait canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wportrait #wpC {
  animation: kb 16s ease-in-out infinite alternate;
}
@keyframes kb {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}
.wportrait canvas.rev {
  -webkit-clip-path: inset(0 0 100% 0);
          clip-path: inset(0 0 100% 0);
}
.wportrait canvas.rev.go {
  animation: reveal 1.3s ease forwards;
}
.wportrait .wport-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
  will-change: opacity, transform;
  animation-duration: 8s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.wportrait .wport-slide:nth-of-type(1) {
  animation-name: wportFadeA;
  z-index: 1;
}
.wportrait .wport-slide:nth-of-type(2) {
  animation-name: wportFadeB;
  z-index: 2;
}
@keyframes wportFadeA {
  0% {
    opacity: 1;
    transform: scale(1.02);
  }
  4% {
    opacity: 1;
    transform: scale(1);
  }
  42% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(1.03);
  }
  100% {
    opacity: 0;
    transform: scale(1.03);
  }
}
@keyframes wportFadeB {
  0% {
    opacity: 0;
    transform: scale(1.03);
  }
  46% {
    opacity: 0;
    transform: scale(1.03);
  }
  54% {
    opacity: 1;
    transform: scale(1);
  }
  92% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}
.wportrait {
  animation: wportraitIn 0.9s ease-out both;
}
@keyframes wportraitIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.wcap-cycle {
  justify-content: flex-start;
}
.wcap-labels {
  display: inline-grid;
  align-items: center;
  justify-items: start;
}
.wcap-cycle .wcap-label {
  grid-area: 1/1;
  opacity: 0;
  white-space: nowrap;
  animation: wcapFade 8s ease-in-out infinite;
}
.wcap-cycle .wcap-label-a {
  animation-name: wcapFadeA;
}
.wcap-cycle .wcap-label-b {
  animation-name: wcapFadeB;
}
@keyframes wcapFadeA {
  0%,
  42% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@keyframes wcapFadeB {
  0%,
  46% {
    opacity: 0;
  }
  54%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.wsweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  top: -20%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  pointer-events: none;
}
.wsweep.go {
  animation: wsweep 1.1s ease-in-out;
}
@keyframes wsweep {
  from {
    top: -20%;
  }
  to {
    top: 110%;
  }
}
.wcap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.wcap i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.wlights {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 12px;
}
.wlights button {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.05);
}
.wlights button.on {
  background: var(--ink);
  color: #fff;
}
.wentries {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.we {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 200px;
  flex: 1 1;
  max-width: 260px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
  text-align: left;
  color: var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.we:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.we .wi {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.we .wi .ico {
  width: 18px;
  height: 18px;
}
.we b {
  font-size: 14.5px;
}
.we small {
  font-size: 12px;
  color: var(--muted);
}
.we[hidden] {
  display: none;
}
.wmode {
  position: absolute;
  left: 18px;
  bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--faint);
}
.wmode:hover {
  color: var(--ink);
}
.welcome .wl > * {
  animation: viewin 0.6s ease both;
}
.welcome .wl > :nth-child(2) {
  animation-delay: 0.08s;
}
.welcome .wl > :nth-child(3) {
  animation-delay: 0.16s;
}
.welcome .wl > :nth-child(4) {
  animation-delay: 0.24s;
}
.welcome .wl > :nth-child(5) {
  animation-delay: 0.32s;
}
.wentries .we {
  animation: viewin 0.6s ease both;
}
.wentries .we:nth-child(2) {
  animation-delay: 0.1s;
}
.wentries .we:nth-child(3) {
  animation-delay: 0.2s;
}
.wentries .we:nth-child(4) {
  animation-delay: 0.3s;
}
.wentries .we:nth-child(5) {
  animation-delay: 0.4s;
}
/* store mode: dark attract */
.welcome.dark {
  background:
    radial-gradient(
      900px 600px at 70% 30%,
      rgba(0, 113, 227, 0.18),
      transparent 60%
    ),
    #000;
  color: #fff;
}
.welcome.dark h1,
.welcome.dark .wbrand,
.welcome.dark .we,
.welcome.dark .we b {
  color: #fff;
}
.welcome.dark p,
.welcome.dark .wbrand em,
.welcome.dark .we small,
.welcome.dark .wtrust span {
  color: rgba(255, 255, 255, 0.65);
}
.welcome.dark .we {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}
.welcome.dark .wghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.welcome.dark .wlights button {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}
.welcome.dark .wlights button.on {
  background: #fff;
  color: #000;
}
.welcome.dark .wportrait {
  box-shadow: 0 30px 90px rgba(0, 113, 227, 0.35);
}
.welcome.dark .wmode {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 1000px) {
  .whero {
    grid-template-columns: 1fr;
  }
  .wportrait {
    margin: 0 auto;
    width: min(70vw, 360px);
  }
  .wlights {
    justify-content: center;
  }
}
/* ===== header navigation, no side column ===== */
.studio {
  grid-template-columns: 1fr !important;
}
.side {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 284px;
  z-index: 31;
  transform: translateX(-102%);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  background: rgba(250, 250, 252, 0.97);
  padding-top: 20px;
}
body.drawer-open .side,
.studio.drawer-open .side {
  transform: none;
}
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
body.drawer-open .scrim,
.studio.drawer-open .scrim {
  opacity: 1;
  pointer-events: auto;
}
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  height: 62px;
  padding: 0 20px;
}
.topbar .tr {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.topbar .ttl,
.stepchip {
  display: none !important;
}
.tbrand {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.tbrand .brand-name {
  font-size: 17px;
}
.segnav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}
.segnav button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s;
}
.segnav button b {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.segnav button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.segnav button.on b {
  background: var(--brand);
  color: #fff;
}
.segnav button.done {
  color: var(--ink);
}
.segnav button.done b {
  background: #e3f6ea;
  color: #1d8a53;
}
#profBtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
}
#profBtn .ico {
  width: 18px;
  height: 18px;
}
@media (max-width: 1180px) {
  .segnav button {
    padding: 0 10px 0 8px;
    font-size: 12.5px;
  }
}
@media (max-width: 900px) {
  .segnav button:not(.on) {
    font-size: 0;
    padding: 0 6px;
    gap: 0;
  }
  .segnav button:not(.on) b {
    margin: 0;
  }
}
@media print {
  .segnav,
  .scrim,
  #profBtn {
    display: none !important;
  }
}
/* ===== landscape capture stage ===== */
.cap {
  grid-template-columns: 1.25fr 0.75fr;
  align-items: start;
}
.stage {
  aspect-ratio: 3/4;
  max-width: 480px;
  max-height: calc(100vh - 150px);
  background: radial-gradient(900px 500px at 50% 0%, #2a2437, #0e0c13);
}
.stage .hud {
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  gap: 8px;
}
.pill {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 600;
  height: 30px;
  padding: 0 12px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.pill i {
  background: #1d8a53;
}
.stage .guide svg > ellipse {
  transform-origin: 200px 250px;
}
.stmax {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.stmax .ico {
  width: 15px;
  height: 15px;
}
.stmax[hidden] {
  display: none;
}
.ghint {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  z-index: 4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.ghint i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  flex: none;
}
.ghint b {
  display: block;
  font-size: 13px;
}
.ghint span {
  font-size: 12px;
  color: var(--muted);
}
.ghint[hidden] {
  display: none;
}
.adjbar {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.adjbar .ab {
  background: transparent;
  color: var(--ink);
}
.adjbar .ab.on {
  background: var(--ink);
  color: #fff;
}
.adjbar .zoomrow {
  color: var(--ink);
}
.hint {
  bottom: 66px;
}
.shutter {
  bottom: 74px;
  background: var(--brand);
  border-color: rgba(255, 255, 255, 0.7);
}
.stage .empty {
  background: transparent;
}
.stage .empty h3 {
  font-size: 20px;
  margin-bottom: 14px;
}
.stage .empty .opts {
  flex-direction: row;
  width: auto;
  gap: 12px;
}
.opt {
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 172px;
  padding: 18px 12px 16px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.opt .oi {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.opt b {
  font-size: 14px;
}
@media (max-width: 1100px) {
  .stage .empty .opts {
    flex-direction: column;
  }
  .opt {
    width: min(320px, 100%);
    flex-direction: row;
    text-align: left;
  }
}
.lm text {
  font-size: 6.2px;
}
.stage:has(#stageEmpty:not([style*="none"])) .guide {
  opacity: 0.35;
}
/* ===== capture page alignment ===== */
.cq {
  padding: 16px 18px;
}
.cqh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.cqh b {
  font-size: 15px;
}
.cqh span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--faint);
}
.cqh span.ok {
  color: #1d8a53;
}
.cqh span.mid {
  color: #b8860b;
}
.cqh span.warn {
  color: #d7263d;
}
.quality {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.q {
  display: grid;
  grid-template-columns: 18px 118px 1fr 44px;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
}
.q .ico {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.q b {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.q b::after {
  content: none;
}
.qb {
  height: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.qb i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: #1d8a53;
  transition: width 0.4s;
}
.q.mid .qb i {
  background: #d9a21b;
}
.q.warn .qb i {
  background: #d7263d;
}
.q em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}
.cap .ig {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cap .ir {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 96px 1fr;
}
.cap .ir:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.cap .ir:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.cap .ctile {
  padding: 7px 4px 6px;
  font-size: 11px;
}
.cap .ctile .ci {
  width: 26px;
  height: 26px;
}
.cap .card {
  padding: 14px 16px;
}
.cap > div:last-child {
  gap: 12px;
}
.cap {
  align-items: stretch;
}
.cap > div:last-child {
  display: flex;
  flex-direction: column;
}
.cq {
  margin-top: auto;
}
.q.ok b,
.q.mid b,
.q.warn b {
  color: var(--ink);
}
.cap {
  height: auto;
  align-items: start;
}
.cap > div:last-child {
  overflow: auto;
  scrollbar-width: none;
}
.cap .ctile {
  padding: 6px 4px 5px;
}
.cap .ctile .ci {
  width: 24px;
  height: 24px;
}
/* ===== light cards like the reference ===== */
.lcard .im::before {
  content: none;
}
.lpill {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.lpill .ico {
  width: 15px;
  height: 15px;
}
.lpill b {
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lmax {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.lmax .ico {
  width: 14px;
  height: 14px;
}
.lcard .lh {
  display: none;
}
.lcard .im {
  border-radius: var(--r) var(--r) 0 0;
}
/* ===== analysis v2 ===== */
.muted {
  color: var(--faint);
  font-weight: 500;
  font-style: normal;
  font-size: 12px;
}
.an2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
}
.an2top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 0.9fr 1.4fr;
  grid-gap: 12px;
  gap: 12px;
}
.sc {
  padding: 14px 16px;
}
.sth {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 10px;
}
.si {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e6f0fb;
  color: #0071e3;
  display: grid;
  place-items: center;
}
.si .ico {
  width: 14px;
  height: 14px;
}
.si.red {
  background: #fde9ec;
  color: #d7263d;
}
.si.green {
  background: #e3f6ea;
  color: #1d8a53;
}
.si.blue {
  background: #e6f0fb;
  color: #0071e3;
}
.stb {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stb.col {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.stv {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sts {
  font-size: 12.5px;
  color: var(--muted);
}
.std {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}
.std.up {
  color: #1d8a53;
}
.std.down {
  color: #d7263d;
}
.std span {
  color: var(--faint);
  font-weight: 500;
}
.ring2 {
  position: relative;
  width: 84px;
  height: 84px;
  flex: none;
}
.ring2 svg {
  width: 100%;
  height: 100%;
}
.ring2 b {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-58%);
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.ring2 small {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(12px);
  text-align: center;
  font-size: 10px;
  color: var(--faint);
}
.big {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.big small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.mi2 {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5f5f7;
  color: var(--ink);
  flex: none;
}
.mi2 .ico {
  width: 20px;
  height: 20px;
}
.mi2.red {
  background: #fde9ec;
  color: #d7263d;
}
.mi2.green {
  background: #e3f6ea;
  color: #1d8a53;
}
.mi2.amber {
  background: #fff6dd;
  color: #b8860b;
}
.dist {
  position: relative;
  height: 56px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
}
.bars i {
  flex: 1 1;
  background: #dfe7f5;
  border-radius: 3px 3px 0 0;
}
.better {
  position: absolute;
  right: 0;
  top: -6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.15;
  box-shadow: var(--shadow);
}
.better b {
  font-size: 13px;
  color: var(--ink);
}
.an2grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  grid-gap: 14px;
  gap: 14px;
  align-items: start;
}
.fzwrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.fzwrap canvas {
  width: 100%;
  display: block;
}
.fzlabels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fzlabels span {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.fzlabels span.l {
  transform: translate(-110%, -50%);
}
.fzlabels span.r {
  transform: translate(10%, -50%);
}
.legend2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}
.legend2 i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 8px;
}
.mcols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0 14px;
  gap: 0 14px;
}
.mr {
  display: grid;
  grid-template-columns: 18px 1fr 54px 30px 14px;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  width: 100%;
  padding: 8px 6px;
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}
.mr .ico {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.mr .nm {
  font-weight: 500;
}
.mr .bar {
  height: 5px;
  border-radius: 5px;
  background: #ececf0;
  overflow: hidden;
}
.mr .bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
}
.mr b {
  font-size: 12.5px;
  text-align: right;
}
.mr .chev {
  color: var(--faint);
  width: 12px;
  height: 12px;
}
.mr.on {
  background: #f5f5f7;
}
.mr:hover {
  background: #f5f5f7;
}
.an2side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ins {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
}
.in.red {
  background: #fdf1f3;
}
.in.amber {
  background: #fff8e6;
}
.in.green {
  background: #edf8f1;
}
.in .n,
.nx .n {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 10.5px;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.in small {
  display: block;
  font-size: 11px;
  font-weight: 700;
}
.in.red small {
  color: #d7263d;
}
.in.amber small {
  color: #b8860b;
}
.in.green small {
  color: #1d8a53;
}
.in > div {
  flex: 1 1;
  min-width: 0;
}
.in > div > b {
  display: block;
  font-size: 14px;
}
.in p,
.nx p {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
}
.in .chev,
.nx .chev {
  width: 12px;
  height: 12px;
  color: var(--faint);
}
.nxt {
  display: flex;
  flex-direction: column;
}
.nx {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
}
.nx:first-child {
  border-top: 0;
}
.nx .mi2 {
  width: 36px;
  height: 36px;
}
.nx .mi2 .ico {
  width: 16px;
  height: 16px;
}
.nx > div {
  flex: 1 1;
}
.nx > div > b {
  display: block;
  font-size: 13.5px;
}
@media (max-width: 1250px) {
  .an2top {
    grid-template-columns: repeat(3, 1fr);
  }
  .an2grid {
    grid-template-columns: 1fr 1fr;
  }
  .an2side {
    grid-column: 1/-1;
  }
}
/* ===== preview v2 ===== */
.pv2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-gap: 14px;
  gap: 14px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.pv3l,
.pv3r {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.pvstage3 {
  padding: 12px;
}
.pvstage3 .cmpstage {
  height: auto;
  aspect-ratio: 4/3;
  border-radius: 14px;
  max-width: none;
}
.cmpl.big {
  height: 34px;
  padding: 0 14px;
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
}
.wkthumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 10px;
  gap: 10px;
  margin-top: 12px;
}
.wkt {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f5f5f7;
  padding: 4px 4px 6px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.15s;
}
.wkt canvas {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin-bottom: 5px;
}
.wkt.on {
  border-color: #0071e3;
  color: var(--ink);
}
.wkleg {
  display: inline-flex;
  gap: 10px;
  font-size: 11px;
  color: var(--faint);
  font-weight: 500;
}
.wkleg i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d1d6;
  margin-right: 4px;
  display: inline-block;
}
.wkleg i.on {
  background: #0071e3;
}
.prog2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pr2 {
  display: grid;
  grid-template-columns: 18px 110px 1fr 52px;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
}
.pr2 .ico {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.pr2 .nm {
  font-weight: 500;
}
.tl3 {
  position: relative;
  height: 8px;
  border-radius: 8px;
  background: #eef1f6;
}
.tl3 > b {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 8px;
  background: #9fc4ee;
}
.tl3 i {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d1d6;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.tl3 i.on {
  background: #0071e3;
}
.pr2 .pc2 {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
}
.rt3 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 8px;
  gap: 8px;
}
.rp {
  position: relative;
  background: #f7f7f9;
  border-radius: 14px;
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.rp .stp {
  font-size: 10px;
  font-weight: 700;
  color: var(--faint);
  background: #fff;
  border-radius: 999px;
  padding: 2px 8px;
}
.rp .pt {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.rp .pt svg {
  width: 60%;
  height: 60%;
}
.rp b {
  font-size: 12px;
  line-height: 1.2;
}
.rp small {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.25;
}
.rp em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--faint);
}
.rp .bag {
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
  margin-top: 2px;
}
.chg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 8px;
  gap: 8px;
}
.cg {
  background: #f7f7f9;
  border-radius: 14px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cg .ico {
  width: 16px;
  height: 16px;
  color: #0071e3;
}
.cg small {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.cg b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0071e3;
}
.cg span {
  font-size: 10.5px;
  color: var(--faint);
  line-height: 1.25;
}
@media (max-width: 1100px) {
  .pv2 {
    grid-template-columns: 1fr;
  }
  .rt3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .chg {
    grid-template-columns: 1fr 1fr;
  }
}
/* ===== report v2 ===== */
.rep3 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
}
.rp3top {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.3fr 0.8fr 0.9fr;
  grid-gap: 18px;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.rpid {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rpid canvas {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
  flex: none;
}
.rpname {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rpname b {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.rpmeta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.rpmeta b {
  color: var(--ink);
  font-weight: 600;
  margin-left: 6px;
}
.rpdate {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.rpdate .ico {
  width: 18px;
  height: 18px;
}
.rpdate b {
  display: block;
  color: var(--ink);
}
.rpdate b span {
  color: var(--muted);
  font-weight: 500;
}
.rpscore {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.rpscore p {
  font-size: 12px;
  color: var(--muted);
  max-width: 18ch;
}
.rpscore b {
  font-size: 14px;
}
.rpage {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.rpage small {
  font-size: 12px;
  color: var(--muted);
}
.rpage p {
  font-size: 11.5px;
  margin-top: 4px;
  line-height: 1.3;
}
.rpage p.good {
  color: #1d8a53;
}
.rpage p.warn {
  color: #d7263d;
}
.rptop {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rptop small {
  font-size: 12px;
  color: var(--muted);
}
.rptop div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.n.red {
  background: #fde9ec;
  color: #d7263d;
}
.n.amber {
  background: #fff6dd;
  color: #b8860b;
}
.n.blue {
  background: #e6f0fb;
  color: #0071e3;
}
.rptop .n {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.rp3mid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr;
  grid-gap: 14px;
  gap: 14px;
}
.finds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 8px;
  gap: 8px;
}
.fd {
  background: #f7f7f9;
  border-radius: 14px;
  padding: 6px 8px 10px;
}
.fd canvas {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 6px;
}
.fdh {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.fdh .ico {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.sev {
  display: block;
  font-size: 12.5px;
  margin-top: 4px;
}
.sev.warn {
  color: #d7263d;
}
.sev.mid {
  color: #b8860b;
}
.sev.good {
  color: #1d8a53;
}
.fd p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 3px;
}
.radar3 {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  display: block;
}
.rpv {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.rpvh b {
  display: block;
  font-size: 14px;
}
.rpvh small {
  color: var(--faint);
  font-size: 11px;
}
.rpvb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.rpvb canvas {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}
.rpvn {
  font-weight: 700;
  font-size: 13px;
}
.rpvb small {
  color: var(--muted);
  font-size: 11px;
}
.rpvs {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.rpvs b {
  font-size: 18px;
  margin-right: 4px;
}
.rpvt {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
}
.rpvt span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  font-size: 11px;
  background: #f5f5f7;
  border-radius: 10px;
  padding: 5px 8px;
  font-weight: 600;
}
.rpvt b {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  display: grid;
  place-items: center;
}
.rpvf {
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.rp3bot {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-gap: 14px;
  gap: 14px;
}
.seg3 {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 2px;
}
.seg3 button {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.seg3 button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.treat3 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tr3 {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f7f7f9;
  border-radius: 14px;
  padding: 8px;
}
.trimg {
  width: 96px;
  height: 72px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: rgba(0, 0, 0, 0.35);
  flex: none;
}
.trimg .ico {
  width: 26px;
  height: 26px;
}
.tr3 b {
  font-size: 13.5px;
}
.tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 4px 0;
}
.tags span {
  font-size: 10.5px;
  background: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--muted);
}
.tr3 p {
  font-size: 11.5px;
  color: var(--muted);
}
@media (max-width: 1250px) {
  .rp3top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .rpdate,
  .rpscore,
  .rpage,
  .rptop {
    border-left: 0;
    padding-left: 0;
  }
  .rp3mid {
    grid-template-columns: 1fr 1fr;
  }
  .rp3bot {
    grid-template-columns: 1fr;
  }
}
.topbar .btn {
  white-space: nowrap;
  padding: 0 13px;
}
.tr .btn.primary {
  padding: 0 14px;
}
.sth {
  white-space: nowrap;
}
.an2top {
  grid-template-columns: 1.15fr 0.8fr 1fr 1fr 1.45fr;
}
.sts {
  font-size: 12px;
}
.pv3r .card {
  min-width: 0;
  overflow: hidden;
}
.wkleg {
  font-size: 10.5px;
  gap: 8px;
}
.pr2 {
  grid-template-columns: 18px 96px 1fr 46px;
}
/* ===== alignment pass ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 20px;
}
.segnav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.acts {
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn.icon {
  width: 36px;
  padding: 0;
  justify-content: center;
}
@media (max-width: 1380px) {
  .segnav button {
    padding: 0 9px 0 7px;
    font-size: 12.5px;
    gap: 5px;
  }
}
@media (max-width: 1180px) {
  .segnav button:not(.on) {
    font-size: 0;
    padding: 0 5px;
    gap: 0;
  }
}
.welcome .wcta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wentries {
  justify-content: flex-start;
}
@media (max-width: 1500px) {
  .cap .ctiles {
    grid-template-columns: repeat(5, 1fr);
  }
  .cap .ctile {
    font-size: 10.5px;
    padding: 6px 3px 5px;
  }
  .cap .ctile .ci {
    width: 22px;
    height: 22px;
  }
}
.lcard .im {
  aspect-ratio: 1/1;
}
.lgrid {
  max-width: 1360px;
}
.pv2 {
  align-items: stretch;
}
.pv3l {
  display: flex;
}
.pvstage3 {
  display: flex;
  flex-direction: column;
  flex: 1 1;
}
.pvstage3 .cmpstage {
  flex: 1 1;
  aspect-ratio: auto;
  min-height: 340px;
}
.pvcmp canvas {
  object-fit: cover;
}
.wkt canvas {
  aspect-ratio: 4/3;
  object-fit: cover;
}
.an2grid {
  align-items: stretch;
}
.rp3mid {
  align-items: stretch;
}
.rp3bot {
  align-items: stretch;
}
.pose .st2 {
  white-space: nowrap;
  font-size: 10.5px;
}
.cap .card {
  padding: 12px 14px;
}
.cap .ir {
  min-height: 38px;
}
.cq {
  padding: 10px 14px;
}
.quality {
  gap: 5px;
}
.cap .ctile {
  padding: 5px 3px 4px;
}
@media (max-width: 1500px) {
  .pose .ph {
    height: 72px;
  }
  .pose {
    padding: 8px;
  }
  .cap .k {
    margin-bottom: 8px;
  }
}
@media (max-width: 1400px) {
  .pose .ph {
    height: 62px;
  }
  .cap .ctile {
    padding: 4px 3px 3px;
  }
  .cap .ir {
    min-height: 36px;
  }
}
.welcome {
  align-items: center;
}
.whero {
  width: 100%;
}
.wentries {
  justify-content: center;
}
/* ===== fit every step to the screen ===== */
.view {
  overflow: hidden;
  padding: 16px 20px;
}
.view.on {
  display: flex;
  flex-direction: column;
}
.view.on > * {
  flex: 1 1;
  min-height: 0;
}
#repPrint {
  flex: 0 0;
  display: none;
}
.cap {
  height: 100%;
  align-content: center;
  align-items: start;
}
.cap > div:last-child {
  overflow: auto;
  scrollbar-width: none;
}
.lgrid {
  height: 100%;
  max-width: none;
  grid-template-rows: minmax(0, 1fr);
}
.lcard {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.lcard .im {
  flex: 1 1;
  min-height: 0;
  aspect-ratio: auto;
}
.lcard .im canvas {
  object-fit: cover;
}
.lcard .lf {
  flex: none;
}
.an2 {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
  max-width: none;
}
.an2top {
  gap: 10px;
}
.sc {
  padding: 12px 14px;
}
.ring2 {
  width: 76px;
  height: 76px;
}
.ring2 b {
  font-size: 26px;
}
.big {
  font-size: 36px;
}
.dist {
  height: 48px;
}
.an2grid {
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
}
.an2grid > .card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  overflow: hidden;
}
.fzwrap {
  flex: 1 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.fzin {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.fzin canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.mcols {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  align-content: start;
}
.mr {
  grid-template-columns: 16px 1fr 44px 28px 12px;
  gap: 7px;
  padding: 5px 5px;
  font-size: 12px;
}
.mr .nm {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr .bar {
  height: 4px;
}
.mr b {
  font-size: 12px;
}
.an2side {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
}
.an2side .card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  overflow: hidden;
}
.ins {
  flex: 1 1;
  min-height: 0;
  justify-content: space-around;
}
.in {
  padding: 8px 10px;
}
.in p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nxt {
  flex: 1 1;
  min-height: 0;
  justify-content: space-around;
}
.nx {
  padding: 6px 2px;
}
.nx p {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nx .mi2 {
  width: 32px;
  height: 32px;
}
.pv2 {
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
  max-width: none;
}
.pv3l,
.pv3r {
  min-height: 0;
}
.pv3r {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
}
.pv3r > .card {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
}
.pv3r .rt3 {
  flex: 1 1;
  min-height: 0;
  align-items: start;
}
.pv3r .rp {
  min-height: 0;
}
.pv3r .rp .pt {
  max-height: 110px;
  width: auto;
  aspect-ratio: 1;
  margin: 0 auto;
}
.pvstage3 {
  padding: 10px;
  min-height: 0;
}
.pvstage3 .cmpstage {
  min-height: 0;
}
.wkthumbs {
  margin-top: 10px;
}
.wkt {
  padding: 3px 3px 4px;
  font-size: 11px;
}
.chg {
  gap: 6px;
}
.cg {
  padding: 9px 10px 8px;
}
.cg b {
  font-size: 19px;
}
.prog2 {
  gap: 2px;
}
.pr2 {
  padding: 3px 0;
  font-size: 12.5px;
}
.rep3 {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  max-width: none;
}
.rp3top {
  padding: 12px 18px;
  gap: 14px;
}
.rpid canvas {
  width: 96px;
  height: 96px;
}
.rp3mid {
  min-height: 0;
  gap: 12px;
}
.rp3mid > .card {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
}
.finds {
  flex: 1 1;
  min-height: 0;
  align-items: start;
}
.fd canvas {
  aspect-ratio: 3/2;
  object-fit: cover;
}
.fd p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.radar3 {
  flex: 1 1;
  min-height: 0;
  max-width: none;
  width: auto;
  height: 100%;
  max-height: 260px;
  margin: 0 auto;
}
.rpv {
  flex: 1 1;
  min-height: 0;
  overflow: hidden;
}
.rp3bot {
  gap: 12px;
}
.rp3bot > .card {
  padding: 12px 14px;
}
.rt3b .rp .pt {
  max-height: 100px;
  width: auto;
  aspect-ratio: 1;
  margin: 0 auto;
}
.rt3b {
  grid-template-columns: repeat(5, 1fr);
}
.rt3b .rp b {
  font-size: 11.5px;
}
.tr3 {
  padding: 6px;
}
.trimg {
  width: 80px;
  height: 60px;
}
.treat3 {
  gap: 8px;
}
@media (max-width: 1250px) {
  .an2 {
    overflow: auto;
  }
  .pv2 {
    overflow: auto;
  }
  .rep3 {
    overflow: auto;
  }
}
.pvstage3 .cmpstage {
  width: 100%;
  margin: 0;
}
.mcols > div {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
}
.cap > div:last-child {
  justify-content: space-between;
}
@media (min-width: 1700px) {
  .pose .ph {
    height: 130px;
  }
  .cap .ctile {
    padding: 12px 4px 10px;
    font-size: 12px;
  }
  .cap .ctile .ci {
    width: 30px;
    height: 30px;
  }
  .cap .ir {
    min-height: 46px;
  }
  .cq {
    padding: 14px 16px;
  }
  .quality {
    gap: 10px;
  }
  .cap .card {
    padding: 16px 18px;
  }
}
.pv3r .rt3 {
  align-items: center;
}
.pv3r .rp .pt {
  max-height: 150px;
}
.finds {
  align-items: stretch;
}
.fd {
  display: flex;
  flex-direction: column;
}
.rp3mid .radar3 {
  max-height: none;
}
/* ===== reference details ===== */
.phead {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none !important;
  min-height: 0;
}
.phead h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.phead p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 1px;
}
.stepchip2 {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e6f0fb;
  color: #0071e3;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.an2 {
  grid-template-rows: auto auto minmax(0, 1fr);
}
.pv2 {
  grid-template-rows: auto minmax(0, 1fr);
}
.pv2 .phead {
  grid-column: 1/-1;
}
.rep3 {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.dist .mark {
  position: absolute;
  bottom: -2px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #0071e3;
  transform: translateX(-50%);
}
.sc {
  position: relative;
  overflow: hidden;
}
.sc::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: linear-gradient(180deg, transparent, var(--brand-soft2));
  pointer-events: none;
}
.sc.wide::after {
  background: none;
}
.fzlabels .ld {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.fzlabels i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}
.fzlabels span {
  padding: 5px 10px;
  font-size: 11.5px;
}
.mcols > div {
  background: #f7f7f9;
  border-radius: 12px;
  padding: 4px 6px;
}
.mr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.mr:last-child {
  border-bottom: 0;
}
.mr .ico {
  color: var(--ink);
  opacity: 0.7;
}
.cmpline i {
  width: 36px;
  height: 36px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: grid;
  place-items: center;
  letter-spacing: -1px;
}
.wkthumbs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wkthumbs .wkt {
  flex: 1 1;
}
.wchev,
.pchev {
  color: var(--faint);
  font-size: 18px;
  font-weight: 700;
  flex: none;
  line-height: 1;
}
.rtc {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rtc .rp {
  flex: 1 1;
  min-width: 0;
}
.rt3b {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rt3b .rp {
  flex: 1 1;
  min-width: 0;
}
.rpvg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 10px;
}
.rpvk {
  background: #f5f5f7;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rpvk small {
  font-size: 10px;
  color: var(--muted);
}
.ring2.mini {
  width: 48px;
  height: 48px;
}
.ring2.mini b {
  font-size: 15px;
  transform: translateY(-50%);
}
.rpva {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.rpva em {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 3px;
}
.rpvk span {
  font-size: 10px;
  color: #1d8a53;
}
.rpvt {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.rpvt small {
  font-size: 10px;
  color: var(--muted);
}
.rpvt span {
  justify-content: flex-start;
}
.rpvt canvas {
  margin-left: auto;
  width: 36px;
  height: 27px;
  border-radius: 5px;
  object-fit: cover;
}
.rpvf {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rpvf b {
  color: var(--ink);
}
.rpvf span {
  font-style: italic;
}
.trimg {
  overflow: hidden;
  border-radius: 10px;
}
.trimg canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rpv {
  padding: 10px;
}
.rpvb {
  margin-top: 8px;
}
.rpvb canvas {
  width: 52px;
  height: 52px;
}
.rpvg {
  margin-top: 8px;
  gap: 6px;
}
.rpvk {
  padding: 6px 8px;
}
.ring2.mini {
  width: 40px;
  height: 40px;
}
.ring2.mini b {
  font-size: 13px;
}
.rpva {
  font-size: 17px;
}
.rpvt {
  gap: 4px;
  margin-top: 8px;
}
.rpvt span {
  padding: 2px 6px;
}
.rpvt canvas {
  width: 30px;
  height: 22px;
}
.rpvf {
  margin-top: 8px;
  padding-top: 6px;
}
.rpvh b {
  font-size: 13px;
}
.rpvh small {
  font-size: 10px;
}
.rpvb {
  margin-top: 6px;
}
.rpvb canvas {
  width: 44px;
  height: 44px;
}
.rpvn {
  font-size: 12px;
}
.rpvs {
  margin-top: 2px;
}
.rpvs b {
  font-size: 15px;
}
.rpvg {
  margin-top: 6px;
}
.rpvk {
  padding: 4px 8px;
}
.rpvk small {
  font-size: 9.5px;
}
.ring2.mini {
  width: 34px;
  height: 34px;
}
.ring2.mini b {
  font-size: 12px;
}
.rpva {
  font-size: 15px;
}
.rpvt {
  margin-top: 6px;
  gap: 3px;
}
.rpvt span {
  font-size: 10px;
}
.rpvf {
  margin-top: 6px;
  padding-top: 5px;
  font-size: 10px;
}
.stage {
  max-height: none;
  aspect-ratio: auto;
}
/* ===== light hotspots ===== */
.hsl {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.hsl.show {
  opacity: 1;
}
.hs {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.15s,
    background 0.15s;
  cursor: pointer;
  pointer-events: auto;
}
.hs i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}
.hs:hover {
  transform: translate(-50%, -50%) scale(1.12);
}
.hs.on {
  background: var(--c);
  border-color: #fff;
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--c) 35%, transparent),
    0 0 18px var(--c);
  animation: hspulse 1.8s ease-in-out infinite;
}
@keyframes hspulse {
  0%,
  100% {
    box-shadow:
      0 0 0 6px color-mix(in srgb, var(--c) 35%, transparent),
      0 0 18px var(--c);
  }
  50% {
    box-shadow:
      0 0 0 10px color-mix(in srgb, var(--c) 18%, transparent),
      0 0 26px var(--c);
  }
}
.hs[hidden] {
  display: none;
}
.hstip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
  transition:
    left 0.2s,
    top 0.2s;
}
.hstip[hidden] {
  display: none;
}
.hstip canvas {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.hstip b {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.hstip small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.lcard .im .hstip canvas {
  position: static;
  inset: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}
/* ===== capture: details button, stage notices ===== */
.dcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dsum {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.dsum b {
  color: var(--ink);
}
.dcard .btn {
  align-self: flex-start;
  background: var(--ink);
  color: #fff;
}
#detailsBody .ig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
}
#detailsBody .ir {
  min-height: 44px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 96px 1fr;
}
#detailsBody .ir:nth-child(odd) {
  border-right: 1px solid var(--line);
}
#detailsBody .ir:nth-last-child(-n + 2) {
  border-bottom: 0;
}
#detailsBody .ctiles {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
#detailsBody .ctile {
  padding: 10px 4px 8px;
  font-size: 11.5px;
}
.snote {
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: rgba(20, 20, 22, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  animation: viewin 0.3s ease;
}
.snote[hidden] {
  display: none;
}
.snote .sni {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: #1d8a53;
}
.snote.warn .sni {
  background: #d9a21b;
}
.snote.bad .sni {
  background: #d7263d;
}
.snote .sni .ico {
  width: 16px;
  height: 16px;
  color: #fff;
}
.snote b {
  display: block;
  font-size: 13.5px;
}
.snote small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}
.stage.nb .guide svg > ellipse {
  stroke: #ffb020;
  animation: breathe 1.2s ease-in-out infinite;
}
.stage.nb .guide .corner {
  stroke: #ffb020;
}
.ghint {
  display: none !important;
}
/* ===== analysis: products ===== */
.aprod {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 4px;
}
.ap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.ap:first-child {
  border-top: 0;
}
.ap .pt {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
}
.ap .pt svg {
  width: 70%;
  height: 70%;
}
.apt {
  flex: 1 1;
  min-width: 0;
}
.apt b {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.apt small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.apt .buy {
  margin-top: 4px;
}
.apt .bag {
  height: 26px;
  padding: 0 10px;
  font-size: 11.5px;
}
.apt .price {
  font-size: 13px;
}
.an2side {
  grid-template-rows: minmax(0, 1fr) minmax(0, 1.25fr);
}
.pv3r .nxt {
  flex: 1 1;
  min-height: 0;
  justify-content: space-around;
}
.pv3r .nx {
  cursor: pointer;
}
.an2side {
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 1.2fr);
}
.in p {
  -webkit-line-clamp: 1;
}
.in {
  padding: 7px 10px;
}
.cap > div:last-child {
  justify-content: flex-start;
}
@media (max-height: 820px) {
  .in p {
    display: none;
  }
  .in {
    padding: 5px 10px;
  }
  .in .mi2 {
    width: 32px;
    height: 32px;
  }
  .in .mi2 .ico {
    width: 15px;
    height: 15px;
  }
  .ins {
    gap: 5px;
  }
  .in > div > b {
    font-size: 13px;
  }
  .ap {
    padding: 4px 0;
  }
  .ap .pt {
    width: 44px;
    height: 44px;
  }
  .sc {
    padding: 10px 12px;
  }
  .ring2 {
    width: 64px;
    height: 64px;
  }
  .ring2 b {
    font-size: 22px;
  }
  .big {
    font-size: 30px;
  }
}
.ap {
  padding: 5px 0;
  gap: 10px;
}
.ap .pt {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.apb {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex: none;
}
.apb .price {
  font-size: 12.5px;
}
.apb .bag {
  height: 24px;
  padding: 0 10px;
  font-size: 11px;
}
.apt small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-height: 880px) {
  .ap:nth-child(n + 4) {
    display: none;
  }
}
@media (max-height: 820px) {
  .ap {
    padding: 3px 0;
  }
  .ap .pt {
    width: 40px;
    height: 40px;
  }
  .apt small {
    font-size: 11px;
  }
  .apb .bag {
    height: 22px;
  }
}
@media (max-height: 700px) {
  .ap:nth-child(n + 3) {
    display: none;
  }
  .in small {
    display: none;
  }
  .in {
    padding: 4px 10px;
  }
}
/* ===== portrait guide photos ===== */
.pose .ph {
  height: auto !important;
  aspect-ratio: 3/4;
  border-radius: 12px;
}
.poses {
  gap: 8px;
}
.pose {
  padding: 8px 6px 10px;
}
/* Face-centered crop — 18% was pinning to hairline on mobile wide thumbnails */
.pose .ph img {
  object-fit: cover;
  object-position: center 32%;
}
.poses.poses-front-only {
  max-width: 260px;
  width: 100%;
  margin: 0 auto;
}
.poses.poses-front-only .pose .ph {
  height: auto !important;
  aspect-ratio: 3/4;
  max-height: 280px;
  width: 100%;
}
.poses.poses-front-only .pose .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
/* ===== overlays fade after the scan ===== */
.stage .guide,
.stage .lm,
.stage .scanline {
  transition: opacity 0.7s ease;
}
.stage.calm .guide,
.stage.calm .lm,
.stage.calm .scanline {
  opacity: 0;
  pointer-events: none;
}
/* ===== product showcase ===== */
.ps {
  display: flex;
  flex-direction: column;
}
.ps-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ptabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}
.ptabs button {
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ptabs button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.pgrid {
  flex: 1 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  overflow: auto;
  scrollbar-width: none;
}
.pc {
  display: flex;
  flex-direction: column;
  background: #f7f7f9;
  border-radius: 16px;
  overflow: hidden;
  min-height: 0;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.pc.picked {
  border-color: var(--ink);
}
.pc .pt {
  position: relative;
  flex: 1 1;
  min-height: 96px;
  display: grid;
  place-items: center;
}
.pc .pt svg {
  height: 78%;
  max-height: 150px;
  width: auto;
}
.pc .why {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
}
.pcb {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pcb b {
  font-size: 13.5px;
  line-height: 1.2;
}
.pcb small {
  font-size: 11.5px;
  color: var(--muted);
}
.pcb p {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcb .buy {
  margin-top: 4px;
}
.pcb .bag {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
}
.pc.picked .bag {
  background: #e3f6ea;
  color: #1d8a53;
}
.lookbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f0f0f3;
}
.lookbar[hidden] {
  display: none;
}
.lb-open {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 0 6px;
}
.lb-sp {
  flex: 1 1;
}
.lookbar .btn {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
}
.lkl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 50vh;
  overflow: auto;
}
.lk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #f5f5f7;
}
.lk i {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
}
.lk i svg {
  width: 70%;
  height: 70%;
}
.lk > div {
  flex: 1 1;
  min-width: 0;
}
.lk b {
  display: block;
  font-size: 14px;
}
.lk small {
  color: var(--muted);
  font-size: 12px;
}
.lk .btn {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
}
.lk .x {
  width: 30px;
  height: 30px;
}
.ml {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ml .mcols {
  flex: 1 1;
  min-height: 0;
}
.an2side {
  grid-template-rows: minmax(0, 0.9fr) minmax(0, 1.5fr);
}
@media (max-height: 820px) {
  .pc .pt {
    min-height: 70px;
  }
  .pcb p {
    -webkit-line-clamp: 1;
  }
}
/* ===== analysis v3 ===== */
.an3 {
  grid-template-rows: auto auto minmax(0, 1fr) !important;
}
.hchips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.hchips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 12.5px;
  color: var(--muted);
}
.hchips b {
  color: var(--ink);
  font-size: 13.5px;
}
.hchips em {
  font-style: normal;
  font-size: 11px;
  color: var(--faint);
}
.hchips i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mstrip {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-gap: 8px;
  gap: 8px;
}
.mt {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 6px 8px;
  box-shadow: var(--shadow);
  text-align: left;
  color: var(--ink);
  border: 2px solid transparent;
  min-width: 0;
  transition:
    transform 0.12s,
    border-color 0.15s;
}
.mt:hover {
  transform: translateY(-2px);
}
.mt.on {
  border-color: var(--ink);
}
.mt canvas {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.mt > div {
  min-width: 0;
  flex: 1 1;
}
.mt b {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mbar {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: #ececf0;
  margin: 3px 0 2px;
  overflow: hidden;
}
.mbar i {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.mt small {
  font-size: 10.5px;
  font-weight: 700;
}
.mt small em {
  font-style: normal;
  font-weight: 500;
  color: var(--faint);
}
.an3grid {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 1.2fr;
  grid-gap: 12px;
  gap: 12px;
  min-height: 0;
}
.an3grid > .card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  overflow: hidden;
}
.an3l .ins {
  flex: none;
}
.an3l .in p {
  -webkit-line-clamp: 2;
}
.fztip {
  position: absolute;
  z-index: 5;
  padding: 7px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  white-space: nowrap;
}
.fztip[hidden] {
  display: none;
}
.fztip b {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
}
.fztip small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.fzfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 11.5px;
  flex-wrap: wrap;
}
.fzfoot .muted {
  font-size: 11.5px;
}
.facecmp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.facecmp canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fzin:has(#fzC) {
  cursor: crosshair;
}
.fzfoot .wkchips {
  margin: 0;
}
.fzfoot .wkchips .chip {
  height: 26px;
  padding: 0 10px;
  font-size: 11.5px;
}
@media (max-width: 1500px) {
  .mstrip {
    grid-template-columns: repeat(6, 1fr);
  }
  .mt canvas {
    width: 34px;
    height: 34px;
  }
}
@media (max-height: 820px) {
  .mt {
    padding: 4px 6px;
  }
  .mt canvas {
    width: 32px;
    height: 32px;
  }
  .hchips span {
    padding: 4px 10px;
  }
}
/* ===== report overlay ===== */
#reportModal .rbox {
  width: min(1400px, 96vw);
  height: min(92vh, 980px);
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.rhead b {
  font-size: 17px;
  display: block;
}
.rhead small {
  color: var(--muted);
  font-size: 12.5px;
}
.rhead .acts {
  display: flex;
  gap: 8px;
  align-items: center;
}
.rhead .x {
  width: 34px;
  height: 34px;
  margin-left: 6px;
}
.rscroll {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px;
}
.rscroll .rep3 {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rscroll .rp3mid,
.rscroll .rp3bot {
  min-height: 0;
}
.rscroll .rp3mid > .card {
  overflow: visible;
}
.an3 {
  grid-template-rows: auto minmax(0, 1fr) !important;
}
.kstats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.ks {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ring2.small {
  width: 64px;
  height: 64px;
}
.ring2.small b {
  font-size: 21px;
}
.ks > div small,
.ks2 small {
  display: block;
  font-size: 11px;
  color: var(--faint);
}
.ks > div > b {
  display: block;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.ks > div > span,
.ks2 span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.ks2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  grid-gap: 8px;
  gap: 8px;
}
.ks2 > div {
  background: #f7f7f9;
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 0;
}
.ks2 b {
  display: block;
  font-size: 19px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ks2 b em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 3px;
}
.ks2 b.tc {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.an3l .ins {
  flex: none;
}
@media (max-height: 820px) {
  .kstats {
    gap: 6px;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  .ring2.small {
    width: 52px;
    height: 52px;
  }
  .ring2.small b {
    font-size: 17px;
  }
  .ks2 b {
    font-size: 16px;
  }
}
/* taller facial zone: slimmer tiles and chrome around it */
.mstrip {
  gap: 6px;
}
.mt {
  padding: 4px 7px;
  border-width: 1.5px;
}
.mt canvas {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.mt b {
  font-size: 10.5px;
}
.mbar {
  margin: 2px 0 1px;
  height: 3px;
}
.mt small {
  font-size: 10px;
}
.an3grid > .card.fz {
  padding: 10px 12px 8px;
}
.fz > .k {
  margin-bottom: 6px;
}
.fzfoot {
  margin-top: 6px;
}
.fzfoot .muted {
  display: none;
}
.view.on > .an3 {
  gap: 10px;
}
@media (max-height: 820px) {
  .mt canvas {
    width: 26px;
    height: 26px;
  }
  .mt {
    padding: 3px 6px;
  }
}
.view {
  padding: 12px 20px;
}
.view.on > .an3 {
  gap: 8px;
}
.mstrip {
  gap: 5px;
}
@media (max-width: 1600px) {
  .segnav button {
    padding: 0 8px 0 6px;
    font-size: 12px;
  }
}
/* ===== measures strip: concerns first, see all ===== */
.mstrip.one {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 150px;
}
.mstrip.one .mt {
  flex: 0 1 210px;
  min-width: 150px;
}
.mt.more {
  flex: none;
  align-self: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  justify-content: center;
  white-space: nowrap;
}
.mstrip.one .mt.more {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.mt.more:hover {
  background: #f5f5f7;
}
.mstrip.all {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
}
.mstrip.all .mt.more {
  justify-self: end;
  align-self: center;
}
.zoomctl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 2px;
}
.zoomctl button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.zoomctl b {
  font-size: 11px;
  min-width: 36px;
  text-align: center;
  color: var(--muted);
}
/* ===== header: clean three-part bar ===== */
.topbar .tr {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
}
.topbar {
  height: 60px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.8);
}
.tbrand {
  cursor: pointer;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  transition: background 0.15s;
}
.tbrand:hover {
  background: rgba(0, 0, 0, 0.05);
}
.segnav {
  padding: 3px;
}
.segnav button {
  height: 32px;
}
.topbar .btn {
  height: 34px;
}
/* ===== analysis: left column laid out to its full height ===== */
.an3l {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.an3l .kstats {
  flex: none;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.an3l .ks {
  gap: 14px;
}
.an3l .ring2.small {
  width: 72px;
  height: 72px;
}
.an3l .ring2.small b {
  font-size: 24px;
}
.an3l .ks > div > b {
  font-size: 18px;
}
.an3l .ks2 > div {
  padding: 10px 10px;
}
.an3l .ks2 b {
  font-size: 20px;
}
.an3l > .k {
  margin-bottom: 8px;
}
.an3l .ins {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 8px;
}
.an3l .in {
  padding: 10px 12px;
  align-items: center;
}
.an3l .in p {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.35;
}
.an3l .in > div > b {
  font-size: 14px;
}
.an3l .in small {
  font-size: 11px;
}
.an3l .in .mi2 {
  width: 40px;
  height: 40px;
}
.an3l .k + .ins {
  margin-top: 0;
}
.an3l .k:last-of-type {
  margin-top: 14px;
  margin-bottom: 6px;
}
.an3l #anMeaning {
  flex: none;
  background: #f7f7f9;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
@media (max-height: 820px) {
  .an3l .in p {
    -webkit-line-clamp: 1;
  }
  .an3l .in {
    padding: 7px 10px;
  }
  .an3l .in .mi2 {
    width: 34px;
    height: 34px;
  }
  .an3l .kstats {
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .an3l .ring2.small {
    width: 58px;
    height: 58px;
  }
  .an3l .ring2.small b {
    font-size: 19px;
  }
  .an3l .ks2 b {
    font-size: 17px;
  }
  .an3l .ks2 > div {
    padding: 7px 9px;
  }
  .an3l #anMeaning {
    padding: 8px 10px;
    font-size: 11.5px;
  }
}
@media (max-height: 700px) {
  .an3l .in small {
    display: none;
  }
  .an3l #anMeaning {
    display: none;
  }
}
/* ===== analysis left column: tidy rhythm ===== */
.an3l .kstats {
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.an3l .ks {
  gap: 14px;
}
.an3l .ks > div small {
  margin-bottom: 2px;
}
.an3l .ks > div > span {
  margin-top: 2px;
}
.an3l .ks2 {
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 8px;
}
.an3l .ks2 > div {
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.an3l .ks2 small {
  font-size: 10.5px;
}
.an3l .ks2 b {
  font-size: 18px;
  line-height: 1.15;
}
.an3l .ks2 b em {
  font-size: 10.5px;
}
.an3l .ks2 b.tc {
  font-size: 13.5px;
}
.an3l .ks2 span {
  font-size: 11px;
  line-height: 1.3;
}
.an3l > .k {
  margin: 0 0 8px;
  font-size: 12.5px;
}
.an3l .ins {
  justify-content: flex-start;
  gap: 8px;
}
.an3l .in {
  flex: 1 1;
  min-height: 0;
  padding: 8px 12px;
  align-items: center;
}
.an3l .in .mi2 {
  width: 38px;
  height: 38px;
}
.an3l .in > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.an3l .k:last-of-type {
  margin: 12px 0 6px;
}
.an3l #anMeaning {
  margin: 0;
}
/* ===== analysis: measures list in the left column ===== */
.an3 {
  grid-template-rows: minmax(0, 1fr) !important;
}
.an3grid {
  grid-template-columns: 0.85fr 1.4fr 1fr;
}
.an3l {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mtabs {
  align-self: flex-start;
  flex: none;
}
.mtabs button em {
  font-style: normal;
  font-weight: 700;
  margin-left: 4px;
  opacity: 0.6;
}
.mtabs button:disabled {
  opacity: 0.4;
  cursor: default;
}
.mlist2 {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
}
.mlist2 .mt {
  flex: none;
  padding: 7px 9px;
  border-width: 1.5px;
}
.mlist2 .mt canvas {
  width: 44px;
  height: 44px;
  border-radius: 9px;
}
.mlist2 .mt b {
  font-size: 12.5px;
  white-space: normal;
}
.mbar {
  height: 4px;
}
.mlist2 .mt small {
  font-size: 11px;
}
.pgrid {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 1500px) {
  .pgrid {
    grid-template-columns: 1fr;
  }
}
.pc .pt {
  min-height: 80px;
}
.ps > .k {
  flex-wrap: nowrap;
}
.ps > .k > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1750px) {
  .ps > .k em {
    display: none;
  }
}
/* breathing room above and below every step; bigger measure thumbnails */
.view {
  padding: 22px 24px 22px;
}
.mlist2 .mt canvas {
  width: 58px;
  height: 58px;
  border-radius: 11px;
}
.mlist2 .mt {
  padding: 7px 10px 7px 7px;
  gap: 10px;
}
.mlist2 .mt b {
  font-size: 13px;
}
.mlist2 .mbar {
  height: 5px;
  margin: 4px 0 3px;
}
.mlist2 .mt small {
  font-size: 11.5px;
}
@media (max-height: 820px) {
  .view {
    padding: 16px 22px;
  }
  .mlist2 .mt canvas {
    width: 50px;
    height: 50px;
  }
}
/* ===== report: routine, progress, before/after ===== */
.rp3x {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-gap: 14px;
  gap: 14px;
}
.rp3x > .card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}
.rp3x .nxt {
  gap: 2px;
  justify-content: flex-start;
  flex: none;
}
.rp3x .nx {
  padding: 9px 2px;
}
.rp3x .nx p {
  -webkit-line-clamp: 2;
}
.rp3x .prog2 {
  gap: 6px;
}
.rp3x .pr2 {
  grid-template-columns: 18px 1fr 1fr 48px;
}
.rpba {
  position: relative;
  flex: 1 1;
  min-height: 300px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.rpba .facecmp {
  position: absolute;
  inset: 0;
}
@media (max-width: 1250px) {
  .rp3x {
    grid-template-columns: 1fr;
  }
}

/* Next.js shell helpers ï¿½ do not alter sample look */
.studio main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}
.studio .view {
  flex: 1 1;
  min-height: 0;
}
.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  z-index: 1;
}
.stage-video.mirror {
  transform: scaleX(-1);
}
.stage .src,
.stage .stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.stage .guide {
  z-index: 3;
}
.stage .hud {
  z-index: 5;
}
.stage .empty {
  z-index: 4;
}
.stage .shutter,
.stage .ring,
.stage .flash,
.stage .camtools,
.stage .snote {
  z-index: 6;
}
.an-face-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: #000;
  overflow: hidden;
}
.an-face-wrap canvas {
  display: block;
}

/* ===== Capture stage fix + Lighting / Face / Look HUD ===== */
.cap {
  display: grid !important;
  grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 0.85fr) !important;
  grid-gap: 16px !important;
  gap: 16px !important;
  align-items: stretch !important;
  height: auto !important;
  min-height: calc(100vh - 120px);
}
.cap-stage-col {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.cap-stage-col .err {
  width: min(100%, 420px);
  text-align: center;
  margin: 0;
  line-height: 1.35;
  font-size: 13px;
}
.stage {
  position: relative !important;
  width: min(100%, 420px) !important;
  max-width: 420px !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 3 / 4 !important;
  max-height: min(78vh, 720px) !important;
  margin: 0 auto;
  background: #0e0c13 !important;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stage .empty {
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(14, 12, 19, 0.92) !important;
  color: #fff !important;
  padding: 24px !important;
  gap: 10px !important;
}
.stage .empty h3 {
  color: #fff !important;
  font-size: 20px !important;
  margin: 0 0 6px !important;
}
.stage .empty p {
  color: rgba(255, 255, 255, 0.72) !important;
  max-width: 340px;
  margin: 0 0 8px !important;
}
.stage .empty .opts {
  flex-direction: column !important;
  width: min(340px, 100%) !important;
}
.stage .empty .opt {
  flex-direction: row !important;
  text-align: left !important;
  width: 100% !important;
}
.hud-checks {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 8;
  width: calc(100% - 28px);
  max-width: 440px;
  justify-content: center;
}
.chk {
  flex: 1 1;
  text-align: center;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 77, 77, 0.85);
  color: #ff6b6b;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.chk.ok {
  border-color: #30d158;
  color: #30d158;
}
.chk.bad {
  border-color: rgba(255, 77, 77, 0.85);
  color: #ff6b6b;
}

/* ===== Live face-scan HUD (reference UI) ===== */
.stage.scan-stage.live {
  background: #2a2a2e;
}
.stage.scan-stage.live.scanning::after {
  content: none !important;
}
.scan-hud {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
  width: calc(100% - 72px);
  max-width: 520px;
  pointer-events: none;
}
@media (max-width: 700px) {
  .scan-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 56px);
  }
}
.scan-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 8px;
  background: #e53935;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.scan-chip span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  opacity: 0.95;
}
.scan-chip b {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.scan-chip.ok {
  background: #1d8a53;
}
.scan-chip.all-ok {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 4px 14px rgba(0, 0, 0, 0.28);
}
.scan-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  cursor: pointer;
}
.scan-close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.guide.scan-oval {
  z-index: 4;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vh, 52px) clamp(6px, 1.5vw, 14px) clamp(40px, 7vh, 64px);
  box-sizing: border-box;
}
.guide.scan-oval svg,
.guide.scan-face-guide svg {
  width: min(92%, 460px);
  height: auto;
  max-height: min(86%, 620px);
  overflow: visible;
  aspect-ratio: 4 / 5;
}
.guide.scan-oval .face-outline,
.guide.scan-oval .face-feature {
  transition:
    stroke 0.2s ease,
    opacity 0.2s ease;
}
.stage.has-face .guide.scan-oval .face-outline {
  filter: drop-shadow(0 0 10px rgba(48, 209, 88, 0.5));
  animation: faceGuidePulse 1.6s ease-in-out infinite;
}
@keyframes faceGuidePulse {
  0%,
  100% {
    opacity: 0.92;
  }
  50% {
    opacity: 1;
  }
}
.scan-switch-cam {
  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 9;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20, 20, 22, 0.62);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.scan-switch-cam svg {
  width: 22px;
  height: 22px;
  display: block;
}
.scan-switch-cam:hover {
  background: rgba(255, 255, 255, 0.22);
}
.scan-switch-cam:disabled {
  opacity: 0.55;
  cursor: wait;
}
.scan-prompt {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  color: #fff;
  width: min(78%, 280px);
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}
.scan-prompt b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.scan-prompt small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.scan-prompt.ok b {
  color: #d8ffe8;
}
.scan-count {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(48, 209, 88, 0.95);
  display: grid;
  place-items: center;
  pointer-events: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.scan-count b {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.stage .snote {
  position: absolute;
  left: 50%;
  top: 64px;
  transform: translateX(-50%);
  z-index: 8;
  text-align: center;
  color: #fff;
  max-width: 90%;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  background: transparent !important;
  box-shadow: none !important;
}
.stage .snote b {
  display: block;
  font-size: 16px;
}
.stage .snote small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.param-checks .q {
  display: grid;
  grid-template-columns: 118px 1fr 36px;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
}
@media (max-width: 1100px) {
  .cap {
    grid-template-columns: 1fr !important;
  }
  .stage {
    width: min(100%, 380px) !important;
    max-width: 380px !important;
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(70vh, 640px) !important;
  }
  .guide.scan-oval {
    padding: 36px 10px 56px;
  }
  .guide.scan-oval svg,
  .guide.scan-face-guide svg {
    width: min(90%, 420px);
    max-height: min(84%, 560px);
  }
  .scan-switch-cam {
    width: 46px;
    height: 46px;
  }
}

/* Laptop / large tablet capture stage */
@media (min-width: 1101px) and (max-width: 1440px) {
  .stage {
    width: min(100%, 400px) !important;
    max-width: 400px !important;
    max-height: min(76vh, 680px) !important;
  }
  .guide.scan-oval svg,
  .guide.scan-face-guide svg {
    width: min(90%, 440px);
    max-height: min(84%, 580px);
  }
}

/* ===== 4 lights cards (match sample HTML) ===== */
.lights-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 0;
}
.lights-wrap .lgrid {
  flex: 1 1;
  min-height: 0;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-gap: 12px !important;
  gap: 12px !important;
  max-width: none !important;
  height: auto !important;
}
.lcard .im {
  position: relative;
  flex: 1 1;
  min-height: 280px;
  background: #000;
  overflow: hidden;
  cursor: default;
}
.lcard .im canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lcard .im canvas.rev {
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.25s;
}
.lcard .lh {
  display: none;
}
.lcard .lf {
  flex: none;
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.lfr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mk {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
}
.mk.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.rv {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}
.rv b {
  color: var(--ink);
}
.lpill {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.lpill b {
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lmax {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.lmax .ico {
  width: 14px;
  height: 14px;
}
.fc {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s,
    transform 0.35s;
  pointer-events: none;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc.show {
  opacity: 1;
  transform: none;
}
.fc i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.hsl {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.hsl.show {
  opacity: 1;
}
.hs {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
}
.hs i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, #ff9f0a);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.hs.on {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(255, 255, 255, 0.55);
}
.hstip {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
  max-width: min(260px, 90%);
}
.hstip canvas {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
}
.hstip b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: normal;
  max-width: 180px;
}
.hstip small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 1100px) {
  .lights-wrap .lgrid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ===== Analysis: Skin measures + contained All angles scroll ===== */
.an {
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}
.an > .skin-measures {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  position: relative;
  padding: 14px 14px 12px;
}
.skin-measures-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.skin-measures-head .muted,
.muted {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
}
.skin-measures .mtabs {
  width: 100%;
  display: flex;
  align-self: stretch;
  margin-bottom: 10px;
}
.skin-measures .mtabs button {
  flex: 1 1;
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
}
.skin-measures .mlist2 {
  flex: 1 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}
.mlist2 .mt img.mt-thumb,
.mlist2 .mt .mt-thumb {
  width: 58px;
  height: 58px;
  border-radius: 11px;
  object-fit: cover;
  object-position: 50% 20%;
  flex: none;
  background: #ececf0;
}
.mlist2 .mt.on {
  border-color: var(--ink);
  box-shadow: none;
}
.mlist2 .mt small em {
  font-style: normal;
  font-weight: 500;
  color: var(--faint);
}
.skin-measures .m-tip {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.res {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  align-items: stretch;
}
.res > .rimg {
  min-height: 0;
  height: 100%;
}
.rside {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.rside > .card {
  min-width: 0;
  max-width: 100%;
}
.angles-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.angles-card > .k {
  flex: none;
}
.angles-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.angles-scroll .angle-tile,
.angles-scroll .cmp {
  flex: 0 0 auto;
  width: min(42%, 132px);
  min-width: 112px;
  max-width: 148px;
  text-align: center;
  background: var(--bg);
  border-radius: 12px;
  padding: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  color: inherit;
}
.angles-scroll .angle-tile.on {
  border-color: var(--blue);
  background: #fff;
}
.angles-scroll .angle-tile:disabled {
  opacity: 0.45;
  cursor: default;
}
.angles-scroll .angle-tile:not(:disabled):hover {
  border-color: rgba(0, 113, 227, 0.35);
}
.angles-scroll .angle-tile.muted {
  opacity: 0.85;
}
.angles-scroll .angle-tile img,
.angles-scroll .cmp img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.angles-scroll .angle-empty {
  aspect-ratio: 4 / 5;
  background: #e8e8ed;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 12px;
}
.angles-scroll .angle-tile small,
.angles-scroll .cmp small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .an {
    grid-template-columns: 1fr;
    overflow: auto;
  }
  .an > .skin-measures {
    max-height: min(52vh, 480px);
  }
}

.skin-measures .mlist2 {
  padding-bottom: 36px;
}
.an > aside.skin-measures.card {
  box-shadow: var(--shadow);
}

/* Wider Skin measures column */
.an {
  grid-template-columns: minmax(340px, 380px) minmax(0, 1fr) !important;
}
.an > .skin-measures {
  width: 100%;
}

/* ===== Analysis image zoom + mask tools ===== */
.rimg .rh {
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.rimg .an-face-wrap {
  flex: 1 1 auto;
  min-height: 0;
  /* Fill remaining card height so contain-fit can center the photo */
  height: 100%;
}
.rh-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
.zoom-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg);
}
.zoom-ctrl .zpct {
  min-width: 42px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.zbtn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  border: 0;
}
.zbtn:hover:not(:disabled) {
  background: #f2f2f7;
}
.zbtn:disabled {
  opacity: 0.35;
  cursor: default;
}
.zbtn.zreset {
  width: auto;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
}
.an-face-wrap {
  position: relative;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.an-face-wrap.zoomed {
  cursor: -webkit-grab;
  cursor: grab;
}
.face-ov {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Layer is JS-sized to object-fit:contain. Flex centers it; pan offsets from center. */
.an-face-zoom {
  position: relative;
  left: auto;
  top: auto;
  flex: none;
  line-height: 0;
  transition: transform 0.15s ease;
  will-change: transform;
  transform-origin: center center;
}
.an-face-zoom canvas,
.an-face-wrap .an-face-zoom canvas,
.rimg .im .an-face-zoom canvas {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: fill !important;
}
/* Fixed HUD: parameter name/score/legend do not scale with zoom */
.face-ov-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.face-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(72%, 280px);
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  font-family:
    Segoe UI,
    system-ui,
    sans-serif;
}
.face-badge-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.face-badge-score {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.95;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}
.face-legend-cat {
  position: absolute;
  right: 12px;
  top: 52px;
  margin: 0;
  padding: 8px 10px;
  list-style: none;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  border-radius: 12px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}
.face-legend-cat li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  white-space: nowrap;
}
.face-legend-cat i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: none;
}
.face-legend-grad {
  position: absolute;
  right: 12px;
  top: 52px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  border-radius: 12px;
  color: #fff;
}
.face-legend-grad-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  min-height: 110px;
}
.face-legend-grad-bar {
  position: relative;
  width: 12px;
  min-height: 110px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.face-legend-grad-bar em {
  position: absolute;
  left: -3px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  transform: translateY(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.zoom-fab {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zoom-fab .zbtn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  font-size: 20px;
}

.an-face-wrap {
  touch-action: none;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}
.an-face-wrap.zoomed {
  cursor: -webkit-grab;
  cursor: grab;
  overflow: hidden;
}
.an-face-wrap.dragging {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}
.an-face-wrap.dragging .an-face-zoom {
  transition: none;
}
.rh-tools .zoom-ctrl,
.zoom-fab {
  display: none !important;
}

/* ===== analysis: products card (replaces All angles) ===== */
.rside .products-card {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: min(48vh, 420px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rside .products-card .pgrid {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
}
.rside .products-card .ptabs {
  flex: none;
  flex-wrap: wrap;
  max-width: 100%;
}
.rside .products-card .ptabs button {
  font-size: 11px;
  padding: 0 9px;
}

/* ===== analysis: active parameter detail (right rail) ===== */
.rside .param-detail .param-desc {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.rside .param-detail .param-desc .ic {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.rside .param-detail .param-desc p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.rside .param-detail .param-meta {
  margin-top: 10px;
}

/* ===== skin type step (after capture) ===== */
.skin-type-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.skin-type-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}
.skin-type-hero-copy h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.skin-type-hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 42ch;
}
.skin-type-preview {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line);
}
.skin-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}
.skin-type-card-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.12s;
}
.skin-type-card-opt:hover {
  border-color: rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}
.skin-type-card-opt.on {
  border-color: var(--brand, #0a7cff);
  box-shadow: 0 0 0 2px var(--brand, #0a7cff);
}
.skin-type-img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f2f2f4;
}
.skin-type-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 14px;
}
.skin-type-meta b {
  font-size: 15px;
}
.skin-type-meta small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.skin-type-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--brand, #0a7cff);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.skin-type-card-opt.on .skin-type-check {
  opacity: 1;
  transform: scale(1);
}
.skin-type-cta {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  padding-bottom: 8px;
}
@media (max-width: 1100px) {
  .skin-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .skin-type-hero {
    align-items: flex-start;
  }
  .skin-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skin-type-cta {
    flex-direction: column-reverse;
  }
  .skin-type-cta .btn {
    width: 100%;
  }
}
@media (max-width: 420px) {
  .skin-type-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== full report modal tweaks ===== */
#reportModal .rhead .x {
  position: static;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
}
#reportModal .rpid img {
  flex: none;
}
#reportModal .rscroll {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
#reportModal .rscroll .rep3 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#reportModal .rscroll .rep3 > .card,
#reportModal .rscroll .rp3mid > .card,
#reportModal .rscroll .rp3bot > .card,
#reportModal .rscroll .report-products {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#reportModal .rep-qr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#reportModal .rep-qr-text {
  min-width: 0;
  flex: 1 1;
}
#reportModal .rep-qr-text b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
#reportModal .rep-qr-text p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
#reportModal .rep-qr-warn {
  color: #b45309 !important;
}
#reportModal .rep-qr-code {
  flex: none;
  width: min(168px, 42vw);
  height: min(168px, 42vw);
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
#reportModal .rep-qr-code img {
  display: block;
  width: 100%;
  height: 100%;
}
#reportModal .rep-qr-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  color: var(--muted);
}
#reportModal .report-products .pgrid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
@media (max-width: 700px) {
  #reportModal .rep-qr {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }
  #reportModal .rep-qr-code {
    width: min(148px, 48vw);
    height: min(148px, 48vw);
    margin: 0 auto;
  }
  #reportModal .report-products .pgrid {
    grid-template-columns: 1fr;
  }
}

/* Shared / QR download report page */
.share-report {
  min-height: 100vh;
  background: var(--bg, #f4f4f6);
  padding: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.share-report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.share-report-head b {
  display: block;
  font-size: 18px;
}
.share-report-head small {
  color: var(--muted);
  font-size: 12.5px;
}
.share-report-status {
  padding: 24px 8px;
  color: var(--muted);
}
.share-report-err p {
  color: #b42318;
  margin-bottom: 8px;
}
.share-report-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.share-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.share-hero b {
  display: block;
  font-size: 42px;
  line-height: 1;
  margin: 4px 0 8px;
}
.share-hero b span {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}
.share-hero img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
}
.share-measures,
.share-products,
.share-routine {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.share-measures li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
}
.share-products li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: start;
}
.share-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-top: 4px;
}
.share-products b {
  display: block;
  font-size: 13.5px;
}
.share-products small,
.share-products p {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0 0;
}
.share-routine li {
  font-size: 13px;
}
.share-routine span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.share-foot {
  text-align: center;
  padding: 8px 0 24px;
}
.share-report-cta {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px;
}
.share-report-cta .btn {
  min-width: min(100%, 240px);
}
.rep-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.rep-bar {
  display: grid;
  grid-template-columns: 88px 1fr 32px;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  font-size: 12px;
}
.rep-bar span {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rep-bar i {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: #ececf0;
  overflow: hidden;
}
.rep-bar i b {
  display: block;
  height: 100%;
  border-radius: 6px;
}
.rep-bar em {
  font-style: normal;
  font-weight: 700;
  text-align: right;
}
.skin-ov-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.skin-ov {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 0;
}
.skin-ov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.skin-ov-head .k {
  margin: 0;
}
.skin-ov-cmp {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f0f0f3;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.skin-ov-cmp:hover {
  background: #e6e6ea;
}
.skin-ov-cmp.on {
  background: #e6f0fb;
  color: #0071e3;
}
.skin-ov-leg {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.skin-ov-leg span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.skin-ov-leg i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.skin-ov-leg i.you {
  background: #0071e3;
}
.skin-ov-leg i.avg {
  background: #b0b0b8;
}
.skin-ov-radar {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  flex: 1 1;
  min-height: 220px;
  display: block;
}
.skin-ov-score {
  fill: #1d1d1f;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
}
.skin-ov-axis {
  fill: #6e6e73;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
}
.rp3top .rptop {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rp3top .rptop > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.rp3top .rptop .n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #fff;
  flex: none;
}
.rp3top .rptop .n.red {
  background: #d7263d;
}
.rp3top .rptop .n.amber {
  background: #d9a21b;
}
.rp3top .rptop .n.blue {
  background: #0071e3;
}
.rpdate {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rpdate .ico {
  width: 22px;
  height: 22px;
  color: var(--muted);
}
.rpscore {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rpscore p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}
.rpv {
  background: #f7f7f9;
  border-radius: 14px;
  padding: 12px;
}
.rpvh b {
  display: block;
  font-size: 14px;
}
.rpvh small {
  color: var(--muted);
  font-size: 11px;
}
.rpvb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.rpvn {
  font-weight: 700;
  font-size: 13px;
}
.rpvs {
  margin-top: 2px;
}
.rpvs b {
  font-size: 18px;
  margin-right: 4px;
}
.rpvt {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
}
.rpvt small {
  width: 100%;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
}
.rpvt span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f5f5f7;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.rpvt span b {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.rpvf {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.nxt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}
.nx:last-child {
  border-bottom: 0;
}
.nx .n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex: none;
}
.nx b {
  display: block;
  font-size: 13px;
}
.nx p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media print {
  #reportModal {
    position: static !important;
    display: block !important;
    background: #fff !important;
    padding: 0 !important;
  }
  #reportModal .rbox {
    width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
  }
  #reportModal .rhead .acts {
    display: none !important;
  }
  #reportModal .no-print,
  #reportModal .rep-qr {
    display: none !important;
  }
  .studio,
  .toast,
  .welcome {
    display: none !important;
  }
}

/* ==========================================================================
   Mobile / tablet responsive layer (overrides earlier desktop-first rules)
   ========================================================================== */

html {
  text-size-adjust: 100%;
}

/* ----- Tablet (?1100px) ----- */
@media (max-width: 1100px) {
  /* Allow the page itself to scroll on touch devices (nested overflow often locks). */
  html {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    height: auto !important;
    min-height: 100dvh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Keep background locked while the side drawer / report is open */
  body.drawer-open,
  body.printing-report {
    overflow: hidden !important;
  }

  .studio {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 100dvh;
    overflow: visible;
  }

  main {
    overflow: visible !important;
    flex: 1 1 auto;
    min-height: 0;
  }

  .view,
  .view.on {
    display: block;
    flex: none;
    height: auto !important;
    min-height: 0;
    overflow: visible !important;
    padding: 14px 16px 28px;
    -webkit-overflow-scrolling: touch;
  }

  .cap {
    grid-template-columns: 1fr !important;
    gap: 14px;
    height: auto !important;
    align-items: stretch;
  }

  .cap-stage-col {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: center;
  }

  .stage,
  .stage.scan-stage {
    width: 100% !important;
    max-width: min(100vw - 24px, 420px) !important;
    max-height: min(78dvh, 720px) !important;
    aspect-ratio: 3 / 4 !important;
    min-height: 0 !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Preview + capture stay portrait; cover fills stage, snap matches this crop */
  .stage.scan-stage .stage-video,
  .stage.scan-stage .stage-img,
  .stage.scan-stage img.src {
    object-fit: cover !important;
    object-position: center center !important;
  }

  .cap > div:last-child {
    width: 100%;
    min-width: 0;
  }

  .poses.poses-front-only {
    max-width: min(280px, 100%);
    margin: 0 auto;
    grid-template-columns: 1fr;
  }

  .poses.poses-front-only .pose .ph {
    height: auto !important;
    aspect-ratio: 3 / 4;
    max-height: 260px;
  }

  .poses.poses-front-only .pose .ph img {
    object-fit: cover;
    object-position: center 35%;
  }

  .an {
    grid-template-columns: 1fr !important;
    height: auto !important;
    overflow: auto !important;
    gap: 14px;
  }

  .an > .skin-measures {
    max-height: none !important;
    order: 2;
  }

  .an > .res {
    order: 1;
  }

  .res {
    grid-template-columns: 1fr !important;
    gap: 14px;
    height: auto !important;
  }

  .res > .rimg {
    height: auto !important;
    min-height: 0;
  }

  .rimg .an-face-wrap,
  .rimg .im.an-face-wrap {
    min-height: min(58vh, 480px) !important;
    height: min(58vh, 480px) !important;
    max-height: 70vh;
  }

  .rside {
    overflow: visible;
  }

  .rside .products-card {
    max-height: none;
    min-height: 0;
  }

  .running {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0;
    align-content: start;
    align-items: stretch;
    gap: 16px;
    padding: 8px 0 20px;
  }

  .running .rface {
    display: block !important;
    width: min(300px, 72vw);
    max-width: min(300px, 72vw);
    margin: 0 auto;
  }
}

/* ----- Phone (?760px) ----- */
@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .topbar {
    height: auto;
    min-height: 56px;
    padding: 8px 12px;
    gap: 8px 10px;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  .topbar .tl {
    min-width: 0;
    flex: 0 0 auto;
  }

  .topbar .tbrand span:last-child {
    display: none;
  }

  /* Hide Capture / Analysis step tabs on phones */
  .segnav {
    display: none !important;
  }

  .topbar .tr {
    flex: 1 1 auto;
    justify-self: end;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
  }

  .topbar .acts {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: none;
  }

  .topbar .btn {
    height: 34px;
    padding: 0 11px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .topbar .btn .ico {
    display: none;
  }

  .topbar .btn.primary {
    padding: 0 11px;
  }

  .view,
  .view.on {
    padding: 12px 12px 32px !important;
    overflow: visible !important;
  }

  .skin-type-step {
    padding-bottom: 8px;
  }

  .cap,
  .an,
  .running,
  .skin-type-step {
    height: auto !important;
    min-height: 0;
    overflow: visible;
  }

  .card {
    padding: 14px 14px;
    border-radius: 16px;
  }

  .stage {
    width: min(100%, 100%) !important;
    max-width: min(100%, 420px) !important;
    aspect-ratio: 3 / 4 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: min(72vh, 640px) !important;
    border-radius: 16px;
  }

  .an-param-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .an-param-nav .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 40px;
  }

  .an-param-pos {
    order: -1;
    width: 100%;
    text-align: center;
  }

  .stage .empty {
    padding: 16px 14px !important;
    justify-content: flex-end;
    padding-bottom: 20px !important;
  }

  .stage .empty h3 {
    font-size: 17px !important;
  }

  .stage .empty p {
    font-size: 12.5px !important;
    max-width: 100% !important;
  }

  .stage .empty .opts {
    width: 100% !important;
    gap: 8px !important;
  }

  .stage .empty .opt {
    width: 100% !important;
    padding: 12px 12px !important;
  }

  .scan-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: calc(100% - 52px) !important;
    top: 10px;
    gap: 6px;
  }

  .scan-chip {
    padding: 6px 4px;
    border-radius: 7px;
  }

  .scan-chip span {
    font-size: 10px;
  }

  .scan-chip b {
    font-size: 11.5px;
  }

  .scan-close {
    width: 32px;
    height: 32px;
    top: 10px;
    right: 10px;
    font-size: 16px;
  }

  .guide.scan-oval {
    padding: 32px 8px 52px;
  }

  .guide.scan-oval svg,
  .guide.scan-face-guide svg {
    width: min(94%, 100%);
    max-height: min(86%, 520px);
  }

  .scan-switch-cam {
    right: 12px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .scan-prompt {
    width: min(86%, 260px);
    top: 54%;
  }

  .scan-prompt b {
    font-size: 15px;
  }

  .scan-prompt small {
    font-size: 12px;
  }

  .scan-count {
    width: 88px;
    height: 88px;
  }

  .scan-count b {
    font-size: 44px;
  }

  .stage .camtools {
    bottom: 12px;
    left: 10px;
  }

  .poses.poses-front-only {
    max-width: min(280px, 100%);
    margin: 0 auto;
  }

  .poses.poses-front-only .pose .ph {
    height: auto !important;
    aspect-ratio: 3 / 4;
    max-height: 260px;
  }

  .poses.poses-front-only .pose .ph img {
    object-fit: cover;
    object-position: center 35%;
  }

  .pose .ph {
    height: auto !important;
    aspect-ratio: 3 / 4;
  }

  .cap-test-acts {
    flex-direction: column;
  }

  .cap-test-acts .btn {
    width: 100%;
  }

  .capture-guide-img {
    border-radius: 12px;
  }

  .an {
    gap: 12px;
  }

  .an > .skin-measures {
    order: 2;
    max-height: none !important;
  }

  .mlist2 .mt {
    padding: 8px;
  }

  .mlist2 .mt-thumb,
  .mlist2 .mt img.mt-thumb {
    width: 48px !important;
    height: 48px !important;
  }

  .rimg .rh {
    padding: 10px 12px;
    gap: 8px;
  }

  .rimg .rh h3 {
    font-size: 15px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .rh-tools {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .rimg .an-face-wrap,
  .rimg .im.an-face-wrap {
    min-height: min(52vh, 420px) !important;
    height: min(52vh, 420px) !important;
  }

  .rimg .rf {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 0;
  }

  .score .big {
    font-size: 40px;
  }

  .ps > .k,
  .ps-head {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .ps > .k .ptabs,
  .ps-head .ptabs,
  .products-card .ptabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .pgrid {
    grid-template-columns: 1fr !important;
  }

  .lookbar {
    flex-wrap: wrap;
    border-radius: 16px;
    gap: 6px;
  }

  .lookbar .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .running {
    padding: 4px 0 16px;
    height: auto !important;
    gap: 14px;
  }

  .running .rface {
    display: block !important;
    width: min(260px, 78vw);
    max-width: min(260px, 78vw);
    margin: 0 auto 4px;
    border-radius: 18px;
  }

  .running .rside h3 {
    font-size: 20px;
  }

  .running .rside p {
    font-size: 13px;
    min-height: 0;
  }

  .running .rprog {
    margin: 12px 0 10px;
  }

  .running .rzones i::after {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  /* Full report modal */
  #reportModal {
    padding: 8px !important;
    align-items: stretch !important;
  }

  #reportModal .rbox {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: 16px !important;
  }

  #reportModal .rhead {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  #reportModal .rhead .acts {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  #reportModal .rhead .acts .btn {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  #reportModal .rscroll {
    padding: 12px !important;
    overflow-x: hidden;
  }

  #reportModal .rscroll .rep3 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
  }

  #reportModal .rscroll .rep3 > *,
  #reportModal .rp3mid > *,
  #reportModal .rp3bot > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #reportModal .rp3top {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 14px !important;
  }

  #reportModal .rpid {
    flex-wrap: wrap;
  }

  #reportModal .rpscore {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  #reportModal .rpscore-line {
    min-width: 0;
    flex: 1 1 140px;
  }

  #reportModal .rp3mid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #reportModal .finds {
    grid-template-columns: 1fr 1fr !important;
  }

  #reportModal .rp3bot {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #reportModal .rp3bot > .card > .k {
    flex-wrap: wrap;
    gap: 8px;
  }

  #reportModal .rt3,
  #reportModal .rt3b {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-gap: 8px !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  #reportModal .rt3b .rp {
    flex: none;
    min-width: 0;
    width: 100%;
  }

  #reportModal .rp3x {
    grid-template-columns: 1fr !important;
  }

  #reportModal .report-products .pgrid {
    grid-template-columns: 1fr !important;
  }

  #reportModal .skin-ov-radar {
    max-width: 100%;
  }

  .rep-bar {
    grid-template-columns: 72px 1fr 28px;
    font-size: 11.5px;
  }

  /* Welcome */
  .welcome {
    padding: 24px 18px max(24px, env(safe-area-inset-bottom)) !important;
    gap: 18px !important;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .welcome h1 {
    font-size: clamp(30px, 9vw, 42px) !important;
    max-width: none !important;
  }

  .welcome p {
    font-size: 15px !important;
    max-width: none !important;
  }

  .welcome .big,
  .welcome .wghost {
    height: 48px !important;
    padding: 0 20px !important;
    font-size: 15px !important;
    width: 100%;
  }

  .wcta {
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
  }

  .wentries {
    flex-direction: column;
    width: 100%;
  }

  .wentries .we {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .wtrust {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Keep profile drawer usable (overrides legacy display:none) */
  .side {
    display: flex !important;
    width: min(86vw, 300px);
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .lights-wrap .lgrid {
    grid-template-columns: 1fr !important;
  }

  .lcard .im {
    min-height: 220px;
  }

  .toast {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform: translateY(16px);
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .toast.show {
    transform: translateY(0);
  }

  .quality .q {
    grid-template-columns: 18px minmax(0, 90px) 1fr 40px;
  }

  .param-checks .q {
    grid-template-columns: minmax(0, 90px) 1fr 36px;
  }
}

/* ----- Small phones (?400px) ----- */
@media (max-width: 400px) {
  .topbar .btn {
    padding: 0 9px;
    font-size: 12px;
  }

  #seeReport {
    padding: 0 9px;
  }

  .stage {
    max-width: 100% !important;
  }

  #reportModal .finds,
  .finds {
    grid-template-columns: 1fr !important;
  }

  #reportModal .rt3,
  #reportModal .rt3b,
  .rt3,
  .rt3b {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }

  #reportModal .rep-qr-code {
    width: min(132px, 56vw);
    height: min(132px, 56vw);
  }

  .scan-prompt b {
    font-size: 14px;
  }

  .guide.scan-oval {
    padding: 28px 6px 48px;
  }

  .guide.scan-oval svg,
  .guide.scan-face-guide svg {
    width: min(96%, 100%);
    max-height: min(88%, 480px);
  }

  .scan-switch-cam {
    width: 40px;
    height: 40px;
    right: 10px;
    bottom: 12px;
  }
}

/* Safe areas for notched devices */
@supports (padding: env(safe-area-inset-top)) {
  .topbar {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .view.on {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
}

