﻿:root {
  color-scheme: light;
  --bg: #fffaf7;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(116, 96, 146, 0.16);
  --text: #2b2438;
  --muted: #7c728f;
  --ink: #2b2438;
  --mint: #55d7b8;
  --cyan: #55c7f3;
  --coral: #ff8fa3;
  --gold: #f7c86f;
  --violet: #9d8cf4;
  --font-ui: Inter, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-body: 15px;
  --fs-body-lg: 16px;
  --fs-title: 22px;
  --fs-section: 28px;
  --fs-display: 38px;
  --lh-tight: 1.22;
  --lh-body: 1.68;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(85, 215, 184, 0.26), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(255, 143, 163, 0.24), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(157, 140, 244, 0.2), transparent 36%),
    linear-gradient(180deg, #fff9fd, #f7fcff 48%, #fffaf0);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 500;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  line-height: var(--lh-tight);
}

.app-shell {
  min-height: 100vh;
  padding: 92px 28px 110px;
}

.app-topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  width: 100%;
  height: 76px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.app-topbar h1 {
  margin: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  line-height: var(--lh-tight);
}

.top-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #2b2438;
  font-size: 24px;
}

.top-logo-button {
  overflow: hidden;
  background: linear-gradient(135deg, rgba(85, 215, 184, 0.24), rgba(255, 255, 255, 0.92));
  box-shadow: 0 8px 22px rgba(85, 215, 184, 0.18);
}

.top-logo-button img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
}

.app-screen {
  display: none;
}

.app-screen.is-active {
  display: block;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  gap: 22px;
  max-width: 1220px;
  margin: 0 auto;
}

.workspace.form-mode {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 520px);
  align-items: start;
  justify-content: stretch;
}

.screen-card,
.settings-hero,
.vip-card,
.tool-section {
  max-width: 940px;
  margin: 0 auto 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(116, 96, 146, 0.12);
  padding: 24px;
}

.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.screen-head > p {
  min-width: 0;
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  text-align: right;
}

.record-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.record-head-actions [data-open-screen="settings"] {
  color: #176f62;
  border-color: rgba(56, 194, 164, 0.34);
  background: rgba(226, 248, 242, 0.82);
}

.screen-head h2,
.settings-hero h2 {
  margin-bottom: 0;
  font-size: var(--fs-section);
  font-weight: 950;
  line-height: var(--lh-tight);
}

.compact {
  width: auto;
  height: 40px;
  padding: 0 16px;
}

.record-toolbar {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
  margin-bottom: 18px;
}

.search-box,
.filter-button {
  height: 52px;
  border: 0;
  border-radius: 16px;
  color: #b8b3c2;
  background: rgba(116, 96, 146, 0.08);
  padding: 0 18px;
  font-size: 16px;
  line-height: 52px;
}

.search-box {
  outline: none;
}

.search-box:focus {
  color: var(--text);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(85, 215, 184, 0.14);
}

.filter-button {
  color: #2b2438;
  background: #ffffff;
  font-weight: 850;
}

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

.record-list .history-item {
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
}

.record-list .history-item.record-profile-card,
.record-profile-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.4fr) minmax(260px, 1.1fr) minmax(210px, 0.8fr);
  align-items: center;
  gap: 16px;
  text-align: left;
}

.record-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.record-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(85, 215, 184, 0.18), rgba(247, 200, 111, 0.22));
  color: #2b2438;
  font-size: 15px;
  font-weight: 950;
}

.record-main strong {
  display: block;
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.record-type {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.record-main em {
  align-self: flex-start;
  border-radius: 999px;
  background: rgba(85, 215, 184, 0.16);
  color: #286c62;
  padding: 6px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.record-summary-row {
  display: grid;
  gap: 10px;
}

.record-profile-card p {
  margin: 0;
  color: #5e5471;
  line-height: 1.6;
}

.record-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-tags span {
  border-radius: 999px;
  background: rgba(116, 96, 146, 0.08);
  color: #5e5471;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

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

.record-detail-grid span {
  border-radius: 14px;
  background: rgba(116, 96, 146, 0.06);
  color: #5e5471;
  padding: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.record-detail-grid b {
  display: block;
  margin-bottom: 4px;
  color: #9f8242;
  font-size: 12px;
}

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

.record-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(116, 96, 146, 0.08);
  color: #2b2438;
  font-size: 13px;
  font-weight: 900;
}

.record-actions button:first-child {
  background: #2b2438;
  color: #fff;
}

.record-actions button.is-danger {
  background: rgba(208, 70, 70, 0.08);
  color: #a53b3b;
}

.record-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(54, 43, 72, 0.08);
}

.record-empty {
  min-height: 96px;
  align-items: center;
}

.quick-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-grid button,
.tool-grid button {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  overflow: hidden;
  min-height: 68px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 251, 0.84)),
    radial-gradient(circle at 96% 8%, rgba(85, 215, 184, 0.13), transparent 36%);
  color: #2b2438;
  padding: 14px 18px;
  font-weight: 850;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(116, 96, 146, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.tool-grid button strong {
  display: block;
  max-width: calc(100% - 22px);
  color: #2b2438;
  font-size: 15px;
  line-height: 1.15;
}

.tool-grid button span {
  display: block;
  max-width: calc(100% - 22px);
  margin-top: 6px;
  color: #81798e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.quick-grid button::after,
.tool-grid button::after {
  content: "›";
  position: absolute;
  right: 16px;
  top: 50%;
  color: #9f8242;
  font-size: 24px;
  font-weight: 900;
  transform: translateY(-50%);
}

.quick-grid button:hover,
.tool-grid button:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(231, 255, 248, 0.94), rgba(255, 248, 232, 0.9)),
    #fff;
  box-shadow: 0 14px 28px rgba(54, 43, 72, 0.08);
}

.text-link {
  border: 0;
  background: transparent;
  color: #9f8242;
  font-weight: 850;
}

.library-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  text-align: center;
  font-size: 16px;
}

.library-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(116, 96, 146, 0.08);
  color: #82798f;
  font-weight: 880;
}

.library-tabs button.is-active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(85, 215, 184, 0.24), rgba(247, 200, 111, 0.3));
}

.book-hero {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f2efe7);
  text-align: center;
}

.book-hero strong {
  font-size: 42px;
}

.book-hero span {
  color: var(--muted);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.book-grid div {
  display: grid;
  place-items: end center;
  min-height: 170px;
  border-radius: 18px;
  background: linear-gradient(160deg, #1f2850, #2e2458);
  color: #fff;
  padding: 18px;
  font-weight: 850;
}

.learn-hero {
  display: grid;
  gap: 12px;
  min-height: 0;
  margin-bottom: 18px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 18%, rgba(85, 215, 184, 0.26), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(255, 143, 163, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 239, 0.78));
  padding: 26px;
}

.learn-hero > span {
  color: #9f8242;
  font-size: 13px;
  font-weight: 950;
}

.learn-hero > strong {
  max-width: 720px;
  font-size: 32px;
  line-height: 1.18;
  font-weight: 950;
}

.learn-hero > p {
  max-width: 680px;
  margin-bottom: 0;
  color: #5e5471;
  font-size: 16px;
  line-height: 1.72;
}

.learn-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.learn-hero-actions > button,
.learn-hero > button {
  width: fit-content;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #2b2438;
  color: #ffffff;
  padding: 0 18px;
  font-weight: 880;
  white-space: nowrap;
}

.learn-hero-actions small {
  color: #7a708b;
  font-weight: 760;
}

.learn-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.learn-quick-card {
  display: grid;
  gap: 7px;
  min-height: 136px;
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 14px;
  text-align: left;
  box-shadow: 0 10px 28px rgba(54, 43, 72, 0.06);
}

.learn-quick-card i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(85, 215, 184, 0.22);
  color: #236b5a;
  font-style: normal;
  font-weight: 950;
}

.learn-quick-card strong {
  font-size: 17px;
  line-height: 1.28;
  font-weight: 950;
}

.learn-quick-card span {
  color: #5e5471;
  font-size: 13px;
  line-height: 1.55;
}

.learn-quick-card em {
  align-self: end;
  color: #9f8242;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.learn-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.learn-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.learn-card,
.learn-glossary {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  padding: 18px;
}

.learn-card {
  display: grid;
  align-content: start;
  min-height: 188px;
}

.learn-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 950;
}

.learn-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 950;
}

.learn-card p,
.learn-glossary p {
  margin-bottom: 0;
  color: #5e5471;
  font-size: 15px;
  line-height: 1.72;
}

.learn-card button {
  width: fit-content;
  min-height: 34px;
  margin-top: 16px;
  align-self: end;
  border: 0;
  border-radius: 999px;
  background: rgba(85, 215, 184, 0.18);
  color: #236b5a;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
}

.learn-glossary h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.glossary-intro {
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(85, 215, 184, 0.12);
  color: #3f3652;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.72;
}

#learnGlossary {
  display: grid;
  gap: 0;
}

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

.glossary-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-height: 108px;
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  padding: 15px 16px;
}

.glossary-item strong {
  color: #9f8242;
  font-size: 18px;
  line-height: var(--lh-tight);
  font-weight: 950;
  white-space: nowrap;
}

.glossary-item p {
  margin: 0 0 8px;
  color: #5e5471;
  font-size: 15px;
  line-height: 1.68;
}

.glossary-item small {
  display: block;
  color: #8f7a42;
  font-size: 14px;
  line-height: 1.68;
  font-weight: 760;
}

.glossary-item b {
  display: inline-block;
  margin-right: 8px;
  color: #2b2438;
  font-weight: 950;
}

.book-library {
  margin-top: 22px;
  border-top: 1px solid rgba(116, 96, 146, 0.12);
  padding-top: 22px;
}

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

.book-library-head h3 {
  margin-bottom: 0;
  font-size: 30px;
}

.book-library-head button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(116, 96, 146, 0.08);
  color: var(--muted);
  padding: 0 18px;
  font-weight: 880;
}

.book-search {
  display: block;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(116, 96, 146, 0.08);
  color: #b8b3c2;
  padding: 0 20px;
  line-height: 52px;
}

.book-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.book-search input::placeholder {
  color: #b8b3c2;
}

.book-domain-tabs,
.book-sub-tabs {
  display: grid;
  align-items: center;
  text-align: center;
  color: #82798f;
}

.book-domain-tabs button,
.book-sub-tabs button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.book-domain-tabs {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 14px;
  font-size: 20px;
}

.book-sub-tabs {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
  border-top: 1px solid rgba(116, 96, 146, 0.12);
  padding-top: 14px;
  font-size: 18px;
}

.book-domain-tabs .is-active,
.book-sub-tabs .is-active {
  color: #9f8242;
  font-weight: 950;
}

.book-domain-tabs .is-active::after,
.book-sub-tabs .is-active::after {
  content: "";
  display: block;
  width: 26px;
  height: 4px;
  margin: 4px auto 0;
  border-radius: 999px;
  background: #b79a55;
}

.comic-hero {
  display: grid;
  place-items: center;
  min-height: 210px;
  margin-bottom: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(116, 96, 146, 0.1), transparent 26%),
    linear-gradient(135deg, #ffffff, #f4f2ee);
  text-align: center;
}

.comic-hero strong {
  font-size: 42px;
  line-height: 1;
}

.comic-hero span {
  margin-top: 8px;
  color: var(--muted);
}

.featured-books,
.book-shelf {
  display: grid;
  gap: 14px;
}

.featured-books {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}

.featured-books article,
.book-shelf article {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(160deg, #1f2850, #2e2458);
  color: #fff;
}

.book-shelf article {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.book-shelf article:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(43, 36, 56, 0.16);
}

.featured-books article {
  min-height: 170px;
  align-items: end;
}

.featured-books article:nth-child(2) {
  background: linear-gradient(160deg, #1f5960, #244f63);
}

.featured-books article:nth-child(3) {
  background: linear-gradient(160deg, #262069, #443085);
}

.featured-books article:nth-child(4) {
  background: linear-gradient(160deg, #2d143b, #4a1f50);
}

.featured-books article::before,
.book-shelf article::before {
  content: "✓";
  position: absolute;
  inset: 0 auto 0 0;
  width: 20px;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.42) 0 1px, transparent 1px 38px);
}

.featured-books div,
.book-shelf strong,
.book-shelf span {
  position: relative;
  z-index: 1;
}

.featured-books div {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  padding: 14px 12px;
  text-align: center;
  font-weight: 900;
}

.book-shelf {
  grid-template-columns: repeat(3, 1fr);
}

.book-shelf article {
  min-height: 172px;
  align-content: end;
  padding: 18px 18px 18px 34px;
}

.book-shelf strong {
  writing-mode: vertical-rl;
  justify-self: end;
  margin-bottom: 12px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.9);
  color: #1f2850;
  padding: 8px 4px;
  font-size: 16px;
}

.book-shelf span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.book-theme-灞?{
  background: linear-gradient(160deg, #5a3f28, #8b683c) !important;
}

.book-theme-鍖?{
  background: linear-gradient(160deg, #eadfcd, #d8c4a8) !important;
  color: #2c2432 !important;
}

.book-theme-鍛?{
  background: linear-gradient(160deg, #202957, #2f245f) !important;
}

.book-theme-鐩?{
  background: linear-gradient(160deg, #073b55, #0c5c66) !important;
}

.book-theme-鍗?{
  background: linear-gradient(160deg, #2a235b, #4b2b78) !important;
}

.book-theme-鍖?strong {
  color: #2c2432;
  border-color: rgba(44, 36, 50, 0.38);
}

.book-theme-鍖?span {
  color: rgba(44, 36, 50, 0.72);
}

.book-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
  padding: 22px 0;
}

.book-detail-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: auto;
  background: #fff;
}

.book-detail-page {
  min-height: 100vh;
  padding: 24px 18px 118px;
  color: #292733;
}

.book-detail-back {
  min-height: 36px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 999px;
  background: #f2f1f3;
  color: #6f6878;
  padding: 0 14px;
  font-weight: 850;
}

.book-detail-hero {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: 240px;
  border-bottom: 1px solid #f0eef2;
  padding: 8px 8px 28px;
}

.book-cover-large {
  position: relative;
  display: grid;
  justify-items: end;
  align-content: center;
  min-height: 190px;
  overflow: hidden;
  border-radius: 18px;
  padding: 16px;
  color: #fff;
}

.book-cover-large::before {
  content: "✓";
  position: absolute;
  inset: 0 auto 0 0;
  width: 22px;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.42) 0 1px, transparent 1px 38px);
}

.book-cover-large strong {
  position: relative;
  writing-mode: vertical-rl;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.9);
  color: #1f2850;
  padding: 10px 5px;
  font-size: 22px;
  letter-spacing: 0;
}

.book-detail-hero h2 {
  margin: 10px 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

.book-detail-hero p {
  margin: 0 0 16px;
  color: #aaa5b0;
  font-size: 20px;
}

.book-detail-hero span {
  display: inline-block;
  border-radius: 999px;
  background: #f4f0e5;
  color: #9f8242;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.book-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 -18px;
  border-bottom: 12px solid #f5f5f6;
  padding: 26px 18px;
  background: #fff;
}

.book-stats article {
  display: grid;
  gap: 7px;
  text-align: center;
}

.book-stats article + article {
  border-left: 1px solid #ece9ee;
}

.book-stats span {
  color: #b0abb5;
  font-size: 13px;
}

.book-stats strong {
  color: #44404b;
  font-size: 26px;
  font-weight: 500;
}

.book-detail-content,
.book-intro,
.book-directory,
.book-reader {
  padding: 28px 8px 0;
}

.book-intro h3,
.book-directory h3,
.book-reader h3 {
  margin-bottom: 18px;
  font-size: 22px;
}

.book-intro p {
  color: #77727e;
  font-size: 17px;
  line-height: 2;
}

.book-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.book-keywords span {
  border-radius: 999px;
  background: #f4f0e5;
  color: #9f8242;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.book-directory div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 16px;
  border-top: 1px solid #efedf1;
  padding: 16px 0;
  color: #77727e;
}

.book-directory p {
  grid-column: 2;
  margin: -4px 0 0;
  color: #8d8794;
  font-size: 14px;
  line-height: 1.7;
}

.book-directory strong {
  color: #292733;
}

.book-reader {
  display: grid;
  gap: 14px;
}

.book-reader article {
  border-top: 1px solid #efedf1;
  padding-top: 16px;
}

.book-reader article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.book-reader span {
  display: block;
  margin-bottom: 8px;
  color: #9f8242;
  font-size: 14px;
  font-weight: 950;
}

.book-reader p {
  margin: 0;
  color: #6f6878;
  font-size: 17px;
  line-height: 2;
}

.book-source-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 9px;
  border-radius: 999px;
  background: #f1eff3;
  color: #8b8591;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.book-source-badge.is-complete {
  background: #e3f7f0;
  color: #167a65;
}

.book-source-state,
.book-original-intro {
  border: 1px solid #ebe7ed;
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.book-source-state h3,
.book-original-intro h3 {
  margin: 0 0 10px;
  color: #292733;
  font-size: 20px;
}

.book-source-state p,
.book-original-intro p {
  margin: 0;
  color: #746e79;
  font-size: 15px;
  line-height: 1.8;
}

.book-original-intro dl {
  display: grid;
  gap: 0;
  margin: 18px 0;
  border-top: 1px solid #efedf1;
}

.book-original-intro dl div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid #efedf1;
  padding: 12px 0;
}

.book-original-intro dt {
  color: #9b8248;
  font-weight: 800;
}

.book-original-intro dd {
  margin: 0;
  color: #514b57;
  overflow-wrap: anywhere;
}

.book-original-intro a {
  color: #167a65;
  font-weight: 800;
}

.book-directory {
  display: grid;
  gap: 0;
}

.book-directory button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  border-top: 1px solid #efedf1;
  border-radius: 0;
  background: transparent;
  padding: 15px 4px;
  text-align: left;
  cursor: pointer;
}

.book-directory button:hover {
  background: #faf9f7;
}

.book-directory button span {
  color: #a08a58;
  font-size: 12px;
  font-weight: 900;
}

.book-reader header {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid #efedf1;
  padding-bottom: 16px;
}

.book-reader header span {
  margin: 0;
}

.book-reader header h3 {
  margin: 0;
}

.ancient-original-text {
  color: #36313a;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 18px;
  line-height: 2.05;
  text-align: justify;
  overflow-wrap: break-word;
}

.book-reader nav {
  position: sticky;
  bottom: 82px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  border: 1px solid #ebe7ed;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px;
  backdrop-filter: blur(12px);
}

.book-reader nav button {
  min-height: 42px;
}

.book-reader nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.book-detail-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 81;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 12px;
  border-top: 1px solid #edeaf0;
  background: rgba(255, 255, 255, 0.94);
  padding: 16px 18px 24px;
  backdrop-filter: blur(16px);
}

.book-detail-actions button {
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: #f3f2f4;
  color: #5d5864;
  font-size: 16px;
  font-weight: 900;
}

.book-detail-actions .is-primary {
  background: #a98d4d;
  color: #fff;
}

.divination-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  padding: 7px;
  border-radius: 16px;
  background: rgba(116, 96, 146, 0.08);
}

.divination-modes button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 880;
}

.divination-modes button.is-active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(85, 215, 184, 0.24), rgba(247, 200, 111, 0.28));
}

.divination-system-note {
  margin: -6px 0 16px;
  border: 1px solid rgba(85, 215, 184, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  color: #5e5471;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.6;
}

.divination-cast-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: -4px 0 18px;
}

#screenDivination.is-liuren-system .divination-cast-methods,
#screenDivination.is-liuren-system [data-cast-panel="numbers"],
#screenDivination.is-liuren-system [data-cast-panel="coins"],
#screenDivination.is-liuren-system [data-cast-panel="lot"] {
  display: none;
}

.divination-cast-methods button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid rgba(116, 96, 146, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #5e5471;
  font-weight: 950;
}

.divination-cast-methods span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(247, 200, 111, 0.24);
  color: #9f8242;
  font-size: 13px;
}

.divination-cast-methods button.is-active {
  border-color: rgba(85, 215, 184, 0.5);
  background: linear-gradient(135deg, rgba(226, 255, 246, 0.95), rgba(255, 247, 228, 0.88));
  color: var(--ink);
}

.divination-time-scope {
  margin-bottom: 10px;
}

.divination-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.divination-time-grid label {
  display: grid;
  gap: 6px;
}

.divination-time-grid input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.divination-time-grid small {
  color: var(--muted);
  font-size: 12px;
}

.cast-help {
  margin: 0 0 12px;
  color: #5e5471;
  line-height: 1.66;
}

.number-cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.number-cast-grid label {
  display: grid;
  gap: 6px;
}

.number-cast-grid input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(85, 215, 184, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  padding: 0 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 950;
}

.number-cast-grid small {
  color: var(--muted);
  text-align: center;
}

.ghost-cast-button {
  min-height: 40px;
  border: 1px solid rgba(116, 96, 146, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #2b2438;
  padding: 0 16px;
  font-weight: 950;
}

.coin-stage {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(159, 130, 66, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 248, 232, 0.78), rgba(255, 255, 255, 0.72));
  padding: 12px;
}

.coin-stage.is-shaking,
.lot-stage.is-shaking {
  animation: castShake 0.52s ease;
}

.coin-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 78px;
  gap: 10px;
  align-items: center;
  color: #5e5471;
  font-size: 13px;
}

.coin-line > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coin-face {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(119, 72, 18, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 244, 190, 0.95), transparent 22%),
    radial-gradient(circle at 50% 50%, #d9a84a 0 48%, #a86b1c 67%, #6c3f12 100%);
  color: #4e2f0c;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  box-shadow:
    inset 0 0 0 3px rgba(255, 236, 167, 0.26),
    inset 0 0 0 7px rgba(90, 52, 12, 0.12),
    0 10px 18px rgba(119, 72, 18, 0.18);
  text-shadow: 0 1px 0 rgba(255, 237, 178, 0.58);
}

.coin-face::before {
  content: "✓";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(85, 48, 10, 0.24);
  border-radius: 50%;
}

.coin-face.is-yin {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 237, 180, 0.86), transparent 22%),
    radial-gradient(circle at 50% 50%, #bd8740 0 48%, #86541f 67%, #4d3118 100%);
  color: rgba(255, 238, 188, 0.9);
}

.coin-back-mark {
  position: absolute;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 229, 163, 0.42);
  border-radius: 50%;
  color: #ffe5a3;
  font-size: 14px;
  font-weight: 950;
}

.coin-back-line {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 229, 163, 0.26);
  border-radius: 50%;
}

.coin-back-line-a {
  transform: rotate(24deg) scaleX(0.72);
}

.coin-back-line-b {
  transform: rotate(-28deg) scaleX(0.72);
}

.coin-face.is-pending {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.8), transparent 22%),
    radial-gradient(circle at 50% 50%, #e8dcc6 0 48%, #cbb892 67%, #9d8b67 100%);
  color: rgba(78, 47, 12, 0.52);
}

.coin-char {
  position: absolute;
  line-height: 1;
}

.coin-top {
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
}

.coin-right {
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
}

.coin-bottom {
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
}

.coin-left {
  top: 50%;
  left: 7px;
  transform: translateY(-50%);
}

.coin-hole {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(85, 48, 10, 0.42);
  border-radius: 3px;
  background: rgba(255, 250, 232, 0.82);
  box-shadow: inset 0 2px 4px rgba(78, 47, 12, 0.18);
}

.coin-face b {
  position: absolute;
  right: -5px;
  bottom: -5px;
  min-width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(43, 36, 56, 0.88);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, "Microsoft YaHei", sans-serif;
  font-size: 10px;
  font-weight: 950;
  line-height: 16px;
  text-align: center;
  text-shadow: none;
}

.coin-face.is-yin b {
  background: rgba(37, 111, 99, 0.9);
}

.coin-line em {
  color: #9f8242;
  font-style: normal;
  font-weight: 950;
  text-align: right;
}

.coin-line.is-moving em {
  color: #d45555;
}

.lot-stage {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(85, 215, 184, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 8%, rgba(85, 215, 184, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(232, 255, 248, 0.78), rgba(255, 252, 244, 0.72)),
    rgba(255, 255, 255, 0.76);
  padding: 18px;
  text-align: center;
}

.lot-oracle {
  position: relative;
  width: 158px;
  height: 138px;
}

.lot-sticks {
  position: absolute;
  inset: 0 0 40px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 7px;
  transform-origin: bottom center;
}

.lot-sticks i {
  position: relative;
  width: 9px;
  height: 96px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), transparent 40%),
    linear-gradient(180deg, #f4df9d, #b78b3a 66%, #7d561f);
  box-shadow: 0 8px 16px rgba(119, 72, 18, 0.14);
  transform-origin: bottom center;
}

.lot-sticks i:nth-child(1) { height: 82px; transform: rotate(-22deg); }
.lot-sticks i:nth-child(2) { height: 92px; transform: rotate(-12deg); }
.lot-sticks i:nth-child(3) { height: 102px; transform: rotate(-3deg); }
.lot-sticks i:nth-child(4) { height: 98px; transform: rotate(7deg); }
.lot-sticks i:nth-child(5) { height: 88px; transform: rotate(15deg); }
.lot-sticks i:nth-child(6) { height: 78px; transform: rotate(24deg); }

.lot-sticks i::before {
  content: "✓";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 54px;
  border-radius: 999px;
  background: rgba(80, 49, 15, 0.22);
  transform: translateX(-50%);
}

.lot-sticks .is-drawn-stick {
  width: 20px;
  height: 118px;
  margin-bottom: 8px;
  border: 1px solid rgba(85, 48, 10, 0.18);
  border-radius: 999px 999px 10px 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), transparent 42%),
    linear-gradient(180deg, #fff5cf, #d6ac58 68%, #8b611f);
  transform: rotate(4deg) translateY(-16px);
  box-shadow: 0 18px 28px rgba(119, 72, 18, 0.16);
  z-index: 2;
}

.lot-sticks .is-drawn-stick b {
  position: absolute;
  top: 14px;
  left: 50%;
  writing-mode: vertical-rl;
  color: #6d4512;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 12px;
  line-height: 1;
  transform: translateX(-50%);
}

.lot-cup {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  display: grid;
  place-items: center;
  height: 70px;
  border: 1px solid rgba(85, 215, 184, 0.26);
  border-radius: 22px 22px 42px 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(211, 251, 241, 0.86)),
    radial-gradient(circle at 36% 16%, rgba(255, 255, 255, 0.95), transparent 36%);
  box-shadow:
    inset 0 -12px 20px rgba(37, 111, 99, 0.08),
    0 16px 30px rgba(85, 215, 184, 0.18);
}

.lot-cup::before {
  content: "✓";
  position: absolute;
  top: -7px;
  width: 104px;
  height: 16px;
  border: 1px solid rgba(85, 215, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.lot-cup span {
  position: relative;
  color: #256f63;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.lot-oracle.is-drawn .lot-sticks {
  animation: lotSticksLift 0.58s ease both;
}

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

.lot-stage p {
  max-width: 520px;
  margin: 0;
  color: #5e5471;
  line-height: 1.66;
}

.lot-card {
  display: grid;
  gap: 7px;
  width: min(100%, 520px);
  border: 1px solid rgba(85, 215, 184, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 255, 251, 0.84)),
    radial-gradient(circle at 95% 0%, rgba(247, 200, 111, 0.2), transparent 32%);
  padding: 15px 16px;
  text-align: left;
}

.lot-card span {
  justify-self: start;
  border-radius: 999px;
  background: rgba(85, 215, 184, 0.14);
  color: #256f63;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 950;
}

.lot-card strong {
  font-size: 22px;
}

.lot-card p {
  margin: 0;
}

.lot-card em {
  color: #5e5471;
  font-style: normal;
  line-height: 1.62;
}

.lot-card.is-empty {
  text-align: center;
}

.lot-card.is-empty span {
  justify-self: center;
}

.lot-reading {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  border: 1px solid rgba(159, 130, 66, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 248, 232, 0.9), rgba(236, 255, 249, 0.74));
  padding: 16px;
}

.lot-reading span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.lot-reading strong {
  margin: 0;
  font-size: 22px;
}

.lot-reading p {
  margin: 0;
  font-size: 15px;
}

.liuren-board {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  border: 1px solid rgba(85, 215, 184, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 8%, rgba(85, 215, 184, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 255, 251, 0.78));
  padding: 16px;
}

.liuren-summary {
  display: grid;
  gap: 6px;
}

.liuren-summary span,
.liuren-detail-grid span {
  color: #256f63;
  font-size: 12px;
  font-weight: 950;
}

.liuren-summary strong {
  color: var(--ink);
  font-size: 24px;
}

.liuren-summary p {
  margin: 0;
  color: #5e5471;
  line-height: 1.62;
}

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

.liuren-palaces article {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 88px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 8px;
}

.liuren-palaces article span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(85, 215, 184, 0.14);
  color: #256f63;
  font-size: 12px;
  font-weight: 950;
}

.liuren-palaces article strong {
  color: var(--ink);
  font-size: 16px;
}

.liuren-palaces article em {
  color: #7c728f;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.liuren-palaces article.is-active {
  border-color: rgba(85, 215, 184, 0.48);
  background: linear-gradient(135deg, rgba(224, 255, 247, 0.96), rgba(255, 252, 244, 0.82));
  box-shadow: 0 14px 30px rgba(85, 215, 184, 0.14);
}

.liuren-palaces article.is-active span {
  background: #256f63;
  color: #fff;
}

.liuren-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.liuren-detail-grid article {
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.68);
  padding: 12px;
}

.liuren-detail-grid strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 16px;
}

.liuren-detail-grid p {
  margin: 0;
  color: #5e5471;
  line-height: 1.58;
}

@keyframes castShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  18% { transform: translateX(-7px) rotate(-2deg); }
  36% { transform: translateX(7px) rotate(2deg); }
  54% { transform: translateX(-5px) rotate(-1deg); }
  72% { transform: translateX(5px) rotate(1deg); }
}

@keyframes lotSticksLift {
  0% { transform: translateY(10px) rotate(-1deg); }
  58% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.divination-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  margin: 14px 0;
}

.divination-quota-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 14px 0 6px;
  border: 1px solid rgba(85, 215, 184, 0.28);
  border-radius: 16px;
  background: linear-gradient(105deg, rgba(233, 255, 248, 0.86), rgba(255, 249, 231, 0.78));
  padding: 14px 16px;
}

.divination-quota-panel span {
  display: block;
  color: #9f8242;
  font-size: 12px;
  font-weight: 900;
}

.divination-quota-panel strong {
  display: block;
  margin: 2px 0 4px;
  font-size: 22px;
}

.divination-quota-panel p {
  margin: 0;
  color: #685c78;
  font-size: 14px;
  line-height: 1.45;
}

.divination-quota-panel button {
  min-width: 118px;
  border: 0;
  border-radius: 999px;
  background: #2b223c;
  color: #fff;
  padding: 11px 15px;
  font-weight: 900;
}

.divination-result {
  min-height: 190px;
  margin: 18px 0;
  border: 1px solid rgba(116, 96, 146, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 18%, rgba(85, 215, 184, 0.22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(247, 200, 111, 0.22), transparent 28%),
    rgba(255, 255, 255, 0.76);
  padding: 22px;
}

.divination-result span {
  display: block;
  margin-bottom: 10px;
  color: #9f8242;
  font-size: 13px;
  font-weight: 900;
}

.divination-result strong {
  display: block;
  margin-bottom: 12px;
  font-size: 26px;
}

.divination-result p {
  margin-bottom: 12px;
  color: #4f455f;
  font-size: 17px;
  line-height: 1.72;
}

.meihua-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.meihua-board article,
.next-step-card {
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.meihua-board article span,
.next-step-card span {
  margin-bottom: 4px;
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.meihua-board article strong,
.next-step-card strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 18px;
}

.meihua-board article p {
  margin: 0;
  font-size: 14px;
}

.reading-answer,
.action-list-card {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  border: 1px solid rgba(85, 215, 184, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(236, 255, 249, 0.82), rgba(255, 248, 232, 0.7));
  padding: 16px;
}

.reading-answer span,
.action-list-card span,
.reading-detail-grid span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.reading-answer strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.35;
}

.reading-answer p,
.action-list-card p,
.reading-detail-grid p {
  margin: 0;
  color: #4f455f;
  font-size: 15px;
  line-height: 1.68;
}

.reading-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.reading-detail-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.followup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.followup-chips button {
  min-height: 36px;
  border: 1px solid rgba(85, 215, 184, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #2b2438;
  padding: 0 12px;
  font-weight: 900;
}

.next-step-card {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  background: linear-gradient(135deg, rgba(255, 248, 232, 0.86), rgba(232, 255, 248, 0.72));
}

.next-step-card button {
  justify-self: start;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: #2b2438;
  color: #fff;
  padding: 0 14px;
  font-weight: 900;
}

.divination-result em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.divination-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.divination-grid button {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  padding: 18px;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 14px 28px rgba(31, 25, 44, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.divination-grid button:hover,
.divination-grid button:focus-visible,
.divination-grid button.is-active {
  border-color: rgba(85, 215, 184, 0.72);
  box-shadow: 0 18px 34px rgba(31, 25, 44, 0.1);
  transform: translateY(-2px);
}

.divination-grid span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.divination-grid strong {
  display: block;
  font-size: 17px;
}

.divination-grid p {
  margin-bottom: 0;
  color: #5e5471;
  line-height: 1.62;
}

.divination-result-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.divination-result-actions button {
  min-height: 42px;
  border: 1px solid rgba(116, 96, 146, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 900;
}

.divination-result-actions button:first-child {
  background: #2b2438;
  color: #fff;
}

.divination-result-actions button.is-done {
  border-color: rgba(85, 215, 184, 0.44);
  background: linear-gradient(135deg, rgba(85, 215, 184, 0.26), rgba(247, 200, 111, 0.24));
  color: #235b50;
}

.divination-result-actions button:disabled {
  cursor: default;
  opacity: 0.72;
}

.divination-action-status {
  min-height: 22px;
  margin-top: 4px;
  color: #7a708b;
  font-size: 13px;
  font-weight: 780;
}

.settings-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  border-color: rgba(85, 215, 184, 0.2);
  background:
    linear-gradient(135deg, rgba(242, 255, 251, 0.94), rgba(255, 251, 244, 0.82)),
    radial-gradient(circle at 12% 20%, rgba(85, 215, 184, 0.22), transparent 34%);
  color: var(--ink);
  box-shadow: 0 18px 52px rgba(85, 215, 184, 0.12);
}

.profile-logo {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(85, 215, 184, 0.2);
}

.vip-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 16px;
  border-color: rgba(85, 215, 184, 0.28);
  background:
    linear-gradient(135deg, rgba(230, 255, 248, 0.94), rgba(255, 252, 244, 0.9)),
    radial-gradient(circle at 92% 10%, rgba(247, 200, 111, 0.22), transparent 34%);
  box-shadow: 0 18px 52px rgba(85, 215, 184, 0.13);
}

.vip-card strong {
  font-size: 24px;
}

.vip-card span {
  color: #567066;
}

.vip-card button {
  grid-row: 1 / span 2;
  border: 0;
  border-radius: 999px;
  background: #256f63;
  color: #fff;
  padding: 12px 18px;
  box-shadow: 0 12px 26px rgba(37, 111, 99, 0.2);
}

.membership-section {
  display: grid;
  gap: 14px;
  max-width: 940px;
  margin: 0 auto 18px;
  border: 1px solid rgba(85, 215, 184, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  padding: 18px;
}

.membership-value-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(85, 215, 184, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 255, 248, 0.88), rgba(255, 248, 232, 0.76));
  padding: 18px;
}

.membership-value-hero span {
  color: #1ca98c;
  font-size: 12px;
  font-weight: 950;
}

.membership-value-hero strong {
  display: block;
  margin: 6px 0;
  font-size: 24px;
}

.membership-value-hero p {
  margin: 0;
  color: #5e5471;
  line-height: 1.7;
}

.membership-value-hero button {
  border: 0;
  border-radius: 999px;
  background: #256f63;
  color: #fff;
  padding: 12px 18px;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(37, 111, 99, 0.2);
}

.membership-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.membership-head h3 {
  margin-bottom: 0;
  font-size: 28px;
}

.membership-head > span {
  color: #34877a;
  font-size: 12px;
  font-weight: 950;
}

.membership-plans {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.membership-plan {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 178px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 14px;
  text-align: left;
}

.membership-plan span {
  color: #34877a;
  font-size: 12px;
  font-weight: 950;
}

.membership-plan strong {
  font-size: 23px;
  line-height: 1.15;
}

.membership-plan p {
  margin: 0;
  color: #5e5471;
  font-size: 12px;
  line-height: 1.55;
}

.membership-plan em {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  background: #256f63;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.membership-plan.is-recommended,
.membership-plan.is-selected {
  border-color: rgba(85, 215, 184, 0.48);
  background: linear-gradient(135deg, rgba(230, 255, 248, 0.96), rgba(255, 252, 244, 0.82));
  box-shadow: 0 14px 34px rgba(85, 215, 184, 0.12);
}

.membership-detail {
  border-radius: 16px;
  background: rgba(116, 96, 146, 0.07);
  padding: 16px;
}

.membership-detail span {
  color: #34877a;
  font-size: 12px;
  font-weight: 950;
}

.membership-detail strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 22px;
}

.membership-detail p {
  margin: 0;
  color: #5e5471;
  line-height: 1.7;
}

.monthly-offset {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(85, 215, 184, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 255, 248, 0.92), rgba(255, 252, 244, 0.78));
  padding: 16px;
}

.monthly-offset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.monthly-offset-head span {
  color: #34877a;
  font-size: 12px;
  font-weight: 950;
}

.monthly-offset-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
}

.monthly-offset-head em {
  border-radius: 999px;
  background: #256f63;
  color: #fff;
  padding: 8px 12px;
  font-style: normal;
  font-weight: 950;
}

.monthly-offset p {
  margin: 0;
  color: #5e5471;
  line-height: 1.65;
}

.monthly-offset button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: #256f63;
  color: #fff;
  padding: 10px 16px;
  font-weight: 950;
}

.membership-benefit-table {
  max-width: 940px;
  margin: 0 auto 20px;
  border: 1px solid rgba(116, 96, 146, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(116, 96, 146, 0.1);
  padding: 18px;
}

.benefit-table {
  overflow-x: auto;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 16px;
}

.benefit-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) repeat(3, minmax(120px, 1fr));
  min-width: 620px;
  border-bottom: 1px solid rgba(116, 96, 146, 0.1);
}

.benefit-row:last-child {
  border-bottom: 0;
}

.benefit-row span {
  padding: 13px 14px;
  color: #5e5471;
  line-height: 1.45;
}

.benefit-row span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.benefit-row-head {
  background: rgba(85, 215, 184, 0.12);
}

.benefit-row-head span {
  color: var(--ink);
  font-weight: 950;
}

.tool-section h3 {
  font-size: 26px;
}

.tool-section h3 span {
  border-radius: 8px;
  background: rgba(85, 215, 184, 0.16);
  padding: 2px 10px;
  color: #256f63;
  font-size: 16px;
}

.bottom-tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(72px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgba(116, 96, 146, 0.14);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.bottom-tabbar button {
  min-width: 0;
  min-height: 72px;
  padding: 7px 2px 6px;
  border: 0;
  background: transparent;
  color: #a7a1b1;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.bottom-tabbar span {
  display: block;
  height: 26px;
  margin-bottom: 2px;
  font-size: 21px;
  line-height: 26px;
}

.bottom-tabbar .is-active {
  color: #a9873c;
}

.workspace.form-mode .result-stage,
.workspace.report-mode .input-rail,
.workspace.report-mode .web-hero {
  display: none;
}

.workspace.report-mode {
  grid-template-columns: minmax(0, 1fr);
}

.input-rail,
.result-stage,
.web-hero-glass,
.web-orbit-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 90px rgba(116, 96, 146, 0.18);
  backdrop-filter: blur(20px);
}

.web-hero {
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 132px);
}

.web-hero-glass {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 22px;
  min-height: 430px;
  padding: 38px;
  background:
    radial-gradient(circle at 78% 14%, rgba(247, 200, 111, 0.28), transparent 30%),
    radial-gradient(circle at 10% 20%, rgba(85, 215, 184, 0.26), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(250, 246, 255, 0.78));
}

.web-hero-glass::after {
  content: "";
  position: absolute;
  right: -96px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(85, 215, 184, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 0 38px rgba(255, 255, 255, 0.32);
}

.web-brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.web-brand-lockup img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 38px rgba(85, 215, 184, 0.24);
}

.web-brand-lockup span,
.web-hero-stats span {
  display: block;
  color: var(--mint);
  font-size: 12px;
  font-weight: 950;
}

.web-brand-lockup strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
}

.web-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.04;
  font-weight: 950;
}

.web-hero p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
  color: #5f5570;
  font-size: 17px;
  line-height: 1.72;
}

.web-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.web-hero-actions button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 950;
}

.web-hero-actions button:first-child {
  background: #2b2438;
  color: #fff;
}

.web-hero-actions button:last-child {
  border: 1px solid rgba(116, 96, 146, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.web-hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.web-hero-stats article {
  min-height: 112px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  padding: 16px;
}

.web-hero-stats strong {
  display: block;
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: 16px;
}

.web-hero-stats small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.web-orbit-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(43, 36, 56, 0.94), rgba(50, 80, 91, 0.9)),
    #2b2438;
  color: #fff;
}

.web-orbit-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 215, 184, 0.24), transparent 62%);
}

.web-orbit-ring span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 950;
}

.web-orbit-ring span:nth-child(1) { top: 8px; left: 80px; color: #55d7b8; }
.web-orbit-ring span:nth-child(2) { top: 76px; right: 8px; color: #ff8fa3; }
.web-orbit-ring span:nth-child(3) { bottom: 8px; left: 80px; color: #f7c86f; }
.web-orbit-ring span:nth-child(4) { top: 76px; left: 8px; color: #f1a33b; }
.web-orbit-ring span:nth-child(5) { top: 76px; left: 80px; color: #55c7f3; }

.web-orbit-ring i {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 28px;
  background: linear-gradient(135deg, #dffbf4, #fff1c8);
  color: #2b2438;
  font-style: normal;
  font-size: 36px;
  font-weight: 950;
  box-shadow: 0 18px 50px rgba(85, 215, 184, 0.24);
}

.web-mini-report {
  display: grid;
  gap: 10px;
}

.web-mini-report strong {
  font-size: 24px;
}

.web-mini-report p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}

.web-mini-report div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.web-mini-report span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.input-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: auto;
  padding: 18px;
}

.brand {
  display: flex;
  align-items: center;
  order: 1;
  gap: 12px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(85, 215, 184, 0.24);
}

.overline {
  margin: 0 0 4px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: 0;
}

p,
small,
span {
  text-wrap: pretty;
}

h1 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.12;
  font-weight: 950;
}

.intro-copy {
  order: 2;
  margin: -2px 0 0;
  border-left: 3px solid rgba(85, 215, 184, 0.7);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(135deg, rgba(232, 255, 248, 0.68), rgba(255, 255, 255, 0.54));
  color: #635875;
  font-size: 13px;
  line-height: 1.45;
  padding: 8px 10px;
}

.input-rail > .intro-copy {
  font-size: 13px;
  line-height: 1.45;
}

.section-copy,
.screen-head > p,
.intro-copy,
.fun-card p,
.challenge-card p,
.module-card span,
.record-profile-card p {
  color: #5f5570;
  font-size: 15px;
  line-height: 1.72;
}

.primary-button,
.secondary-button,
.compact,
.filter-button,
.tab,
.library-tabs button,
.book-domain-tabs button,
.book-sub-tabs button {
  font-size: 14px;
  font-weight: 900;
}

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

.module-card {
  display: block;
  width: 100%;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  padding: 14px;
  color: var(--text);
  text-align: left;
}

.module-card:hover {
  border-color: rgba(85, 215, 184, 0.48);
  background: rgba(255, 255, 255, 0.82);
}

.module-card.is-live {
  background: linear-gradient(135deg, rgba(85, 215, 184, 0.32), rgba(247, 200, 111, 0.28));
}

.module-card strong,
.module-card span {
  display: block;
}

.module-card strong {
  margin-bottom: 8px;
  font-size: 15px;
}

.module-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.fun-card,
.challenge-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(85, 215, 184, 0.22), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(255, 143, 163, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.fun-card span,
.challenge-card span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.fun-card strong,
.challenge-card strong {
  font-size: 22px;
  line-height: 1.25;
}

.fun-card p,
.challenge-card p {
  margin-bottom: 0;
  color: #5e5471;
  line-height: 1.65;
}

.fun-card button {
  width: fit-content;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: #2b2438;
  color: #fff;
  padding: 0 14px;
  font-weight: 880;
}

.input-rail > .fun-card {
  order: 6;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 14px;
}

.input-rail > .fun-card span,
.input-rail > .fun-card strong,
.input-rail > .fun-card p {
  grid-column: 1;
}

.input-rail > .fun-card strong {
  font-size: 19px;
}

.input-rail > .fun-card p {
  font-size: 13px;
  line-height: 1.5;
}

.input-rail > .fun-card button {
  grid-column: 2;
  grid-row: 1 / 4;
}

.daily-dashboard {
  order: 5;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(85, 215, 184, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(230, 255, 247, 0.7)),
    rgba(255, 255, 255, 0.72);
  padding: 14px;
}

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

.daily-head span,
.daily-task span {
  display: block;
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.daily-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.daily-head button,
.daily-task button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: #2b2438;
  color: #fff;
  padding: 0 14px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.daily-metrics article {
  display: grid;
  gap: 5px;
  border-radius: 14px;
  background: rgba(116, 96, 146, 0.07);
  padding: 10px;
}

.daily-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.daily-metrics strong {
  color: #3d344f;
  font-size: 15px;
}

.daily-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  border-top: 1px solid rgba(116, 96, 146, 0.1);
  padding-top: 12px;
}

.daily-task span {
  grid-column: 1 / -1;
}

.daily-task p {
  margin: 0;
  color: #5e5471;
  line-height: 1.55;
}

.daily-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(247, 200, 111, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 248, 232, 0.86), rgba(232, 255, 248, 0.72));
  padding: 12px;
}

.daily-reward > div {
  min-width: 0;
}

.daily-reward span {
  display: block;
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.daily-reward strong {
  display: inline-block;
  margin: 4px 8px 4px 0;
  color: var(--ink);
  font-size: 24px;
}

.daily-reward small {
  display: block;
  color: #5e5471;
  line-height: 1.5;
}

.daily-reward button {
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #55d7b8, #f7c86f);
  color: #2b2438;
  padding: 0 14px;
  font-weight: 950;
  white-space: nowrap;
}

.member-daily-card {
  order: 8;
  display: none;
  gap: 10px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 12%, rgba(247, 200, 111, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 239, 0.78));
  padding: 14px;
}

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

.member-daily-head span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.member-daily-head button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(43, 36, 56, 0.92);
  color: #fff;
  padding: 0 12px;
  font-weight: 900;
}

.member-daily-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.28;
}

.member-daily-card p {
  margin: 0;
  color: #5e5471;
  line-height: 1.62;
}

.member-daily-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-daily-tags span {
  border-radius: 999px;
  background: rgba(85, 215, 184, 0.16);
  color: #236a5c;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.home-entry-panel {
  order: 7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-entry-panel button {
  display: grid;
  gap: 6px;
  min-height: 82px;
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  padding: 12px;
  text-align: left;
}

.home-entry-panel button:first-child {
  grid-column: 1 / -1;
  min-height: 96px;
  border-color: rgba(85, 215, 184, 0.36);
  background:
    radial-gradient(circle at 92% 18%, rgba(247, 200, 111, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(232, 255, 248, 0.95), rgba(255, 255, 255, 0.76));
}

.home-entry-panel button:first-child strong {
  font-size: 20px;
}

.home-entry-panel button:nth-child(n + 5) {
  min-height: 66px;
  background: rgba(255, 255, 255, 0.58);
}

.home-entry-panel button:hover {
  border-color: rgba(85, 215, 184, 0.42);
  background: rgba(255, 255, 255, 0.92);
}

.home-entry-panel strong {
  color: var(--ink);
  font-size: 15px;
}

.home-entry-panel span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.system-flow {
  order: 9;
  display: none;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(247, 255, 251, 0.72));
}

.flow-steps button {
  min-height: 52px;
}

.retention-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.retention-strip button {
  display: grid;
  gap: 5px;
  min-height: 64px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.retention-strip strong {
  font-size: 15px;
}

.retention-strip span {
  color: var(--muted);
  font-size: 12px;
}

.viral-card,
.social-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 143, 163, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 245, 249, 0.86), rgba(232, 255, 248, 0.76)),
    rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.viral-card span,
.social-card .card-kicker {
  color: #c05f7a;
  font-size: 12px;
  font-weight: 950;
}

.viral-card strong,
.social-card h3 {
  display: block;
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.viral-card p,
.social-card p {
  margin: 0;
  color: #5e5471;
  line-height: 1.55;
}

.viral-tags,
.paywall-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.viral-tags em,
.paywall-tags em {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #2b2438;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.paywall-tags em:hover,
.paywall-tags em:focus-visible {
  background: #fff;
  box-shadow: 0 10px 22px rgba(43, 36, 56, 0.1);
  transform: translateY(-1px);
}

.viral-tags em:nth-child(2),
.paywall-tags em:nth-child(2) {
  background: rgba(85, 215, 184, 0.22);
  color: #16785f;
}

.viral-card button,
.social-card button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: #2b2438;
  color: #fff;
  padding: 0 16px;
  font-weight: 900;
  white-space: nowrap;
}

.report-tier-guide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.report-tier-guide article {
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.report-tier-guide article:first-child {
  background: linear-gradient(135deg, rgba(232, 255, 248, 0.9), rgba(255, 255, 255, 0.72));
}

.report-tier-guide article:last-child {
  border-color: rgba(247, 200, 111, 0.34);
  background: linear-gradient(135deg, rgba(255, 247, 228, 0.92), rgba(255, 245, 249, 0.74));
}

.report-tier-guide span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.report-tier-guide strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 18px;
}

.report-tier-guide p {
  margin: 0;
  color: #5e5471;
  line-height: 1.65;
}

.profile-guide {
  order: 4;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(116, 96, 146, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(244, 240, 229, 0.7)),
    rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.profile-guide span:first-child,
#profileGuideLabel {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.profile-guide strong {
  display: block;
  margin: 3px 0 5px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.28;
}

.profile-guide p {
  margin: 0;
  color: #5e5471;
  font-size: 13px;
  line-height: 1.5;
}

.profile-guide-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.profile-guide-list button {
  border: 0;
  border-radius: 999px;
  background: rgba(116, 96, 146, 0.08);
  color: #74688a;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.profile-guide-list button:hover {
  background: rgba(116, 96, 146, 0.14);
}

.profile-guide-list button.is-ready {
  background: rgba(85, 215, 184, 0.2);
  color: #236a5c;
}

.social-card {
  margin-bottom: 18px;
}

.share-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 18px;
}

.share-poster {
  display: grid;
  min-height: 560px;
  align-content: end;
  gap: 14px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(43, 36, 56, 0.94), rgba(48, 79, 96, 0.92)),
    #2b2438;
  color: #fff;
  padding: 26px;
}

.share-poster[data-poster-mode="persona"] {
  background:
    radial-gradient(circle at 22% 12%, var(--persona-soft, rgba(85, 215, 184, 0.26)), transparent 34%),
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--persona-accent, #55d7b8) 42%, transparent), transparent 30%),
    linear-gradient(160deg, rgba(43, 36, 56, 0.95), rgba(45, 82, 86, 0.92)),
    #2b2438;
}

.share-poster span {
  color: #f7c86f;
  font-size: 13px;
  font-weight: 950;
}

.share-poster strong {
  font-size: 40px;
  line-height: 1.05;
}

.share-poster p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.poster-persona-badge {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  padding: 7px 10px;
  font-size: 12px !important;
}

.share-poster em {
  color: #f7c86f;
  font-style: normal;
  font-weight: 950;
}

.mini-qr {
  position: relative;
  width: 106px;
  height: 106px;
  border: 8px solid #fff;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #2b2438 12px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(#2b2438 12px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(45deg, transparent 36%, #2b2438 0 44%, transparent 0 58%, #2b2438 0 66%, transparent 0),
    #fff;
  padding: 8px;
}

.mini-qr i {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 5px solid #2b2438;
  border-radius: 8px;
  background: #fff;
}

.mini-qr i:nth-child(1) {
  left: 12px;
  top: 12px;
}

.mini-qr i:nth-child(2) {
  right: 12px;
  top: 12px;
}

.mini-qr i:nth-child(3) {
  left: 12px;
  bottom: 12px;
}

.mini-qr i:nth-child(4) {
  right: 18px;
  bottom: 18px;
  width: 14px;
  height: 14px;
  border-width: 0;
  background: #f7c86f;
}

.share-panel {
  display: grid;
  gap: 14px;
}

.share-panel article {
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.share-panel span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.share-panel strong {
  display: block;
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.28;
}

.share-panel p {
  color: #5e5471;
}

.share-panel button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #2b2438;
  color: #fff;
  padding: 0 14px;
  font-weight: 900;
}

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

.system-flow,
.value-split,
.system-test-entry {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 13px;
}

.value-split article {
  border-radius: 14px;
  padding: 12px;
}

.value-split article.is-free {
  background: linear-gradient(135deg, rgba(232, 255, 248, 0.9), rgba(255, 255, 255, 0.72));
}

.value-split article.is-premium {
  background: linear-gradient(135deg, rgba(255, 246, 224, 0.92), rgba(255, 245, 249, 0.72));
}

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

.flow-head span,
.value-split span,
.system-test-entry span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.system-test-entry strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.system-test-entry p {
  margin: 0;
  color: #5e5471;
  font-size: 13px;
  line-height: 1.55;
}

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

.system-test-grid button {
  display: grid;
  gap: 5px;
  min-height: 58px;
  border: 0;
  border-radius: 13px;
  background: rgba(116, 96, 146, 0.08);
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.system-test-grid button strong {
  margin: 0;
  font-size: 15px;
}

.system-test-grid button span {
  color: #7d7191;
}

.flow-head strong {
  color: var(--ink);
}

.flow-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(116, 96, 146, 0.1);
}

.flow-track div {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--gold));
  transition: width 0.24s ease;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.flow-steps button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 62px;
  border: 0;
  border-radius: 14px;
  background: rgba(116, 96, 146, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 880;
}

.flow-steps span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
}

.flow-steps button.is-done {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(85, 215, 184, 0.24), rgba(247, 200, 111, 0.24));
}

.value-split {
  grid-template-columns: 1fr 1fr;
  padding: 10px;
}

.value-split article {
  border-radius: 13px;
  background: rgba(116, 96, 146, 0.06);
  padding: 10px;
}

.value-split p {
  margin: 4px 0 0;
  color: #5e5471;
  font-size: 12px;
  line-height: 1.48;
}

.fun-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.fun-badge-row span {
  border-radius: 999px;
  background: rgba(43, 36, 56, 0.08);
  padding: 7px 10px;
  color: #4f455f;
  font-size: 12px;
  font-weight: 900;
}

.challenge-card {
  margin-top: 14px;
  background:
    radial-gradient(circle at 12% 16%, rgba(247, 200, 111, 0.24), transparent 30%),
    rgba(255, 255, 255, 0.78);
}

.section-copy {
  margin: -4px 0 18px;
  color: #5e5471;
  font-size: 16px;
  line-height: 1.72;
}

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

.mbti-test-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: stretch;
  margin: 16px 0;
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 10%, rgba(113, 133, 255, 0.2), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(85, 215, 184, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.78);
  padding: 18px;
}

.mbti-test-hero span,
.mbti-version-meta span,
.mbti-scene-grid span {
  color: #6c7af3;
  font-size: 12px;
  font-weight: 950;
}

.mbti-test-hero strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 30px;
}

.mbti-test-hero p,
.mbti-version-meta p,
.mbti-scene-grid p {
  margin: 0;
  color: #5e5471;
  line-height: 1.65;
}

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

.mbti-version-grid button {
  position: relative;
  display: grid;
  min-height: 136px;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 14px;
  text-align: center;
  box-shadow: 0 16px 38px rgba(116, 96, 146, 0.08);
}

.mbti-version-grid button.is-active {
  border-color: rgba(108, 122, 243, 0.48);
  background: linear-gradient(160deg, rgba(238, 242, 255, 0.96), rgba(226, 255, 246, 0.9));
  box-shadow: 0 18px 44px rgba(108, 122, 243, 0.18);
}

.mbti-version-grid button.is-active::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #6c7af3;
  color: #fff;
  font-weight: 950;
}

.mbti-version-grid em {
  justify-self: center;
  border-radius: 999px;
  background: rgba(108, 122, 243, 0.12);
  color: #6c7af3;
  padding: 4px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.mbti-version-grid strong {
  margin: 0;
  font-size: 28px;
}

.mbti-version-grid span {
  color: #82798f;
  font-size: 13px;
  font-weight: 880;
}

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

.mbti-scene-grid button {
  min-height: 132px;
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 16px;
  text-align: left;
}

.mbti-scene-grid strong,
.mbti-version-meta strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 20px;
}

.mbti-version-meta {
  margin-bottom: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(108, 122, 243, 0.12), rgba(85, 215, 184, 0.14));
  padding: 14px 16px;
}

.fusion-step-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.fusion-step-tabs button {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 14px 16px;
  text-align: left;
}

.fusion-step-tabs button.is-active {
  border-color: rgba(85, 215, 184, 0.42);
  background: linear-gradient(135deg, rgba(226, 255, 246, 0.96), rgba(255, 245, 211, 0.86));
  box-shadow: 0 14px 32px rgba(85, 215, 184, 0.12);
}

.fusion-step-tabs span {
  color: var(--mint);
  font-size: 12px;
  font-weight: 950;
}

.fusion-step-tabs strong {
  color: var(--ink);
  font-size: 18px;
}

.fusion-step-tabs em {
  color: #82798f;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.fusion-step-panel {
  display: none;
}

.fusion-step-panel.is-active {
  display: block;
}

.mbti-persona-section {
  margin: 16px 0;
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(85, 215, 184, 0.16), transparent 32%),
    radial-gradient(circle at 92% 10%, rgba(247, 200, 111, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.78);
  padding: 18px;
}

.section-mini-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-mini-head span {
  color: var(--mint);
  font-size: 12px;
  font-weight: 950;
}

.section-mini-head strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 24px;
}

.section-mini-head p {
  max-width: 520px;
  margin: 0;
  color: #5e5471;
  line-height: 1.65;
}

.mbti-persona-atlas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-height: 464px;
  overflow: auto;
  padding-right: 4px;
}

.mbti-persona-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--persona-soft), rgba(255, 255, 255, 0.92));
  color: var(--text);
  padding: 12px;
  text-align: left;
  box-shadow: 0 14px 32px rgba(116, 96, 146, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mbti-persona-card:hover,
.mbti-persona-card.is-active {
  border-color: var(--persona-accent);
  box-shadow: 0 18px 42px rgba(116, 96, 146, 0.14), 0 0 0 3px rgba(108, 122, 243, 0.1);
  transform: translateY(-2px);
}

.mbti-persona-copy strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

.mbti-persona-copy span {
  display: block;
  margin-top: 2px;
  color: var(--persona-accent);
  font-size: 14px;
  font-weight: 950;
}

.mbti-persona-copy p {
  margin: 5px 0 0;
  color: #5e5471;
  font-size: 13px;
}

.mbti-persona-card small {
  grid-column: 1 / -1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #6c607b;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.mbti-avatar {
  position: relative;
  width: 62px;
  height: 78px;
  overflow: hidden;
  border: 1px solid rgba(43, 36, 56, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.98), transparent 34%),
    linear-gradient(180deg, #fff, var(--persona-soft));
  box-shadow: inset 0 -18px 28px color-mix(in srgb, var(--persona-accent) 18%, transparent);
}

.mbti-avatar span {
  position: absolute;
  top: 10px;
  left: 14px;
  width: 34px;
  height: 34px;
  border: 2px solid #2b2438;
  border-radius: 50%;
  background: #ffe2c8;
}

.mbti-avatar i {
  position: absolute;
  top: 38px;
  left: 10px;
  width: 42px;
  height: 31px;
  border-radius: 18px 18px 8px 8px;
  background: var(--persona-accent);
}

.mbti-avatar b {
  position: absolute;
  top: 51px;
  left: 26px;
  width: 10px;
  height: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.mbti-avatar em {
  position: absolute;
  top: 8px;
  left: 9px;
  width: 44px;
  height: 12px;
  border-radius: 999px 999px 8px 8px;
  background: #2b2438;
}

.mbti-avatar mark {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 5;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: var(--persona-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 8px 14px color-mix(in srgb, var(--persona-accent) 28%, transparent);
}

.mbti-avatar u {
  position: absolute;
  z-index: 1;
  opacity: 0.82;
  text-decoration: none;
}

.mbti-avatar::before,
.mbti-avatar::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 23px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2b2438;
  box-shadow: 12px 0 0 #2b2438;
}

.mbti-avatar::before {
  left: 24px;
}

.mbti-avatar::after {
  left: 27px;
  top: 31px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  box-shadow: none;
}

.mbti-avatar[data-figure="dreamer"] em,
.mbti-avatar[data-figure="artist"] em {
  background: #bfe8d1;
  transform: rotate(-10deg);
}

.mbti-avatar[data-figure="knight"] b,
.mbti-avatar[data-figure="commander"] b,
.mbti-avatar[data-figure="guardian"] b {
  top: 42px;
  left: 8px;
  width: 46px;
  height: 8px;
  background: rgba(43, 36, 56, 0.18);
}

.mbti-avatar[data-figure="mage"] em,
.mbti-avatar[data-figure="sage"] em {
  top: 4px;
  left: 18px;
  width: 26px;
  height: 20px;
  border-radius: 50% 50% 10px 10px;
}

.mbti-avatar[data-figure="explorer"]::after,
.mbti-avatar[data-figure="runner"]::after,
.mbti-avatar[data-figure="performer"]::after {
  height: 4px;
  border-radius: 0 0 999px 999px;
}

.mbti-avatar[data-element="木"] u {
  left: 5px;
  bottom: 8px;
  width: 20px;
  height: 28px;
  border-left: 3px solid #4fa879;
  border-top: 3px solid #4fa879;
  border-radius: 18px 0 0 0;
  transform: rotate(-12deg);
}

.mbti-avatar[data-element="火"] u {
  left: 5px;
  top: 9px;
  width: 18px;
  height: 28px;
  border-radius: 60% 40% 60% 40%;
  background: linear-gradient(180deg, #ffd76d, #e66b4f);
  transform: rotate(18deg);
}

.mbti-avatar[data-element="土"] u {
  left: 5px;
  bottom: 6px;
  width: 28px;
  height: 18px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #a8844a;
}

.mbti-avatar[data-element="金"] u {
  left: 6px;
  top: 11px;
  width: 7px;
  height: 45px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f7f8ff, var(--persona-accent));
  transform: rotate(36deg);
  box-shadow: 7px 7px 0 rgba(255, 255, 255, 0.68);
}

.mbti-avatar[data-element="水"] u {
  left: 4px;
  bottom: 9px;
  width: 28px;
  height: 16px;
  border-bottom: 4px solid #4b8bd6;
  border-radius: 0 0 50% 50%;
  transform: rotate(-10deg);
}

.test-panel,
.fusion-test-result {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  padding: 20px;
}

.test-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.test-head span,
.fusion-test-result > span {
  color: var(--mint);
  font-size: 12px;
  font-weight: 950;
}

.test-head strong {
  font-size: 22px;
}

.test-note {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.questionnaire-list,
.axis-list {
  display: grid;
  gap: 10px;
}

.question-card {
  display: grid;
  gap: 10px;
  border-radius: 16px;
  background: rgba(116, 96, 146, 0.07);
  padding: 14px;
}

.question-card > span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.question-card > strong {
  font-size: 17px;
  line-height: 1.35;
}

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

.question-options.stbi-options {
  grid-template-columns: 1fr;
}

.question-options button {
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 10px 12px;
  font-weight: 820;
  line-height: 1.4;
  text-align: left;
}

.question-options button.is-active {
  background: linear-gradient(135deg, rgba(85, 215, 184, 0.28), rgba(247, 200, 111, 0.32));
  box-shadow: inset 0 0 0 1px rgba(159, 130, 66, 0.24);
}

.axis-card {
  display: grid;
  grid-template-columns: 92px 1fr 1fr;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  background: rgba(116, 96, 146, 0.07);
  padding: 10px;
}

.axis-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 880;
}

.axis-card button,
.sbti-test-grid button {
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-weight: 860;
}

.axis-card button {
  min-height: 42px;
}

.axis-card button.is-active,
.sbti-test-grid button.is-active {
  background: linear-gradient(135deg, rgba(85, 215, 184, 0.28), rgba(247, 200, 111, 0.32));
  box-shadow: inset 0 0 0 1px rgba(159, 130, 66, 0.24);
}

.sbti-test-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.sbti-test-grid button {
  min-height: 88px;
  padding: 12px;
  text-align: left;
}

.sbti-test-grid strong,
.sbti-test-grid span {
  display: block;
}

.sbti-test-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.fusion-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
  margin: 16px 0;
}

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

.match-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
  border-radius: 16px;
  background: rgba(116, 96, 146, 0.08);
  padding: 6px;
}

.match-mode-tabs label {
  cursor: pointer;
}

.match-mode-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.match-mode-tabs span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #6f6878;
  font-size: 13px;
  font-weight: 900;
}

.match-mode-tabs input:checked + span {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(42, 36, 56, 0.08);
}

.year-tool {
  grid-template-columns: 1fr 1fr 180px;
  align-items: end;
  margin-bottom: 16px;
}

.fusion-test-result {
  background:
    radial-gradient(circle at 14% 18%, rgba(85, 215, 184, 0.22), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(255, 143, 163, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.78);
}

.fusion-test-result strong {
  display: block;
  margin: 10px 0;
  font-size: 28px;
}

.fusion-test-result p {
  color: #5e5471;
  line-height: 1.72;
}

.fusion-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.fusion-result-grid article {
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  padding: 16px;
}

.fusion-result-grid article span {
  display: block;
  margin-bottom: 8px;
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.fusion-result-grid article strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.match-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.match-status-row span {
  border-radius: 999px;
  background: rgba(85, 215, 184, 0.16);
  color: #286c62;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.match-score-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  border: 1px solid rgba(85, 215, 184, 0.26);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 255, 248, 0.82), rgba(255, 247, 228, 0.74));
  padding: 16px;
}

.match-score-panel div {
  display: grid;
  min-height: 120px;
  place-items: center;
  border-radius: 16px;
  background: #fff;
}

.match-score-panel span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.match-score-panel strong {
  margin: 0;
  color: var(--ink);
  font-size: 48px;
  line-height: 1;
}

.match-score-panel p {
  margin: 0;
}

.match-result-grid {
  grid-template-columns: repeat(4, 1fr);
}

.match-platform-card {
  margin-top: 14px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.match-platform-card > span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.match-platform-card strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 20px;
}

.match-platform-card p {
  position: relative;
  margin: 8px 0 0;
  padding-left: 14px;
}

.match-platform-card p::before {
  content: "✓";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #55d7b8;
}

.marriage-screen {
  display: grid;
  gap: 16px;
}

.marriage-hero,
.marriage-profile-gate,
.marriage-record-panel,
.marriage-module-grid article {
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 42px rgba(48, 39, 66, 0.06);
}

.marriage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 16px;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(85, 215, 184, 0.24), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(238, 199, 96, 0.28), transparent 32%),
    rgba(255, 255, 255, 0.82);
  padding: 20px;
}

.marriage-hero span,
.marriage-profile-gate span,
.marriage-module-grid article span,
.panel-title-row span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.marriage-hero strong,
.marriage-profile-gate strong,
.panel-title-row strong {
  display: block;
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.12;
}

.marriage-hero p,
.marriage-profile-gate p,
.marriage-module-grid article p,
.marriage-empty p {
  margin: 0;
  color: #5e5471;
  line-height: 1.72;
}

.marriage-quick-actions {
  display: grid;
  gap: 10px;
}

.marriage-quick-actions button,
.marriage-module-grid article button,
.panel-title-row button,
.marriage-empty button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #55d7b8, #eeca63);
  color: #251b35;
  font-weight: 950;
}

.marriage-profile-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
}

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

.marriage-status-list span {
  border-radius: 999px;
  background: rgba(85, 215, 184, 0.14);
  color: #286c62;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 900;
}

.marriage-input-grid {
  margin: 0;
}

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

.marriage-record-panel {
  padding: 18px;
}

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

.marriage-record-list button,
.marriage-empty {
  text-align: left;
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 16px;
  background: rgba(246, 244, 249, 0.72);
  padding: 14px;
}

.marriage-record-list button strong,
.marriage-record-list button span,
.marriage-record-list button em {
  display: block;
}

.marriage-record-list button strong {
  color: var(--ink);
  font-size: 18px;
}

.marriage-record-list button span {
  margin: 6px 0;
  color: #6f6480;
  font-size: 13px;
}

.marriage-record-list button em {
  color: #9f8242;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.marriage-empty {
  grid-column: 1 / -1;
}

.marriage-empty strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.marriage-empty button {
  margin-top: 12px;
  padding: 0 18px;
}

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

.marriage-module-grid article {
  padding: 16px;
}

.marriage-module-grid article strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.marriage-module-grid article button {
  width: 100%;
  margin-top: 14px;
}

.marriage-dating-app {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 113, 157, 0.2);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 245, 250, 0.92), rgba(244, 252, 255, 0.88)),
    #fff;
  padding: 18px;
  box-shadow: 0 22px 48px rgba(255, 111, 154, 0.12);
}

.dating-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dating-app-head span,
.dating-locked span,
.dating-filter-row span,
.dating-square-feed article span {
  color: #ee5d8d;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.dating-app-head strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

.dating-app-head p,
.dating-verify-panel p,
.dating-locked p,
.dating-candidate-info p,
.dating-square-feed article p,
.dating-empty-state p,
.dating-mine-card p {
  margin: 0;
  color: #655a72;
  line-height: 1.7;
}

.dating-app-head button,
.dating-verify-panel button,
.dating-locked button,
.dating-candidate-card > button,
.dating-feed-head button,
.dating-mine-card button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6d9f, #f4d063);
  color: #251b35;
  font-weight: 950;
  min-height: 42px;
  padding: 0 18px;
}

.dating-verify-panel,
.dating-locked,
.dating-empty-state,
.dating-mine-card {
  border: 1px solid rgba(255, 113, 157, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
}

.dating-verify-panel strong,
.dating-locked strong,
.dating-empty-state strong,
.dating-mine-card strong,
.dating-filter-row strong,
.dating-feed-head strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.dating-verify-panel button,
.dating-locked button,
.dating-mine-card button {
  margin-top: 12px;
}

.dating-teaser-banner {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 113, 157, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 241, 248, 0.94), rgba(235, 255, 249, 0.9)),
    #fff;
  padding: 16px;
  margin-bottom: 12px;
}

.dating-teaser-banner span {
  color: #ee5d8d;
  font-size: 12px;
  font-weight: 950;
}

.dating-teaser-banner strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.dating-teaser-banner p {
  margin: 0;
  color: #655a72;
  line-height: 1.65;
}

.dating-teaser-banner div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dating-teaser-banner button,
.is-mosaic-panel button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6d9f, #f4d063);
  color: #251b35;
  font-weight: 950;
  padding: 0 16px;
}

.dating-inner-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border-radius: 18px;
  background: rgba(246, 244, 249, 0.82);
  padding: 6px;
}

.dating-inner-tabs button {
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #756a84;
  font-weight: 950;
  min-height: 40px;
}

.dating-inner-tabs button.is-active {
  background: #fff;
  color: #ee5d8d;
  box-shadow: 0 10px 22px rgba(61, 47, 77, 0.08);
}

.dating-content {
  display: grid;
  gap: 14px;
}

.dating-filter-row,
.dating-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dating-candidate-grid {
  display: grid;
  gap: 12px;
}

.dating-candidate-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 113, 157, 0.18), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(85, 215, 184, 0.16), transparent 26%),
    rgba(255, 255, 255, 0.82);
  padding: 14px;
}

.dating-candidate-card.is-mosaic {
  overflow: hidden;
}

.dating-candidate-card.is-mosaic .dating-photo,
.dating-candidate-card.is-mosaic .dating-candidate-info {
  filter: blur(4px);
  opacity: 0.72;
  user-select: none;
}

.dating-candidate-card.is-mosaic .dating-candidate-info strong,
.dating-candidate-card.is-mosaic .dating-candidate-info p,
.dating-candidate-card.is-mosaic .dating-candidate-info mark {
  color: transparent;
  text-shadow: 0 0 9px rgba(37, 27, 53, 0.55);
}

.mosaic-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0 8px, rgba(255, 113, 157, 0.08) 8px 16px),
    rgba(255, 255, 255, 0.18);
}

.mosaic-layer span {
  border-radius: 999px;
  background: rgba(37, 27, 53, 0.82);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  padding: 9px 14px;
  box-shadow: 0 12px 24px rgba(37, 27, 53, 0.18);
}

.is-mosaic-panel {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255, 113, 157, 0.04) 0 10px, rgba(85, 215, 184, 0.05) 10px 20px),
    rgba(255, 255, 255, 0.78);
}

.is-mosaic-panel .dating-stat-row span {
  filter: blur(2px);
}

.dating-photo {
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 1;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 109, 159, 0.88), rgba(244, 208, 99, 0.76)),
    #fff;
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.42);
}

.dating-photo.is-alt {
  background: linear-gradient(145deg, rgba(85, 215, 184, 0.9), rgba(129, 161, 255, 0.76));
}

.dating-candidate-info span {
  color: #82778f;
  font-size: 13px;
  font-weight: 800;
}

.dating-candidate-info strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  color: var(--ink);
  font-size: 24px;
}

.dating-candidate-info em {
  border-radius: 999px;
  background: rgba(255, 113, 157, 0.14);
  color: #ee5d8d;
  font-size: 13px;
  font-style: normal;
  padding: 4px 8px;
}

.dating-candidate-info div,
.dating-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dating-candidate-info mark,
.dating-stat-row span {
  border-radius: 999px;
  background: rgba(85, 215, 184, 0.14);
  color: #286c62;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.dating-square-feed,
.dating-message-list {
  display: grid;
  gap: 10px;
}

.dating-square-feed article,
.dating-message-list article {
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 14px;
}

.dating-square-feed article strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 18px;
}

.dating-message-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
}

.dating-message-list strong {
  color: var(--ink);
  font-size: 18px;
}

.dating-message-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: #746a82;
}

.dating-message-list span {
  color: #a79eb3;
  font-size: 12px;
  font-weight: 800;
}

.profile-form {
  order: 3;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 12px 12px;
}

.field,
.switch-line {
  display: grid;
  gap: 6px;
}

.profile-form > .field,
.profile-form > .switch-line {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  border-bottom: 1px solid rgba(116, 96, 146, 0.1);
  padding: 6px 0;
}

.profile-form > .field:has(.location-grid),
.profile-form > .field:has(.location-scope) {
  align-items: start;
}

.profile-form > .switch-line {
  grid-template-columns: 18px minmax(0, 1fr);
}

.profile-form > .field > span {
  align-self: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-form > .field:has(.location-grid) > span {
  padding-top: 8px;
}

.profile-form > .field > input,
.profile-form > .field > .wheel-grid,
.profile-form > .field > .segmented,
.profile-form > .field > .location-grid,
.profile-form > .field > .location-scope {
  grid-column: 2;
}

.profile-form > .field > .location-scope {
  grid-row: 1;
  margin: 0 0 7px;
}

.profile-form > .field > .location-grid {
  grid-row: 2;
}

.profile-form > .field:has(.location-scope) > span {
  grid-row: 1 / span 2;
}

.profile-form > .field {
  position: relative;
  border-radius: 10px;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.profile-form > .field.is-validation-missing {
  border-bottom-color: transparent;
  background: rgba(255, 77, 91, 0.055);
  box-shadow: inset 0 0 0 1.5px rgba(220, 55, 70, 0.72);
}

.profile-form > .field.is-validation-complete {
  border-bottom-color: transparent;
  background: rgba(31, 181, 129, 0.055);
  box-shadow: inset 0 0 0 1.5px rgba(31, 166, 119, 0.5);
}

.profile-form > .field.is-validation-missing > span {
  color: #c73343;
}

.profile-form > .field.is-validation-complete > span {
  color: #168c67;
}

.field-validation-message {
  grid-column: 2;
  justify-self: end;
  margin-top: -2px;
  padding-right: 2px;
  color: #168c67;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.is-validation-missing .field-validation-message {
  color: #c73343;
}

.profile-form > .field:has(.location-scope) .field-validation-message {
  grid-row: 3;
}

.profile-form > .system-test-entry,
.profile-form > .value-split,
.profile-form > .button-row {
  margin-top: 4px;
}

.profile-form > .button-row,
.profile-form > .value-split {
  border-bottom: 0;
}

.field > span,
.switch-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

input[type="text"],
select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  padding: 0 13px;
}

input::placeholder {
  color: #aaa3b7;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 17px) 17px / 7px 7px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 12px) 17px / 7px 7px no-repeat,
    rgba(255, 255, 255, 0.84);
}

input:focus,
select:focus {
  border-color: rgba(125, 242, 207, 0.85);
  box-shadow: 0 0 0 4px rgba(125, 242, 207, 0.12);
}

input.is-field-alert {
  border-color: rgba(255, 113, 137, 0.86);
  box-shadow: 0 0 0 4px rgba(255, 113, 137, 0.16);
  animation: fieldAlertPulse 0.34s ease-in-out 2;
}

@keyframes fieldAlertPulse {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-3px); }
  70% { transform: translateX(3px); }
}

.wheel-grid,
.location-grid {
  display: grid;
  gap: 8px;
}

.date-wheel,
.china-location {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.time-wheel,
.global-location,
.gender-segmented {
  grid-template-columns: repeat(2, 1fr);
}

.wheel-grid label,
.location-grid label {
  display: grid;
  gap: 4px;
}

.wheel-grid small,
.location-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.profile-form .wheel-grid small,
.profile-form .location-grid small {
  display: none;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 5px;
  border-radius: 13px;
  background: rgba(116, 96, 146, 0.08);
}

.segmented label {
  height: 32px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 32px;
  text-align: center;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label:has(input:checked) {
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff, #dffbf4);
}

.location-scope {
  margin-bottom: 6px;
}

.is-hidden {
  display: none;
}

.switch-line {
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.button-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
}

.primary-button,
.secondary-button,
.icon-button,
.back-button,
.history-panel button,
.tab {
  border: 0;
  border-radius: 12px;
  font-weight: 880;
}

.primary-button,
.secondary-button {
  height: 52px;
}

.primary-button {
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint), var(--gold));
  box-shadow: 0 14px 34px rgba(125, 242, 207, 0.18);
}

.secondary-button,
.icon-button,
.back-button,
.history-panel button {
  color: var(--text);
  background: var(--panel-strong);
}

.history-panel {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.panel-head,
.stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stage-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.panel-head h2 {
  margin-bottom: 0;
  font-size: 16px;
}

.panel-head button {
  height: 32px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  text-align: left;
}

.history-item small {
  display: block;
  color: var(--muted);
}

.result-stage {
  min-height: calc(100vh - 56px);
  padding: 24px;
}

.stage-head {
  margin-bottom: 22px;
}

.stage-head h2 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.05;
}

.icon-button {
  width: 46px;
  height: 46px;
  min-width: 46px;
  font-size: 22px;
}

.back-button {
  height: 40px;
  min-width: 96px;
  padding: 0 14px;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  overflow: hidden;
  min-height: 280px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 28%, var(--element-soft, rgba(85, 215, 184, 0.26)), transparent 34%),
    radial-gradient(circle at 86% 34%, rgba(255, 209, 102, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.64));
  padding: 32px;
}

.paywall-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 12px 0 14px;
  border: 1px solid rgba(159, 130, 66, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 245, 216, 0.78), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 94% 18%, rgba(85, 215, 184, 0.16), transparent 32%);
  padding: 14px 16px;
}

.paywall-banner span,
.poster-preview span,
.invite-progress span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.paywall-banner strong {
  display: block;
  margin: 4px 0;
  font-size: 21px;
  line-height: 1.25;
}

.paywall-banner p {
  margin-bottom: 0;
  color: #5e5471;
  font-size: 14px;
  line-height: 1.55;
}

.paywall-banner button {
  min-width: 132px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #2b2438;
  color: #fff;
  padding: 0 16px;
  font-weight: 880;
  white-space: nowrap;
}

.result-stage.is-locked .tabs,
.result-stage.is-locked .tab-panel,
.result-stage.is-locked .stage-foot {
  position: relative;
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}

.result-stage.is-locked .hero-card {
  max-height: 360px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(43, 36, 56, 0.34);
  padding: 22px;
  backdrop-filter: blur(14px);
}

.modal-shell.is-hidden,
.book-detail-layer.is-hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 100px rgba(43, 36, 56, 0.24);
  padding: 26px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(116, 96, 146, 0.08);
  color: var(--text);
  font-size: 24px;
}

.modal-card h2 {
  margin-bottom: 14px;
  font-size: 32px;
}

.full-report-modal {
  width: min(860px, 100%);
  padding: 0;
}

.full-report-toolbar {
  position: sticky;
  z-index: 4;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid rgba(116, 96, 146, 0.12);
  background: rgba(255, 255, 255, 0.96);
  padding: 8px 18px;
  backdrop-filter: blur(14px);
}

.full-report-toolbar strong {
  color: var(--ink);
  font-size: 15px;
}

.full-report-back {
  justify-self: start;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #493f5c;
  font-weight: 900;
}

.full-report-toolbar .modal-close {
  position: static;
  justify-self: end;
}

.full-report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  border-bottom: 1px solid rgba(116, 96, 146, 0.12);
  background:
    radial-gradient(circle at 8% 12%, rgba(85, 215, 184, 0.24), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(247, 200, 111, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 255, 253, 0.82));
  padding: 26px;
}

.full-report-hero h2 {
  margin: 4px 44px 10px 0;
  font-size: 32px;
  line-height: 1.12;
}

.full-report-index {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(116, 96, 146, 0.1);
  background: #fff;
  padding: 12px 26px;
  scrollbar-width: none;
}

.full-report-index::-webkit-scrollbar {
  display: none;
}

.full-report-index span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f3f1f5;
  padding: 6px 10px;
  color: #625872;
  font-size: 12px;
  font-weight: 850;
}

.full-report-hero p,
.full-report-section p {
  margin: 0;
  color: #5e5471;
  line-height: 1.68;
}

.full-report-pillars {
  display: grid;
  grid-template-columns: repeat(2, 76px);
  gap: 8px;
  align-content: start;
}

.full-report-pillars span {
  display: grid;
  gap: 4px;
  min-height: 64px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  padding: 8px;
  text-align: center;
}

.full-report-pillars b {
  color: var(--muted);
  font-size: 12px;
}

.full-report-pillars span {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.full-report-section {
  display: grid;
  gap: 10px;
  padding: 20px 26px;
  border-bottom: 1px solid rgba(116, 96, 146, 0.1);
}

.full-report-section > span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.full-report-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.22;
}

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

.full-report-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.full-report-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.full-report-grid strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.28;
}

.full-report-grid p {
  font-size: 13px;
  line-height: 1.55;
}

.full-report-grid small {
  color: #8a7f98;
  font-size: 12px;
  line-height: 1.45;
}

.full-report-elements {
  display: grid;
  gap: 10px;
}

.full-report-element {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 2fr);
  gap: 6px 16px;
  align-items: center;
  border-bottom: 1px solid rgba(116, 96, 146, 0.1);
  padding: 10px 0;
}

.full-report-element > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.full-report-element span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.full-report-element strong {
  font-size: 18px;
}

.full-report-element i {
  grid-column: 1;
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeecf1;
}

.full-report-element em {
  display: block;
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: #8a7f98;
}

.full-report-element p {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.full-report-element[data-element="木"] strong,
.full-report-element[data-element="木"] span { color: #159765; }
.full-report-element[data-element="木"] em { background: #29ad75; }
.full-report-element[data-element="火"] strong,
.full-report-element[data-element="火"] span { color: #dc4f3c; }
.full-report-element[data-element="火"] em { background: #ee6049; }
.full-report-element[data-element="土"] strong,
.full-report-element[data-element="土"] span { color: #ad7015; }
.full-report-element[data-element="土"] em { background: #c98b2b; }
.full-report-element[data-element="金"] strong,
.full-report-element[data-element="金"] span { color: #a57a18; }
.full-report-element[data-element="金"] em { background: #d4aa42; }
.full-report-element[data-element="水"] strong,
.full-report-element[data-element="水"] span { color: #2475bd; }
.full-report-element[data-element="水"] em { background: #3c91d9; }

.full-report-note {
  background: #f7f6f8;
}

.full-report-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 26px 24px;
}

.full-report-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--gold));
  color: var(--ink);
  font-weight: 950;
}

.full-report-actions button:last-child {
  background: #2b2438;
  color: #fff;
}

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

.feature-card span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.feature-card p {
  margin: 0;
  color: #5e5471;
  font-size: 16px;
  line-height: 1.8;
}

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

.feature-actions button {
  min-height: 46px;
  border: 1px solid rgba(85, 215, 184, 0.34);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(226, 255, 246, 0.95), rgba(255, 247, 228, 0.92));
  color: var(--ink);
  font-weight: 950;
}

.feature-actions button:last-child {
  border-color: rgba(116, 96, 146, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: #5e5471;
}

.price-line {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(85, 215, 184, 0.18), rgba(247, 200, 111, 0.28));
  padding: 18px;
}

.price-line strong {
  display: block;
  font-size: 42px;
}

.price-line span {
  display: block;
  color: #5e5471;
}

.price-line em {
  display: block;
  margin-top: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: #16785f;
  padding: 10px 12px;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.45;
}

.unlock-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.unlock-mode-tabs button {
  min-height: 46px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #625773;
  font-weight: 900;
}

.unlock-mode-tabs button.is-active {
  border-color: rgba(85, 215, 184, 0.55);
  background: linear-gradient(135deg, rgba(226, 255, 246, 0.95), rgba(247, 200, 111, 0.32));
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(85, 215, 184, 0.14);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.payment-methods button {
  display: grid;
  gap: 4px;
  min-height: 76px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 12px;
  text-align: left;
}

.payment-methods span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.payment-methods strong {
  color: #7d7191;
  font-size: 12px;
}

.payment-methods button.is-selected {
  border-color: rgba(85, 215, 184, 0.55);
  background: linear-gradient(135deg, rgba(226, 255, 246, 0.95), rgba(255, 247, 228, 0.88));
  box-shadow: 0 12px 28px rgba(85, 215, 184, 0.16);
}

.payment-hint {
  margin: 10px 0 0;
  border-radius: 14px;
  background: rgba(116, 96, 146, 0.07);
  color: #5e5471;
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.unlock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.invite-progress {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.invite-progress p {
  margin: 0;
  color: #7b7385;
  font-size: 13px;
  line-height: 1.6;
}

.invite-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.invite-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(116, 96, 146, 0.1);
}

.invite-track div {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--gold));
  transition: width 0.24s ease;
}

.invite-progress button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(116, 96, 146, 0.08);
  color: var(--text);
  font-weight: 880;
}

.invite-progress button:disabled {
  color: #8c836f;
  background: linear-gradient(135deg, rgba(85, 215, 184, 0.18), rgba(247, 200, 111, 0.24));
  cursor: default;
}

.poster-preview {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(85, 215, 184, 0.28), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(255, 143, 163, 0.2), transparent 30%),
    #2b2438;
  color: #fff;
  padding: 24px;
  aspect-ratio: 4 / 5;
}

.poster-preview strong {
  align-self: end;
  font-size: 34px;
  line-height: 1.08;
}

.poster-preview p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.poster-preview em {
  align-self: end;
  color: #f7c86f;
  font-style: normal;
  font-weight: 900;
}

#paywallModal[data-unlock-mode="pay"] .invite-progress,
#paywallModal[data-unlock-mode="pay"] .poster-preview,
#paywallModal[data-unlock-mode="pay"] #posterButton {
  display: none;
}

#paywallModal[data-unlock-mode="invite"] .payment-methods,
#paywallModal[data-unlock-mode="invite"] .payment-hint,
#paywallModal[data-unlock-mode="invite"] #mockPayButton,
#paywallModal[data-unlock-mode="invite"] #watchVideoAdButton {
  display: none;
}

#paywallModal[data-unlock-mode="invite"] .unlock-grid {
  grid-template-columns: 1fr;
}

#paywallModal[data-unlock-mode="ad"] .payment-methods,
#paywallModal[data-unlock-mode="ad"] .payment-hint,
#paywallModal[data-unlock-mode="ad"] .unlock-grid,
#paywallModal[data-unlock-mode="ad"] .poster-preview,
#paywallModal[data-unlock-mode="ad"] #simulateInviteButton {
  display: none;
}

#paywallModal[data-unlock-mode="ad"] .invite-progress {
  border-color: rgba(85, 215, 184, 0.35);
  background: linear-gradient(135deg, rgba(226, 255, 246, 0.82), rgba(255, 247, 228, 0.72));
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -70px -120px auto;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.hero-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 214px;
  border: 1px solid color-mix(in srgb, var(--element-color, var(--mint)) 38%, white);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7) 56%, transparent 57%),
    color-mix(in srgb, var(--element-soft, #e8faf4) 66%, white);
  box-shadow:
    inset 0 0 0 18px color-mix(in srgb, var(--element-color, var(--mint)) 14%, transparent),
    0 22px 52px color-mix(in srgb, var(--element-color, var(--mint)) 14%, transparent);
}

.element-avatar {
  display: none;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--element-color, #55d7b8) 42%, white);
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(135deg, var(--element-soft, #e8faf4), rgba(255, 255, 255, 0.74));
  color: var(--element-deep, #2b2438);
  font-size: 24px;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 18px 36px color-mix(in srgb, var(--element-color, #55d7b8) 18%, transparent);
}

.element-avatar::before {
  content: none;
}

.hero-orbit span {
  color: var(--element-deep, var(--muted));
  font-size: 13px;
  font-weight: 850;
}

.hero-orbit strong {
  margin-top: 10px;
  font-size: 76px;
  line-height: 1;
  color: var(--element-deep, var(--ink));
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.hero-copy h3 {
  margin-bottom: 12px;
  font-size: 44px;
  line-height: 1.02;
}

.hero-copy p {
  max-width: 700px;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.keyword-row span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  color: #3a304e;
  font-size: 13px;
  font-weight: 850;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 14px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(116, 96, 146, 0.08);
}

.tab {
  height: 38px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  white-space: nowrap;
}

.tab.is-active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(116, 96, 146, 0.08);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.reading-card,
.element-reading,
.energy-card,
.advice-layout,
.luck-card,
.pillar-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.reading-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(250, 255, 253, 0.82)),
    radial-gradient(circle at 96% 10%, rgba(247, 200, 111, 0.1), transparent 28%);
}

.element-reading {
  display: grid;
  grid-template-columns: minmax(220px, 0.46fr) 1fr;
  gap: 18px;
  margin-bottom: 14px;
  padding: 22px;
  background:
    radial-gradient(circle at 14% 18%, rgba(85, 215, 184, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.78);
}

.element-reading h3 {
  margin-bottom: 10px;
  font-size: 28px;
}

.element-reading p {
  margin-bottom: 0;
  color: #5e5471;
  line-height: 1.7;
}

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

.element-stat-grid article {
  border-radius: 14px;
  background: rgba(116, 96, 146, 0.07);
  padding: 14px;
}

.element-stat-grid span,
.element-analysis-card span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.element-stat-grid strong {
  display: block;
  margin: 5px 0;
  color: var(--ink);
  font-size: 22px;
}

.element-stat-grid p {
  font-size: 13px;
}

.card-kicker {
  margin-bottom: 6px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
}

.reading-card h3,
.advice-layout h3 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.16;
}

#identitySubtitle,
#summary,
#actionText,
.luck-card p {
  margin-bottom: 0;
  color: #5e5471;
  font-size: 14px;
  line-height: 1.68;
}

.pillar-grid {
  display: block;
}

.basic-bazi-matrix {
  overflow-x: auto;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(54, 43, 72, 0.05);
}

.matrix-row {
  display: grid;
  grid-template-columns: 64px repeat(4, minmax(92px, 1fr));
  min-width: 560px;
  border-bottom: 1px solid rgba(116, 96, 146, 0.1);
}

.matrix-row:last-child {
  border-bottom: 0;
}

.matrix-row > b,
.matrix-cell {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-right: 1px solid rgba(116, 96, 146, 0.08);
  padding: 8px 7px;
  color: #2b2438;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.matrix-row > b {
  background: #faf9fb;
  color: #8f879d;
  font-weight: 900;
}

.matrix-row > b:last-child,
.matrix-cell:last-child {
  border-right: 0;
}

.matrix-head {
  background: #f4f2f6;
}

.matrix-head .matrix-cell {
  color: #7c728f;
  font-weight: 900;
}

.matrix-cell .element-token.is-compact-token {
  width: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 24px;
}

.matrix-cell .element-token.is-compact-token small {
  margin-top: 2px;
  font-size: 10px;
}

.hidden-stem-row.is-compact {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.matrix-cell .hidden-stem {
  padding: 2px 4px;
  font-size: 11px;
}

.matrix-cell .hidden-stem small {
  font-size: 9px;
}

.matrix-cell .pro-shensha-cell small,
.matrix-cell .pro-shensha-cell em {
  padding: 3px 6px;
  font-size: 10px;
}

.pillar-card {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(250, 255, 253, 0.72)),
    radial-gradient(circle at 92% 12%, rgba(85, 215, 184, 0.12), transparent 32%);
}

.pillar-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(247, 200, 111, 0.12);
}

.pillar-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.pillar-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  font-size: 36px;
  line-height: 1;
}

.rich-pillar-card {
  display: grid;
  gap: 9px;
  min-height: 218px;
}

.pillar-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pillar-card-head em {
  border-radius: 999px;
  background: rgba(43, 36, 56, 0.07);
  color: #6d627f;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

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

.element-token {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 15px;
  color: var(--element-ink, #2b2438);
  background: var(--element-bg, rgba(116, 96, 146, 0.08));
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.element-token small {
  margin-top: 3px;
  color: var(--element-ink, #7c728f);
  font-size: 11px;
  font-weight: 900;
}

.element-token.is-branch {
  filter: saturate(0.94);
}

.hidden-stem-row,
.pillar-hidden {
  display: flex;
  gap: 5px;
}

.hidden-stem-row {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hidden-stem,
.mini-empty {
  display: grid;
  grid-template-columns: 18px minmax(44px, auto);
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  background: transparent;
  color: var(--element-ink, #6d627f);
  padding: 1px 4px;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.25;
  text-align: left;
}

.hidden-stem b {
  color: var(--element-ink, #6d627f);
  font-size: 13px;
  line-height: 1;
}

.hidden-stem small {
  margin-left: 0;
  font-size: 10px;
  font-weight: 850;
  color: #8a8196;
}

.pillar-meta,
.pillar-shensha-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pillar-meta b,
.pillar-shensha-mini i {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #7c728f;
  padding: 4px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.pillar-shensha-mini i {
  background: rgba(159, 130, 66, 0.12);
  color: #8b6d25;
}

.element-wood {
  --element-ink: #15935e;
  --element-bg: linear-gradient(135deg, rgba(54, 206, 130, 0.18), rgba(255, 255, 255, 0.78));
}

.element-fire {
  --element-ink: #d44938;
  --element-bg: linear-gradient(135deg, rgba(255, 122, 103, 0.2), rgba(255, 255, 255, 0.78));
}

.element-earth {
  --element-ink: #a67620;
  --element-bg: linear-gradient(135deg, rgba(214, 168, 72, 0.22), rgba(255, 255, 255, 0.78));
}

.element-metal {
  --element-ink: #c18618;
  --element-bg: linear-gradient(135deg, rgba(247, 200, 111, 0.26), rgba(255, 255, 255, 0.78));
}

.element-water {
  --element-ink: #1d6fc1;
  --element-bg: linear-gradient(135deg, rgba(85, 171, 243, 0.2), rgba(255, 255, 255, 0.78));
}

.element-neutral {
  --element-ink: #6d627f;
  --element-bg: rgba(116, 96, 146, 0.08);
}

.bazi-pro-board,
.luck-timeline,
.shensha-board,
.relation-board {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
  overflow: hidden;
}

.bazi-pro-board {
  overflow-x: auto;
}

.pro-board-head,
.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(116, 96, 146, 0.12);
  background: linear-gradient(135deg, rgba(43, 36, 56, 0.94), rgba(71, 58, 89, 0.9));
  color: #fff;
  padding: 18px;
}

.pro-board-head .card-kicker,
.timeline-head .card-kicker {
  color: #e5c878;
}

.pro-board-head h3,
.timeline-head h3 {
  margin: 0;
  font-size: 22px;
}

.pro-board-head > span,
.timeline-head > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.pro-table {
  min-width: 680px;
}

.pro-row {
  display: grid;
  grid-template-columns: 72px repeat(4, minmax(110px, 1fr));
  border-bottom: 1px solid rgba(116, 96, 146, 0.1);
}

.pro-row:last-child {
  border-bottom: 0;
}

.pro-row b,
.pro-cell {
  min-height: 58px;
  border-right: 1px solid rgba(116, 96, 146, 0.1);
  padding: 12px 10px;
  text-align: center;
}

.pro-row b {
  color: #8f879d;
  font-weight: 900;
}

.pro-cell {
  display: grid;
  place-items: center;
  color: #2b2438;
  line-height: 1.45;
}

.pro-row-title {
  background: #f4f2f6;
}

.pro-row .element-token {
  width: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 0 auto;
  font-size: 31px;
}

.pro-row small {
  margin-left: 3px;
  color: #9f8242;
  font-size: 12px;
}

.pro-shensha-cell {
  display: flex;
  min-height: auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  align-items: center;
}

.pro-shensha-cell small {
  margin: 0;
  border-radius: 999px;
  background: rgba(159, 130, 66, 0.1);
  color: #8b773f;
  padding: 4px 7px;
  font-size: 11px;
  line-height: 1;
}

.pro-shensha-cell em {
  border-radius: 999px;
  background: rgba(85, 215, 184, 0.18);
  color: #286c62;
  padding: 4px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.stem-鏈?{ color: #19a66a; }
.stem-鐏?{ color: #d33b31; }
.stem-鍦?{ color: #a67620; }
.stem-閲?{ color: #c79628; }
.stem-姘?{ color: #1b5fbc; }

.luck-timeline {
  background: #fff;
}

.luck-strip {
  display: grid;
  grid-template-columns: 62px repeat(10, minmax(82px, 1fr));
  overflow-x: auto;
  border-bottom: 1px solid rgba(116, 96, 146, 0.1);
}

.luck-strip:last-child {
  border-bottom: 0;
}

.luck-strip > b {
  position: sticky;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #f6f4f8;
  color: #8f879d;
  font-size: 22px;
  writing-mode: vertical-rl;
}

.luck-strip article {
  display: grid;
  gap: 4px;
  min-height: 112px;
  border-left: 1px solid rgba(116, 96, 146, 0.1);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.luck-strip article.is-current {
  background: #f0edf4;
}

.luck-strip article.is-selected {
  background: linear-gradient(135deg, rgba(85, 215, 184, 0.18), rgba(247, 200, 111, 0.2));
  box-shadow: inset 0 0 0 2px rgba(85, 215, 184, 0.28);
}

.luck-strip article:hover {
  transform: translateY(-1px);
  background: rgba(246, 244, 248, 0.92);
}

.luck-strip span,
.luck-strip small,
.luck-strip em,
.luck-strip i {
  color: #6f6878;
  font-size: 12px;
  font-style: normal;
}

.luck-strip strong {
  color: #2b2438;
  font-size: 24px;
}

.luck-strip em {
  color: #9f8242;
  font-weight: 900;
}

.luck-months {
  grid-template-columns: 62px repeat(12, minmax(76px, 1fr));
}

.luck-analysis-board {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.luck-analysis-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(232, 255, 248, 0.8), rgba(255, 247, 228, 0.62));
}

.luck-analysis-head h3 {
  margin: 2px 0 6px;
  color: var(--ink);
  font-size: 24px;
}

.luck-analysis-head p {
  margin: 0;
  color: #6f6878;
  line-height: 1.55;
}

.luck-analysis-head button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: #2b2438;
  color: #fff;
  padding: 0 16px;
  font-weight: 900;
  white-space: nowrap;
}

.luck-focus-grid,
.day-hour-lock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 18px;
}

.day-hour-lock {
  grid-template-columns: repeat(2, 1fr);
}

.luck-focus-grid article,
.day-hour-lock article {
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  padding: 14px;
}

.luck-focus-grid span,
.six-year-board span,
.day-hour-lock span,
.relation-summary span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.luck-focus-grid strong,
.day-hour-lock strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 20px;
}

.luck-focus-grid p,
.day-hour-lock p,
.relation-summary p {
  margin: 0;
  color: #6f6878;
  line-height: 1.6;
}

.six-year-board {
  display: grid;
  gap: 12px;
  padding: 0 18px;
}

.six-year-board > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.six-year-board strong {
  color: var(--ink);
  font-size: 20px;
}

.six-year-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.six-year-list article {
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.six-year-list article.is-selected {
  border-color: rgba(85, 215, 184, 0.5);
  background: linear-gradient(135deg, rgba(232, 255, 248, 0.9), #fff);
}

.six-year-list strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 22px;
}

.six-year-list em {
  color: #9f8242;
  font-style: normal;
  font-weight: 900;
}

.six-year-list p {
  margin: 8px 0 0;
  color: #6f6878;
  font-size: 13px;
  line-height: 1.55;
}

.relation-summary {
  margin: 0 18px 18px;
  border-radius: 16px;
  background: rgba(116, 96, 146, 0.07);
  padding: 14px;
}

.pro-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.detail-head {
  border-bottom: 1px solid rgba(116, 96, 146, 0.1);
  padding: 18px;
}

.detail-head h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.detail-head span {
  color: #8f879d;
  font-size: 13px;
}

.shensha-list,
.relation-list {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}

.shensha-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px 0;
}

.shensha-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(116, 96, 146, 0.08);
  color: #6f6878;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.shensha-summary b {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #9f8242;
  font-size: 11px;
}

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

.shensha-pillar-card {
  border: 1px solid rgba(116, 96, 146, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.shensha-pillar-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.shensha-pillar-card strong {
  color: var(--ink);
  font-size: 18px;
}

.shensha-pillar-card > div:first-child span {
  color: #9f8242;
  font-weight: 950;
}

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

.shensha-chip {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 255, 248, 0.9), rgba(255, 247, 228, 0.86));
  color: #2b2438;
  padding: 7px 9px;
  font-weight: 900;
  cursor: help;
}

.shensha-chip small {
  margin-left: 5px;
  color: #8f879d;
  font-size: 10px;
}

.shensha-chip-row p {
  margin: 0;
  color: #8f879d;
  line-height: 1.6;
}

.shensha-list article {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.shensha-list strong {
  color: #2b2438;
  font-size: 18px;
}

.shensha-list p,
.relation-list p {
  margin: 0;
  color: #8b773f;
  line-height: 1.75;
}

.relation-list p {
  border-left: 3px solid #c7aa55;
  padding-left: 10px;
  color: #4a405c;
}

.energy-board {
  display: grid;
  gap: 12px;
}

.element-reference-card {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(247, 255, 251, 0.72)),
    radial-gradient(circle at 88% 12%, rgba(247, 200, 111, 0.18), transparent 30%);
  padding: 20px;
}

.element-reference-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: end;
}

.element-reference-head h3 {
  margin-bottom: 8px;
  font-size: 26px;
}

.element-reference-head p {
  margin: 0;
  color: #5e5471;
  line-height: 1.7;
}

.element-balance-bar {
  display: grid;
  gap: 8px;
  border-radius: 16px;
  background: rgba(43, 36, 56, 0.05);
  padding: 14px;
  color: #5e5471;
  font-size: 13px;
  font-weight: 900;
}

.element-balance-bar div {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 131, 239, 0.62), rgba(255, 255, 255, 0.88));
}

.element-balance-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #df3636, #ff8f66);
}

.element-reference-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.element-reference-grid article {
  min-height: 118px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px;
}

.element-reference-grid span {
  color: #9f8242;
  font-size: 12px;
  font-weight: 950;
}

.element-reference-grid strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 22px;
}

.element-reference-grid p {
  margin: 0;
  color: #665d71;
  font-size: 13px;
  line-height: 1.6;
}

.fusion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.fusion-card,
.match-hero {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 20px;
}

.fusion-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
}

.fusion-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.fusion-card p,
.match-hero p {
  margin-bottom: 0;
  color: #5e5471;
  line-height: 1.65;
}

.match-hero {
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 239, 245, 0.74));
}

.match-hero h3 {
  margin-bottom: 10px;
  font-size: 30px;
}

.energy-card {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(135deg, var(--element-soft), rgba(255, 255, 255, 0.78));
}

.element-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.element-analysis-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(116, 96, 146, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--element-soft), rgba(255, 255, 255, 0.78));
  padding: 18px;
}

.element-analysis-card strong {
  display: block;
  margin-top: 5px;
  color: var(--element-deep);
  font-size: 21px;
}

.element-analysis-card p {
  margin: 0;
  color: #5e5471;
  line-height: 1.62;
}

.element-mini-stats,
.element-ten-gods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.element-mini-stats span,
.element-ten-gods b {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--element-deep);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
}

.element-score-grid {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.element-score-grid div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.element-score-grid span {
  color: #777080;
  font-size: 12px;
  font-weight: 900;
}

.element-score-grid i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.element-score-grid em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--element-gradient);
}

.element-score-grid strong {
  margin: 0;
  color: var(--element-deep);
  font-size: 13px;
  text-align: right;
}

.energy-name strong {
  display: block;
  font-size: 28px;
  color: var(--element-deep);
}

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

.track {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.bar {
  height: 100%;
  border-radius: 999px;
}

.energy-percent {
  font-weight: 950;
  text-align: right;
  color: var(--element-deep);
}

.advice-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) 1fr;
  gap: 24px;
  padding: 24px;
}

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

.advice-item {
  border-left: 4px solid var(--mint);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px 16px;
  color: #3a304e;
  line-height: 1.58;
}

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

.luck-card {
  min-height: 160px;
  padding: 20px;
}

.luck-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
}

.stage-foot {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  min-height: 20px;
  color: var(--mint);
  font-weight: 900;
}

@media (max-width: 900px) {
  .app-shell {
    padding: 88px 14px 104px;
  }

  .workspace,
  .workspace.form-mode,
  .web-orbit-card,
  .reading-card,
  .element-reading,
  .element-reference-head,
  .advice-layout,
  .membership-value-hero,
  .hero-card,
  .fusion-grid,
  .mbti-test-hero,
  .section-mini-head,
  .test-layout,
  .learn-layout,
  .share-layout,
  .luck-analysis-head,
  .report-tier-guide,
  .dating-app-head,
  .dating-candidate-card {
    grid-template-columns: 1fr;
  }

  .input-rail,
  .result-stage {
    min-height: auto;
  }

  .brand {
    align-items: flex-start;
  }

  .brand > div {
    min-width: 0;
  }

  .brand h1,
  .intro-copy {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
  }

  .web-hero {
    display: none;
  }

  .hero-orbit {
    width: min(230px, 70vw);
    min-height: min(230px, 70vw);
  }

  .pillar-grid,
  .luck-grid,
  .quick-grid,
  .tool-grid,
  .liuren-palaces,
  .divination-modes,
  .divination-cast-methods,
  .divination-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-grid,
  .fusion-grid,
  .fusion-result-grid,
  .element-analysis-grid,
  .element-reference-grid,
  .featured-books,
  .book-shelf,
  .learn-quick-grid,
  .learn-cards,
  .membership-plans,
  .social-play-grid,
  .mbti-scene-grid,
  .mbti-persona-atlas,
  .marriage-module-grid,
  .marriage-record-list,
  .home-entry-panel,
  .dating-inner-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .luck-focus-grid,
  .day-hour-lock,
  .match-score-panel,
  .marriage-hero,
  .marriage-profile-gate,
  .pro-detail-grid,
  .record-detail-grid,
  .shensha-grid {
    grid-template-columns: 1fr;
  }

  .six-year-list {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 560px) {
  .dating-app-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dating-app-head button,
  .dating-candidate-card > button {
    width: 100%;
  }

  .dating-candidate-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .dating-photo {
    width: 84px;
    border-radius: 24px;
  }

  .dating-filter-row,
  .dating-feed-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dating-inner-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .dating-inner-tabs button {
    min-height: 36px;
    padding: 0;
    font-size: 12px;
  }

  .input-rail,
  .result-stage,
  .hero-card {
    border-radius: 16px;
    padding: 18px;
  }

  .profile-form {
    gap: 10px;
    padding: 10px 12px 12px;
  }

  .profile-form > .field {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
  }

  .profile-form > .field > span {
    font-size: 14px;
  }

  input[type="text"],
  select {
    height: 40px;
  }

  .wheel-grid,
  .location-grid {
    gap: 7px;
  }

  .input-rail > .fun-card {
    grid-template-columns: 1fr;
  }

  .input-rail > .fun-card span,
  .input-rail > .fun-card strong,
  .input-rail > .fun-card p,
  .input-rail > .fun-card button {
    grid-column: auto;
    grid-row: auto;
  }

  .daily-reward,
  .record-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .record-list .history-item.record-profile-card,
  .record-profile-card {
    grid-template-columns: 1fr;
  }

  .record-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-reward button,
  .daily-task button,
  .home-entry-panel button:first-child,
  .learn-hero-actions > button,
  .learn-hero > button {
    width: 100%;
  }

  .daily-reward button {
    min-width: 0;
  }

  .daily-task {
    grid-template-columns: 1fr;
  }

  .date-wheel,
  .button-row,
  .number-cast-grid,
  .element-stat-grid,
  .element-analysis-grid,
  .element-reference-head,
  .element-reference-grid,
  .meihua-board,
  .reading-detail-grid,
  .divination-actions,
  .divination-result-actions,
  .fusion-actions,
  .match-input-grid,
  .match-mode-tabs,
  .marriage-module-grid,
  .marriage-record-list,
  .marriage-profile-gate,
  .marriage-hero,
  .match-score-panel,
  .match-result-grid,
  .shensha-grid,
  .year-tool,
  .axis-card,
  .question-options,
  .value-split,
  .module-grid,
  .retention-strip,
  .daily-metrics,
  .daily-reward,
  .learn-cards,
  #learnGlossary,
  .glossary-grid,
  .liuren-detail-grid,
  .viral-card,
  .social-card,
  .report-tier-guide,
  .luck-analysis-head,
  .luck-focus-grid,
  .day-hour-lock,
  .social-play-grid,
  .mbti-version-grid,
  .mbti-scene-grid,
  .mbti-persona-atlas,
  .membership-plans,
  .pillar-grid,
  .luck-grid,
  .china-location,
  .global-location {
    grid-template-columns: 1fr;
  }

  .glossary-item {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
  }

  .glossary-item strong {
    white-space: normal;
  }

  .luck-analysis-head button {
    width: 100%;
  }

  .six-year-board > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .six-year-list {
    grid-template-columns: 1fr;
  }

  .coin-line {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .coin-line em {
    text-align: left;
  }

  .share-poster {
    min-height: 460px;
  }

  .record-toolbar {
    grid-template-columns: 1fr 86px;
  }

  .membership-head,
  .membership-value-hero,
  .monthly-offset-head {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .membership-value-hero button {
    width: 100%;
  }

  .filter-button {
    padding: 0 10px;
  }

  .app-topbar {
    height: 72px;
    padding: 0 18px;
  }

  .app-topbar h1 {
    font-size: 22px;
  }

  .screen-head h2,
  .settings-hero h2,
  .membership-head h3,
  .tool-section h3,
  .book-library-head h3 {
    font-size: 24px;
  }

  .learn-hero > strong,
  .modal-card h2 {
    font-size: 26px;
  }

  .comic-hero strong,
  .share-poster strong,
  .stage-head h2,
  .hero-copy h3,
  .persona-atlas-hero h3 {
    font-size: 30px;
  }

  .screen-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .screen-head > p {
    text-align: left;
  }

  .record-head-actions {
    width: 100%;
  }

  .record-head-actions .secondary-button:first-child {
    flex: 1;
  }

  .screen-card,
  .settings-hero,
  .vip-card,
  .tool-section {
    border-radius: 18px;
    padding: 18px;
  }

  .quick-grid,
  .tool-grid,
  .book-grid,
  .sbti-test-grid,
  .divination-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .learn-quick-grid,
  .learn-cards {
    grid-template-columns: 1fr;
  }

  .fusion-result-grid,
  .match-result-grid {
    grid-template-columns: 1fr;
  }

  .axis-card {
    grid-template-columns: 1fr;
  }

  .library-tabs {
    grid-template-columns: repeat(3, 1fr);
    font-size: 14px;
  }

  .book-hero strong {
    font-size: 32px;
  }

  .vip-card {
    grid-template-columns: 1fr;
  }

  .vip-card button {
    grid-row: auto;
  }

  .stage-head {
    grid-template-columns: 1fr auto;
  }

  .stage-head > div {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .stage-head h2 {
    font-size: 30px;
  }

  .paywall-banner,
  .reading-card,
  .full-report-hero,
  .full-report-grid,
  .full-report-actions,
  .unlock-grid {
    grid-template-columns: 1fr;
  }

  .paywall-banner button {
    width: 100%;
  }

  .full-report-hero,
  .full-report-section,
  .full-report-actions {
    padding-right: 18px;
    padding-left: 18px;
  }

  .full-report-pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .full-report-pillars span {
    min-height: 58px;
    font-size: 18px;
  }

  .full-report-toolbar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .full-report-hero h2 {
    margin-right: 0;
    font-size: 27px;
  }

  .full-report-index {
    padding-right: 18px;
    padding-left: 18px;
  }

  .full-report-element {
    grid-template-columns: 1fr;
  }

  .full-report-element p,
  .full-report-element i {
    grid-column: 1;
    grid-row: auto;
  }

  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .energy-card {
    grid-template-columns: 1fr;
  }

  .energy-percent {
    text-align: left;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .divination-quota-panel {
    grid-template-columns: 1fr;
  }

  .divination-quota-panel button {
    width: 100%;
  }
}

/* Launch polish: keep the first screen focused and make dense professional data readable. */
.daily-reward,
.profile-form > .system-test-entry,
.profile-form > .value-split {
  display: none !important;
}

.home-entry-panel {
  gap: 8px;
}

.home-entry-panel button {
  min-height: 64px;
  border-radius: 14px;
  padding: 11px 12px;
}

.home-entry-panel button:first-child {
  min-height: 76px;
}

.home-entry-panel button[data-open-screen="share"] {
  display: none;
}

.profile-form {
  gap: 6px;
  padding: 10px 12px;
}

.profile-form > .field,
.profile-form > .switch-line {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
}

.profile-form > .field > span {
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.profile-form input[type="text"],
.profile-form select {
  height: 36px;
  border-radius: 10px;
}

.profile-form .segmented {
  min-height: 36px;
  padding: 4px;
}

.profile-form .segmented button {
  min-height: 28px;
}

.wheel-grid,
.location-grid {
  gap: 7px;
}

.record-list .history-item.record-profile-card,
.record-profile-card {
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.1fr) minmax(240px, 1fr) minmax(160px, auto);
  align-items: start;
  gap: 12px;
  padding: 14px;
}

.record-main strong {
  font-size: 18px;
  line-height: 1.18;
}

.record-detail-grid {
  gap: 8px;
}

.record-detail-grid span {
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 12px;
}

.record-actions {
  align-content: start;
  grid-template-columns: 1fr;
  gap: 7px;
}

.record-actions button {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.learn-cards,
.glossary-grid {
  align-items: stretch;
}

.learn-card {
  min-height: 0;
  align-content: start;
}

.learn-card p,
.glossary-grid p,
.full-report-section p,
.element-analysis-card p {
  word-break: normal;
  overflow-wrap: break-word;
}

.glossary-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.full-report-modal {
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.full-report-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.full-report-section {
  padding: 18px 24px;
}

.full-report-grid article,
.element-analysis-card {
  min-height: 0;
}

.pillar-card strong,
.rich-pillar-card strong,
.basic-bazi-matrix strong {
  letter-spacing: 0;
}

.energy-card .bar,
.element-analysis-card .bar {
  min-width: 4px;
}

.screen-back-row {
  width: min(940px, calc(100% - 28px));
  margin: 14px auto 0;
}

.screen-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(41, 34, 57, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #2c2538;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.screen-back-button span {
  font-size: 20px;
  line-height: 1;
}

.screen-back-button:hover {
  border-color: rgba(42, 198, 160, 0.5);
  background: #fff;
}

.fusion-evidence-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.fusion-evidence-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(41, 34, 57, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.fusion-evidence-card > span,
.fusion-analysis-heading > span {
  color: #159b7f;
  font-size: 12px;
  font-weight: 800;
}

.fusion-evidence-card strong {
  display: block;
  margin-top: 5px;
  color: #282135;
  font-size: 17px;
}

.fusion-evidence-card p,
.fusion-analysis-section p {
  margin: 7px 0 0;
  color: #6b6478;
  line-height: 1.65;
}

.fusion-analysis-section {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(41, 34, 57, 0.1);
  border-radius: 8px;
  background: #fff;
}

.fusion-analysis-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fusion-analysis-heading > span {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #e8f8f4;
}

.fusion-analysis-heading strong {
  display: block;
  color: #282135;
  font-size: 18px;
}

.fusion-analysis-heading p {
  margin-top: 3px;
  font-size: 13px;
}

.fusion-insight-list,
.fusion-action-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.fusion-insight-list li,
.fusion-action-list li {
  position: relative;
  padding: 11px 14px 11px 38px;
  border-radius: 7px;
  background: #f7f6f9;
  color: #4d4659;
  line-height: 1.55;
}

.fusion-insight-list li::before,
.fusion-action-list li::before {
  position: absolute;
  left: 14px;
  color: #18a98a;
  font-weight: 900;
}

.fusion-insight-list li::before {
  content: "✓";
}

.fusion-action-list {
  counter-reset: fusion-action;
}

.fusion-action-list li {
  counter-increment: fusion-action;
}

.fusion-action-list li::before {
  content: counter(fusion-action);
}

.fusion-tension-section {
  border-color: rgba(220, 170, 65, 0.3);
  background: #fffdf7;
}

.fusion-tension-copy {
  padding: 13px 15px;
  border-left: 3px solid #d8aa45;
  background: rgba(255, 247, 224, 0.72);
}

.fusion-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.fusion-scene-grid article {
  min-width: 0;
  padding: 14px;
  border-radius: 7px;
  background: #f7f6f9;
}

.fusion-scene-grid strong {
  color: #2d2639;
}

.fusion-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.fusion-next-actions button {
  flex: 1 1 180px;
}

@media (max-width: 900px) {
  .record-list .history-item.record-profile-card,
  .record-profile-card {
    grid-template-columns: 1fr;
  }

  .record-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fusion-evidence-strip,
  .fusion-scene-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-entry-panel {
    grid-template-columns: 1fr;
  }

  .profile-form > .field,
  .profile-form > .switch-line {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .profile-form > .field > span {
    font-size: 12px;
  }

  .screen-back-row {
    width: calc(100% - 20px);
    margin-top: 8px;
  }

  .screen-back-button {
    min-height: 36px;
    font-size: 13px;
  }

  .fusion-analysis-section {
    padding: 14px;
  }
}

