:root {
  --bg: #fefefe;
  --gold: #dbc87c;
  --blue: #bec8f9;
  --peach: #ecdfd7;
  --mint: #cae0dd;
  --cream: #f4edd5;
  --soft: #eef2ef;
  --ink: #131315;
  --muted: #6f737d;
  --line: rgba(19, 19, 21, 0.08);
  --panel: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 80px rgba(47, 54, 67, 0.14);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --phone-width: 390px;
  --phone-height: 844px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 15% 15%, rgba(202, 224, 221, 0.65), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(236, 223, 215, 0.75), transparent 24%),
    linear-gradient(180deg, #f9f8f4 0%, #fefefe 100%);
  color: var(--ink);
}

body {
  padding: 24px;
}

button,
input,
textarea {
  font: inherit;
}

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

.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  min-height: calc(100vh - 48px);
}

.global-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  max-width: min(88vw, 420px);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(19, 19, 21, 0.88);
  color: #fff;
  font-size: 13px;
  transform: translateX(-50%);
  box-shadow: 0 16px 40px rgba(19, 19, 21, 0.16);
}

.global-loading {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(254, 254, 254, 0.76);
  backdrop-filter: blur(4px);
  color: #131315;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sidebar {
  padding: 28px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.brand p,
.sidebar-note,
.section-subtitle,
.field-hint,
.mini-text,
.history-snippet,
.calendar-caption {
  margin: 0;
  color: var(--muted);
}

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

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(19, 19, 21, 0.04);
  transition: transform 180ms ease, background 180ms ease;
}

.nav-item:hover {
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(219, 200, 124, 0.42), rgba(190, 200, 249, 0.4));
}

.nav-item::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(19, 19, 21, 0.08);
}

.sidebar-card {
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(236, 223, 215, 0.75), rgba(255, 255, 255, 0.96));
}

.sidebar-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.stage {
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 40px;
  background: rgba(47, 54, 67, 0.92);
  box-shadow: var(--shadow);
}

.phone {
  width: min(100%, var(--phone-width));
  height: min(84vh, var(--phone-height));
  border-radius: 44px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.22);
  position: relative;
}

.status-bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 8px;
  font-size: 15px;
  font-weight: 600;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pill,
.status-line,
.status-dot {
  display: inline-block;
  background: var(--ink);
}

.status-pill {
  width: 22px;
  height: 10px;
  border-radius: 99px;
}

.status-line {
  width: 14px;
  height: 10px;
  border-radius: 2px;
}

.status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.screen {
  position: absolute;
  inset: 0;
  overflow: auto;
  background: var(--bg);
}

.screen::-webkit-scrollbar {
  width: 0;
}

.page {
  min-height: 100%;
  padding: 74px 20px 28px;
  position: relative;
}

.page.auth-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(236, 223, 215, 0.65), transparent 12%),
    radial-gradient(circle at 78% 14%, rgba(236, 223, 215, 0.5), transparent 18%),
    linear-gradient(180deg, #f9efef 0%, #fefefe 52%);
}

.page.auth-page::after {
  content: "";
  position: absolute;
  inset: 84px 0 auto;
  height: 180px;
  background:
    radial-gradient(circle at 20% 40%, rgba(236, 223, 215, 0.45), transparent 12%),
    radial-gradient(circle at 75% 25%, rgba(202, 224, 221, 0.35), transparent 22%);
  pointer-events: none;
}

.auth-decoration-art {
  position: absolute;
  top: 52px;
  right: 16px;
  width: 148px;
  opacity: 0.84;
  pointer-events: none;
}

.auth-panel,
.sheet,
.card,
.glass-card,
.floating-card {
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(19, 19, 21, 0.08);
}

.auth-panel {
  margin-top: 120px;
  padding: 44px 28px 34px;
  border-radius: 40px;
  overflow: hidden;
}

.auth-title,
.page-title {
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
}

.auth-subtitle {
  margin: 12px 0 34px;
  color: rgba(19, 19, 21, 0.34);
}

.form-stack {
  display: grid;
  gap: 18px;
}

.input-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(19, 19, 21, 0.12);
}

.input-row span,
.input-row button {
  min-width: 0;
  color: rgba(19, 19, 21, 0.42);
}

.input-row input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #131315;
  font: inherit;
  outline: none;
}

.input-row input::placeholder {
  color: rgba(19, 19, 21, 0.36);
}

.input-row strong {
  font-size: 15px;
}

.auth-inline-caret {
  margin-left: -6px;
  font-size: 10px;
  transform: translateY(1px);
}

.auth-lock-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.auth-lock-icon::before,
.auth-lock-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.auth-lock-icon::before {
  top: 1px;
  width: 8px;
  height: 6px;
  border: 2px solid rgba(19, 19, 21, 0.84);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.auth-lock-icon::after {
  top: 7px;
  width: 12px;
  height: 10px;
  border-radius: 2px;
  background: rgba(19, 19, 21, 0.92);
}

.input-row-code button {
  white-space: nowrap;
  font-weight: 700;
  color: rgba(19, 19, 21, 0.8);
}

.auth-primary-btn {
  margin-top: 34px;
}

.auth-helper-copy {
  margin: 12px 0 0;
  color: rgba(19, 19, 21, 0.42);
  font-size: 12px;
  line-height: 1.6;
}

.auth-text-action {
  margin-top: 18px;
}

.auth-text-action-login {
  margin-top: 14px;
}

.auth-text-link {
  color: rgba(19, 19, 21, 0.84);
}

.auth-text-link-underlined {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.primary-btn,
.ghost-btn,
.chip-btn,
.pill-btn {
  width: 100%;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
}

.primary-btn {
  background: var(--ink);
  color: #fff;
}

.ghost-btn {
  background: rgba(19, 19, 21, 0.06);
  color: var(--ink);
}

.text-action {
  margin-top: 16px;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-header.compact {
  margin-bottom: 14px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(19, 19, 21, 0.08);
}

.icon-btn img,
.inline-icon,
.list-icon img,
.message-actions img,
.input-send img {
  width: 18px;
  height: 18px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(244, 237, 213, 0.78));
  box-shadow: 0 24px 50px rgba(19, 19, 21, 0.08);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -26px -40px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(202, 224, 221, 0.35);
}

.hero-card h2 {
  margin: 0;
  font-size: 31px;
}

.hero-card p {
  width: 58%;
  margin: 10px 0 0;
  color: var(--muted);
}

.hero-card img {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: 150px;
  height: auto;
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  min-height: 154px;
  border-radius: 26px;
  box-shadow: 0 16px 30px rgba(19, 19, 21, 0.06);
}

.feature-card[data-tone="blue"] {
  background: rgba(190, 200, 249, 0.64);
}

.feature-card[data-tone="gold"] {
  background: rgba(219, 200, 124, 0.58);
}

.feature-card[data-tone="mint"] {
  background: rgba(202, 224, 221, 0.74);
}

.feature-card[data-tone="peach"] {
  background: rgba(236, 223, 215, 0.94);
}

.feature-card[data-tone="cream"] {
  background: rgba(244, 237, 213, 0.94);
}

.feature-card[data-tone="soft"] {
  background: rgba(237, 241, 237, 0.94);
}

.feature-card h3,
.card-title {
  margin: 0;
  font-size: 20px;
}

.feature-card p,
.card-copy {
  margin: 8px 0 0;
  color: rgba(19, 19, 21, 0.6);
  max-width: 72%;
}

.feature-card img {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.section {
  margin-top: 20px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 19px;
}

.question-card,
.result-card,
.list-card,
.content-card,
.editor-card {
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(19, 19, 21, 0.06);
}

.question-card + .question-card,
.list-card + .list-card {
  margin-top: 14px;
}

.question-card h3,
.result-card h3,
.content-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
}

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

.option-btn {
  padding: 12px 14px;
  border-radius: 18px;
  text-align: left;
  background: rgba(19, 19, 21, 0.05);
  color: var(--ink);
}

.option-btn.active {
  background: rgba(190, 200, 249, 0.56);
}

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

.result-card {
  margin-top: 16px;
  background: linear-gradient(145deg, rgba(202, 224, 221, 0.75), rgba(255, 255, 255, 0.95));
}

.intervention-list {
  display: grid;
  gap: 14px;
}

.intervention-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(19, 19, 21, 0.06);
}

.intervention-cover {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  object-fit: cover;
  background: rgba(244, 237, 213, 0.72);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(219, 200, 124, 0.4);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.score-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(51, 57, 71, 0.9);
  color: #fff;
}

.stars {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.star {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.star.active {
  background: var(--gold);
}

.content-hero {
  min-height: 100%;
  background:
    radial-gradient(circle at 14% 14%, rgba(219, 200, 124, 0.14), transparent 26%),
    linear-gradient(180deg, #f8f5ec 0%, #fefefe 84%);
}

.content-stage {
  margin-top: 18px;
  display: grid;
  place-items: center;
}

.disc-wrap {
  width: 246px;
  height: 246px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 50px rgba(219, 200, 124, 0.28);
}

.disc-wrap img {
  width: 194px;
  height: 194px;
  border-radius: 50%;
  object-fit: cover;
}

.content-meta {
  margin-top: 26px;
  text-align: center;
}

.content-meta p {
  margin: 10px 0 0;
  color: var(--muted);
}

.waveform {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  padding: 0 2px;
  height: 44px;
  margin: 18px 0 22px;
}

.waveform span {
  flex: 0 0 4px;
  width: 4px;
  border-radius: 999px;
  background: rgba(219, 200, 124, 0.38);
  transform-origin: bottom;
  transform: scaleY(var(--wave-scale, 0.56));
  opacity: 0.58;
  transition:
    transform 180ms ease,
    background-color 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease;
}

.waveform span.is-played {
  background: rgba(219, 200, 124, 0.9);
  opacity: 1;
}

.waveform.is-playing span.is-active {
  background: #e8ce72;
  box-shadow: 0 8px 18px rgba(219, 200, 124, 0.18);
}

.player-bar,
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.player-controls {
  margin-top: 18px;
  justify-content: center;
}

.player-btn {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
}

.player-btn img,
.player-skip img {
  width: 22px;
  height: 22px;
  filter: invert(1);
}

.player-skip {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.chat-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.9)),
    url("./assets/images/AI对话背景.png") center / cover no-repeat;
}

.chat-thread {
  display: grid;
  gap: 14px;
  padding-bottom: 108px;
}

.message {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.message.user {
  justify-content: flex-end;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.bubble {
  max-width: 76%;
  padding: 14px 16px;
  border-radius: 22px;
  line-height: 1.5;
  box-shadow: 0 8px 22px rgba(19, 19, 21, 0.06);
}

.message.assistant .bubble {
  border-bottom-left-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.message.user .bubble {
  border-bottom-right-radius: 8px;
  background: rgba(202, 224, 221, 0.82);
}

.chat-input {
  position: absolute;
  inset: auto 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 44px rgba(19, 19, 21, 0.12);
}

.chat-input input {
  border: none;
  outline: none;
  background: transparent;
}

.input-send {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
}

.input-send img {
  filter: invert(1);
}

.home-page {
  background:
    linear-gradient(180deg, #f7ece7 0%, #f7ece7 34%, #fefefe 34%, #fefefe 100%);
  padding: 78px 16px 18px;
}

.home-topbar,
.questionnaire-topbar,
.chat-refined-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-topbar-right {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.home-avatar {
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(19, 19, 21, 0.08);
}

.home-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-datetime {
  margin-top: 2px;
  text-align: right;
  line-height: 1;
}

.home-datetime span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  color: rgba(19, 19, 21, 0.18);
  font-weight: 700;
}

.home-datetime strong {
  display: block;
  font-size: 12px;
  color: rgba(19, 19, 21, 0.24);
  line-height: 1.05;
}

.home-icon-btn {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.home-icon-btn img {
  width: 20px;
  height: 20px;
  opacity: 0.72;
}

.home-notice-dot {
  position: absolute;
  top: 5px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f18168;
}

.home-heading {
  position: relative;
  padding: 22px 0 20px;
}

.home-title {
  margin: 0;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.home-subtitle {
  margin: 10px 0 0;
  font-size: 15px;
  color: rgba(19, 19, 21, 0.56);
  font-weight: 600;
}

.home-subtitle-en {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(19, 19, 21, 0.25);
}

.home-time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(19, 19, 21, 0.2);
}

.home-decoration {
  position: absolute;
  top: -4px;
  right: 4px;
  width: 124px;
  opacity: 0.82;
}

.home-divider {
  height: 2px;
  margin: 0 0 18px;
  background: rgba(255, 255, 255, 0.35);
}

.home-board {
  padding: 12px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 28px rgba(19, 19, 21, 0.06);
}

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

.home-card {
  position: relative;
  min-height: 152px;
  overflow: hidden;
  padding: 16px 14px 14px;
  border-radius: 26px;
  text-align: left;
}

.home-card-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-card-copy,
.home-card-badge,
.home-card-arrow {
  position: relative;
  z-index: 1;
}

.home-card[data-tone="blue"] {
  background: #bec6f6;
}

.home-card[data-tone="gold"] {
  background: #f6e38f;
}

.home-card[data-tone="mint"] {
  background: #c8ddd8;
}

.home-card[data-tone="peach"] {
  background: #f2dfda;
}

.home-card[data-tone="disabled"] {
  min-height: 94px;
  background: #f4f2f1;
}

.home-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.08;
}

.home-card p {
  margin: 6px 0 0;
  font-size: 11px;
  color: rgba(92, 98, 137, 0.55);
}

.home-card[data-tone="gold"] p {
  color: rgba(124, 113, 82, 0.64);
}

.home-card[data-tone="mint"] p {
  color: rgba(109, 146, 139, 0.68);
}

.home-card[data-tone="peach"] p {
  color: rgba(192, 153, 156, 0.68);
}

.home-card[data-tone="disabled"] p,
.home-card[data-tone="disabled"] h3,
.home-card-meta {
  color: rgba(19, 19, 21, 0.28);
}

.home-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f17f67;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.home-card-meta {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
}

.home-card-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 0 0 1px rgba(19, 19, 21, 0.08);
}

.home-card-arrow img {
  width: 22px;
  height: 22px;
}

.home-card-wide {
  width: 100%;
  margin-top: 12px;
}

.questionnaire-page {
  background: #fff;
}

.questionnaire-page .icon-btn,
.chat-refined-header .icon-btn {
  background: transparent;
  box-shadow: none;
}

.questionnaire-spacer {
  width: 36px;
  height: 36px;
}

.questionnaire-intro {
  padding: 18px 8px 0;
}

.questionnaire-intro h2,
.questionnaire-form-intro h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  text-align: left;
}

.questionnaire-hero {
  display: block;
  width: 252px;
  margin: 66px auto 74px;
}

.questionnaire-primary {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: #131315;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.questionnaire-form-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  padding-bottom: 18px;
}

.questionnaire-form-body {
  flex: 1;
  overflow: auto;
  padding-bottom: 12px;
}

.questionnaire-form-intro {
  position: relative;
  padding: 12px 0 8px;
}

.questionnaire-corner-fairy {
  position: absolute;
  top: 0;
  right: 0;
  width: 76px;
  opacity: 0.78;
}

.ema-question {
  margin-bottom: 18px;
}

.ema-question h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
}

.questionnaire-range-meta,
.questionnaire-range-marks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.questionnaire-range-meta {
  margin-bottom: 5px;
  font-size: 10px;
  color: #a4abc9;
}

.questionnaire-range-shell {
  padding: 2px 6px 0;
}

.questionnaire-range-input {
  width: 100%;
  margin: 0;
  accent-color: #aab3ef;
}

.questionnaire-range-marks {
  margin-top: 4px;
  padding: 0 6px;
  font-size: 10px;
  color: rgba(19, 19, 21, 0.24);
}

.questionnaire-choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.questionnaire-choice-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-size: 14px;
  color: rgba(19, 19, 21, 0.88);
}

.choice-marker {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  border: 1px solid rgba(172, 180, 223, 0.54);
  background: #fff;
}

.questionnaire-choice-item.active .choice-marker {
  border-color: #aab3ef;
  box-shadow: inset 0 0 0 4px #aab3ef;
}

.questionnaire-note-input {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 19, 21, 0.08);
  border-radius: 10px;
  resize: none;
  outline: none;
  font: inherit;
  color: var(--ink);
}

.questionnaire-note-input::placeholder {
  color: rgba(244, 146, 122, 0.78);
}

.questionnaire-submit {
  margin-top: 0;
}

.questionnaire-form-footer {
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 42%);
}

.chat-refined-page {
  display: flex;
  flex-direction: column;
  padding-bottom: 114px;
  min-height: 100%;
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fefefb 100%);
}

.chat-refined-canvas {
  position: relative;
  flex: 1;
  overflow: auto;
  padding: 10px 0 0;
}

.chat-atmosphere {
  position: absolute;
  border-radius: 50%;
  background: rgba(226, 232, 207, 0.38);
  filter: blur(0.2px);
}

.chat-atmosphere-right {
  right: -18px;
  top: 120px;
  width: 196px;
  height: 214px;
}

.chat-atmosphere-left {
  left: -62px;
  bottom: 6px;
  width: 240px;
  height: 276px;
}

.chat-thread {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}

.chat-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-line.user {
  width: 100%;
  justify-content: flex-start;
  flex-direction: row-reverse;
}

.chat-line-avatar {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
}

.chat-line-avatar-user {
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 16px rgba(19, 19, 21, 0.08);
}

.chat-line-bubble {
  max-width: calc(100% - 54px);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  box-shadow: 0 10px 18px rgba(19, 19, 21, 0.06);
}

.chat-line-bubble.assistant {
  background: rgba(255, 255, 255, 0.92);
}

.chat-line-bubble.user {
  max-width: 67%;
  font-size: 12px;
  padding: 11px 18px;
  color: #fff;
  background: #93a59b;
}

.chat-line-bubble p {
  margin: 0;
  white-space: pre-line;
}

.chat-line-bubble.loading {
  min-width: 84px;
  padding: 16px 18px;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(147, 165, 155, 0.8);
  animation: chatTypingPulse 1s ease-in-out infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.16s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.32s;
}

.chat-inline-player {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(19, 19, 21, 0.04);
}

.chat-inline-play {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.chat-inline-play img {
  width: 18px;
  height: 18px;
}

.chat-inline-player span {
  font-size: 12px;
  color: rgba(19, 19, 21, 0.56);
}

.chat-inline-progress {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3a3c43 35%, rgba(58, 60, 67, 0.16) 35%);
}

.chat-inline-volume {
  width: 14px;
  height: 14px;
}

.chat-rating-block {
  position: relative;
  z-index: 1;
  margin: 8px 0 12px 42px;
  text-align: center;
}

.chat-rating-block p {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(19, 19, 21, 0.76);
}

.chat-rating-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.chat-rating-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.chat-rating-dots span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
}

.chat-rating-dots span.active {
  background: rgba(217, 228, 198, 0.9);
}

.chat-reset-button {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto;
  padding: 7px 16px;
  border-radius: 999px;
  color: #9cb7b0;
  border: 1px solid rgba(156, 183, 176, 0.7);
  background: rgba(255, 255, 255, 0.72);
}

.chat-reset-button:disabled {
  opacity: 0.5;
}

.chat-bottom-fairy {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 82px;
  opacity: 0.8;
}

.chat-bottom-fairy img {
  width: 100%;
}

@keyframes chatTypingPulse {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-input.refined {
  inset: auto 16px 16px;
  z-index: 2;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  border: 1px solid rgba(19, 19, 21, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.chat-input.refined input {
  font-size: 14px;
  color: rgba(19, 19, 21, 0.72);
}

.chat-input.refined input::placeholder {
  color: rgba(19, 19, 21, 0.2);
}

.calendar-card {
  padding: 20px;
  border-radius: 28px;
  background: rgba(249, 250, 255, 0.96);
  box-shadow: 0 16px 36px rgba(19, 19, 21, 0.05);
}

.calendar-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}

.calendar-cell {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.9);
}

.calendar-cell.active {
  background: rgba(219, 200, 124, 0.54);
}

.intervention-recommend-page {
  display: grid;
  align-content: start;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.16), transparent 12%),
    linear-gradient(180deg, rgba(19, 19, 21, 0.38), rgba(19, 19, 21, 0.3));
}

.recommend-panel {
  margin-top: 44px;
  padding: 16px;
  border-radius: 34px;
  background: linear-gradient(180deg, #dce1ff 0%, #ffffff 36%);
  box-shadow: 0 18px 44px rgba(19, 19, 21, 0.16);
}

.recommend-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.recommend-hero h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
}

.recommend-hero img {
  width: 98px;
}

.recommend-return-btn {
  margin-top: 26px;
}

.recommend-card-list,
.library-list,
.history-detail-cards {
  display: grid;
  gap: 12px;
}

.therapy-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 118px;
  padding: 18px 18px 16px;
  border-radius: 26px;
  text-align: left;
  overflow: hidden;
  border: 1px solid rgba(238, 214, 214, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.therapy-card::before {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  opacity: 0.52;
}

.therapy-card[data-tone="blue"] {
  background: linear-gradient(90deg, rgba(228, 232, 255, 0.94), rgba(219, 224, 252, 0.94));
  border-color: rgba(198, 206, 248, 0.88);
}

.therapy-card[data-tone="peach"] {
  background: linear-gradient(90deg, rgba(249, 239, 238, 0.96), rgba(248, 235, 235, 0.96));
  border-color: rgba(239, 214, 214, 0.86);
}

.therapy-card[data-tone="gold"] {
  background: linear-gradient(90deg, rgba(251, 246, 223, 0.98), rgba(250, 240, 188, 0.98));
  border-color: rgba(238, 226, 176, 0.88);
}

.therapy-card[data-tone="mint"] {
  background: linear-gradient(90deg, rgba(230, 243, 241, 0.98), rgba(215, 236, 233, 0.98));
  border-color: rgba(182, 214, 208, 0.88);
}

.therapy-card[data-tone="blue"]::before {
  background: rgba(189, 197, 245, 0.42);
}

.therapy-card[data-tone="peach"]::before {
  background: rgba(244, 226, 228, 0.64);
}

.therapy-card[data-tone="gold"]::before {
  background: rgba(244, 232, 184, 0.68);
}

.therapy-card[data-tone="mint"]::before {
  background: rgba(208, 231, 227, 0.72);
}

.therapy-card-copy {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 108px);
}

.therapy-card-copy h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.therapy-card-copy p {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(19, 19, 21, 0.32);
}

.therapy-card-time {
  display: inline-block;
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
}

.therapy-card-time::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 12px;
  margin-right: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.48;
  vertical-align: -1px;
}

.therapy-card[data-tone="blue"] .therapy-card-time {
  color: #8493dc;
}

.therapy-card[data-tone="peach"] .therapy-card-time {
  color: #e3b3b5;
}

.therapy-card[data-tone="gold"] .therapy-card-time {
  color: #c7b46b;
}

.therapy-card[data-tone="mint"] .therapy-card-time {
  color: #8ebdb7;
}

.therapy-card-art {
  position: absolute;
  right: 52px;
  bottom: 12px;
  z-index: 1;
  width: 94px;
  height: 82px;
  pointer-events: none;
}

.therapy-card[data-mode="article"] .therapy-card-art {
  right: 56px;
  bottom: 8px;
  width: 84px;
  height: 84px;
}

.therapy-card[data-mode="video"] .therapy-card-art {
  right: 52px;
  bottom: 14px;
  width: 96px;
  height: 76px;
}

.therapy-card[data-mode="audio"] .therapy-card-art {
  right: 50px;
  bottom: 8px;
  width: 104px;
  height: 88px;
}

.therapy-card[data-mode="image"] .therapy-card-art {
  right: 46px;
  bottom: 8px;
  width: 104px;
  height: 86px;
}

.therapy-card-side {
  position: absolute;
  right: 16px;
  top: 50%;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 10px;
  transform: translateY(-50%);
}

.therapy-card-arrow {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1.5px rgba(19, 19, 21, 0.16);
}

.therapy-card-arrow img {
  width: 22px;
  height: 22px;
}

.therapy-card-star {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-bottom-left-radius: 18px;
  background: rgba(181, 178, 173, 0.28);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.therapy-card-star span {
  color: rgba(255, 245, 201, 0.42);
  font-size: 17px;
  line-height: 1;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.92);
}

.therapy-card-star.active {
  background: rgba(181, 178, 173, 0.62);
}

.therapy-card-star.active span {
  color: #f5cf7e;
}

.therapy-type-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.therapy-type-blue {
  background: #9ca8e7;
}

.therapy-type-peach {
  background: #e7a5ab;
}

.therapy-type-gold {
  background: #b3ab73;
}

.therapy-type-mint {
  background: #93bdb9;
}

.library-header,
.history-calendar-header,
.content-topbar,
.history-detail-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
}

.library-header .icon-btn,
.content-topbar .icon-btn,
.history-calendar-header .icon-btn,
.history-detail-header .icon-btn {
  position: absolute;
  left: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(19, 19, 21, 0.08);
}

.library-header > .icon-btn:nth-of-type(2),
.content-topbar > .icon-btn:nth-of-type(2),
.history-calendar-header > .icon-btn:nth-of-type(2),
.history-detail-header > .icon-btn:nth-of-type(2) {
  left: auto;
  right: 0;
}

.content-topbar .questionnaire-spacer,
.history-calendar-header .questionnaire-spacer,
.history-detail-header .questionnaire-spacer {
  display: none;
}

.library-tabs {
  display: flex;
  gap: 6px;
  margin: 18px 0 20px;
  overflow: auto;
  padding-top: 4px;
}

.library-empty {
  padding: 42px 0 18px;
  text-align: center;
  color: rgba(19, 19, 21, 0.34);
  font-size: 14px;
}

.library-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(19, 19, 21, 0.12);
  border-radius: 8px;
  color: rgba(19, 19, 21, 0.3);
  background: #fff;
  font-size: 12px;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.library-tab[data-intervention-tab="favorite"] {
  min-width: 50px;
  padding-left: 16px;
}

.library-tab.active {
  color: #fff;
  background: #131315;
}

.library-tab-star {
  position: absolute;
  left: 4px;
  top: 2px;
  color: #f5cf7e;
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.intervention-library-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 46%, rgba(247, 230, 228, 0.68), transparent 12%),
    radial-gradient(circle at 84% 66%, rgba(245, 231, 228, 0.74), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #fcfbfb 100%);
}

.therapy-card-compact {
  min-height: 96px;
  padding: 14px 16px 12px;
}

.therapy-card-compact .therapy-card-copy h3 {
  font-size: 16px;
}

.therapy-card-detail {
  padding: 14px 16px;
}

.content-page {
  overflow: hidden;
}

.content-heading {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.content-audio-page {
  background:
    radial-gradient(circle at 76% 56%, rgba(234, 222, 185, 0.34), transparent 18%),
    linear-gradient(180deg, #f8f4e7 0%, #fefefe 100%);
}

.content-audio-stage {
  position: relative;
  margin-top: 52px;
  display: grid;
  place-items: center;
}

.content-audio-stage::before {
  content: "";
  position: absolute;
  width: 262px;
  height: 262px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.content-audio-disc {
  position: relative;
  z-index: 1;
  width: 224px;
  height: 224px;
  border-radius: 50%;
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(219, 200, 124, 0.18);
  background: rgba(255, 255, 255, 0.72);
  animation: audio-disc-spin 14s linear infinite;
  animation-play-state: paused;
}

.content-audio-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08);
}

.content-audio-disc-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: rgba(19, 19, 21, 0.36);
}

.content-audio-disc.is-playing {
  animation-play-state: running;
}

.content-audio-meta {
  margin-top: 36px;
  text-align: center;
}

.content-audio-meta h2 {
  margin: 0;
  font-size: 24px;
}

.content-audio-meta p {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(19, 19, 21, 0.5);
}

.content-audio-empty {
  display: inline-flex;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(19, 19, 21, 0.46);
}

.content-wave {
  margin-top: 26px;
  min-height: 44px;
  width: min(100%, 332px);
  margin-left: auto;
  margin-right: auto;
}

.content-audio-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  width: min(100%, 332px);
  margin-left: auto;
  margin-right: auto;
  color: rgba(19, 19, 21, 0.54);
}

.content-fav {
  position: absolute;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 3;
  width: 68px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 20px;
  background: rgba(191, 190, 188, 0.46);
  color: rgba(255, 243, 166, 0.36);
  font-size: 22px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.content-fav.active {
  background: rgba(191, 190, 188, 0.84);
  color: #fff3a6;
  box-shadow: 0 10px 22px rgba(25, 25, 25, 0.12);
}

#content-audio-player {
  display: none;
}

@keyframes audio-disc-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.player-btn:disabled,
.player-skip:disabled {
  opacity: 0.4;
}

.content-article-page {
  padding: 0;
  color: #fff;
}

.content-article-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 14, 18, 0.28), rgba(7, 14, 18, 0));
}

.content-article-page::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 360px;
  background: linear-gradient(180deg, rgba(12, 18, 20, 0), rgba(12, 18, 20, 0.44));
}

.content-article-panel {
  position: absolute;
  z-index: 2;
  inset: auto 12px calc(env(safe-area-inset-bottom, 0px) + 12px) 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  max-height: min(46vh, 396px);
  padding: 16px 16px 92px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 18, 20, 0.14), rgba(12, 18, 20, 0.4));
  box-shadow: 0 14px 30px rgba(7, 14, 18, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.content-article-intro {
  display: grid;
  gap: 8px;
}

.content-article-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.content-article-duration {
  display: inline-flex;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.content-article-scroll {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.content-article-scroll p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.88;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 4px 18px rgba(7, 14, 18, 0.18);
}

.content-article-scroll p:last-child {
  margin-bottom: 0;
}

.content-image-page {
  padding: 0;
  color: #fff;
}

.content-image-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 14, 18, 0.28), rgba(7, 14, 18, 0));
}

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

.content-image-page::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 260px;
  background: linear-gradient(180deg, rgba(12, 18, 20, 0), rgba(12, 18, 20, 0.38));
}

.content-image-topbar {
  position: relative;
  z-index: 2;
  padding: 78px 20px 0;
}

.content-image-topbar .icon-btn {
  background: rgba(255, 255, 255, 0.72);
}

.content-image-topbar .content-heading {
  gap: 6px;
}

.content-image-topbar .content-heading strong {
  font-size: 22px;
  text-shadow: 0 4px 22px rgba(7, 14, 18, 0.22);
}

.content-image-topbar .therapy-type-tag {
  box-shadow: 0 10px 24px rgba(7, 14, 18, 0.12);
}

.content-image-copy {
  position: absolute;
  z-index: 2;
  inset: auto 24px 120px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 20px;
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.82;
  text-shadow: 0 4px 18px rgba(7, 14, 18, 0.22);
}

.content-image-copy-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: rgba(255, 255, 255, 0.9);
}

.content-image-line,
.content-image-quote {
  margin: 0;
}

.content-image-line {
  font-size: 17px;
}

.content-image-quote {
  margin-top: 6px;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.98);
}

.content-video-page {
  background:
    radial-gradient(circle at 18% 46%, rgba(243, 212, 217, 0.65), transparent 18%),
    radial-gradient(circle at 74% 60%, rgba(243, 212, 217, 0.42), transparent 26%),
    linear-gradient(180deg, #f9efef 0%, #ffffff 100%);
}

.content-video-prompt {
  margin-top: 28px;
  text-align: center;
  color: #f0a9b0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.content-floating-fairy {
  display: block;
  width: 102px;
  margin: 16px 0 0 30px;
}

.content-video-shell {
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
}

.content-video-shell img,
.content-video-shell video {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.content-video-copy {
  margin-top: 18px;
  color: rgba(19, 19, 21, 0.68);
  font-weight: 600;
}

.content-video-empty {
  display: inline-flex;
  margin-top: 10px;
  color: rgba(19, 19, 21, 0.46);
  font-size: 13px;
}

.history-calendar-page {
  background: #fbfcf8;
}

.history-calendar-surface {
  margin-top: 34px;
  padding: 0 18px 0;
}

.history-month-title {
  font-size: 20px;
  font-weight: 700;
  color: rgba(19, 19, 21, 0.72);
}

.history-week-grid,
.history-month-grid,
.mood-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px 10px;
}

.history-week-grid {
  margin-top: 18px;
  color: #b6bdb8;
  text-align: center;
  font-size: 12px;
}

.history-month-grid {
  margin-top: 18px;
}

.history-month-cell {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(19, 19, 21, 0.34);
  background: transparent;
}

.history-month-cell.active {
  color: #fff;
  background: rgba(161, 171, 210, 0.82);
}

.history-chat-page .history-month-cell.active {
  background: rgba(147, 165, 155, 0.92);
}

.history-detail-page,
.history-chat-detail-page {
  background:
    radial-gradient(circle at 72% 54%, rgba(226, 232, 207, 0.42), transparent 18%),
    radial-gradient(circle at 20% 82%, rgba(226, 232, 207, 0.26), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
}

.history-session-page {
  background:
    radial-gradient(circle at 74% 22%, rgba(226, 232, 207, 0.3), transparent 18%),
    radial-gradient(circle at 20% 84%, rgba(226, 232, 207, 0.22), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
}

.history-session-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.history-session-card {
  position: relative;
  display: block;
  padding: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(19, 19, 21, 0.05);
  border: 1px solid rgba(19, 19, 21, 0.06);
}

.history-session-card.active {
  border-color: rgba(147, 165, 155, 0.5);
  box-shadow: 0 16px 32px rgba(147, 165, 155, 0.12);
}

.history-session-main {
  width: 100%;
  border: 0;
  border-radius: 20px;
  background: transparent;
  text-align: left;
  padding: 16px 76px 16px 18px;
}

.history-session-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.history-session-head strong {
  font-size: 16px;
  line-height: 1.5;
  color: #131315;
}

.history-session-head span {
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(19, 19, 21, 0.36);
}

.history-session-card p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(19, 19, 21, 0.52);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-session-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
}

.history-session-meta span {
  color: rgba(19, 19, 21, 0.34);
}

.history-session-meta em {
  font-style: normal;
  color: #93a59b;
  font-weight: 700;
}

.history-session-delete {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(227, 170, 157, 0.44);
  border-radius: 999px;
  background: rgba(255, 247, 245, 0.98);
  color: rgba(196, 105, 90, 0.95);
  font-size: 12px;
  line-height: 1;
  padding: 9px 12px;
}

.history-session-empty {
  padding: 28px 18px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(19, 19, 21, 0.05);
}

.history-session-empty strong {
  display: block;
  font-size: 16px;
}

.history-session-empty p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(19, 19, 21, 0.46);
}

.history-session-empty .chat-reset-button {
  margin-top: 18px;
}

.history-detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: rgba(19, 19, 21, 0.42);
}

.history-detail-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(19, 19, 21, 0.14);
}

.history-summary-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(19, 19, 21, 0.05);
}

.history-summary-head {
  margin-bottom: 14px;
}

.history-summary-head strong {
  display: block;
  font-size: 17px;
}

.history-summary-head div {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: rgba(19, 19, 21, 0.32);
  font-size: 12px;
}

.history-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(19, 19, 21, 0.08);
}

.history-summary-row:last-child {
  border-bottom: none;
}

.history-summary-row span {
  color: rgba(19, 19, 21, 0.78);
}

.history-summary-row strong {
  color: #98a4df;
  text-align: right;
}

.history-chat-canvas {
  margin-top: 8px;
  min-height: 620px;
}

.history-day-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
}

.history-day-chip {
  width: 34px;
  height: 28px;
  border-radius: 8px;
  background: rgba(204, 219, 213, 0.32);
  color: rgba(19, 19, 21, 0.44);
}

.history-day-chip.active {
  color: #fff;
  background: rgba(148, 169, 163, 0.92);
}

.history-day-control {
  width: 16px;
  color: rgba(148, 169, 163, 0.58);
  font-size: 18px;
}

.history-chat-detail-page .chat-line-bubble.assistant {
  border-bottom-left-radius: 10px;
}

.history-chat-detail-page .chat-line-bubble.user {
  max-width: 78%;
  border-bottom-right-radius: 10px;
}

.history-chat-detail-page .chat-bottom-fairy {
  left: 6px;
  bottom: 24px;
  width: 104px;
}

.mood-diary-page {
  background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
}

.mood-diary-title {
  margin: 36px 0 0;
  font-size: 18px;
  text-align: center;
}

.mood-diary-focus {
  display: grid;
  place-items: center;
  margin-top: 24px;
}

.mood-diary-focus img {
  width: 210px;
  height: 210px;
}

.mood-diary-date {
  margin-top: 8px;
  text-align: center;
  color: rgba(19, 19, 21, 0.24);
  font-weight: 700;
}

.mood-diary-grid-wrap {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.mood-diary-grid {
  display: grid;
  gap: 16px 12px;
}

.mood-diary-grid-1 {
  width: 68%;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
}

.mood-diary-grid-2 {
  width: 84%;
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
}

.mood-chip {
  display: grid;
  place-items: center;
}

.mood-chip img {
  width: 60px;
  height: 60px;
}

.mood-chip.active {
  transform: translateY(-2px);
}

.mood-next-btn {
  margin-top: 28px;
}

.mood-calendar-page {
  overflow: hidden;
  background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
}

.mood-calendar-surface {
  margin-top: 32px;
}

.mood-week-grid {
  color: #d3a45e;
}

.mood-calendar-grid {
  margin-top: 18px;
}

.mood-calendar-cell {
  min-height: 36px;
  display: grid;
  place-items: center;
  color: rgba(19, 19, 21, 0.24);
}

.history-month-caret {
  margin-left: 4px;
  font-size: 12px;
  color: rgba(19, 19, 21, 0.46);
}

.mood-calendar-cell img {
  width: 32px;
  height: 32px;
}

.mood-calendar-cell.outside-month span {
  color: rgba(19, 19, 21, 0.16);
}

.mood-calendar-illustration {
  position: absolute;
  right: 8px;
  bottom: 24px;
  display: block;
  width: 164px;
  opacity: 0.64;
}

.profile-page {
  background: linear-gradient(180deg, #f8efec 0%, #ffffff 44%);
}

.profile-header-decoration {
  position: absolute;
  top: 86px;
  right: 18px;
  width: 138px;
  opacity: 0.84;
}

.profile-avatar-wrap {
  position: relative;
  width: 120px;
  margin: 28px auto 0;
}

.profile-page-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 4px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(19, 19, 21, 0.08);
}

.profile-name-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 176px;
  margin: 14px auto 0;
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(19, 19, 21, 0.06);
}

.profile-name-pill strong {
  font-size: 20px;
}

.profile-name-edit img {
  width: 16px;
  height: 16px;
}

.profile-card {
  margin-top: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.profile-link-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 36px);
  margin: 0 18px;
  padding: 16px 14px 16px 16px;
  border-left: 1px solid rgba(236, 203, 204, 0.68);
  border-right: 1px solid rgba(236, 203, 204, 0.68);
  border-bottom: 1px solid rgba(236, 203, 204, 0.68);
  background: rgba(255, 255, 255, 0.98);
  overflow: hidden;
}

.profile-link-copy {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.profile-link-row strong {
  min-width: 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

.profile-link-watermark {
  position: absolute;
  right: 52px;
  top: 50%;
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 0.74;
  transform: translateY(-50%);
  pointer-events: none;
}

.profile-link-row--questionnaire .profile-link-watermark {
  width: 48px;
  height: 48px;
  opacity: 0.82;
}

.profile-link-row--favorite::after {
  content: "";
  position: absolute;
  right: 52px;
  top: 50%;
  width: 34px;
  height: 38px;
  border: 1.5px solid rgba(236, 203, 204, 0.74);
  border-radius: 11px 11px 8px 8px;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
  transform: translateY(-50%) rotate(11deg);
}

.profile-link-row--favorite::before {
  content: "☆";
  position: absolute;
  right: 62px;
  top: 50%;
  color: rgba(236, 203, 204, 0.82);
  font-size: 18px;
  line-height: 1;
  transform: translateY(-54%) rotate(11deg);
  pointer-events: none;
}

.profile-link-row:first-of-type {
  border-top: 1px solid rgba(236, 203, 204, 0.68);
  border-radius: 18px 18px 0 0;
}

.profile-link-row:nth-of-type(2) {
  border-radius: 0 0 18px 18px;
}

.profile-metrics-card {
  width: calc(100% - 36px);
  margin: 12px 18px 0;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 19, 21, 0.08);
}

.profile-metrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.profile-metrics-header span {
  position: relative;
  padding-left: 18px;
}

.profile-metrics-header span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0c6cf;
  transform: translateY(-50%);
}

.profile-metrics-header button img {
  width: 16px;
  height: 16px;
}

.profile-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid rgba(19, 19, 21, 0.06);
}

.profile-metric-row span {
  min-width: 0;
  color: rgba(19, 19, 21, 0.34);
}

.profile-metric-row strong {
  max-width: 52%;
  min-width: 0;
  color: rgba(19, 19, 21, 0.68);
  text-align: right;
}

.profile-metric-row strong.placeholder {
  color: rgba(19, 19, 21, 0.34);
}

.profile-logout-btn {
  margin-top: 20px;
}

.profile-edit-page {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: rgba(19, 19, 21, 0.08);
}

.profile-edit-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(19, 19, 21, 0.28);
  backdrop-filter: blur(10px);
}

.profile-edit-ghost {
  position: absolute;
  inset: 0;
  padding: 74px 20px 28px;
  filter: blur(9px);
  opacity: 0.6;
  transform: scale(1.02);
  pointer-events: none;
}

.profile-edit-ghost .icon-btn {
  background: rgba(255, 255, 255, 0.56);
  box-shadow: none;
}

.profile-edit-ghost-header {
  margin-bottom: 0;
}

.profile-edit-ghost-avatar {
  margin-top: 28px;
}

.profile-edit-ghost-pill {
  width: 168px;
}

.profile-edit-ghost-block {
  margin: 18px 18px 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.profile-edit-ghost-links {
  height: 94px;
  border: 1px solid rgba(236, 203, 204, 0.62);
}

.profile-edit-ghost-data {
  height: 268px;
  border: 1px solid rgba(19, 19, 21, 0.06);
}

.profile-edit-ghost-button {
  width: calc(100% - 72px);
  height: 52px;
  margin: 22px auto 0;
  border-radius: 999px;
  background: rgba(19, 19, 21, 0.9);
}

.profile-edit-layer {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  align-content: center;
  padding: 0 16px 24px;
}

.profile-edit-modal {
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
}

.profile-edit-title {
  position: relative;
  margin-bottom: 10px;
  padding-left: 18px;
  font-size: 18px;
  font-weight: 700;
}

.profile-edit-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0c6cf;
  transform: translateY(-50%);
}

.profile-edit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(19, 19, 21, 0.08);
}

.profile-edit-row:first-of-type {
  border-top: none;
}

.profile-edit-row.required label::before {
  content: "*";
  margin-right: 4px;
  color: #f0c6cf;
}

.profile-edit-row label {
  color: rgba(19, 19, 21, 0.72);
}

.profile-edit-input-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.profile-edit-row input {
  min-width: 0;
  flex: 1;
  border: none;
  outline: none;
  text-align: right;
  color: rgba(19, 19, 21, 0.38);
  background: transparent;
}

.profile-edit-row input::placeholder {
  color: rgba(19, 19, 21, 0.24);
}

.profile-edit-unit {
  color: rgba(19, 19, 21, 0.54);
}

.profile-sex-group {
  display: flex;
  gap: 18px;
}

.profile-sex-option {
  position: relative;
  padding-left: 18px;
  color: rgba(19, 19, 21, 0.62);
}

.profile-sex-option::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(240, 198, 207, 0.8);
  transform: translateY(-50%);
}

.profile-sex-option.active::before {
  background: #f0c6cf;
}

.profile-save-btn {
  margin-top: 18px;
}

.calendar-notes {
  margin-top: 16px;
}

.history-card {
  display: grid;
  gap: 14px;
}

.history-item {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(19, 19, 21, 0.06);
}

.history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.mood-item {
  padding: 14px;
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(19, 19, 21, 0.05);
}

.mood-item.active {
  outline: 2px solid rgba(190, 200, 249, 0.7);
}

.mood-item img {
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.profile-banner {
  position: relative;
  overflow: hidden;
  padding: 26px 22px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 223, 215, 0.74));
}

.profile-banner::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -48px;
  bottom: -72px;
  border-radius: 50%;
  background: rgba(202, 224, 221, 0.34);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-head img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-illustration {
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 140px;
  height: auto;
}

.list-card {
  display: grid;
  gap: 8px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list-row:first-child {
  padding-top: 0;
}

.list-leading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.list-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(236, 223, 215, 0.55);
}

.value-tag {
  color: var(--muted);
  font-size: 14px;
}

.editor-card {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(19, 19, 21, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.floating-save {
  position: sticky;
  bottom: 8px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(19, 19, 21, 0.12);
}

.page-fade {
  animation: enter 240ms ease;
}

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

@media (max-width: 980px) {
  html,
  body {
    min-height: 100dvh;
  }

  body {
    padding: 0;
    background: #ffffff;
  }

  .shell {
    display: block;
    min-height: 100dvh;
  }

  .sidebar {
    display: none;
  }

  .stage {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .phone {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .screen {
    min-height: 100dvh;
  }

  .status-bar {
    display: none;
  }

  .page {
    min-height: 100dvh;
    padding-top: calc(env(safe-area-inset-top, 0px) + 18px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  }

  .page.auth-page {
    padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  }

  .auth-decoration-art {
    top: calc(env(safe-area-inset-top, 0px) + 18px);
    width: 142px;
  }

  .auth-panel {
    margin-top: 92px;
  }

  .home-page {
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  }

  .home-topbar-right {
    gap: 10px;
  }

  .home-heading {
    padding: 18px 0 16px;
  }

  .home-title {
    font-size: 25px;
  }

  .home-subtitle {
    margin-top: 8px;
    font-size: 14px;
  }

  .home-subtitle-en {
    margin-top: 4px;
  }

  .home-decoration {
    top: -6px;
    right: 0;
    width: 116px;
  }

  .home-divider {
    margin-bottom: 14px;
  }

  .home-board {
    padding: 10px;
    border-radius: 30px;
  }

  .home-card-grid {
    gap: 10px;
  }

  .home-card {
    min-height: 146px;
    padding: 14px 12px 12px;
    border-radius: 24px;
  }

  .home-card[data-tone="disabled"] {
    min-height: 88px;
  }

  .home-card h3 {
    font-size: 15px;
  }

  .home-card p {
    font-size: 10px;
  }

  .home-card-arrow {
    right: 10px;
    bottom: 10px;
    width: 28px;
    height: 28px;
  }

  .home-card-wide {
    margin-top: 10px;
  }

  .intervention-library-page {
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  }

  .library-tabs {
    gap: 5px;
    margin: 14px 0 16px;
  }

  .library-tab {
    min-width: 44px;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
    border-radius: 10px;
  }

  .library-tab[data-intervention-tab="favorite"] {
    min-width: 52px;
    padding-left: 18px;
  }

  .library-tab-star {
    left: 4px;
    top: 3px;
    font-size: 13px;
  }

  .library-list {
    gap: 10px;
  }

  .therapy-card {
    min-height: 104px;
    padding: 14px 16px 12px;
    border-radius: 20px;
  }

  .therapy-card-copy h3 {
    font-size: 15px;
  }

  .therapy-card-copy p {
    font-size: 12px;
  }

  .therapy-card-time {
    margin-top: 12px;
    font-size: 11px;
  }

  .therapy-card-copy {
    max-width: calc(100% - 102px);
  }

  .therapy-card-art {
    right: 44px;
    bottom: 8px;
    width: 82px;
    height: 70px;
  }

  .therapy-card[data-mode="article"] .therapy-card-art {
    right: 48px;
    bottom: 6px;
    width: 80px;
    height: 78px;
  }

  .therapy-card[data-mode="video"] .therapy-card-art {
    right: 42px;
    bottom: 12px;
    width: 84px;
    height: 64px;
  }

  .therapy-card[data-mode="audio"] .therapy-card-art {
    right: 40px;
    bottom: 6px;
    width: 92px;
    height: 76px;
  }

  .therapy-card[data-mode="image"] .therapy-card-art {
    right: 38px;
    bottom: 6px;
    width: 92px;
    height: 74px;
  }

  .therapy-card-arrow {
    width: 28px;
    height: 28px;
  }

  .therapy-card-star {
    width: 40px;
    height: 40px;
    border-bottom-left-radius: 15px;
  }

  .therapy-card-star span {
    font-size: 15px;
  }

  .history-calendar-page {
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  }

  .history-calendar-surface {
    margin-top: 24px;
    padding: 0 12px;
  }

  .history-month-title {
    font-size: 18px;
  }

  .history-week-grid,
  .history-month-grid {
    gap: 10px 8px;
  }

  .history-month-cell {
    border-radius: 10px;
  }

  .profile-page {
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  }

  .profile-header-decoration {
    top: 70px;
    right: 10px;
    width: 120px;
  }

  .profile-avatar-wrap {
    width: 104px;
    margin: 18px auto 0;
  }

  .profile-page-avatar {
    width: 104px;
    height: 104px;
    object-position: center center;
    border-width: 3px;
    box-shadow: 0 8px 18px rgba(19, 19, 21, 0.06);
  }

  .profile-name-pill {
    width: 166px;
    margin-top: 10px;
    padding: 8px 12px;
  }

  .profile-name-pill strong {
    font-size: 18px;
  }

  .profile-card {
    margin-top: 14px;
  }

  .profile-link-row {
    width: calc(100% - 28px);
    margin: 0 14px;
    padding: 14px 12px 14px 14px;
  }

  .profile-link-copy {
    padding-right: 0;
  }

  .profile-link-watermark {
    right: 46px;
    width: 38px;
    height: 38px;
  }

  .profile-link-row .therapy-card-arrow {
    width: 26px;
    height: 26px;
  }

  .profile-link-row--questionnaire .profile-link-watermark {
    width: 40px;
    height: 40px;
  }

  .profile-link-row--favorite::after {
    right: 46px;
    width: 30px;
    height: 34px;
  }

  .profile-link-row--favorite::before {
    right: 54px;
    font-size: 16px;
  }

  .profile-metrics-card {
    width: calc(100% - 28px);
    margin: 10px 14px 0;
    padding: 0 12px;
  }

  .profile-metrics-header {
    padding: 12px 0;
  }

  .profile-metric-row {
    padding: 10px 0;
  }

  .profile-logout-btn {
    margin-top: 16px;
  }

  .questionnaire-form-page {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  }

  .questionnaire-form-body {
    padding-bottom: 96px;
  }

  .questionnaire-form-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 12px 0 calc(env(safe-area-inset-bottom, 0px) + 8px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94) 28%, #ffffff 100%);
  }

  .chat-refined-page {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  }

  .chat-refined-canvas {
    min-height: 0;
    padding-top: 10px;
  }

  .chat-input.refined {
    position: static;
    inset: auto;
    margin: 12px 16px 0;
  }

  .chat-thread {
    padding-bottom: 18px;
  }

  .profile-edit-ghost {
    padding-top: calc(env(safe-area-inset-top, 0px) + 18px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  }

  .profile-edit-layer {
    min-height: 100dvh;
    padding: calc(env(safe-area-inset-top, 0px) + 26px) 14px calc(env(safe-area-inset-bottom, 0px) + 18px);
  }

  .profile-edit-modal {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 120px);
    overflow: auto;
  }

  .profile-edit-modal::-webkit-scrollbar {
    width: 0;
  }

  .profile-save-btn {
    margin-top: 12px;
  }
}
