﻿:root {
  --bg: #f9f7f5;
  --card: #fffdfb;
  --pink: #f8d0da;
  --pink-soft: #f8e2e7;
  --rose: #8d616a;
  --rose-deep: #5a454d;
  --mint: #e6f7f2;
  --mint-strong: #9fd8c4;
  --green: #77cf7e;
  --line: #eee7e4;
  --text: #2d2427;
  --muted: #8d8786;
  --shadow: 0 20px 60px rgba(111, 83, 93, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 12%, rgba(248, 208, 218, 0.38), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(230, 247, 242, 0.55), transparent 26%),
    radial-gradient(circle at 82% 78%, rgba(248, 226, 231, 0.42), transparent 24%),
    linear-gradient(180deg, #fcfaf8 0%, #f7f2ef 100%);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
}

body,
button,
input,
textarea {
  font-family: inherit;
}

button,
input,
textarea {
  outline: none;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

img,
svg,
video {
  display: block;
}

.hidden {
  display: none !important;
}

.phone-shell {
  position: relative;
  width: min(430px, 100vw);
  height: min(932px, 100vh);
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    var(--bg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.phone-shell::before,
.phone-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.phone-shell::before {
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(248, 208, 218, 0.18), transparent 28%),
    radial-gradient(circle at 90% 78%, rgba(230, 247, 242, 0.36), transparent 24%),
    linear-gradient(135deg, rgba(248, 226, 231, 0.06), transparent 38%),
    linear-gradient(35deg, rgba(255, 255, 255, 0.4), transparent 42%);
}

.phone-shell::after {
  width: 150px;
  height: 150px;
  right: -34px;
  bottom: 62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 226, 231, 0.35), transparent 65%);
  filter: blur(10px);
}

.phone-shell.landscape {
  width: min(932px, 100vw);
  height: min(430px, 100vh);
  border-radius: 28px;
  transition: width 0.35s ease, height 0.35s ease;
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-area {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 18px 24px;
  scrollbar-width: none;
}

.scroll-area::-webkit-scrollbar {
  display: none;
}

.with-tabbar {
  padding-bottom: 108px;
}

.page-pattern,
.splash-pattern {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.page-pattern-left,
.splash-pattern-top {
  top: 40px;
  left: -26px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(248, 208, 218, 0.3), transparent 65%);
}

.page-pattern-right,
.splash-pattern-bottom {
  right: -40px;
  bottom: 90px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(230, 247, 242, 0.42), transparent 62%);
}

.page-pattern-top {
  top: 72px;
  right: -48px;
  left: auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(248, 226, 231, 0.42), transparent 66%);
}

.brand-title,
.brand-word,
.header-brand,
.splash-title {
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: 0.02em;
  color: var(--rose-deep);
}

.brand-mark {
  width: 102px;
  height: 102px;
  margin: 0 auto 14px;
}

.brand-mark-large {
  width: 126px;
  height: 126px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.splash-screen {
  display: grid;
  place-items: center;
}

.splash-logo-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  animation: splashFade 3s ease forwards;
}

.splash-title {
  margin: 4px 0 10px;
  font-size: 3.45rem;
  font-weight: 600;
}

.splash-subtitle {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.36em;
  color: #5c5457;
}

.splash-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 108px auto 170px;
  border-radius: 50%;
  background: #6e4f59;
  box-shadow: 0 0 0 6px rgba(248, 226, 231, 0.32);
}

.splash-footer {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: rgba(93, 71, 77, 0.42);
}

@keyframes splashFade {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  82% {
    opacity: 1;
    transform: translateY(-6px);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

.simple-header,
.top-header,
.brand-header,
.search-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-header {
  padding: 20px 22px 0;
}

.top-header {
  padding: 6px 0 12px;
}

.header-brand {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
}

.header-spacer {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.ghost-icon-button,
.mini-icon-button,
.soft-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.ghost-icon-button:active,
.mini-icon-button:active,
.pill-button:active,
.menu-row:active,
.search-entry:active,
.repair-card:active,
.fragment-card:active,
.rail-card:active,
.stat-card:active,
.tab-button:active,
.member-option:active,
.pay-option:active,
.course-card:active,
.chip:active,
.related-item:active,
.search-feature-card:active {
  transform: scale(0.97);
}

.ghost-icon-button {
  background: transparent;
  color: var(--rose-deep);
  font-size: 1.65rem;
  line-height: 1;
}

.mini-icon-button {
  background: transparent;
  color: var(--rose);
  font-size: 1.2rem;
}

.compact-arrow {
  visibility: hidden;
}

.compact-search {
  font-size: 1.3rem;
}

.text-button,
.text-link {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.text-link {
  color: var(--rose);
  font-size: 0.9rem;
}

.pill-button {
  min-height: 50px;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.pill-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary-button {
  color: var(--rose-deep);
  background: linear-gradient(180deg, #ffd7e1 0%, #ffc7d7 100%);
  box-shadow: 0 12px 22px rgba(248, 199, 215, 0.24);
}

.accent-button {
  color: var(--rose-deep);
  background: linear-gradient(180deg, #ffdfe8 0%, #ffcfdd 100%);
  box-shadow: 0 10px 18px rgba(248, 199, 215, 0.18);
}

.soft-button {
  color: var(--rose-deep);
  background: #fffdfb;
  border: 1px solid var(--line);
}

.outline-button {
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(141, 97, 106, 0.22);
}

.dark-button {
  color: #fff;
  background: #8d616a;
  box-shadow: 0 14px 22px rgba(141, 97, 106, 0.22);
}

.green-button {
  width: 100%;
  color: #fff;
  background: linear-gradient(180deg, #8cdd8f 0%, #6dca73 100%);
  box-shadow: 0 18px 24px rgba(109, 202, 115, 0.24);
}

.large-outline-button {
  width: 100%;
  min-height: 60px;
  background: rgba(255, 255, 255, 0.6);
}

.inline-button {
  min-width: 132px;
}

.long-button {
  min-width: 210px;
}

.small-button {
  min-width: 114px;
  min-height: 48px;
  padding: 0 16px;
  font-size: 0.95rem;
}

.auth-screen {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 35%), var(--bg);
}

.auth-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 34px 32px;
  text-align: center;
}

.auth-caption {
  margin: 6px 0 54px;
  align-self: flex-start;
  font-size: 0.96rem;
  line-height: 1.55;
  letter-spacing: 0.22em;
  color: rgba(93, 71, 77, 0.52);
}

.auth-content .brand-title {
  margin: 0;
  font-size: 3.35rem;
  font-weight: 600;
}

.auth-subtitle {
  margin: 8px 0 26px;
  font-size: 1.7rem;
  color: #6f5c61;
}

.auth-panel,
.guest-panel {
  width: 100%;
}

.soft-field {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 24px rgba(255, 255, 255, 0.55);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.soft-field:focus-within {
  transform: scale(1.01);
  border-color: rgba(248, 208, 218, 0.72);
  box-shadow: 0 18px 28px rgba(248, 226, 231, 0.4);
}

.soft-field input {
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--rose-deep);
}

.soft-field input::placeholder,
.search-box input::placeholder,
textarea::placeholder {
  color: rgba(109, 101, 104, 0.42);
}

.field-icon {
  flex: 0 0 auto;
  color: rgba(109, 101, 104, 0.48);
  font-size: 1rem;
}

.field-error {
  width: 100%;
  min-height: 18px;
  margin: 8px 0 4px;
  text-align: left;
  font-size: 0.86rem;
  color: #bb6a7f;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.field-error.is-visible {
  opacity: 1;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 6px 0 18px;
  width: 100%;
}

.code-field {
  min-width: 0;
}

.guest-panel {
  margin-top: 16px;
}

.guest-panel .pill-button {
  width: 100%;
}

.auth-main-button {
  width: 100%;
}

.agreement-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.86rem;
}

.agreement-row input {
  width: 16px;
  height: 16px;
  accent-color: #dbc8cf;
}

.assess-screen {
  background: var(--bg);
}

.assess-layout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 14px 28px 38px;
}

.assess-progress strong {
  display: block;
  margin-bottom: 6px;
  font-size: 3.15rem;
  color: var(--rose-deep);
  line-height: 1;
}

.assess-progress span {
  color: var(--muted);
  font-size: 1.2rem;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece8e6;
}

.progress-track span {
  display: block;
  width: 16.7%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c5d66 0%, #956974 100%);
  transition: width 0.25s ease;
}

.assess-question {
  min-height: 520px;
}

.assess-question h3 {
  margin: 0 0 34px;
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.assess-tip {
  margin: -18px 0 28px;
  font-size: 0.98rem;
  color: var(--muted);
}

.assess-input {
  width: 100%;
  height: 82px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--rose-deep);
  font-size: 1.55rem;
  box-shadow: 0 20px 28px rgba(255, 255, 255, 0.55);
}

.assess-input:focus {
  border-color: rgba(248, 208, 218, 0.9);
}

.assess-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #bc7286;
  font-size: 0.92rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.assess-error.is-visible {
  opacity: 1;
}

.assess-options {
  display: grid;
  gap: 18px;
}

.assess-option {
  position: relative;
  width: 100%;
  min-height: 122px;
  padding: 24px 24px 24px 28px;
  text-align: left;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid transparent;
  box-shadow: 0 16px 24px rgba(255, 255, 255, 0.55);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.assess-option strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.8rem;
  color: var(--text);
}

.assess-option span {
  display: block;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--muted);
}

.assess-option.is-selected {
  border-color: rgba(82, 59, 65, 0.8);
  background: linear-gradient(180deg, rgba(255, 205, 218, 0.9) 0%, rgba(255, 214, 225, 0.95) 100%);
}

.assess-option.is-selected::after {
  content: "✓";
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(90, 69, 77, 0.92);
  color: #fff;
  font-size: 1.2rem;
}

.assess-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: -6px;
}

.home-screen,
.quick-screen,
.profile-screen,
.search-screen,
.detail-screen,
.result-screen,
.member-screen {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 32%), var(--bg);
}

.brand-header {
  padding: 2px 0 10px;
}

.brand-word {
  margin: 0;
  font-size: 2.3rem;
  font-weight: 600;
}

.search-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  margin: 10px 0 22px;
  border-radius: 999px;
  background: rgba(240, 237, 234, 0.95);
  color: rgba(95, 89, 89, 0.52);
  font-size: 1rem;
  text-align: left;
}

.hero-course-card,
.search-feature-card,
.mini-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: var(--card);
  box-shadow: 0 18px 26px rgba(141, 97, 106, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-course-card:active,
.search-feature-card:active,
.mini-hero-card:active {
  transform: scale(0.985);
}

.hero-course-card {
  min-height: 246px;
  margin-bottom: 28px;
}

.hero-image,
.search-feature-card,
.mini-hero-card {
  background:
    linear-gradient(180deg, rgba(43, 30, 23, 0.06), rgba(43, 30, 23, 0.28)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15), transparent 20%),
    linear-gradient(125deg, #5f4a36 5%, #8d674a 36%, #c49b72 68%, #d2b089 100%);
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image::before,
.search-feature-card::before,
.mini-hero-card::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 58%;
  height: 92%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 14%, #4b2f2d 0 10%, transparent 10.5%),
    radial-gradient(circle at 50% 29%, #cfa184 0 10%, transparent 10.5%),
    radial-gradient(circle at 50% 55%, #c8c3bd 0 18%, transparent 18.5%),
    radial-gradient(circle at 38% 57%, #c8c3bd 0 10%, transparent 10.5%),
    radial-gradient(circle at 62% 57%, #c8c3bd 0 10%, transparent 10.5%),
    linear-gradient(180deg, transparent 0 24%, #d3c6bd 24% 53%, transparent 53%),
    linear-gradient(115deg, transparent 0 30%, #d6d0ca 30% 40%, transparent 40%),
    linear-gradient(65deg, transparent 0 30%, #d6d0ca 30% 40%, transparent 40%);
  opacity: 0.9;
}

.hero-badge {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 228, 239, 0.92);
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 24px 22px 20px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(66, 43, 47, 0.55));
}

.hero-overlay h3,
.hero-overlay p {
  margin: 0;
  color: #fff;
}

.hero-overlay h3 {
  font-size: 2.1rem;
}

.hero-overlay p {
  margin-top: 10px;
  font-size: 1rem;
  opacity: 0.92;
}

.content-block {
  margin-bottom: 26px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.content-block h3,
.menu-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

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

.repair-card,
.fragment-card,
.rail-card,
.course-card,
.stack-card,
.summary-card,
.white-info-card,
.setting-row,
.setting-column,
.menu-row,
.stat-card {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 24px rgba(141, 97, 106, 0.06);
}

.repair-card,
.fragment-card {
  position: relative;
  width: 100%;
  min-height: 156px;
  padding: 24px 18px 18px;
  text-align: center;
}

.repair-card .card-icon,
.fragment-card .card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--rose-deep);
  background: rgba(255, 192, 210, 0.72);
}

.repair-card h4,
.fragment-card h4,
.course-card h4 {
  margin: 0;
  font-size: 1.18rem;
  color: var(--rose-deep);
}

.repair-card p,
.fragment-card p,
.course-card p,
.stack-card p,
.setting-row p,
.setting-column p,
.record-summary span,
.calendar-tip,
.empty-text {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.repair-card.tone-pink {
  background: linear-gradient(180deg, rgba(255, 230, 237, 0.92), rgba(255, 245, 247, 0.98));
}

.repair-card.tone-cream {
  background: linear-gradient(180deg, rgba(255, 242, 233, 0.92), rgba(255, 250, 245, 0.98));
}

.repair-card.tone-blush {
  background: linear-gradient(180deg, rgba(255, 236, 241, 0.92), rgba(255, 249, 250, 0.98));
}

.repair-card.tone-mint {
  background: linear-gradient(180deg, rgba(232, 247, 240, 0.9), rgba(250, 255, 253, 0.98));
}

.repair-card.tone-soft {
  background: linear-gradient(180deg, rgba(245, 237, 247, 0.92), rgba(255, 252, 255, 0.98));
}

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

.fragment-card {
  min-height: 152px;
  padding-top: 20px;
}

.fragment-card span {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}

.hot-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.hot-rail::-webkit-scrollbar {
  display: none;
}

.rail-card {
  position: relative;
  flex: 0 0 256px;
  width: 256px;
  min-height: 220px;
  padding: 14px 14px 16px;
  scroll-snap-align: start;
  overflow: hidden;
}

.rail-card .rail-thumb {
  height: 126px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(43, 30, 23, 0.1), rgba(43, 30, 23, 0.24)),
    linear-gradient(135deg, #7e5846 0%, #cbaf92 100%);
}

.rail-card:nth-child(2) .rail-thumb {
  background:
    linear-gradient(180deg, rgba(43, 30, 23, 0.1), rgba(43, 30, 23, 0.24)),
    linear-gradient(135deg, #557379 0%, #9abbbf 100%);
}

.rail-card:nth-child(3) .rail-thumb {
  background:
    linear-gradient(180deg, rgba(43, 30, 23, 0.1), rgba(43, 30, 23, 0.24)),
    linear-gradient(135deg, #7c6e43 0%, #cab97b 100%);
}

.rail-card:nth-child(4) .rail-thumb {
  background:
    linear-gradient(180deg, rgba(43, 30, 23, 0.1), rgba(43, 30, 23, 0.24)),
    linear-gradient(135deg, #986169 0%, #d79ca7 100%);
}

.rail-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--rose-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.rail-card h4 {
  margin: 14px 0 0;
}

.rail-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-header {
  gap: 14px;
  margin-top: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 24px rgba(141, 97, 106, 0.06);
}

.search-box input {
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--rose-deep);
}

.related-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 8px;
}

.related-item,
.chip {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--rose-deep);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.94rem;
  box-shadow: 0 10px 18px rgba(141, 97, 106, 0.05);
}

.related-item {
  width: 100%;
  justify-content: flex-start;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-chip {
  padding-right: 8px;
}

.chip-delete {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(248, 226, 231, 0.7);
  font-size: 0.88rem;
}

.hot-chips .chip {
  background: linear-gradient(180deg, rgba(255, 221, 231, 0.92), rgba(255, 239, 244, 0.98));
}

.search-feature-card {
  min-height: 260px;
  padding: 20px;
}

.search-feature-card .feature-overlay,
.mini-hero-card .feature-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(54, 37, 38, 0.62));
}

.search-feature-card h4,
.mini-hero-card h4 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
}

.search-feature-card p,
.mini-hero-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.result-preview {
  padding-bottom: 18px;
}

.result-list,
.course-list,
.right-list,
.plan-list,
.pay-list,
.settings-list,
.about-card-list {
  display: grid;
  gap: 14px;
}

.course-card {
  width: 100%;
  padding: 18px;
  text-align: left;
}

.course-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.course-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.course-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(230, 247, 242, 0.78);
  color: var(--rose-deep);
  font-size: 0.85rem;
}

.empty-text {
  display: none;
  margin-top: 8px;
  font-size: 0.94rem;
  text-align: center;
}

.empty-text.is-visible {
  display: block;
}

.quick-content {
  position: relative;
  z-index: 2;
}

.quick-title-block {
  margin: 10px 0 20px;
}

.quick-title-block h2 {
  margin: 0;
  font-size: 2.55rem;
  color: var(--rose-deep);
}

.quick-title-block p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.quick-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  min-height: 176px;
  padding: 20px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 24px rgba(141, 97, 106, 0.06);
}

.metric-card h3 {
  margin: 12px 0 10px;
  font-size: 1.25rem;
}

.metric-card p,
.metric-card small {
  color: var(--muted);
}

.metric-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(248, 226, 231, 0.82);
  color: var(--rose-deep);
  font-size: 1rem;
}

.metric-progress {
  width: 100%;
  height: 8px;
  margin: 14px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(221, 214, 214, 0.66);
}

.metric-progress span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7a5c63 0%, #946970 100%);
  transition: width 0.3s ease;
}

.progress-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.progress-dots span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  color: var(--rose-deep);
  background: rgba(248, 226, 231, 0.68);
}

.progress-dots .active {
  background: rgba(90, 69, 77, 0.86);
  color: #fff;
}

.quick-start-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 220px;
  height: 220px;
  margin: 38px auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.4), transparent 24%),
    linear-gradient(180deg, #ffd0db 0%, #f9c6d2 100%);
  color: var(--rose-deep);
  box-shadow:
    0 26px 34px rgba(248, 199, 215, 0.22),
    inset 0 0 0 2px rgba(235, 173, 191, 0.5),
    inset 0 0 0 10px rgba(255, 214, 225, 0.25);
}

.quick-start-button strong {
  font-size: 2.2rem;
}

.quick-dumbbell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--rose-deep);
}

.quick-dumbbell svg {
  width: 100%;
  height: 100%;
}

.quick-hint {
  margin: 0 0 30px;
  text-align: center;
  color: var(--muted);
}

.mini-hero-card {
  min-height: 190px;
}

.profile-top-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 18px 10px;
}

.avatar-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 214, 225, 0.92), rgba(255, 244, 247, 0.4));
}

.avatar-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.avatar-figure {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1d1c22 0%, #0f1013 100%);
  overflow: hidden;
}

.avatar-face {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 30px;
  height: 38px;
  transform: translateX(-50%);
  border-radius: 16px;
  background: #f8d2c7;
}

.avatar-face::before,
.avatar-face::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #49373c;
}

.avatar-face::before {
  left: 7px;
}

.avatar-face::after {
  right: 7px;
}

.avatar-body {
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 64px;
  height: 48px;
  transform: translateX(-50%);
  border-radius: 34px 34px 16px 16px;
  background: linear-gradient(180deg, #47647a 0%, #375066 100%);
}

.member-badge {
  position: absolute;
  right: 10px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f8dd93 0%, #d6a73f 100%);
  color: #fff8dd;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 8px 16px rgba(214, 167, 63, 0.28);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.member-badge.is-active {
  opacity: 1;
  transform: scale(1);
}

.profile-name-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-edit-button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(141, 97, 106, 0.12);
  color: var(--rose-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-top-card h2 {
  margin: 0;
  font-size: 2rem;
}

.profile-top-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 10px 0 24px;
}

.profile-stat {
  min-height: 168px;
  padding: 22px 18px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 205, 218, 0.86), rgba(255, 221, 229, 0.82));
}

.profile-stat:nth-child(2) {
  background: linear-gradient(180deg, rgba(255, 210, 222, 0.86), rgba(255, 225, 232, 0.82));
}

.profile-stat h3 {
  margin: 18px 0 36px;
  font-size: 1.18rem;
}

.profile-stat strong {
  font-size: 3.3rem;
  line-height: 1;
}

.profile-stat div {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.profile-stat span:last-child {
  margin-bottom: 6px;
}

.profile-menu-block {
  margin-bottom: 16px;
}

.menu-stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.menu-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  min-height: 86px;
  padding: 0 18px;
  text-align: left;
  column-gap: 14px;
}

.menu-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--rose);
  background: rgba(248, 226, 231, 0.72);
  font-size: 1rem;
}

.menu-row > span:nth-child(2) {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
}

.menu-row .menu-icon,
.menu-row .menu-label,
.menu-row .menu-arrow {
  margin: 0;
  align-self: center;
}

.menu-label {
  display: flex;
  align-items: center;
  min-height: 36px;
  line-height: 1.4;
}

.menu-arrow {
  font-size: 1.6rem;
  color: rgba(141, 135, 134, 0.5);
}

.profile-footer-action {
  padding-top: 8px;
}

.detail-content {
  position: relative;
  z-index: 2;
  padding-top: 8px;
}

.stack-card {
  padding: 18px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.record-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card {
  padding: 18px 14px;
  text-align: center;
}

.summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2.05rem;
  color: var(--rose-deep);
}

.calendar-card {
  padding: 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 24px rgba(141, 97, 106, 0.06);
}

.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-week {
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.calendar-cell {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 14px;
  font-size: 0.92rem;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.88);
}

.calendar-cell.is-empty {
  background: transparent;
}

.calendar-cell.is-trained {
  background: linear-gradient(180deg, rgba(248, 226, 231, 0.92), rgba(255, 245, 247, 0.96));
  color: var(--rose-deep);
  box-shadow: inset 0 0 0 1px rgba(141, 97, 106, 0.16);
}

.calendar-cell.is-trained::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--rose);
}

.member-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 240, 214, 0.7);
  color: #8b6d32;
  font-size: 0.94rem;
  font-weight: 700;
}

.member-period {
  margin: 0;
}

.accent-line {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(248, 192, 208, 0.92);
}

.right-item,
.member-option,
.pay-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 18px;
  text-align: left;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 22px rgba(141, 97, 106, 0.06);
}

.right-item span:first-child,
.member-option strong,
.pay-option strong {
  font-size: 1.08rem;
  color: var(--text);
}

.member-option small,
.pay-option small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.member-option.is-selected,
.pay-option.is-selected {
  background: linear-gradient(180deg, rgba(230, 247, 242, 0.92), rgba(247, 255, 252, 0.98));
  box-shadow: inset 0 0 0 2px rgba(159, 216, 196, 0.78);
}

.check-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.88rem;
  color: #fff;
  background: rgba(159, 216, 196, 0.45);
}

.member-option.is-selected .check-mark,
.pay-option.is-selected .check-mark {
  background: var(--mint-strong);
}

.member-recharge-layout {
  position: relative;
  overflow: hidden;
  padding-bottom: 12px;
  animation: memberFadeIn 0.28s ease;
}

.member-summary-card,
.member-recharge-option,
.member-pay-option {
  position: relative;
  z-index: 1;
}

.member-summary-card {
  margin-bottom: 22px;
  padding: 20px 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(233, 233, 233, 0.96);
  box-shadow: 0 16px 24px rgba(141, 97, 106, 0.06);
}

.member-recharge-tip {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.member-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-status-row h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--rose-deep);
}

.member-status-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.member-recharge-block {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.member-plan-list,
.member-pay-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.member-recharge-option,
.member-pay-option {
  min-height: 94px;
  padding: 18px;
  border: 1px solid #e9e9e9;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.member-pay-option {
  min-height: 78px;
}

.member-option-copy {
  min-width: 0;
  flex: 1;
}

.member-option-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-option-price {
  flex: 0 0 auto;
  font-size: 1.28rem;
  font-weight: 800;
  color: #c26f80;
}

.member-recharge-option small,
.member-pay-option small {
  margin-top: 8px;
  font-size: 0.9rem;
}

.member-recharge-option.is-selected,
.member-pay-option.is-selected {
  background: #e6f7f2;
  border: 2px solid #9fd8c4;
  box-shadow: 0 14px 24px rgba(159, 216, 196, 0.18);
}

.member-recharge-option .check-mark,
.member-pay-option .check-mark {
  flex: 0 0 auto;
  background: rgba(159, 216, 196, 0.38);
  color: transparent;
}

.member-recharge-option.is-selected .check-mark,
.member-pay-option.is-selected .check-mark {
  color: #fff;
  background: #9fd8c4;
}

.member-recharge-action {
  position: relative;
  z-index: 1;
  padding-top: 2px;
}

.member-recharge-button {
  width: 100%;
  color: #fff;
  background: linear-gradient(180deg, #7fc1ad 0%, #66ad97 100%);
  box-shadow: 0 16px 24px rgba(102, 173, 151, 0.24);
}

.member-recharge-button:disabled {
  opacity: 1;
  background: linear-gradient(180deg, #b5c5c0 0%, #9eafaa 100%);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 20px rgba(120, 132, 128, 0.16);
}

.member-recharge-button:not(:disabled):active {
  transform: scale(0.97);
}

@keyframes memberFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-list {
  margin-top: 6px;
}

.setting-row,
.setting-column {
  padding: 18px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.setting-row strong,
.setting-column strong {
  display: block;
  font-size: 1.1rem;
}

.setting-row p,
.setting-column p {
  font-size: 0.92rem;
}

.switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.switch-slider {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: #ddd4d6;
  transition: background 0.22s ease;
}

.switch-slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.switch input:checked + .switch-slider {
  background: #bfe7d7;
}

.switch input:checked + .switch-slider::after {
  transform: translateX(26px);
}

.setting-column textarea {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  resize: none;
  background: rgba(255, 255, 255, 0.82);
  color: var(--rose-deep);
  font-size: 0.98rem;
}

.about-content {
  text-align: center;
}

.about-content .brand-title {
  margin: 0 0 14px;
  font-size: 3rem;
}

.about-content > p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.tab-bar {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 32px rgba(141, 97, 106, 0.08);
}

.tab-button {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 64px;
  border-radius: 22px;
  color: var(--muted);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.tab-button span {
  font-size: 1.2rem;
}

.tab-icon-svg {
  width: 1.28rem;
  height: 1.28rem;
}

.tab-button strong {
  font-size: 0.94rem;
  font-weight: 700;
}

.tab-button.is-active {
  color: var(--rose-deep);
  background: linear-gradient(180deg, rgba(255, 209, 221, 0.95), rgba(255, 230, 237, 0.95));
}

.modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(76, 55, 59, 0.22);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(346px, calc(100% - 32px));
  padding: 24px 20px 18px;
  border-radius: 28px;
  background: rgba(255, 252, 250, 0.98);
  box-shadow: 0 26px 38px rgba(90, 69, 77, 0.18);
  animation: modalUp 0.24s ease;
}

.modal-title {
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rose-deep);
}

.modal-message {
  margin: 8px 0 0;
  text-align: center;
  color: var(--text);
  line-height: 1.55;
  white-space: nowrap;
}

.modal.modal-wide-copy .modal-card {
  width: min(382px, calc(100% - 24px));
  padding: 28px 24px 20px;
}

.modal.modal-wide-copy .modal-message {
  margin-top: 10px;
  padding: 0 2px;
  font-size: 0.98rem;
  line-height: 1.7;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.modal-input-wrap {
  margin-top: 18px;
}

.modal-input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--rose-deep);
  font-size: 1rem;
}

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

.toast {
  position: absolute;
  left: 50%;
  bottom: 100px;
  z-index: 32;
  max-width: calc(100% - 36px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(93, 71, 77, 0.9);
  color: #fff;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.94rem;
  line-height: 1.55;
  white-space: pre-line;
  animation: toastIn 0.22s ease;
}

.ai-screen {
  background: #070708;
}

.phone-shell.landscape .ai-screen {
  opacity: 1;
}

.ai-top-bar,
.ai-bottom-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(249, 247, 245, 0.16);
  backdrop-filter: blur(10px);
}

.ai-top-bar {
  min-height: 58px;
}

.ai-center-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
  color: #fff;
  min-width: 0;
}

.ai-center-group strong {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}

.ai-center-group span {
  font-weight: 700;
  color: #ffe7ef;
}

.ai-control-button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}

.ai-control-button.secondary {
  background: rgba(255, 227, 236, 0.12);
}

.ai-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100% - 122px);
}

.ai-pane {
  position: relative;
  overflow: hidden;
  background: #0d0d10;
}

.ai-pane video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-fallback,
.camera-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.camera-pane.has-stream .camera-placeholder {
  opacity: 0;
  pointer-events: none;
}

.video-fallback {
  background:
    linear-gradient(180deg, rgba(41, 30, 25, 0.25), rgba(41, 30, 25, 0.52)),
    linear-gradient(145deg, #926c58 0%, #c7a383 100%);
}

.pose-figure {
  position: relative;
  width: 220px;
  height: 220px;
}

.pose-head {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #f7d2c7;
}

.pose-body {
  position: absolute;
  bottom: 40px;
  left: 50%;
  width: 90px;
  height: 120px;
  transform: translateX(-50%);
  border-radius: 50px 50px 24px 24px;
  background: #d0cbc7;
}

.pose-arm {
  position: absolute;
  top: 74px;
  left: 50%;
  width: 160px;
  height: 70px;
  transform: translateX(-50%) rotate(-8deg);
  border-radius: 50%;
  border-top: 12px solid #d7d1cc;
}

.camera-pane {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #17171d 0%, #0c0c10 100%);
}

.camera-avatar {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, #f8d2c7 0 24px, transparent 25px),
    radial-gradient(circle at 50% 84%, #526b83 0 46px, transparent 47px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.04);
}

.camera-placeholder p {
  position: absolute;
  bottom: 26px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
}

.pane-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.84rem;
  backdrop-filter: blur(8px);
}

.error-marker {
  position: absolute;
  left: 28%;
  top: 22%;
  width: 26%;
  height: 24%;
  border-radius: 22px;
  border: 3px solid rgba(230, 247, 242, 0.96);
  box-shadow: 0 0 0 8px rgba(230, 247, 242, 0.12);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease, left 0.22s ease, top 0.22s ease;
}

.error-marker.is-visible {
  opacity: 1;
  animation: markerPulse 0.78s ease infinite alternate;
}

.pause-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  background: rgba(6, 6, 8, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.camera-pane.is-paused .pause-overlay {
  opacity: 1;
}

.ai-bottom-bar {
  min-height: 64px;
}

.timeline-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  color: rgba(255, 255, 255, 0.88);
}

.timeline-wrap input {
  flex: 1;
  accent-color: #f0b8c6;
  pointer-events: none;
}

.accuracy-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.accuracy-wrap strong {
  color: #e6f7f2;
}

.ai-hint {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 2;
  text-align: center;
  color: #fff;
  font-size: 1rem;
}

@keyframes markerPulse {
  from {
    transform: scale(0.98);
  }
  to {
    transform: scale(1.02);
  }
}

@keyframes modalUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 480px) {
  .phone-shell {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .phone-shell.landscape {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}

.brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(141, 97, 106, 0.12);
}

.auth-agreement-row {
  margin-top: 22px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image::before {
  opacity: 0;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 30, 23, 0.08), rgba(43, 30, 23, 0.38));
}

.hero-image > * {
  position: relative;
  z-index: 2;
}

.repair-card,
.fragment-card {
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.25);
}

.repair-card::before,
.fragment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.42;
  filter: saturate(1.08);
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.repair-card::after,
.fragment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.72));
}

.fragment-card::before {
  opacity: 0.5;
  filter: saturate(1.14) brightness(0.88);
}

.fragment-card::after {
  background: linear-gradient(180deg, rgba(84, 53, 62, 0.22), rgba(255, 255, 255, 0.52));
}

.repair-card > *,
.fragment-card > * {
  position: relative;
  z-index: 1;
}

.repair-card:hover::before,
.fragment-card:hover::before,
.repair-card:active::before,
.fragment-card:active::before {
  transform: scale(1.05);
  opacity: 0.56;
}

.repair-card[data-art]::before,
.fragment-card[data-art]::before,
.course-card[data-art]::before {
  background-image: var(--card-art);
}

.repair-card .card-icon,
.fragment-card .card-icon {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 14px rgba(141, 97, 106, 0.08);
}

.course-card {
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  filter: brightness(0.78) saturate(1.58) contrast(1.08);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.course-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, rgba(90, 69, 77, 0.08), rgba(90, 69, 77, 0.03));
}

.course-card[data-art]::before {
  opacity: 0.38;
}

.course-card > * {
  position: relative;
  z-index: 1;
}

.course-card:active::before {
  transform: scale(1.03);
}

#searchResultSection {
  display: none;
}

#searchResultSection.is-visible {
  display: block;
}

.search-scroll .related-list:empty,
.search-scroll .result-list:empty {
  display: none;
}

.metric-card .compact-progress {
  margin-top: 18px;
}

.quick-content .quick-metrics {
  margin-bottom: 6px;
}

.profile-footer-action {
  margin-top: 6px;
}

.record-notes {
  display: grid;
  gap: 12px;
}

.record-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--rose-deep);
  line-height: 1.6;
  box-shadow: 0 10px 18px rgba(141, 97, 106, 0.05);
}

#screen-records .calendar-week,
#screen-records .calendar-tip {
  display: none;
}

.settings-list .setting-row,
.settings-list .setting-column {
  background: rgba(255, 255, 255, 0.82);
}

.about-content .brand-mark {
  width: 112px;
  height: 112px;
}

.about-card-list .stack-card {
  text-align: left;
}

.about-card-list .stack-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--rose-deep);
}

.ai-screen {
  display: flex;
  flex-direction: column;
}

.ai-top-bar {
  flex-shrink: 0;
}

.ai-toolbar-spacer {
  width: 42px;
  height: 38px;
  flex: 0 0 42px;
}

.ai-exit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 0 16px;
}

.ai-caption {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: calc(100% - 44px);
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.45;
}

.ai-stage {
  flex: 1;
  height: auto;
  min-height: 0;
  margin-top: 8px;
}

.demo-pane.has-video .video-fallback {
  opacity: 0;
  pointer-events: none;
}

.camera-pane.has-stream .camera-placeholder {
  opacity: 0;
  pointer-events: none;
}

.camera-pane video,
.demo-pane video {
  background: #000;
}

.ai-bottom-bar {
  display: flex;
  align-self: center;
  width: min(620px, calc(100% - 36px));
  min-height: 64px;
  margin: 12px auto 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(249, 247, 245, 0.16);
  backdrop-filter: blur(10px);
}

.ai-hint {
  display: none;
}
