:root {
  --brand: #d70050;
  --brand-dark: #9d003c;
  --ink: #15161a;
  --muted: #7f8289;
  --line: #e7e1dc;
  --paper: #fffdf9;
  --wash: #edf8fb;
  --mint: #dff3e6;
  --butter: #fff0c7;
  --blue: #dbe9ff;
  --green: #0e6e5b;
  --shadow: 0 14px 34px rgba(21, 22, 26, 0.12);
  --nav-height: 78px;
  --app-width: 390px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    linear-gradient(90deg, rgba(215, 0, 80, 0.05) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, #eaf8ff 0%, #fff8f1 46%, #f7fff2 100%);
  color: var(--ink);
  font-family: "Songti SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

#app {
  min-height: 100svh;
}

.app-frame {
  position: relative;
  width: min(100%, var(--app-width));
  max-width: var(--app-width);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 251, 252, 0.9)),
    var(--paper);
  box-shadow: 0 0 0 1px rgba(21, 22, 26, 0.06), 0 22px 70px rgba(21, 22, 26, 0.18);
}

.screen {
  min-height: 100svh;
  padding: 12px 16px calc(var(--nav-height) + 22px);
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 800;
}

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

.dot-signal {
  width: 18px;
  height: 12px;
  background: linear-gradient(90deg, #111 25%, transparent 25% 38%, #111 38% 58%, transparent 58% 70%, #111 70%);
  border-radius: 2px;
}

.pill-battery {
  min-width: 28px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #111;
  color: #fff;
  font-size: 11px;
  line-height: 15px;
  text-align: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  margin: 0 -16px 10px;
  padding: 0 16px;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-seal {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(215, 0, 80, 0.18);
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.page-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.12;
}

.page-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.icon-button,
.nav-button,
.tiny-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(21, 22, 26, 0.08);
}

.icon-button svg,
.tiny-icon-button svg,
.nav-button svg,
.primary-button svg,
.ghost-button svg,
.chip svg,
.card-action svg,
.menu-row svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 4px 0 16px;
  padding: 22px 18px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
    repeating-linear-gradient(135deg, rgba(215, 0, 80, 0.1) 0 1px, transparent 1px 12px),
    linear-gradient(135deg, #f9f1e7, #dff3e6 58%, #dbe9ff);
}

.hero::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 82px;
  height: 52px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  background:
    linear-gradient(90deg, transparent 49%, rgba(21, 22, 26, 0.08) 49% 51%, transparent 51%),
    linear-gradient(180deg, transparent 49%, rgba(21, 22, 26, 0.08) 49% 51%, transparent 51%);
  content: "";
  opacity: 0.65;
  transform: rotate(-8deg);
}

.eyebrow {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.hero h2 {
  position: relative;
  max-width: 310px;
  margin: 0;
  font-size: 29px;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero p {
  position: relative;
  max-width: 290px;
  margin: 12px 0 0;
  color: #555861;
  font-size: 14px;
  line-height: 1.65;
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.primary-button,
.ghost-button,
.danger-button,
.card-action,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.primary-button {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 9px 22px rgba(215, 0, 80, 0.24);
}

.ghost-button {
  border: 1px solid rgba(21, 22, 26, 0.1);
  background: #fff;
  color: var(--ink);
}

.danger-button {
  background: #111;
  color: #fff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.section-head > div {
  min-width: 0;
}

.section-head h3 {
  margin: 0;
  font-size: 18px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.masonry-column {
  display: grid;
  gap: 12px;
}

.wish-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(21, 22, 26, 0.08);
}

.wish-art {
  display: block;
  width: 100%;
  min-height: var(--art-height, 180px);
  height: var(--art-height, 180px);
  object-fit: cover;
  background-color: #dbe9ff;
  background-position: center;
  background-size: cover;
}

.wish-body {
  padding: 10px;
}

.wish-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.wish-desc {
  margin: 6px 0 10px;
  color: #61646d;
  font-size: 12px;
  line-height: 1.5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag,
.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(21, 22, 26, 0.06);
  color: #525660;
  font-size: 11px;
}

.status-tag.hot {
  background: rgba(215, 0, 80, 0.1);
  color: var(--brand);
}

.card-action {
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(215, 0, 80, 0.18);
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.card-action.done {
  border-color: rgba(14, 110, 91, 0.2);
  color: var(--green);
}

.home-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin: 2px 0 12px;
  padding: 4px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.home-mode-switch button {
  min-height: 32px;
  border-radius: 999px;
  background: transparent;
  color: #777a82;
  cursor: pointer;
}

.home-mode-switch button.active {
  background: #111;
  color: #fff;
}

.editorial-home {
  margin: 0 -16px;
  padding: 12px 0 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(215, 0, 80, 0.08), transparent 30%),
    radial-gradient(circle at 86% 28%, rgba(14, 110, 91, 0.09), transparent 28%),
    linear-gradient(180deg, #fbf6ee 0%, #f9fbfb 100%);
}

.editorial-kicker {
  margin-top: 4px;
  color: #8d7a58;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.editorial-home h2 {
  margin: 12px auto 0;
  max-width: 350px;
  color: #111;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 47px;
  font-weight: 500;
  line-height: 0.92;
  text-align: center;
}

.editorial-sub {
  margin: 14px auto 0;
  max-width: 300px;
  color: #7a6d61;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

.editorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 18px 16px 0;
}

.editorial-actions .danger-button,
.editorial-actions .primary-button,
.editorial-actions .ghost-button {
  min-height: 36px;
  font-size: 12px;
}

.editorial-rail {
  display: grid;
  grid-auto-columns: 236px;
  grid-auto-flow: column;
  gap: 14px;
  margin-top: 28px;
  overflow-x: auto;
  padding: 0 16px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.editorial-card {
  position: relative;
  min-height: 372px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  background: #111;
  color: #fff;
  box-shadow: 0 22px 46px rgba(17, 17, 17, 0.18);
  cursor: pointer;
  scroll-snap-align: center;
  text-align: left;
}

.editorial-card:nth-child(2) {
  transform: translateY(-10px);
}

.editorial-card:nth-child(4) {
  transform: translateY(-16px) rotate(2deg);
}

.editorial-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(0.98);
}

.editorial-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.1), transparent 30%),
    linear-gradient(0deg, rgba(17, 17, 17, 0.82), transparent 58%);
}

.editorial-card-top,
.editorial-card-copy {
  position: absolute;
  right: 18px;
  left: 18px;
  z-index: 1;
}

.editorial-card-top {
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-card-top .tiny-icon-button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
}

.editorial-card-copy {
  bottom: 18px;
}

.editorial-card-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.06;
}

.editorial-card-copy p {
  max-width: 180px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.48;
}

.editorial-card-copy span {
  display: inline-flex;
  margin-top: 18px;
  color: #e2bd77;
  font-size: 11px;
  font-weight: 800;
}

.roadmap-card {
  background:
    radial-gradient(circle at 75% 18%, rgba(226, 189, 119, 0.18), transparent 26%),
    linear-gradient(145deg, #2a2924, #0f0f0e);
  border-color: rgba(226, 189, 119, 0.35);
}

.roadmap-inner {
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px;
}

.roadmap-label {
  color: #e2bd77;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
}

.roadmap-inner h3 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.08;
}

.roadmap-inner ol {
  display: grid;
  gap: 22px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.roadmap-inner li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.4;
}

.roadmap-inner strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(226, 189, 119, 0.5);
  border-radius: 50%;
  color: #e2bd77;
  font-size: 10px;
}

.roadmap-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  align-self: flex-start;
  min-height: 34px;
  border-radius: 999px;
  background: transparent;
  color: #e2bd77;
  cursor: pointer;
  font-size: 12px;
}

.editorial-quote {
  margin: 4px 30px 0;
  color: #947a4b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

.vision-home {
  margin: 0 -16px;
  padding: 6px 0 24px;
  background: #fffdf9;
}

.vision-topline {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 10px;
  align-items: center;
  padding: 0 16px;
}

.vision-topline.only-search {
  grid-template-columns: 1fr;
}

.vision-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 44px;
  padding: 0 6px 0 14px;
  border: 1px solid rgba(21, 22, 26, 0.18);
  border-radius: 18px;
  background: #fff;
  color: #111;
  font-size: 16px;
}

.vision-search input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font: inherit;
}

.vision-search input::placeholder {
  color: #b7bac2;
  opacity: 1;
  font-weight: 400;
  /* 占位词每隔几秒会切一次，浅一点的过渡更柔和 */
  transition: color .25s ease;
}

.vision-search input:focus::placeholder {
  color: #c8cbd2;
}

.vision-search span,
.vision-search input {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 右侧搜索按钮：图标右移后变成主操作按钮，黑色实心圆，强调可点击 */
.search-submit {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #15161a;
  color: #fff;
  cursor: pointer;
  border: 0;
  padding: 0;
  transition: transform .15s ease, background-color .15s ease;
}

.search-submit:hover {
  background: #2a2c33;
  transform: scale(1.04);
}

.search-submit:active {
  transform: scale(.96);
}

.search-submit svg {
  width: 16px;
  height: 16px;
}

/* 清空按钮已下线，保留选择器避免误改其它样式 */
.search-clear {
  display: none;
}

.search-clear svg {
  width: 15px;
  height: 15px;
}

.vision-cats {
  display: flex;
  gap: 5px;
  margin: 14px 16px 0;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(21, 22, 26, 0.05);
  scrollbar-width: none;
  backdrop-filter: blur(18px);
}

.vision-cat {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(21, 22, 26, 0.56);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.vision-cat.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 22px rgba(21, 22, 26, 0.16);
  transform: translateY(-1px);
}

.vision-cat:not(.active):hover {
  background: rgba(21, 22, 26, 0.05);
  color: rgba(21, 22, 26, 0.88);
}

.vision-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 0;
}

.vision-summary span {
  color: #9b7b44;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.vision-summary h2 {
  margin: 6px 0 0;
  font-size: 25px;
  line-height: 1.12;
}

.vision-summary-title {
  max-width: 240px;
  color: var(--ink);
  letter-spacing: 0;
}

.vision-summary .ghost-button {
  flex: 0 0 auto;
  min-height: 34px;
  align-self: center;
  padding: 0 12px;
  font-size: 12px;
}

@media (max-width: 380px) {
  .vision-summary {
    align-items: flex-start;
  }

  .vision-summary-title {
    max-width: 220px;
    font-size: 23px;
  }

  .vision-summary .ghost-button {
    margin-top: 4px;
  }
}

.vision-carousel {
  grid-auto-columns: 272px;
  margin-top: 18px;
}

.vision-carousel .editorial-card {
  min-height: 430px;
}

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

.vision-mini-card {
  position: relative;
  min-height: 184px;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.vision-mini-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.vision-mini-card span,
.vision-mini-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 12px;
}

.vision-mini-card span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vision-mini-card strong {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 34px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.82));
  font-size: 15px;
  line-height: 1.25;
}

.vision-masonry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 16px 0;
}

.home-empty-search {
  margin: 18px 16px 0;
  padding: 22px 16px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 0, 80, 0.05), rgba(217, 181, 109, 0.12)),
    #fff;
  text-align: left;
}

.home-empty-search span {
  color: #9b7b44;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.home-empty-search h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}

.home-empty-search p {
  margin: 0 0 14px;
  color: #666a72;
  font-size: 13px;
  line-height: 1.6;
}

.vision-column {
  display: grid;
  gap: 12px;
}

.vision-masonry .editorial-card {
  min-height: var(--card-min-height, 280px);
  border-radius: 8px;
  transform: none;
  scroll-snap-align: unset;
}

.flip-card {
  perspective: 1200px;
}

.flip-card .flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  backface-visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.16, 1), opacity 0.35s ease;
}

.flip-card .flip-front {
  transform: rotateY(0deg);
}

.flip-card .flip-back {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent),
    #111;
  color: #fff;
  overscroll-behavior: contain;
  transform: rotateY(180deg);
}

.flip-card .flip-back::-webkit-scrollbar {
  width: 4px;
}

.flip-card .flip-back::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.flip-card.flipped .flip-front {
  opacity: 0;
  transform: rotateY(-180deg);
}

.flip-card.flipped .flip-back {
  opacity: 1;
  transform: rotateY(0deg);
}

.roadmap-back-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

/* 自定义愿望删除按钮：深色卡背上用浅色图标，避免看不见 */
.roadmap-back-head .tiny-icon-button {
  color: rgba(255, 255, 255, 0.68);
}

.roadmap-back-head .tiny-icon-button:hover {
  color: #ffffff;
}

.flip-back h3 {
  margin: 18px 0 10px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.1;
}

.roadmap-analysis {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.55;
}

.roadmap-analysis.muted {
  color: rgba(255, 255, 255, 0.58);
}

.roadmap-count {
  margin-top: 10px;
  color: #d9b56d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.roadmap-mini-list {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.roadmap-mini-list div {
  display: grid;
  grid-template-columns: 28px 42px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.roadmap-mini-list b {
  color: #d9b56d;
  font-size: 11px;
}

.roadmap-mini-list span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.roadmap-mini-list strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.roadmap-mini-list.compact div {
  grid-template-columns: 28px 48px 1fr;
}

.roadmap-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.roadmap-source-list span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(217, 181, 109, 0.34);
  border-radius: 999px;
  color: #f3d795;
  font-size: 10px;
}

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

.roadmap-actions .primary-button,
.roadmap-actions .ghost-button {
  min-height: 34px;
  min-width: 0;
  padding: 0 9px;
  font-size: 11px;
  white-space: nowrap;
}

.roadmap-actions .primary-button {
  grid-column: 1 / -1;
}

.roadmap-actions .ghost-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.wish-comments {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.wish-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.wish-comments-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wish-comments-head svg {
  width: 13px;
  height: 13px;
  color: #d9b56d;
}

.wish-comments-head strong {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(217, 181, 109, 0.18);
  color: #f4d894;
  font-size: 10px;
  letter-spacing: 0;
}

.wish-comment-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.wish-comment {
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.wish-comment b {
  display: block;
  color: #f2d38b;
  font-size: 10px;
}

.wish-comment p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.45;
}

.wish-comment-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 7px;
  margin-top: 10px;
}

.wish-comment-compose input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
}

.wish-comment-compose input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.wish-comment-compose input:focus {
  border-color: rgba(217, 181, 109, 0.64);
  box-shadow: 0 0 0 3px rgba(217, 181, 109, 0.12);
}

.wish-comment-compose .tiny-icon-button {
  width: 32px;
  height: 32px;
  background: #d9b56d;
  color: #111;
}

.wish-comment-compose .tiny-icon-button svg {
  width: 14px;
  height: 14px;
}

.mini-loading {
  display: flex;
  gap: 5px;
  margin-top: 14px;
}

.mini-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9b56d;
  animation: pulseDot 1s ease-in-out infinite;
}

.mini-loading span:nth-child(2) {
  animation-delay: 0.15s;
}

.mini-loading span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.vision-masonry .editorial-card {
  /* 卡片高度由内联变量 --card-min-height 控制：宏伟度越大、卡片越长 */
  min-height: var(--card-min-height, 280px);
}

.vision-masonry .editorial-card.grand {
  /* 宏伟愿望：最长 = 标准 × 1.3（280 × 1.3 = 364） */
  --card-min-height: 360px;
}

.vision-masonry .editorial-card.medium {
  /* 标准：参考小红书一屏内可见的卡片高度 */
  --card-min-height: 280px;
}

.vision-masonry .editorial-card.small {
  /* 小型日常/微调：标准卡片的 80% 左右 */
  --card-min-height: 220px;
}

.vision-masonry .editorial-card-copy {
  right: 14px;
  bottom: 14px;
  left: 14px;
}

.vision-masonry .editorial-card-copy h3 {
  max-width: 94%;
  font-size: 24px;
  line-height: 1.08;
}

.vision-masonry .editorial-card.small .editorial-card-copy h3 {
  font-size: 19px;
}

.vision-masonry .editorial-card-copy p {
  max-width: none;
  margin-top: 7px;
  padding-top: 0;
  border-top: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.vision-masonry .editorial-card.small .editorial-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 11px;
}

.wish-social-proof {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 5px;
}

.wish-social-proof span {
  display: inline-flex;
  min-width: 38px;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.34);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.wish-social-proof span:first-child {
  border-color: rgba(217, 181, 109, 0.5);
  background: rgba(217, 181, 109, 0.24);
}

.wish-social-proof svg {
  width: 14px;
  height: 14px;
  color: #f2d38b;
}

.wish-social-proof b {
  font-size: 11px;
}

.vision-masonry .editorial-card.small .wish-social-proof {
  top: 10px;
  right: 10px;
  gap: 4px;
}

.vision-masonry .editorial-card.small .wish-social-proof span {
  min-width: 34px;
  height: 25px;
  padding: 0 6px;
  font-size: 10px;
}

.vision-masonry .editorial-card.small .wish-social-proof svg {
  width: 12px;
  height: 12px;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.keyword-row span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  margin: 0;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #f2d38b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.cork-home {
  margin: 0 -16px;
  padding: 8px 14px 26px;
  background:
    linear-gradient(180deg, rgba(239, 247, 246, 0.85), rgba(255, 250, 242, 0.86)),
    #fbf8f1;
}

.cork-intro {
  margin: 8px auto 14px;
  text-align: center;
}

.cork-intro span,
.cork-intro h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.cork-intro span {
  display: block;
  color: #9a8c7c;
  font-size: 13px;
  font-style: italic;
}

.cork-intro h2 {
  margin: 2px 0 0;
  font-size: 29px;
  font-weight: 500;
}

.cork-intro p {
  margin: 8px auto 0;
  max-width: 260px;
  color: #68645f;
  font-size: 12px;
  line-height: 1.55;
}

.cork-board {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border: 12px solid #7b5431;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 70% 40%, rgba(58, 33, 13, 0.16) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, #a8733f, #8d5c2e 55%, #73461f);
  box-shadow: inset 0 0 24px rgba(46, 28, 12, 0.32), 0 24px 44px rgba(21, 22, 26, 0.18);
}

.cork-board-title {
  position: absolute;
  right: 0;
  bottom: 284px;
  left: 0;
  z-index: 4;
  color: rgba(255, 255, 255, 0.92);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.cork-pin {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 2;
  width: var(--w);
  height: var(--h);
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: 0 8px 16px rgba(24, 16, 9, 0.34);
  cursor: pointer;
  transform: rotate(var(--r));
}

.cork-pin.selected {
  outline: 2px solid var(--brand);
}

.cork-pin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.pushpin {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 3;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(80, 52, 22, 0.25);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7cf, #c6a25b 58%, #8a672b);
  box-shadow: 0 3px 6px rgba(21, 22, 26, 0.28);
  transform: translateX(-50%);
}

.cork-caption {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  display: block;
  overflow: hidden;
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(17, 17, 17, 0.62);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper-note {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 10px;
  background: #fbf7eb;
  color: #594536;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 6px 14px rgba(24, 16, 9, 0.24);
}

.paper-note::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #c6a25b;
  content: "";
  transform: translateX(-50%);
}

.note-one {
  top: 29%;
  left: 7%;
  width: 82px;
  height: 72px;
  transform: rotate(-2deg);
}

.note-two {
  top: 59%;
  right: 7%;
  width: 92px;
  height: 86px;
  transform: rotate(3deg);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.bottom-nav-inner {
  display: grid;
  width: min(var(--app-width), 100%);
  height: var(--nav-height);
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(21, 22, 26, 0.08);
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(20px);
  pointer-events: auto;
}

.nav-button {
  flex-direction: column;
  gap: 4px;
  color: #90939b;
  font-size: 11px;
}

.nav-button.active {
  color: var(--brand);
}

.nav-button span {
  line-height: 1;
}

.segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.segment button {
  min-height: 32px;
  border-radius: 999px;
  background: transparent;
  color: #727680;
  cursor: pointer;
}

.segment button.active {
  background: var(--ink);
  color: #fff;
}

.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 12px -16px 12px;
  padding: 0 16px 4px;
  scrollbar-width: none;
}

.date-pill {
  display: grid;
  min-width: 54px;
  min-height: 64px;
  place-items: center;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  color: #656973;
  font-size: 12px;
  cursor: pointer;
}

.date-pill strong {
  color: var(--ink);
  font-size: 20px;
}

.date-pill.active {
  border-color: rgba(215, 0, 80, 0.3);
  background: var(--brand);
  color: #fff;
}

.date-pill.active strong {
  color: #fff;
}

.date-pill.is-today:not(.active) {
  border-color: rgba(215, 0, 80, 0.28);
  color: var(--brand);
}

.today-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 14px;
}

.today-quote-card {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 4px;
  padding: 2px 0;
  color: var(--ink);
  text-align: left;
}

.today-quote-card > .today-quote-date {
  display: block;
  color: #17181c;
  font-family: Georgia, "Songti SC", serif;
  font-size: 19px;
  font-style: normal;
  font-weight: 900;
}

.today-quote-card > strong {
  display: -webkit-box;
  overflow: hidden;
  color: #8b8e95;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.today-topbar .segment {
  flex: 0 0 auto;
}

.timeline {
  position: relative;
  padding-bottom: 18px;
}

.timeline-row {
  display: grid;
  min-height: 50px;
  grid-template-columns: 42px 18px 1fr;
}

.timeline-time {
  padding-top: 8px;
  color: #9a9da5;
  font-size: 11px;
  text-align: right;
}

.timeline-stem {
  position: relative;
}

.timeline-stem::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 1px;
  background: #ded8d2;
  content: "";
}

.timeline-dot {
  position: absolute;
  top: 14px;
  left: 4px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c7c2bd;
  box-shadow: 0 0 0 1px rgba(21, 22, 26, 0.1);
}

.timeline-row.has-event .timeline-dot {
  background: var(--brand);
}

.timeline-row.is-current-target .timeline-time {
  color: var(--brand);
  font-weight: 900;
}

.timeline-row.is-current-target .timeline-dot {
  width: 13px;
  height: 13px;
  left: 2px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(215, 0, 80, 0.14), 0 0 0 1px var(--brand);
}

.timeline-events {
  padding: 3px 0 6px 7px;
}

.event-card {
  position: relative;
  width: 100%;
  margin-bottom: 5px;
  padding: 8px 9px 7px;
  border: 0;
  border-left: 3px solid var(--brand);
  border-radius: 7px;
  background: rgba(215, 0, 80, 0.055);
  box-shadow: none;
  text-align: left;
  transition: filter 140ms ease, transform 140ms ease;
}

.event-card.course {
  border-left-color: var(--brand);
  background: rgba(215, 0, 80, 0.055);
}

.event-card.habit {
  border-left-color: var(--green);
  background: rgba(13, 128, 92, 0.065);
}

.event-card.focus {
  border-left-color: #2d62cc;
  background: rgba(45, 98, 204, 0.06);
}

.event-card.past {
  border-left-color: #c8cbd1;
  background: rgba(142, 146, 154, 0.07);
  box-shadow: none;
  opacity: 0.68;
}

.event-card.upcoming {
  filter: saturate(0.88);
}

.event-card.completed {
  border-left-color: #0d805c;
  background: rgba(13, 128, 92, 0.085);
  box-shadow: none;
}

.event-card:active {
  filter: brightness(0.96);
  transform: scale(0.995);
}

.event-card .event-actions {
  max-width: none;
  overflow: visible;
  opacity: 1;
  transform: none;
}

.event-card.swiped .event-actions {
  max-width: none;
  opacity: 1;
  transform: translateX(0);
}

.event-card.dragging-schedule {
  z-index: 8;
  border-color: var(--brand);
  box-shadow: 0 18px 44px rgba(215, 0, 80, 0.22);
  opacity: 0.94;
  transition: none;
}

.event-card-top {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 7px;
  align-items: center;
}

.event-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  margin: 0;
  border: 1.25px solid rgba(21, 22, 26, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #fff;
  cursor: pointer;
}

.event-check.checked {
  border-color: #0d805c;
  background: #0d805c;
}

.event-check svg {
  width: 12px;
  height: 12px;
}

.event-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13.5px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.event-main strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-main > svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #8b8e96;
}

.event-card-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-top: 3px;
  padding-left: 29px;
}

.event-card-foot p {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #62656f;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card.completed .event-card-foot p {
  color: #3c6f5f;
}

.event-source {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.event-card.completed .event-source {
  color: #0d805c;
}

.event-actions {
  display: inline-flex;
  gap: 2px;
  flex: 0 0 auto;
}

.event-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #747780;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 750;
}

.event-actions button:active {
  background: rgba(21, 22, 26, 0.06);
}

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

.week-card {
  min-height: 116px;
  padding: 8px 6px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
}

.week-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.mini-event {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  padding: 4px;
  border-radius: 6px;
  background: rgba(215, 0, 80, 0.08);
  color: var(--brand);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-top: 12px;
}

.month-title {
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.month-cell {
  min-height: 58px;
  padding: 5px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  color: #777b84;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.month-cell.today {
  border-color: rgba(215, 0, 80, 0.3);
  background: rgba(215, 0, 80, 0.06);
  color: var(--brand);
  font-weight: 800;
}

.month-cell.selected {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.month-cell.selected .month-dot {
  background: #fff;
}

.month-cell.muted {
  opacity: 0.42;
}

.month-dot-row {
  display: flex;
  gap: 3px;
  margin-top: 8px;
}

.month-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.week-agenda {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.week-day-panel {
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.week-day-panel.active {
  border-color: rgba(215, 0, 80, 0.26);
  box-shadow: 0 10px 24px rgba(215, 0, 80, 0.08);
}

.week-day-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(21, 22, 26, 0.06);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.week-day-head span {
  color: #747882;
  font-size: 12px;
}

.week-day-head strong {
  font-size: 16px;
}

.week-day-head em {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(215, 0, 80, 0.08);
  color: var(--brand);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.week-day-events {
  display: grid;
  gap: 6px;
  padding: 9px;
}

.empty-agenda {
  margin: 4px 0;
  color: #9a9da5;
  font-size: 12px;
}

.week-event,
.month-agenda-row {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 36px;
  padding: 0 9px;
  border-radius: 8px;
  background: #f7f7f5;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.week-event span,
.month-agenda-row span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.week-event strong,
.month-agenda-row strong {
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.month-panel {
  margin-top: 10px;
}

.month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 6px;
  color: #8d9098;
  font-size: 11px;
  text-align: center;
}

.month-panel .month-grid {
  margin-top: 0;
}

.month-panel .month-cell {
  min-height: 46px;
  background: rgba(255, 255, 255, 0.88);
}

.month-agenda {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
}

.month-agenda h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.month-agenda {
  display: grid;
  gap: 7px;
}

.library-list,
.menu-list,
.plan-list {
  display: grid;
  gap: 10px;
}

.library-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 999px;
  background: #fff;
}

.library-tabs button {
  min-height: 32px;
  border-radius: 999px;
  background: transparent;
  color: #747882;
  cursor: pointer;
  font-size: 12px;
}

.library-tabs button.active {
  background: var(--brand);
  color: #fff;
}

.model-grid {
  display: grid;
  gap: 10px;
}

.model-card {
  padding: 14px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 22, 26, 0.06);
}

.model-card span {
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.model-card h3 {
  margin: 8px 0 0;
  font-size: 17px;
}

.model-card p {
  margin: 8px 0 0;
  color: #62656f;
  font-size: 13px;
  line-height: 1.55;
}

.model-use {
  margin-top: 10px;
  padding: 9px;
  border-radius: 8px;
  background: #f7f7f5;
  color: #555861;
  font-size: 12px;
  line-height: 1.45;
}

.book-card,
.profile-card,
.menu-row,
.plan-card,
.source-card,
.coach-card,
.form-card {
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 22, 26, 0.06);
}

.book-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 12px;
}

.book-showcase {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  padding-bottom: 20px;
}

.book-showcase::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 238px,
      rgba(21, 22, 26, 0.08) 239px,
      rgba(21, 22, 26, 0.08) 240px,
      rgba(217, 181, 109, 0.16) 241px,
      transparent 251px
    );
}

.book-showcase .book-card {
  position: relative;
  z-index: 1;
  display: block;
  padding: 10px;
  border: 0;
  background:
    linear-gradient(180deg, #fff, #fbfaf7);
  box-shadow:
    0 18px 32px rgba(21, 22, 26, 0.08),
    inset 0 0 0 1px rgba(21, 22, 26, 0.06);
}

.book-cover {
  position: relative;
  display: grid;
  min-height: 104px;
  place-items: center;
  border-radius: 8px;
  background: var(--cover, #dbe9ff);
  color: #fff;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
}

.book-showcase .book-cover {
  width: 100%;
  min-height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 7px;
  box-shadow:
    8px 10px 18px rgba(21, 22, 26, 0.16),
    inset -8px 0 12px rgba(21, 22, 26, 0.08);
}

.book-cover.image-cover {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(215, 0, 80, 0.1), rgba(217, 181, 109, 0.16)),
    #f4f1ec;
}

.book-cover.image-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cover-fallback-title {
  position: relative;
  z-index: 0;
  padding: 10px;
  color: #2b2b2b;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.book-cover.small {
  min-height: 108px;
}

.book-cover.large {
  width: 108px;
  min-height: 154px;
  aspect-ratio: 4 / 5.7;
  flex: 0 0 108px;
  box-shadow: 0 16px 30px rgba(21, 22, 26, 0.18);
}

.book-detail-hero .book-cover.image-cover img {
  object-fit: contain;
  background: #fff;
}

.book-cover.mini {
  width: 44px;
  min-height: 62px;
  border-radius: 5px;
  font-size: 10px;
}

.book-meta {
  display: block;
  margin-bottom: 5px;
  color: #9b7b44;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-showcase .book-meta {
  margin-top: 11px;
}

.book-showcase .book-card h3 {
  display: -webkit-box;
  min-height: 38px;
  margin-top: 4px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.book-showcase .book-card p {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.book-showcase .tag-row {
  display: none;
}

.book-showcase .card-action {
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 9px;
  font-size: 12px;
}

.book-showcase .text-link {
  display: none;
}

.book-detail-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 0, 80, 0.06), rgba(217, 181, 109, 0.1)),
    #fff;
  box-shadow: 0 12px 28px rgba(21, 22, 26, 0.08);
}

.book-detail-hero span {
  color: #9b7b44;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-detail-hero h3 {
  margin: 8px 0 4px;
  font-size: 22px;
}

.book-detail-hero p {
  margin: 4px 0;
  color: #666a72;
  font-size: 12px;
  line-height: 1.45;
}

.link-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.link-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.book-card h3,
.profile-card h3,
.menu-row h3,
.plan-card h3,
.source-card h3,
.coach-card h3,
.form-card h3 {
  margin: 0;
  font-size: 16px;
}

.book-card p,
.profile-card p,
.menu-row p,
.plan-card p,
.source-card p,
.coach-card p,
.form-card p {
  margin: 6px 0 0;
  color: #666a72;
  font-size: 12px;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-top: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.text-link svg {
  width: 15px;
  height: 15px;
}

.toc-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.toc-list span {
  padding: 9px 10px;
  border-radius: 8px;
  background: #f7f7f5;
  color: #555861;
  font-size: 12px;
}

.model-card.expanded {
  grid-column: 1 / -1;
}

.model-detail {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(21, 22, 26, 0.08);
}

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

.method-list div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: start;
}

.method-list b {
  color: var(--brand);
  font-size: 11px;
}

.method-list span {
  color: #3f4249;
  font-size: 12px;
  line-height: 1.5;
}

.model-source {
  padding: 10px;
  border-radius: 8px;
  background: #f7f7f5;
}

.model-source strong {
  font-size: 12px;
}

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

.mini-books button {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}

.mini-books span {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 14px;
  padding: 0 12px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 999px;
  background: #fff;
}

.search-box input {
  width: 100%;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
}

.profile-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(215, 0, 80, 0.08), rgba(223, 243, 230, 0.7)),
    #fff;
}

.me-hero {
  padding: 20px 16px 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.92), rgba(51, 39, 45, 0.92)),
    #111;
  color: #fff;
  box-shadow: 0 20px 42px rgba(21, 22, 26, 0.18);
}

.me-hero .avatar {
  background: var(--brand);
}

.me-hero > span {
  display: block;
  margin-top: 18px;
  color: #d9b56d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.me-hero h2 {
  margin: 7px 0 6px;
  font-size: 26px;
}

.me-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.55;
}

.me-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.me-stats div {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

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

.me-stats strong {
  font-size: 19px;
}

.me-stats span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

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

.me-tile {
  min-height: 156px;
  padding: 14px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 22, 26, 0.06);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.me-tile > span {
  color: #9b7b44;
  font-size: 11px;
  font-weight: 900;
}

.me-tile svg {
  display: block;
  width: 24px;
  height: 24px;
  margin: 20px 0 12px;
  color: var(--brand);
}

.me-tile strong {
  display: block;
  font-size: 16px;
}

.me-tile p {
  margin: 7px 0 0;
  color: #666a72;
  font-size: 12px;
  line-height: 1.45;
}

.me-workbench {
  display: grid;
  gap: 14px;
  margin: 0 -4px;
  padding-bottom: 12px;
}

.me-profile-strip {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(21, 22, 26, 0.06);
}

.me-profile-main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 17px 15px;
}

.me-profile-main .me-avatar {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: var(--brand);
  font-size: 20px;
  box-shadow: 0 8px 22px rgba(21, 22, 26, 0.13);
}

.me-profile-main .me-avatar.has-image {
  background: linear-gradient(145deg, #f2eee5, #fff);
}

.me-profile-main .me-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.me-profile-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.me-identity {
  display: flex;
  align-items: center;
  gap: 7px;
}

.me-identity strong {
  font-family: "Songti SC", Georgia, serif;
  font-size: 24px;
  line-height: 1.08;
}

.me-identity em {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.me-section-head span,
.support-panel span,
.chenzao-insight > span,
.support-training span {
  color: #8f6c25;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.me-profile-strip p {
  overflow: hidden;
  margin: 0;
  color: #96989d;
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: calc(100% - 34px);
  margin: 0 17px 17px;
  padding: 13px 0;
  border: 1px solid rgba(21, 22, 26, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.me-profile-metric {
  display: grid;
  gap: 5px;
  place-items: center;
  min-width: 0;
  border-right: 1px solid rgba(21, 22, 26, 0.08);
}

.me-profile-metric:last-child {
  border-right: 0;
}

.me-profile-metric strong {
  color: #17181b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.me-profile-metric small {
  color: #8e9198;
  font-size: 10px;
  font-weight: 700;
}

.me-panel {
  padding: 14px 12px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(21, 22, 26, 0.06);
}

.me-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.me-section-head h2,
.support-panel h2,
.chenzao-insight h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.16;
}

.vision-board-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 246, 0.95)),
    #fff;
}

.board-tools {
  display: inline-flex;
  gap: 7px;
  flex: 0 0 auto;
}

.board-tools .icon-button {
  width: 36px;
  height: 36px;
  background: #fff;
  color: var(--ink);
}

.share-studio {
  display: grid;
  gap: 12px;
}

.share-preview-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(21, 22, 26, 0.08);
}

.share-poster-preview {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(242, 246, 244, 0.96)),
    #f7f2e8;
  box-shadow: inset 0 0 0 1px rgba(21, 22, 26, 0.05);
}

.share-poster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 0;
  color: #77705f;
  font-size: 8px;
  font-weight: 900;
}

.share-poster-head b {
  color: var(--ink);
  font-size: 13px;
}

.share-poster-collage {
  position: absolute;
  inset: 36px 10px 36px;
}

.share-poster-collage img {
  position: absolute;
  width: 62px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 10px 18px rgba(41, 32, 23, 0.16);
}

.share-poster-collage img:nth-child(1) {
  left: 3px;
  top: 4px;
  transform: rotate(-5deg);
}

.share-poster-collage img:nth-child(2) {
  right: 2px;
  top: 12px;
  transform: rotate(6deg);
}

.share-poster-collage img:nth-child(3) {
  left: 28px;
  top: 50px;
  transform: rotate(2deg);
}

.share-poster-collage img:nth-child(4) {
  right: 18px;
  top: 72px;
  transform: rotate(-7deg);
}

.share-poster-collage img:nth-child(5) {
  left: 4px;
  top: 92px;
  transform: rotate(5deg);
}

.share-poster-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #1f2329;
  font-size: 12px;
  font-weight: 900;
}

.share-preview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.share-preview-copy span,
.share-caption-card span {
  color: #9b7b44;
  font-size: 10px;
  font-weight: 900;
}

.share-preview-copy h3 {
  margin: 8px 0 8px;
  font-size: 25px;
  line-height: 1.08;
}

.share-preview-copy p {
  margin: 0;
  color: #606772;
  font-size: 12px;
  line-height: 1.62;
}

.share-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.share-meta-row b,
.share-chip-row b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 999px;
  background: rgba(250, 251, 249, 0.96);
  color: #1f2329;
  font-size: 11px;
  font-weight: 850;
}

.share-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

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

.share-action-card {
  display: grid;
  gap: 9px;
  align-content: start;
  width: 100%;
  min-height: 128px;
  padding: 12px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 26px rgba(21, 22, 26, 0.05);
}

.share-action-card.primary-share {
  background: linear-gradient(180deg, #15161a, #22252a);
  color: #fff;
}

.share-action-card i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(215, 0, 80, 0.08);
  color: var(--brand);
}

.share-action-card.primary-share i {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.share-action-card i svg {
  width: 18px;
  height: 18px;
}

.share-action-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.share-action-card p {
  margin: 0;
  color: #666a72;
  font-size: 11px;
  line-height: 1.45;
}

.share-action-card.primary-share p {
  color: rgba(255, 255, 255, 0.72);
}

.share-caption-card {
  padding: 14px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(247, 251, 250, 0.98), rgba(255, 255, 255, 0.98));
}

.share-caption-card p {
  margin: 8px 0 0;
  color: #4f5661;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 430px) {
  .custom-wish-flow {
    grid-template-columns: 1fr;
  }

  .custom-wish-flow span {
    grid-template-columns: 22px 1fr;
    min-height: 46px;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .calendar-field-row {
    grid-template-columns: 1fr;
  }

  .share-preview-card {
    grid-template-columns: 112px 1fr;
    gap: 12px;
  }

  .share-poster-preview {
    min-height: 158px;
  }

  .share-preview-copy h3 {
    font-size: 21px;
  }

  .share-action-grid {
    grid-template-columns: 1fr;
  }

  .share-action-card {
    grid-template-columns: 34px 1fr;
    min-height: auto;
    align-items: center;
  }

  .share-action-card p {
    grid-column: 2;
  }
}

.vision-board-canvas {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #f6f3ee;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  touch-action: none;
}

.board-collage-card {
  position: absolute;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: grab;
  transform-origin: center;
  transition: filter 0.16s ease, box-shadow 0.16s ease;
  user-select: none;
  touch-action: none;
}

.board-collage-card.dragging,
.board-text-tape.dragging {
  z-index: 8;
  cursor: grabbing;
  box-shadow: 0 22px 44px rgba(21, 22, 26, 0.28);
}

.board-collage-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.board-item-toolbar {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 9;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(34, 113, 177, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(-50%);
  box-shadow: 0 8px 18px rgba(21, 22, 26, 0.12);
  white-space: nowrap;
}

.board-replace-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #2271b1;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.board-replace-image input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.board-delete-item {
  display: grid;
  width: 24px;
  height: 24px;
  min-height: 24px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(215, 0, 80, 0.1);
  color: var(--brand);
  cursor: pointer;
}

.board-delete-item svg {
  width: 13px;
  height: 13px;
}

.board-text-tape {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  width: var(--tape-width, auto);
  min-width: 0;
  max-width: 62%;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: #15161a;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  cursor: grab;
  transform-origin: center;
  touch-action: none;
}

.board-text-tape.auto-label {
  padding-inline: 10px;
}

.board-text-tape.dark {
  background: #0b0b0b;
  color: #fff;
}

.board-text-tape.light {
  background: rgba(255, 255, 255, 0.96);
  color: #111;
}

.board-text-tape.voice-serif textarea {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
}

.board-text-tape.voice-hand textarea,
.board-text-tape.voice-hand-bold textarea {
  font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", "Marker Felt", cursive;
  font-size: 18px;
  font-weight: 900;
  line-height: 0.96;
  text-transform: none;
}

.board-text-tape.voice-hand-bold textarea {
  font-size: 20px;
  font-weight: 900;
}

.board-text-tape.voice-sans textarea {
  font-family: "Gill Sans", "Trebuchet MS", Verdana, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.board-text-tape.voice-bold textarea {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.board-text-tape.voice-light textarea {
  font-family: "Gill Sans Light", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
}

.board-text-tape.voice-wide textarea {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.board-text-tape.voice-italic textarea {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
}

.board-text-tape.voice-slab textarea {
  font-family: Rockwell, Georgia, serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.board-text-tape.voice-mono textarea {
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.board-text-tape textarea {
  width: 100%;
  height: calc(var(--tape-lines, 1) * 1.18em);
  min-height: 1.18em;
  line-height: 1.12;
  white-space: pre-wrap;
  overflow: hidden;
  resize: none;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: currentColor;
  font-size: 16px;
  font-weight: 850;
  text-align: center;
  letter-spacing: 0;
  font-family: inherit;
  vertical-align: top;
}

.board-collage-card.selected,
.board-text-tape.selected {
  z-index: 7;
  box-shadow: 0 22px 42px rgba(34, 113, 177, 0.22);
}

.board-item-handles {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.board-item-handles .bbox {
  position: absolute;
  inset: 0;
  border: 1.4px solid #2271b1;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.board-item-handles .handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2271b1;
  box-shadow: 0 2px 6px rgba(21, 22, 26, 0.28);
  pointer-events: auto;
  touch-action: none;
}

.board-item-handles .handle.nw {
  left: -8px;
  top: -8px;
  cursor: nwse-resize;
}

.board-item-handles .handle.ne {
  right: -8px;
  top: -8px;
  cursor: nesw-resize;
}

.board-item-handles .handle.e {
  right: -8px;
  top: 50%;
  margin-top: -7px;
  cursor: ew-resize;
}

.board-item-handles .handle.sw {
  left: -8px;
  bottom: -8px;
  cursor: nesw-resize;
}

.board-item-handles .handle.w {
  left: -8px;
  top: 50%;
  margin-top: -7px;
  cursor: ew-resize;
}

.board-item-handles .handle.se {
  right: -8px;
  bottom: -8px;
  cursor: nwse-resize;
}

.board-item-handles .handle.rot {
  left: 50%;
  top: -34px;
  margin-left: -7px;
  width: 14px;
  height: 14px;
  cursor: grab;
}

.board-item-handles .handle.rot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 2px;
  height: 18px;
  margin-left: -1px;
  background: #2271b1;
  pointer-events: none;
}

.board-item-handles .handle.rot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  margin-left: -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #2271b1;
  pointer-events: none;
}

.vision-board-empty-state {
  padding: 20px;
  border: 1px dashed rgba(21, 22, 26, 0.18);
  border-radius: 8px;
  background: #fffdf9;
}

.vision-board-empty-state span {
  color: #8f6c25;
  font-size: 10px;
  font-weight: 900;
}

.vision-board-empty-state h3 {
  margin: 8px 0 14px;
  font-size: 18px;
  line-height: 1.3;
}

.empty-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-mini-panel {
  border-radius: 8px;
}

.dashboard-mini-card {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 248, 251, 0.78)),
    #fff;
  box-shadow: 0 12px 30px rgba(21, 22, 26, 0.06);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.dashboard-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-mini-head span,
.chart-head span,
.dashboard-advice span {
  color: #8f6c25;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.dashboard-mini-head h2 {
  margin: 3px 0 0;
  font-size: 18px;
}

.dashboard-mini-head > strong {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  color: var(--brand);
  font-size: 12px;
}

.dashboard-mini-head svg {
  width: 15px;
  height: 15px;
}

.dashboard-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: rgba(21, 22, 26, 0.08);
}

.metric-mini {
  position: relative;
  overflow: hidden;
  min-height: 72px;
  padding: 9px 9px 11px;
  background: rgba(255, 255, 255, 0.92);
}

.metric-mini span {
  display: block;
  color: #777b84;
  font-size: 10px;
  white-space: nowrap;
}

.metric-mini strong {
  display: block;
  margin-top: 5px;
  font-size: 23px;
  line-height: 1;
}

.metric-mini i {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--brand);
}

.metric-mini.gold i,
.detail-metric.gold {
  background-color: #fff7df;
}

.metric-mini.gold i {
  background: #d9a441;
}

.metric-mini.green i,
.metric-mini.blue i {
  background: var(--green);
}

.metric-mini.blue i {
  background: #2d62cc;
}

.metric-mini.ink i {
  background: var(--ink);
}

.dashboard-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.detail-metric {
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
}

.detail-metric span,
.detail-metric p {
  color: #747882;
  font-size: 10px;
  line-height: 1.4;
}

.detail-metric strong {
  display: block;
  margin: 5px 0;
  font-size: 22px;
}

.detail-metric p {
  margin: 0;
}

.detail-metric.ink {
  background: var(--ink);
  color: #fff;
}

.detail-metric.ink span,
.detail-metric.ink p {
  color: rgba(255, 255, 255, 0.68);
}

.chart-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(21, 22, 26, 0.05);
}

.chart-card.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.chart-head h3 {
  margin: 4px 0 0;
  font-size: 17px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 158px;
  padding-top: 8px;
}

.bar-column {
  display: grid;
  grid-template-rows: 18px 92px 16px 14px;
  justify-items: center;
  gap: 3px;
  min-width: 0;
}

.bar-column span {
  color: #5f636b;
  font-size: 10px;
  font-weight: 900;
}

.bar-column i {
  align-self: end;
  width: 100%;
  max-width: 24px;
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--brand), #f4a1bd);
}

.bar-column b,
.bar-column em {
  color: #747882;
  font-size: 10px;
  font-style: normal;
}

.line-chart svg {
  width: 100%;
  height: 138px;
  overflow: visible;
}

.chart-axis {
  stroke: rgba(21, 22, 26, 0.1);
  stroke-width: 2;
}

.progress-line {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.line-chart circle {
  fill: #fff;
  stroke: var(--green);
  stroke-width: 3;
}

.line-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.line-labels span {
  color: #747882;
  font-size: 10px;
  text-align: center;
}

.line-labels b {
  display: block;
  color: var(--ink);
  font-size: 10px;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  align-items: center;
}

.donut-chart {
  position: relative;
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border-radius: 50%;
}

.donut-chart::before {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.donut-chart span {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 900;
}

.donut-legend {
  display: grid;
  gap: 7px;
}

.donut-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5d626c;
  font-size: 12px;
}

.donut-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dashboard-advice {
  padding: 12px;
  border-radius: 8px;
  background: rgba(223, 243, 230, 0.76);
}

.dashboard-advice p {
  margin: 7px 0 12px;
  color: #314b45;
  font-size: 13px;
  line-height: 1.6;
}

.chenzao-insight {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid rgba(14, 110, 91, 0.11);
  border-radius: 16px;
  background:
    radial-gradient(circle at 94% 0, rgba(215, 0, 80, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.98), rgba(238, 248, 243, 0.96)),
    #fff;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(21, 22, 26, 0.07);
}

.chenzao-insight p {
  margin: 15px 0 17px;
  color: #4e5756;
  font-size: 13px;
  line-height: 1.72;
}

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

.insight-heading > div {
  display: grid;
  gap: 4px;
}

.insight-heading h2 {
  margin: 0;
}

.insight-heading > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(14, 110, 91, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--green);
  font-style: normal;
}

.insight-heading > i svg {
  width: 18px;
  height: 18px;
}

.insight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(14, 110, 91, 0.1);
}

.insight-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #77817f;
  font-size: 9px;
  line-height: 1.4;
}

.insight-footer > span svg {
  width: 13px;
  height: 13px;
}

.insight-footer .primary-button {
  display: inline-flex;
  width: auto;
  min-width: 86px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.insight-footer .primary-button svg {
  width: 14px;
  height: 14px;
}

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

.coach-entry-card {
  display: grid;
  grid-template-columns: 58px 1fr 22px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 108px;
  padding: 14px;
  border: 1px solid rgba(14, 110, 91, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(238, 249, 244, 0.9)),
    #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 30px rgba(21, 22, 26, 0.06);
}

.coach-symbol {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(14, 110, 91, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 110, 91, 0.1), rgba(215, 0, 80, 0.07)),
    #fff;
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 10px 20px rgba(14, 110, 91, 0.08);
}

.coach-symbol svg {
  width: 24px;
  height: 24px;
}

.coach-entry-card h3 {
  margin: 0;
  font-size: 16px;
}

.coach-entry-card p {
  margin: 6px 0 8px;
  color: #626872;
  font-size: 12px;
  line-height: 1.45;
}

.coach-entry-card strong {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.my-bookings-entry {
  display: grid;
  grid-template-columns: 38px 1fr 32px;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.my-bookings-entry h3 {
  margin: 0;
  font-size: 15px;
}

.my-bookings-entry p {
  margin: 3px 0 0;
  color: #6c717a;
  font-size: 12px;
  line-height: 1.42;
}

.my-bookings-entry > strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 110, 91, 0.1);
  color: var(--green);
  font-size: 13px;
}

.coach-directory-intro {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
}

.coach-directory-intro span {
  color: #8f6c25;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.coach-directory-intro h3 {
  margin: 7px 0 5px;
  font-size: 17px;
}

.coach-directory-intro p {
  margin: 0;
  color: #666a72;
  font-size: 12px;
  line-height: 1.55;
}

.coach-booking-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
}

.coach-booking-card .ghost-button {
  grid-column: 1 / -1;
}

.coach-booking-card h3 {
  margin: 0;
  font-size: 15px;
}

.coach-booking-card p {
  margin: 3px 0 8px;
  color: #666a72;
  font-size: 12px;
}

.next-slot {
  display: inline-flex;
  margin-top: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.support-panel {
  display: grid;
  gap: 12px;
  padding: 15px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(219, 233, 255, 0.88), rgba(223, 243, 230, 0.82)),
    #fff;
  box-shadow: 0 12px 32px rgba(21, 22, 26, 0.07);
}

.support-panel p {
  margin: 7px 0 0;
  color: #4f5660;
  font-size: 13px;
  line-height: 1.55;
}

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

.legacy-feature {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 11px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.legacy-feature svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
}

.legacy-feature strong {
  font-size: 14px;
}

.legacy-feature span {
  color: #70747d;
  font-size: 11px;
  line-height: 1.42;
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.me-profile-strip .me-avatar {
  width: 64px;
  height: 64px;
  font-size: 20px;
}

.menu-row {
  display: grid;
  grid-template-columns: 38px 1fr 22px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 13px;
  text-align: left;
  cursor: pointer;
}

.menu-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: rgba(215, 0, 80, 0.08);
  color: var(--brand);
}

.floating-add {
  position: fixed;
  right: calc(50% - min(195px, 50vw) + 18px);
  bottom: calc(var(--nav-height) + 18px);
  z-index: 9;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px rgba(215, 0, 80, 0.28);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
  justify-items: center;
  background: rgba(21, 22, 26, 0.28);
  backdrop-filter: blur(10px);
}

.overlay.agent-overlay {
  align-items: stretch;
  padding: 0;
  background: #dfe3e8;
  backdrop-filter: none;
}

.overlay.task-overlay {
  align-items: stretch;
  padding: 0;
  background: #dfe3e8;
  backdrop-filter: none;
}

.overlay.checkin-tip-overlay {
  align-items: center;
  padding: 24px;
  background: rgba(21, 22, 26, 0.34);
  backdrop-filter: blur(7px);
}

.task-content-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(430px, 100%);
  height: 100svh;
  overflow: hidden;
  background: #f7f7f5;
  color: #18191d;
  box-shadow: 0 0 60px rgba(18, 20, 24, 0.14);
}

.task-content-header {
  z-index: 3;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: max(10px, env(safe-area-inset-top)) 16px 9px;
  border-bottom: 1px solid rgba(21, 22, 26, 0.07);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(20px);
}

.task-content-header > button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 50%;
  background: #fff;
  color: #24262b;
  cursor: pointer;
}

.task-content-header > button svg {
  width: 18px;
  height: 18px;
}

.task-content-header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.task-content-header > div span {
  overflow: hidden;
  color: #8b8e95;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-content-header > div strong {
  font-size: 13px;
}

.task-content-reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #fff0f5;
  color: #b50043;
  font-size: 9px;
  font-weight: 850;
}

.task-content-reward svg {
  width: 12px;
  height: 12px;
}

.task-content-body {
  overflow-y: auto;
  padding: 25px 18px 30px;
  scrollbar-width: none;
}

.task-content-body::-webkit-scrollbar {
  display: none;
}

.task-content-hero {
  padding: 5px 3px 24px;
}

.task-content-hero > p {
  margin: 0 0 7px;
  color: #d70050;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.task-content-hero h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  line-height: 1.25;
}

.task-content-hero > div {
  margin-top: 12px;
  color: #6c6f77;
  font-size: 13px;
  line-height: 1.75;
}

.task-learning-block,
.task-learning-media {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(21, 22, 26, 0.055);
}

.task-learning-block {
  padding: 17px;
}

.task-learning-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
  color: #777a82;
  font-size: 10px;
  font-weight: 850;
}

.task-learning-label svg {
  width: 14px;
  height: 14px;
}

.task-learning-block h2 {
  margin: 0;
  font-size: 18px;
}

.task-learning-block > p {
  margin: 8px 0 0;
  color: #62656d;
  font-size: 12px;
  line-height: 1.7;
}

.task-video-stage {
  display: grid;
  min-height: 180px;
  margin: -5px -5px 15px;
  place-items: center;
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 42%, rgba(215, 0, 80, 0.22), transparent 32%),
    linear-gradient(145deg, #26272d, #0f1013);
  color: #fff;
}

.task-video-stage svg {
  width: 42px;
  height: 42px;
  padding: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.task-video-stage span {
  margin-top: -58px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.task-learning-focus {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 15px;
  padding: 11px;
  border-radius: 12px;
  background: #f3f6f4;
  color: #376052;
  font-size: 10px;
  line-height: 1.55;
}

.task-learning-focus svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.task-learning-media img,
.task-learning-media video {
  display: block;
  width: 100%;
  max-height: 310px;
  object-fit: cover;
}

.task-learning-media audio {
  width: calc(100% - 24px);
  margin: 12px;
}

.task-complete-state {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 17px;
  padding: 15px;
  border-radius: 16px;
  background: #ecf7f1;
  color: #155d45;
}

.task-complete-state > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #167454;
  color: #fff;
}

.task-complete-state svg {
  width: 18px;
  height: 18px;
}

.task-complete-state strong {
  display: block;
  font-size: 12px;
}

.task-complete-state p {
  margin: 5px 0 0;
  color: #5f7c71;
  font-size: 10px;
  line-height: 1.55;
}

.task-content-actions {
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(21, 22, 26, 0.07);
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(20px);
}

.task-complete-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 15px;
  background: #d70050;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(215, 0, 80, 0.22);
}

.task-complete-button svg {
  width: 16px;
  height: 16px;
}

.task-complete-button span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
}

.task-content-actions > p {
  margin: 7px 0 0;
  color: #9a9da4;
  font-size: 9px;
  text-align: center;
}

.task-evidence-button {
  display: grid;
  grid-template-columns: 26px 1fr 16px;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 14px;
  background: #fff;
  color: #555860;
  text-align: left;
  cursor: pointer;
}

.task-evidence-button > svg {
  width: 15px;
  height: 15px;
}

.task-evidence-button > span {
  display: grid;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
}

.task-evidence-button small {
  color: #999ca3;
  font-size: 9px;
  font-weight: 500;
}

.wish-agent-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 3px minmax(0, 1fr) auto;
  width: min(430px, 100%);
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(215, 0, 80, 0.07), transparent 31%),
    radial-gradient(circle at 100% 18%, rgba(14, 110, 91, 0.06), transparent 34%),
    #f8f8f6;
  color: #18191d;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  box-shadow: 0 0 60px rgba(18, 20, 24, 0.14);
}

.wish-agent-header {
  z-index: 3;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: max(10px, env(safe-area-inset-top)) 16px 9px;
  border-bottom: 1px solid rgba(18, 20, 24, 0.06);
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(20px);
}

.wish-agent-back {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(18, 20, 24, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: #1a1b20;
  cursor: pointer;
}

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

.wish-agent-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.wish-agent-avatar,
.agent-turn-avatar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #d70050;
  color: #fff;
  line-height: 0;
  box-shadow: 0 7px 18px rgba(215, 0, 80, 0.2);
}

.wish-agent-avatar {
  width: 36px;
  height: 36px;
}

.wish-agent-avatar svg {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;
  color: #fff;
  stroke: #fff;
  stroke-width: 2.4;
  opacity: 1;
}

.wish-agent-identity > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wish-agent-identity strong {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 16px;
  line-height: 1;
}

.wish-agent-identity > div > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #858891;
  font-size: 10px;
  line-height: 1;
}

.wish-agent-identity > div > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #26a06f;
  box-shadow: 0 0 0 3px rgba(38, 160, 111, 0.11);
}

.wish-agent-step {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #ececea;
  color: #696c73;
  font-size: 11px;
  font-weight: 800;
}

.wish-agent-context {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 18px 10px;
  background: rgba(250, 250, 248, 0.8);
}

.wish-agent-context span {
  flex: 0 0 auto;
  color: #9a7c49;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.wish-agent-context strong {
  overflow: hidden;
  color: #303238;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wish-agent-progress {
  overflow: hidden;
  background: rgba(21, 22, 26, 0.07);
}

.wish-agent-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #17181d, var(--brand));
  transition: width 360ms cubic-bezier(.2, .8, .2, 1);
}

.wish-agent-conversation {
  min-height: 0;
  overflow-y: auto;
  padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.wish-agent-conversation::-webkit-scrollbar {
  display: none;
}

.wish-agent-composer {
  z-index: 4;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(21, 22, 26, 0.07);
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(20px);
}

.wish-agent-composer-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 5px 5px 5px 12px;
  border: 1px solid rgba(21, 22, 26, 0.1);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(21, 22, 26, 0.055);
}

.wish-agent-composer-field > svg {
  width: 16px;
  height: 16px;
  color: #92959c;
}

.wish-agent-composer-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #26282e;
  font: inherit;
  font-size: 11px;
}

.wish-agent-composer-field input::placeholder {
  color: #9a9da4;
}

.wish-agent-composer-field button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: #d70050;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(215, 0, 80, 0.22);
  transition: transform 150ms ease, opacity 150ms ease;
}

.wish-agent-composer-field button:active {
  transform: scale(0.94);
}

.wish-agent-composer-field button:disabled {
  cursor: default;
  opacity: 0.28;
  box-shadow: none;
}

.wish-agent-composer-field button svg {
  width: 15px;
  height: 15px;
}

.wish-agent-composer-field button svg.lucide-loader-circle {
  animation: agentComposerSpin 900ms linear infinite;
}

.agent-inline-thread {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid rgba(21, 22, 26, 0.07);
}

.agent-turn.followup .agent-message > p {
  margin: 0;
  color: #4f5259;
}

.agent-turn {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 13px;
  animation: agentTurnIn 260ms ease both;
}

.agent-turn-avatar {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 9px;
}

.agent-turn-avatar svg {
  display: block;
  width: 13px;
  height: 13px;
  margin: 0;
  color: #fff;
  stroke: #fff;
  stroke-width: 2.4;
  opacity: 1;
}

.wish-agent-avatar svg *,
.agent-turn-avatar svg * {
  stroke: #fff;
  opacity: 1;
}

.agent-message {
  max-width: calc(100% - 37px);
  padding: 12px 13px;
  border: 1px solid rgba(21, 22, 26, 0.07);
  border-radius: 5px 17px 17px 17px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(21, 22, 26, 0.055);
}

.agent-message > strong {
  display: block;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 16px;
  line-height: 1.55;
}

.agent-message > p {
  margin: 7px 0 0;
  color: #70737b;
  font-size: 12px;
  line-height: 1.65;
}

.agent-turn.user {
  justify-content: flex-end;
  margin-top: -3px;
}

.agent-turn.user .agent-message {
  max-width: 82%;
  border: 0;
  border-radius: 17px 5px 17px 17px;
  background: #1c1d22;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  box-shadow: 0 9px 22px rgba(21, 22, 26, 0.13);
}

.agent-turn.history .agent-message {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.agent-turn.history .agent-message > strong {
  color: #777a81;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.agent-turn.current {
  margin-top: 19px;
}

.agent-turn.current .agent-message {
  width: calc(100% - 37px);
  max-width: calc(100% - 37px);
  padding: 13px;
  border-color: rgba(21, 22, 26, 0.09);
}

.agent-message-kicker {
  margin: 0 0 5px !important;
  color: var(--brand) !important;
  font-size: 9px !important;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agent-choice-card {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(21, 22, 26, 0.07);
}

.agent-card-hint {
  margin: 0 0 9px;
  color: #979aa1;
  font-size: 10px;
  line-height: 1.5;
}

.agent-choice-grid {
  display: grid;
  gap: 8px;
}

.agent-choice {
  display: grid;
  grid-template-columns: 1fr 27px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 47px;
  padding: 8px 9px 8px 12px;
  border: 1px solid rgba(21, 22, 26, 0.09);
  border-radius: 12px;
  background: #f6f6f3;
  color: #303238;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.agent-choice:active {
  transform: scale(0.985);
}

.agent-choice.selected {
  border-color: rgba(215, 0, 80, 0.28);
  background: #fff0f5;
  color: #b50043;
}

.agent-choice > span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.agent-choice > svg {
  width: 27px;
  height: 27px;
  padding: 7px;
  border-radius: 50%;
  background: #fff;
  color: #767981;
  box-shadow: 0 2px 8px rgba(21, 22, 26, 0.06);
}

.agent-choice.selected > svg {
  background: var(--brand);
  color: #fff;
}

.agent-question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  margin-top: 11px;
}

.agent-previous-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 4px;
  background: transparent;
  color: #8b8e95;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.agent-previous-button svg {
  width: 13px;
  height: 13px;
}

.agent-send-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 999px;
  background: #1b1c21;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(21, 22, 26, 0.15);
}

.agent-send-button svg {
  width: 14px;
  height: 14px;
}

.agent-send-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  box-shadow: none;
}

.agent-calendar-card .month-calendar {
  padding: 9px 7px 8px;
  border-radius: 12px;
  box-shadow: none;
}

.agent-calendar-card .calendar-summary {
  gap: 5px;
}

.agent-calendar-card .calendar-summary > div {
  padding: 7px 5px;
}

.agent-calendar-card .calendar-summary strong {
  font-size: 9.5px;
}

.agent-wheels-card .wheel-picker {
  box-shadow: none;
}

.agent-resource-card {
  display: grid;
  gap: 9px;
}

.agent-resource-link-input {
  display: grid;
  grid-template-columns: 18px 1fr 32px;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 5px 5px 5px 11px;
  border: 1px solid rgba(21, 22, 26, 0.1);
  border-radius: 13px;
  background: #f6f6f3;
}

.agent-resource-link-input > svg {
  width: 15px;
  height: 15px;
  color: #8d9097;
}

.agent-resource-link-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #282a30;
  font: inherit;
  font-size: 11px;
}

.agent-resource-link-input input::placeholder {
  color: #a0a3aa;
}

.agent-resource-link-input button,
.agent-resource-item > button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #555860;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21, 22, 26, 0.06);
}

.agent-resource-link-input button {
  width: 32px;
  height: 32px;
}

.agent-resource-link-input button svg,
.agent-resource-item > button svg {
  width: 14px;
  height: 14px;
}

.agent-resource-upload {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed rgba(215, 0, 80, 0.28);
  border-radius: 13px;
  background: #fff8fa;
  color: #b50043;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.agent-resource-upload svg {
  width: 15px;
  height: 15px;
}

.agent-resource-upload input {
  display: none;
}

.agent-resource-list {
  display: grid;
  gap: 7px;
}

.agent-resource-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  gap: 9px;
  align-items: center;
  min-height: 50px;
  padding: 7px 8px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 12px;
  background: #fff;
}

.agent-resource-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #f1f1ee;
  color: #4e5158;
}

.agent-resource-icon svg {
  width: 15px;
  height: 15px;
}

.agent-resource-item > div {
  min-width: 0;
}

.agent-resource-item strong,
.agent-resource-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-resource-item strong {
  color: #303238;
  font-size: 11px;
}

.agent-resource-item small {
  margin-top: 3px;
  color: #9699a0;
  font-size: 9px;
}

.agent-resource-item > button {
  width: 28px;
  height: 28px;
  color: #9a9da4;
  box-shadow: none;
}

.agent-resource-empty {
  padding: 11px;
  border-radius: 12px;
  background: #f7f7f5;
  color: #9a9da4;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.agent-resource-note {
  margin: 0;
  color: #9a9da4;
  font-size: 9px;
  line-height: 1.55;
}

.agent-thinking {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: start;
}

.agent-thinking-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f5;
  color: var(--brand);
  animation: agentThinkPulse 1.7s ease-in-out infinite;
}

.agent-thinking-mark svg {
  width: 17px;
  height: 17px;
}

.agent-thinking strong {
  display: block;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 15px;
}

.agent-thinking p {
  margin: 6px 0 0;
  color: #777a82;
  font-size: 11px;
  line-height: 1.6;
}

.agent-typing-dots {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.agent-typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8f9299;
  animation: agentTyping 1s ease-in-out infinite;
}

.agent-typing-dots i:nth-child(2) {
  animation-delay: 120ms;
}

.agent-typing-dots i:nth-child(3) {
  animation-delay: 240ms;
}

.agent-plan-result {
  margin: 6px 0 14px 37px;
  padding: 14px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(21, 22, 26, 0.07);
}

.agent-plan-analysis {
  margin: 0;
  color: #4f525a;
  font-size: 12px;
  line-height: 1.7;
}

.agent-strategy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px;
}

.agent-strategy-list span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef5f1;
  color: #196c55;
  font-size: 9px;
  font-weight: 800;
}

.agent-strategy-list svg {
  width: 11px;
  height: 11px;
}

.agent-plan-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 0 9px;
  padding-top: 14px;
  border-top: 1px solid rgba(21, 22, 26, 0.08);
}

.agent-plan-heading span {
  color: #999ca3;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.agent-plan-heading h3 {
  margin: 4px 0 0;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 17px;
}

.agent-plan-heading em {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0efed;
  color: #666970;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.agent-plan-actions {
  position: sticky;
  bottom: -1px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  margin: 6px -4px -16px 33px;
  padding: 12px 4px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(248, 248, 246, 0), #f8f8f6 26%);
}

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

@keyframes agentTyping {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

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

@keyframes agentThinkPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(215, 0, 80, 0.18);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(215, 0, 80, 0);
  }
}

.sheet {
  width: min(430px, 100%);
  max-height: 88svh;
  overflow: auto;
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(180deg, #fffdf9, #f9fbfb),
    #fff;
  box-shadow: 0 -20px 50px rgba(21, 22, 26, 0.2);
}

.sheet-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(16px);
}

.sheet-title {
  margin: 0;
  font-size: 18px;
}

.sheet-body {
  padding: 8px 16px 24px;
}

.progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(21, 22, 26, 0.08);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.me-profile-strip p b {
  margin-right: 7px;
  color: #8f6c25;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.chenzao-insight h2 span {
  display: inline-flex;
  margin-left: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(215, 0, 80, 0.1);
  color: var(--brand);
  font-size: 9px;
  vertical-align: middle;
}

.daily-poster-preview {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  padding: 34px 28px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(215, 0, 80, 0.18), transparent 38%),
    linear-gradient(145deg, #f9e8ed, #fffdf9 50%, #e6f4ef);
  box-shadow: 0 20px 46px rgba(21, 22, 26, 0.12);
}

.daily-poster-date strong {
  display: block;
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 92px;
  line-height: 0.9;
}

.daily-poster-date span {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 800;
}

.daily-poster-preview > p {
  margin: 78px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.55;
}

.daily-poster-mark {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
}

.daily-poster-mark span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: "Songti SC", serif;
  font-size: 18px;
}

.event-edit-card {
  display: grid;
  gap: 12px;
}

.event-edit-time {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.event-media-upload {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed rgba(21, 22, 26, 0.22);
  border-radius: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.event-media-upload input {
  display: none;
}

.event-media-upload svg {
  width: 16px;
  height: 16px;
}

.event-media-empty {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

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

.event-media-grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
}

.event-media-grid figure.wide {
  grid-column: 1 / -1;
}

.event-media-grid img,
.event-media-grid video,
.event-media-grid audio {
  display: block;
  width: 100%;
  max-height: 220px;
  border-radius: 9px;
  object-fit: cover;
}

.event-media-grid figure > button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(21, 22, 26, 0.72);
  color: #fff;
}

.event-media-grid figure > button svg {
  width: 13px;
  height: 13px;
}

.checkin-tip-dialog {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(294px, 100%);
  gap: 9px;
  padding: 24px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: #fffdf9;
  box-shadow: 0 24px 64px rgba(21, 22, 26, 0.24);
  text-align: center;
  animation: checkinTipIn 180ms ease-out both;
}

.checkin-tip-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #f3f3f1;
  color: #777b82;
}

.checkin-tip-close svg {
  width: 15px;
  height: 15px;
}

.checkin-tip-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #168362, #0d6e5b);
  color: #fff;
  box-shadow: 0 10px 22px rgba(14, 110, 91, 0.18);
}

.checkin-tip-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 3;
}

.checkin-tip-dialog h2 {
  margin: 1px 0 0;
  font-size: 17px;
}

.checkin-tip-dialog h2 b {
  color: var(--green);
}

.checkin-tip-pending {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border-radius: 11px;
  background: #f3f6f2;
}

.checkin-tip-pending span {
  color: #4f555d;
  font-size: 12px;
  font-weight: 850;
}

.checkin-tip-pending b {
  margin-left: 3px;
  color: var(--green);
}

.checkin-tip-pending em {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff4dc;
  color: #9b6817;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.checkin-tip-dialog > p {
  margin: 0;
  color: #8a8d93;
  font-size: 11px;
}

.checkin-tip-submit {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 9px 20px rgba(14, 110, 91, 0.16);
}

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

.checkin-composer,
.checkin-history-sheet {
  display: grid;
  gap: 16px;
}

.checkin-event-summary {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(14, 110, 91, 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(230, 246, 240, 0.88), rgba(255, 255, 255, 0.96));
}

.checkin-event-summary > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
}

.checkin-event-summary > span svg {
  width: 19px;
  height: 19px;
}

.checkin-event-summary div {
  min-width: 0;
}

.checkin-event-summary small,
.checkin-history-heading small {
  display: block;
  margin-bottom: 4px;
  color: #478271;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.checkin-event-summary strong {
  display: block;
  font-size: 16px;
}

.checkin-event-summary p {
  margin: 6px 0 0;
  color: #686d74;
  font-size: 12px;
  line-height: 1.5;
}

.checkin-text-field {
  display: grid;
  gap: 8px;
}

.checkin-text-field > span,
.checkin-section-title > span {
  font-size: 13px;
  font-weight: 900;
}

.checkin-text-field textarea {
  width: 100%;
  min-height: 132px;
  padding: 13px;
  border: 1px solid rgba(21, 22, 26, 0.1);
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.65;
  resize: vertical;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.checkin-text-field textarea:focus {
  border-color: rgba(215, 0, 80, 0.32);
  box-shadow: 0 0 0 3px rgba(215, 0, 80, 0.07);
}

.checkin-upload-section {
  display: grid;
  gap: 10px;
}

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

.checkin-section-title small,
.checkin-upload-hint {
  color: var(--muted);
  font-size: 10px;
}

.checkin-upload-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.checkin-upload-actions label {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed rgba(21, 22, 26, 0.2);
  border-radius: 12px;
  background: #fff;
  color: #565b65;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.checkin-upload-actions label:active {
  background: rgba(215, 0, 80, 0.04);
}

.checkin-upload-actions svg {
  width: 17px;
  height: 17px;
  color: var(--brand);
}

.checkin-upload-actions input {
  display: none;
}

.checkin-upload-hint {
  margin: -2px 0 0;
  line-height: 1.5;
}

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

.checkin-media-grid figure {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 11px;
  background: #f3f3f1;
}

.checkin-media-grid figure.wide {
  grid-column: 1 / -1;
}

.checkin-media-grid img,
.checkin-media-grid video {
  display: block;
  width: 100%;
  height: 150px;
  background: #17181c;
  object-fit: cover;
}

.checkin-media-grid figure.wide video {
  height: auto;
  max-height: 280px;
}

.checkin-media-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 9px;
  background: #fff;
  color: #646872;
  font-size: 10px;
}

.checkin-media-grid figcaption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-media-grid figcaption em {
  flex: 0 0 auto;
  color: #9a9ca2;
  font-style: normal;
}

.checkin-media-grid figure > button {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: rgba(21, 22, 26, 0.75);
  color: #fff;
}

.checkin-media-grid figure > button svg {
  width: 13px;
  height: 13px;
}

.checkin-history-heading {
  padding: 4px 1px 0;
}

.checkin-history-heading h3 {
  margin: 0;
  font-size: 18px;
}

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

.checkin-history-card {
  padding: 13px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 13px;
  background: #fff;
}

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

.checkin-history-card header span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.checkin-history-card header svg {
  width: 14px;
  height: 14px;
}

.checkin-history-card time {
  color: var(--muted);
  font-size: 10px;
}

.checkin-history-card > p {
  margin: 10px 0 0;
  color: #383b42;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.checkin-history-card .checkin-media-grid {
  margin-top: 10px;
}

.checkin-empty {
  display: grid;
  min-height: 108px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px dashed rgba(21, 22, 26, 0.14);
  border-radius: 12px;
  color: #92959c;
}

.checkin-empty svg {
  width: 21px;
  height: 21px;
}

.checkin-empty p {
  margin: 0;
  font-size: 11px;
}

.checkin-more-button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  border-radius: 10px;
  background: rgba(14, 110, 91, 0.07);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.checkin-more-button svg {
  width: 14px;
  height: 14px;
}

.event-checkin-section {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(21, 22, 26, 0.08);
}

.event-checkin-section .section-head {
  align-items: start;
}

.event-checkin-section .section-head h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.checkin-composer .lucide-loader-circle {
  animation: checkinSpin 800ms linear infinite;
}

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

.event-detail-meta {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 9px;
  background: rgba(14, 110, 91, 0.07);
}

.event-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.event-detail-meta span svg {
  width: 14px;
  height: 14px;
}

.event-detail-meta p {
  margin: 0;
  color: #61656d;
  font-size: 11px;
  line-height: 1.5;
}

.manual-agent-chat {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}

.manual-agent-chat .chat-bubble {
  max-width: 88%;
}

.agent-form-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(215, 0, 80, 0.07);
  color: #6d2441;
  font-size: 11px;
  line-height: 1.45;
}

.agent-form-summary svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--brand);
}

.manual-agent-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.manual-agent-inputs label {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed rgba(21, 22, 26, 0.2);
  border-radius: 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.manual-agent-inputs input {
  display: none;
}

.manual-agent-inputs svg {
  width: 15px;
  height: 15px;
}

.manual-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.manual-attachments span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(14, 110, 91, 0.09);
  color: var(--green);
  font-size: 10px;
}

.manual-attachments svg {
  width: 12px;
  height: 12px;
}

.manual-agent-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(430px, 100%);
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(215, 0, 80, 0.045), transparent 28%),
    #f8f8f6;
  color: #1b1c20;
  box-shadow: 0 0 60px rgba(18, 20, 24, 0.14);
}

.manual-agent-header {
  z-index: 4;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: max(10px, env(safe-area-inset-top)) 14px 9px;
  border-bottom: 1px solid rgba(21, 22, 26, 0.065);
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(20px);
}

.manual-agent-header > button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #2a2c31;
  cursor: pointer;
}

.manual-agent-header > button svg {
  width: 16px;
  height: 16px;
}

.manual-agent-header > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.manual-agent-header > div > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #d70050;
  color: #fff;
  box-shadow: 0 6px 15px rgba(215, 0, 80, 0.18);
}

.manual-agent-header > div > span svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.manual-agent-header p {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 0;
}

.manual-agent-header strong {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 16px;
  line-height: 1;
}

.manual-agent-header small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #898c93;
  font-size: 9px;
}

.manual-agent-header small i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.1);
}

.manual-agent-conversation {
  min-height: 0;
  overflow-y: auto;
  padding: 22px 16px 30px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.manual-agent-conversation::-webkit-scrollbar {
  display: none;
}

.manual-agent-turn {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  animation: manualAgentTurnIn 220ms ease both;
}

.manual-agent-turn.assistant > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #d70050;
  color: #fff;
  box-shadow: 0 5px 13px rgba(215, 0, 80, 0.15);
}

.manual-agent-turn.assistant > span svg {
  width: 13px;
  height: 13px;
}

.manual-agent-turn.assistant > div {
  max-width: 82%;
  padding: 10px 13px;
  border: 1px solid rgba(21, 22, 26, 0.075);
  border-radius: 4px 15px 15px;
  background: rgba(255, 255, 255, 0.93);
  color: #3c3f46;
  font-size: 12px;
  line-height: 1.62;
  box-shadow: 0 7px 20px rgba(21, 22, 26, 0.04);
}

.manual-agent-turn.user {
  justify-content: flex-end;
}

.manual-agent-turn.user > div {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 15px 4px 15px 15px;
  background: #202126;
  color: #fff;
  font-size: 12px;
  line-height: 1.55;
}

.manual-agent-turn.thinking > div {
  display: flex;
  gap: 4px;
  padding: 13px 14px;
}

.manual-agent-turn.thinking > div i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #898c93;
  animation: agentTyping 1s ease-in-out infinite;
}

.manual-agent-turn.thinking > div i:nth-child(2) {
  animation-delay: 120ms;
}

.manual-agent-turn.thinking > div i:nth-child(3) {
  animation-delay: 240ms;
}

.manual-agent-quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -3px 0 20px 39px;
}

.manual-agent-quick-options button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(21, 22, 26, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #464950;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(21, 22, 26, 0.035);
}

.manual-agent-quick-options button:active {
  border-color: rgba(215, 0, 80, 0.25);
  background: #fff3f7;
  color: #b70044;
  transform: scale(0.97);
}

.manual-agent-attachments {
  display: grid;
  gap: 7px;
  margin: 4px 0 16px 39px;
}

.manual-agent-attachments article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.manual-agent-attachments article > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #f0efed;
  color: #62666e;
}

.manual-agent-attachments svg {
  width: 14px;
  height: 14px;
}

.manual-agent-attachments article > div {
  min-width: 0;
}

.manual-agent-attachments strong,
.manual-agent-attachments small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-agent-attachments strong {
  color: #34363c;
  font-size: 10px;
}

.manual-agent-attachments small {
  margin-top: 2px;
  color: #96999f;
  font-size: 8px;
}

.manual-agent-attachments article > button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #92959c;
  cursor: pointer;
}

.manual-schedule-card {
  margin: 8px 0 18px 39px;
  padding: 12px;
  border: 1px solid rgba(21, 22, 26, 0.09);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 249, 0.94)),
    #fff;
  box-shadow: 0 14px 34px rgba(21, 22, 26, 0.065);
  animation: manualAgentCardIn 280ms cubic-bezier(.2, .8, .2, 1) both;
}

.manual-schedule-card.ready {
  border-color: rgba(14, 110, 91, 0.17);
  box-shadow: 0 16px 38px rgba(14, 110, 91, 0.08);
}

.manual-schedule-card > header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.manual-schedule-card > header > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #f1f0ed;
  color: #585b62;
}

.manual-schedule-card.ready > header > span {
  background: #eaf5f1;
  color: #0e6e5b;
}

.manual-schedule-card > header > span svg {
  width: 18px;
  height: 18px;
}

.manual-schedule-card header div {
  min-width: 0;
}

.manual-schedule-card header small {
  display: block;
  margin-bottom: 3px;
  color: #92959c;
  font-size: 8px;
  font-weight: 900;
}

.manual-schedule-card h3 {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-schedule-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.manual-schedule-facts span,
.manual-schedule-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #f3f3f1;
  color: #5c6068;
  font-size: 9px;
  font-weight: 750;
}

.manual-schedule-facts svg,
.manual-schedule-type svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}

.manual-schedule-type {
  position: relative;
  padding-right: 6px;
  cursor: pointer;
}

.manual-schedule-type select {
  min-width: 38px;
  padding: 0 12px 0 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.manual-schedule-type > svg:last-child {
  position: absolute;
  right: 5px;
  width: 9px;
  height: 9px;
  pointer-events: none;
}

.manual-schedule-standard {
  display: grid;
  gap: 4px;
  margin: 11px 0 0;
  padding: 10px 2px 0;
  border-top: 1px solid rgba(21, 22, 26, 0.065);
  color: #555960;
  font-size: 10px;
  line-height: 1.55;
}

.manual-schedule-standard span {
  color: #92959c;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.manual-schedule-confirm {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
  border-radius: 12px;
  background: #d70050;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(215, 0, 80, 0.18);
}

.manual-schedule-confirm svg {
  width: 15px;
  height: 15px;
}

.manual-agent-composer {
  z-index: 4;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(21, 22, 26, 0.07);
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(22px);
}

.manual-agent-composer > p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 0 7px;
  color: #92959c;
  font-size: 8px;
  line-height: 1.35;
  text-align: center;
}

.manual-agent-composer > p svg {
  width: 10px;
  height: 10px;
  color: #d70050;
}

.manual-agent-composer-box {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px 34px;
  gap: 5px;
  align-items: end;
  min-height: 48px;
  padding: 5px;
  border: 1px solid rgba(21, 22, 26, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(21, 22, 26, 0.055);
}

.manual-agent-composer-box > label,
.manual-agent-composer-box > button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: transparent;
  color: #73767e;
  cursor: pointer;
}

.manual-agent-composer-box > label input,
.manual-agent-audio-file {
  display: none;
}

.manual-agent-composer-box svg {
  width: 16px;
  height: 16px;
}

.manual-agent-composer-box textarea {
  width: 100%;
  min-height: 34px;
  max-height: 88px;
  padding: 8px 3px 6px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #27292f;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  resize: none;
}

.manual-agent-composer-box textarea::placeholder {
  color: #a0a3a9;
}

.manual-agent-composer-box .manual-agent-mic.listening {
  background: #fff0f5;
  color: #d70050;
  animation: manualMicPulse 1.15s ease-in-out infinite;
}

.manual-agent-composer-box .manual-agent-send {
  background: #d70050;
  color: #fff;
  box-shadow: 0 6px 15px rgba(215, 0, 80, 0.2);
}

.manual-agent-composer-box .manual-agent-send:disabled {
  background: #e7e7e4;
  color: #aaacb1;
  cursor: default;
  box-shadow: none;
}

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

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

@keyframes manualMicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215, 0, 80, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(215, 0, 80, 0); }
}

.course-lesson-list {
  display: grid;
  max-height: 440px;
  overflow-y: auto;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 12px;
  background: #fff;
}

.course-lesson-list > button {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  gap: 9px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(21, 22, 26, 0.07);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.course-lesson-list > button:last-child {
  border-bottom: 0;
}

.course-lesson-list > button > b {
  color: var(--brand);
  font-size: 11px;
}

.course-lesson-list > button > span {
  min-width: 0;
}

.course-lesson-list > button strong,
.course-lesson-list > button em {
  display: block;
}

.course-lesson-list > button strong {
  font-size: 12px;
}

.course-lesson-list > button em {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-lesson-list > button svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.course-lesson-hero {
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #17191f, #31242a);
  color: #fff;
}

.course-lesson-hero span {
  color: #f0d28e;
  font-size: 10px;
  font-weight: 900;
}

.course-lesson-hero h3 {
  margin: 10px 0 7px;
  font-size: 24px;
}

.course-lesson-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.6;
}

.course-video-stage {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin-top: 14px;
  border-radius: 14px;
  background: #11141b;
  color: #fff;
}

.course-video-stage svg {
  width: 44px;
  height: 44px;
  color: var(--brand);
}

.course-video-stage span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.model-visual {
  display: flex;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5eaf0, #edf6f2);
}

.model-visual > span {
  display: grid;
  min-width: 112px;
  gap: 6px;
  padding: 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  color: #4e5159;
  font-size: 10px;
  line-height: 1.45;
}

.model-visual > span b {
  color: var(--brand);
  font-size: 13px;
}

.model-visual > svg {
  width: 15px;
  flex: 0 0 auto;
  align-self: center;
  color: var(--brand);
}

.model-ai-breakdown {
  margin-top: 10px;
  padding: 12px;
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  background: rgba(215, 0, 80, 0.05);
}

.model-ai-breakdown span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
}

.model-ai-breakdown span svg {
  width: 13px;
  height: 13px;
}

.model-ai-breakdown p {
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.6;
}

.tiny-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.primary-button:disabled,
.ghost-button:disabled,
.option-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.question-title {
  margin: 18px 0 8px;
  font-size: 21px;
  line-height: 1.32;
}

.question-desc {
  margin: 0 0 14px;
  color: #666a72;
  font-size: 13px;
  line-height: 1.6;
}

.duration-assessment-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  margin: 14px 0;
  padding: 13px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(250, 252, 250, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 30px rgba(21, 22, 26, 0.05);
}

.duration-assessment-card.stretch {
  border-color: rgba(198, 137, 39, 0.26);
  background: linear-gradient(135deg, rgba(255, 248, 232, 0.98), rgba(255, 255, 255, 0.96));
}

.duration-assessment-card.mismatch {
  border-color: rgba(215, 0, 80, 0.26);
  background: linear-gradient(135deg, rgba(255, 246, 249, 0.98), rgba(255, 255, 255, 0.96));
}

.duration-assessment-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(13, 128, 92, 0.1);
  color: #0d805c;
}

.duration-assessment-card.stretch .duration-assessment-mark {
  background: rgba(198, 137, 39, 0.12);
  color: #9b6a16;
}

.duration-assessment-card.mismatch .duration-assessment-mark {
  background: rgba(215, 0, 80, 0.1);
  color: var(--brand);
}

.duration-assessment-mark svg {
  width: 19px;
  height: 19px;
}

.duration-assessment-card span {
  display: block;
  margin-bottom: 5px;
  color: #7b818b;
  font-size: 11px;
  font-weight: 900;
}

.duration-assessment-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.duration-assessment-card p {
  margin: 6px 0 0;
  color: #666a72;
  font-size: 12px;
  line-height: 1.55;
}

.schedule-block {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.schedule-block > span {
  color: #868991;
  font-size: 12px;
}

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

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

.schedule-input-grid.single {
  grid-template-columns: 1fr;
}

.schedule-field {
  display: grid;
  gap: 7px;
}

.schedule-field span {
  color: #5f636c;
  font-size: 12px;
  font-weight: 800;
}

.schedule-field input {
  width: 100%;
  height: 46px;
  min-width: 0;
  border: 1px solid rgba(21, 22, 26, 0.12);
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  padding: 0 12px;
}

.schedule-field input:focus {
  border-color: rgba(215, 0, 80, 0.38);
  box-shadow: 0 0 0 3px rgba(215, 0, 80, 0.08);
}

.schedule-field input::placeholder {
  color: #b7bac2;
  font-weight: 500;
}

.schedule-hint {
  margin: 2px 0 0;
  color: #868991;
  font-size: 12px;
  line-height: 1.45;
}

.question-hint {
  margin: 0 0 12px;
  color: #868991;
  font-size: 12.5px;
  line-height: 1.55;
}

/* === 第五题：单个日历（范围选择） === */
.single-calendar {
  display: block;
  margin-top: 6px;
}

.month-calendar {
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 14px;
  background: #fff;
  padding: 12px 10px 10px;
  box-shadow: 0 8px 22px rgba(21, 22, 26, 0.05);
}

.month-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.month-calendar-title {
  display: grid;
  gap: 2px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
}

.cal-nav {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(21, 22, 26, 0.1);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.cal-nav svg {
  width: 14px;
  height: 14px;
}

.cal-nav:hover {
  border-color: rgba(215, 0, 80, 0.32);
  color: var(--brand);
}

.month-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-bottom: 4px;
  color: #9da1aa;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.month-calendar-week span {
  padding: 4px 0;
}

.month-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-cell {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.cal-cell.empty {
  cursor: default;
}

.cal-cell:hover:not(.empty) {
  background: rgba(215, 0, 80, 0.08);
  color: var(--brand);
}

.cal-cell.in-range {
  background: rgba(215, 0, 80, 0.14);
  color: var(--brand);
  border-radius: 0;
}

.cal-cell.start,
.cal-cell.end {
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(215, 0, 80, 0.28);
}

.cal-cell.start.edge,
.cal-cell.end.edge {
  border-radius: 8px;
}

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.calendar-summary > div {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, #fff7f9);
  text-align: center;
}

.calendar-summary span {
  color: #868991;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.calendar-summary strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 900;
}

/* === 第六题：iPhone 滚轮（紧凑布局，确保不遮挡按钮） === */
.wheels-board {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.wheel-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.wheel-row-label {
  color: #5f636c;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.wheel-row-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(8px);
  color: #9da1aa;
  font-size: 10.5px;
  font-weight: 700;
  pointer-events: none;
  z-index: 4;
}

.wheel-picker {
  position: relative;
  height: 160px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, #f7f7f9, #fff);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 18px rgba(21, 22, 26, 0.04);
}

.wheel-highlight {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(215, 0, 80, 0.1), rgba(217, 181, 109, 0.16));
  border: 1px solid rgba(215, 0, 80, 0.22);
  pointer-events: none;
  z-index: 2;
}

.wheel-mask {
  position: absolute;
  left: 0;
  right: 0;
  height: 64px;
  pointer-events: none;
  z-index: 3;
}

.wheel-mask.top {
  top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
}

.wheel-mask.bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
}

.wheel-track {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wheel-track::-webkit-scrollbar {
  display: none;
}

.wheel-item {
  height: 32px;
  display: grid;
  place-items: center;
  scroll-snap-align: center;
  color: #9da1aa;
  font-size: 13px;
  font-weight: 700;
  user-select: none;
}

.wheel-item.pad {
  height: 32px;
}

.wheel-track:not(:hover) .wheel-item {
  filter: blur(0.4px);
  opacity: 0.55;
}

/* 摘要卡片：紧凑、单行展示 */
.wheels-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.wheels-summary > div {
  display: grid;
  gap: 1px;
  padding: 6px 8px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f7f0f5);
  text-align: center;
}

.wheels-summary span {
  color: #868991;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.wheels-summary strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 900;
}

/* 滚动容器底部留出按钮的占位空间，避免内容被 sticky 按钮遮住 */
.sheet-body:has(.wheels-board) {
  padding-bottom: 96px;
}

/* === Loading 魔法棒（缩小 30%） === */
.wizard-wand {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffe1ea 60%, #ffd0dd 100%);
  color: var(--brand);
  box-shadow:
    0 0 0 0 rgba(215, 0, 80, 0.32),
    0 8px 20px rgba(215, 0, 80, 0.18);
  animation: wandPulse 1.4s ease-in-out infinite;
}

.wizard-wand svg {
  width: 27px;
  height: 27px;
  animation: wandSpin 2.4s linear infinite;
}

.wizard-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.9);
  top: 6px;
  left: 10px;
  animation: wandSpark 1.4s ease-in-out infinite;
}

.wizard-spark.two {
  top: auto;
  left: auto;
  bottom: 8px;
  right: 10px;
  width: 4px;
  height: 4px;
  animation-delay: 0.5s;
}

@keyframes wandPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(215, 0, 80, 0.32), 0 8px 20px rgba(215, 0, 80, 0.18);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 12px rgba(215, 0, 80, 0), 0 12px 26px rgba(215, 0, 80, 0.28);
  }
}

@keyframes wandSpin {
  from {
    transform: rotate(-12deg);
  }
  50% {
    transform: rotate(18deg);
  }
  to {
    transform: rotate(-12deg);
  }
}

@keyframes wandSpark {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.loading-panel {
  display: grid;
  min-height: 260px;
  place-items: center;
  text-align: center;
}

.pulse-logo {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(215, 0, 80, 0.24);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 18px rgba(215, 0, 80, 0);
  }
}

.plan-card,
.source-card,
.coach-card,
.form-card {
  padding: 13px;
}

.plan-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
}

.day-badge {
  display: grid;
  min-height: 58px;
  place-items: center;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.source-grid {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.backing-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.backing-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 0, 80, 0.035), rgba(217, 181, 109, 0.08)),
    #fff;
  box-shadow: 0 10px 28px rgba(21, 22, 26, 0.06);
}

.backing-card .book-cover.mini {
  width: 54px;
  min-height: 72px;
}

.backing-card span {
  display: block;
  color: #9b7b44;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.backing-card h3 {
  margin: 5px 0 4px;
  font-size: 15px;
  line-height: 1.25;
}

.backing-card p {
  margin: 0;
  color: #666a72;
  font-size: 12px;
  line-height: 1.5;
}

.model-mark {
  display: grid;
  width: 54px;
  min-height: 72px;
  place-items: center;
  border-radius: 8px;
  background: #111;
  color: #d9b56d;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 24px;
  font-weight: 700;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.text-action svg {
  width: 14px;
  height: 14px;
}

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

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

.field label {
  color: #868991;
  font-size: 12px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  outline: 0;
  background: #f5f7fa;
  color: var(--ink);
}

.field input,
.field select {
  height: 44px;
  padding: 0 12px;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

.field.full {
  grid-column: 1 / -1;
}

.member-plan-entry {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 13px;
  align-items: start;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 251, 242, 0.96), rgba(247, 251, 250, 0.98)),
    #fff;
  box-shadow: 0 14px 34px rgba(21, 22, 26, 0.06);
}

.member-plan-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #15161a;
  color: #fff;
}

.member-plan-icon svg {
  width: 20px;
  height: 20px;
}

.member-plan-entry span {
  color: #9b7b44;
  font-size: 11px;
  font-weight: 900;
}

.member-plan-entry h3 {
  margin: 5px 0 6px;
  font-size: 21px;
  line-height: 1.15;
}

.member-plan-entry p {
  margin: 0;
  color: #5f6670;
  font-size: 12px;
  line-height: 1.65;
}

.custom-wish-field textarea {
  min-height: 128px;
  background: #fff;
  font-size: 15px;
}

.custom-wish-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 2px;
}

.custom-wish-flow span {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 72px;
  padding: 11px 8px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  color: #4f5661;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.custom-wish-flow svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.calendar-form {
  display: grid;
  gap: 10px;
}

.calendar-field,
.calendar-field-row {
  display: grid;
  gap: 7px;
}

.calendar-field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calendar-field {
  padding: 12px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
}

.calendar-field.primary {
  background: linear-gradient(180deg, #fff, #fafafa);
}

.calendar-field span {
  color: #868991;
  font-size: 12px;
  font-weight: 800;
}

.calendar-field input,
.calendar-field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
}

.calendar-field.primary input {
  font-size: 19px;
  font-weight: 900;
}

.calendar-field textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.5;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  margin: 14px -16px -24px;
  padding: 12px 16px 20px;
  border-top: 1px solid rgba(21, 22, 26, 0.08);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(16px);
}

.sticky-actions .primary-button,
.sticky-actions .ghost-button {
  flex: 1;
}

.coach-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
}

.coach-intro {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 22, 26, 0.06);
}

.coach-intro h3 {
  margin: 0;
  font-size: 15px;
}

.coach-intro p,
.coach-intro span {
  display: block;
  margin-top: 4px;
  color: #666a72;
  font-size: 12px;
  line-height: 1.45;
}

.booking-coach-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 22, 26, 0.06);
}

.booking-coach-head h3 {
  margin: 0;
  font-size: 15px;
}

.booking-coach-head p {
  margin: 4px 0 0;
  color: #666a72;
  font-size: 12px;
  line-height: 1.45;
}

.booking-calendar {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.booking-dates {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.booking-dates button {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.booking-dates button.full {
  color: #b0b3ba;
}

.booking-dates button.has-open strong {
  color: var(--green);
}

.booking-dates button.active {
  border-color: rgba(14, 110, 91, 0.3);
  background: var(--green);
  color: #fff;
}

.booking-dates button.active strong {
  color: #fff;
}

.booking-dates span {
  font-size: 10px;
}

.booking-dates strong {
  font-size: 17px;
}

.booking-slots {
  display: grid;
  gap: 8px;
}

.booking-slots button {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.booking-slots button.available span,
.booking-slots button.available strong {
  color: var(--green);
}

.booking-slots button.selected {
  border-color: rgba(14, 110, 91, 0.36);
  background: rgba(14, 110, 91, 0.08);
}

.booking-slots button.booked {
  cursor: not-allowed;
  opacity: 0.45;
}

.booking-slots span {
  font-size: 12px;
  font-weight: 900;
}

.booking-slots strong {
  font-size: 12px;
}

.booking-note {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(14, 110, 91, 0.08);
  color: #235a50;
  font-size: 12px;
  line-height: 1.55;
}

.booking-list-head {
  padding: 13px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 240, 199, 0.72), rgba(255, 255, 255, 0.95)),
    #fff;
}

.booking-list-head span {
  color: #8f6c25;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.booking-list-head h3 {
  margin: 7px 0 5px;
  font-size: 18px;
}

.booking-list-head p {
  margin: 0;
  color: #626872;
  font-size: 12px;
  line-height: 1.55;
}

.my-booking-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.my-booking-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
}

.booking-date-badge {
  display: grid;
  width: 50px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.booking-date-badge span {
  font-size: 10px;
}

.booking-date-badge strong {
  font-size: 22px;
  line-height: 1;
}

.my-booking-card h3 {
  margin: 0;
  font-size: 15px;
}

.my-booking-card p,
.my-booking-card em {
  display: block;
  margin: 4px 0 0;
  color: #666a72;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.booking-card-actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.booking-status {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(14, 110, 91, 0.1);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.text-action.danger {
  margin-top: 0;
  color: #a64646;
}

.booking-empty-state {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 12px;
  padding: 16px;
  border: 1px dashed rgba(21, 22, 26, 0.16);
  border-radius: 8px;
  background: #fff;
}

.booking-empty-state svg {
  color: var(--green);
}

.booking-empty-state h3 {
  margin: 0;
  font-size: 17px;
}

.booking-empty-state p {
  margin: 0;
  color: #666a72;
  font-size: 12px;
  line-height: 1.5;
}

.support-training {
  padding: 12px;
  border: 1px solid rgba(45, 98, 204, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(219, 233, 255, 0.75), rgba(255, 255, 255, 0.9)),
    #fff;
}

.support-training h3 {
  margin: 7px 0 5px;
  font-size: 16px;
}

.support-training p {
  margin: 0;
  color: #555d69;
  font-size: 12px;
  line-height: 1.55;
}

.chat-thread {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(21, 22, 26, 0.06);
  border-radius: 8px;
  background: #f3f4f6;
}

.chat-bubble {
  position: relative;
  max-width: 84%;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.chat-bubble.assistant {
  justify-self: start;
  border: 1px solid rgba(21, 22, 26, 0.08);
  background: #fff;
  color: var(--ink);
}

.chat-bubble.user {
  justify-self: end;
  background: #a9e87a;
  color: #172314;
  white-space: pre-wrap;
}

.chat-bubble.assistant::before,
.chat-bubble.user::after {
  position: absolute;
  top: 12px;
  width: 9px;
  height: 9px;
  background: inherit;
  content: "";
  transform: rotate(45deg);
}

.chat-bubble.assistant::before {
  left: -5px;
  border-bottom: 1px solid rgba(21, 22, 26, 0.08);
  border-left: 1px solid rgba(21, 22, 26, 0.08);
}

.chat-bubble.user::after {
  right: -4px;
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble p + p,
.chat-bubble ul + p,
.chat-bubble p + ul {
  margin-top: 6px;
}

.chat-bubble ul {
  margin: 0;
  padding-left: 18px;
}

.chat-bubble li + li {
  margin-top: 4px;
}

.chat-heading {
  font-weight: 900;
}

.chat-bubble code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(21, 22, 26, 0.07);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.chat-composer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 10px -16px -24px;
  padding: 12px 16px 20px;
  border-top: 1px solid rgba(21, 22, 26, 0.08);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(16px);
}

.chat-composer textarea {
  min-height: 42px;
  max-height: 92px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 8px;
  background: #fff;
  line-height: 1.45;
}

.vision-board-brief,
.vision-board-empty {
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 0, 80, 0.06), rgba(217, 181, 109, 0.1)),
    #fff;
}

.vision-board-brief span,
.vision-board-empty span {
  color: #9b7b44;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.vision-board-brief h3,
.vision-board-empty h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}

.vision-board-brief p,
.vision-board-empty p {
  margin: 0;
  color: #666a72;
  font-size: 13px;
  line-height: 1.6;
}

.vision-board-empty .primary-button {
  margin-top: 14px;
}

.coach-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.ai-note {
  margin-top: 8px;
  padding: 10px;
  border: 1px dashed rgba(215, 0, 80, 0.26);
  border-radius: 8px;
  background: rgba(215, 0, 80, 0.06);
  color: #6b293f;
  font-size: 12px;
  line-height: 1.55;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: calc(var(--nav-height) + 18px);
  z-index: 40;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  transform: translateX(50%);
  box-shadow: var(--shadow);
}

@media (max-width: 360px) {
  .screen {
    padding-right: 12px;
    padding-left: 12px;
  }

  .masonry {
    column-gap: 10px;
  }

  .hero h2 {
    font-size: 25px;
  }

  .book-card {
    grid-template-columns: 64px 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}


/* === Achievement badge wall === */
.achievement-badge-wall {
  margin: 0 0 14px;
  padding: 15px;
  border: 1px solid rgba(107, 84, 47, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 232, 0.68)),
    #fffdf9;
  box-shadow: 0 12px 34px rgba(21, 22, 26, 0.06);
}

.achievement-badge-wall header {
  margin-bottom: 13px;
}

.achievement-badge-wall header h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
}

.achievement-badge-wall header p {
  margin: 0;
  color: #686d76;
  font-size: 12px;
  line-height: 1.55;
}

.achievement-badge-wall.empty .badge-wall-canvas {
  display: none;
}

.badge-wall-canvas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 118px;
  padding: 14px 8px 12px;
  border: 1px solid rgba(107, 84, 47, 0.08);
  border-radius: 8px;
  background-image:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle at 86% 70%, rgba(217, 181, 109, 0.13), transparent 28%),
    linear-gradient(90deg, rgba(107, 84, 47, 0.035) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, rgba(107, 84, 47, 0.03) 0 1px, transparent 1px 22px);
  background-color: #f8f3ea;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.badge-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  cursor: default;
  transform-origin: 50% 30%;
  transition: transform 0.25s ease;
}

.badge-pin-image-wrap {
  width: min(76px, 100%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  filter: none;
}

.badge-pin-image-wrap img {
  width: 98%;
  height: 98%;
  object-fit: contain;
  display: block;
}

.badge-pin-image-wrap.loading {
  border: 1px solid rgba(217, 181, 109, 0.22);
  background:
    radial-gradient(circle at 35% 25%, #fff, #f5ead3 74%);
}

.badge-pin-loading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-pin-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(218, 165, 32, 0.3);
  border-top-color: rgba(218, 165, 32, 0.9);
  border-radius: 50%;
  animation: badge-pin-spin 0.9s linear infinite;
}

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

.badge-pin-fallback {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(217, 181, 109, 0.68);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, #fff 0%, #f7efd8 66%, #ebd6a0 100%);
  color: #9b7b44;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.badge-pin-label {
  width: 100%;
  max-width: 78px;
  color: #343941;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

/* === Badge collection center === */
.wish-badge-module {
  overflow: hidden;
  padding: 0;
  border-color: rgba(126, 96, 49, 0.12);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 224, 145, 0.3), transparent 28%),
    linear-gradient(145deg, #fffdf8, #f8f3e9);
}

.badge-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 14px 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.badge-module-head > span {
  display: grid;
  gap: 3px;
}

.badge-module-head strong {
  font-size: 20px;
  line-height: 1.15;
}

.badge-module-head em {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--brand);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.badge-module-head em svg {
  width: 15px;
  height: 15px;
}

.wish-badge-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px 9px 14px;
}

.wish-badge-empty {
  padding: 0 14px 15px;
}

.wish-badge-empty p {
  margin: 9px 0 0;
  color: #696760;
  font-size: 11px;
  line-height: 1.5;
}

.ghost-badge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ghost-badge-row span {
  display: grid;
  width: 58px;
  height: 58px;
  place-self: center;
  place-items: center;
  clip-path: polygon(50% 0%, 92% 18%, 100% 62%, 72% 100%, 28% 100%, 0 62%, 8% 18%);
  background: linear-gradient(145deg, #e8e7e4, #d5d4d1);
  color: rgba(255, 255, 255, 0.72);
}

.ghost-badge-row svg {
  width: 22px;
  height: 22px;
}

.collectible-badge {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 11px 5px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--ink);
  text-align: center;
}

button.collectible-badge {
  cursor: pointer;
}

.collectible-badge .badge-pin-image-wrap {
  position: relative;
  display: grid;
  width: 84px;
  max-width: 100%;
  place-items: center;
  aspect-ratio: 1;
  filter: none;
  transition: filter 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.collectible-badge .badge-pin-image-wrap::before {
  position: absolute;
  inset: 6px;
  z-index: -1;
  clip-path: polygon(50% 0%, 89% 17%, 100% 58%, 76% 92%, 50% 100%, 24% 92%, 0 58%, 11% 17%);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.92), transparent 22%),
    linear-gradient(145deg, #f2c55a, #c57818);
  box-shadow: 0 10px 22px rgba(116, 75, 22, 0.16);
  content: "";
}

.collectible-badge.green .badge-pin-image-wrap::before {
  background: linear-gradient(145deg, #9bd8aa, #24795f);
}

.collectible-badge.rose .badge-pin-image-wrap::before {
  background: linear-gradient(145deg, #ffabc3, #c72c68);
}

.collectible-badge.orange .badge-pin-image-wrap::before {
  background: linear-gradient(145deg, #ffc66f, #e65d24);
}

.collectible-badge.blue .badge-pin-image-wrap::before {
  background: linear-gradient(145deg, #a8d8ff, #3d6fb6);
}

.collectible-badge.violet .badge-pin-image-wrap::before {
  background: linear-gradient(145deg, #c5b7ef, #6e51a9);
}

.collectible-badge.locked .badge-pin-image-wrap {
  filter: grayscale(1);
  opacity: 0.23;
}

.collectible-badge.unlocked .badge-pin-image-wrap {
  animation: badge-awaken 0.48s cubic-bezier(0.2, 0.75, 0.25, 1.18) both;
}

@keyframes badge-awaken {
  from { opacity: 0.35; transform: scale(0.84) rotate(-4deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.collectible-badge .badge-pin-image-wrap img {
  position: relative;
  z-index: 1;
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.collectible-badge .badge-pin-fallback {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.76);
  color: #7f5424;
  font-size: 11px;
}

.badge-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.badge-symbol svg {
  width: 29px;
  height: 29px;
  stroke-width: 2.3;
}

.badge-state-mark {
  position: absolute;
  right: 3px;
  bottom: 5px;
  z-index: 3;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  color: #8f9298;
  box-shadow: 0 5px 12px rgba(21, 22, 26, 0.14);
}

.unlocked .badge-state-mark {
  background: var(--brand);
  color: #fff;
}

.badge-state-mark svg {
  width: 12px;
  height: 12px;
}

.collectible-badge h3 {
  width: 100%;
  margin: 7px 0 0;
  overflow: hidden;
  color: #2b2d31;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collectible-badge.locked h3 {
  color: #9da0a5;
}

.collectible-badge p {
  min-height: 32px;
  margin: 5px 0 0;
  color: #777b83;
  font-size: 10px;
  line-height: 1.45;
}

.badge-progress {
  display: inline-flex;
  margin-top: 5px;
  color: #a0a2a7;
  font-size: 10px;
  font-weight: 800;
}

.collectible-badge.unlocked .badge-progress {
  color: var(--brand);
}

.collectible-badge.compact {
  padding: 6px 2px 2px;
}

.collectible-badge.compact .badge-pin-image-wrap {
  width: 74px;
}

.collectible-badge.compact h3 {
  font-size: 11px;
}

.badge-center {
  display: grid;
  gap: 15px;
}

.badge-center-hero {
  position: relative;
  min-height: 166px;
  overflow: hidden;
  padding: 20px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 205, 97, 0.3), transparent 30%),
    radial-gradient(circle at 74% 105%, rgba(215, 0, 80, 0.36), transparent 38%),
    #19191d;
  color: #fff;
  box-shadow: 0 18px 38px rgba(21, 22, 26, 0.17);
}

.badge-center-hero::after {
  position: absolute;
  top: 24px;
  right: 20px;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.035), 0 0 0 25px rgba(255, 255, 255, 0.025);
  content: "";
}

.badge-center-hero > span {
  color: #f2cb76;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.badge-center-hero h3 {
  max-width: 230px;
  margin: 10px 0 7px;
  font-family: "Songti SC", Georgia, serif;
  font-size: 22px;
  line-height: 1.28;
}

.badge-center-hero p {
  max-width: 242px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.5;
}

.badge-center-hero > strong {
  display: block;
  margin-top: 14px;
  color: #f2cb76;
  font-size: 25px;
}

.badge-center-hero > strong small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 700;
}

.badge-category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(21, 22, 26, 0.07);
  border-radius: 999px;
  background: #f1f0ed;
}

.badge-category-tabs button {
  min-height: 34px;
  border-radius: 999px;
  background: transparent;
  color: #797c83;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.badge-category-tabs button.active {
  background: #19191d;
  color: #fff;
  box-shadow: 0 7px 16px rgba(21, 22, 26, 0.15);
}

.badge-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 4px;
  align-items: start;
}

.badge-collection-grid .collectible-badge {
  min-height: 188px;
  border: 1px solid rgba(21, 22, 26, 0.06);
  background: rgba(255, 255, 255, 0.78);
}

.badge-collection-grid.achievement-badges .badge-pin-image-wrap,
.badge-collection-grid.achievement-badges .badge-pin-image-wrap::before {
  border-radius: 50%;
}

.badge-collection-grid.achievement-badges .badge-pin-image-wrap::before {
  clip-path: circle(50%);
}

.badge-center-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 18px;
  border: 1px dashed rgba(21, 22, 26, 0.15);
  border-radius: 14px;
  background: #f7f7f5;
  text-align: center;
}

.badge-center-empty > svg {
  width: 38px;
  height: 38px;
  color: #b4b5b7;
}

.badge-center-empty h3,
.badge-center-empty p {
  margin: 0;
}

.badge-center-empty p {
  color: #777b83;
  font-size: 12px;
}

/* === Editable wish badge collage === */
.wish-badge-collage {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(92, 68, 31, 0.1);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 212, 85, 0.2), transparent 30%),
    radial-gradient(circle at 18% 16%, rgba(116, 171, 255, 0.13), transparent 24%),
    radial-gradient(circle at 87% 82%, rgba(255, 106, 153, 0.12), transparent 23%),
    #fffefa;
  box-shadow: inset 0 0 42px rgba(120, 85, 28, 0.035);
  touch-action: none;
}

.wish-badge-collage.editable {
  min-height: 466px;
}

.wish-badge-collage.compact {
  width: calc(100% - 20px);
  min-height: 274px;
  margin: 0 10px 10px;
  cursor: pointer;
}

.badge-wall-orbit {
  position: absolute;
  z-index: -1;
  border: 1px dashed rgba(173, 131, 55, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.badge-wall-orbit.orbit-one {
  inset: 15% 13%;
  transform: rotate(-9deg);
}

.badge-wall-orbit.orbit-two {
  inset: 5% 28%;
  transform: rotate(24deg);
}

.badge-wall-pin {
  position: absolute;
  z-index: 2;
  width: 25%;
  transform: rotate(var(--pin-rotate, 0deg)) scale(var(--pin-scale, 1));
  transform-origin: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: filter 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.badge-wall-pin.portrait {
  z-index: 4;
  width: 46%;
}

.wish-badge-collage.compact .badge-wall-pin {
  width: 22%;
  pointer-events: none;
}

.wish-badge-collage.compact .badge-wall-pin.portrait {
  width: 43%;
  pointer-events: auto;
}

.badge-wall-pin.dragging {
  z-index: 10;
  cursor: grabbing;
  filter: drop-shadow(0 14px 13px rgba(31, 26, 17, 0.18));
}

.badge-wall-pin-art {
  position: relative;
  display: grid;
  width: 100%;
  place-items: center;
  aspect-ratio: 1;
}

.badge-wall-pin-art > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 7px 5px rgba(45, 34, 18, 0.13));
}

.badge-wall-pin.locked .badge-wall-pin-art {
  filter: grayscale(1);
  opacity: 0.26;
}

.badge-wall-pin.unlocked .badge-wall-pin-art {
  animation: badge-awaken 0.48s cubic-bezier(0.2, 0.75, 0.25, 1.18) both;
}

.badge-wall-pin .badge-pin-fallback {
  display: grid;
  width: 76%;
  place-items: center;
  aspect-ratio: 1;
  border: 3px solid #b7b7b7;
  border-radius: 36% 44% 34% 46%;
  background: #dededc;
  color: #777;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.badge-wall-pin .badge-pin-loading {
  width: 70%;
  aspect-ratio: 1;
  border: 3px solid #bebebc;
  border-radius: 42% 37% 45% 38%;
  background: linear-gradient(135deg, #eeeeec, #d7d7d4);
}

.pin-mini-loader {
  position: absolute;
  width: 28%;
  min-width: 18px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-top-color: #777;
  border-radius: 50%;
  animation: badge-spin 0.8s linear infinite;
}

.badge-wall-pin-name {
  position: absolute;
  top: calc(100% - 3px);
  left: 50%;
  max-width: 104px;
  padding: 3px 7px;
  overflow: hidden;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #34363b;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(21, 22, 26, 0.07);
  pointer-events: none;
}

.badge-wall-pin.selected::after {
  position: absolute;
  inset: -5px;
  border: 1.5px dashed var(--brand);
  border-radius: 13px;
  content: "";
  pointer-events: none;
}

.badge-wall-resize,
.badge-wall-rotate {
  position: absolute;
  z-index: 8;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 5px 12px rgba(215, 0, 80, 0.25);
}

.badge-wall-resize {
  right: -12px;
  bottom: -12px;
  cursor: nwse-resize;
}

.badge-wall-rotate {
  top: -12px;
  right: -12px;
  background: #19191d;
  cursor: grab;
  box-shadow: 0 5px 12px rgba(21, 22, 26, 0.22);
}

.badge-wall-rotate:active {
  cursor: grabbing;
}

.badge-wall-resize svg,
.badge-wall-rotate svg {
  width: 13px;
  height: 13px;
  pointer-events: none;
}

.portrait-art {
  border-radius: 30%;
}

.portrait-art > img.source-preview {
  width: 82%;
  height: 82%;
  border: 4px solid #b8b8b5;
  border-radius: 45%;
  object-fit: cover;
  filter: grayscale(1);
}

.portrait-placeholder {
  display: grid;
  width: 88%;
  place-items: center;
  aspect-ratio: 0.82;
  padding: 16% 8% 12%;
  border: 2px dashed #a9aaa8;
  border-radius: 42% 42% 34% 34%;
  background:
    radial-gradient(circle at 50% 30%, #e8e8e6 0 18%, transparent 19%),
    linear-gradient(145deg, #efefed, #d9d9d6);
  color: #7e807f;
  cursor: pointer;
  text-align: center;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.34);
}

.portrait-placeholder > span {
  display: grid;
  width: 44%;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.portrait-placeholder svg {
  width: 55%;
  height: 55%;
}

.portrait-placeholder strong {
  margin-top: 6px;
  color: #555856;
  font-size: 10px;
  line-height: 1.15;
}

.portrait-placeholder small {
  margin-top: 2px;
  font-size: 7px;
  line-height: 1.2;
}

.portrait-placeholder input,
.portrait-replace input {
  display: none;
}

.portrait-replace {
  position: absolute;
  right: 4px;
  bottom: 8px;
  z-index: 7;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #19191d;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(21, 22, 26, 0.18);
}

.portrait-replace svg {
  width: 13px;
  height: 13px;
}

.portrait-generating {
  position: absolute;
  bottom: 2px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(25, 25, 29, 0.88);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
}

.portrait-generating i {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: badge-spin 0.8s linear infinite;
}

.badge-wall-first-wish {
  position: absolute;
  right: 13%;
  bottom: 8%;
  left: 13%;
  margin: 0;
  color: #94928c;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.badge-wall-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge-wall-toolbar > div {
  display: grid;
  gap: 3px;
}

.badge-wall-toolbar strong {
  font-size: 16px;
}

.badge-wall-toolbar span {
  color: #7c7f85;
  font-size: 10px;
}

.badge-wall-toolbar button {
  display: inline-flex;
  min-width: 64px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(21, 22, 26, 0.09);
  border-radius: 999px;
  background: #f4f3f0;
  color: #55585e;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.badge-wall-toolbar button svg {
  width: 13px;
  height: 13px;
}

.badge-wall-empty-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 13px;
  background: #f5f4f1;
}

.badge-wall-empty-action p {
  margin: 0;
  color: #686b71;
  font-size: 10px;
  line-height: 1.45;
}

.badge-wall-empty-action .ghost-button {
  min-width: 88px;
  padding: 9px 10px;
  font-size: 10px;
}

/* 今日行动详解 sheet 三段式样式 */
.action-guide-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(21, 22, 26, 0.12);
}
.action-guide-section:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}
.action-guide-section .section-head {
  margin-bottom: 10px;
}
.action-guide-section .section-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.theory-body {
  margin: 6px 0 0;
  padding: 12px 14px;
  background: rgba(124, 92, 255, 0.06);
  border-left: 3px solid #7c5cff;
  border-radius: 6px;
  color: #2b2f36;
  font-size: 14px;
  line-height: 1.7;
}
.course-video-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(21, 22, 26, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, #f7f4ff 0%, #ffffff 100%);
}
.course-video-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #5b3fd1;
  background: rgba(124, 92, 255, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}
.course-video-title {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
}
.course-video-card .muted {
  margin: 4px 0 10px;
  color: #61646d;
  font-size: 12px;
}
.course-video-placeholder {
  padding: 22px 12px;
  text-align: center;
  background: rgba(21, 22, 26, 0.04);
  border-radius: 8px;
  color: #8a8d96;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.source-card .muted {
  margin: 4px 0 0;
  color: #61646d;
  font-size: 12px;
  line-height: 1.55;
}
.theory-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #61646d;
  font-size: 13px;
  background: rgba(124, 92, 255, 0.04);
  border-left-color: rgba(124, 92, 255, 0.4);
}
.theory-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(124, 92, 255, 0.2);
  border-top-color: #7c5cff;
  animation: theory-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes theory-spin {
  to { transform: rotate(360deg); }
}
.theory-error {
  border-left-color: #d97757;
  background: rgba(217, 119, 87, 0.06);
  color: #8b4f3a;
}

/* === 魔法杖交互动效 === */
/* "让它实现"按钮：魔法杖摆动 + 按钮光环脉冲 */
.primary-button--magic {
  position: relative;
  overflow: visible;
}

.primary-button--magic .lucide {
  transform-origin: 70% 90%;
  transition: transform 0.2s ease;
}

.primary-button--magic.is-casting {
  /* 按钮自身发出柔光，像被激活 */
  animation: magic-button-pulse 0.6s ease-out;
}

.primary-button--magic.is-casting .lucide {
  /* 魔法杖快速摆动两次 */
  animation: magic-wand-swing 0.6s ease-in-out;
}

.primary-button--magic.is-casting::after {
  /* 按钮外围的金色光圈 */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(242, 211, 139, 0.55);
  animation: magic-ring 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes magic-wand-swing {
  0%   { transform: rotate(0deg) scale(1); }
  20%  { transform: rotate(-22deg) scale(1.12); }
  45%  { transform: rotate(18deg) scale(1.18); }
  70%  { transform: rotate(-10deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1.05); }
}

@keyframes magic-button-pulse {
  0%   { box-shadow: 0 9px 22px rgba(215, 0, 80, 0.24), 0 0 0 0 rgba(242, 211, 139, 0.6); }
  40%  { box-shadow: 0 9px 22px rgba(215, 0, 80, 0.24), 0 0 0 14px rgba(242, 211, 139, 0.25); }
  100% { box-shadow: 0 9px 22px rgba(215, 0, 80, 0.24), 0 0 0 22px rgba(242, 211, 139, 0); }
}

@keyframes magic-ring {
  0%   { box-shadow: 0 0 0 0 rgba(242, 211, 139, 0.55); }
  100% { box-shadow: 0 0 0 18px rgba(242, 211, 139, 0); }
}

/* 粒子爆发：14 颗星光从按钮中心向四周飞散 */
.magic-burst {
  position: fixed;
  pointer-events: none;
  z-index: 999;
}

.magic-sparkle {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7df 0%, #f2d38b 55%, rgba(242, 211, 139, 0) 100%);
  box-shadow: 0 0 8px rgba(242, 211, 139, 0.9);
  opacity: 0;
  animation: magic-sparkle-fly 0.8s cubic-bezier(0.18, 0.7, 0.32, 1) forwards;
}

@keyframes magic-sparkle-fly {
  0% {
    transform: translate(0, 0) scale(0.2);
    opacity: 0;
  }
  20% {
    transform: translate(calc(var(--dx, 0px) * 0.3), calc(var(--dy, 0px) * 0.3)) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(0.3);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-button--magic.is-casting,
  .primary-button--magic.is-casting .lucide,
  .primary-button--magic.is-casting::after,
  .magic-sparkle {
    animation: none !important;
  }
}
