:root {
  color-scheme: only light;
  --app-safe-top: env(safe-area-inset-top, 0px);
  --app-safe-right: env(safe-area-inset-right, 0px);
  --app-safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-safe-left: env(safe-area-inset-left, 0px);
  --bg: #f8f3f1;
  --paper: #fffaf8;
  --card: #ffffff;
  --ink: #242126;
  --muted: #81777d;
  --soft: #f4e7e5;
  --line: rgba(63, 45, 54, 0.1);
  --pink: #ff6f91;
  --pink-strong: #ec527a;
  --pink-soft: #ffe3ea;
  --rose: #b96a77;
  --dark: #241a21;
  --cream: #fff1df;
  --green: #3b8f6a;
  --brand-plum: #4f2537;
  --brand-gold: #d4a24f;
  --brand-mint: #57b894;
  --shadow: 0 24px 70px rgba(91, 50, 65, 0.18);
  --radius: 8px;
  font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  overscroll-behavior-x: none;
  background: radial-gradient(circle at 20% 0%, rgba(255, 180, 194, 0.28), transparent 32%), var(--bg);
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.72), rgba(255, 226, 234, 0.44)),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: geometricPrecision;
}

button,
input,
textarea,
select {
  color-scheme: only light;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

.app-root {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.phone-shell {
  position: relative;
  overflow: hidden;
  width: min(100%, 390px);
  height: min(844px, calc(100vh - 44px));
  min-height: min(844px, calc(100vh - 44px));
  max-height: calc(100vh - 44px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  scrollbar-width: none;
}

.phone-shell::-webkit-scrollbar {
  display: none;
}

.shell-content {
  height: 100%;
  min-height: inherit;
  max-height: inherit;
  overflow-y: auto;
  scrollbar-width: none;
}

.shell-content::-webkit-scrollbar {
  display: none;
}

.lesson-shell {
  background: #fff;
}

.home-hero {
  position: relative;
  min-height: 392px;
  padding: 18px;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(35, 25, 32, 0.74), rgba(79, 37, 55, 0.32) 44%, rgba(36, 26, 33, 0.08) 68%),
    linear-gradient(180deg, rgba(36, 26, 33, 0.02), rgba(36, 26, 33, 0.18) 43%, rgba(36, 26, 33, 0.82));
}

.hero-media img,
.tutorial-cover,
.look-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-nav,
.hero-copy,
.hero-trace {
  position: relative;
  z-index: 1;
}

.top-nav,
.simple-header,
.lesson-header,
.page-header,
.board-header,
.section-title,
.icon-row,
.control-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  min-width: 94px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  padding: 4px 12px 4px 5px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-plum);
  font-weight: 760;
  box-shadow: 0 14px 34px rgba(52, 24, 36, 0.2);
  backdrop-filter: blur(14px);
}

.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(245, 107, 148, 0.22);
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-word {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.icon-row {
  justify-content: space-between;
  gap: 8px;
}

.icon-button,
.sheet-close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(58, 36, 44, 0.12);
}

.screen-top-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 9;
  display: flex;
  justify-content: flex-end;
}

.icon-button svg,
.sheet-close svg,
.tabbar svg,
.primary-button svg,
.secondary-button svg,
.text-button svg,
.play-control svg,
.round-control svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.hero-copy {
  display: grid;
  gap: 11px;
  margin-top: 122px;
  padding: 0 10px 0 12px;
  border-left: 1px solid rgba(255, 226, 236, 0.52);
}

.soft-label,
.hero-copy .soft-label {
  color: var(--pink-strong);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .soft-label {
  color: #ffe5bd;
}

h1,
h2,
p {
  margin: 0;
}

.hero-copy h1 {
  max-width: 320px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 820;
  text-wrap: balance;
  text-shadow: 0 16px 38px rgba(20, 12, 18, 0.34);
}

.hero-copy p {
  max-width: 326px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.58;
  font-size: 13px;
}

.brand-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.brand-promise span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 720;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-promise svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  color: #ffe1b2;
}

.hero-trace {
  position: absolute;
  right: 18px;
  bottom: 28px;
  display: grid;
  gap: 8px;
  width: 72px;
}

.hero-trace::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 227, 234, 0), rgba(255, 227, 234, 0.8), rgba(212, 162, 79, 0));
}

.hero-trace span {
  justify-self: end;
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 229, 189, 0.86));
}

.hero-trace span:nth-child(2) {
  width: 34px;
}

.hero-trace span:nth-child(3) {
  width: 64px;
}

.icon-button.back-control svg {
  color: var(--pink-strong);
}

.mentor-control {
  background: #fff;
  color: var(--pink-strong);
}

.mentor-control.is-active {
  background: linear-gradient(145deg, #ff6f91, #c84871);
  color: #fff;
  box-shadow: 0 12px 26px rgba(137, 38, 78, 0.22);
}

.mentor-control.is-active svg {
  color: currentColor;
}

.mentor-control [data-lucide="loader-circle"] {
  animation: spin 1s linear infinite;
}

.mentor-dial {
  --dial-center-top: 33px;
  --dial-center-right: 37px;
  --dial-radius: 172px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 24;
  width: 262px;
  height: 238px;
  opacity: 0;
  transform: scale(0.86);
  transform-origin: calc(100% - var(--dial-center-right)) var(--dial-center-top);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.88, 0.22, 1.12);
  pointer-events: none;
}

.mentor-dial.is-open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.mentor-dial.is-open .mentor-dial-rings span:first-child {
  animation: mentorRingPulse 2.4s ease-in-out infinite;
}

.mentor-dial-rings {
  position: absolute;
  top: var(--dial-center-top);
  right: var(--dial-center-right);
  width: calc(var(--dial-radius) * 2);
  height: calc(var(--dial-radius) * 2);
  border-radius: 50%;
  transform: translate(50%, -50%);
  pointer-events: none;
}

.mentor-dial-rings::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.13) 0 22%, transparent 23%),
    conic-gradient(from 90deg, rgba(255, 120, 154, 0.36), rgba(159, 241, 245, 0.12) 18deg, rgba(255, 255, 255, 0.08) 74deg, transparent 92deg);
  clip-path: polygon(0 0, 50% 0, 50% 50%, 0 50%);
  opacity: 0.72;
}

.mentor-dial-rings span {
  position: absolute;
  inset: calc(var(--ring-inset, 0) * 1px);
  border: 1px solid rgba(255, 205, 218, 0.22);
  border-radius: inherit;
  clip-path: polygon(0 0, 50% 0, 50% 50%, 0 50%);
}

.mentor-dial-rings span:nth-child(1) {
  --ring-inset: 0;
  border-color: rgba(255, 183, 205, 0.54);
  box-shadow: 0 0 18px rgba(255, 96, 139, 0.18);
}

.mentor-dial-rings span:nth-child(2) {
  --ring-inset: 42;
}

.mentor-dial-rings span:nth-child(3) {
  --ring-inset: 82;
}

.mentor-dial-beam {
  position: absolute;
  left: var(--beam-start-x, 0);
  top: var(--beam-start-y, 0);
  z-index: 1;
  width: var(--beam-length, 0);
  height: 54px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, rgba(255, 120, 154, 0.2), rgba(169, 243, 246, 0.34), rgba(255, 255, 255, 0.06));
  box-shadow: 0 0 20px rgba(156, 239, 244, 0.22);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  transform: translate(0, -50%) rotate(var(--beam-angle, 0deg)) scaleX(0.18);
  transform-origin: 0 50%;
  mix-blend-mode: screen;
  opacity: 0;
  transition:
    left 0.26s ease,
    top 0.26s ease,
    width 0.26s ease,
    transform 0.3s cubic-bezier(0.2, 0.88, 0.22, 1.12),
    opacity 0.18s ease;
  pointer-events: none;
}

.mentor-dial-beam::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid rgba(255, 255, 255, 0.88);
  transform: translateY(-50%);
}

.mentor-dial.is-open.has-selection.has-beam-geometry .mentor-dial-beam {
  opacity: 1;
  transform: translate(0, -50%) rotate(var(--beam-angle)) scaleX(1);
}

.mentor-dial-center {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 1px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--pink-strong);
  box-shadow: 0 10px 24px rgba(137, 38, 78, 0.18), 0 0 0 1px rgba(255, 110, 150, 0.2);
  transform: scale(0.92);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mentor-dial.is-open .mentor-dial-center {
  transform: scale(1.2);
  box-shadow: 0 14px 34px rgba(137, 38, 78, 0.2), 0 0 0 8px rgba(255, 104, 145, 0.12);
}

.mentor-dial-center svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.mentor-dial-center span {
  font-size: 8px;
  font-weight: 820;
  line-height: 1;
}

.mentor-dial-center:disabled {
  cursor: not-allowed;
  filter: grayscale(0.75);
  opacity: 0.62;
}

.mentor-dial-node {
  position: absolute;
  top: calc(var(--dial-center-top) + var(--node-y));
  right: calc(var(--dial-center-right) - var(--node-x));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 220, 229, 0.58);
  padding: 2px;
  background: rgba(35, 25, 32, 0.42);
  box-shadow: 0 10px 22px rgba(20, 12, 17, 0.26);
  transform: translate(50%, -50%) scale(0.72);
  opacity: 0;
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.2, 0.88, 0.22, 1.12),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  backdrop-filter: blur(8px);
}

.mentor-dial.is-open .mentor-dial-node {
  opacity: 1;
  transform: translate(50%, -50%) scale(1);
}

.mentor-dial.is-open .mentor-dial-node:nth-of-type(4) {
  transition-delay: 0.02s;
}

.mentor-dial.is-open .mentor-dial-node:nth-of-type(5) {
  transition-delay: 0.06s;
}

.mentor-dial.is-open .mentor-dial-node:nth-of-type(6) {
  transition-delay: 0.1s;
}

.mentor-dial.is-open .mentor-dial-node:nth-of-type(7) {
  transition-delay: 0.14s;
}

.mentor-dial-node img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.mentor-dial-node .mentor-avatar-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: inherit;
  background: linear-gradient(145deg, #ff9fba, #e55280);
  color: #fff;
  font-size: 15px;
  font-weight: 880;
  line-height: 1;
}

.mentor-dial-node .mentor-dial-label {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  min-width: 48px;
  border-radius: 999px;
  padding: 3px 8px;
  background: linear-gradient(145deg, #ff7c9d, #e65282);
  color: #fff;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.1;
  transform: translateX(-50%) scale(0.78);
  opacity: 0;
  box-shadow: 0 8px 20px rgba(191, 54, 95, 0.24);
}

.mentor-dial-node svg {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  padding: 3px;
  background: rgba(70, 54, 62, 0.88);
  color: #fff;
  stroke-width: 2.4;
}

.mentor-dial-node.is-locked {
  filter: saturate(0.58);
  opacity: 0;
}

.mentor-dial.is-open .mentor-dial-node.is-locked {
  opacity: 0.82;
}

.mentor-dial-node.is-selected {
  z-index: 4;
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 240, 245, 0.98);
  box-shadow: 0 0 0 5px rgba(255, 95, 140, 0.42), 0 0 34px rgba(255, 90, 137, 0.42);
  filter: none;
}

.mentor-dial.is-open .mentor-dial-node.is-selected {
  transform: translate(50%, -50%) scale(1);
}

.mentor-dial-node.is-selected .mentor-dial-label {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.mentor-dial.is-dragging .mentor-dial-node {
  transition-duration: 0.08s;
}

@keyframes mentorRingPulse {
  0%,
  100% {
    opacity: 0.72;
    box-shadow: 0 0 18px rgba(255, 96, 139, 0.18);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 30px rgba(255, 96, 139, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mentor-dial,
  .mentor-dial-node,
  .mentor-dial-center,
  .mentor-dial-beam {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }

  .mentor-dial-rings span {
    animation: none;
  }
}

/* AI 导师首页、导师空间与聊天 */
.mentor-home-shell,
.mentor-space-shell,
.mentor-chat-shell {
  --mentor-accent: #f55782;
  --mentor-accent-strong: #ee356b;
  --mentor-tint: #fff0f2;
  --mentor-ink: #211d21;
  background: #fffaf9;
}

.mentor-home-shell.theme-black,
.mentor-space-shell.theme-black,
.mentor-chat-shell.theme-black {
  --mentor-accent: #29282f;
  --mentor-accent-strong: #17171d;
  --mentor-tint: #f0edee;
}

.mentor-home-shell .shell-content,
.mentor-space-shell .shell-content {
  padding-bottom: 78px;
}

.mentor-home-hero {
  position: relative;
  min-height: 258px;
  overflow: hidden;
  padding: 16px 18px 0;
  background:
    radial-gradient(circle at 78% 13%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(145deg, #fffaf8 3%, #fff0ef 70%, #fce5e7);
}

.mentor-home-hero.theme-black {
  background:
    radial-gradient(circle at 78% 13%, rgba(255, 255, 255, 0.94), transparent 28%),
    linear-gradient(145deg, #fffaf9 3%, #f5eeee 70%, #eee7e8);
}

.mentor-home-nav,
.mentor-home-actions,
.mentor-section-heading,
.mentor-page-topbar,
.mentor-space-title,
.mentor-quick-links button,
.mentor-chat-profile,
.mentor-chat-mode,
.mentor-chat-resources,
.mentor-chat-resources button {
  display: flex;
  align-items: center;
}

.mentor-home-nav,
.mentor-section-heading,
.mentor-page-topbar,
.mentor-space-title {
  justify-content: space-between;
}

.mentor-home-nav {
  position: relative;
  z-index: 3;
}

.mentor-home-nav .brand-mark {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.mentor-home-nav .brand-word {
  color: #1c1b20;
  font-size: 20px;
}

.mentor-home-actions {
  gap: 11px;
}

.mentor-notification-button,
.mentor-page-topbar > button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: #252129;
}

.mentor-notification-button {
  position: relative;
}

.mentor-notification-button span {
  position: absolute;
  top: 5px;
  right: 4px;
  width: 7px;
  height: 7px;
  border: 2px solid white;
  border-radius: 50%;
  background: #ff4d7a;
}

.mentor-home-profile {
  display: grid;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-items: center;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.7);
  color: #252129;
  box-shadow: 0 7px 20px rgba(81, 42, 57, 0.15);
  transform: translateX(3px);
}

.mentor-home-profile svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.1;
}

.mentor-home-mentor-picker {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #f24f78;
  box-shadow: 0 7px 20px rgba(81, 42, 57, 0.15);
}

.mentor-home-mentor-picker svg {
  width: 19px;
  height: 19px;
}

.mentor-home-mentor-picker b {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fb4c7b;
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.mentor-home-mentor-picker:hover,
.mentor-home-mentor-picker:focus-visible {
  color: #d93d67;
  transform: translateY(-1px);
}

.mentor-home-mentor-picker:focus-visible {
  outline: 3px solid rgba(255, 77, 122, 0.56);
  outline-offset: 3px;
}

.mentor-home-welcome {
  position: relative;
  z-index: 2;
  min-height: 198px;
  padding-top: 28px;
}

.mentor-home-copy {
  position: relative;
  z-index: 2;
  width: 63%;
}

.mentor-home-copy h1 {
  margin: 0 0 5px;
  color: #1d1b20;
  font-size: 29px;
  letter-spacing: -1.5px;
}

.mentor-home-copy h1 span {
  color: #e4ac43;
}

.mentor-home-copy > p {
  margin: 0;
  color: #4e4549;
  font-size: 12px;
}

.mentor-home-copy > p strong {
  margin-left: 3px;
  color: var(--mentor-accent-strong);
}

.mentor-home-copy > p em {
  margin-left: 8px;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--mentor-accent-strong);
  font-size: 9px;
  font-style: normal;
}

.mentor-home-speech {
  position: relative;
  max-width: 214px;
  margin-top: 18px;
  border-left: 2px solid var(--mentor-accent);
  padding: 3px 0 3px 12px;
  background: transparent;
  color: #413b3f;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.1px;
}

.mentor-home-speech::before {
  content: "“";
  position: absolute;
  top: -11px;
  left: 7px;
  color: var(--mentor-accent);
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1;
  opacity: 0.72;
}

.mentor-home-speech strong {
  color: var(--mentor-accent-strong);
}

.mentor-home-portrait {
  position: absolute;
  right: -29px;
  bottom: 0;
  width: 198px;
  height: 230px;
}

.mentor-home-portrait::after {
  content: "";
  position: absolute;
  inset: auto 8px 0 8px;
  height: 54%;
  background: linear-gradient(180deg, transparent, #fce9e9 90%);
  pointer-events: none;
}

.mentor-home-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  filter: drop-shadow(0 15px 24px rgba(89, 49, 59, 0.13));
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

.mentor-home-portrait span {
  position: absolute;
  z-index: 2;
  right: 6px;
  bottom: 22px;
  max-width: 110px;
  color: var(--mentor-accent-strong);
  font-family: cursive;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
  transform: rotate(-5deg);
}

.mentor-home-hero.has-mentor-group .mentor-home-portrait.is-mentor-group {
  right: -40px;
  width: 370px;
  height: 242px;
  pointer-events: none;
}

.mentor-home-portrait.is-mentor-group::after {
  right: 0;
  left: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(252, 233, 233, 0.92) 96%);
}

.mentor-home-portrait.is-mentor-group img {
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 15px 24px rgba(89, 49, 59, 0.13));
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
}

.mentor-home-content,
.mentor-space-content,
.mentor-chat-content {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 0 16px 24px;
}

.mentor-analysis-card {
  position: relative;
  z-index: 3;
  min-width: 0;
  margin-top: -5px;
  border: 1px solid rgba(235, 116, 142, 0.13);
  border-radius: 22px;
  padding: 18px 16px 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(120, 67, 81, 0.09);
}

.mentor-analysis-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 10px;
}

.mentor-analysis-heading span {
  color: var(--mentor-accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.mentor-analysis-heading h2,
.mentor-section-heading h2,
.mentor-space-title h2 {
  margin: 3px 0 0;
  color: var(--mentor-ink);
}

.mentor-analysis-heading h2 {
  font-size: 22px;
}

.mentor-analysis-heading p {
  margin: 7px 0 12px;
  color: #6f656a;
  font-size: 10px;
  line-height: 1.65;
}

.mentor-analysis-visual {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffecf0, #ff8dab);
  color: #fff;
  transform: rotate(6deg);
  box-shadow: 0 14px 28px rgba(237, 73, 118, 0.2);
}

.theme-black .mentor-analysis-visual {
  background: linear-gradient(145deg, #dedade, #292830);
}

.mentor-link-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(235, 96, 130, 0.28);
  border-radius: 13px;
  background: #fff;
}

.mentor-link-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  resize: none;
  border: 0;
  outline: 0;
  padding: 13px 12px;
  background: transparent;
  color: #332e31;
}

.mentor-link-field button {
  display: inline-flex;
  min-width: 58px;
  min-height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-right: 0;
  border-radius: 9px;
  padding: 5px 7px 4px;
  background: var(--mentor-tint);
  color: var(--mentor-accent-strong);
}

.mentor-link-field button svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.3;
  transform: translateY(-2px);
}

.mentor-link-field button span {
  width: 100%;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.mentor-link-field button:not(:disabled) {
  cursor: pointer;
}

.mentor-analysis-submit,
.mentor-save-settings {
  width: 100%;
  border-radius: 12px;
  padding: 13px;
  background: linear-gradient(100deg, var(--mentor-accent), var(--mentor-accent-strong));
  color: white;
  font-weight: 780;
}

.mentor-analysis-submit {
  margin-top: 9px;
}

.mentor-analysis-submit svg,
.mentor-save-settings svg {
  width: 16px;
  vertical-align: -3px;
}

.mentor-hot-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  margin-top: 10px;
  white-space: nowrap;
}

.mentor-hot-tags span {
  color: #71686c;
  font-size: 10px;
}

.mentor-hot-tags button {
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff3f2;
  color: #8c555d;
  font-size: 9px;
}

.mentor-picker-section,
.current-mentor-strip,
.mentor-continue-card,
.mentor-progress-card,
.mentor-daily-card,
.mentor-space-panel,
.mentor-chat-profile,
.mentor-chat-mode,
.mentor-chat-resources {
  border: 1px solid rgba(126, 72, 86, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(119, 63, 80, 0.06);
}

.mentor-picker-section,
.mentor-progress-card,
.mentor-space-panel {
  border-radius: 20px;
  padding: 15px;
}

.mentor-section-heading h2 {
  font-size: 16px;
}

.mentor-section-heading p {
  margin: 3px 0 0;
  color: #95888e;
  font-size: 9px;
}

.mentor-section-heading > button,
.mentor-section-heading > div + button {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #8c7e84;
  font-size: 10px;
}

.mentor-section-heading button svg {
  width: 14px;
}

.mentor-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mentor-picker-card {
  overflow: hidden;
  border: 1px solid #f0e5e6;
  border-radius: 13px;
  background: #fffcfb;
}

.mentor-picker-card.is-current {
  border-color: color-mix(in srgb, var(--mentor-accent) 55%, white);
}

.mentor-picker-image {
  position: relative;
  height: 94px;
  overflow: hidden;
  background: #f4ecea;
}

.mentor-picker-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.mentor-picker-image span {
  position: absolute;
  top: 5px;
  left: 5px;
  border-radius: 999px;
  padding: 3px 5px;
  background: var(--mentor-accent);
  color: white;
  font-size: 7px;
}

.mentor-picker-copy {
  min-height: 75px;
  padding: 8px 7px 4px;
}

.mentor-picker-copy strong,
.mentor-picker-copy small,
.mentor-picker-copy em {
  display: block;
}

.mentor-picker-copy strong {
  font-size: 12px;
}

.mentor-picker-copy small {
  overflow: hidden;
  margin: 2px 0 5px;
  color: #6c6267;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentor-picker-copy em {
  color: #9d6971;
  font-size: 7px;
  font-style: normal;
  line-height: 1.5;
}

.mentor-picker-card > button {
  width: calc(100% - 10px);
  margin: 4px 5px 6px;
  border: 1px solid rgba(235, 82, 122, 0.2);
  border-radius: 8px;
  padding: 6px 2px;
  background: var(--mentor-tint);
  color: var(--mentor-accent-strong);
  font-size: 8px;
}

.current-mentor-strip {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-areas:
    "avatar identity"
    "actions actions";
  align-items: center;
  gap: 10px 11px;
  border-radius: 20px;
  padding: 17px 14px 13px;
}

.current-mentor-strip > span {
  position: absolute;
  top: -8px;
  left: 12px;
  border-radius: 999px;
  padding: 3px 7px;
  background: #fff;
  color: var(--mentor-accent-strong);
  font-size: 8px;
}

.current-mentor-strip > img {
  grid-area: avatar;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.current-mentor-strip > div:not(.current-mentor-actions) {
  grid-area: identity;
  min-width: 0;
}

.current-mentor-strip > div strong,
.current-mentor-strip > div small,
.current-mentor-strip > div p {
  display: block;
  min-width: 0;
  margin: 0;
}

.current-mentor-strip > div strong {
  color: #2b2327;
  font-size: 17px;
  line-height: 1.2;
}

.current-mentor-strip > div small {
  color: #8c7e84;
  font-size: 9px;
}

.current-mentor-strip > div p {
  margin-top: 4px;
  color: #9e6f76;
  font-size: 8px;
}

.current-mentor-actions {
  display: grid;
  grid-area: actions;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  align-items: center;
}

.current-mentor-enter,
.current-mentor-switch {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 11px;
  white-space: nowrap;
}

.current-mentor-enter {
  min-width: 0;
  padding: 0 12px;
  background: linear-gradient(100deg, var(--mentor-accent), var(--mentor-accent-strong));
  color: #fff;
  font-size: 10px;
  font-weight: 760;
  box-shadow: 0 8px 18px rgba(239, 53, 107, 0.16);
}

.current-mentor-switch {
  padding: 0 11px;
  border: 1px solid rgba(235, 82, 122, 0.2);
  background: #fff8f8;
  color: var(--mentor-accent-strong);
  font-size: 9px;
}

.current-mentor-strip button svg {
  width: 12px;
}

.current-mentor-switch {
  gap: 4px;
}

.current-mentor-switch svg {
  width: 14px;
}

.mentor-continue-card {
  display: grid;
  grid-template-columns: 52px 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-radius: 18px;
  padding: 11px;
  color: #251f22;
  text-align: left;
}

.mentor-continue-card.is-empty {
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

.mentor-continue-card > span {
  font-size: 11px;
  font-weight: 760;
  line-height: 1.45;
}

.mentor-continue-card > img {
  width: 88px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.mentor-continue-card > div strong,
.mentor-continue-card > div small {
  display: block;
  min-width: 0;
}

.mentor-continue-card > div strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentor-continue-card > div small {
  margin-top: 3px;
  color: #8d8186;
  font-size: 8px;
}

.mentor-continue-card > div i,
.mentor-progress-bar > span {
  display: block;
  overflow: hidden;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: #f1e8e9;
}

.mentor-continue-card > div i b,
.mentor-progress-bar > span b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mentor-accent);
}

.mentor-continue-card > em,
.mentor-daily-card > em {
  border-radius: 9px;
  padding: 9px 10px;
  background: var(--mentor-accent);
  color: white;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.mentor-recommendations {
  min-width: 0;
  overflow: hidden;
}

.mentor-recommendation-grid {
  display: grid;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.mentor-recommendation-grid > button {
  overflow: hidden;
  border: 1px solid #f0e6e5;
  border-radius: 12px;
  background: white;
  text-align: left;
}

.mentor-recommendation-grid > button > span {
  position: relative;
  display: block;
  height: 76px;
}

.mentor-recommendation-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mentor-recommendation-grid span svg {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  padding: 4px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--mentor-accent);
}

.mentor-recommendation-grid strong,
.mentor-recommendation-grid small {
  display: block;
  overflow: hidden;
  padding: 0 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentor-recommendation-grid strong {
  margin-top: 7px;
  font-size: 9px;
}

.mentor-recommendation-grid small {
  margin: 3px 0 8px;
  color: #96898e;
  font-size: 7px;
}

.mentor-progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}

.mentor-progress-stats > div {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 8px;
  border-right: 1px solid #f0e5e6;
}

.mentor-progress-stats > div:last-child {
  border-right: 0;
}

.mentor-progress-stats svg {
  width: 20px;
  color: var(--mentor-accent-strong);
}

.mentor-progress-stats span,
.mentor-progress-stats strong {
  display: block;
}

.mentor-progress-stats span {
  color: #807278;
  font-size: 8px;
}

.mentor-progress-stats strong {
  margin-top: 2px;
  color: #281f23;
  font-size: 11px;
}

.mentor-progress-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.mentor-progress-bar > span {
  margin: 0;
}

.mentor-progress-bar small {
  color: #93868b;
  font-size: 8px;
}

.mentor-daily-card {
  position: relative;
  min-height: 105px;
  overflow: hidden;
  border-radius: 17px;
  padding: 17px;
  background: linear-gradient(100deg, #ffe3e3, #fff6f3);
  color: #292125;
  text-align: left;
}

.theme-black .mentor-daily-card {
  background: linear-gradient(100deg, #ebe5e5, #fbf7f5);
}

.mentor-daily-card > span,
.mentor-daily-card > strong {
  position: relative;
  z-index: 2;
  display: block;
}

.mentor-daily-card > span {
  font-size: 9px;
}

.mentor-daily-card > strong {
  margin: 5px 0 10px;
  font-size: 17px;
}

.mentor-daily-card > em {
  position: relative;
  z-index: 2;
  padding: 6px 10px;
}

.mentor-daily-card img {
  position: absolute;
  right: -3px;
  bottom: -38px;
  width: 130px;
  height: 150px;
  object-fit: cover;
  object-position: center 18%;
  -webkit-mask-image: linear-gradient(to left, #000 70%, transparent);
  mask-image: linear-gradient(to left, #000 70%, transparent);
}

.mentor-page-topbar {
  position: sticky;
  z-index: 8;
  top: 0;
  min-height: 62px;
  padding: 12px 16px;
  background: rgba(255, 250, 249, 0.9);
  backdrop-filter: blur(18px);
}

.mentor-page-topbar h1 {
  margin: 0;
  font-size: 18px;
}

.mentor-space-content {
  padding-top: 4px;
}

.mentor-profile-hero {
  position: relative;
  min-height: 242px;
  overflow: hidden;
  border: 1px solid rgba(244, 145, 163, 0.18);
  border-radius: 22px;
  padding: 23px 16px 16px;
  background: linear-gradient(135deg, #fff6f4, #ffe7e8);
}

.theme-black .mentor-profile-hero {
  background: linear-gradient(135deg, #faf7f6, #e9e3e4);
}

.mentor-profile-hero > div {
  position: relative;
  z-index: 2;
  width: 65%;
  min-width: 0;
}

.mentor-profile-hero > div > span {
  color: var(--mentor-accent-strong);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.mentor-profile-hero h2 {
  margin: 7px 0 10px;
  font-size: 29px;
}

.mentor-profile-hero h2 em {
  margin-left: 5px;
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--mentor-accent-strong);
  font-size: 8px;
  font-style: normal;
  vertical-align: 5px;
}

.mentor-profile-hero p {
  max-width: 185px;
  margin: 0 0 11px;
  color: #54484e;
  font-size: 11px;
  line-height: 1.7;
}

.mentor-profile-hero small {
  display: inline-block;
  margin: 0 3px 4px 0;
  border-radius: 999px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.74);
  color: #9d6670;
  font-size: 8px;
}

.mentor-profile-hero nav {
  display: grid;
  max-width: 220px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}

.mentor-profile-hero nav button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(239, 82, 123, 0.28);
  border-radius: 11px;
  padding: 0 11px;
  background: white;
  color: var(--mentor-accent-strong);
  font-size: 9px;
  white-space: nowrap;
}

.mentor-profile-hero nav button:first-child {
  min-width: 94px;
  background: var(--mentor-accent);
  color: white;
  box-shadow: 0 8px 18px rgba(239, 53, 107, 0.16);
}

.mentor-profile-hero nav button:last-child {
  min-width: 78px;
  background: rgba(255, 255, 255, 0.7);
}

.mentor-profile-hero nav svg {
  width: 13px;
  vertical-align: -3px;
}

.mentor-profile-hero > img {
  position: absolute;
  right: -20px;
  bottom: -16px;
  width: 188px;
  height: 242px;
  object-fit: cover;
  object-position: center 15%;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
}

.mentor-space-title {
  margin-bottom: 11px;
}

.mentor-space-title h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
}

.mentor-space-title h2 svg {
  width: 18px;
  color: var(--mentor-accent);
}

.mentor-space-title span {
  color: #9a8e92;
  font-size: 8px;
}

.mentor-space-panel dl {
  margin: 0;
}

.mentor-space-panel dl > div {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 12px;
  border-top: 1px solid #f2e8e8;
  padding: 10px 0;
}

.mentor-space-panel dt {
  color: #8e646b;
  font-size: 10px;
  font-weight: 760;
}

.mentor-space-panel dd {
  margin: 0;
  color: #50484c;
  font-size: 10px;
  line-height: 1.55;
}

.mentor-knowledge-grid,
.mentor-customize-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.mentor-knowledge-grid article {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px solid #f2e4e4;
  border-radius: 12px;
  padding: 9px 5px;
  background: #fffcfb;
  text-align: center;
}

.mentor-knowledge-grid svg {
  width: 22px;
  color: var(--mentor-accent);
}

.mentor-knowledge-grid strong,
.mentor-knowledge-grid small {
  display: block;
}

.mentor-knowledge-grid strong {
  font-size: 9px;
}

.mentor-knowledge-grid small {
  color: #9a8d92;
  font-size: 7px;
  line-height: 1.4;
}

.mentor-grounding-note {
  margin: 10px 0 0;
  color: #766a6f;
  font-size: 9px;
  line-height: 1.5;
}

.mentor-grounding-note svg {
  width: 14px;
  margin-right: 5px;
  color: var(--mentor-accent);
  vertical-align: -3px;
}

.mentor-customize-grid button {
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1px solid #f0e4e5;
  border-radius: 12px;
  padding: 10px 5px;
  background: #fffafa;
  color: var(--mentor-accent);
}

.mentor-customize-grid button > svg {
  width: 20px;
}

.mentor-customize-grid span,
.mentor-customize-grid strong {
  display: block;
  color: #55494e;
  font-size: 8px;
}

.mentor-customize-grid strong {
  margin-top: 3px;
  color: var(--mentor-accent-strong);
}

.mentor-save-settings {
  margin-top: 10px;
  padding: 11px;
}

.mentor-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mentor-quick-links button {
  gap: 8px;
  border-radius: 13px;
  padding: 10px;
  background: #fff4f3;
  color: var(--mentor-accent);
  text-align: left;
}

.mentor-quick-links button > svg:first-child {
  width: 22px;
}

.mentor-quick-links button > svg:last-child {
  width: 14px;
  margin-left: auto;
}

.mentor-quick-links span,
.mentor-quick-links small {
  display: block;
}

.mentor-quick-links span {
  color: #342d30;
  font-size: 10px;
  font-weight: 740;
}

.mentor-quick-links small {
  margin-top: 3px;
  color: #96898e;
  font-size: 7px;
}

.mentor-chat-shell .shell-content {
  overflow: hidden;
}

.mentor-chat-topbar {
  position: relative;
  background: #fffaf9;
}

.mentor-chat-topbar > button:last-child {
  color: var(--mentor-accent);
}

.mentor-chat-content {
  height: calc(100% - 62px);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
  overflow: hidden;
  padding-bottom: 12px;
}

.mentor-chat-profile,
.mentor-chat-mode,
.mentor-chat-resources {
  border-radius: 17px;
  padding: 12px;
}

.mentor-chat-profile {
  gap: 11px;
}

.mentor-chat-profile > img {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  object-fit: cover;
}

.mentor-chat-profile h2 {
  margin: 0;
  font-size: 19px;
}

.mentor-chat-profile h2 em {
  margin-left: 6px;
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--mentor-tint);
  color: var(--mentor-accent-strong);
  font-size: 8px;
  font-style: normal;
  vertical-align: 3px;
}

.mentor-chat-profile p {
  margin: 5px 0;
  color: #776a70;
  font-size: 9px;
}

.mentor-chat-profile span {
  color: #776d71;
  font-size: 8px;
}

.mentor-chat-profile span i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #42c869;
}

.mentor-chat-mode {
  gap: 9px;
}

.mentor-chat-mode > svg {
  width: 30px;
  color: var(--mentor-accent);
}

.mentor-chat-mode strong {
  font-size: 10px;
}

.mentor-chat-mode p {
  margin: 2px 0 0;
  color: #83777c;
  font-size: 8px;
}

.mentor-chat-mode button {
  margin-left: auto;
  background: transparent;
  color: var(--mentor-accent-strong);
  font-size: 9px;
}

.mentor-chat-mode button svg {
  width: 12px;
  vertical-align: -3px;
}

.mentor-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.mentor-chat-messages article {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.mentor-chat-messages article > img {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.mentor-chat-messages article > div {
  max-width: 78%;
  border: 1px solid #f1e3e4;
  border-radius: 15px 15px 15px 4px;
  padding: 10px 12px;
  background: white;
  box-shadow: 0 7px 20px rgba(97, 51, 65, 0.05);
}

.mentor-chat-messages article.is-user {
  justify-content: flex-end;
}

.mentor-chat-messages article.is-user > div {
  border: 0;
  border-radius: 15px 15px 4px 15px;
  background: var(--mentor-tint);
}

.mentor-chat-messages strong {
  display: block;
  margin-bottom: 4px;
  color: var(--mentor-accent-strong);
  font-size: 9px;
}

.mentor-chat-messages p {
  margin: 0;
  color: #41383d;
  font-size: 10px;
  line-height: 1.6;
}

.mentor-chat-messages .is-thinking p i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--mentor-accent);
  animation: mentorThinking 1s infinite alternate;
}

.mentor-chat-messages .is-thinking p {
  display: flex;
  align-items: center;
  gap: 3px;
}

.mentor-chat-messages .is-thinking p span {
  margin-right: 2px;
  color: #8f7e85;
  font-size: 9px;
}

.mentor-chat-messages .is-thinking p i:nth-child(2) { animation-delay: 0.2s; }
.mentor-chat-messages .is-thinking p i:nth-child(3) { animation-delay: 0.4s; }

.mentor-chat-messages article.is-error > div {
  border-color: rgba(235, 96, 130, 0.26);
  background: #fff7f8;
}

.mentor-chat-messages article.is-error p {
  color: #8a4e5b;
}

@keyframes mentorThinking {
  to { opacity: 0.25; transform: translateY(-2px); }
}

.mentor-chat-suggestions {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.mentor-chat-suggestions-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.mentor-chat-suggestions-heading strong {
  color: #4a3d42;
  font-size: 9px;
}

.mentor-chat-suggestions-heading span {
  color: #a09196;
  font-size: 8px;
}

.mentor-chat-suggestion-list {
  display: flex;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 3px;
  scrollbar-width: none;
}

.mentor-chat-suggestion-list::-webkit-scrollbar {
  display: none;
}

.mentor-chat-suggestion-list button {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid #f1e4e5;
  border-radius: 12px;
  padding: 0 10px;
  background: linear-gradient(180deg, #fff, #fff9f9);
  color: #62575c;
  font-size: 9px;
  box-shadow: 0 5px 14px rgba(119, 63, 80, 0.05);
}

.mentor-chat-suggestion-list button:hover,
.mentor-chat-suggestion-list button:focus-visible {
  border-color: rgba(235, 82, 122, 0.34);
  color: var(--mentor-accent-strong);
}

.mentor-chat-suggestion-list svg {
  width: 10px;
  color: var(--mentor-accent);
}

.mentor-chat-resources {
  padding: 8px;
}

.mentor-chat-resources button {
  width: 50%;
  gap: 7px;
  border-right: 1px solid #eee3e4;
  padding: 3px 7px;
  background: transparent;
  color: var(--mentor-accent);
  text-align: left;
}

.mentor-chat-resources button:last-child {
  border-right: 0;
}

.mentor-chat-resources button > svg:first-child {
  width: 22px;
}

.mentor-chat-resources button > svg:last-child {
  width: 13px;
  margin-left: auto;
}

.mentor-chat-resources span,
.mentor-chat-resources small {
  display: block;
}

.mentor-chat-resources span {
  color: #40383c;
  font-size: 9px;
  font-weight: 740;
}

.mentor-chat-resources small {
  margin-top: 2px;
  color: #9d9196;
  font-size: 7px;
}

.mentor-chat-composer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 7px;
  border: 1px solid #efe2e3;
  border-radius: 19px;
  padding: 7px;
  background: white;
  box-shadow: 0 10px 30px rgba(93, 48, 63, 0.1);
}

.mentor-chat-composer input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #393135;
  font-size: 10px;
}

.mentor-chat-composer button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: #fff5f5;
  color: var(--mentor-accent);
}

.mentor-chat-composer button[type="submit"] {
  background: var(--mentor-accent);
  color: white;
}

.mentor-chat-composer svg {
  width: 15px;
}

@media (max-width: 390px) {
  .mentor-home-copy h1 { font-size: 26px; }
  .mentor-home-portrait { right: -36px; width: 185px; }
  .mentor-home-hero.has-mentor-group .mentor-home-portrait.is-mentor-group { right: -52px; width: 350px; }
  .mentor-picker-grid,
  .mentor-recommendation-grid,
  .mentor-knowledge-grid,
  .mentor-customize-grid { gap: 5px; }
  .mentor-picker-copy { padding-right: 4px; padding-left: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .mentor-chat-messages .is-thinking p i { animation: none; }
}

.content-stack,
.skin-screen,
.complete-screen,
.profile-stack,
.history-list-page,
.skin-history-page,
.card-grid {
  display: grid;
  gap: 16px;
  padding: 18px 18px 112px;
}

.home-content {
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.stats-grid,
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card,
.link-card,
.mini-section,
.option-card,
.current-step-card,
.product-card,
.profile-card,
.empty-card,
.history-row,
.history-card,
.look-card,
.tip-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(95, 55, 68, 0.08);
}

.stat-card {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 13px;
}

.stat-button {
  color: inherit;
  text-align: left;
}

.stat-card span,
.section-title span,
.current-step-card span,
.product-card span,
.profile-card span,
.history-card span,
.look-card span,
.complete-stats span,
.video-meta span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.stat-card strong {
  font-size: 19px;
  line-height: 1.18;
  font-weight: 760;
}

.stat-card small {
  color: var(--rose);
  font-size: 11px;
  font-weight: 680;
}

.link-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.link-card label {
  font-size: 14px;
  font-weight: 760;
}

.link-card textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: #fff;
  color: var(--ink);
}

.link-card textarea {
  min-height: 96px;
  resize: none;
  padding: 12px;
  line-height: 1.5;
  font-size: 13px;
}

.link-card textarea:focus {
  border-color: rgba(255, 111, 145, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 111, 145, 0.1);
}

.example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.example-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 111, 145, 0.42);
  border-radius: 999px;
  background: #fff;
  color: var(--pink-strong);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(255, 111, 145, 0.1);
}

.example-button:active {
  transform: translateY(1px);
}

.form-error {
  color: var(--pink-strong);
  font-size: 12px;
  line-height: 1.45;
}

.primary-button,
.secondary-button,
.ghost-button,
.chip-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 760;
}

.primary-button {
  width: 100%;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--pink), var(--pink-strong));
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 111, 145, 0.28);
}

.secondary-button {
  width: 100%;
  padding: 0 18px;
  border: 1px solid rgba(255, 111, 145, 0.28);
  background: #fff;
  color: var(--pink-strong);
}

.text-button {
  min-height: 34px;
  padding: 0;
  background: transparent;
  color: var(--pink-strong);
}

.ghost-button {
  width: 100%;
  min-height: 40px;
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
}

.chip-button {
  min-height: 34px;
  padding: 0 12px;
  background: var(--pink-soft);
  color: var(--pink-strong);
  white-space: nowrap;
}

.mini-section {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.section-title strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  font-weight: 760;
}

.history-strip,
.history-list-page {
  display: grid;
  gap: 12px;
}

.history-card,
.history-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  text-align: left;
}

.history-card img,
.history-row img {
  width: 62px;
  height: 62px;
  border-radius: var(--radius);
  object-fit: cover;
}

.history-card strong,
.history-row strong,
.look-card strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-card small {
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--pink-soft);
  color: var(--pink-strong);
  font-size: 10px;
  font-weight: 720;
}

.tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border-top: 1px solid var(--line);
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  background: rgba(255, 250, 248, 0.92);
  backdrop-filter: blur(18px);
}

.tabbar button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 44px;
  border-radius: var(--radius);
  background: transparent;
  color: #ada1a8;
  font-size: 10px;
  font-weight: 680;
}

.tabbar button.active {
  color: var(--pink-strong);
  background: var(--pink-soft);
}

.practice-shell,
.practice-detail-shell {
  background: #fffdfa;
}

.practice-shell .shell-content,
.practice-detail-shell .shell-content {
  padding-bottom: 84px;
}

.practice-header {
  display: grid;
  gap: 18px;
  padding: 28px 20px 22px;
  background: #f8eeee;
}

.practice-kicker,
.practice-library-title span,
.practice-section-heading span,
.practice-goal > span {
  display: block;
  color: var(--pink-strong);
  font-size: 11px;
  font-weight: 780;
}

.practice-header h1 {
  margin: 7px 0 8px;
  font-size: 27px;
  line-height: 1.18;
  font-weight: 820;
}

.practice-header p,
.practice-feature p,
.practice-card p,
.practice-detail-caption p,
.practice-goal p,
.practice-step-row p,
.practice-tips p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.practice-progress {
  display: grid;
  gap: 8px;
}

.practice-progress > span {
  color: #6d6268;
  font-size: 12px;
}

.practice-progress b {
  color: var(--ink);
  font-size: 18px;
}

.practice-progress > div {
  overflow: hidden;
  height: 5px;
  border-radius: 3px;
  background: rgba(236, 82, 122, 0.13);
}

.practice-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pink-strong);
  transition: width 220ms ease;
}

.practice-feature {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
}

.practice-feature img {
  width: 116px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
}

.practice-feature div {
  min-width: 0;
}

.practice-feature span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4f806d;
  font-size: 11px;
  font-weight: 780;
}

.practice-feature span svg {
  width: 14px;
  height: 14px;
}

.practice-feature strong {
  display: block;
  margin: 8px 0 7px;
  font-size: 17px;
  line-height: 1.35;
}

.practice-feature p {
  font-size: 12px;
}

.practice-library {
  padding: 24px 20px 32px;
}

.practice-library-title,
.practice-detail-header,
.practice-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.practice-library-title h2,
.practice-section-heading h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.3;
}

.practice-library-title > svg {
  width: 20px;
  height: 20px;
  color: #a3979d;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.practice-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease;
}

.practice-card:hover {
  border-color: color-mix(in srgb, var(--practice-accent) 45%, white);
  transform: translateY(-2px);
}

.practice-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2eceb;
}

.practice-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(32, 24, 28, 0.28));
}

.practice-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.practice-number,
.practice-done {
  position: absolute;
  z-index: 1;
  top: 8px;
  display: grid;
  place-items: center;
  height: 24px;
  border-radius: 4px;
}

.practice-number {
  left: 8px;
  min-width: 30px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--practice-accent);
  font-size: 10px;
  font-weight: 820;
}

.practice-done {
  right: 8px;
  width: 24px;
  background: #3f8068;
  color: #fff;
}

.practice-done svg {
  width: 14px;
  height: 14px;
}

.practice-card-body {
  display: block;
  min-height: 108px;
  padding: 12px;
}

.practice-card-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.practice-card-title svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--practice-accent);
}

.practice-card-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.practice-card small {
  display: block;
  margin: 7px 0 4px;
  color: #a09399;
  font-size: 10px;
}

.practice-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 11px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.practice-detail-header {
  position: sticky;
  z-index: 8;
  top: 0;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(16px);
}

.practice-detail-header > strong {
  font-size: 14px;
}

.plain-back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: #f4e9e8;
  color: var(--ink);
}

.plain-back svg {
  width: 18px;
  height: 18px;
}

.practice-detail-step {
  min-width: 36px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.practice-detail-hero {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  background: #eee7e6;
}

.practice-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 20, 22, 0.03) 35%, rgba(25, 20, 22, 0.76));
}

.practice-detail-hero img {
  width: 100%;
  height: 292px;
  object-fit: cover;
}

.practice-detail-caption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 20px;
  left: 20px;
  color: #fff;
}

.practice-detail-caption span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 720;
}

.practice-detail-caption span svg {
  width: 15px;
  height: 15px;
  color: #fff;
}

.practice-detail-caption h1 {
  margin: 6px 0 1px;
  font-size: 30px;
  line-height: 1.15;
}

.practice-detail-caption p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.practice-detail-body {
  padding: 0 20px 32px;
}

.practice-goal,
.practice-detail-section,
.practice-tips {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.practice-goal p {
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
}

.practice-step-list {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.practice-step-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.practice-step-row > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3e5e5;
  color: var(--pink-strong);
  font-size: 11px;
  font-weight: 820;
}

.practice-step-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.practice-step-row p,
.practice-tips p {
  font-size: 12px;
}

.practice-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.practice-tools span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  font-size: 11px;
}

.practice-tools svg {
  width: 13px;
  height: 13px;
  color: #4f806d;
}

.practice-tips > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.practice-tips svg {
  width: 18px;
  height: 18px;
  color: var(--practice-accent);
}

.practice-tips p {
  position: relative;
  padding-left: 14px;
}

.practice-tips p + p {
  margin-top: 5px;
}

.practice-tips p::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--practice-accent);
}

.practice-complete-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  border-radius: var(--radius);
  background: var(--pink-strong);
  color: #fff;
  font-weight: 760;
}

.practice-complete-button.is-complete {
  background: #e6ece8;
  color: #3f8068;
  opacity: 1;
}

.practice-complete-button svg {
  width: 18px;
  height: 18px;
}

.practice-directory-shell {
  background: #fbfaf8;
}

.practice-directory-shell .shell-content {
  padding-bottom: 78px;
}

.practice-directory-topbar {
  position: sticky;
  z-index: 7;
  top: 0;
  display: grid;
  gap: 12px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.96);
  backdrop-filter: blur(18px);
}

.practice-directory-heading,
.practice-results-heading,
.practice-video-title-row,
.practice-creator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.practice-directory-heading > div,
.practice-results-heading > div,
.practice-video-title-row h3 {
  min-width: 0;
}

.practice-directory-heading span:first-child,
.practice-results-heading span {
  color: var(--pink-strong);
  font-size: 10px;
  font-weight: 760;
}

.practice-directory-heading h1 {
  margin: 3px 0 0;
  font-size: 20px;
  line-height: 1.25;
}

.practice-directory-total {
  flex: 0 0 auto;
  border: 1px solid rgba(236, 82, 122, 0.2);
  border-radius: 6px;
  padding: 6px 8px;
  background: #fff2f5;
  color: var(--pink-strong);
  font-size: 10px;
  font-weight: 720;
}

.practice-search-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 28px;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(61, 49, 55, 0.13);
  border-radius: var(--radius);
  padding: 0 7px 0 12px;
  background: #fff;
}

.practice-search-field:focus-within {
  border-color: rgba(236, 82, 122, 0.48);
  box-shadow: 0 0 0 3px rgba(236, 82, 122, 0.08);
}

.practice-search-field > svg {
  width: 17px;
  height: 17px;
  color: #9b9096;
}

.practice-search-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.practice-search-field input::placeholder {
  color: #a99fa4;
}

.practice-search-field button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #f5ecec;
  color: #8d8187;
}

.practice-search-field button svg {
  width: 14px;
  height: 14px;
}

.practice-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.practice-filter-row label {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: #f7f2f1;
}

.practice-filter-row svg {
  width: 15px;
  height: 15px;
  color: var(--pink-strong);
}

.practice-filter-row select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #5f555a;
  font-size: 11px;
  font-weight: 680;
}

.practice-directory-layout {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: start;
  min-height: 560px;
}

.practice-step-rail {
  position: sticky;
  top: 164px;
  overflow-y: auto;
  max-height: calc(100vh - 250px);
  max-height: calc(100dvh - 250px);
  border-right: 1px solid var(--line);
  background: #f4efed;
  scrollbar-width: none;
}

.practice-step-rail::-webkit-scrollbar {
  display: none;
}

.practice-step-rail-label {
  padding: 12px 10px 8px;
  color: #9d9197;
  font-size: 9px;
  font-weight: 760;
}

.practice-step-tab {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 7px 7px 7px 9px;
  border-top: 1px solid rgba(63, 45, 54, 0.06);
  background: transparent;
  color: #766b71;
  text-align: left;
}

.practice-step-tab::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: transparent;
}

.practice-step-tab span {
  color: #a99ca2;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.practice-step-tab strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.25;
}

.practice-step-tab.active {
  background: #fff;
  color: var(--ink);
}

.practice-step-tab.active::before {
  background: var(--pink-strong);
}

.practice-step-tab.active span {
  color: var(--pink-strong);
}

.practice-video-results {
  min-width: 0;
  padding: 14px 12px 28px;
}

.practice-results-heading {
  align-items: flex-end;
  margin-bottom: 12px;
}

.practice-results-heading h2 {
  overflow: hidden;
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.practice-results-heading > strong {
  flex: 0 0 auto;
  color: #8c8187;
  font-size: 10px;
}

.practice-video-list {
  display: grid;
  gap: 12px;
}

.practice-video-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(63, 45, 54, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 20px rgba(77, 54, 64, 0.05);
}

.practice-video-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee8e6;
}

.practice-video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.practice-cover-step,
.practice-cover-duration {
  position: absolute;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.92);
  color: #554a50;
  font-size: 9px;
  font-weight: 760;
  backdrop-filter: blur(8px);
}

.practice-cover-step {
  left: 8px;
  color: var(--practice-accent);
}

.practice-cover-duration {
  right: 8px;
}

.practice-cover-step svg,
.practice-cover-duration svg {
  width: 12px;
  height: 12px;
}

.practice-video-card-body {
  padding: 12px;
}

.practice-video-title-row {
  align-items: flex-start;
}

.practice-video-title-row h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.4;
}

.practice-male-tag {
  flex: 0 0 auto;
  border-radius: 4px;
  padding: 4px 5px;
  background: #e9f0ed;
  color: #3d735f;
  font-size: 8px;
  font-weight: 760;
}

.practice-creator-row {
  margin-top: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.practice-creator-row > span,
.practice-creator-row a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #897d83;
  font-size: 9px;
  text-decoration: none;
}

.practice-creator-row a {
  color: var(--pink-strong);
  font-weight: 700;
}

.practice-creator-row svg {
  width: 12px;
  height: 12px;
}

.practice-substep {
  padding: 11px 0;
}

.practice-substep > span {
  display: block;
  margin-bottom: 3px;
  color: #a09198;
  font-size: 9px;
}

.practice-substep strong {
  display: block;
  color: var(--practice-accent);
  font-size: 11px;
  line-height: 1.4;
}

.practice-substep p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: #766b71;
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.practice-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.practice-video-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 4px;
  padding: 5px 6px;
  background: #f5f0ef;
  color: #6f6469;
  font-size: 8px;
  font-weight: 680;
}

.practice-video-meta svg {
  width: 11px;
  height: 11px;
  color: var(--practice-accent);
}

.practice-video-details {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.practice-video-details p {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 6px;
  margin: 0;
  color: #766b71;
  font-size: 9px;
  line-height: 1.45;
}

.practice-video-details p > svg {
  width: 14px;
  height: 14px;
  color: #6b8379;
}

.practice-video-details b {
  display: block;
  margin-bottom: 1px;
  color: #4d4549;
  font-size: 9px;
}

.practice-video-details .practice-mistake > svg {
  color: #bd6a55;
}

.practice-video-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.practice-video-actions button,
.practice-video-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(236, 82, 122, 0.24);
  border-radius: 6px;
  background: #fff;
  color: var(--pink-strong);
  font-size: 9px;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.practice-video-actions svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
}

.practice-video-actions .practice-start-button {
  grid-column: 1 / -1;
  min-height: 38px;
  border-color: var(--pink-strong);
  background: var(--pink-strong);
  color: #fff;
}

.practice-empty-results {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 34px 10px;
  color: #8b7f85;
  text-align: center;
}

.practice-empty-results > svg {
  width: 28px;
  height: 28px;
  color: #c3b7bc;
}

.practice-empty-results strong {
  color: var(--ink);
  font-size: 12px;
}

.practice-empty-results p {
  margin: 0;
  font-size: 10px;
}

.practice-empty-results button {
  margin-top: 5px;
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--pink-soft);
  color: var(--pink-strong);
  font-size: 10px;
  font-weight: 720;
}

.practice-preview-backdrop {
  align-items: center;
  padding: 18px;
}

.practice-preview-sheet {
  position: relative;
  overflow: hidden;
  width: min(100%, 350px);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 70px rgba(35, 25, 31, 0.3);
}

.practice-preview-sheet .sheet-close {
  z-index: 3;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.share-link-guide-backdrop {
  align-items: center;
  padding: 16px;
}

.share-link-guide-sheet {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 420px);
  max-height: min(90dvh, 860px);
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(35, 25, 31, 0.3);
  animation: sheetIn 0.26s ease both;
}

.share-link-guide-header {
  padding: 22px 58px 14px 20px;
  border-bottom: 1px solid rgba(235, 96, 130, 0.12);
}

.share-link-guide-header > span {
  color: var(--pink-strong);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.share-link-guide-header h2 {
  margin: 4px 0 5px;
  color: #332e31;
  font-size: 20px;
  line-height: 1.3;
}

.share-link-guide-header p {
  margin: 0;
  color: #746a6f;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.55;
}

.share-link-guide-sheet .sheet-close {
  z-index: 2;
  top: 14px;
  right: 14px;
  background: var(--soft);
}

.share-link-guide-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 16px 20px;
}

.share-link-guide-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.share-link-guide-step {
  overflow: hidden;
  border: 1px solid rgba(235, 96, 130, 0.14);
  border-radius: 18px;
  background: #fff8fa;
}

.share-link-guide-step-copy {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 13px 13px 12px;
}

.share-link-guide-step-copy > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-strong));
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.share-link-guide-step-copy strong {
  display: block;
  color: #493d42;
  font-size: 14px;
  line-height: 1.35;
}

.share-link-guide-step-copy p {
  margin: 3px 0 0;
  color: #756b70;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.55;
}

.share-link-guide-step img {
  display: block;
  width: 100%;
  height: auto;
  background: #211f20;
}

.share-link-guide-finish {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 2px 0;
  color: #8a4d5c;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.55;
}

.share-link-guide-finish svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--pink-strong);
}

.practice-preview-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eae4e2;
}

.practice-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.practice-preview-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #171416;
}

.practice-preview-media > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pink-strong);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 22px rgba(54, 37, 45, 0.18);
}

.practice-preview-media > span svg {
  width: 21px;
  height: 21px;
  margin-left: 2px;
}

.practice-preview-media small {
  position: absolute;
  bottom: 10px;
  left: 10px;
  border-radius: 4px;
  padding: 5px 7px;
  background: rgba(37, 30, 33, 0.72);
  color: #fff;
  font-size: 8px;
  font-weight: 760;
}

.practice-preview-content {
  padding: 18px;
}

.practice-preview-content h2 {
  margin: 6px 0 5px;
  font-size: 19px;
  line-height: 1.35;
}

.practice-preview-content > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.practice-preview-meta {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.practice-preview-meta span {
  border-radius: 4px;
  padding: 5px 7px;
  background: #f5efee;
  color: #6f6268;
  font-size: 9px;
}

.practice-preview-content .practice-complete-button {
  margin-top: 16px;
}

.simple-header,
.lesson-header,
.page-header {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 64px;
  padding: 14px 18px;
  background: rgba(255, 250, 248, 0.9);
  backdrop-filter: blur(18px);
}

.simple-header strong {
  font-size: 16px;
  font-weight: 760;
}

.processing-screen {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 46px 26px 34px;
  text-align: center;
}

.spinner-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--pink), #ffd0dc, #fff 72%, var(--pink));
  animation: floaty 3.2s ease-in-out infinite;
}

.spinner-orbit::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--paper);
}

.spinner-orbit img {
  position: relative;
  z-index: 1;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  object-fit: cover;
}

.spinner-orbit span {
  position: absolute;
  right: 20px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-weight: 720;
}

.processing-screen h2 {
  font-size: 22px;
  font-weight: 760;
}

.processing-screen p,
.profile-card p,
.tip-box p {
  color: var(--muted);
  line-height: 1.52;
  font-size: 13px;
}

.progress-rail,
.lesson-progress {
  overflow: hidden;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 111, 145, 0.14);
}

.progress-rail span,
.lesson-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--pink-strong));
}

.stage-list {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.stage-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.stage-list li > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--rose);
  font-size: 12px;
}

.stage-list li.done > span,
.stage-list li.active > span {
  background: var(--pink);
  color: #fff;
}

.stage-list li.active {
  color: var(--ink);
}

.skin-visual,
.lesson-media {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 26px 26px;
  background: #171316;
}

.skin-visual {
  height: 260px;
  border-radius: 22px;
}

.skin-visual video,
.lesson-media video,
.mirror-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.skin-upload-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skin-visual-empty,
.ai-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 28px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, rgba(36, 26, 33, 0.36), rgba(255, 111, 145, 0.22));
}

.skin-visual-empty svg,
.ai-empty svg {
  width: 42px;
  height: 42px;
}

.skin-camera-status,
.face-status {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--dark);
  font-size: 11px;
  font-weight: 720;
  box-shadow: 0 10px 24px rgba(36, 26, 33, 0.14);
}

.skin-camera-status {
  left: 12px;
  bottom: 12px;
}

.skin-camera-status svg,
.face-status svg {
  width: 15px;
  height: 15px;
  color: var(--pink-strong);
}

.hidden {
  display: none !important;
}

.hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.skin-copy {
  display: grid;
  gap: 8px;
}

.skin-copy h1,
.page-header h1 {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 760;
}

.skin-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.52;
}

.option-card,
.skin-option {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  text-align: left;
}

.option-card {
  color: var(--ink);
}

.option-card svg,
.skin-option svg,
.profile-card svg,
.empty-card svg {
  color: var(--pink-strong);
}

.option-card strong,
.skin-option strong {
  font-size: 14px;
  font-weight: 740;
}

.option-card span,
.skin-option span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.price-tier-picker {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.price-tier-picker.compact {
  margin-top: 14px;
  padding: 12px;
  background: var(--pink-soft);
}

.price-tier-picker > div:first-child {
  display: grid;
  gap: 4px;
}

.price-tier-picker strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
}

.price-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.price-tier-option {
  display: grid;
  min-width: 0;
  gap: 5px;
  justify-items: center;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.price-tier-option.selected {
  border-color: var(--pink);
  background: #fff5f8;
  box-shadow: 0 10px 24px rgba(236, 82, 122, 0.12);
}

.price-tier-option svg {
  width: 18px;
  height: 18px;
  color: var(--pink-strong);
}

.price-tier-option span {
  font-size: 13px;
  font-weight: 820;
}

.price-tier-option small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.skin-option {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.skin-option.selected {
  border-color: var(--pink);
  background: var(--pink-soft);
}

.skin-result-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(236, 82, 122, 0.22);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(95, 55, 68, 0.08);
}

.skin-result-card p,
.profile-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.52;
}

.skin-result-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.skin-concern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.skin-concern-chip {
  display: grid;
  min-width: 0;
  gap: 4px;
  border: 1px solid rgba(95, 55, 68, 0.1);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff8fb;
}

.skin-concern-chip strong,
.skin-concern-chip small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skin-concern-chip strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.skin-concern-chip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.skin-concern-chip.high,
.skin-concern-chip.medium,
.skin-concern-chip.low {
  border-color: rgba(236, 82, 122, 0.3);
  background: #fff0f5;
}

.skin-concern-chip.clear {
  background: #f7faf8;
}

.skin-concern-chip.missing {
  background: #f7f5f6;
  opacity: 0.78;
}

.skin-zone-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skin-zone-strip span {
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--pink-soft);
  color: var(--pink-strong);
  font-size: 10px;
  font-weight: 720;
}

.lesson-header {
  background: rgba(255, 255, 255, 0.9);
}

.lesson-title-group {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.lesson-title-copy {
  min-width: 0;
}

.lesson-back-control {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background: #fff;
  color: var(--pink-strong);
}

.lesson-back-control svg {
  color: currentColor;
}

.lesson-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: min(844px, calc(100vh - 44px));
  max-height: calc(100vh - 44px);
}

.lesson-shell .shell-content {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.lesson-header > div:first-child {
  min-width: 0;
}

.lesson-header span {
  color: var(--pink-strong);
  font-size: 11px;
  font-weight: 720;
}

.lesson-header strong {
  display: block;
  overflow: hidden;
  max-width: 210px;
  font-size: 15px;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-progress {
  position: sticky;
  top: 64px;
  z-index: 8;
  height: 3px;
  border-radius: 0;
}

.lesson-media {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: 0;
  padding-bottom: calc(148px + env(safe-area-inset-bottom));
}

.lesson-media {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.lesson-media img,
.lesson-media video,
.lesson-media canvas {
  -webkit-user-drag: none;
}

.media-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(20, 14, 18, 0.72));
}

.center-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--pink-strong);
  transform: translate(-50%, -50%);
}

.center-play svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.center-play.is-playing {
  opacity: 0;
  pointer-events: none;
}

.lesson-media .lesson-video-player {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #111;
  object-fit: contain;
  transform: none;
}

.video-playback-status {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px 28px calc(172px + env(safe-area-inset-bottom));
  background: rgba(17, 17, 17, 0.36);
  color: #fff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, background-color 180ms ease;
}

.video-playback-status.is-visible {
  opacity: 1;
}

.video-playback-status.is-error,
.video-playback-status.is-slow {
  background: rgba(17, 17, 17, 0.7);
}

.video-playback-status p {
  max-width: 280px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.55;
}

.video-playback-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.video-retry-button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pink-strong);
  font-size: 13px;
  font-weight: 760;
  pointer-events: auto;
}

.video-retry-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .video-playback-status {
    transition: none;
  }

  .video-playback-spinner {
    animation-duration: 1.8s;
  }
}

.video-meta {
  position: absolute;
  right: 16px;
  bottom: calc(148px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 2;
  display: grid;
  gap: 5px;
  color: #fff;
}

.video-meta span {
  color: rgba(255, 255, 255, 0.76);
}

.video-meta strong {
  font-size: 16px;
  font-weight: 740;
}

.video-meta-with-controls {
  gap: 9px;
}

.video-control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.video-control-strip > span {
  flex: 0 0 auto;
  line-height: 1.2;
}

.speed-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  min-width: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 720;
}

.speed-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.speed-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(24, 18, 22, 0.92);
  color: rgba(255, 255, 255, 0.98);
  font-size: 11px;
  font-weight: 780;
  box-shadow: 0 8px 18px rgba(16, 9, 12, 0.22);
  white-space: nowrap;
}

.speed-trigger span,
.speed-trigger svg {
  color: inherit;
  stroke: currentColor;
}

.speed-trigger svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
  transition: transform 0.18s ease;
}

.speed-trigger.is-open svg {
  transform: rotate(180deg);
}

.speed-menu {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: max-content;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(24, 18, 22, 0.9);
  box-shadow: 0 14px 28px rgba(10, 6, 8, 0.26);
  opacity: 0;
  transform: translate(-50%, calc(-50% + var(--speed-menu-shift, 0px))) scale(0.96);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  backdrop-filter: blur(10px);
}

.speed-menu.is-open {
  opacity: 1;
  transform: translate(-50%, calc(-50% + var(--speed-menu-shift, 0px))) scale(1);
  pointer-events: auto;
}

.speed-menu-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  min-width: 58px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.speed-menu-item.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.speed-menu-item:active {
  transform: translateY(1px);
}

.speed-trigger:focus-visible,
.speed-menu-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .video-control-strip {
    gap: 8px;
  }

  .speed-trigger {
    min-height: 23px;
    padding: 0 9px;
  }

  .speed-menu {
    padding: 4px;
  }

  .speed-menu-item {
    min-height: 21px;
    min-width: 54px;
    padding: 0 9px;
  }
}

.video-progress {
  width: 100%;
  accent-color: var(--pink);
}

.face-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.face-debug {
  position: absolute;
  top: 52px;
  left: 12px;
  z-index: 8;
  max-width: calc(100% - 24px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 5px 7px;
  color: #fff;
  background: rgba(20, 14, 18, 0.68);
  font: 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.face-retry-button {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 0 10px;
  color: #fff;
  background: rgba(18, 12, 16, 0.38);
  font: inherit;
}

.face-retry-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.ai-empty {
  z-index: 2;
  background: rgba(36, 26, 33, 0.72);
}

.ai-empty .secondary-button {
  width: auto;
  min-width: 160px;
}

.ai-hints {
  position: absolute;
  top: 56px;
  left: 16px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.face-status {
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  color: #fff;
  background: rgba(36, 26, 33, 0.68);
  backdrop-filter: blur(10px);
}

.face-status svg {
  flex: 0 0 auto;
  color: #fff;
}

.face-status span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-hints span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--pink-strong);
  font-size: 11px;
  font-weight: 720;
}

.assistant-fab {
  position: absolute;
  top: 50%;
  right: -22px;
  z-index: 7;
  width: 44px;
  height: 44px;
  display: grid;
  border: 0;
  padding: 0;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #ff6f91, #c84871);
  color: #fff;
  box-shadow: 0 12px 24px rgba(137, 38, 78, 0.27), 0 0 0 6px rgba(255, 255, 255, 0.18);
  transform: translateY(-50%);
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.assistant-fab.has-custom-position {
  right: auto;
  transform: none;
}

.assistant-fab.is-dragging {
  cursor: grabbing;
}

.assistant-fab span {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  opacity: 0;
}

.assistant-fab svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.assistant-fab.is-realtime span,
.assistant-fab.is-listening span,
.assistant-fab.is-busy span {
  animation: assistantPulse 1.3s ease-out infinite;
  opacity: 1;
}

.assistant-fab.is-busy svg {
  animation: spin 1s linear infinite;
}

.assistant-fab:disabled {
  cursor: progress;
}

@keyframes assistantPulse {
  0% {
    transform: scale(0.86);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

.assistant-reply {
  position: absolute;
  right: 92px;
  top: calc(50% + 42px);
  left: 14px;
  z-index: 5;
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(36, 26, 33, 0.8);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  max-height: 120px;
  overflow: auto;
}

.assistant-reply.is-fading {
  pointer-events: none;
  animation: assistantReplyFadeOut 0.42s ease forwards;
}

.video-assistant-status {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 32px);
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(35, 25, 32, 0.72);
  color: #fff;
  box-shadow: 0 8px 22px rgba(20, 12, 17, 0.2);
  backdrop-filter: blur(10px);
  animation: assistantStatusIn 0.22s ease both;
  pointer-events: none;
}

.video-assistant-status svg {
  width: 16px;
  height: 16px;
  color: #ff7397;
}

.video-assistant-status span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-assistant-status.is-listening::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7397;
  box-shadow: 0 0 0 0 rgba(255, 115, 151, 0.5);
  animation: assistantListeningPulse 1.35s ease-out infinite;
}

.video-assistant-status [data-lucide="loader-circle"] {
  animation: spin 1s linear infinite;
}

.voice-control-status {
  position: absolute;
  top: 58px;
  left: 16px;
  z-index: 6;
  display: none;
  max-width: min(48%, 280px);
  min-height: 32px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(35, 25, 32, 0.72);
  color: #fff;
  box-shadow: 0 8px 22px rgba(20, 12, 17, 0.2);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.voice-control-status.is-visible {
  display: flex;
}

.voice-control-status svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #ff7397;
}

.voice-control-status span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-control-status.is-command,
.voice-control-status.is-feedback {
  border-color: rgba(255, 115, 151, 0.65);
  background: rgba(84, 31, 52, 0.86);
}

.voice-control-status.is-starting svg {
  animation: spin 1s linear infinite;
}

.voice-control-status.is-error svg {
  color: #ffd0dc;
}

.assistant-reply.video-assistant-reply {
  top: 60px;
  right: 16px;
  left: auto;
  width: min(78%, 330px);
  max-height: 104px;
  background: rgba(35, 25, 32, 0.84);
  box-shadow: 0 12px 30px rgba(20, 12, 17, 0.22);
  backdrop-filter: blur(12px);
  animation: assistantReplyIn 0.24s ease both;
  pointer-events: none;
}

.assistant-reply.video-assistant-reply.is-fading {
  animation: assistantReplyFadeOut 0.42s ease forwards;
}

@keyframes assistantStatusIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes assistantReplyIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes assistantListeningPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 115, 151, 0.52);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(255, 115, 151, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-assistant-status,
  .video-assistant-status.is-listening::before,
  .assistant-reply.video-assistant-reply,
  .voice-control-status.is-starting svg {
    animation: none;
  }
}

@keyframes assistantReplyFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.coach-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  display: grid;
  gap: 12px;
  padding: 12px 14px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.98));
  pointer-events: none;
}

.step-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  pointer-events: auto;
}

.step-tabs::-webkit-scrollbar {
  display: none;
}

.step-tabs button {
  flex: 0 0 auto;
  min-width: 66px;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.step-tabs button.selected {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.control-row {
  display: grid;
  grid-template-columns: 70px 48px 1fr 48px 70px;
  align-items: center;
  justify-items: center;
  height: 84px;
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(36, 26, 33, 0.96);
  box-shadow: 0 18px 38px rgba(36, 26, 33, 0.22);
  pointer-events: auto;
  backdrop-filter: blur(18px);
}

.bar-icon-control,
.round-control {
  display: grid;
  place-items: center;
  gap: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  font-weight: 680;
}

.bar-icon-control {
  width: 54px;
  height: 54px;
  min-height: 54px;
  color: #fff;
}

.bar-icon-control svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
}

.round-control {
  width: 46px;
  height: 46px;
}

.round-control svg {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  fill: currentColor;
}

.play-control {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--dark);
}

.play-control svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 18px;
  background: rgba(25, 17, 23, 0.55);
  backdrop-filter: blur(8px);
}

.bottom-sheet {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 370px);
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
  animation: sheetIn 0.26s ease both;
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--soft);
  box-shadow: none;
}

.bottom-sheet h2 {
  padding-right: 42px;
  font-size: 20px;
  font-weight: 760;
}

.mentor-article-backdrop {
  align-items: center;
  padding: 16px;
}

.mentor-article-sheet {
  position: relative;
  display: grid;
  width: min(100%, 370px);
  max-height: min(88vh, 720px);
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
  animation: sheetIn 0.26s ease both;
}

.mentor-article-back {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(58, 36, 44, 0.14);
  backdrop-filter: blur(8px);
}

.mentor-article-back svg {
  width: 18px;
  height: 18px;
}

.mentor-article-hero {
  position: relative;
  height: 184px;
  overflow: hidden;
  background: #fff3f6;
}

.mentor-article-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 18, 0.02), rgba(20, 12, 18, 0.5));
  content: "";
  pointer-events: none;
}

.mentor-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mentor-article-image-trigger {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.mentor-article-image-trigger::after {
  position: absolute;
  inset: 0;
  background: rgba(36, 22, 29, 0.02);
  content: "";
  transition: background 0.2s ease;
}

.mentor-article-image-trigger:hover::after,
.mentor-article-image-trigger:focus-visible::after {
  background: rgba(36, 22, 29, 0.14);
}

.mentor-article-image-trigger:focus-visible {
  outline: 3px solid rgba(233, 76, 121, 0.45);
  outline-offset: -3px;
}

.mentor-article-image-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(35, 24, 30, 0.58);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.mentor-article-image-hint svg {
  width: 13px;
  height: 13px;
}

.mentor-article-hero span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-size: 11px;
  font-weight: 720;
}

.mentor-article-detail-content {
  min-height: 0;
  overflow-y: auto;
  padding: 20px 20px 24px;
}

.mentor-article-detail-content h2 {
  margin: 0;
  padding-right: 36px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.mentor-article-detail-content h3 {
  margin: 8px 0 0;
  color: #e94c79;
  font-size: 15px;
  line-height: 1.45;
}

.mentor-article-intro {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.mentor-article-sections {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mentor-article-sections article {
  padding: 13px 14px;
  border-radius: 14px;
  background: #fff7f9;
}

.mentor-article-sections h4 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 14px;
}

.mentor-article-sections p {
  margin: 0;
  color: #6e6269;
  font-size: 13px;
  line-height: 1.65;
}

.mentor-article-gallery {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mentor-article-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(90, 57, 70, 0.08);
}

.mentor-article-image-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #fff7f9;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mentor-article-image-note svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--pink-strong);
}

.mentor-article-image-backdrop {
  z-index: 20;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(27, 19, 24, 0.84);
  backdrop-filter: blur(12px);
}

.mentor-article-image-sheet {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 520px);
  max-height: 92vh;
  padding: 12px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  animation: sheetIn 0.22s ease both;
}

.mentor-article-image-sheet img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 62px);
  border-radius: 14px;
  object-fit: contain;
}

.mentor-article-image-sheet p {
  max-width: calc(100% - 48px);
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentor-article-image-close {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.mentor-article-image-close svg {
  width: 18px;
  height: 18px;
}

.skin-confirm-sheet {
  align-self: center;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(calc(100% - 28px), 430px);
  max-height: min(88vh, 760px);
  min-height: min(72vh, 620px);
  padding: 24px 22px 20px;
  overflow: hidden;
}

.skin-confirm-backdrop {
  align-items: start;
  padding-top: max(26px, env(safe-area-inset-top));
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.skin-confirm-content {
  display: grid;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 6px;
}

.skin-confirm-hint {
  border-radius: 18px;
  padding: 12px 14px;
  background: #fff7f9;
  color: #8a7882;
  font-size: 12px;
  line-height: 1.5;
}

.sheet-product {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.sheet-product img {
  width: 92px;
  height: 92px;
  border-radius: var(--radius);
  object-fit: cover;
}

.sheet-product span {
  color: var(--muted);
  font-size: 13px;
}

.tip-box {
  padding: 14px;
  background: var(--pink-soft);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.detail-list svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--pink-strong);
}

.step-detail-shell {
  --detail-bg: #fff8f6;
  --detail-surface: #fff;
  --detail-line: rgba(36, 26, 33, 0.08);
  --detail-pink: #fa5c8a;
  --detail-pink-strong: #e94678;
  --detail-soft: #ffe1ea;
  --detail-radius: 10px;
  --detail-card-shadow: 0 18px 44px rgba(111, 61, 75, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 248, 246, 0.98) 0%, rgba(255, 253, 252, 0.96) 46%, #f8efed 100%);
}

.step-detail-header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--detail-line);
  padding: 10px 16px;
  background: rgba(255, 250, 248, 0.96);
  backdrop-filter: blur(16px);
}

.step-detail-header .icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #2a2328;
  box-shadow: 0 14px 34px rgba(111, 61, 75, 0.08);
}

.step-detail-header strong {
  justify-self: center;
  color: #221d21;
  font-size: 16px;
  font-weight: 860;
  letter-spacing: 0;
}

.step-detail-header .icon-row {
  justify-self: end;
}

.step-detail-header .icon-row span {
  color: #2a2328;
  font-size: 14px;
  font-weight: 760;
}

.step-detail-page {
  display: grid;
  gap: 16px;
  padding: 18px 16px max(22px, env(safe-area-inset-bottom));
}

.step-detail-hero,
.step-detail-product,
.step-detail-context,
.step-detail-section {
  border-radius: var(--detail-radius);
}

.step-detail-hero {
  display: grid;
  min-height: 158px;
  align-content: center;
  gap: 10px;
  padding: 24px 26px;
  background:
    linear-gradient(135deg, #76304d 0%, #b33d70 56%, #df5a83 100%);
  color: #fff;
  box-shadow: 0 26px 72px rgba(186, 63, 109, 0.24);
}

.step-detail-hero .soft-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.step-detail-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.step-detail-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.55;
}

.step-detail-product {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--detail-line);
  padding: 18px;
  background: var(--detail-surface);
  box-shadow: var(--detail-card-shadow);
}

.step-detail-product img {
  width: 132px;
  height: 132px;
  border-radius: var(--detail-radius);
  object-fit: cover;
}

.step-detail-product span,
.step-detail-product small {
  color: #8b848a;
  font-size: 13px;
  font-weight: 760;
}

.step-detail-product strong {
  display: block;
  margin: 8px 0 6px;
  overflow-wrap: anywhere;
  color: #201b20;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.step-detail-product-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.step-detail-product .step-detail-product-item {
  display: block;
  color: #201b20;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.step-detail-product p {
  margin: 8px 0 0;
  color: #766f76;
  font-size: 13px;
  line-height: 1.5;
}

.step-detail-product.recommendation-mode {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.recommendation-content {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.recommendation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(63, 45, 54, 0.09);
}

.recommendation-heading > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.recommendation-heading strong {
  flex: 0 0 auto;
  margin: 0;
  border-radius: 6px;
  padding: 7px 10px;
  background: var(--detail-soft);
  color: var(--detail-pink-strong);
  font-size: 14px;
}

.recommendation-heading small {
  display: block;
  line-height: 1.45;
}

.recommendation-product-list {
  display: grid;
  gap: 10px;
}

.recommendation-product-card {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(63, 45, 54, 0.09);
  border-radius: var(--detail-radius);
  background: #fff;
}

.recommendation-product-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.recommendation-product-heading > div {
  flex: 1 1 auto;
  min-width: 0;
}

.recommendation-product-image {
  position: relative;
  flex: 0 0 72px;
  overflow: hidden;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(80, 54, 66, 0.09);
  border-radius: 7px;
  background: #faf4f2;
}

.recommendation-product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: inherit;
  pointer-events: none;
}

.step-detail-product.recommendation-mode .recommendation-product-image img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.recommendation-product-card strong {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.35;
}

.recommendation-product-card small {
  display: inline-block;
  border-radius: 4px;
  padding: 4px 6px;
  background: #f6f1f0;
  color: #81757b;
  font-size: 10px;
  line-height: 1.3;
}

.recommendation-product-notes {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(63, 45, 54, 0.08);
}

.recommendation-product-notes p,
.recommendation-product-notes em {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  margin: 0;
  color: #766f76;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.recommendation-product-notes em {
  color: #9c6878;
}

.recommendation-product-notes svg {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: #8a746f;
}

.recommendation-product-notes em svg {
  color: #c05d79;
}

.recommendation-shopping-action {
  display: grid;
}

.shopping-purchase-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid #161616;
  border-radius: 8px;
  background: #161616;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.shopping-purchase-link svg {
  width: 16px;
  height: 16px;
}

.shopping-purchase-link:focus-visible {
  outline: 3px solid rgba(236, 82, 122, 0.28);
  outline-offset: 2px;
}

.shopping-purchase-link.is-disabled {
  border-color: rgba(63, 45, 54, 0.09);
  background: #f3eff1;
  color: #8d8388;
  cursor: not-allowed;
}

.compact-button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.step-detail-context {
  padding: 15px 18px;
  background: linear-gradient(90deg, #fff0f4 0%, #fff7f8 100%);
  box-shadow: 0 8px 24px rgba(111, 61, 75, 0.04);
}

.step-detail-context span {
  color: var(--detail-pink-strong);
  font-size: 14px;
  font-weight: 860;
}

.step-detail-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 66px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(63, 45, 54, 0.08);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.step-detail-tabs button {
  position: relative;
  min-width: 0;
  min-height: 66px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #827a80;
  font-size: 16px;
  font-weight: 820;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.step-detail-tabs button:hover {
  background: #fffafb;
  color: #4d4148;
}

.step-detail-tabs button::after {
  position: absolute;
  right: 32%;
  bottom: 0;
  left: 32%;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--detail-pink-strong);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.step-detail-tabs button.is-active {
  color: var(--detail-pink-strong);
}

.step-detail-tabs button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.step-detail-tabs button:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(233, 70, 120, 0.24);
  outline-offset: -4px;
}

.step-detail-tab-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.step-detail-tab-panel[hidden] {
  display: none;
}

.step-technique-alert {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border-radius: 0;
  padding: 14px 16px;
  background: #fff1f5;
  color: var(--detail-pink-strong);
}

.step-technique-alert svg {
  width: 21px;
  height: 21px;
  margin-top: 1px;
  stroke-width: 2.2;
}

.step-technique-alert p {
  margin: 0;
  color: var(--detail-pink-strong);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.step-technique-alert strong {
  color: var(--detail-pink-strong);
  font-weight: 900;
}

.step-detail-section {
  display: grid;
  gap: 14px;
  border: 1px solid var(--detail-line);
  padding: 18px;
  background: var(--detail-surface);
  box-shadow: 0 8px 26px rgba(111, 61, 75, 0.04);
}

.step-detail-section h2 {
  margin: 0;
  color: #201b20;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.step-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-detail-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.step-detail-list svg {
  width: 20px;
  height: 20px;
  color: var(--detail-pink);
  stroke-width: 2.4;
}

.step-detail-list span {
  color: #2a2328;
}

.step-technique-card {
  gap: 0;
  border-color: rgba(63, 45, 54, 0.06);
  padding: 0 14px;
  box-shadow: 0 10px 30px rgba(111, 61, 75, 0.035);
}

.step-technique-card h2::before {
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--detail-pink-strong);
  vertical-align: -2px;
  content: "";
}

.step-technique-card h2 {
  border-bottom: 1px solid rgba(63, 45, 54, 0.08);
  padding: 20px 0 18px;
}

.step-technique-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-technique-list li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  min-height: 112px;
  border-top: 1px solid rgba(63, 45, 54, 0.07);
}

.step-technique-list li:first-child {
  border-top: 0;
}

.step-technique-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 2px;
  background: #fff3f6;
  color: var(--detail-pink-strong);
}

.step-technique-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.step-technique-icon.is-unavailable {
  border: 1px dashed rgba(233, 70, 120, 0.28);
  background: #fff8fa;
}

.step-technique-icon.is-unavailable svg {
  width: 26px;
  height: 26px;
}

.step-technique-list p {
  min-height: 62px;
  margin: 0;
  border-left: 1px solid rgba(63, 45, 54, 0.07);
  padding: 8px 0 8px 18px;
  color: #2d262b;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.step-technique-list p strong {
  color: #241e22;
  font-weight: 860;
}

.step-technique-list p span {
  color: #5f565b;
}

.step-technique-list p span.is-emphasis {
  color: var(--detail-pink-strong);
}

.step-detail-page > .primary-button {
  min-height: 54px;
  border-radius: var(--detail-radius);
  background: linear-gradient(135deg, #fb638e 0%, #e94375 100%);
  font-size: 16px;
  font-weight: 860;
  box-shadow: 0 18px 42px rgba(233, 67, 117, 0.26);
}

.step-detail-page > .primary-button svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 520px) {
  .step-detail-header {
    min-height: 72px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding: 8px 14px;
  }

  .step-detail-header .icon-button {
    width: 40px;
    height: 40px;
  }

  .step-detail-header strong {
    font-size: 15px;
  }

  .step-detail-header .icon-row span {
    font-size: 13px;
  }

  .step-detail-page {
    gap: 14px;
    padding: 16px 14px max(20px, env(safe-area-inset-bottom));
  }

  .step-detail-hero {
    min-height: 142px;
    padding: 20px 22px;
  }

  .step-detail-hero h1 {
    font-size: 22px;
  }

  .step-detail-hero p,
  .step-detail-list li {
    font-size: 14px;
  }

  .step-detail-tabs,
  .step-detail-tabs button {
    min-height: 62px;
  }

  .step-technique-list li {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 108px;
  }

  .step-technique-icon {
    width: 54px;
    height: 54px;
  }

  .step-technique-list p {
    min-height: 58px;
    padding-left: 14px;
    font-size: 14px;
  }

  .step-detail-product {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .step-detail-product img {
    width: 116px;
    height: 116px;
  }

  .step-detail-product strong {
    font-size: 19px;
  }

  .recommendation-heading strong {
    font-size: 14px;
  }

  .recommendation-product-card strong {
    font-size: 15px;
  }

  .step-detail-section h2 {
    font-size: 17px;
  }
}

.eye-detail-shell {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 131, 170, 0.14), transparent 28%),
    linear-gradient(180deg, #171715 0%, #111110 100%);
  color: #f7f2eb;
}

.eye-detail-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 22, 20, 0.92);
  color: #f8f5ee;
}

.eye-detail-header .icon-button {
  background: rgba(255, 255, 255, 0.08);
  color: #f8f5ee;
}

.eye-detail-header span {
  color: rgba(248, 245, 238, 0.7);
}

.eye-detail-page {
  display: grid;
  gap: 14px;
  padding: 16px 14px max(22px, env(safe-area-inset-bottom));
}

.eye-guide-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: #2b2b29;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.eye-guide-card.active {
  border-color: color-mix(in srgb, var(--eye-accent) 68%, rgba(255, 255, 255, 0.18));
  box-shadow: 0 24px 80px color-mix(in srgb, var(--eye-accent) 22%, transparent);
}

.eye-guide-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
}

.eye-step-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.eye-step-code {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--eye-tint);
  color: color-mix(in srgb, var(--eye-accent) 58%, #24161e);
  font-size: 15px;
  font-weight: 860;
}

.eye-step-title h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}

.eye-step-title p {
  margin: 5px 0 0;
  color: rgba(248, 245, 238, 0.72);
  font-size: 12px;
  font-weight: 720;
}

.eye-stage-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(248, 245, 238, 0.82);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.eye-guide-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.eye-callout {
  margin: 0;
  border-left: 4px solid var(--eye-accent);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--eye-tint);
  color: color-mix(in srgb, var(--eye-accent) 54%, #171715);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.6;
}

.eye-card-section {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

.eye-callout + .eye-card-section {
  border-top: 0;
  padding-top: 0;
}

.eye-card-section h3 {
  margin: 0;
  color: rgba(248, 245, 238, 0.72);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.02em;
}

.eye-card-description {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.65;
}

.eye-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.eye-mini-item,
.eye-tool-item {
  display: grid;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
}

.eye-mini-item {
  padding: 10px;
}

.eye-tool-list {
  display: grid;
  gap: 8px;
}

.eye-tool-item {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 11px 12px;
}

.eye-tool-item svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: rgba(248, 245, 238, 0.8);
}

.eye-mini-item strong,
.eye-tool-item strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.eye-mini-item span,
.eye-tool-item span {
  display: block;
  margin-top: 4px;
  color: rgba(248, 245, 238, 0.72);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.45;
}

.eye-tip-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eye-tip-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: rgba(248, 245, 238, 0.78);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.45;
}

.eye-tip-list svg {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  padding: 2px;
  background: var(--eye-tint);
  color: color-mix(in srgb, var(--eye-accent) 68%, #171715);
}

.eye-detail-return {
  margin-top: 4px;
}

.stage-steps-sheet {
  max-height: min(76vh, 720px);
  overflow: hidden;
}

.stage-step-list {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.stage-step-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

.stage-step-item.active {
  border-color: rgba(255, 93, 136, 0.42);
  background: var(--pink-soft);
}

.stage-step-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.stage-step-topline strong {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
}

.stage-time-button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 111, 145, 0.12);
  color: var(--pink-strong);
  font-size: 12px;
  font-weight: 900;
}

.stage-time-button::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
}

.prep-detail-item p {
  color: #6f666b;
}

.stage-step-item h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 740;
}

.stage-step-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dynamic-substep-meta {
  display: grid;
  gap: 4px;
  color: #7b6872;
  font-size: 12px;
  line-height: 1.45;
}

.dynamic-substep-meta span {
  display: block;
}

.stage-product-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--pink-strong);
  font-size: 11px;
  font-weight: 720;
}

.stage-product-pill svg {
  width: 14px;
  height: 14px;
}

.stage-region-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-region-list li {
  display: grid;
  gap: 3px;
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.stage-region-list strong {
  font-size: 13px;
}

.stage-region-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.complete-screen {
  position: relative;
  align-content: center;
  min-height: 100%;
  padding-top: 34px;
}

.confetti-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.confetti-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.confetti-card div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.confetti-card span {
  color: #ffdce5;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.confetti-card h1 {
  font-size: 24px;
  line-height: 1.18;
  font-weight: 760;
}

.confetti-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.complete-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.complete-stats article {
  display: grid;
  gap: 4px;
  min-height: 82px;
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.complete-stats strong {
  font-size: 18px;
}

.page-header {
  align-items: flex-start;
  padding-top: 22px;
}

.page-header > strong {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 34px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-strong);
}

.card-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.collection-hero {
  position: relative;
  display: grid;
  gap: 13px;
  padding: 74px 28px 20px;
  background: #fff;
}

.collection-hero h1 {
  font-size: 24px;
  line-height: 1.18;
  font-weight: 760;
}

.collection-hero p,
.collection-hero strong {
  color: #99999f;
  font-size: 14px;
  font-weight: 700;
}

.collection-progress {
  overflow: hidden;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: #f6dce5;
}

.collection-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d6517d;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px 22px 112px;
  background: #fff;
}

.collection-card {
  overflow: hidden;
  display: grid;
  padding: 0;
  border: 1px solid #e6e2e4;
  border-radius: 20px;
  background: #fff;
  color: #09090b;
  text-align: left;
}

.look-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 124px;
  background: var(--look-color);
}

.look-art > svg {
  width: 56px;
  height: 56px;
  color: #fff;
  stroke-width: 1.8;
}

.look-done {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #1fa074;
  color: #fff;
}

.look-done svg {
  width: 16px;
  height: 16px;
  stroke-width: 3.2;
}

.look-steps {
  position: absolute;
  top: 17px;
  right: 16px;
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--look-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 720;
}

.look-body {
  display: grid;
  gap: 6px;
  padding: 16px 24px 20px;
}

.look-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.look-bars span {
  height: 6px;
  border-radius: 999px;
  background: #f0f0f0;
}

.look-bars span.active {
  background: #d6517d;
}

.look-body strong {
  font-size: 18px;
  line-height: 1.2;
}

.look-body small {
  color: #99999f;
  font-size: 13px;
  font-weight: 680;
}

.collection-card.locked {
  color: #9d9da3;
}

.collection-card.locked .look-art,
.collection-card.locked .look-body {
  opacity: 0.72;
}

.collection-card.locked .look-art {
  background: #e8e8ec;
}

.collection-card.locked .look-art > svg {
  color: #a8a8b2;
}

.collection-card.locked .look-art > svg {
  width: 46px;
  height: 46px;
}

.detail-shell {
  background: #fff;
  border-radius: 0;
}

.collection-detail-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  border-bottom: 1px solid #e5e5e5;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.collection-detail-header strong {
  font-size: 20px;
  font-weight: 760;
  line-height: 1;
}

.plain-back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  color: #09090b;
}

.plain-back svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
}

.collection-detail {
  display: grid;
  gap: 28px;
  padding: 24px 22px 40px;
  background: #fff;
}

.detail-cover {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 240px;
  border: 1px solid rgba(214, 81, 125, 0.12);
  border-radius: 24px;
  background: var(--look-color);
}

.detail-cover > svg {
  width: 86px;
  height: 86px;
  color: var(--look-accent);
  stroke-width: 1.8;
}

.detail-cover.locked {
  border-color: #dadade;
  background: #e8e8ec;
}

.detail-cover.locked > svg {
  color: #a8a8b2;
}

.detail-cover.locked .detail-status {
  background: #96969f;
}

.detail-cover > span:last-child {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: #929297;
  font-size: 13px;
  font-weight: 700;
}

.detail-status {
  position: absolute;
  top: 26px;
  right: 26px;
  border-radius: 999px;
  padding: 10px 20px;
  background: #1fa074;
  color: #fff;
  font-size: 13px;
  font-weight: 720;
}

.detail-title-block {
  display: grid;
  gap: 14px;
}

.detail-title-block h1 {
  font-size: 24px;
  font-weight: 760;
}

.detail-title-block p {
  color: #929297;
  font-size: 14px;
  font-weight: 680;
}

.detail-section {
  display: grid;
  gap: 20px;
}

.detail-section h2,
.product-panel h2 {
  font-size: 19px;
}

.step-timeline {
  display: grid;
  gap: 26px;
}

.step-timeline article,
.timeline-step-button {
  display: grid;
  grid-template-columns: 22px 1fr 28px;
  gap: 18px;
  align-items: center;
}

.timeline-step-button {
  width: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.skin-focus-entry:focus-visible {
  outline: 2px solid rgba(255, 111, 145, 0.6);
  outline-offset: 4px;
  border-radius: 8px;
}

.step-timeline article > span,
.timeline-step-button > span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #d6517d;
}

.step-timeline strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.step-timeline small {
  display: block;
  margin-top: 6px;
  color: #929297;
  font-size: 16px;
  font-weight: 800;
}

.step-timeline svg {
  width: 24px;
  height: 24px;
  color: #1fa074;
  stroke-width: 2.7;
}

.product-panel {
  display: grid;
  gap: 20px;
  border: 1px solid #e2dddf;
  border-radius: 24px;
  padding: 26px 24px;
  background: #faf8f8;
}

.product-panel article {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
}

.product-swatch {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fdeaf2;
}

.product-panel strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.product-panel small {
  display: block;
  margin-top: 6px;
  color: #929297;
  font-size: 15px;
  font-weight: 800;
}

.product-panel em {
  border-radius: 999px;
  padding: 8px 13px;
  background: #1fa074;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.export-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  border-radius: 24px 24px 0 0;
  background: #fde5ef;
  color: #d6517d;
  font-size: 15px;
  font-weight: 720;
}

.export-card-button svg {
  width: 22px;
  height: 22px;
}

.look-card {
  overflow: hidden;
}

.look-card img,
.locked-art {
  width: 100%;
  aspect-ratio: 1 / 1.18;
}

.look-card div:last-child {
  padding: 12px;
}

.locked {
  opacity: 0.78;
}

.locked-art {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f1e4e5, #fff4f6);
}

.locked-art svg {
  color: #c3aab2;
}

.profile-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.profile-card.dark {
  background: var(--dark);
  color: #fff;
}

.profile-card.dark span {
  color: rgba(255, 255, 255, 0.64);
}

.profile-card.dark strong {
  font-size: 22px;
  font-weight: 760;
}

.identity-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.avatar-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 3px solid #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.95), transparent 25%),
    linear-gradient(135deg, #ff8eb0, #f05283 58%, #6d2f4f);
  color: #fff;
  box-shadow: 0 14px 30px rgba(240, 82, 131, 0.28);
}

.avatar-mark svg {
  width: 30px;
  height: 30px;
  color: #fff;
  stroke-width: 2.4;
}

.identity-card div:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.identity-card strong {
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.1;
}

.identity-card small {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--pink-soft);
  color: var(--pink-strong);
  font-size: 12px;
  font-weight: 900;
}

.archive-entry {
  width: 100%;
  color: inherit;
  text-align: left;
}

.archive-entry .section-title > svg {
  color: var(--pink-strong);
}

.archive-preview {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding-left: 4px;
}

.archive-preview span {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 52px;
  height: 52px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #fff6f8;
  box-shadow: 0 8px 18px rgba(95, 55, 68, 0.1);
  filter: grayscale(0.9);
  opacity: 0.58;
}

.archive-preview span:first-child {
  margin-left: 0;
}

.archive-preview span.completed {
  filter: none;
  opacity: 1;
}

.archive-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-stack {
  padding-top: 0;
}

.achievement-card {
  gap: 14px;
}

.achievement-list {
  display: grid;
  gap: 12px;
}

.achievement-item {
  display: flex;
  position: relative;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  margin: 0;
  min-height: 112px;
  border: 1px solid rgba(63, 45, 54, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #fff, #fff8fa);
  box-shadow: 0 10px 22px rgba(95, 55, 68, 0.08);
}

.achievement-item.locked {
  background: #fbf8f8;
}

.achievement-item.locked .achievement-badge,
.achievement-item.locked .achievement-copy {
  filter: grayscale(0.9);
  opacity: 0.58;
}

.achievement-badge {
  flex: 0 0 64px;
  display: grid;
  position: relative;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--pink-soft);
}

.achievement-badge img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.achievement-badge svg {
  width: 28px;
  height: 28px;
  color: #b8a4aa;
}

.achievement-lock {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #9d979b;
}

.achievement-lock svg {
  width: 13px;
  height: 13px;
  color: #fff;
}

.achievement-main {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 8px;
}

.achievement-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.achievement-copy strong {
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.15;
}

.achievement-copy span,
.achievement-copy p {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.achievement-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.achievement-rail {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e9e1e4;
}

.achievement-rail span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd21f, #ffbd18);
}

.achievement-progress small {
  min-width: 42px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.achievement-reward {
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  width: 76px;
  min-height: 76px;
}

.achievement-reward img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.achievement-item.completed .achievement-rail span {
  background: linear-gradient(90deg, #ffde2d, #ffc400);
}

.achievement-item.locked .achievement-rail span {
  background: #aaa0a6;
}

.profile-shell {
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 225, 232, 0.9), transparent 26%),
    linear-gradient(180deg, #fff8f9 0%, #fff 42%, #fff7fa 100%);
}

.profile-shell .shell-content {
  background: transparent;
}

.profile-hero {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px 10px;
  background: linear-gradient(180deg, rgba(255, 248, 250, 0.96), rgba(255, 248, 250, 0.78));
  backdrop-filter: blur(18px);
}

.profile-hero h1 {
  margin-top: 3px;
  color: #26222a;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 820;
}

.profile-hero p {
  margin-top: 6px;
  color: #91858c;
  font-size: 12px;
  line-height: 1.4;
}

.profile-dashboard {
  gap: 13px;
  padding: 8px 16px 96px;
}

.profile-dashboard .profile-card {
  border-color: rgba(255, 143, 171, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(190, 93, 122, 0.1);
}

.profile-dashboard .section-title strong {
  color: #2d2830;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 820;
}

.profile-dashboard .section-title .text-button,
.profile-dashboard .section-title > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #80727b;
  font-size: 11px;
  font-weight: 720;
}

.profile-dashboard .section-title svg {
  width: 13px;
  height: 13px;
}

.profile-identity-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 132px;
  padding: 12px;
}

.profile-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.profile-avatar-img {
  width: 96px;
  height: 96px;
  border: 2px solid #ffd9e4;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(237, 82, 122, 0.18);
}

.profile-edit-avatar {
  position: absolute;
  right: 0;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #ff6f91;
  color: #fff;
  box-shadow: 0 8px 16px rgba(236, 82, 122, 0.22);
}

.profile-edit-avatar svg {
  width: 12px;
  height: 12px;
}

.profile-identity-main {
  display: grid;
  position: relative;
  gap: 8px;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-name-row strong {
  color: #2c2730;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 820;
}

.profile-name-row span,
.copy-chip,
.profile-tags small {
  border-radius: 999px;
  padding: 4px 8px;
  background: #ffe8ef;
  color: #ff5f87;
  font-size: 10px;
  line-height: 1;
  font-weight: 820;
}

.profile-identity-main small {
  color: #81747d;
  font-size: 11px;
}

.copy-chip {
  position: absolute;
  top: 28px;
  right: 0;
  min-width: 42px;
}

.profile-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.profile-mini-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border-radius: 8px;
  background: #fff7f9;
  color: #2f2930;
  font-size: 12px;
}

.profile-mini-stats svg {
  width: 17px;
  height: 17px;
  color: #ff6f91;
}

.profile-mini-stats b {
  font-size: 19px;
  line-height: 1;
}

.title-status-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 250, 0.96)),
    #fff;
}

.title-status-body {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.title-status-body img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.title-status-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.title-status-copy h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #322b31;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 840;
}

.title-status-copy h2 svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #ff6f91;
}

.title-status-copy p,
.skin-focus-body p {
  color: #877983;
  font-size: 12px;
  line-height: 1.45;
}

.pink-progress {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #f6e6ec;
}

.pink-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9bb5, #ff5f8a);
}

.pink-progress.slim {
  height: 5px;
}

.profile-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-card-foot small {
  color: #91838b;
  font-size: 11px;
}

.skin-focus-body {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.skin-focus-entry {
  display: grid;
  gap: 12px;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.skin-focus-body img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
}

.skin-focus-body > div {
  display: grid;
  gap: 8px;
}

.skin-focus-body span {
  color: #332c32;
  font-size: 17px;
  font-weight: 840;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skin-focus-detected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skin-focus-detected small {
  border-radius: 999px;
  padding: 4px 7px;
  background: #fff7f9;
  color: #8d7b85;
  font-size: 10px;
  line-height: 1.15;
}

.skin-focus-card footer,
.achievement-showcase-card footer {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a0959b;
  font-size: 11px;
  line-height: 1.35;
}

.skin-focus-card footer svg,
.achievement-showcase-card footer svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #ff6f91;
}

.skin-history-hero {
  padding-bottom: 18px;
}

.skin-history-page {
  gap: 12px;
  padding-top: 8px;
}

.skin-history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 4px;
}

.skin-history-toolbar > div {
  display: grid;
  gap: 3px;
}

.skin-history-toolbar strong {
  color: #2d2830;
  font-size: 15px;
  font-weight: 820;
}

.skin-history-toolbar span {
  color: #91838b;
  font-size: 11px;
}

.skin-history-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 143, 171, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(190, 93, 122, 0.1);
}

.skin-history-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.skin-history-card-head > div {
  display: grid;
  gap: 4px;
}

.skin-history-card-head span,
.skin-history-card-head small {
  color: #9a8d94;
  font-size: 11px;
  line-height: 1.2;
}

.skin-history-card-head strong {
  color: #2f2930;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 840;
}

.skin-history-card-head small {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: #ffe8ef;
  color: #ff5f87;
  font-weight: 820;
}

.skin-history-card p {
  margin: 0;
  color: #837681;
  font-size: 12px;
  line-height: 1.5;
}

.skin-history-tags small {
  font-size: 10px;
}

.skin-history-block {
  display: grid;
  gap: 8px;
}

.skin-history-block > strong {
  color: #40363e;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 820;
}

.skin-detected-grid,
.skin-zone-history {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.skin-detected-chip,
.skin-zone-history span {
  display: grid;
  min-width: 0;
  gap: 4px;
  border: 1px solid rgba(95, 55, 68, 0.1);
  border-radius: 8px;
  padding: 8px 9px;
  background: #fff8fb;
}

.skin-detected-chip b,
.skin-zone-history b {
  overflow: hidden;
  color: #3a3038;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skin-detected-chip small,
.skin-zone-history small {
  overflow: hidden;
  color: #91828b;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skin-detected-chip.high {
  border-color: rgba(236, 82, 122, 0.3);
  background: #fff0f5;
}

.skin-detected-chip.medium,
.skin-detected-chip.low {
  border-color: rgba(255, 174, 104, 0.35);
  background: #fff7ed;
}

.skin-detected-chip.clear {
  background: #f6fbf8;
}

.skin-history-recommendations {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 17px;
  color: #837681;
  font-size: 11px;
  line-height: 1.45;
}

.achievement-showcase-card {
  width: 100%;
  color: inherit;
  text-align: left;
}

.achievement-showcase-body {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.achievement-ring {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 8px solid #ffe6ed;
  border-top-color: #ff6f91;
  border-radius: 50%;
  color: #363036;
}

.achievement-ring strong {
  font-size: 17px;
  line-height: 1;
  font-weight: 840;
}

.achievement-ring span {
  color: #a0929b;
  font-size: 10px;
}

.achievement-carousel {
  display: grid;
  grid-auto-columns: 70px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.achievement-carousel::-webkit-scrollbar {
  display: none;
}

.achievement-carousel span {
  display: grid;
  justify-items: center;
  position: relative;
  gap: 4px;
  min-width: 70px;
  color: #7b6e77;
  font-size: 10px;
  text-align: center;
}

.achievement-carousel img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.achievement-carousel .locked img {
  filter: grayscale(1);
  opacity: 0.42;
}

.achievement-carousel span > i {
  position: absolute;
  top: 38px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #aaa2a8;
  color: #fff;
}

.achievement-carousel span > i svg {
  width: 11px;
  height: 11px;
}

.achievement-carousel small {
  overflow: hidden;
  width: 100%;
  color: currentColor;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-course-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.today-course-row img {
  width: 66px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.today-course-row div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.today-course-row h2 {
  overflow: hidden;
  margin: 0;
  color: #302a30;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-course-row span {
  color: #8f828b;
  font-size: 11px;
}

.continue-button {
  min-width: 76px;
  height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  background: linear-gradient(135deg, #ff83a4, #ff5f88);
  color: #fff;
  font-size: 12px;
  font-weight: 840;
  box-shadow: 0 10px 22px rgba(255, 95, 136, 0.24);
}

.profile-data-body {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.profile-data-body > img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.profile-data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-data-grid span {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  color: #2f2930;
  text-align: center;
}

.profile-data-grid svg {
  width: 17px;
  height: 17px;
  color: #ff6f91;
}

.profile-data-grid b {
  font-size: 17px;
  line-height: 1;
  font-weight: 840;
}

.profile-data-grid small {
  overflow-wrap: anywhere;
  color: #8e828a;
  font-size: 9px;
  line-height: 1.2;
}

/* Profile dashboard visual pass: mirrors the supplied 390px reference. */
.profile-shell {
  border-radius: 28px;
  background: linear-gradient(180deg, #fffafb 0%, #fff3f6 48%, #fffafb 100%);
}

.profile-hero {
  min-height: 150px;
  padding: 28px 18px 16px;
  background: transparent;
}

.profile-hero h1 {
  margin-top: 6px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.profile-hero p {
  margin-top: 9px;
  font-size: 14px;
}

.profile-hero .back-control {
  width: 44px;
  height: 44px;
  margin-top: -2px;
  background: #fff;
  color: #ff5e86;
}

.profile-dashboard {
  gap: 14px;
  padding: 0 16px 94px;
}

.profile-dashboard .profile-card {
  border: 1px solid rgba(255, 111, 145, 0.15);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(206, 119, 145, 0.08);
}

.profile-identity-card {
  min-height: 210px;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  padding: 16px !important;
}

.profile-avatar-wrap,
.profile-avatar-img {
  width: 86px;
  height: 86px;
}

.profile-avatar-img { border-width: 3px; }

.profile-name-row strong { font-size: 20px; }
.profile-identity-main { gap: 7px; }
.profile-identity-main small { font-size: 12px; }
.copy-chip { top: 2px; right: 0; padding: 7px 10px; }
.profile-mini-stats { gap: 8px; margin-top: 6px; }
.profile-mini-stats span { min-height: 54px; flex-direction: column; gap: 3px; font-size: 11px; }
.profile-mini-stats span b { font-size: 22px; }
.profile-mini-stats svg { width: 18px; height: 18px; }

.profile-dashboard .section-title strong { display: inline-flex; align-items: center; gap: 7px; font-size: 18px; }
.profile-dashboard .section-title strong svg { width: 20px; height: 20px; color: #ff5e86; }
.profile-dashboard .section-title .text-button,
.profile-dashboard .section-title > span { font-size: 12px; }

.skin-focus-card { min-height: 168px; }
.skin-focus-body { grid-template-columns: 86px minmax(0, 1fr); gap: 14px; }
.skin-focus-body img { width: 86px; height: 86px; }
.skin-focus-body span { font-size: 21px; }
.skin-focus-body p { font-size: 13px; }
.skin-focus-card footer { margin-top: 4px; font-size: 12px; }

.cosmetics-card { min-height: 282px; }
.cosmetics-summary { display: grid; grid-template-columns: 142px minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 12px; }
.cosmetics-summary > img { width: 142px; height: 108px; object-fit: contain; mix-blend-mode: multiply; }
.cosmetics-summary p { margin: 0 0 9px; color: #302b31; font-size: 16px; }
.cosmetics-summary p b { color: #ff5e86; font-size: 28px; }
.cosmetics-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.cosmetics-stats span { display: grid; justify-items: center; gap: 3px; padding: 7px 2px; border: 1px solid rgba(255, 111, 145, 0.18); border-radius: 12px; background: #fff9fa; }
.cosmetics-stats svg { width: 18px; height: 18px; color: #ff5e86; }
.cosmetics-stats small { color: #817780; font-size: 10px; }
.cosmetics-stats b { color: #302b31; font-size: 15px; }
.cosmetics-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.cosmetics-actions button { min-height: 56px; border: 1px solid rgba(255, 111, 145, 0.15); border-radius: 12px; background: #fffafb; color: #463e44; font-size: 11px; }
.cosmetics-actions button svg { width: 18px; height: 18px; margin-right: 4px; vertical-align: middle; color: #ff5e86; }
.cosmetics-actions .recommend-button { background: linear-gradient(135deg, #ffe3eb, #fff3f6); color: #ff4f7d; }
.recommend-button b, .recommend-button small { display: block; }
.recommend-button b { font-size: 13px; }
.recommend-button small { margin-top: 3px; color: #88777f; font-size: 9px; line-height: 1.3; }

.lookbook-card { min-height: 246px; }
.lookbook-card .section-title > div { min-width: 0; }
.lookbook-card .section-helper { display: block; margin-top: 4px; color: #92868d; font-size: 11px; font-weight: 400; }
.lookbook-card .section-title > span { white-space: nowrap; }
.lookbook-card .section-title > span b, .records-card b { color: #ff5e86; font-size: 18px; }
.lookbook-tabs { display: flex; gap: 24px; margin-top: 15px; }
.lookbook-tabs button { position: relative; padding: 0 2px 8px; background: transparent; color: #837780; font-size: 12px; }
.lookbook-tabs button.active { color: #ff5e86; font-weight: 800; }
.lookbook-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 999px; background: #ff5e86; }
.lookbook-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.lookbook-grid button { min-width: 0; padding: 0; background: transparent; color: #60565d; font-size: 11px; }
.lookbook-grid img { width: 100%; height: 82px; border-radius: 12px; object-fit: cover; }
.lookbook-grid span { display: block; margin-top: 6px; white-space: nowrap; }
.lookbook-more { float: right; margin-top: 9px; padding: 6px 12px; border-radius: 999px; background: #ffe8ef; color: #ff5e86; font-size: 11px; }

.title-status-card { min-height: 138px; }
.title-status-body { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; margin-top: 10px; }
.title-status-body img { width: 78px; height: 78px; }
.title-status-copy h2 { font-size: 17px; }
.title-status-copy p { font-size: 12px; }

.achievement-showcase-card { min-height: 132px; }
.achievement-showcase-body { grid-template-columns: 76px minmax(0, 1fr); }
.achievement-ring { width: 76px; height: 76px; border-width: 8px; }
.achievement-ring strong { font-size: 21px; }

.records-card { min-height: 102px; }
.records-card .section-title > span { font-size: 11px; color: #766a72; }
.records-card p { margin-top: 12px; color: #8d8188; font-size: 13px; }

@media (max-width: 420px) {
  .app-root { padding: 0; }
  .phone-shell { width: 100%; height: 100vh; max-height: none; border-radius: 0; }
}

.empty-card {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-card strong {
  color: var(--ink);
}

.prototype-board {
  width: min(100%, 1500px);
  min-height: 100vh;
  padding: 28px;
}

.board-header {
  align-items: flex-end;
  margin-bottom: 26px;
}

.board-header span {
  color: var(--pink-strong);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.board-header h1 {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 760;
}

.board-header p {
  margin-top: 10px;
  color: var(--muted);
}

.board-header .primary-button {
  width: auto;
  white-space: nowrap;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
  align-items: start;
}

.screen-shot {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.screen-shot h2 {
  justify-self: start;
  font-size: 18px;
}

.screen-shot .phone-shell {
  width: 310px;
  height: 680px;
  min-height: 680px;
  max-height: 680px;
  transform-origin: top center;
}

.screen-shot .modal-backdrop {
  display: none;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 112px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(36, 26, 33, 0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 720;
  transform: translateX(50%);
  box-shadow: 0 14px 36px rgba(36, 26, 33, 0.26);
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(3deg);
  }
}

@keyframes sheetIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .app-root {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    align-items: stretch;
  }

  .phone-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .prototype-board {
    padding: 18px;
  }

  .board-header {
    display: grid;
    align-items: start;
  }

  .board-header .primary-button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .hero-copy h1 {
    font-size: 27px;
  }

  .skin-confirm-sheet {
    width: min(calc(100% - 18px), 430px);
    min-height: min(78vh, 660px);
    padding: 22px 18px 18px;
  }

  .skin-concern-grid {
    gap: 7px;
  }

  .skin-concern-chip {
    padding: 8px;
  }

  .eye-guide-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .eye-item-grid {
    grid-template-columns: 1fr;
  }

  .eye-card-description {
    font-size: 15px;
  }

  .practice-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .practice-library,
  .practice-detail-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .practice-feature {
    grid-template-columns: 98px minmax(0, 1fr);
    padding-right: 16px;
    padding-left: 16px;
  }

  .practice-feature img {
    width: 98px;
  }

  .practice-grid {
    gap: 9px;
  }

  .practice-card-body {
    min-height: 112px;
    padding: 10px;
  }
}

/* 解析完成后的跟练工作台 */
.lesson-shell {
  --lesson-accent: #eb4f7d;
  --lesson-accent-soft: #fff0f5;
  --lesson-ink: #241f23;
  --lesson-muted: #8d8389;
  --lesson-line: rgba(73, 50, 61, 0.09);
  min-height: min(844px, calc(100vh - 44px));
  max-height: calc(100vh - 44px);
  background: #fffdfd;
}

.lesson-shell .shell-content {
  display: grid;
  grid-template-rows: 68px 94px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.lesson-shell .lesson-header {
  position: relative;
  z-index: 22;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  min-height: 68px;
  padding: 10px 14px 8px;
  background: rgba(255, 253, 253, 0.96);
  border-bottom: 0;
  backdrop-filter: blur(18px);
}

.lesson-shell .lesson-back-control {
  width: 42px;
  height: 42px;
  background: #fff;
  color: var(--lesson-ink);
  box-shadow: 0 10px 26px rgba(80, 50, 64, 0.1);
}

.lesson-shell .lesson-back-control svg {
  width: 22px;
  height: 22px;
}

.lesson-title-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.lesson-shell .lesson-title-copy > strong {
  flex: 0 1 auto;
  max-width: none;
  color: var(--lesson-ink);
  font-size: 18px;
  font-weight: 880;
  letter-spacing: -0.02em;
}

.lesson-shell .mentor-control {
  display: inline-flex;
  min-width: 0;
  max-width: 118px;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(235, 79, 125, 0.08);
  border-radius: 999px;
  padding: 4px 8px 4px 4px;
  background: var(--lesson-accent-soft);
  color: var(--lesson-accent);
  box-shadow: none;
}

.lesson-shell .mentor-control img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

.lesson-shell .mentor-control .mentor-avatar-fallback {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  overflow: visible;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff9fba, #e55280);
  color: #fff;
  font-size: 10px;
  font-weight: 880;
  line-height: 1;
}

.lesson-shell .mentor-control span {
  overflow: hidden;
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-shell .mentor-control svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: currentColor;
  transition: transform 180ms ease;
}

.lesson-shell .mentor-control.is-active {
  background: var(--lesson-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(235, 79, 125, 0.22);
}

.lesson-shell .mentor-control.is-active svg {
  transform: rotate(180deg);
}

.lesson-stage-rail {
  position: relative;
  z-index: 12;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 12px 8px;
  background: #fffdfd;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.lesson-stage-rail::-webkit-scrollbar {
  display: none;
}

.lesson-stage-track {
  position: relative;
  display: grid;
  grid-auto-columns: 68px;
  grid-auto-flow: column;
  width: max-content;
  min-width: 100%;
  gap: 0;
}

.lesson-stage-track::before,
.lesson-stage-track::after {
  position: absolute;
  top: 18px;
  left: 34px;
  height: 2px;
  border-radius: 999px;
  content: "";
}

.lesson-stage-track::before {
  right: 34px;
  background: #eee8eb;
}

.lesson-stage-track::after {
  right: 34px;
  background: var(--lesson-accent);
  transform: scaleX(var(--stage-progress, 0));
  transform-origin: left center;
}

.lesson-stage-item {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  width: 68px;
  min-height: 68px;
  padding: 0 3px;
  background: transparent;
  color: #7c7379;
}

.lesson-stage-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #fffdfd;
  border-radius: 50%;
  background: #f6f1f3;
  color: #3b3439;
  font-size: 14px;
  font-weight: 820;
  box-shadow: 0 0 0 1px rgba(78, 55, 65, 0.04);
}

.lesson-stage-label {
  overflow: hidden;
  width: 100%;
  color: currentColor;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-stage-item.is-complete .lesson-stage-number {
  background: #ffe5ed;
  color: var(--lesson-accent);
}

.lesson-stage-item.is-active {
  color: var(--lesson-accent);
}

.lesson-stage-item.is-active .lesson-stage-number {
  background: var(--lesson-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(235, 79, 125, 0.26);
}

.video-substep-rail::-webkit-scrollbar {
  display: none;
}

.lesson-workspace {
  --lesson-workbench-peek: 128px;
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #171315;
}

.lesson-shell .lesson-media {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  padding: 0;
  background: #171315;
  touch-action: pan-y;
  transition: bottom 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lesson-workspace.is-workbench-open .lesson-media {
  bottom: 45vh;
  bottom: 45dvh;
  height: auto;
}

.lesson-media-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
}

.mirror-mode-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 780;
  box-shadow: 0 10px 24px rgba(16, 8, 12, 0.14);
  backdrop-filter: blur(12px);
}

.mirror-mode-button {
  background: rgba(255, 255, 255, 0.92);
  color: #2b2428;
  margin-left: auto;
  pointer-events: auto;
}

.mirror-mode-button svg {
  width: 17px;
  height: 17px;
}

.lesson-shell .lesson-media .lesson-video-player,
.lesson-shell .lesson-media .tutorial-cover,
.lesson-shell .lesson-media .mirror-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #171315;
  object-fit: cover;
}

.lesson-shell .lesson-media .lesson-video-backdrop {
  position: absolute;
  inset: -22px;
  z-index: 0;
  width: calc(100% + 44px);
  height: calc(100% + 44px);
  object-fit: cover;
  opacity: 0.54;
  filter: blur(22px) saturate(0.82) brightness(0.62);
  pointer-events: none;
  transform: scale(1.08);
}

.lesson-shell .lesson-media .lesson-video-player {
  z-index: 1;
  background: transparent;
}

.lesson-shell .media-gradient {
  z-index: 2;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(20, 14, 18, 0.84));
}

.lesson-shell .center-play {
  z-index: 5;
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(20, 10, 15, 0.2);
}

.lesson-shell .video-playback-status {
  z-index: 8;
  padding: 70px 28px 132px;
}

.lesson-shell .video-meta {
  --lesson-progress-start: 48px;
  --lesson-progress-end: 90px;
  --lesson-progress-thumb-radius: 10px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  display: grid;
  gap: 10px;
  padding: 0 14px 13px;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lesson-workspace.is-workbench-collapsed .video-meta {
  transform: translate3d(0, calc(-1 * var(--lesson-workbench-peek)), 0);
}

.lesson-workspace.is-workbench-open .video-meta {
  gap: 6px;
  padding: 0 13px 4px;
  transform: translate3d(0, 4px, 0);
}

.video-control-strip {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
}

.video-fullscreen-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(10px);
}

.video-fullscreen-button svg {
  width: 19px;
  height: 19px;
}

.video-timeline-column {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.video-timeline-readout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 14px;
}

.video-timeline-stage {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 720;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-shell .video-control-strip {
  position: relative;
  min-height: 56px;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 7px;
}

.lesson-shell .video-fullscreen-button {
  position: absolute;
  top: 26px;
  right: 0;
  z-index: 4;
}

.lesson-shell .video-speed-control {
  position: absolute;
  top: 26px;
  right: 38px;
  z-index: 5;
  margin: 0;
  transform: translateY(-50%);
}

.lesson-shell .video-speed-control .speed-trigger {
  min-height: 24px;
  gap: 3px;
  padding: 0 6px 0 8px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(24, 18, 22, 0.88);
  box-shadow: 0 8px 18px rgba(16, 9, 12, 0.22);
  font-size: 10px;
}

.lesson-shell .video-speed-control .speed-trigger svg {
  width: 11px;
  height: 11px;
}

.lesson-shell .video-speed-control .speed-menu {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 8px) scale(0.96);
}

.lesson-shell .video-speed-control .speed-menu.is-open {
  transform: translate(-50%, 0) scale(1);
}

.video-substep-rail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 36px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-padding-inline: 50%;
  scrollbar-width: none;
  pointer-events: none;
}

.video-substep-rail-content {
  position: relative;
  width: var(--substep-content-width, 0px);
  min-width: 100%;
  height: 100%;
}

.lesson-shell .video-progress {
  position: absolute;
  top: 31px;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 25px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  opacity: 1;
  touch-action: pan-x;
}

.lesson-shell .video-progress::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #f36b92 0%,
    #f36b92 calc(var(--video-progress, 0) * 100%),
    rgba(255, 255, 255, 0.32) calc(var(--video-progress, 0) * 100%),
    rgba(255, 255, 255, 0.32) 100%
  );
}

.lesson-shell .video-progress::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: #f36b92;
  box-shadow: 0 1px 5px rgba(42, 18, 28, 0.28);
  opacity: 1;
  appearance: none;
  transform: translateY(-10px);
}

.lesson-shell .video-progress::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.lesson-shell .video-progress::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: #f36b92;
  box-shadow: 0 1px 5px rgba(42, 18, 28, 0.28);
  opacity: 1;
  transform: translateY(-10px);
}

.video-substep {
  position: absolute;
  top: 0;
  left: calc(8px + (100% - 16px) * var(--substep-position, 0));
  z-index: 4;
  display: grid;
  justify-items: center;
  width: 82px;
  min-height: 57px;
  padding: 0 5px;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  transform: translateX(-50%);
  transition: background 160ms ease, color 160ms ease;
  pointer-events: auto;
}

.video-substep.is-first {
  justify-items: start;
  transform: none;
}

.video-substep.is-last {
  justify-items: end;
  transform: translateX(-100%);
}

.video-substep.is-first.is-last {
  justify-items: start;
  transform: none;
}

.video-substep-dot {
  width: 14px;
  height: 14px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(66, 52, 59, 0.88);
  box-shadow: 0 0 0 2px rgba(235, 79, 125, 0.16);
}

.video-substep.is-complete {
  color: rgba(255, 255, 255, 0.9);
}

.video-substep.is-complete .video-substep-dot {
  background: var(--lesson-accent);
}

.video-substep.is-active {
  color: #fff;
}

.video-substep.is-active .video-substep-dot {
  width: 20px;
  height: 20px;
  border-width: 5px;
  background: var(--lesson-accent);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 8px 20px rgba(235, 79, 125, 0.32);
}

.video-substep-status {
  position: absolute;
  top: 28px;
  right: 0;
  left: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  font-weight: 680;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-workspace.is-workbench-open .video-control-strip {
  grid-template-columns: minmax(0, 1fr) 32px;
  min-height: 46px;
  gap: 6px;
}

.lesson-workspace.is-workbench-open .video-fullscreen-button {
  width: 32px;
  height: 32px;
  top: 16px;
}

.lesson-workspace.is-workbench-open .video-speed-control {
  top: 16px;
}

.lesson-workspace.is-workbench-open .video-fullscreen-button svg {
  width: 17px;
  height: 17px;
}

.lesson-shell .lesson-workspace.is-workbench-open .video-substep-rail {
  height: 51px;
}

.lesson-workspace.is-workbench-open .video-substep {
  min-height: 51px;
  width: 76px;
}

.lesson-workspace.is-workbench-open .video-substep-dot {
  width: 12px;
  height: 12px;
  border-width: 2px;
}

.lesson-workspace.is-workbench-open .video-substep strong {
  font-size: 9px;
}

.lesson-workspace.is-workbench-open .video-substep small {
  font-size: 8px;
}

.lesson-workspace.is-workbench-open .video-substep.is-active .video-substep-dot {
  width: 18px;
  height: 18px;
  border-width: 4px;
}

.lesson-workspace.is-workbench-open .video-substep-status {
  font-size: 9px;
}

/* 课程节点与播放进度共用一条轨道：阶段节点在上，当前阶段的细节点在轨道下方。 */
.video-substep-rail {
  height: 57px;
  border-radius: 12px;
  background: transparent;
}

.lesson-shell .video-progress {
  left: calc(var(--lesson-progress-start) - var(--lesson-progress-thumb-radius));
  width: calc(100% - var(--lesson-progress-start) - var(--lesson-progress-end) + var(--lesson-progress-thumb-radius) + var(--lesson-progress-thumb-radius));
}

.lesson-workspace.is-workbench-open .video-progress {
  top: 21px;
}

.lesson-shell .video-substep-rail {
  top: 31px;
  height: 25px;
}

.lesson-shell .video-substep-detail {
  top: 0;
  min-height: 25px;
  align-items: center;
}

.lesson-workspace.is-workbench-open .video-substep-rail {
  top: 21px;
  height: 25px;
}

.lesson-shell .lesson-workspace.is-workbench-open .video-substep-detail {
  top: 0;
  min-height: 25px;
}

.lesson-shell .video-substep {
  top: 0;
  left: calc(var(--lesson-progress-start) + (100% - var(--lesson-progress-start) - var(--lesson-progress-end)) * var(--substep-position, 0));
}

.video-stage-node-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.video-stage-node {
  position: absolute;
  top: 0;
  left: calc(8px + (100% - 16px) * var(--stage-position, 0));
  display: grid;
  width: 54px;
  min-height: 76px;
  justify-items: center;
  padding: 0 2px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  transform: translateX(-50%);
  transition: color 160ms ease;
}

.video-stage-node.is-first {
  justify-items: start;
  transform: none;
}

.video-stage-node.is-last {
  justify-items: end;
  transform: translateX(-100%);
}

.video-stage-node.is-first.is-last {
  justify-items: start;
  transform: none;
}

.video-stage-number {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(66, 52, 59, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 820;
  box-shadow: 0 0 0 2px rgba(235, 79, 125, 0.16);
}

.video-stage-label {
  display: block;
  overflow: hidden;
  width: 100%;
  margin-top: 4px;
  color: currentColor;
  font-size: 9px;
  font-weight: 760;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-stage-node.is-complete {
  color: rgba(255, 255, 255, 0.92);
}

.video-stage-node.is-complete .video-stage-number {
  background: var(--lesson-accent);
}

.video-stage-node.is-active {
  color: #fff;
}

.video-stage-node.is-active .video-stage-number {
  width: 30px;
  height: 30px;
  border-color: #fff;
  background: var(--lesson-accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.78), 0 8px 20px rgba(235, 79, 125, 0.35);
}

.video-substep-detail {
  top: 34px;
  z-index: 5;
  width: 72px;
  min-height: 31px;
  padding: 0 2px;
  border-radius: 8px;
  background: transparent;
  color: rgba(170, 170, 176, 0.9);
  transform: translateX(-50%);
  transition: color 160ms ease;
}

.video-substep-detail.is-first {
  justify-items: start;
  transform: none;
}

.video-substep-detail.is-last {
  justify-items: end;
  transform: translateX(-100%);
}

.video-substep-detail.is-first.is-last {
  justify-items: start;
  transform: none;
}

.video-substep-detail .video-substep-dot {
  width: 10px;
  height: 10px;
  border: 0;
  background: #8b8b90;
  box-shadow: none;
}

.video-substep-detail.is-active .video-substep-dot {
  width: 10px;
  height: 10px;
  border: 0;
  background: #8b8b90;
  box-shadow: none;
  transform: none;
}

.video-substep-detail.is-active,
.video-substep-detail.is-complete {
  color: rgba(170, 170, 176, 0.9);
}

.video-substep-detail.is-complete .video-substep-dot {
  background: #8b8b90;
  box-shadow: none;
}

.lesson-shell .video-substep-detail.is-active .video-substep-dot {
  transform: none;
}

.video-stage-number,
.video-stage-node.is-complete .video-stage-number,
.video-stage-node.is-active .video-stage-number,
.video-substep-detail .video-substep-dot,
.video-substep-detail.is-active .video-substep-dot,
.video-substep-detail.is-complete .video-substep-dot {
  border-color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(145deg, #ffffff 0%, #ffdce8 48%, #f28aab 100%);
  box-shadow: 0 0 0 2px rgba(255, 157, 188, 0.3), 0 4px 12px rgba(231, 91, 132, 0.24);
}

.video-stage-node.is-active .video-stage-number {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 7px 18px rgba(235, 79, 125, 0.34);
}

.lesson-workspace.is-workbench-open .video-substep-rail {
  height: 51px;
}

.lesson-workspace.is-workbench-open .video-stage-node {
  width: 48px;
  min-height: 65px;
}

.lesson-workspace.is-workbench-open .video-stage-number {
  width: 23px;
  height: 23px;
}

.lesson-workspace.is-workbench-open .video-stage-node.is-active .video-stage-number {
  width: 27px;
  height: 27px;
}

.lesson-workspace.is-workbench-open .video-stage-label {
  font-size: 8px;
}

.lesson-workspace.is-workbench-open .video-substep-detail {
  top: 28px;
  width: 68px;
  min-height: 28px;
}

.lesson-workspace.is-workbench-open .video-substep-detail .video-substep-dot {
  width: 8px;
  height: 8px;
  border: 0;
  background: #8b8b90;
  box-shadow: none;
}

.lesson-workspace.is-workbench-open .video-substep-detail.is-active .video-substep-dot {
  width: 8px;
  height: 8px;
  border: 0;
  background: #8b8b90;
  box-shadow: none;
  transform: none;
}

.lesson-shell .assistant-fab {
  right: -18px;
  z-index: 12;
}

.lesson-shell .coach-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 13;
  height: 45vh;
  height: 45dvh;
  min-height: 0;
  border-radius: 24px 24px 0 0;
  background: rgba(255, 253, 253, 0.98);
  box-shadow: 0 -16px 40px rgba(38, 23, 31, 0.12);
  pointer-events: auto;
  transform: translate3d(0, calc(100% - var(--lesson-workbench-peek)), 0);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(20px);
  will-change: transform;
}

.lesson-shell .coach-bar.is-open {
  transform: translate3d(0, 0, 0);
}

.lesson-shell .coach-bar.is-dragging {
  transition: none;
}

.coach-handle {
  position: absolute;
  top: 1px;
  left: 50%;
  z-index: 4;
  display: grid;
  width: 72px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  cursor: grab;
  touch-action: none;
  transform: translateX(-50%);
}

.coach-handle:active {
  cursor: grabbing;
}

.coach-handle span {
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: #d7d0d4;
}

.lesson-workbench-peek-hint {
  position: absolute;
  top: 35px;
  right: 14px;
  left: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 22px;
  margin: 0;
  color: #8d8389;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.lesson-workbench-peek-hint svg {
  width: 16px;
  height: 16px;
  color: var(--lesson-accent);
  transform-origin: center;
  animation: lesson-peek-breathe 1.8s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes lesson-peek-breathe {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px) scale(1.06);
  }
}

.lesson-workbench-content {
  position: absolute;
  top: 30px;
  right: 12px;
  bottom: 74px;
  left: 12px;
  display: grid;
  grid-template-rows: 46px minmax(0, 1fr);
  gap: 7px;
  min-height: 0;
  opacity: 1;
  transition: opacity 140ms ease;
}

.coach-bar.is-collapsed .lesson-workbench-content {
  opacity: 0;
  pointer-events: none;
}

.lesson-tool-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 18px;
  background: #fff8fa;
}

.lesson-tool-tabs button {
  position: relative;
  display: grid;
  grid-template-columns: 20px auto;
  min-width: 0;
  min-height: 46px;
  place-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 16px;
  background: transparent;
  color: #8b8388;
}

.lesson-tool-tabs button.is-active {
  background: #fff0f5;
  color: var(--lesson-accent);
}

.lesson-tool-tabs svg,
.lesson-tool-tabs img {
  width: 18px;
  height: 18px;
}

.lesson-tool-tabs img {
  border-radius: 50%;
  object-fit: cover;
}

.lesson-tool-tabs .mentor-avatar-fallback {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  overflow: visible;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff9fba, #e55280);
  color: #fff;
  font-size: 9px;
  font-weight: 880;
  line-height: 1;
}

.lesson-tool-tabs span {
  overflow: hidden;
  color: currentColor;
  font-size: 12px;
  font-weight: 790;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-tool-panel {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1px 3px 5px;
  color: var(--lesson-ink);
  scrollbar-width: thin;
  scrollbar-color: rgba(235, 79, 125, 0.22) transparent;
}

.lesson-tool-panel::-webkit-scrollbar {
  width: 4px;
}

.lesson-tool-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(235, 79, 125, 0.22);
}

.lesson-panel-header {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 3px 7px;
}

.lesson-panel-header > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
}

.lesson-panel-header span {
  flex: 0 0 auto;
  color: var(--lesson-accent);
  font-size: 10px;
  font-weight: 760;
}

.lesson-panel-header strong {
  overflow: hidden;
  color: var(--lesson-ink);
  font-size: 14px;
  font-weight: 860;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-panel-link {
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  padding: 0 7px;
  color: #786f74;
  font-size: 10px;
  font-weight: 760;
}

.lesson-panel-link svg {
  width: 13px;
  height: 13px;
}

.lesson-ai-note,
.lesson-product-context {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  padding: 6px 10px;
  background: #fff2f6;
  color: #cb426b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.lesson-ai-note svg,
.lesson-product-context svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.lesson-panel-status {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px solid var(--lesson-line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  color: var(--lesson-muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.lesson-substep-strip {
  display: grid;
  grid-auto-columns: minmax(88px, 1fr);
  grid-auto-flow: column;
  gap: 6px;
  overflow-x: auto;
  padding: 1px 0 7px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.lesson-substep-strip::-webkit-scrollbar {
  display: none;
}

.lesson-substep-chip {
  display: grid;
  min-width: 0;
  min-height: 48px;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--lesson-line);
  border-radius: 12px;
  padding: 5px 8px;
  background: #fff;
  color: #6f666b;
}

.lesson-substep-chip strong,
.lesson-substep-chip small {
  overflow: hidden;
  color: currentColor;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-substep-chip strong {
  font-size: 10px;
  font-weight: 780;
}

.lesson-substep-chip small {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.lesson-substep-chip.is-active {
  border-color: rgba(235, 79, 125, 0.68);
  background: #fff8fa;
  color: var(--lesson-accent);
  box-shadow: 0 8px 18px rgba(235, 79, 125, 0.08);
}

.lesson-step-focus-card {
  border: 1px solid var(--lesson-line);
  border-radius: 16px;
  padding: 10px 12px;
  background: #fff;
}

.lesson-step-focus-title {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.lesson-step-focus-title > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--lesson-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 840;
}

.lesson-step-focus-title strong {
  overflow: hidden;
  color: var(--lesson-ink);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-step-focus-title small {
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--lesson-accent-soft);
  color: var(--lesson-accent);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.lesson-step-focus-card > p {
  margin: 7px 0 0 29px;
  color: #6e656a;
  font-size: 10px;
  line-height: 1.55;
}

.lesson-step-focus-card > p.is-muted {
  color: var(--lesson-muted);
}

.lesson-step-focus-card ul {
  display: grid;
  gap: 4px;
  margin: 7px 0 0 29px;
  padding: 0;
  color: #41383d;
  font-size: 10px;
  line-height: 1.45;
  list-style: none;
}

.lesson-step-focus-card li::before {
  margin-right: 6px;
  color: var(--lesson-accent);
  content: "•";
}

.lesson-step-context {
  margin-top: 7px;
  border-radius: 14px;
  padding: 9px;
  background: #fff5f8;
}

.lesson-step-context > strong {
  display: block;
  margin-bottom: 7px;
  color: #d74770;
  font-size: 10px;
  font-weight: 820;
}

.lesson-step-context > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.lesson-step-context article {
  min-width: 0;
  border-radius: 10px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.82);
}

.lesson-step-context span {
  color: #d74770;
  font-size: 8px;
  font-weight: 760;
}

.lesson-step-context p {
  overflow: hidden;
  margin: 3px 0 0;
  color: #6f656a;
  font-size: 9px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lesson-technique-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 7px;
}

.lesson-technique-grid article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 68px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--lesson-line);
  border-radius: 14px;
  padding: 8px;
  background: #fff;
}

.lesson-technique-grid article > svg {
  width: 28px;
  height: 28px;
  color: var(--lesson-accent);
  stroke-width: 1.6;
}

.lesson-technique-grid article div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.lesson-technique-grid span {
  color: #8b8187;
  font-size: 9px;
  font-weight: 700;
}

.lesson-technique-grid strong {
  overflow: hidden;
  color: #40373c;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.4;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lesson-product-context {
  justify-content: flex-start;
  margin-bottom: 6px;
}

.lesson-product-context span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #d84a73;
  font-weight: 760;
}

.lesson-product-context strong {
  overflow: hidden;
  color: #554a50;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 7px;
}

.lesson-product-grid .recommendation-product-card {
  min-width: 0;
  min-height: 132px;
  gap: 9px;
  border: 1px solid var(--lesson-line);
  border-radius: 16px;
  padding: 11px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(70, 42, 56, 0.045);
}

.lesson-product-grid .recommendation-product-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.lesson-product-grid .recommendation-product-heading:not(:has(.recommendation-product-image)) {
  grid-template-columns: minmax(0, 1fr);
}

.lesson-product-grid .recommendation-product-image {
  width: 72px;
  height: 72px;
  border-radius: 12px;
}

.lesson-product-grid .recommendation-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-product-grid .recommendation-product-card strong {
  font-size: 13px;
  line-height: 1.45;
}

.lesson-product-grid .recommendation-product-card small {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.45;
}

.lesson-product-grid .recommendation-shopping-action {
  margin-top: auto;
}

.lesson-product-grid .shopping-purchase-link {
  min-height: 38px;
  justify-content: center;
  border-radius: 11px;
  padding: 6px 10px;
  font-size: 10px;
}

.lesson-product-grid .shopping-purchase-link svg {
  width: 14px;
  height: 14px;
}

.lesson-panel-secondary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  border-radius: 11px;
  padding: 0 10px;
  background: #fff0f5;
  color: var(--lesson-accent);
  font-size: 10px;
  font-weight: 760;
}

.lesson-panel-secondary svg {
  width: 14px;
  height: 14px;
}

.lesson-knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.lesson-knowledge-grid article {
  display: grid;
  min-width: 0;
  min-height: 106px;
  align-content: start;
  gap: 5px;
  border-radius: 14px;
  padding: 9px;
  background: linear-gradient(155deg, #fff9fb, #fff1f5);
}

.lesson-knowledge-grid svg {
  width: 18px;
  height: 18px;
  color: var(--lesson-accent);
}

.lesson-knowledge-grid strong {
  overflow: hidden;
  color: #d74670;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lesson-knowledge-grid p {
  overflow: hidden;
  margin: 0;
  color: #776d72;
  font-size: 9px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.lesson-mentor-knowledge {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  border: 1px solid rgba(235, 79, 125, 0.16);
  border-radius: 14px;
  padding: 7px 9px;
  background: #fff;
}

.lesson-mentor-knowledge > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.lesson-mentor-knowledge img,
.lesson-mentor-knowledge .mentor-avatar-fallback {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--lesson-accent-soft);
  object-fit: cover;
  color: var(--lesson-accent);
  font-size: 10px;
  font-weight: 820;
}

.lesson-mentor-knowledge p {
  display: grid;
  min-width: 0;
  gap: 2px;
  margin: 0;
}

.lesson-mentor-knowledge p strong,
.lesson-mentor-knowledge p span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-mentor-knowledge p strong {
  color: #443a40;
  font-size: 10px;
  font-weight: 800;
}

.lesson-mentor-knowledge p span {
  color: #8b8187;
  font-size: 9px;
}

.lesson-mentor-knowledge > button {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--lesson-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 790;
}

.lesson-mentor-knowledge > button svg {
  width: 13px;
  height: 13px;
}

.lesson-quick-controls {
  position: absolute;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.coach-bar.is-collapsed .lesson-quick-controls {
  top: 70px;
  bottom: auto;
}

.lesson-quick-button,
.lesson-complete-button {
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--lesson-line);
  border-radius: 16px;
  padding: 5px 7px;
  background: #fff;
  color: #342c31;
  box-shadow: 0 8px 20px rgba(70, 42, 56, 0.035);
}

.lesson-quick-button svg,
.lesson-complete-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.lesson-quick-button span,
.lesson-complete-button span,
.lesson-quick-button strong {
  overflow: hidden;
  color: currentColor;
  font-size: 10px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-quick-button strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.lesson-speed-button {
  flex-direction: column;
  gap: 0;
}

.lesson-replay-button {
  gap: 5px;
}

.lesson-quick-button.is-voice-active {
  border-color: rgba(235, 79, 125, 0.42);
  background: #fff2f6;
  color: var(--lesson-accent);
}

.lesson-quick-button.is-command-listening {
  border-color: transparent;
  background: var(--lesson-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(222, 53, 107, 0.22);
}

.lesson-playback-button {
  width: 50px;
  min-width: 50px;
  padding: 0;
  border-radius: 50%;
}

.lesson-complete-button {
  border-color: transparent;
  background: linear-gradient(135deg, #f35d87, #de356b);
  color: #fff;
  box-shadow: 0 12px 26px rgba(222, 53, 107, 0.24);
}

.lesson-stage-item:focus-visible,
.video-substep:focus-visible,
.mirror-mode-button:focus-visible,
.video-fullscreen-button:focus-visible,
.lesson-tool-tabs button:focus-visible,
.lesson-panel-link:focus-visible,
.lesson-substep-chip:focus-visible,
.lesson-panel-secondary:focus-visible,
.lesson-mentor-knowledge > button:focus-visible,
.lesson-quick-button:focus-visible,
.lesson-complete-button:focus-visible,
.lesson-shell .mentor-control:focus-visible {
  outline: 3px solid rgba(235, 79, 125, 0.3);
  outline-offset: 2px;
}

.lesson-workspace .lesson-media:fullscreen {
  inset: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #000;
}

.lesson-workspace .lesson-media:fullscreen .video-meta {
  transform: none;
}

@media (max-height: 720px) {
  .lesson-workspace {
    --lesson-workbench-peek: 118px;
  }

  .lesson-shell .shell-content {
    grid-template-rows: 62px 84px minmax(0, 1fr);
  }

  .lesson-shell .lesson-header {
    min-height: 62px;
    padding-top: 7px;
    padding-bottom: 6px;
  }

  .lesson-stage-rail {
    padding-top: 6px;
    padding-bottom: 4px;
  }

  .lesson-stage-item {
    min-height: 62px;
    gap: 4px;
  }

  .lesson-shell .coach-bar {
    height: 45vh;
    height: 45dvh;
  }

  .lesson-workspace.is-workbench-open .lesson-media {
    bottom: 45vh;
    bottom: 45dvh;
  }

  .coach-bar.is-collapsed .lesson-quick-controls {
    top: 64px;
  }

  .lesson-tool-tabs button,
  .lesson-quick-button,
  .lesson-complete-button {
    min-height: 46px;
  }

  .lesson-knowledge-grid article {
    min-height: 94px;
  }
}

@media (max-width: 760px) {
  .lesson-shell {
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
  }
}

@media (max-width: 390px) {
  .lesson-shell .lesson-header {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .lesson-shell .lesson-back-control {
    width: 40px;
    height: 40px;
  }

  .lesson-shell .lesson-title-copy > strong {
    font-size: 16px;
  }

  .lesson-shell .mentor-control {
    max-width: 104px;
  }

  .lesson-tool-tabs button {
    grid-template-columns: 18px auto;
    gap: 3px;
  }

  .lesson-tool-tabs svg,
  .lesson-tool-tabs img {
    width: 18px;
    height: 18px;
  }

  .lesson-tool-tabs .mentor-avatar-fallback {
    width: 18px;
    height: 18px;
  }

  .lesson-panel-header strong {
    font-size: 13px;
  }

  .lesson-technique-grid {
    gap: 5px;
  }

  .lesson-technique-grid article {
    grid-template-columns: 26px minmax(0, 1fr);
    min-height: 64px;
    gap: 6px;
    padding: 7px;
  }

  .lesson-technique-grid article > svg {
    width: 24px;
    height: 24px;
  }

  .lesson-product-grid,
  .lesson-knowledge-grid {
    gap: 5px;
  }

  .lesson-product-grid .recommendation-product-card,
  .lesson-knowledge-grid article {
    padding: 7px;
  }

  .lesson-product-grid .recommendation-product-card {
    min-height: 124px;
    padding: 10px;
  }

  .lesson-quick-controls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .lesson-quick-button,
  .lesson-complete-button {
    padding-right: 5px;
    padding-left: 5px;
  }

  .lesson-quick-button span,
  .lesson-complete-button span {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lesson-stage-rail,
  .video-substep-rail,
  .lesson-substep-strip {
    scroll-behavior: auto;
  }

  .lesson-shell .mentor-control svg {
    transition: none;
  }

  .lesson-shell .coach-bar,
  .lesson-shell .lesson-media,
  .lesson-workbench-content,
  .lesson-shell .video-meta {
    transition: none;
  }

  .lesson-workbench-peek-hint svg {
    animation: none;
    transform: none;
  }
}

/* 全局移动端基线：让所有路由共享动态视口、安全区和稳定的横向边界。 */
@media (max-width: 760px) {
  html,
  body,
  #app,
  .app-root {
    width: 100%;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .app-root {
    padding: 0;
    overflow-x: clip;
  }

  .phone-shell {
    width: 100%;
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
    max-height: 100svh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .shell-content {
    min-width: 0;
    overflow-x: clip;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .tabbar {
    padding-right: max(12px, var(--app-safe-right));
    padding-bottom: max(8px, var(--app-safe-bottom));
    padding-left: max(12px, var(--app-safe-left));
  }

  .toast {
    right: max(12px, var(--app-safe-right));
    bottom: calc(104px + var(--app-safe-bottom));
    left: max(12px, var(--app-safe-left));
    max-width: none;
    transform: none;
  }

  .modal-backdrop {
    padding: max(12px, var(--app-safe-top)) max(12px, var(--app-safe-right)) max(12px, var(--app-safe-bottom)) max(12px, var(--app-safe-left));
  }

  .bottom-sheet {
    width: min(100%, 430px);
    max-height: calc(100dvh - var(--app-safe-top) - var(--app-safe-bottom) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* 旧版移动 WebView 不支持毛玻璃或 color-mix 时，保留可读且稳定的实体颜色。 */
@supports not (backdrop-filter: blur(1px)) {
  .tabbar,
  .mentor-page-topbar,
  .lesson-shell .lesson-header,
  .bottom-sheet {
    backdrop-filter: none;
  }

  .tabbar,
  .mentor-page-topbar {
    background: #fffaf8;
  }

  .lesson-shell .lesson-header {
    background: #fffdfd;
  }
}

@supports not (color: color-mix(in srgb, black, white)) {
  .mentor-picker-card.is-current {
    border-color: var(--mentor-accent);
  }

  .practice-card:hover {
    border-color: var(--practice-accent);
  }

  .eye-guide-card.active {
    border-color: var(--eye-accent);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  }

  .eye-guide-card-icon,
  .eye-guide-card-callout,
  .eye-guide-card-head > span {
    color: var(--eye-accent);
  }
}

@media (max-width: 360px) {
  .mentor-home-hero {
    min-height: 242px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .mentor-home-welcome {
    min-height: 182px;
    padding-top: 20px;
  }

  .mentor-home-copy {
    width: 62%;
  }

  .mentor-home-copy h1 {
    font-size: 25px;
    letter-spacing: -1.2px;
  }

  .mentor-home-portrait {
    right: -50px;
    width: 182px;
  }

  .mentor-home-hero.has-mentor-group .mentor-home-portrait.is-mentor-group {
    right: -60px;
    width: 326px;
  }

  .mentor-analysis-card,
  .mentor-home-content,
  .mentor-space-content,
  .mentor-chat-content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .bottom-sheet {
    gap: 12px;
    border-radius: 20px;
    padding: 18px;
  }

  .share-link-guide-sheet {
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }

  .share-link-guide-header {
    padding: 18px 54px 12px 16px;
  }

  .share-link-guide-content {
    padding: 12px 12px 16px;
  }
}

/* 展开台默认 45dvh；拖拽过程中使用动态可见高度，内容不足时由面板内部滚动承接。 */
.lesson-shell .lesson-workspace {
  --lesson-workbench-height: 45dvh;
  --lesson-workbench-visible-height: var(--lesson-workbench-height);
}

.lesson-shell .lesson-workspace.is-workbench-open .lesson-media,
.lesson-shell .lesson-workspace.is-workbench-dragging .lesson-media {
  bottom: var(--lesson-workbench-visible-height);
}

.lesson-shell .lesson-workspace.is-workbench-dragging .coach-bar,
.lesson-shell .lesson-workspace.is-workbench-open .coach-bar.is-open {
  height: var(--lesson-workbench-visible-height);
  transform: translate3d(0, 0, 0);
}

.lesson-shell .lesson-workspace.is-workbench-collapsed:not(.is-workbench-dragging) .lesson-media {
  bottom: 0;
}

.lesson-shell .lesson-workspace.is-workbench-collapsed:not(.is-workbench-dragging) .coach-bar.is-collapsed {
  transform: translate3d(0, calc(100% - var(--lesson-workbench-peek)), 0);
}

@media (max-width: 760px) and (max-height: 600px) and (orientation: landscape) {
  .mentor-home-hero {
    min-height: 214px;
  }

  .mentor-home-welcome {
    min-height: 156px;
    padding-top: 14px;
  }

  .mentor-home-portrait {
    width: 170px;
  }
}

/* AI 导师中心：按参考图组织为搜索、导师卡、课堂内容与继续学习四段。 */
.mentor-center-shell {
  --center-pink: #ee5a83;
  --center-pink-dark: #dc426d;
  --center-ink: #211c20;
  --center-muted: #80767b;
  --center-line: rgba(220, 102, 133, 0.13);
  background: #fff8fa;
}

.mentor-center-shell .shell-content {
  padding-bottom: 78px;
  background:
    radial-gradient(circle at 95% 7%, rgba(255, 218, 228, 0.72), transparent 27%),
    linear-gradient(180deg, #fff8fa 0%, #fffefe 42%, #fff8fb 100%);
}

.mentor-center-page {
  min-height: 100%;
  overflow: hidden;
  color: var(--center-ink);
}

.mentor-center-header {
  display: grid;
  gap: 14px;
  padding: 8px 16px 16px;
}

.mentor-center-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  position: relative;
}

.mentor-center-title-row h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 780;
  letter-spacing: -1.3px;
}

.mentor-center-title-row h1 span {
  display: inline-block;
  margin-left: 4px;
  color: var(--center-pink);
  font-size: 20px;
  transform: translateY(-6px) rotate(8deg);
}

.mentor-guide-button {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(238, 90, 131, 0.17);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--center-pink-dark);
  font-size: 10px;
  white-space: nowrap;
  box-shadow: 0 5px 18px rgba(225, 102, 132, 0.1);
}

.mentor-guide-button svg {
  width: 14px;
  height: 14px;
}

.mentor-center-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  height: 48px;
  overflow: hidden;
  border: 1px solid #f25e86;
  border-radius: 25px;
  padding-left: 13px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 7px 24px rgba(234, 86, 126, 0.08);
}

.mentor-center-search > svg {
  width: 19px;
  height: 19px;
  color: #8e898d;
  stroke-width: 2.2;
}

.mentor-center-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--center-ink);
  font-size: 15px;
}

.mentor-center-search input::placeholder {
  color: #a49b9f;
}

.mentor-center-search button {
  align-self: stretch;
  min-width: 67px;
  margin: 4px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f56c91, #e94f78);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.mentor-center-filters {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.mentor-center-filters::-webkit-scrollbar {
  display: none;
}

.mentor-center-filters button {
  flex: 0 0 auto;
  min-width: 62px;
  height: 35px;
  border-radius: 19px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.78);
  color: #5d5358;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(214, 116, 138, 0.04);
}

.mentor-center-filters button.is-active {
  background: linear-gradient(135deg, #f2658d, #e74f78);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 7px 16px rgba(235, 81, 123, 0.2);
}

.mentor-center-filters .mentor-center-filter-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: auto;
  padding: 0 3px 0 12px;
  background: transparent;
  color: #6f656a;
  box-shadow: none;
}

.mentor-center-filter-more svg {
  width: 15px;
}

.mentor-center-content {
  display: grid;
  gap: 13px;
  padding: 0 9px 20px;
}

.mentor-center-card {
  border: 1px solid var(--center-line);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 24px rgba(217, 105, 133, 0.09);
}

.mentor-center-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px 9px;
}

.mentor-center-section-title h2 {
  position: relative;
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.7px;
}

.mentor-center-section-title h2::after {
  content: "";
  display: block;
  width: 37px;
  height: 3px;
  margin-top: 5px;
  border-radius: 4px;
  background: var(--center-pink);
}

.mentor-center-section-title h2 svg {
  width: 18px;
  margin-right: 5px;
  color: var(--center-pink);
  vertical-align: -3px;
}

.mentor-center-section-title > button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: transparent;
  color: #5d5358;
  font-size: 11px;
}

.mentor-center-section-title > button svg {
  width: 14px;
  height: 14px;
}

.mentor-current-card {
  padding-bottom: 13px;
}

.mentor-current-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 0 14px;
}

.mentor-current-portrait {
  position: relative;
  width: 112px;
  height: 128px;
  overflow: hidden;
  border-radius: 22px;
  padding: 0;
  background: #f9d7da;
  box-shadow: inset 0 0 0 1px rgba(236, 109, 130, 0.08);
}

.mentor-current-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 34%;
}

.mentor-current-portrait span {
  position: absolute;
  top: 13px;
  right: 11px;
  color: #fff;
  font-size: 22px;
  text-shadow: 0 2px 9px rgba(236, 94, 126, 0.34);
}

.mentor-current-copy {
  min-width: 0;
  padding-top: 4px;
}

.mentor-current-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mentor-current-name strong {
  font-size: 21px;
  letter-spacing: -0.7px;
}

.mentor-current-name em {
  border: 1px solid rgba(238, 90, 131, 0.22);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--center-pink-dark);
  background: #fff4f6;
  font-size: 9px;
  font-style: normal;
}

.mentor-current-copy > p {
  margin: 5px 0 2px;
  color: #50464b;
  font-size: 12px;
}

.mentor-current-copy > small {
  display: block;
  color: #766c71;
  font-size: 10px;
  line-height: 1.45;
  max-height: 29px;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}

.mentor-current-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}

.mentor-current-actions button {
  display: grid;
  place-items: center;
  gap: 5px;
  min-width: 0;
  height: 58px;
  border-radius: 16px;
  background: #fff;
  color: #201b1f;
  box-shadow: 0 5px 18px rgba(225, 113, 139, 0.09);
}

.mentor-current-actions button:first-child,
.mentor-current-actions button:nth-child(2) {
  border: 1px solid rgba(242, 121, 149, 0.05);
}

.mentor-current-actions svg {
  width: 22px;
  height: 22px;
  color: var(--center-pink);
  stroke-width: 2.5;
}

.mentor-current-actions span {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentor-classroom-card {
  padding-bottom: 5px;
}

.mentor-classroom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0 14px 12px;
}

.mentor-classroom-tile {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  min-height: 78px;
  overflow: hidden;
  border-radius: 18px;
  padding: 9px;
  text-align: left;
}

.mentor-classroom-tile.is-peach { background: linear-gradient(135deg, #fff1ee, #ffe8e3); }
.mentor-classroom-tile.is-pink { background: linear-gradient(135deg, #fff1f7, #fce8f4); }
.mentor-classroom-tile.is-lilac { background: linear-gradient(135deg, #fcf3ff, #f5edff); }
.mentor-classroom-tile.is-blue { background: linear-gradient(135deg, #f7f5ff, #f1f3ff); }

.mentor-classroom-art {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.6);
  color: #f17e94;
  box-shadow: 0 6px 14px rgba(235, 107, 135, 0.12);
}

.mentor-classroom-art svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.8;
}

.mentor-classroom-tile > span:nth-child(2) {
  min-width: 0;
}

.mentor-classroom-tile strong,
.mentor-classroom-tile small {
  display: block;
}

.mentor-classroom-tile strong {
  font-size: 14px;
  font-weight: 700;
}

.mentor-classroom-tile small {
  margin-top: 5px;
  color: #84777d;
  font-size: 10px;
  white-space: nowrap;
}

.mentor-classroom-arrow {
  width: 15px;
  color: #7e7076;
}

.mentor-article-list {
  padding: 0 14px;
}

.mentor-article-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  min-height: 82px;
  border-top: 1px solid rgba(102, 77, 86, 0.09);
}

.mentor-article-main {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 0;
  background: transparent;
  text-align: left;
}

.mentor-article-main > img {
  width: 88px;
  height: 61px;
  border-radius: 13px;
  object-fit: cover;
}

.mentor-article-copy {
  display: block;
  min-width: 0;
}

.mentor-article-copy strong,
.mentor-article-copy small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.mentor-article-copy strong {
  color: #2c2529;
  font-size: 14px;
  line-height: 1.25;
  -webkit-line-clamp: 1;
}

.mentor-article-copy small {
  margin-top: 3px;
  color: #80757b;
  font-size: 9px;
  line-height: 1.35;
  -webkit-line-clamp: 1;
}

.mentor-article-copy em {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: #8d8288;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.mentor-article-copy em b {
  border-radius: 999px;
  padding: 3px 7px;
  background: #fff0f4;
  color: var(--center-pink-dark);
  font-weight: 500;
}

.mentor-article-copy em span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.mentor-article-copy em svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.8;
}

.mentor-article-divider {
  width: 1px;
  height: 11px;
  background: #ddd4d8;
}

.mentor-article-save {
  display: grid;
  width: 28px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: #8a7f84;
  box-shadow: 0 3px 12px rgba(177, 105, 128, 0.12);
}

.mentor-article-save svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.mentor-more-articles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 13px 0 14px;
  background: transparent;
  color: var(--center-pink-dark);
  font-size: 12px;
}

.mentor-more-articles svg {
  width: 15px;
}

.mentor-center-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 28px 10px 30px;
  color: #968a90;
  text-align: center;
}

.mentor-center-empty svg {
  width: 25px;
  margin-bottom: 2px;
  color: var(--center-pink);
}

.mentor-center-empty strong { font-size: 13px; }
.mentor-center-empty small { font-size: 10px; }

.mentor-continue-card {
  padding-bottom: 13px;
}

.mentor-continue-card .mentor-center-section-title {
  padding-bottom: 11px;
}

.mentor-continue-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 0 14px;
}

.mentor-continue-list > button {
  min-width: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.mentor-continue-cover {
  position: relative;
  display: block;
  height: 55px;
  overflow: hidden;
  border-radius: 9px;
  background: #f8e8eb;
}

.mentor-continue-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mentor-continue-cover > svg {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--center-pink-dark);
}

.mentor-continue-list strong,
.mentor-continue-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentor-continue-list strong {
  margin-top: 5px;
  color: #453b40;
  font-size: 10px;
  font-weight: 650;
}

.mentor-continue-list small {
  margin-top: 4px;
  color: #a0969b;
  font-size: 9px;
}

.mentor-mini-progress {
  display: block;
  height: 4px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #f7e5e9;
}

.mentor-mini-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef6488, #f386a0);
}

.mentor-center-shell > .tabbar {
  border-top-color: rgba(235, 119, 146, 0.12);
  background: rgba(255, 252, 253, 0.96);
}

.mentor-center-shell > .tabbar button.active {
  background: transparent;
  color: var(--center-pink);
}

.mentor-center-shell > .tabbar button.active svg {
  stroke-width: 2.5;
}

@media (max-width: 360px) {
  .mentor-center-header { padding-right: 13px; padding-left: 13px; }
  .mentor-center-content { padding-right: 7px; padding-left: 7px; }
  .mentor-center-title-row h1 { font-size: 23px; }
  .mentor-guide-button { font-size: 9px; }
  .mentor-current-body { grid-template-columns: 101px minmax(0, 1fr); gap: 9px; }
  .mentor-current-portrait { width: 101px; height: 120px; }
  .mentor-current-name strong { font-size: 18px; }
  .mentor-current-copy > small { font-size: 9px; }
  .mentor-current-actions { gap: 4px; }
  .mentor-current-actions span { font-size: 9px; }
  .mentor-classroom-grid { gap: 6px; padding-right: 10px; padding-left: 10px; }
  .mentor-classroom-tile { grid-template-columns: 42px minmax(0, 1fr) 12px; gap: 5px; padding: 6px; }
  .mentor-classroom-art { width: 42px; height: 48px; }
  .mentor-classroom-art svg { width: 27px; }
  .mentor-classroom-tile strong { font-size: 12px; }
  .mentor-classroom-tile small { font-size: 9px; }
  .mentor-article-list { padding-right: 10px; padding-left: 10px; }
  .mentor-article-main { grid-template-columns: 77px minmax(0, 1fr); gap: 7px; }
  .mentor-article-main > img { width: 77px; height: 57px; }
  .mentor-article-copy strong { font-size: 12px; }
  .mentor-article-copy small { font-size: 8px; }
  .mentor-article-copy em { gap: 4px; font-size: 8px; }
  .mentor-continue-list { gap: 5px; padding-right: 10px; padding-left: 10px; }
}

/* Pixel-match pass for the supplied “我的” screen. */
.profile-shell .shell-content {
  background: linear-gradient(180deg, #fffafb 0%, #fff4f6 42%, #fffafb 100%);
}

.profile-shell .profile-hero {
  position: relative;
  min-height: 162px;
  padding: 30px 18px 16px;
  background: transparent;
}

.profile-shell .profile-hero h1 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.profile-shell .profile-hero p {
  margin-top: 10px;
  font-size: 14px;
}

.profile-shell .profile-dashboard {
  gap: 14px;
  padding: 0 16px 94px;
}

.profile-shell .profile-dashboard .profile-card {
  border-radius: 16px;
  border-color: rgba(255, 111, 145, 0.18);
  box-shadow: 0 10px 28px rgba(206, 119, 145, 0.07);
}

.profile-shell .profile-identity-card {
  min-height: 214px;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.profile-shell .profile-avatar-wrap,
.profile-shell .profile-avatar-img {
  width: 88px;
  height: 88px;
}

.profile-shell .profile-avatar-img {
  border-width: 3px;
}

.profile-shell .profile-name-row strong {
  font-size: 21px;
}

.profile-shell .profile-mini-stats {
  gap: 8px;
  margin-top: 7px;
}

.profile-shell .profile-mini-stats span {
  min-height: 58px;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
}

.profile-shell .profile-mini-stats b {
  font-size: 22px;
}

.profile-shell .skin-focus-card {
  min-height: 184px;
}

.profile-shell .skin-focus-body {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
}

.profile-shell .skin-focus-body img {
  width: 88px;
  height: 88px;
}

.profile-shell .skin-focus-body span {
  font-size: 21px;
}

.profile-shell .cosmetics-card {
  min-height: 276px;
  border-color: rgba(255, 111, 145, 0.34) !important;
}

.profile-shell .cosmetics-summary {
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.profile-shell .cosmetics-summary > img {
  width: 140px;
  height: 108px;
}

.profile-shell .cosmetics-actions button {
  min-height: 60px;
}

.profile-shell .lookbook-card {
  min-height: 286px;
}

.profile-shell .lookbook-grid {
  gap: 8px;
}

.profile-shell .lookbook-image {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 84px;
  border-radius: 12px;
}

.profile-shell .lookbook-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-shell .lookbook-grid button:nth-child(2) .lookbook-image img {
  object-position: 56% 42%;
}

.profile-shell .lookbook-grid button:nth-child(3) .lookbook-image img {
  object-position: 50% 50%;
}

.profile-shell .lookbook-grid button:nth-child(4) .lookbook-image img {
  object-position: 50% 28%;
}

.profile-shell .lookbook-image i {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 15px;
  height: 15px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}

.profile-shell .title-status-card {
  min-height: 136px;
}

.profile-shell .title-growth-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: #81737b;
  font-size: 12px;
}

.profile-shell .title-growth-label svg {
  width: 15px;
  height: 15px;
  color: #ff5e86;
}

.profile-shell .achievement-showcase-card {
  min-height: 154px;
}

.profile-shell .records-card {
  min-height: 116px;
}

.profile-shell .tabbar {
  min-height: 76px;
  border-top: 1px solid rgba(137, 116, 126, 0.12);
  background: rgba(255, 250, 251, 0.96);
}

.profile-shell .tabbar button.active {
  background: #ffe3eb;
  color: #ff4f7d;
}

/* iOS Safari enlarges the visual viewport when focused text controls are smaller than 16px. */
@media (max-width: 760px) {
  input:not([type]),
  input[type="text"],
  input[type="url"],
  input[type="email"],
  input[type="search"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px !important;
  }
}

/* 设计稿还原：仅作用于跟练工作台的三个内容状态。 */
.lesson-shell .shell-content {
  grid-template-rows: 68px 60px minmax(0, 1fr);
}

.lesson-shell .lesson-stage-rail {
  padding: 2px 12px 0;
  container-type: inline-size;
}

.lesson-shell .lesson-stage-track {
  grid-auto-columns: clamp(80px, calc(min(100vw, 390px) / 4), 144px);
}

.lesson-shell .lesson-stage-track::before,
.lesson-shell .lesson-stage-track::after {
  top: 14px;
  right: clamp(40px, calc(min(100vw, 390px) / 8), 72px);
  left: clamp(40px, calc(min(100vw, 390px) / 8), 72px);
}

.lesson-shell .lesson-stage-item {
  gap: 3px;
  width: clamp(80px, calc(min(100vw, 390px) / 4), 144px);
  min-height: 52px;
}

.lesson-shell .lesson-stage-number {
  width: 28px;
  height: 28px;
  border-width: 1px;
  font-size: 11px;
}

.lesson-shell .lesson-header-actions {
  display: grid;
  min-width: 0;
  place-items: center;
}

.lesson-shell .lesson-help-control {
  width: 38px;
  height: 38px;
  background: #fff;
  color: var(--lesson-ink);
  box-shadow: 0 8px 20px rgba(80, 50, 64, 0.08);
}

.lesson-shell .lesson-help-control svg {
  width: 19px;
  height: 19px;
}

.lesson-shell .lesson-media-actions {
  top: 18px;
  right: 14px;
  left: 14px;
}

.lesson-shell .voice-control-status {
  top: 18px;
  min-height: 38px;
  padding-right: 15px;
  padding-left: 15px;
  gap: 8px;
}

.lesson-shell .coach-bar {
  height: 45vh;
  height: 45dvh;
}

.lesson-workspace.is-workbench-open .lesson-media {
  bottom: 45vh;
  bottom: 45dvh;
}

.lesson-shell .mirror-mode-button {
  min-height: 38px;
  padding-right: 15px;
  padding-left: 15px;
  font-size: 12px;
  letter-spacing: -0.02em;
}

.lesson-shell .mirror-mode-button {
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #2d282b;
  box-shadow: 0 10px 22px rgba(25, 14, 19, 0.16);
}

.lesson-shell .mirror-mode-button svg {
  width: 19px;
  height: 19px;
}

.lesson-shell .center-play {
  width: 68px;
  height: 68px;
}

.lesson-shell .lesson-video-backdrop {
  opacity: 0.5;
  filter: blur(24px) saturate(0.72) brightness(0.48);
}

.lesson-shell .lesson-workbench-content {
  top: 34px;
  right: 13px;
  bottom: 64px;
  left: 13px;
  gap: 9px;
}

.lesson-shell .lesson-tool-tabs {
  min-height: 54px;
  border-radius: 22px;
  background: #fffafb;
}

.lesson-shell .lesson-tool-tabs button {
  min-height: 54px;
  border-radius: 20px;
  gap: 6px;
}

.lesson-shell .lesson-tool-tabs button.is-active {
  background: #fff0f5;
  box-shadow: inset 0 0 0 1px rgba(235, 79, 125, 0.04);
}

.lesson-shell .lesson-tool-tabs svg,
.lesson-shell .lesson-tool-tabs img {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.lesson-shell .lesson-tool-tabs span {
  font-size: 13px;
  font-weight: 820;
}

.lesson-shell .lesson-tool-panel {
  min-height: 0;
  overflow-y: auto;
  padding: 3px 4px 88px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scroll-padding-bottom: 88px;
  scrollbar-color: rgba(235, 79, 125, 0.32) transparent;
}

.lesson-shell .lesson-tool-panel::-webkit-scrollbar {
  width: 4px;
}

.lesson-shell .lesson-tool-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(235, 79, 125, 0.32);
}

.lesson-shell .lesson-panel-header {
  min-height: 41px;
  padding: 0 5px 9px;
}

.lesson-shell .lesson-panel-header > div {
  gap: 8px;
}

.lesson-shell .lesson-panel-header span {
  font-size: 11px;
  font-weight: 820;
}

.lesson-shell .lesson-panel-header strong {
  font-size: 16px;
  font-weight: 880;
}

.lesson-shell .lesson-panel-link {
  min-height: 34px;
  padding: 0 12px;
  background: #f6f4f5;
  color: #70686d;
  font-size: 11px;
}

.lesson-shell .lesson-substep-strip {
  gap: 8px;
  padding: 2px 0 9px;
}

.lesson-shell .lesson-substep-chip {
  min-height: 55px;
  border-radius: 16px;
  padding: 6px 10px;
  background: #fff;
}

.lesson-shell .lesson-substep-chip strong {
  font-size: 11px;
}

.lesson-shell .lesson-substep-chip small {
  font-size: 10px;
}

.lesson-shell .lesson-step-focus-card {
  border-radius: 20px;
  padding: 15px 15px 14px;
  box-shadow: 0 6px 18px rgba(70, 42, 56, 0.035);
}

.lesson-shell .lesson-step-focus-title {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
}

.lesson-shell .lesson-step-focus-title > span {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.lesson-shell .lesson-step-focus-title strong {
  font-size: 15px;
}

.lesson-shell .lesson-step-focus-title small {
  padding: 5px 9px;
  font-size: 10px;
}

.lesson-shell .lesson-step-focus-card > p {
  margin-top: 10px;
  margin-left: 37px;
  font-size: 11px;
  line-height: 1.65;
}

.lesson-shell .lesson-step-context {
  margin-top: 9px;
  border-radius: 18px;
  padding: 11px;
}

.lesson-shell .lesson-step-context > strong {
  margin-bottom: 8px;
  font-size: 11px;
}

.lesson-shell .lesson-step-context > div {
  gap: 8px;
}

.lesson-shell .lesson-step-context article {
  border-radius: 12px;
  padding: 8px;
}

.lesson-shell .lesson-step-context span {
  font-size: 9px;
}

.lesson-shell .lesson-step-context p {
  font-size: 10px;
}

.lesson-shell .lesson-comparison-card {
  display: grid;
  gap: 9px;
  margin-top: 9px;
  border-radius: 18px;
  padding: 9px;
  background: #fff8fa;
}

.lesson-shell .lesson-comparison-note {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border-radius: 13px;
  padding: 0 11px;
  color: #d14870;
  font-size: 11px;
  font-weight: 820;
}

.lesson-shell .lesson-comparison-note svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.lesson-shell .lesson-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.lesson-shell .lesson-comparison-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  border-radius: 14px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.9);
}

.lesson-shell .lesson-comparison-heading {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 5px;
}

.lesson-shell .lesson-comparison-heading strong {
  color: #3e353a;
  font-size: 11px;
  font-weight: 850;
}

.lesson-shell .lesson-comparison-heading span {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #796f75;
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-shell .lesson-comparison-heading .is-ai {
  grid-column: auto;
  border-radius: 999px;
  padding: 3px 5px;
  background: #ffe2eb;
  color: #d24c73;
  font-size: 8px;
  font-weight: 850;
}

.lesson-shell .lesson-comparison-heading em {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #796f75;
  font-size: 9px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lesson-shell .lesson-comparison-grid img {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
}

.lesson-shell .lesson-step-focus-card:has(+ .lesson-comparison-card) {
  padding: 10px 12px;
}

.lesson-shell .lesson-step-focus-card:has(+ .lesson-comparison-card) .lesson-step-focus-title {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 7px;
}

.lesson-shell .lesson-step-focus-card:has(+ .lesson-comparison-card) .lesson-step-focus-title > span {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.lesson-shell .lesson-step-focus-card:has(+ .lesson-comparison-card) .lesson-step-focus-title strong {
  font-size: 13px;
}

.lesson-shell .lesson-step-focus-card:has(+ .lesson-comparison-card) .lesson-step-focus-card > p,
.lesson-shell .lesson-step-focus-card:has(+ .lesson-comparison-card) > p {
  margin-top: 6px;
  margin-left: 31px;
  font-size: 10px;
  line-height: 1.4;
}

.lesson-shell .lesson-technique-grid {
  gap: 9px;
  margin-top: 9px;
}

.lesson-shell .lesson-technique-grid article {
  min-height: 76px;
  border-radius: 17px;
  padding: 10px;
}

.lesson-shell .lesson-technique-grid article > svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.7;
}

.lesson-shell .lesson-technique-grid span {
  font-size: 10px;
}

.lesson-shell .lesson-technique-grid strong {
  font-size: 11px;
  line-height: 1.45;
}

.lesson-oily-skin-advice {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  border: 1px solid rgba(235, 79, 125, 0.12);
  border-radius: 17px;
  padding: 13px 14px 14px;
  background: linear-gradient(180deg, #fff6f9 0%, #fff 100%);
}

.lesson-oily-skin-advice h3 {
  margin: 0;
  color: #d94f78;
  font-size: 13px;
  font-weight: 850;
}

.lesson-oily-skin-advice ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 20px;
  color: #655960;
}

.lesson-oily-skin-advice li {
  padding-left: 2px;
  font-size: 10px;
  line-height: 1.55;
}

.lesson-oily-skin-advice li::marker {
  color: #e65a82;
  font-weight: 800;
}

.lesson-shell .lesson-knowledge-sheet {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(70, 50, 61, 0.08);
  border-radius: 22px;
  padding: 9px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(77, 48, 62, 0.06);
}

.lesson-shell .lesson-knowledge-block {
  border: 0;
  border-radius: 16px;
  padding: 10px;
  background: #faf8f9;
}

.lesson-shell .lesson-knowledge-focus {
  border: 1px solid rgba(235, 79, 125, 0.12);
  background: linear-gradient(180deg, #fff8fa 0%, #ffffff 100%);
}

.lesson-shell .lesson-knowledge-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.lesson-shell .lesson-knowledge-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #df527d;
  background: #fff0f5;
}

.lesson-shell .lesson-knowledge-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.lesson-shell .lesson-knowledge-block-head > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.lesson-shell .lesson-knowledge-block h3 {
  margin: 0;
  color: #41373d;
  font-size: 12px;
  font-weight: 880;
}

.lesson-shell .lesson-knowledge-block-head > div > span {
  color: #9a8d94;
  font-size: 9px;
  line-height: 1.3;
}

.lesson-shell .lesson-knowledge-block ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-shell .lesson-knowledge-terms li {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid rgba(73, 54, 64, 0.07);
  border-radius: 11px;
  background: #ffffff;
  color: #5f555a;
  font-size: 10px;
  line-height: 1.4;
}

.lesson-shell .lesson-knowledge-term-dot {
  width: 6px;
  height: 6px;
  margin-top: 4px;
  border-radius: 50%;
  background: #e8527e;
  box-shadow: 0 0 0 3px #fff0f5;
}

.lesson-shell .lesson-knowledge-terms li > div,
.lesson-shell .lesson-knowledge-row-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.lesson-shell .lesson-knowledge-terms li strong,
.lesson-shell .lesson-knowledge-row-copy strong {
  color: #c7446c;
  font-size: 10px;
  font-weight: 850;
}

.lesson-shell .lesson-knowledge-terms li > div > span,
.lesson-shell .lesson-knowledge-row-copy > span {
  color: #5f555a;
}

.lesson-shell .lesson-knowledge-focus-rows {
  display: grid;
}

.lesson-shell .lesson-knowledge-focus p {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid rgba(216, 111, 139, 0.12);
  color: #5f555a;
  font-size: 10px;
  line-height: 1.38;
}

.lesson-shell .lesson-knowledge-focus p:first-child {
  padding-top: 0;
  border-top: 0;
}

.lesson-shell .lesson-knowledge-row-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  color: #d84e77;
  background: rgba(255, 238, 244, 0.92);
}

.lesson-shell .lesson-knowledge-row-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.9;
}

.lesson-shell .lesson-mentor-knowledge {
  min-height: 54px;
  margin-top: 7px;
  border-radius: 17px;
  padding: 8px 11px;
}

.lesson-shell .lesson-mentor-knowledge img,
.lesson-shell .lesson-mentor-knowledge .mentor-avatar-fallback {
  width: 38px;
  height: 38px;
}

.lesson-shell .lesson-mentor-knowledge p strong {
  font-size: 11px;
}

.lesson-shell .lesson-mentor-knowledge p span {
  font-size: 10px;
}

.lesson-shell .lesson-mentor-knowledge > button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 10px;
}

/* 设计稿跟练工作台：展开后给步骤内容和对比卡留出完整阅读区。 */
.lesson-shell .coach-bar {
  height: 45vh;
  height: 45dvh;
}

.lesson-workspace.is-workbench-open .lesson-media {
  bottom: 45vh;
  bottom: 45dvh;
}

.lesson-shell .lesson-comparison-card {
  gap: 10px;
  padding: 10px;
}

.lesson-shell .lesson-comparison-grid {
  gap: 10px;
}

.lesson-shell .lesson-comparison-grid article {
  grid-template-columns: minmax(0, 1fr) 92px;
  padding: 10px;
}

.lesson-shell .lesson-comparison-grid img {
  height: 92px;
}

@media (max-height: 720px) {
  .lesson-shell .coach-bar {
    height: 45vh;
    height: 45dvh;
  }

  .lesson-workspace.is-workbench-open .lesson-media {
    bottom: 45vh;
    bottom: 45dvh;
  }
}

@media (max-width: 760px) {
  .lesson-shell {
    min-height: 100dvh;
    max-height: 100dvh;
  }

  .lesson-shell .shell-content {
    min-height: 100dvh;
  }
}

@media (max-width: 390px) {
  .lesson-shell .lesson-header {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .lesson-shell .lesson-help-control {
    width: 36px;
    height: 36px;
  }

  .lesson-shell .lesson-tool-tabs button {
    gap: 4px;
  }

  .lesson-shell .lesson-tool-tabs span {
    font-size: 12px;
  }

  .lesson-shell .lesson-comparison-grid {
    gap: 6px;
  }

  .lesson-shell .lesson-comparison-grid article {
    padding: 7px;
  }
}

/* 工作台边缘：避免顶部圆角外侧露出视频区域的深色底。 */
.lesson-shell .coach-bar {
  border: 1px solid rgba(218, 210, 215, 0.82);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 30px rgba(83, 62, 72, 0.1);
}
