:root {
  color-scheme: light;
  --ink: #22241f;
  --muted: #6f746a;
  --line: #ddd6c7;
  --paper: #f7f1e5;
  --paper-deep: #efe4d1;
  --panel: #fffdf8;
  --gold: #b88735;
  --copper: #b96832;
  --jade: #1f7667;
  --rose: #9f4250;
  --blue: #2f546f;
  --shadow: 0 24px 58px rgba(50, 43, 31, 0.16);
  --soft-shadow: 0 14px 34px rgba(77, 62, 38, 0.1);
}

/* Early Jade Oracle draft; final overrides live in jade-oracle.css. */
#home-view {
  background: #f5efe3;
}

#home-view .reference-home-header {
  position: relative;
  z-index: 5;
  width: 100%;
  margin: 0;
  padding: 24px 34px 14px;
  border: 0;
  background: #0d3933;
}

#home-view .reference-brand {
  align-items: center;
  gap: 12px;
  color: #ebce91;
}

#home-view .reference-brand-seal {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(235, 206, 145, 0.55);
  border-radius: 50%;
  background: rgba(7, 31, 28, 0.28);
  color: #ebce91;
  box-shadow: none;
}

#home-view .reference-brand-copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

#home-view .reference-brand strong {
  color: #f0d79e;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#home-view .reference-brand small {
  color: rgba(246, 225, 179, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

#home-view .reference-home-tools button {
  min-height: 38px;
  padding: 8px 12px;
  border-color: rgba(235, 206, 145, 0.28);
  background: rgba(7, 31, 28, 0.24);
  color: rgba(246, 225, 179, 0.86);
  box-shadow: none;
}

#home-view .reference-home-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 490px;
  margin: 0;
  padding: 44px 70px 72px;
  overflow: hidden;
  background: #0d3933 url("assets/home-hero-jade-oracle-v1.png") center center / cover no-repeat;
}

#home-view .reference-home-hero::after {
  display: none;
}

#home-view .reference-hero-copy {
  width: min(760px, 100%);
  max-width: none;
  margin: 0 auto;
  text-align: center;
}

#home-view .brand-position {
  display: inline-block;
  margin: 0 0 28px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(235, 206, 145, 0.48);
  border-radius: 0;
  background: transparent;
  color: #e8c983;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

#home-view .reference-hero-copy h1 {
  max-width: 13em;
  margin: 0 auto;
  color: #f1d59a;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.025em;
  text-wrap: balance;
}

#home-view .reference-verdict-action {
  max-width: 32em;
  margin: 26px auto 0;
  color: rgba(249, 231, 194, 0.8);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

#home-view .reference-verdict-proof {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 9px 18px;
  border: 1px solid rgba(235, 206, 145, 0.5);
  border-radius: 999px;
  color: #edd29b;
}

#home-view .reference-verdict-proof span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

#home-view .reference-verdict-proof strong {
  font-size: 12px;
  letter-spacing: 0.12em;
}

#home-view .ming-dashboard {
  width: 100%;
  margin: 0;
  padding: 48px 54px 42px;
  background: #f5efe3 url("assets/home-hero-ink-landscape.jpg") center bottom / 100% auto no-repeat;
}

#home-view .ming-dashboard::before,
#home-view .ming-dashboard::after {
  display: none;
}

#home-view .ming-dashboard-body {
  width: min(940px, 100%);
  margin: 0 auto;
  gap: 18px;
}

#home-view .ming-dashboard .daily-question-banner {
  grid-template-columns: minmax(0, 1fr) 58px;
  width: min(720px, 100%);
  min-height: 98px;
  margin: 0 auto;
  padding: 18px 30px;
  border: 2px solid #c7a05c;
  border-radius: 24px;
  background: #123f38;
  box-shadow: 0 14px 26px rgba(34, 51, 43, 0.18);
}

#home-view .ming-dashboard .daily-question-banner::before,
#home-view .ming-dashboard .daily-question-banner::after {
  display: none;
}

#home-view .daily-question-copy {
  text-align: center;
}

#home-view .ming-dashboard .daily-question-copy > span {
  color: #efd39a;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

#home-view .ming-dashboard .daily-question-copy p {
  margin-top: 5px;
  color: rgba(248, 227, 185, 0.7);
  font-size: 13px;
}

#home-view .ming-dashboard .daily-question-banner .route-arrow {
  width: 46px;
  height: 46px;
  border-color: #d0ae6d;
  color: #e9c982;
}

#home-view .home-evidence-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: center;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid rgba(30, 83, 71, 0.32);
  background: transparent;
  color: #22594d;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 18px;
  font-weight: 800;
}

#home-view .home-evidence-link .route-arrow {
  width: 12px;
  height: 12px;
  border: 0;
}

#home-view .home-evidence-link .route-arrow::after {
  width: 7px;
  height: 7px;
}

#home-view .destiny-overview-system {
  margin-top: 8px;
  padding: 22px 26px;
  border: 1px solid rgba(185, 141, 75, 0.32);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.76);
  box-shadow: none;
  backdrop-filter: none;
}

#home-view .destiny-overview-system::after {
  display: none;
}

#home-view .destiny-overview-system > header {
  margin-bottom: 14px;
}

#home-view .destiny-overview-system-body {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
}

#home-view .destiny-guardian-portrait img {
  width: 128px;
}

#home-view .destiny-guardian-portrait figcaption {
  display: none;
}

#home-view .home-fate-kicker {
  display: block;
  margin-bottom: 8px;
  color: #a27a3c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

#home-view .destiny-profile-lines > strong {
  display: block;
  color: #173f37;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 23px;
  line-height: 1.42;
}

#home-view .destiny-status-pods {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  #home-view .reference-home-header {
    padding: 18px 18px 10px;
  }

  #home-view .reference-brand-seal {
    width: 34px;
    height: 34px;
  }

  #home-view .reference-brand strong {
    font-size: 16px;
  }

  #home-view .reference-home-tools button {
    min-width: 38px;
    min-height: 36px;
    padding: 7px 9px;
  }

  #home-view .reference-home-tools button span {
    display: none;
  }

  #home-view .reference-home-hero {
    min-height: 420px;
    padding: 34px 22px 48px;
    background-position: center center;
  }

  #home-view .brand-position {
    margin-bottom: 23px;
    font-size: 15px;
  }

  #home-view .reference-hero-copy h1 {
    max-width: 9.6em;
    font-size: clamp(34px, 9.5vw, 42px);
    line-height: 1.35;
  }

  #home-view .reference-verdict-action {
    max-width: 20em;
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.65;
  }

  #home-view .reference-verdict-proof {
    margin-top: 24px;
    padding: 8px 15px;
  }

  #home-view .ming-dashboard {
    padding: 34px 18px 96px;
    background-size: auto 300px;
  }

  #home-view .ming-dashboard-body {
    gap: 14px;
  }

  #home-view .ming-dashboard .daily-question-banner {
    grid-template-columns: minmax(0, 1fr) 44px;
    min-height: 82px;
    padding: 14px 18px;
    border-radius: 22px;
  }

  #home-view .ming-dashboard .daily-question-copy > span {
    font-size: 25px;
  }

  #home-view .ming-dashboard .daily-question-copy p {
    font-size: 11px;
  }

  #home-view .ming-dashboard .daily-question-banner .route-arrow {
    width: 38px;
    height: 38px;
  }

  #home-view .home-evidence-link {
    font-size: 16px;
  }

  #home-view .destiny-overview-system {
    margin-top: 2px;
    padding: 18px 16px;
    border-radius: 16px;
  }

  #home-view .destiny-overview-system > header {
    display: none;
  }

  #home-view .destiny-overview-system-body {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 15px;
    justify-items: stretch;
    text-align: left;
  }

  #home-view .destiny-guardian-portrait {
    width: 92px;
  }

  #home-view .destiny-guardian-portrait img {
    width: 88px;
  }

  #home-view .destiny-profile-lines {
    align-self: center;
  }

  #home-view .destiny-profile-lines > strong {
    font-size: 17px;
    line-height: 1.42;
  }

  #home-view .destiny-profile-lines p {
    font-size: 11px;
    line-height: 1.55;
  }

  #home-view .destiny-status-pods {
    display: none;
  }

  #home-view .ming-structure-zone,
  #home-view .dashboard-utility-line {
    margin-top: 8px;
  }
}

/* Refined home: stable production baseline with one clear daily action. */
#home-view {
  padding-top: 0;
}

#home-view .profile-overview {
  gap: 0;
}

.reference-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(63, 74, 67, 0.1);
}

.reference-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #24312d;
}

.reference-brand-seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #9e453c;
  color: #fff8e9;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(111, 45, 39, 0.2);
}

.reference-brand strong {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.reference-home-tools {
  display: flex;
  gap: 8px;
}

.reference-home-tools button {
  display: grid;
  grid-template-columns: 16px auto;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(46, 65, 58, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 252, 0.72);
  color: #4f5d57;
  font-size: 12px;
  font-weight: 700;
}

.reference-home-tools svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.reference-home-hero {
  position: relative;
  overflow: hidden;
  min-height: 226px;
  margin: 0 -24px;
  padding: 48px 52% 36px 28px;
  background:
    linear-gradient(90deg, #f8f6ef 0 32%, rgba(248, 246, 239, 0.82) 46%, rgba(248, 246, 239, 0.06) 78%),
    url("assets/home-hero-ink-landscape.jpg") 66% center / cover no-repeat;
}

.reference-home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 56px;
  background: linear-gradient(to bottom, transparent, #f8f7f2);
}

.reference-hero-copy {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
}

.reference-hero-copy h1 {
  margin: 0;
  color: #1d2b27;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: clamp(38px, 7vw, 54px);
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-shadow: none;
}

.reference-hero-copy p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  color: #56645e;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.reference-hero-copy i {
  width: 18px;
  height: 1px;
  background: rgba(84, 100, 93, 0.42);
}

.reference-home-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  margin-top: -22px;
  padding-bottom: 26px;
}

.destiny-overview-card,
.destiny-quote-card,
.today-insight-card,
.reading-counter-bar {
  border: 1px solid rgba(54, 66, 59, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 252, 0.94);
  box-shadow: 0 12px 32px rgba(50, 56, 49, 0.07);
}

.destiny-overview-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 22px;
  cursor: pointer;
}

.destiny-overview-card::after {
  content: "竹";
  position: absolute;
  right: -6px;
  bottom: -24px;
  color: rgba(37, 103, 87, 0.045);
  font-family: "Songti SC", serif;
  font-size: 118px;
  transform: rotate(-13deg);
}

.destiny-overview-card > header,
.today-insight-card > header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.destiny-overview-card h2,
.today-insight-card h2,
.destiny-quote-card h2 {
  margin: 0;
  color: #25332e;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
}

.destiny-overview-card h2 {
  padding-left: 12px;
  font-size: 18px;
}

.destiny-overview-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 3px;
  height: 19px;
  border-radius: 99px;
  background: #a54c42;
}

.reference-chevron,
.route-arrow {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.reference-chevron {
  border: 1px solid rgba(39, 88, 76, 0.13);
  background: #f3f6f1;
}

.reference-chevron::after,
.route-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  transform: translate(-62%, -50%) rotate(45deg);
}

.destiny-overview-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 15px;
}

.destiny-direction {
  margin: 0;
  text-align: center;
}

.destiny-direction img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(0.96);
  box-shadow: inset 0 0 0 1px rgba(55, 65, 58, 0.08);
}

.destiny-direction figcaption {
  display: inline-flex;
  margin-top: -10px;
  padding: 5px 12px;
  border: 1px solid rgba(46, 75, 66, 0.1);
  border-radius: 999px;
  background: #faf9f4;
  color: #436156;
  font-size: 11px;
  font-weight: 800;
}

.destiny-overview-copy strong {
  display: block;
  margin-bottom: 12px;
  color: #1f302a;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 21px;
  line-height: 1.4;
}

.destiny-overview-copy p {
  margin: 7px 0 0;
  color: #68716c;
  font-size: 13px;
  line-height: 1.6;
}

.destiny-overview-copy em {
  color: #8c5e2d;
  font-style: normal;
  font-weight: 800;
}

.daily-question-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 58px 1fr 38px;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 20px 22px;
  border: 1px solid rgba(198, 170, 108, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 7% 20%, rgba(226, 199, 132, 0.16), transparent 22%),
    linear-gradient(125deg, #183d36, #276557);
  color: #f8f0dc;
  box-shadow: 0 16px 32px rgba(24, 61, 54, 0.18);
  cursor: pointer;
}

.daily-question-banner::after {
  content: "乾　坤　坎　离";
  position: absolute;
  right: 18px;
  bottom: -3px;
  color: rgba(255, 245, 217, 0.05);
  font-family: "Songti SC", serif;
  font-size: 31px;
  white-space: nowrap;
}

.daily-question-banner.is-locked {
  cursor: default;
  filter: saturate(0.7);
}

.bagua-medallion {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(229, 202, 141, 0.55);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(229, 202, 141, 0.07);
}

.bagua-medallion span {
  color: #dfc17c;
  font-size: 26px;
}

.daily-question-copy {
  position: relative;
  z-index: 1;
}

.daily-question-copy > span {
  display: block;
  margin-bottom: 7px;
  color: #fff7e5;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.daily-question-copy p {
  margin: 0;
  color: rgba(248, 240, 220, 0.7);
  font-size: 12px;
  line-height: 1.6;
}

.daily-question-banner .route-arrow {
  z-index: 1;
  display: block;
  border: 1px solid rgba(225, 196, 128, 0.65);
  background: rgba(255, 255, 255, 0.03);
  color: #e1c480;
}

.daily-question-banner button.route-arrow {
  padding: 0;
}

.destiny-quote-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 116px;
  padding: 20px 74px 20px 22px;
}

.destiny-quote-card > div span,
.today-insight-card > header span {
  display: block;
  margin-bottom: 5px;
  color: #9b4a41;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.destiny-quote-card h2,
.today-insight-card h2 {
  font-size: 18px;
}

.destiny-quote-card p {
  margin: 0;
  color: #4e5b55;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 16px;
  line-height: 1.8;
}

.destiny-quote-card > i {
  position: absolute;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(158, 69, 60, 0.42);
  color: #9e453c;
  font-family: "Songti SC", serif;
  font-size: 17px;
  font-style: normal;
  transform: rotate(-5deg);
}

.today-insight-card {
  padding: 22px;
}

.today-insight-card > header {
  margin-bottom: 18px;
}

.today-insight-card > header > p {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ef;
  color: #416358;
  font-size: 11px;
  font-weight: 800;
}

.destiny-trio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.12fr;
  gap: 10px;
}

.destiny-trio-card {
  min-width: 0;
  min-height: 194px;
  padding: 15px;
  border: 1px solid rgba(54, 66, 59, 0.08);
  border-radius: 14px;
  background: #f7f6f1;
}

.destiny-trio-card h3 {
  margin: 0 0 12px;
  color: #35443e;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 14px;
}

.destiny-trio-card p {
  margin: 8px 0 0;
  color: #707872;
  font-size: 10px;
  line-height: 1.55;
}

.element-orbit {
  position: relative;
  width: 94px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 4px auto 7px;
}

.element-orbit svg {
  width: 100%;
  fill: none;
  stroke: rgba(44, 105, 88, 0.38);
  stroke-width: 1.1;
}

.element-orbit b {
  position: absolute;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #fff;
  color: #476158;
  font-size: 10px;
  box-shadow: 0 3px 10px rgba(45, 63, 55, 0.09);
}

.element-orbit .element-木 { left: 50%; top: -2px; transform: translateX(-50%); color: #46765c; }
.element-orbit .element-火 { right: -3px; top: 35%; color: #a95345; }
.element-orbit .element-土 { right: 11px; bottom: 0; color: #987043; }
.element-orbit .element-金 { left: 11px; bottom: 0; color: #806d46; }
.element-orbit .element-水 { left: -3px; top: 35%; color: #456b83; }

.guardian-small-card {
  display: block;
}

.guardian-small-card .guardian-image {
  display: block;
  width: 100%;
  height: 92px;
  margin-bottom: 8px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  filter: saturate(0.78) contrast(0.96);
  mask-image: none;
}

.guardian-small-card > strong {
  display: block;
  color: #384a43;
  font-size: 12px;
}

.keyword-card .keyword-tags {
  display: grid;
  gap: 6px;
}

.keyword-card .keyword-tags b {
  display: block;
  overflow: hidden;
  padding: 7px 8px;
  border-radius: 7px;
  background: #e8f0eb;
  color: #356555;
  font-size: 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keyword-card p strong {
  color: #8d493f;
}

.reading-counter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 12px 18px;
  box-shadow: none;
}

.reading-counter-bar p {
  margin: 0;
  color: #69736d;
  font-size: 12px;
}

.reading-counter-bar p span {
  margin-right: 4px;
  color: #3a6b5d;
}

.reading-counter-bar button {
  flex: 0 0 auto;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid rgba(43, 92, 78, 0.34);
  background: transparent;
  color: #315f53;
  font-size: 12px;
  font-weight: 800;
}

.empty-destiny-card > div {
  display: grid;
  justify-items: center;
  padding: 24px 12px 10px;
  text-align: center;
}

.empty-destiny-seal {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  border: 1px solid rgba(158, 69, 60, 0.36);
  border-radius: 50%;
  color: #9e453c;
  font-family: "Songti SC", serif;
  font-size: 25px;
}

.empty-destiny-card strong {
  color: #25332e;
  font-family: "Songti SC", serif;
  font-size: 23px;
}

.empty-destiny-card p {
  max-width: 390px;
  margin: 10px 0 18px;
  color: #6c756f;
  line-height: 1.7;
}

.empty-destiny-card .primary-action {
  width: min(260px, 100%);
}

@media (max-width: 620px) {
  #home-view {
    margin: 0 -16px;
  }

  .reference-home-header {
    min-height: 64px;
    padding: 10px 16px;
  }

  .reference-brand strong {
    max-width: 118px;
    font-size: 11px;
    line-height: 1.35;
  }

  .reference-home-tools button {
    grid-template-columns: 15px;
    width: 34px;
    padding: 0;
  }

  .reference-home-tools button span {
    display: none;
  }

  .reference-home-hero {
    min-height: 200px;
    margin: 0;
    padding: 38px 43% 30px 18px;
    background:
      linear-gradient(90deg, #f8f6ef 0 27%, rgba(248, 246, 239, 0.72) 48%, rgba(248, 246, 239, 0.04) 80%),
      url("assets/home-hero-ink-landscape.jpg") 67% center / cover no-repeat;
  }

  .reference-hero-copy h1 {
    font-size: 34px;
  }

  .reference-hero-copy p {
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .reference-hero-copy i {
    width: 10px;
  }

  .reference-home-content {
    gap: 12px;
    margin-top: -18px;
    padding: 0 14px 22px;
  }

  .destiny-overview-card {
    padding: 17px 17px 19px;
    border-radius: 16px;
  }

  .destiny-overview-body {
    grid-template-columns: 92px 1fr;
    gap: 14px;
  }

  .destiny-overview-copy strong {
    margin-bottom: 8px;
    font-size: 17px;
  }

  .destiny-overview-copy p {
    font-size: 11px;
  }

  .daily-question-banner {
    grid-template-columns: 48px 1fr 32px;
    gap: 12px;
    min-height: 102px;
    padding: 17px;
    border-radius: 16px;
  }

  .bagua-medallion {
    width: 48px;
    height: 48px;
  }

  .bagua-medallion span {
    font-size: 22px;
  }

  .daily-question-copy > span {
    font-size: 20px;
  }

  .daily-question-copy p {
    font-size: 11px;
  }

  .daily-question-banner .route-arrow {
    width: 32px;
    height: 32px;
  }

  .destiny-quote-card {
    display: block;
    min-height: 0;
    padding: 18px 58px 18px 17px;
    border-radius: 16px;
  }

  .destiny-quote-card > div {
    margin-bottom: 10px;
  }

  .destiny-quote-card h2 {
    font-size: 16px;
  }

  .destiny-quote-card p {
    font-size: 14px;
    line-height: 1.7;
  }

  .destiny-quote-card > i {
    right: 15px;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translateY(-50%) rotate(-5deg);
  }

  .today-insight-card {
    padding: 18px 14px 14px;
    border-radius: 16px;
  }

  .today-insight-card > header {
    margin: 0 3px 14px;
  }

  .today-insight-card h2 {
    font-size: 16px;
  }

  .destiny-trio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .destiny-trio-card {
    min-height: 176px;
    padding: 12px;
    border-radius: 12px;
  }

  .keyword-card {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .keyword-card .keyword-tags {
    grid-template-columns: repeat(3, 1fr);
  }

  .keyword-card p {
    display: inline;
    margin-right: 12px;
  }

  .element-orbit {
    width: 82px;
  }

  .guardian-small-card .guardian-image {
    height: 82px;
  }

  .reading-counter-bar {
    min-height: 54px;
    padding: 11px 14px;
    border-radius: 14px;
  }

  .reading-counter-bar p {
    font-size: 11px;
  }
}

@media (max-width: 370px) {
  .reference-home-content {
    padding-inline: 10px;
  }

  .destiny-overview-body {
    grid-template-columns: 78px 1fr;
  }

  .daily-question-copy p {
    max-width: 170px;
  }
}

.bazi-chart-board {
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(84, 70, 46, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0, rgba(184, 135, 53, 0.16), transparent 24%),
    radial-gradient(circle at 10% 92%, rgba(31, 118, 103, 0.1), transparent 30%),
    rgba(255, 253, 248, 0.94);
  box-shadow: var(--soft-shadow);
}

.chart-system-header {
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(84, 70, 46, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 94% 0, rgba(184, 135, 53, 0.16), transparent 28%),
    linear-gradient(120deg, rgba(32, 34, 31, 0.96), rgba(45, 39, 30, 0.94));
  color: rgba(255, 250, 236, 0.86);
  box-shadow: var(--soft-shadow);
}

.chart-system-title {
  display: grid;
  gap: 8px;
}

.chart-system-title span {
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(242, 201, 134, 0.24);
  border-radius: 999px;
  background: rgba(242, 201, 134, 0.12);
  color: #f2c986;
  font-size: 12px;
  font-weight: 900;
}

.chart-system-title h2 {
  margin: 0;
  color: #fff7e2;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: clamp(26px, 5vw, 42px);
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.chart-system-title p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 250, 236, 0.62);
  line-height: 1.7;
}

.chart-profile-strip,
.chart-system-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(242, 201, 134, 0.14);
  border-radius: 8px;
  background: rgba(242, 201, 134, 0.14);
}

.chart-profile-strip p,
.chart-system-stats p {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  background: rgba(255, 250, 236, 0.055);
}

.chart-profile-strip span,
.chart-system-stats span {
  color: rgba(255, 250, 236, 0.5);
  font-size: 11px;
  font-weight: 800;
}

.chart-profile-strip strong,
.chart-system-stats strong {
  overflow: hidden;
  color: #fff7e2;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(84, 70, 46, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--soft-shadow);
}

.chart-mode-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.chart-mode-switch button.is-active {
  background: linear-gradient(135deg, rgba(31, 118, 103, 0.16), rgba(184, 135, 53, 0.16));
  color: #1f5d51;
  box-shadow: inset 0 0 0 1px rgba(31, 118, 103, 0.1);
}

.chart-panel {
  display: none;
  gap: 18px;
  min-width: 0;
}

.chart-panel.is-active {
  display: grid;
}

.bazi-board-head,
.bazi-classic-reference header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.bazi-board-head span,
.bazi-classic-reference header span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 118, 103, 0.1);
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.bazi-board-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.bazi-board-head b {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(184, 135, 53, 0.14);
  color: #815b20;
  font-size: 12px;
}

.bazi-meta-strip {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.bazi-meta-strip p {
  min-width: 0;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid rgba(84, 70, 46, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.75);
}

.bazi-meta-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.bazi-meta-strip strong {
  display: block;
  overflow: hidden;
  color: #3d5149;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bazi-table {
  display: grid;
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(247, 225, 181, 0.12);
  border-radius: 8px;
  background: rgba(247, 225, 181, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.bazi-row {
  display: grid;
  grid-template-columns: 58px repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.bazi-row-label,
.bazi-cell {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 50px;
  padding: 8px 5px;
  background: #171917;
  color: rgba(255, 250, 236, 0.78);
  text-align: center;
}

.bazi-row:nth-child(odd) .bazi-row-label,
.bazi-row:nth-child(odd) .bazi-cell {
  background: #20221f;
}

.bazi-row:first-child .bazi-row-label,
.bazi-row:first-child .bazi-cell {
  min-height: 58px;
  background: #24231d;
  color: #f2c986;
  font-weight: 900;
}

.bazi-row:first-child .bazi-row-label {
  color: rgba(242, 201, 134, 0.78);
}

.bazi-row:first-child .bazi-cell {
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.bazi-row-label {
  color: rgba(247, 225, 181, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.bazi-cell {
  font-size: 13px;
  line-height: 1.5;
}

.bazi-symbol {
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 0 16px currentColor;
}

.branch-symbol {
  font-size: 30px;
}

.element-木 {
  color: #2ccf8c;
}

.element-火 {
  color: #ff5959;
}

.element-土 {
  color: #d08a35;
}

.element-金 {
  color: #f3c778;
}

.element-水 {
  color: #36a9ff;
}

.bazi-mini-stack {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.bazi-mini-stack i {
  font-style: normal;
  font-weight: 800;
}

.bazi-mini-stack.star i {
  color: rgba(255, 250, 236, 0.76);
  font-weight: 700;
}

.bazi-classic-reference {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(84, 70, 46, 0.12);
}

.bazi-classic-reference header strong {
  color: #7a501b;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 20px;
}

.classic-source {
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.bazi-classic-reference blockquote,
.classic-empty {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(84, 70, 46, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(239, 228, 209, 0.76)),
    rgba(255, 253, 248, 0.9);
  color: #3f4650;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 16px;
  line-height: 2.05;
  white-space: pre-line;
}

.classic-analysis-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 10px;
  margin-top: 12px;
}

.classic-analysis-grid article {
  padding: 14px;
  border: 1px solid rgba(84, 70, 46, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.classic-analysis-grid article span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(31, 118, 103, 0.1);
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
}

.classic-analysis-grid p,
.classic-analysis-grid ul {
  margin: 0;
  color: #3f4650;
  font-size: 14px;
  line-height: 1.85;
}

.classic-analysis-grid ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.classic-modern-reading {
  grid-column: span 1;
}

.advanced-bazi-board {
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(84, 70, 46, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 0, rgba(184, 135, 53, 0.13), transparent 26%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(241, 235, 224, 0.86));
  box-shadow: var(--soft-shadow);
}

.advanced-bazi-board > * {
  min-width: 0;
}

.advanced-bazi-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.advanced-bazi-head span,
.luck-flow-section header span,
.advanced-classic-report header span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 118, 103, 0.1);
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
}

.advanced-bazi-head h2,
.advanced-classic-report header strong {
  margin: 0;
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 26px;
  line-height: 1.3;
}

.advanced-bazi-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.advanced-bazi-head b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #1d211e;
  color: #f2c986;
  font-size: 18px;
}

.advanced-bazi-table {
  display: block;
  gap: 1px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(247, 225, 181, 0.12);
  border-radius: 8px;
  background: rgba(247, 225, 181, 0.1);
}

.advanced-bazi-row {
  display: grid;
  grid-template-columns: 58px repeat(6, minmax(92px, 1fr));
  gap: 1px;
  width: max-content;
  min-width: 720px;
  margin-bottom: 1px;
}

.advanced-row-label,
.advanced-cell {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 8px 5px;
  background: #171917;
  color: rgba(255, 250, 236, 0.76);
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}

.advanced-bazi-row:nth-child(odd) .advanced-row-label,
.advanced-bazi-row:nth-child(odd) .advanced-cell {
  background: #20221f;
}

.advanced-bazi-row:first-child .advanced-row-label,
.advanced-bazi-row:first-child .advanced-cell {
  min-height: 54px;
  background: #24231d;
  color: #f2c986;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 16px;
  font-weight: 900;
}

.advanced-row-label {
  color: rgba(247, 225, 181, 0.62);
  font-weight: 900;
}

.hidden-detail i {
  display: grid;
  gap: 1px;
}

.hidden-detail small {
  color: rgba(255, 250, 236, 0.58);
  font-size: 10px;
  font-weight: 700;
}

.luck-flow-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.luck-flow-section article,
.advanced-classic-report {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(84, 70, 46, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
}

.luck-flow-section article {
  overflow: hidden;
}

.luck-flow-section header,
.advanced-classic-report header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.luck-flow-section header strong {
  color: var(--ink);
  font-size: 16px;
}

.luck-flow-strip {
  display: flex;
  gap: 1px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  background: rgba(84, 70, 46, 0.1);
}

.luck-flow-strip p {
  display: grid;
  gap: 3px;
  flex: 0 0 96px;
  min-height: 92px;
  margin: 0;
  padding: 10px;
  background: rgba(255, 253, 248, 0.86);
}

.luck-flow-strip p.is-current {
  background: linear-gradient(180deg, rgba(242, 201, 134, 0.24), rgba(255, 253, 248, 0.9));
  box-shadow: inset 0 0 0 1px rgba(184, 135, 53, 0.18);
}

.luck-flow-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.luck-flow-strip small {
  color: #8e7a58;
  font-size: 11px;
}

.luck-flow-strip strong {
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 20px;
}

.luck-flow-strip em {
  color: #6f7681;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.advanced-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.advanced-report-grid article {
  padding: 14px;
  border: 1px solid rgba(84, 70, 46, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.advanced-report-grid article span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #8a3f49;
  font-weight: 900;
}

.advanced-report-grid article p {
  margin: 0;
  color: #3f4650;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 620px) {
  .chart-system-header {
    padding: 16px;
  }

  .chart-system-title h2 {
    font-size: 25px;
  }

  .chart-profile-strip,
  .chart-system-stats {
    grid-template-columns: 1fr;
  }

  .bazi-chart-board {
    padding: 14px;
  }

  .bazi-board-head {
    display: grid;
  }

  .bazi-board-head h2 {
    font-size: 19px;
  }

  .bazi-board-head b {
    width: fit-content;
  }

  .bazi-meta-strip {
    grid-template-columns: 1fr 1fr;
  }

  .bazi-row {
    grid-template-columns: 44px repeat(4, minmax(0, 1fr));
  }

  .bazi-row-label,
  .bazi-cell {
    min-height: 46px;
    padding: 7px 3px;
    font-size: 11px;
  }

  .bazi-symbol,
  .branch-symbol {
    font-size: 25px;
  }

  .bazi-classic-reference blockquote,
  .classic-empty {
    padding: 14px;
    font-size: 15px;
    line-height: 1.95;
  }

  .classic-analysis-grid {
    grid-template-columns: 1fr;
  }

  .advanced-bazi-board {
    padding: 14px;
  }

  .advanced-bazi-head {
    display: grid;
  }

  .advanced-bazi-head h2 {
    font-size: 22px;
  }

  .advanced-bazi-head b {
    width: fit-content;
    height: auto;
    padding: 8px 12px;
    border-radius: 999px;
  }

  .advanced-report-grid {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 14% 9%, rgba(184, 135, 53, 0.18), transparent 24%),
    radial-gradient(circle at 92% 16%, rgba(31, 118, 103, 0.14), transparent 26%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 28%),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(72, 62, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 62, 45, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.16));
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr);
  gap: 22px;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
}

.brand-panel,
.screen-panel {
  min-height: calc(100vh - 32px);
  border: 1px solid rgba(84, 70, 46, 0.12);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(28, 36, 34, 0.95), rgba(43, 64, 61, 0.88)),
    radial-gradient(circle at 72% 24%, rgba(184, 135, 53, 0.36), transparent 24%),
    radial-gradient(circle at 24% 84%, rgba(247, 241, 229, 0.16), transparent 34%);
  color: white;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 225, 181, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 225, 181, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.brand-panel::after {
  content: "易";
  position: absolute;
  right: 28px;
  top: 28px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: #9f4250;
  color: rgba(255, 246, 232, 0.92);
  font-size: 22px;
  font-weight: 900;
  writing-mode: vertical-rl;
  box-shadow: 0 12px 24px rgba(82, 24, 29, 0.22);
}

.brand-mark {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  width: 74px;
}

.brand-mark span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #f1d69b;
}

.brand-mark span:nth-child(2) {
  width: 46px;
}

.brand-kicker,
.section-head p {
  margin: 0 0 10px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-panel .brand-kicker {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: #f6d99c;
}

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

h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

h1,
.section-head h2,
.overview-hero strong,
.life-word-card strong {
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-weight: 900;
}

.brand-copy {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  letter-spacing: 0.08em;
}

.orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.coin,
.ritual-coin {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 8px solid #d7a454;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #ffe7a8, #bc7c35 58%, #73401f);
  color: #4d240e;
  font-weight: 800;
  box-shadow: inset 0 0 0 4px rgba(255, 244, 196, 0.35), 0 22px 34px rgba(0, 0, 0, 0.22);
}

.coin {
  position: absolute;
  opacity: 0.78;
}

.coin-one {
  right: 16%;
  top: 18%;
}

.coin-two {
  right: 32%;
  top: 42%;
  transform: scale(1.28) rotate(-16deg);
}

.coin-three {
  right: 10%;
  bottom: 16%;
  transform: scale(0.9) rotate(22deg);
}

.screen-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 12px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(250, 245, 236, 0.9)),
    var(--panel);
}

.bottom-tabs {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: auto -6px -6px;
  padding: 8px;
  border: 1px solid rgba(84, 70, 46, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 -12px 34px rgba(77, 62, 38, 0.1);
  backdrop-filter: blur(16px);
}

.tab-button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7b8078;
  font-size: 13px;
  font-weight: 900;
}

.tab-button span {
  color: inherit;
  font-size: 21px;
  line-height: 1;
}

.tab-button.is-active {
  background: rgba(31, 118, 103, 0.1);
  color: var(--jade);
}

.top-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(84, 70, 46, 0.12);
  border-radius: 8px;
  background: rgba(239, 228, 209, 0.62);
}

.nav-chip {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.nav-chip.is-active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(77, 62, 38, 0.1);
}

.view {
  display: none;
  flex: 1;
  padding: 34px 12px 18px;
  overflow-y: auto;
}

.view.is-active {
  display: block;
}

.section-head h2 {
  margin-bottom: 24px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-head p {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 118, 103, 0.1);
}

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

.profile-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: -8px 0 18px;
}

.profile-steps span {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(84, 70, 46, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 8%, rgba(184, 135, 53, 0.15), transparent 38%),
    rgba(255, 253, 248, 0.88);
  color: #3f4650;
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}

.profile-steps b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(31, 118, 103, 0.12);
  color: var(--jade);
  font-size: 13px;
}

.step-field {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(84, 70, 46, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.step-field::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -1px;
  width: 44px;
  height: 2px;
  background: var(--gold);
}

.step-one,
.step-two,
.step-three {
  grid-column: 1 / -1;
}

.compact-location {
  grid-column: 1 / -1;
  opacity: 0.84;
}

label {
  display: grid;
  gap: 8px;
  color: #67604f;
  font-size: 14px;
  font-weight: 700;
}

label.hidden-profile-field {
  display: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(84, 70, 46, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

input,
select {
  height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 132px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(31, 118, 103, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.primary-action,
.secondary-action,
.quick-grid button {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  grid-column: 1 / -1;
  border: 0;
  background: linear-gradient(135deg, #1f7667, #2d5f55);
  color: white;
  box-shadow: 0 14px 28px rgba(31, 118, 103, 0.24);
}

.secondary-action {
  border: 1px solid rgba(84, 70, 46, 0.16);
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
}

.fine-print {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.profile-summary,
.profile-overview {
  display: grid;
  gap: 18px;
}

#chart-view .section-head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(84, 70, 46, 0.12);
}

#chart-view .section-head p {
  color: var(--jade);
  font-weight: 900;
}

#chart-view .section-head h2 {
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
}

.home-hero-card,
.home-overview-card,
.home-line-card,
.home-mini-card,
.home-ask-banner,
.archive-card {
  border: 1px solid rgba(84, 70, 46, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--soft-shadow);
}

.home-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 26px;
  background:
    linear-gradient(112deg, rgba(255, 253, 248, 0.9) 0 42%, rgba(255, 253, 248, 0.38) 62%),
    url("assets/beast-xuanwu.jpg") right center / cover,
    var(--panel);
}

.home-hero-card span,
.home-overview-card header span,
.home-line-card span,
.home-mini-card span,
.home-ask-banner span,
.archive-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 118, 103, 0.1);
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
}

.home-hero-card strong {
  display: block;
  max-width: 360px;
  color: #173f3a;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 54px;
  line-height: 1;
}

.home-hero-card p {
  max-width: 390px;
  margin: 12px 0 0;
  color: #3f4650;
  font-size: 17px;
  line-height: 1.7;
}

.empty-home {
  min-height: 270px;
}

.empty-home strong {
  font-size: 34px;
  line-height: 1.22;
}

.empty-home .primary-action {
  width: fit-content;
  margin-top: 22px;
}

.home-overview-card {
  padding: 18px;
}

.home-overview-card header,
.archive-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-overview-card header button,
.home-ask-banner button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(31, 118, 103, 0.22);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.76);
  color: var(--jade);
  font-size: 34px;
  line-height: 1;
}

.home-overview-body {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
}

.home-overview-body figure {
  margin: 0;
  text-align: center;
}

.home-overview-body img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(84, 70, 46, 0.14);
  border-radius: 50%;
  object-fit: cover;
}

.home-overview-body figcaption {
  display: inline-flex;
  margin-top: -12px;
  padding: 6px 18px;
  border: 1px solid rgba(84, 70, 46, 0.16);
  border-radius: 999px;
  background: var(--panel);
  color: #3f4650;
  font-weight: 900;
}

.home-overview-body strong {
  display: block;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 26px;
  line-height: 1.3;
}

.home-overview-body p,
.home-line-card p,
.home-mini-card p,
.home-ask-banner strong,
.archive-card p {
  margin: 8px 0 0;
  color: #3f4650;
  line-height: 1.7;
}

.home-line-card,
.home-ritual-card {
  padding: 18px;
}

.home-line-card p {
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 20px;
}

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

.home-mini-card {
  min-height: 168px;
  padding: 16px;
}

.home-mini-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

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

.keyword-tags b {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(31, 118, 103, 0.12);
  color: var(--jade);
  font-size: 13px;
}

.home-ask-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background:
    radial-gradient(circle at 88% 18%, rgba(241, 214, 155, 0.2), transparent 28%),
    linear-gradient(135deg, #1f7667, #1b5c52);
  color: #fff7e2;
}

.home-ask-banner span {
  margin-bottom: 7px;
  background: rgba(255, 253, 248, 0.14);
  color: #f1d69b;
}

.home-ask-banner strong {
  display: block;
  color: #fff7e2;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 25px;
}

.home-ask-banner p {
  margin: 6px 0 0;
  color: rgba(255, 247, 226, 0.72);
  line-height: 1.6;
}

.archive-card {
  margin-bottom: 18px;
  padding: 18px;
}

.archive-card header strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.archive-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.archive-fields p {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(84, 70, 46, 0.12);
  border-radius: 8px;
  background: rgba(239, 228, 209, 0.34);
}

.archive-fields span {
  margin: 0 0 5px;
  padding: 0;
  background: transparent;
}

.archive-fields strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.profile-generation-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(184, 135, 53, 0.2), transparent 24%),
    linear-gradient(160deg, rgba(12, 23, 22, 0.98), rgba(26, 42, 39, 0.97));
  color: #fff7e2;
  opacity: 0;
  transition: opacity 180ms ease;
}

.profile-generation-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(241, 214, 155, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 214, 155, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.profile-generation-overlay.is-visible {
  opacity: 1;
}

.generation-ritual {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  text-align: center;
}

.generation-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 0 auto 24px;
  border: 1px solid rgba(241, 214, 155, 0.62);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 10px rgba(241, 214, 155, 0.06),
    0 0 50px rgba(184, 135, 53, 0.16);
  animation: generation-spin 8s linear infinite;
}

.generation-seal::before,
.generation-seal::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(241, 214, 155, 0.38);
  border-radius: 50%;
}

.generation-seal::after {
  inset: 31px;
  border-style: solid;
}

.generation-seal span {
  color: #f1d69b;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 42px;
  font-weight: 900;
  animation: generation-counter-spin 8s linear infinite;
}

.generation-kicker {
  margin-bottom: 10px;
  color: rgba(241, 214, 155, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.generation-ritual h2 {
  margin-bottom: 10px;
  color: #fff7e2;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 38px;
}

.generation-copy {
  min-height: 28px;
  margin-bottom: 28px;
  color: rgba(255, 247, 226, 0.68);
  line-height: 1.7;
}

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

.generation-steps span {
  position: relative;
  padding: 12px 5px;
  border-top: 1px solid rgba(241, 214, 155, 0.18);
  color: rgba(255, 247, 226, 0.34);
  font-size: 12px;
  font-weight: 900;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.generation-steps span::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(241, 214, 155, 0.18);
  transform: translateX(-50%);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.generation-steps span.is-active {
  border-color: #f1d69b;
  color: #fff7e2;
  transform: translateY(-2px);
}

.generation-steps span.is-active::before {
  background: #f1d69b;
  box-shadow: 0 0 18px rgba(241, 214, 155, 0.8);
}

.generation-steps span.is-complete {
  border-color: rgba(31, 172, 147, 0.7);
  color: rgba(198, 239, 225, 0.78);
}

.generation-steps span.is-complete::before {
  background: #59bca6;
}

.profile-generation-overlay.is-complete .generation-seal {
  border-color: #75d0ba;
  box-shadow:
    inset 0 0 0 10px rgba(89, 188, 166, 0.08),
    0 0 64px rgba(89, 188, 166, 0.28);
}

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

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

@media (prefers-reduced-motion: reduce) {
  .generation-seal,
  .generation-seal span {
    animation: none;
  }
}

.overview-hero,
.overview-card,
.overview-guardian,
.overview-ask-card,
.chart-details,
.chart-focus-note {
  border: 1px solid rgba(84, 70, 46, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--soft-shadow);
}

.overview-guardian {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--theme-accent, #1f7667) 22%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(37, 50, 47, 0.96), rgba(21, 28, 29, 0.94));
  color: rgba(255, 247, 226, 0.86);
}

.overview-guardian img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(247, 225, 181, 0.16);
  border-radius: 8px;
  object-fit: cover;
  background: #fffdf8;
}

.overview-guardian span,
.overview-ask-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(241, 214, 155, 0.12);
  color: #f1d69b;
  font-size: 12px;
  font-weight: 900;
}

.overview-guardian strong {
  display: block;
  color: #fff7e2;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 30px;
  line-height: 1.2;
}

.overview-guardian p {
  margin: 10px 0 0;
  color: rgba(255, 247, 226, 0.72);
  line-height: 1.7;
}

.overview-hero {
  padding: 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(184, 135, 53, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(31, 118, 103, 0.12), rgba(184, 135, 53, 0.14)),
    rgba(255, 253, 248, 0.96);
}

.compact-destiny {
  padding: 18px 20px;
}

.overview-hero span,
.overview-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(36, 123, 115, 0.1);
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
}

.overview-hero strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.35;
}

.today-state-card {
  padding: 18px;
}

.overview-ask-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(31, 118, 103, 0.1), rgba(184, 135, 53, 0.12)),
    rgba(255, 253, 248, 0.95);
}

.overview-ask-card span {
  margin-bottom: 0;
  background: rgba(31, 118, 103, 0.1);
  color: var(--jade);
}

.overview-ask-card p {
  margin: 0;
  color: #3f4650;
  line-height: 1.7;
}

.overview-ask-card .primary-action {
  grid-column: auto;
}

.overview-hero p,
.overview-card p {
  margin: 10px 0 0;
  color: #3f4650;
  line-height: 1.7;
}

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

.overview-card {
  min-height: 152px;
  padding: 16px;
}

.overview-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.beast-mini {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.beast-mini img {
  width: 96px;
  aspect-ratio: 1;
  border: 1px solid rgba(84, 70, 46, 0.12);
  border-radius: 8px;
  object-fit: cover;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.chart-focus-note {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.compact-assets {
  grid-template-columns: 0.72fr 1.28fr;
}

.primary-summary {
  margin-top: -6px;
}

.chart-details {
  padding: 0;
  overflow: hidden;
}

.chart-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.chart-details summary::-webkit-details-marker {
  display: none;
}

.chart-details summary::after {
  content: "展开";
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31, 118, 103, 0.1);
  color: var(--jade);
  font-size: 12px;
}

.chart-details[open] summary::after {
  content: "收起";
}

.folded-assets,
.folded-summary,
.chart-details .reference-section {
  padding: 0 16px 16px;
}

.folded-assets {
  display: grid;
  gap: 12px;
}

.summary-item,
.reading-card,
.history-item,
.gua-result,
.reference-card,
.current-location,
.life-word-card,
.asset-card,
.visual-asset-card {
  border: 1px solid rgba(84, 70, 46, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--soft-shadow);
}

.summary-item {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(249, 244, 236, 0.9)),
    var(--panel);
}

.summary-item strong {
  display: block;
  margin-bottom: 12px;
  color: #8a3f49;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.summary-item p,
.history-item p,
.reading-section p,
.reference-card p,
.reference-card em,
.current-location p,
.asset-card p,
.visual-asset-card p,
.life-word-card p,
.life-word-card em,
.asset-note {
  margin: 0;
  color: #3f4650;
  line-height: 1.75;
}

.balance-line,
.balance-detail,
.balance-reminder,
.score-row,
.bazi-note {
  display: block;
  margin-top: 8px;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.score-row b {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(184, 135, 53, 0.12);
  color: #765420;
  font-size: 12px;
}

.balance-line {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(159, 66, 80, 0.1);
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.balance-detail {
  color: #3f4650;
  font-size: 14px;
}

.balance-reminder {
  color: var(--jade);
  font-size: 14px;
  font-weight: 800;
}

.bazi-note {
  color: #6f7681;
  font-size: 13px;
}

.identity-assets {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 10px;
}

.life-word-card {
  display: grid;
  align-content: center;
  min-height: 148px;
  padding: 16px;
  background:
    radial-gradient(circle at 78% 18%, rgba(184, 135, 53, 0.2), transparent 24%),
    linear-gradient(160deg, rgba(31, 118, 103, 0.1), rgba(184, 135, 53, 0.16)),
    #fffdf8;
}

.life-word-card span,
.asset-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 118, 103, 0.1);
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
}

.life-word-card strong {
  display: block;
  margin-bottom: 6px;
  color: #1f2622;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

.life-word-card p {
  color: var(--muted);
  font-weight: 900;
}

.life-word-card em {
  display: block;
  margin-top: 8px;
  color: var(--rose);
  font-style: normal;
  font-weight: 900;
}

.asset-card {
  min-height: 119px;
  padding: 18px;
}

.asset-card strong,
.visual-asset-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.visual-asset-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 148px;
  overflow: hidden;
  padding: 12px;
}

.guardian-card {
  grid-column: 1 / -1;
}

.visual-asset-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 118, 103, 0.1);
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
}

.symbol-scene {
  position: relative;
  min-height: 104px;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.9), rgba(246, 238, 224, 0.48));
  box-shadow: inset 0 0 0 1px rgba(84, 70, 46, 0.12);
}

.symbol-scene i,
.symbol-scene b,
.symbol-scene em {
  position: absolute;
  display: block;
  content: "";
}

.symbol-scene i {
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 34px;
  border-radius: 60% 60% 10px 10px;
  background: var(--jade);
  opacity: 0.22;
}

.symbol-scene b {
  left: 50%;
  top: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}

.symbol-scene em {
  left: 26px;
  bottom: 34px;
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: rgba(32, 35, 41, 0.34);
  transform: rotate(-18deg);
}

.image-asset.木 .symbol-scene {
  background: linear-gradient(160deg, rgba(31, 118, 103, 0.18), rgba(255, 253, 248, 0.78));
}

.image-asset.木 .symbol-scene i {
  left: 82px;
  right: auto;
  bottom: 18px;
  width: 12px;
  height: 86px;
  border-radius: 999px;
  opacity: 0.8;
}

.image-asset.木 .symbol-scene b {
  top: 28px;
  width: 90px;
  height: 46px;
  border-radius: 70% 30% 70% 30%;
  background: #2f8f79;
  transform: translateX(-50%) rotate(-18deg);
}

.image-asset.木 .symbol-scene em {
  left: 40px;
  bottom: 42px;
  width: 96px;
  background: #7fb98f;
  transform: rotate(18deg);
}

.image-asset.火 .symbol-scene {
  background: linear-gradient(160deg, rgba(185, 104, 50, 0.2), rgba(255, 252, 242, 0.84));
}

.image-asset.火 .symbol-scene i {
  left: 50%;
  bottom: 24px;
  width: 72px;
  height: 96px;
  border-radius: 50% 50% 44% 44%;
  background: #c76634;
  opacity: 0.75;
  transform: translateX(-50%);
}

.image-asset.火 .symbol-scene b {
  top: 32px;
  width: 46px;
  height: 46px;
  background: #f1bd58;
}

.image-asset.火 .symbol-scene em {
  left: 76px;
  bottom: 32px;
  width: 30px;
  height: 74px;
  background: #fff3bd;
  transform: rotate(0);
}

.image-asset.土 .symbol-scene {
  background: linear-gradient(160deg, rgba(184, 135, 53, 0.2), rgba(255, 253, 248, 0.78));
}

.image-asset.土 .symbol-scene i {
  left: 10px;
  right: 10px;
  bottom: 18px;
  height: 38px;
  clip-path: polygon(0 100%, 22% 32%, 42% 72%, 64% 18%, 100% 100%);
  border-radius: 0;
  background: #a98249;
  opacity: 0.85;
}

.image-asset.土 .symbol-scene b {
  top: 24px;
  width: 42px;
  height: 42px;
  background: #d3aa5e;
}

.image-asset.土 .symbol-scene em {
  left: 20px;
  bottom: 18px;
  width: 70px;
  height: 7px;
  background: #7c6a4e;
  transform: rotate(0);
}

.image-asset.金 .symbol-scene {
  background: linear-gradient(160deg, rgba(47, 84, 111, 0.14), rgba(255, 253, 248, 0.8));
}

.image-asset.金 .symbol-scene i {
  left: 62px;
  bottom: 22px;
  width: 54px;
  height: 104px;
  clip-path: polygon(50% 0, 86% 74%, 50% 100%, 14% 74%);
  border-radius: 0;
  background: #8b98a9;
  opacity: 0.9;
}

.image-asset.金 .symbol-scene b {
  top: 32px;
  width: 18px;
  height: 18px;
  box-shadow: 34px 18px 0 #d7b86a, -34px 30px 0 #d7b86a;
  background: #d7b86a;
}

.image-asset.金 .symbol-scene em {
  left: 44px;
  bottom: 58px;
  width: 94px;
  background: #315f8f;
  transform: rotate(-42deg);
}

.image-asset.水 .symbol-scene {
  background: linear-gradient(160deg, rgba(47, 84, 111, 0.2), rgba(255, 253, 248, 0.76));
}

.image-asset.水 .symbol-scene i {
  left: 22px;
  right: 22px;
  bottom: 26px;
  height: 50px;
  border-radius: 50%;
  background: #315f8f;
  opacity: 0.72;
}

.image-asset.水 .symbol-scene b {
  top: 30px;
  width: 58px;
  height: 58px;
  background: #202329;
}

.image-asset.水 .symbol-scene em {
  left: 34px;
  bottom: 52px;
  width: 110px;
  height: 8px;
  background: #8fb4cf;
  transform: rotate(0);
  box-shadow: 0 18px 0 rgba(143, 180, 207, 0.72);
}

.guardian-card {
  grid-template-columns: 190px 1fr;
  gap: 20px;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(184, 135, 53, 0.14), transparent 24%),
    linear-gradient(160deg, rgba(159, 66, 80, 0.08), rgba(31, 118, 103, 0.09)),
    rgba(255, 253, 248, 0.92);
}

.guardian-beast {
  display: block;
  width: 100%;
  aspect-ratio: 13 / 9;
  min-height: 0;
  border: 1px solid rgba(84, 70, 46, 0.14);
  border-radius: 8px;
  background: #fffdf8;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.guardian-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.guardian-copy strong {
  margin-bottom: 0;
  font-size: 22px;
}

.guardian-copy p {
  max-width: 520px;
}

.beast-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.beast-tags b {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(31, 118, 103, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.68);
  color: #3f4650;
  font-size: 13px;
}

.asset-note {
  grid-column: 1 / -1;
  padding: 8px 12px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.reference-section {
  display: grid;
  gap: 12px;
}

.compact-head h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.reference-grid {
  display: grid;
  gap: 12px;
}

.reference-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 16px;
}

.portrait {
  display: grid;
  place-items: center;
  width: 74px;
  height: 92px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(184, 135, 53, 0.24), rgba(31, 118, 103, 0.14)),
    #fffaf0;
  color: var(--gold);
  font-size: 34px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(184, 135, 53, 0.2);
}

.reference-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reference-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

.reference-card em {
  display: block;
  margin-top: 8px;
  color: var(--jade);
  font-style: normal;
  font-weight: 800;
}

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

.question-box {
  margin-bottom: 14px;
}

.current-location {
  display: grid;
  grid-template-columns: 1fr 154px;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
}

.question-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 14px;
}

.type-chip {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(84, 70, 46, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--muted);
  font-weight: 800;
}

.type-chip.is-selected {
  border-color: rgba(31, 118, 103, 0.32);
  background: rgba(31, 118, 103, 0.1);
  color: var(--jade);
}

.current-location p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(84, 70, 46, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--soft-shadow);
}

.context-grid p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.quick-grid button {
  border: 1px solid rgba(84, 70, 46, 0.14);
  background: rgba(255, 253, 248, 0.94);
  color: var(--blue);
}

.ritual-start-action {
  display: block;
  width: min(340px, 100%);
  min-height: 58px;
  margin: 22px auto 0;
  font-size: 18px;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(184, 135, 53, 0.98), rgba(185, 104, 50, 0.96)),
    var(--copper);
  box-shadow: 0 18px 34px rgba(184, 135, 53, 0.28);
}

.ritual-start-action::before,
.ritual-start-action::after {
  content: "—";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.72);
}

.reading-start-action {
  margin-top: 10px;
}

.ritual-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  padding: 24px 18px 18px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(214, 164, 84, 0.24), transparent 25%),
    radial-gradient(circle at 50% 58%, rgba(214, 164, 84, 0.12), transparent 42%),
    linear-gradient(180deg, #25322f, #151c1d 82%);
  box-shadow: inset 0 0 0 1px rgba(247, 225, 181, 0.08), 0 20px 42px rgba(39, 31, 19, 0.18);
}

.ritual-stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(247, 225, 181, 0.12);
  border-radius: 50%;
  transform: scale(1.2);
  pointer-events: none;
}

.ritual-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 225, 181, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 225, 181, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  pointer-events: none;
}

.ritual-guide {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 0 16px;
  color: rgba(255, 247, 226, 0.82);
  line-height: 1.8;
  text-align: center;
  font-weight: 800;
}

.coin-stack {
  position: relative;
  z-index: 1;
  width: 214px;
  height: 104px;
  margin-bottom: 16px;
}

.ritual-coin {
  position: absolute;
  width: 96px;
  height: 96px;
}

.ritual-coin:nth-child(1) {
  left: 0;
  transform: rotate(-14deg);
}

.ritual-coin:nth-child(2) {
  left: 58px;
  z-index: 2;
}

.ritual-coin:nth-child(3) {
  right: 0;
  transform: rotate(14deg);
}

.ritual-stage.is-holding .ritual-coin {
  animation: toss 0.7s linear infinite;
}

.ritual-stage.is-holding .ritual-coin:nth-child(2) {
  animation-delay: 0.12s;
}

.ritual-stage.is-holding .ritual-coin:nth-child(3) {
  animation-delay: 0.24s;
}

.ritual-stage.is-revealing {
  animation: ritualPulse 0.92s ease both;
}

.ritual-stage.is-revealing .ritual-coin {
  animation: revealCoin 0.92s ease both;
}

.ritual-stage.is-revealed {
  box-shadow: inset 0 0 0 1px rgba(247, 225, 181, 0.16), 0 24px 48px rgba(39, 31, 19, 0.22);
}

@keyframes toss {
  0% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
  }
}

@keyframes ritualPulse {
  0% {
    filter: brightness(1);
  }
  45% {
    filter: brightness(1.35);
  }
  100% {
    filter: brightness(1.06);
  }
}

@keyframes revealCoin {
  0% {
    transform: translateY(0) scale(1) rotate(0);
  }
  42% {
    transform: translateY(-28px) scale(1.08) rotate(180deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(360deg);
  }
}

.press-ring {
  position: relative;
  z-index: 1;
  width: 168px;
  height: 168px;
}

.press-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.press-ring circle {
  fill: none;
  stroke-width: 8;
}

.press-ring circle:first-child {
  stroke: rgba(247, 225, 181, 0.18);
}

#progress-ring {
  stroke: #d9a856;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 0.08s linear;
}

#hold-button {
  position: absolute;
  inset: 22px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #fff0ba, #c27c35 64%, #6c371c);
  color: #4b210d;
  font-weight: 900;
  box-shadow: inset 0 0 0 6px rgba(255, 239, 170, 0.36), 0 18px 34px rgba(0, 0, 0, 0.32);
  touch-action: none;
}

.ritual-status {
  position: relative;
  z-index: 1;
  min-height: 28px;
  margin: 14px 0 0;
  color: #f1d69b;
  font-weight: 900;
}

.gua-result {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(37, 50, 47, 0.96), rgba(21, 28, 29, 0.94));
  color: rgba(255, 247, 226, 0.82);
  box-shadow: 0 18px 36px rgba(39, 31, 19, 0.18);
}

.gua-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 247, 226, 0.64);
  font-weight: 700;
}

.gua-row strong {
  color: #f1d69b;
}

.gua-hint {
  padding-top: 10px;
  border-top: 1px solid rgba(247, 225, 181, 0.14);
}

.gua-hint span {
  display: block;
  margin-bottom: 6px;
  color: #f1d69b;
  font-size: 13px;
  font-weight: 900;
}

.gua-hint p {
  margin: 0;
  color: rgba(255, 247, 226, 0.78);
  line-height: 1.7;
}

.reveal-stage {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 210px;
  padding: 20px;
  text-align: center;
}

.reveal-oracle {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(241, 214, 155, 0.92), rgba(184, 135, 53, 0.35) 58%, transparent 60%);
  animation: oracleGlow 0.92s ease both;
}

.reveal-oracle span {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 8px;
  border-radius: 999px;
  background: #25322f;
  box-shadow: 0 0 18px rgba(241, 214, 155, 0.58);
  transform-origin: center;
}

.reveal-oracle span:nth-child(1) {
  top: 34px;
  animation: oracleLine 0.92s 0.04s ease both;
}

.reveal-oracle span:nth-child(2) {
  top: 52px;
  animation: oracleLine 0.92s 0.16s ease both;
}

.reveal-oracle span:nth-child(3) {
  top: 70px;
  animation: oracleLine 0.92s 0.28s ease both;
}

.reveal-stage strong {
  color: #f1d69b;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 28px;
  line-height: 1.2;
}

.reveal-stage p,
.reveal-stage em {
  margin: 0;
  color: rgba(255, 247, 226, 0.76);
  font-style: normal;
  line-height: 1.7;
}

@keyframes oracleGlow {
  0% {
    opacity: 0;
    transform: scale(0.72) rotate(-18deg);
  }
  58% {
    opacity: 1;
    transform: scale(1.08) rotate(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes oracleLine {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.reading-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.reading-summary {
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(31, 118, 103, 0.1), rgba(184, 135, 53, 0.12)),
    #fffdf8;
}

.reading-summary h3 {
  color: var(--jade);
}

.ai-status {
  padding: 10px 12px;
  border: 1px solid rgba(31, 118, 103, 0.14);
  border-radius: 8px;
  background: rgba(31, 118, 103, 0.08);
  color: var(--jade);
  font-size: 13px;
  font-weight: 800;
}

.reading-loading {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 20px;
  text-align: center;
}

.loading-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, #fff0ba, #c87931 64%, #7b3b1f);
  color: #4b210d;
  font-size: 28px;
  font-weight: 900;
  box-shadow: inset 0 0 0 5px rgba(255, 239, 170, 0.36), 0 14px 28px rgba(120, 65, 29, 0.2);
}

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

.reading-loading p {
  margin: 0;
  color: var(--muted);
}

.reading-section h3 {
  margin: 0 0 8px;
  color: var(--jade);
  font-size: 17px;
}

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

.history-item {
  padding: 16px;
}

.history-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.history-item strong {
  color: var(--rose);
}

.history-meta {
  margin-top: 6px !important;
  color: var(--muted) !important;
  font-size: 13px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 10;
  max-width: min(320px, calc(100vw - 40px));
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(30, 38, 36, 0.9);
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    width: min(100% - 20px, 560px);
  }

  .brand-panel {
    min-height: 230px;
  }

  .screen-panel {
    min-height: auto;
  }

  h1 {
    font-size: 54px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    margin: 10px auto;
  }

  .brand-panel,
  .screen-panel {
    min-height: auto;
    padding: 20px;
  }

  .screen-panel {
    padding: 12px;
  }

  .top-nav,
  .form-grid,
  .identity-assets,
  .summary-grid,
  .home-card-grid,
  .home-overview-body,
  .archive-fields,
  .overview-grid,
  .beast-mini,
  .overview-guardian,
  .current-location,
  .context-grid,
  .action-row {
    grid-template-columns: 1fr;
  }

  .profile-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .profile-steps span {
    min-height: 68px;
    padding: 10px 8px;
    font-size: 12px;
  }

  .profile-steps b {
    width: 24px;
    height: 24px;
  }

  .step-field {
    padding: 12px;
  }

  .overview-guardian {
    text-align: center;
  }

  .overview-guardian img {
    max-height: 220px;
  }

  .overview-guardian strong {
    font-size: 25px;
  }

  .life-word-card {
    grid-row: auto;
    min-height: 190px;
  }

  .life-word-card strong {
    font-size: 70px;
  }

  .asset-note {
    grid-column: auto;
  }

  .visual-asset-card,
  .guardian-card {
    grid-template-columns: 1fr;
  }

  .symbol-scene {
    min-height: 128px;
  }

  .current-location p {
    grid-column: auto;
  }

  .top-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow-x: visible;
  }

  .nav-chip {
    min-height: 38px;
    padding: 0 2px;
    font-size: 12px;
  }

  .bottom-tabs {
    margin: auto -8px -8px;
    padding: 7px;
  }

  .tab-button {
    min-height: 50px;
    font-size: 12px;
  }

  .tab-button span {
    font-size: 19px;
  }

  .view {
    padding: 26px 4px 12px;
  }

  .section-head h2 {
    font-size: 26px;
  }

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

  .overview-hero strong {
    font-size: 23px;
  }

  .home-hero-card {
    min-height: 220px;
    padding: 20px;
  }

  .home-hero-card strong {
    font-size: 38px;
  }

  .empty-home strong {
    font-size: 28px;
  }

  .home-overview-card header,
  .archive-card header,
  .home-ask-banner {
    align-items: flex-start;
  }

  .home-overview-card header,
  .archive-card header {
    flex-direction: column;
  }

  .home-overview-body {
    text-align: center;
  }

  .home-overview-body img {
    max-width: 180px;
  }

  .home-ask-banner strong {
    font-size: 21px;
  }

  .folded-summary,
  .chart-details .reference-section {
    padding: 0 12px 12px;
  }

  .question-types {
    gap: 6px;
  }

  .type-chip {
    min-height: 34px;
    padding: 0 11px;
    font-size: 13px;
  }

  .reference-card {
    grid-template-columns: 62px 1fr;
  }

  .portrait {
    width: 62px;
    height: 80px;
    font-size: 28px;
  }

  .coin-one {
    top: 16%;
  }

  .coin-two {
    top: 48%;
  }
}

/* V4 Eastern minimal visual system */
:root {
  --ink: #18211f;
  --muted: #6e756f;
  --line: rgba(41, 54, 49, 0.14);
  --paper: #f5f3ec;
  --paper-deep: #ebe8df;
  --panel: rgba(250, 249, 244, 0.82);
  --gold: #ad8950;
  --jade: #2d6f62;
  --blue: #365b67;
  --shadow: 0 18px 52px rgba(31, 39, 35, 0.08);
  --soft-shadow: 0 8px 24px rgba(31, 39, 35, 0.055);
}

body {
  background:
    radial-gradient(ellipse at 82% 3%, rgba(72, 105, 91, 0.1), transparent 30%),
    radial-gradient(ellipse at 8% 68%, rgba(173, 137, 80, 0.07), transparent 34%),
    linear-gradient(180deg, #f8f6f0, #f1efe8 72%, #ebe9e1);
}

body::before {
  background-image:
    repeating-linear-gradient(0deg, rgba(48, 56, 51, 0.018) 0, rgba(48, 56, 51, 0.018) 1px, transparent 1px, transparent 5px),
    radial-gradient(ellipse at 78% 28%, rgba(67, 89, 80, 0.08), transparent 18%),
    radial-gradient(ellipse at 88% 33%, rgba(67, 89, 80, 0.055), transparent 14%);
  background-size: auto;
  mask-image: none;
}

.app-shell {
  display: block;
  width: min(820px, calc(100% - 28px));
  min-height: calc(100vh - 28px);
  margin: 14px auto;
}

.app-shell:has(#home-view.is-active) {
  width: min(1194px, calc(100% - 28px));
}

.screen-panel {
  min-height: calc(100vh - 28px);
  padding: 0 24px 12px;
  border: 0;
  border-radius: 0;
  background: rgba(250, 249, 244, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.view {
  padding: 48px 6px 30px;
}

.section-head {
  margin-bottom: 34px;
}

.section-head p,
.home-hero-card span,
.home-overview-card header span,
.home-line-card span,
.home-mini-card span,
.home-ask-banner span,
.archive-card span {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--jade);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: 34px;
}

.home-intro {
  position: relative;
  min-height: 310px;
  padding: 48px 48% 38px 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(248, 246, 240, 0.96) 0 30%, rgba(248, 246, 240, 0.5) 48%, rgba(248, 246, 240, 0.04) 72%),
    url("assets/home-hero-ink-landscape.jpg") 68% center / cover no-repeat;
}

.home-intro p {
  margin-bottom: 16px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.home-intro strong {
  display: block;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 42px;
  line-height: 1.25;
}

.home-intro span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.profile-overview {
  gap: 0;
}

.home-overview-card,
.home-line-card,
.home-mini-card,
.home-ask-banner,
.archive-card,
.question-choice-panel,
.daily-energy-panel,
.current-location,
.context-grid {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-overview-card,
.home-line-card {
  padding: 30px 0;
}

.home-overview-body {
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.home-overview-body strong {
  max-width: 640px;
  font-size: 25px;
}

.home-card-grid {
  grid-template-columns: 0.9fr 1.35fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.home-mini-card {
  min-height: 230px;
  padding: 28px 20px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.home-mini-card:first-child {
  padding-left: 0;
}

.home-mini-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.guardian-small-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.88fr) 1fr;
  gap: 18px;
  align-items: center;
}

.guardian-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.58) contrast(0.94);
  mask-image: radial-gradient(ellipse at center, black 58%, transparent 74%);
}

.guardian-small-card em {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
}

.keyword-tags b,
.score-row b,
.balance-line {
  border-radius: 3px;
}

.home-ask-banner {
  margin-top: 32px;
  padding: 30px 32px;
  background: linear-gradient(120deg, rgba(24, 38, 35, 0.98), rgba(39, 73, 64, 0.94));
  color: #f5f0e2;
}

.home-ask-banner span {
  color: #d1b77d;
}

.home-ask-banner p {
  color: rgba(245, 240, 226, 0.65);
}

.home-ask-banner .route-arrow {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(209, 183, 125, 0.72);
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
}

.home-ask-banner .route-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #d1b77d;
  border-right: 2px solid #d1b77d;
  transform: translate(-62%, -50%) rotate(45deg);
}

.bottom-tabs {
  margin: auto -14px -6px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: rgba(248, 247, 242, 0.92);
  box-shadow: none;
}

.tab-button {
  border-radius: 0;
}

.tab-button.is-active {
  background: transparent;
  color: var(--jade);
}

.question-box {
  margin-bottom: 26px;
}

.question-choice-panel,
.daily-energy-panel,
.current-location,
.context-grid {
  margin-bottom: 30px;
  padding: 0 0 28px;
}

.question-choice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.question-choice-head span {
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 20px;
  font-weight: 900;
}

.question-choice-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.question-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.type-chip {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: rgba(250, 249, 244, 0.96);
}

.type-chip.is-selected {
  background: var(--jade);
  color: #f8f5e9;
  box-shadow: inset 0 -3px 0 rgba(209, 183, 125, 0.9);
}

.question-suggestion {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  padding: 17px 18px;
  border: 1px solid rgba(45, 111, 98, 0.22);
  border-radius: 4px;
  background: rgba(45, 111, 98, 0.055);
  color: var(--ink);
  text-align: left;
}

.question-suggestion span {
  grid-row: 1 / 3;
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.question-suggestion strong {
  font-size: 17px;
}

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

.daily-energy-panel {
  padding-top: 4px;
}

.daily-energy-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.daily-energy-panel header span {
  display: block;
  margin-bottom: 8px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.daily-energy-panel header strong {
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 25px;
}

.energy-orbit {
  --energy: 50;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--energy) * 1%), rgba(45, 111, 98, 0.1) 0);
  box-shadow: inset 0 0 0 7px #f4f2eb;
}

.energy-orbit b {
  font-size: 19px;
}

.energy-breakdown,
.energy-guidance {
  display: grid;
  gap: 1px;
  margin-top: 20px;
  background: var(--line);
}

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

.energy-guidance {
  grid-template-columns: 1fr 1fr;
}

.energy-breakdown p,
.energy-guidance p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  background: rgba(250, 249, 244, 0.94);
}

.energy-breakdown span,
.energy-guidance span {
  color: var(--muted);
}

.daily-energy-panel small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.ritual-stage {
  min-height: 560px;
  background:
    radial-gradient(ellipse at 50% 64%, rgba(173, 137, 80, 0.12), transparent 28%),
    linear-gradient(180deg, #192622, #101716 82%);
}

.ritual-reveal {
  position: absolute;
  inset: 26% 10% auto;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ritual-reveal::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 160px;
  background: radial-gradient(ellipse, rgba(245, 240, 226, 0.12), transparent 68%);
  opacity: 0;
  filter: blur(14px);
  transform: scale(0.65);
}

.ritual-reveal strong,
.ritual-reveal span {
  position: relative;
  opacity: 0;
  transform: translateY(14px);
}

.ritual-reveal strong {
  color: #f3eddf;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 42px;
  letter-spacing: 0.08em;
}

.ritual-reveal span {
  margin-top: 12px;
  color: #d1b77d;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 19px;
  letter-spacing: 0.28em;
}

.ritual-stage.is-scattering .press-ring {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 300ms ease, transform 300ms ease;
}

.ritual-stage.is-scattering .ritual-coin {
  animation-duration: 900ms;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.2, 0.72, 0.2, 1);
}

.ritual-stage.is-scattering .ritual-coin:nth-child(1) {
  animation-name: scatterCoinOne;
}

.ritual-stage.is-scattering .ritual-coin:nth-child(2) {
  animation-name: scatterCoinTwo;
}

.ritual-stage.is-scattering .ritual-coin:nth-child(3) {
  animation-name: scatterCoinThree;
}

.ritual-stage.is-oracle-visible .ritual-reveal::before {
  opacity: 1;
  transform: scale(1);
  transition: opacity 600ms ease, transform 700ms ease;
}

.ritual-stage.is-oracle-visible .ritual-reveal strong,
.ritual-stage.is-cue-visible .ritual-reveal span {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 560ms ease, transform 560ms ease;
}

@keyframes scatterCoinOne {
  to { transform: translate(-86px, -84px) rotate(-38deg) scale(0.86); opacity: 0.72; }
}

@keyframes scatterCoinTwo {
  to { transform: translate(5px, 82px) rotate(24deg) scale(0.82); opacity: 0.64; }
}

@keyframes scatterCoinThree {
  to { transform: translate(86px, -78px) rotate(42deg) scale(0.86); opacity: 0.72; }
}

@media (prefers-reduced-motion: reduce) {
  .ritual-stage.is-scattering .ritual-coin {
    animation: none;
    opacity: 0.35;
  }

  .ritual-stage.is-oracle-visible .ritual-reveal::before,
  .ritual-stage.is-oracle-visible .ritual-reveal strong,
  .ritual-stage.is-cue-visible .ritual-reveal span {
    transition: none;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: 100%;
    margin: 0;
  }

  .screen-panel {
    min-height: 100vh;
    padding: 0 16px 10px;
  }

  .view {
    padding: 34px 0 20px;
  }

  .home-intro {
    min-height: 280px;
    margin: 0 -16px;
    padding: 34px 42% 30px 16px;
    background:
      linear-gradient(90deg, rgba(248, 246, 240, 0.97) 0 28%, rgba(248, 246, 240, 0.54) 50%, rgba(248, 246, 240, 0.04) 78%),
      url("assets/home-hero-ink-landscape.jpg") 67% center / cover no-repeat;
  }

  .home-intro strong {
    font-size: 31px;
  }

  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .home-mini-card,
  .home-mini-card:first-child,
  .home-mini-card:last-child {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-mini-card:last-child {
    border-bottom: 0;
  }

  .guardian-small-card {
    grid-template-columns: 42% 1fr;
  }

  .question-choice-head {
    display: block;
  }

  .question-choice-head p {
    margin-top: 8px;
  }

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

  .type-chip {
    min-height: 42px;
    padding: 0 5px;
  }

  .energy-breakdown,
  .energy-guidance {
    grid-template-columns: 1fr;
  }

  .ritual-stage {
    min-height: 500px;
  }
}

/* Destiny system UI iteration */
.destiny-system-hero,
.system-status-panel,
.system-reasoning-panel,
.system-timeline-entry,
.structure-system-board,
.fortune-timeline-board {
  border: 1px solid rgba(41, 54, 49, 0.12);
  border-radius: 8px;
  background: rgba(250, 249, 244, 0.9);
  box-shadow: var(--soft-shadow);
}

.destiny-system-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin: 0 -24px;
  padding: 46px 28px 34px;
  background:
    linear-gradient(120deg, rgba(24, 38, 35, 0.96), rgba(44, 58, 47, 0.9)),
    url("assets/home-hero-ink-landscape.jpg") center / cover no-repeat;
  color: #f8f4e8;
}

.destiny-system-hero span,
.structure-system-board > header span,
.fortune-timeline-board > header span,
.system-reasoning-panel header span,
.system-timeline-entry header span {
  display: block;
  margin-bottom: 10px;
  color: #d1b77d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.destiny-system-hero h1 {
  margin: 0;
  color: #f8f4e8;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.15;
}

.destiny-system-hero p {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(248, 244, 232, 0.72);
  line-height: 1.75;
}

.system-hero-action {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(209, 183, 125, 0.52);
  border-radius: 4px;
  background: rgba(209, 183, 125, 0.12);
  color: #f8f4e8;
  font-weight: 900;
}

.destiny-dashboard-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
}

.system-status-panel {
  padding: 22px;
}

.system-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
}

.system-metric {
  min-width: 0;
  padding: 16px 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(242, 238, 226, 0.76));
}

.metric-dial {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 50%;
  background:
    conic-gradient(var(--jade) var(--metric-progress), rgba(45, 111, 98, 0.1) 0);
  box-shadow: inset 0 0 0 7px #f5f3ec;
}

.metric-dial span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.system-metric strong,
.system-reasoning-panel strong,
.system-timeline-entry strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.system-metric p,
.system-reasoning-panel p,
.system-timeline-entry p {
  margin: 8px 0 0;
  color: #3f4650;
  line-height: 1.75;
}

.system-reasoning-panel,
.system-timeline-entry {
  padding: 20px;
}

.mini-node-map {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-left: 18px;
}

.mini-node-map::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.mini-node-map p {
  position: relative;
  margin: 0;
  padding: 0 0 0 12px;
}

.mini-node-map p::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--jade);
  border-radius: 50%;
  background: #f8f6f0;
}

.mini-node-map b {
  display: block;
  color: var(--jade);
  font-size: 13px;
}

.mini-node-map span,
.timeline-preview span {
  display: block;
  color: #3f4650;
  line-height: 1.65;
}

.timeline-preview {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.timeline-preview p {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
}

.timeline-preview i,
.turning-point-rail i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #26342f;
  color: #d1b77d;
  font-style: normal;
  font-weight: 900;
}

.system-question-entry {
  grid-column: 1 / -1;
}

.structure-system-board,
.fortune-timeline-board {
  padding: 22px;
}

.structure-system-board > header,
.fortune-timeline-board > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.structure-system-board > header span,
.fortune-timeline-board > header span {
  color: var(--jade);
}

.structure-system-board h2,
.fortune-timeline-board h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: clamp(26px, 5vw, 38px);
}

.structure-graph {
  position: relative;
  min-height: 560px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(45, 111, 98, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 111, 98, 0.045) 1px, transparent 1px),
    rgba(255, 253, 248, 0.72);
  background-size: 32px 32px;
}

.structure-graph::before,
.structure-graph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(45, 111, 98, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.structure-graph::before {
  width: 360px;
  height: 360px;
}

.structure-graph::after {
  width: 520px;
  height: 520px;
}

.structure-core-node,
.structure-node {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(45, 111, 98, 0.16);
  border-radius: 8px;
  background: rgba(250, 249, 244, 0.96);
  box-shadow: var(--soft-shadow);
}

.structure-core-node {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: min(300px, calc(100% - 48px));
  min-height: 180px;
  padding: 22px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.structure-core-node span {
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.structure-core-node strong {
  color: var(--ink);
  font-size: 22px;
}

.structure-core-node p,
.structure-node p,
.fortune-timeline-board p {
  margin: 8px 0 0;
  color: #3f4650;
  line-height: 1.72;
}

.structure-node {
  width: min(250px, 42%);
  padding: 16px;
}

.structure-node i {
  position: absolute;
  width: 86px;
  height: 1px;
  background: rgba(45, 111, 98, 0.22);
}

.structure-node strong {
  color: var(--jade);
  font-size: 16px;
}

.node-1 {
  left: 6%;
  top: 10%;
}

.node-1 i {
  right: -72px;
  top: 70%;
  transform: rotate(26deg);
}

.node-2 {
  right: 6%;
  top: 12%;
}

.node-2 i {
  left: -72px;
  top: 70%;
  transform: rotate(-26deg);
}

.node-3 {
  left: 5%;
  bottom: 12%;
}

.node-3 i {
  right: -72px;
  top: 30%;
  transform: rotate(-24deg);
}

.node-4 {
  right: 5%;
  bottom: 12%;
}

.node-4 i {
  left: -72px;
  top: 30%;
  transform: rotate(24deg);
}

.fortune-timeline-board > header b {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(45, 111, 98, 0.14);
  border-radius: 4px;
  color: var(--jade);
}

.fortune-timeline {
  display: grid;
  gap: 0;
  margin: 26px 0;
  border-left: 2px solid rgba(45, 111, 98, 0.2);
}

.timeline-event {
  position: relative;
  padding: 0 0 28px 28px;
}

.timeline-event::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--jade);
  border-radius: 50%;
  background: #f8f6f0;
}

.timeline-event span {
  display: block;
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.timeline-event p {
  max-width: 720px;
  padding: 14px 16px;
  border: 1px solid rgba(41, 54, 49, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.turning-point-rail {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.turning-point-rail header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.turning-point-rail header span {
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.turning-point-rail p {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0 0 10px;
}

.inference-lane {
  display: grid;
  gap: 1px;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--line);
}

.inference-lane p {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  background: rgba(250, 249, 244, 0.94);
}

.inference-lane span {
  color: var(--muted);
}

.inference-lane strong {
  color: var(--ink);
}

.prediction-workbench {
  display: grid;
  gap: 18px;
}

.prediction-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(41, 75, 63, 0.95), rgba(130, 91, 53, 0.9));
  color: #fffaf0;
}

.prediction-hero span,
.prediction-flow-years > header span,
.prediction-current-cycle header span,
.prediction-turning-points header span,
.prediction-advice-panel header span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0.72;
}

.prediction-hero h2 {
  margin: 0 0 8px;
  color: #fffaf0;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 24px;
  letter-spacing: 0;
}

.prediction-hero p {
  margin: 0;
  max-width: 42rem;
  color: rgba(255, 250, 240, 0.82);
  line-height: 1.7;
}

.prediction-hero b {
  flex: 0 0 auto;
  color: #f4d390;
  font-size: 28px;
}

.prediction-current-cycle,
.prediction-flow-years,
.prediction-turning-points,
.prediction-advice-panel {
  padding: 18px;
  border: 1px solid rgba(41, 54, 49, 0.12);
  border-radius: 8px;
  background: rgba(250, 249, 244, 0.9);
  box-shadow: var(--soft-shadow);
}

.prediction-current-cycle header,
.prediction-flow-years > header,
.prediction-turning-points header,
.prediction-advice-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.prediction-current-cycle h3,
.prediction-flow-years h3,
.prediction-turning-points h3,
.prediction-advice-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.prediction-current-cycle header span,
.prediction-flow-years > header span,
.prediction-turning-points header span,
.prediction-advice-panel header span {
  color: var(--jade);
}

.prediction-cycle-body {
  display: grid;
  grid-template-columns: minmax(72px, 110px) 1fr;
  gap: 14px;
}

.prediction-cycle-body > b {
  display: grid;
  place-items: center;
  min-height: 88px;
  border-radius: 8px;
  background: rgba(43, 92, 78, 0.1);
  color: #315f4f;
  font-size: 24px;
}

.prediction-cycle-body p,
.prediction-advice-panel p {
  margin: 0;
  line-height: 1.75;
}

.prediction-cycle-body dl,
.prediction-year-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 12px 0 0;
}

.prediction-cycle-body dt,
.prediction-year-card dt {
  color: rgba(66, 57, 43, 0.68);
  font-size: 12px;
}

.prediction-cycle-body dd,
.prediction-year-card dd {
  margin: 0;
  line-height: 1.6;
}

.prediction-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.prediction-year-card {
  min-height: 220px;
  padding: 16px;
  border: 1px solid rgba(84, 70, 46, 0.14);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.8);
}

.prediction-year-card.is-current {
  border-color: rgba(43, 92, 78, 0.42);
  box-shadow: 0 10px 28px rgba(43, 92, 78, 0.1);
}

.prediction-year-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.prediction-year-card p {
  margin: 0;
  line-height: 1.7;
}

.prediction-year-card footer,
.prediction-year-notes {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  line-height: 1.6;
}

.prediction-year-card footer b,
.prediction-year-notes b {
  flex: 0 0 auto;
  color: #8b5e32;
}

.prediction-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 12px;
}

.prediction-turning-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(84, 70, 46, 0.12);
}

.prediction-turning-item:first-of-type {
  border-top: 0;
}

.prediction-turning-item i {
  font-style: normal;
  color: #2f6b57;
}

.prediction-turning-item strong,
.prediction-turning-item p,
.prediction-turning-item small {
  display: block;
  margin: 0 0 6px;
  line-height: 1.65;
}

.prediction-turning-item p {
  color: #3f4650;
}

@media (max-width: 720px) {
  .destiny-system-hero,
  .destiny-dashboard-grid,
  .system-metrics,
  .structure-system-board > header,
  .fortune-timeline-board > header {
    grid-template-columns: 1fr;
  }

  .destiny-system-hero {
    align-items: start;
    margin: 0 -16px;
    padding: 34px 16px 28px;
  }

  .system-hero-action {
    width: fit-content;
  }

  .structure-graph {
    display: grid;
    gap: 12px;
    min-height: 0;
    padding: 16px;
  }

  .structure-graph::before,
  .structure-graph::after,
  .structure-node i {
    display: none;
  }

  .structure-core-node,
  .structure-node {
    position: static;
    width: auto;
    transform: none;
  }

  .structure-core-node {
    min-height: 0;
    text-align: left;
    place-items: start;
  }

  .inference-lane p {
    grid-template-columns: 1fr;
  }

  .prediction-hero,
  .prediction-current-cycle header,
  .prediction-flow-years > header,
  .prediction-turning-points header,
  .prediction-advice-panel header {
    display: grid;
  }

  .prediction-cycle-body,
  .prediction-lower-grid,
  .prediction-turning-item {
    grid-template-columns: 1fr;
  }

  .prediction-hero b {
    font-size: 22px;
  }
}

.history-reopen {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d7363;
  font-size: 13px;
  font-weight: 900;
}

/* Brand stance and decision-first home. Kept after legacy home rules. */
.brand-position {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(28, 45, 39, 0.18);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.56);
  color: #245144;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-direct-verdict {
  position: relative;
  overflow: hidden;
  padding: 30px 34px 26px;
  border: 1px solid rgba(207, 158, 86, 0.68);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 5%, rgba(222, 186, 111, 0.26), transparent 31%),
    linear-gradient(135deg, #103d36, #155e53 62%, #0d3732);
  color: #fff9ec;
  box-shadow: 0 20px 38px rgba(17, 64, 57, 0.23);
}

.home-direct-verdict::after {
  content: "断";
  position: absolute;
  top: -34px;
  right: 28px;
  color: rgba(229, 195, 126, 0.13);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 164px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.home-verdict-kicker,
.home-direct-verdict footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-verdict-kicker span {
  color: #e7c484;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.home-verdict-kicker b {
  padding: 5px 8px;
  border: 1px solid rgba(234, 205, 143, 0.45);
  border-radius: 999px;
  color: rgba(255, 248, 231, 0.84);
  font-size: 11px;
  font-weight: 800;
}

.home-direct-verdict h2 {
  position: relative;
  z-index: 1;
  max-width: 15em;
  margin: 18px 0 12px;
  color: #fffaf0;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.035em;
}

.home-direct-verdict > p {
  position: relative;
  z-index: 1;
  max-width: 43em;
  margin: 0;
  color: rgba(255, 247, 226, 0.86);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.72;
}

.home-direct-verdict footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(235, 209, 153, 0.28);
}

.home-direct-verdict footer span {
  min-width: 0;
  color: rgba(255, 247, 226, 0.67);
  font-size: 12px;
  line-height: 1.45;
}

.home-direct-verdict footer button {
  flex: 0 0 auto;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #e7c484;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 720px) {
  #home-view .reference-home-hero {
    min-height: 226px;
    padding-top: 28px;
  }

  #home-view .reference-hero-copy h1 {
    max-width: 8.2em;
    font-size: clamp(32px, 9.1vw, 42px);
    line-height: 1.2;
    letter-spacing: 0.02em;
  }

  .brand-position {
    margin-bottom: 13px;
    font-size: 10px;
  }

  .home-direct-verdict {
    padding: 22px 20px 18px;
    border-radius: 18px;
  }

  .home-direct-verdict::after {
    top: -18px;
    right: 12px;
    font-size: 128px;
  }

  .home-direct-verdict h2 {
    max-width: 11.5em;
    margin-top: 14px;
    font-size: 25px;
    line-height: 1.32;
  }

  .home-direct-verdict > p {
    font-size: 14px;
  }

  .home-direct-verdict footer {
    align-items: flex-start;
    margin-top: 17px;
  }

  .home-direct-verdict footer span {
    font-size: 11px;
  }
}

/* Production mobile hotfix (2026-08-05)
 * Keep desktop information density on wide screens, but never let chart and
 * action layouts exceed a phone viewport or squeeze Chinese labels vertically.
 */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .screen-panel,
  .view,
  #chart-view,
  #chart-view .profile-summary,
  #chart-view .chart-pro-system,
  #chart-view .chart-pro-grid,
  #chart-view .chart-main-stack,
  #chart-view .chart-pillar-board,
  #chart-view .chart-analysis-grid,
  #chart-view .chart-time-stack {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #chart-view {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
    overflow: hidden;
  }

  #chart-view .chart-pillar-board {
    padding: 22px 16px;
  }

  #chart-view .chart-pillar-board > header {
    display: grid;
    gap: 6px;
    align-items: start;
  }

  #chart-view .chart-pillar-board > header strong {
    justify-self: start;
    overflow-wrap: anywhere;
  }

  .pillar-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  .pillar-matrix article {
    min-width: 0;
    padding: 16px 8px;
  }

  .pillar-matrix small {
    display: block;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .pillar-detail-grid {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pillar-detail-grid p {
    min-width: 480px;
  }

  .deep-reading-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 12px;
    align-items: start;
  }

  .deep-reading-entry > div {
    grid-column: 1;
    min-width: 0;
  }

  .deep-reading-entry strong {
    grid-row: 2;
    grid-column: 1;
    width: auto;
    max-width: none;
    min-width: 0;
    font-size: 16px;
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: normal;
    writing-mode: horizontal-tb;
  }

  .deep-reading-entry::after {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
  }

  .destiny-status-pods {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .destiny-status-pods article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    align-items: center;
    justify-items: start;
    min-height: 74px;
    padding: 12px 0;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid rgba(92, 77, 58, 0.1);
  }

  .destiny-status-pods article:last-child {
    border-bottom: 0;
  }

  .destiny-status-pods span,
  .destiny-status-pods strong {
    grid-column: 1;
  }

  .destiny-status-pods i {
    grid-row: 1 / 3;
    grid-column: 2;
    margin: 0;
  }
}

/* Home Ming Dashboard UI */
.ming-dashboard {
  position: relative;
  display: grid;
  overflow: hidden;
  margin: 0 -24px;
  padding: 0 54px 36px;
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.78), transparent 28%),
    radial-gradient(circle at 86% 28%, rgba(202, 180, 132, 0.16), transparent 30%),
    linear-gradient(180deg, #f8f3e9 0%, #f4eddf 100%);
}

.ming-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(95, 78, 48, 0.022) 0, rgba(95, 78, 48, 0.022) 1px, transparent 1px, transparent 6px),
    radial-gradient(ellipse at 78% 56%, rgba(36, 80, 72, 0.08), transparent 36%);
  mix-blend-mode: multiply;
}

.ming-dashboard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0 72%, rgba(244, 237, 223, 0.82) 100%);
}

#home-view .reference-home-header {
  position: relative;
  z-index: 4;
  margin: 0 -24px;
  padding: 25px 34px 12px;
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(249, 244, 235, 0.96), rgba(249, 244, 235, 0.72)),
    url("assets/home-hero-ink-landscape.jpg") 65% 0 / cover no-repeat;
}

#home-view .reference-brand-seal {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.58);
  color: #1f2724;
  box-shadow: inset 0 0 0 3px #1f2724, inset 0 0 0 7px rgba(255, 253, 247, 0.84);
}

#home-view .reference-brand strong {
  color: #1e2723;
  font-size: 15px;
  letter-spacing: 0.08em;
}

#home-view .reference-home-tools button {
  min-height: 43px;
  padding-inline: 18px;
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.66);
  color: #222a27;
  box-shadow: 0 12px 26px rgba(82, 66, 42, 0.08);
  backdrop-filter: blur(12px);
}

#home-view .reference-home-hero {
  z-index: 3;
  min-height: 258px;
  margin: -1px -24px 0;
  padding: 58px 55% 42px 74px;
  background:
    linear-gradient(90deg, rgba(249, 244, 235, 0.92) 0 30%, rgba(249, 244, 235, 0.58) 52%, rgba(249, 244, 235, 0.04) 100%),
    url("assets/home-hero-ink-landscape.jpg") 66% 2% / cover no-repeat;
}

#home-view .reference-home-hero::after {
  height: 96px;
  background: linear-gradient(to bottom, transparent, #f7f1e7);
}

#home-view .reference-hero-copy h1 {
  color: #151914;
  font-size: clamp(64px, 12vw, 98px);
  font-weight: 900;
  letter-spacing: 0.06em;
}

#home-view .reference-hero-copy p {
  justify-content: center;
  margin-top: 22px;
  color: #27332f;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

#home-view .reference-hero-copy i {
  width: 54px;
  background: rgba(82, 70, 48, 0.48);
}

.ming-dashboard-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  margin-top: -18px;
}

.ming-glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(251, 246, 237, 0.5)),
    rgba(255, 253, 247, 0.62);
  box-shadow:
    0 18px 42px rgba(91, 72, 44, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.prediction-workbench .ming-glass-panel {
  border: 1px solid rgba(41, 54, 49, 0.12);
  border-radius: 8px;
  background: rgba(250, 249, 244, 0.9);
  box-shadow: var(--soft-shadow);
  backdrop-filter: none;
}

.prediction-report-workbench {
  gap: 16px;
}

.prediction-report-dashboard {
  background: linear-gradient(135deg, rgba(37, 68, 55, 0.96), rgba(112, 86, 55, 0.92));
}

.prediction-report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.prediction-report-metrics article,
.prediction-domain-report,
.prediction-annual-report {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(54, 79, 65, 0.14);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.82);
}

.prediction-report-metrics span,
.prediction-report-section > header span,
.prediction-report-teaser header span {
  display: block;
  margin-bottom: 6px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
}

.prediction-report-metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.prediction-report-metrics p,
.prediction-report-teaser p,
.prediction-domain-report p,
.prediction-annual-report p {
  margin: 0;
  color: rgba(38, 45, 40, 0.78);
  line-height: 1.65;
}

.prediction-report-teaser {
  padding: 18px;
  border: 1px solid rgba(54, 79, 65, 0.14);
  border-radius: 8px;
  background: rgba(250, 249, 244, 0.94);
}

.prediction-report-teaser > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.prediction-report-teaser h3,
.prediction-report-section h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.prediction-report-toggle {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fffaf0;
  background: #284f3f;
  font-weight: 800;
}

.prediction-report-toc {
  display: grid;
  gap: 8px;
}

.prediction-report-toc p {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(54, 79, 65, 0.1);
}

.prediction-report-toc p:first-child {
  border-top: 0;
}

.prediction-report-toc b,
.prediction-report-toc i {
  color: rgba(71, 76, 68, 0.64);
  font-style: normal;
  font-size: 12px;
}

.prediction-unlocked-report {
  display: grid;
  gap: 14px;
}

.prediction-report-section {
  padding: 18px;
  border: 1px solid rgba(54, 79, 65, 0.14);
  border-radius: 8px;
  background: rgba(250, 249, 244, 0.94);
  box-shadow: var(--soft-shadow);
}

.prediction-report-summary {
  background: linear-gradient(135deg, rgba(255, 252, 244, 0.96), rgba(233, 239, 230, 0.9));
}

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

.prediction-highlight-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(54, 79, 65, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.prediction-highlight-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
}

.prediction-highlight-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.prediction-highlight-grid p {
  margin: 0;
  color: rgba(38, 45, 40, 0.78);
  line-height: 1.65;
}

.prediction-current-stage-report > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.prediction-current-stage-report dl,
.prediction-domain-report dl,
.prediction-annual-report dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0 0;
}

.prediction-current-stage-report dl div,
.prediction-domain-report dl dt,
.prediction-domain-report dl dd,
.prediction-annual-report dl dt,
.prediction-annual-report dl dd {
  min-width: 0;
}

.prediction-current-stage-report dt,
.prediction-domain-report dt,
.prediction-annual-report dt {
  color: rgba(66, 57, 43, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.prediction-current-stage-report dd,
.prediction-domain-report dd,
.prediction-annual-report dd {
  margin: 4px 0 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prediction-current-stage-report dl div {
  padding: 10px 0;
  border-top: 1px solid rgba(54, 79, 65, 0.1);
}

.prediction-current-stage-report dl div:first-child {
  border-top: 0;
  padding-top: 0;
}

.prediction-domain-report dl dt,
.prediction-annual-report dl dt {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(54, 79, 65, 0.1);
}

.prediction-domain-report dl dt:first-child,
.prediction-annual-report dl dt:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prediction-report-year-grid,
.prediction-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.prediction-annual-report header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.prediction-report-risk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.prediction-report-risk-grid > .ming-glass-panel {
  padding: 18px;
}

.prediction-risk-window {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(84, 70, 46, 0.12);
}

.prediction-risk-window:first-of-type {
  border-top: 0;
}

.prediction-risk-window i {
  color: #2f6b57;
  font-style: normal;
}

.prediction-risk-window strong,
.prediction-risk-window p,
.prediction-risk-window small {
  display: block;
  margin: 0 0 6px;
  line-height: 1.6;
}

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

.prediction-timing-rhythm article,
.prediction-action-matrix section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(31, 42, 36, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.prediction-timing-rhythm strong,
.prediction-action-matrix strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.prediction-timing-rhythm p {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 800;
}

.prediction-timing-rhythm dl,
.prediction-action-matrix ul {
  margin: 0;
}

.prediction-timing-rhythm dt {
  margin-top: 8px;
  color: rgba(66, 57, 43, 0.68);
  font-size: 12px;
}

.prediction-timing-rhythm dd {
  margin: 3px 0 0;
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prediction-action-matrix-panel {
  padding: 18px;
}

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

.prediction-action-matrix ul {
  padding-left: 18px;
}

.prediction-action-matrix li {
  margin: 8px 0;
  color: var(--ink);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .prediction-report-metrics,
  .prediction-highlight-grid,
  .prediction-report-risk-grid,
  .prediction-risk-window,
  .prediction-timing-rhythm,
  .prediction-action-matrix {
    grid-template-columns: 1fr;
  }

  .prediction-report-teaser > header,
  .prediction-current-stage-report > header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .prediction-report-toggle {
    width: fit-content;
  }
}

.prediction-action-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  line-height: 1.7;
}

.deep-reading-entry {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 18px 20px;
  overflow: hidden;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.deep-reading-entry::after {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(31, 77, 58, 0.16);
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 45%, #1f4d3a 46% 54%, transparent 55%),
    linear-gradient(45deg, transparent 46%, #1f4d3a 47% 54%, transparent 55%),
    rgba(31, 77, 58, 0.07);
  opacity: 0.86;
}

.deep-reading-entry > div {
  min-width: 0;
}

.deep-reading-entry span {
  display: block;
  margin-bottom: 7px;
  color: #1f4d3a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.deep-reading-entry strong {
  flex: 0 1 auto;
  max-width: 13em;
  color: #26302b;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.deep-reading-entry p {
  margin: 0;
  color: #59645e;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.destiny-overview-system {
  position: relative;
  overflow: hidden;
  padding: 22px 28px 26px;
  cursor: pointer;
}

.destiny-overview-system::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 190px;
  height: 150px;
  background:
    radial-gradient(ellipse at 58% 72%, rgba(56, 85, 75, 0.08), transparent 60%),
    linear-gradient(135deg, transparent 45%, rgba(47, 86, 76, 0.08) 46% 47%, transparent 48%);
  opacity: 0.72;
  pointer-events: none;
}

.destiny-overview-system > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.destiny-overview-system h2,
.element-energy-system > header strong,
.conflict-warning-panel > header strong,
.destiny-three-verdict > header strong {
  position: relative;
  margin: 0;
  padding-left: 22px;
  color: #202721;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 22px;
  font-weight: 900;
}

.destiny-overview-system h2::before,
.element-energy-system > header strong::before,
.conflict-warning-panel > header strong::before,
.destiny-three-verdict > header strong::before {
  content: "✣";
  position: absolute;
  left: 0;
  top: 0;
  color: #c8995b;
  font-family: serif;
  font-size: 15px;
}

.destiny-overview-system-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) minmax(330px, 0.92fr);
  gap: 34px;
  align-items: center;
}

.destiny-guardian-portrait {
  display: grid;
  justify-items: center;
  margin: 0;
}

.destiny-guardian-portrait img {
  width: min(205px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
  box-shadow: inset 0 0 0 1px rgba(197, 153, 91, 0.26);
}

.destiny-guardian-portrait figcaption {
  min-width: 146px;
  margin-top: -20px;
  padding: 8px 18px;
  border: 1px solid rgba(197, 153, 91, 0.46);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.82);
  color: #2b3833;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 19px;
  font-weight: 900;
  text-align: center;
}

.destiny-profile-lines {
  min-width: 0;
  padding-right: 30px;
  border-right: 1px solid rgba(159, 139, 105, 0.2);
}

.destiny-profile-lines strong {
  display: block;
  color: #151b17;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.5;
}

.destiny-profile-lines p {
  margin: 14px 0 0;
  color: #373f3a;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 22px;
  line-height: 1.55;
}

.destiny-profile-lines em {
  color: #287164;
  font-style: normal;
  font-weight: 900;
}

.destiny-status-pods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.destiny-status-pods article {
  display: grid;
  justify-items: center;
  min-width: 0;
  min-height: 152px;
  padding: 10px 14px 2px;
  border-right: 1px solid rgba(159, 139, 105, 0.18);
  text-align: center;
}

.destiny-status-pods article:last-child {
  border-right: 0;
}

.destiny-status-pods span {
  color: #666f69;
  font-size: 15px;
  font-weight: 900;
}

.destiny-status-pods strong {
  display: block;
  margin-top: 13px;
  color: #202721;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 18px;
  line-height: 1.34;
}

.insight-professional,
.insight-modern {
  display: block;
}

.insight-professional {
  color: #1c2621;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-weight: 900;
}

.insight-modern {
  color: #68716b;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.86em;
  font-weight: 700;
}

.destiny-status-pods i,
.verdict-lines i,
.conflict-lines i {
  position: relative;
  display: block;
  width: 68px;
  height: 68px;
  margin-top: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at 50% 58%, rgba(207, 158, 86, 0.12), transparent 62%),
    rgba(235, 230, 219, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(204, 184, 143, 0.18),
    inset 0 -10px 22px rgba(84, 74, 54, 0.055),
    0 8px 18px rgba(77, 61, 36, 0.08);
}

.destiny-status-pods i::before,
.verdict-lines i::before,
.conflict-lines i::before,
.destiny-status-pods i::after,
.verdict-lines i::after,
.conflict-lines i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  transform: translate(-50%, -50%);
}

.status-icon-0::before,
.verdict-icon-0::before {
  width: 40px;
  height: 25px;
  background: linear-gradient(135deg, #2c7669, #6ea096);
  clip-path: polygon(0 100%, 24% 45%, 42% 70%, 64% 18%, 100% 100%);
}

.status-icon-0::after,
.verdict-icon-0::after {
  top: 61%;
  width: 42px;
  height: 7px;
  border-radius: 50%;
  background: rgba(45, 111, 98, 0.18);
}

.status-icon-1::before,
.verdict-icon-1::before {
  width: 31px;
  height: 38px;
  background: linear-gradient(180deg, #d7a257, #b96832);
  clip-path: polygon(50% 0, 76% 28%, 68% 46%, 88% 72%, 64% 100%, 36% 100%, 12% 72%, 32% 46%, 24% 28%);
  transform: translate(-50%, -50%);
}

.status-icon-1::after,
.verdict-icon-1::after {
  top: 58%;
  width: 12px;
  height: 17px;
  background: rgba(255, 245, 219, 0.78);
  clip-path: polygon(50% 0, 78% 38%, 62% 100%, 38% 100%, 22% 38%);
  transform: translate(-50%, -50%);
}

.status-icon-2::before,
.verdict-icon-2::before {
  width: 35px;
  height: 34px;
  background: linear-gradient(180deg, #2f7b6d, #245f56);
  clip-path: polygon(50% 0, 90% 48%, 68% 48%, 68% 66%, 84% 66%, 58% 100%, 42% 100%, 16% 66%, 32% 66%, 32% 48%, 10% 48%);
}

.status-icon-2::after,
.verdict-icon-2::after {
  top: 62%;
  width: 34px;
  height: 8px;
  border-radius: 50%;
  background: rgba(47, 123, 109, 0.14);
}

.conflict-icon-0::before {
  left: 39%;
  width: 22px;
  height: 31px;
  background: linear-gradient(180deg, #176b73, #0f5960);
  clip-path: polygon(50% 0, 82% 34%, 72% 74%, 50% 100%, 28% 74%, 18% 34%);
  transform: translate(-50%, -50%);
}

.conflict-icon-0::after {
  left: 62%;
  width: 22px;
  height: 31px;
  background: linear-gradient(180deg, #c45a4e, #a9493f);
  clip-path: polygon(50% 0, 76% 28%, 68% 46%, 88% 72%, 64% 100%, 36% 100%, 12% 72%, 32% 46%, 24% 28%);
  transform: translate(-50%, -50%);
}

.conflict-icon-1::before {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #9d514a, #d6a15e);
  clip-path: polygon(0 100%, 26% 34%, 47% 76%, 66% 16%, 100% 100%);
}

.conflict-icon-1::after {
  width: 3px;
  height: 38px;
  border-radius: 999px;
  background: rgba(126, 55, 48, 0.72);
  transform: translate(-50%, -50%) rotate(28deg);
}

.conflict-icon-2::before {
  width: 32px;
  height: 34px;
  background: linear-gradient(180deg, #d2a05a, #b88735);
  clip-path: polygon(50% 0, 92% 28%, 78% 100%, 22% 100%, 8% 28%);
}

.conflict-icon-2::after {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(45, 111, 98, 0.42);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
}

.ming-structure-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.element-energy-system,
.conflict-warning-panel,
.destiny-three-verdict {
  padding: 24px 28px 28px;
}

.element-energy-system > header,
.conflict-warning-panel > header,
.destiny-three-verdict > header {
  margin-bottom: 20px;
}

.element-orbit-system {
  position: relative;
  width: 160px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 6px auto 22px;
}

.element-orbit-system svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(166, 133, 83, 0.36);
  stroke-width: 1.2;
}

.element-orbit-system b {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fffaf0;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 21px;
  box-shadow: 0 8px 18px rgba(73, 58, 35, 0.12);
}

.element-orbit-system .element-木 { left: 50%; top: -4px; transform: translateX(-50%); background: #2f7665; }
.element-orbit-system .element-火 { right: -4px; top: 38%; background: #a9493f; }
.element-orbit-system .element-土 { right: 24px; bottom: 2px; background: #8b6d4a; }
.element-orbit-system .element-金 { left: 24px; bottom: 2px; background: #b08650; }
.element-orbit-system .element-水 { left: -4px; top: 38%; background: #0f5960; }

.element-bars {
  display: grid;
  gap: 9px;
}

.element-bar-row {
  display: grid;
  grid-template-columns: 26px 1fr 42px;
  gap: 12px;
  align-items: center;
}

.element-bar-row b {
  color: #202721;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 19px;
  line-height: 1;
}

.element-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  border: 0;
  background: rgba(99, 84, 61, 0.1);
}

.element-track i {
  display: block;
  width: var(--energy-width);
  height: 100%;
  border-radius: inherit;
  background: var(--element-color, var(--jade));
  box-shadow: 0 0 16px color-mix(in srgb, var(--element-color, var(--jade)) 28%, transparent);
}

.element-bar-row span {
  color: #5d655f;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.element-火 {
  --element-color: #b96832;
}

.element-水 {
  --element-color: #365b67;
}

.element-木 {
  --element-color: #2d6f62;
}

.element-金 {
  --element-color: #ad8950;
}

.element-土 {
  --element-color: #8a6d48;
}

.conflict-warning-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(45, 111, 98, 0.08), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(250, 241, 232, 0.58)),
    rgba(255, 253, 247, 0.62);
}

.conflict-lines,
.verdict-lines {
  display: grid;
  gap: 20px;
}

.conflict-lines p,
.verdict-lines p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  margin: 0;
  align-items: center;
}

.conflict-lines b,
.verdict-lines b {
  display: block;
  margin-bottom: 6px;
  color: #202721;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 17px;
}

.conflict-lines span,
.verdict-lines span {
  display: block;
  color: #59625c;
  font-size: 14px;
  line-height: 1.58;
}

.conflict-lines .insight-copy,
.verdict-lines .insight-copy {
  display: grid;
  gap: 5px;
}

.conflict-lines i,
.verdict-lines i {
  grid-row: span 2;
  margin: 0;
}

.dashboard-utility-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  box-shadow: none;
}

.dashboard-utility-line p {
  margin: 0;
  color: #5d655f;
  font-size: 15px;
  font-weight: 800;
}

.dashboard-utility-line p span {
  color: #2f7665;
}

.dashboard-utility-line button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f7665;
  font-size: 15px;
  font-weight: 900;
}

.ming-dashboard .daily-question-banner {
  grid-template-columns: 130px 1fr 78px;
  min-height: 116px;
  margin: 2px 48px 0;
  padding: 14px 26px;
  border: 2px solid rgba(207, 158, 86, 0.64);
  border-radius: 26px;
  background:
    radial-gradient(circle at 6% 50%, rgba(221, 188, 116, 0.18), transparent 19%),
    linear-gradient(90deg, #0d3b35, #15564d 70%, #0f3f39);
  box-shadow:
    0 16px 30px rgba(17, 64, 57, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ming-dashboard .daily-question-banner::before,
.ming-dashboard .daily-question-banner::after {
  content: "";
  position: absolute;
  top: 42%;
  width: 98px;
  height: 34px;
  border-top: 2px solid rgba(207, 158, 86, 0.62);
  border-bottom: 2px solid rgba(207, 158, 86, 0.62);
}

.ming-dashboard .daily-question-banner::before {
  left: -86px;
  border-left: 2px solid rgba(207, 158, 86, 0.62);
  border-radius: 16px 0 0 16px;
}

.ming-dashboard .daily-question-banner::after {
  right: -86px;
  border-right: 2px solid rgba(207, 158, 86, 0.62);
  border-radius: 0 16px 16px 0;
}

.ming-dashboard .bagua-medallion {
  width: 84px;
  height: 84px;
  border-color: rgba(222, 186, 111, 0.62);
  background:
    radial-gradient(circle, rgba(222, 186, 111, 0.26), transparent 62%),
    rgba(12, 39, 36, 0.42);
}

.ming-dashboard .bagua-medallion span {
  color: #d8ad65;
  font-size: 38px;
}

.ming-dashboard .daily-question-copy > span {
  font-size: 34px;
}

.ming-dashboard .daily-question-copy p {
  color: rgba(255, 244, 219, 0.76);
  font-size: 19px;
}

.ming-dashboard .daily-question-banner .route-arrow {
  width: 62px;
  height: 62px;
  border-color: rgba(222, 186, 111, 0.82);
  color: #d8ad65;
}

/* Chart professional guofeng system */
.app-shell:has(#chart-view.is-active) {
  width: min(1194px, calc(100% - 28px));
}

#chart-view {
  position: relative;
  overflow: hidden;
  margin: 0 -24px;
  padding: 0 48px 34px;
  background:
    linear-gradient(180deg, rgba(246, 241, 231, 0.94), rgba(246, 241, 231, 0.98)),
    radial-gradient(circle at 80% 12%, rgba(228, 178, 135, 0.18), transparent 15%),
    #f6f1e7;
}

#chart-view::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(246, 241, 231, 0.96) 0 42%, rgba(246, 241, 231, 0.48) 100%),
    url("assets/home-hero-ink-landscape.jpg") 80% 0 / 680px auto no-repeat;
  opacity: 0.1;
}

#chart-view::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(80, 65, 42, 0.018) 0, rgba(80, 65, 42, 0.018) 1px, transparent 1px, transparent 6px);
  mix-blend-mode: multiply;
}

#chart-view > * {
  position: relative;
  z-index: 1;
}

#chart-view > .section-head {
  display: none;
}

#chart-view .profile-summary {
  gap: 26px;
}

.chart-pro-system {
  display: grid;
  gap: 22px;
  padding-top: 18px;
}

.chart-pro-hero {
  display: grid;
  min-height: 118px;
  align-items: end;
}

.chart-pro-hero span {
  display: block;
  margin-bottom: 16px;
  color: #1f4d3a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.chart-pro-hero h2 {
  margin: 0;
  color: #141b17;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: clamp(46px, 6.5vw, 66px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0.06em;
}

.chart-pro-hero p {
  margin: 18px 0 0;
  color: #2b3833;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.chart-pro-hero nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  padding-bottom: 22px;
}

.chart-pro-hero nav button {
  position: relative;
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  color: #707872;
  font-size: 17px;
  font-weight: 800;
}

.chart-pro-hero nav button.is-active {
  color: #18231f;
  font-weight: 950;
}

.chart-pro-hero nav button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: #b28a5a;
  transform: translateX(-50%);
}

.chart-pro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.chart-pro-side,
.chart-main-stack > section,
.chart-time-stack > section,
.chart-pillar-board,
.chart-relation-board,
.chart-useful-analysis,
.chart-luck-board,
.chart-day-status,
.chart-element-panel,
.chart-verdict-panel,
.chart-conflict-panel,
.chart-useful-panel {
  border: 0;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(250, 246, 237, 0.54)),
    rgba(255, 253, 247, 0.58);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

.chart-pro-side {
  display: grid;
  gap: 18px;
  min-height: 430px;
  padding: 28px 18px;
}

.chart-main-stack,
.chart-time-stack {
  display: grid;
  gap: 24px;
}

.chart-time-stack {
  grid-template-columns: 1fr;
  align-items: start;
}

.chart-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.chart-pro-side p {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: #6b746e;
  font-weight: 800;
}

.chart-pro-side p.is-active {
  color: #141b17;
}

.chart-pro-side p.is-active::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: #a54a3f;
  transform: translateY(-50%);
}

.chart-pro-side i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background:
    radial-gradient(circle, #1f4d3a 0 3px, transparent 4px),
    rgba(31, 77, 58, 0.1);
}

.chart-pillar-board {
  padding: 32px;
}

.chart-pillar-board > header,
.chart-relation-board > header,
.chart-useful-analysis > header,
.chart-luck-board > header,
.chart-element-panel > header,
.chart-verdict-panel > header,
.chart-conflict-panel > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.chart-pillar-board > header span,
.chart-relation-board > header strong,
.chart-useful-analysis > header strong,
.chart-luck-board > header strong,
.chart-element-panel > header strong,
.chart-verdict-panel > header strong,
.chart-conflict-panel > header strong,
.chart-useful-panel span {
  color: #1f4d3a;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 22px;
  font-weight: 950;
}

.chart-pillar-board > header strong {
  color: #8a8173;
  font-size: 13px;
}

.pillar-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 14px;
  background: rgba(178, 138, 90, 0.12);
}

.pillar-matrix article {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 142px;
  padding: 18px 10px;
  background: rgba(255, 253, 247, 0.62);
}

.pillar-matrix span {
  color: #6f746a;
  font-size: 13px;
  font-weight: 900;
}

.pillar-matrix strong {
  color: #141b17;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.pillar-matrix small {
  color: #b28a5a;
  font-weight: 900;
}

.professional-pillar-matrix article {
  min-height: 166px;
  align-content: center;
}

.professional-pillar-matrix article > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pillar-detail-grid {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(178, 138, 90, 0.1);
}

.pillar-detail-grid p {
  display: grid;
  grid-template-columns: 70px repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  border-bottom: 1px solid rgba(178, 138, 90, 0.1);
}

.pillar-detail-grid p:last-child {
  border-bottom: 0;
}

.pillar-detail-grid b,
.pillar-detail-grid span {
  display: grid;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  background: rgba(255, 253, 247, 0.54);
}

.pillar-detail-grid b {
  color: #1f4d3a;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 15px;
}

.pillar-detail-grid span {
  color: #141b17;
  font-weight: 850;
  text-align: center;
}

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

.chart-structure-list p {
  display: grid;
  grid-template-columns: 30px 112px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid rgba(178, 138, 90, 0.12);
}

.chart-structure-list i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(31, 77, 58, 0.1);
  color: #1f4d3a;
  font-style: normal;
  font-weight: 900;
}

.chart-structure-list b {
  color: #141b17;
  font-size: 15px;
}

.chart-structure-list span {
  color: #747a74;
  line-height: 1.7;
}

.chart-relation-board,
.chart-useful-analysis,
.chart-luck-board {
  padding: 24px;
}

.professional-rows p {
  grid-template-columns: 28px 96px 1fr;
}

.useful-analysis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.useful-analysis-grid p {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 98px;
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 16% 12%, rgba(178, 138, 90, 0.12), transparent 34%),
    rgba(255, 253, 247, 0.44);
}

.useful-analysis-grid p.is-emphasis {
  background:
    radial-gradient(circle at 16% 12%, rgba(178, 138, 90, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.72), rgba(250, 245, 235, 0.5));
}

.useful-analysis-grid b {
  color: #b28a5a;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 18px;
}

.useful-analysis-grid span {
  color: #4d5852;
  line-height: 1.72;
}

.chart-luck-board > header span {
  color: #8a8173;
  font-size: 13px;
  font-weight: 900;
}

.chart-time-stack .chart-luck-board {
  min-height: 100%;
}

.fortune-axis-board {
  display: block;
  padding: 24px;
}

.fortune-axis-board > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.fortune-axis-board > header strong {
  color: #1f4d3a;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 22px;
  font-weight: 950;
}

.fortune-axis-board > header span {
  color: #8a8173;
  font-size: 13px;
  font-weight: 900;
}

.fortune-axis-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 14px;
  background: rgba(28, 38, 33, 0.04);
}

.fortune-axis-row + .fortune-axis-row {
  margin-top: 12px;
}

.fortune-axis-label {
  display: grid;
  place-items: center;
  min-height: 126px;
  border-right: 1px solid rgba(178, 138, 90, 0.15);
  background: rgba(31, 77, 58, 0.08);
}

.fortune-axis-label b {
  color: #1f4d3a;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.fortune-axis-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 1fr);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.fortune-axis-cell {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  min-height: 126px;
  padding: 13px 10px;
  border-right: 1px solid rgba(178, 138, 90, 0.14);
  background: rgba(255, 253, 247, 0.36);
  text-align: center;
}

.fortune-axis-cell:last-child {
  border-right: 0;
}

.fortune-axis-cell.is-current {
  background:
    linear-gradient(180deg, rgba(31, 77, 58, 0.16), rgba(178, 138, 90, 0.12)),
    rgba(255, 253, 247, 0.68);
  box-shadow: inset 0 3px 0 #b28a5a;
}

.fortune-axis-cell span {
  color: #666f69;
  font-size: 15px;
  font-weight: 900;
}

.fortune-axis-cell small {
  min-height: 17px;
  color: #8a8173;
  font-size: 12px;
  font-weight: 800;
}

.fortune-axis-cell strong {
  color: #141b17;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.04;
}

.fortune-axis-cell em {
  color: #b28a5a;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.luck-card-list,
.flow-year-list,
.flow-month-grid {
  display: grid;
  gap: 12px;
}

.luck-card-list p,
.flow-year-list p,
.flow-month-grid p {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 14px 14px 18px;
  border-radius: 13px;
  background: rgba(255, 253, 247, 0.48);
}

.luck-card-list p::before,
.flow-year-list p::before,
.flow-month-grid p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 3px;
  border-radius: 999px;
  background: rgba(178, 138, 90, 0.42);
}

.luck-card-list p.is-current,
.flow-year-list p.is-current,
.flow-month-grid p.is-current {
  background:
    linear-gradient(135deg, rgba(31, 77, 58, 0.12), rgba(178, 138, 90, 0.1)),
    rgba(255, 253, 247, 0.58);
}

.luck-card-list p.is-current::before,
.flow-year-list p.is-current::before,
.flow-month-grid p.is-current::before {
  background: #1f4d3a;
}

.luck-card-list b,
.flow-year-list b,
.flow-month-grid b {
  color: #1f4d3a;
  font-size: 14px;
}

.luck-card-list span,
.flow-year-list span,
.flow-month-grid span {
  color: #4d5852;
  line-height: 1.62;
}

.chart-pro-insights {
  display: grid;
  gap: 22px;
}

.chart-deep-reading-report {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.chart-deep-reading-report > .ming-glass-panel,
.deep-reading-hero {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 28px;
}

.chart-deep-reading-report > .ming-glass-panel::after,
.deep-reading-hero::after {
  content: "解";
  position: absolute;
  right: 24px;
  bottom: -18px;
  color: rgba(178, 138, 90, 0.08);
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 118px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.chart-deep-reading-report > .ming-glass-panel span,
.deep-reading-hero span {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 14px;
  color: #1f4d3a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.chart-deep-reading-report > .ming-glass-panel h2,
.deep-reading-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0;
  color: #141b17;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.chart-deep-reading-report > .ming-glass-panel p,
.deep-reading-hero p {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 16px 0 0;
  color: #4d5852;
  font-size: 16px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.chart-deep-reading-sections,
.deep-reading-section-list {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.chart-deep-reading-sections > .ming-glass-panel,
.deep-reading-section {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
}

.chart-deep-reading-sections > .ming-glass-panel header,
.deep-reading-section header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: start;
}

.chart-deep-reading-sections > .ming-glass-panel header span,
.deep-reading-section header span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(178, 138, 90, 0.32);
  border-radius: 50%;
  background: rgba(178, 138, 90, 0.08);
  color: #9e453c;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 14px;
  font-weight: 900;
}

.chart-deep-reading-sections > .ming-glass-panel h3,
.deep-reading-section h3 {
  margin: 0;
  color: #1b2420;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.chart-deep-reading-sections > .ming-glass-panel header p,
.deep-reading-section header p {
  grid-column: 2;
  margin: 0;
  color: #53605a;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.chart-deep-reading-sections > .ming-glass-panel dl,
.deep-reading-section dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.chart-deep-reading-sections > .ming-glass-panel dl > div,
.deep-reading-evidence,
.deep-reading-analysis {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(61, 78, 62, 0.12);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.45);
}

.chart-deep-reading-sections > .ming-glass-panel dt,
.deep-reading-evidence b,
.deep-reading-analysis b {
  color: #1f4d3a;
  font-size: 13px;
  font-weight: 900;
}

.chart-deep-reading-sections > .ming-glass-panel dd,
.deep-reading-evidence p,
.deep-reading-analysis p {
  margin: 0;
  color: #4d5852;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.chart-deep-reading-sections > .ming-glass-panel ul,
.deep-reading-section ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chart-deep-reading-sections > .ming-glass-panel li,
.deep-reading-section li {
  position: relative;
  padding-left: 18px;
  color: #35413b;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.chart-deep-reading-sections > .ming-glass-panel li::before,
.deep-reading-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b28a5a;
}

.chart-deep-reading-sections > .ming-glass-panel footer,
.deep-reading-section footer {
  margin-top: 2px;
  padding: 14px 16px 14px 18px;
  border-left: 3px solid #9e453c;
  border-radius: 0 12px 12px 0;
  background: rgba(158, 69, 60, 0.06);
  color: #26302b;
  font-weight: 900;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.chart-day-status {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 28px;
}

.chart-day-status::after {
  content: "☯";
  position: absolute;
  right: 28px;
  bottom: 8px;
  color: rgba(178, 138, 90, 0.08);
  font-size: 92px;
}

.chart-day-status span {
  color: #1f4d3a;
  font-size: 16px;
  font-weight: 900;
}

.chart-day-status strong {
  display: block;
  margin-top: 18px;
  color: #b28a5a;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.chart-day-status p {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: #4d5852;
  line-height: 1.7;
}

.chart-element-panel,
.chart-verdict-panel {
  padding: 24px;
}

.chart-element-bars {
  display: grid;
  gap: 12px;
}

.chart-element-bars p {
  display: grid;
  grid-template-columns: 24px 1fr 42px;
  gap: 12px;
  align-items: center;
  margin: 0;
}

.chart-element-bars b {
  color: #1f4d3a;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 18px;
}

.chart-element-bars i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(99, 84, 61, 0.1);
}

.chart-element-bars em {
  display: block;
  width: var(--energy-width);
  height: 100%;
  border-radius: inherit;
  background: var(--element-color, #1f4d3a);
}

.chart-element-bars span {
  color: #5d655f;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.chart-verdict-panel {
  display: grid;
  gap: 18px;
}

.chart-verdict-panel p {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  margin: 0;
}

.chart-verdict-panel i {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  margin: 0;
}

.chart-verdict-panel b {
  color: #141b17;
  font-size: 16px;
}

.chart-verdict-panel span {
  color: #747a74;
  line-height: 1.55;
}

.chart-conflict-row {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.58fr);
  gap: 22px;
}

.chart-conflict-panel,
.chart-useful-panel {
  padding: 26px;
}

.chart-conflict-panel .conflict-lines {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.chart-conflict-panel .conflict-lines p {
  grid-template-columns: 62px 1fr;
  align-content: start;
  min-height: 128px;
  padding: 0;
}

.chart-conflict-panel .conflict-lines i {
  width: 58px;
  height: 58px;
}

.chart-useful-panel {
  display: grid;
  align-content: center;
  min-height: 150px;
  background:
    radial-gradient(circle at 8% 50%, rgba(178, 138, 90, 0.18), transparent 30%),
    linear-gradient(120deg, rgba(14, 61, 53, 0.97), rgba(28, 82, 70, 0.94));
}

.chart-useful-panel span {
  color: rgba(255, 247, 226, 0.74);
}

.chart-useful-panel strong {
  margin-top: 10px;
  color: #fff7e2;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 28px;
}

.chart-useful-panel p {
  margin: 10px 0 0;
  color: #d8bd80;
  font-size: 17px;
  font-weight: 900;
}

#chart-view .action-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.72fr;
  gap: 14px;
  margin: 24px 0 0;
  padding: 18px;
  border: 1px solid rgba(216, 189, 128, 0.46);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 50%, rgba(216, 189, 128, 0.18), transparent 28%),
    linear-gradient(120deg, #0d3b35, #15564d 72%, #0f3f39);
  box-shadow: 0 18px 38px rgba(13, 51, 46, 0.18);
}

#chart-view .action-row button {
  min-height: 52px;
  border: 1px solid rgba(216, 189, 128, 0.52);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.06);
  color: #fff7e2;
  font-weight: 950;
  box-shadow: none;
}

#chart-view .action-row .secondary-action {
  color: #d8bd80;
}

@media (max-width: 980px) {
  #chart-view {
    margin: 0 -18px;
    padding: 0 24px 32px;
  }

  .chart-pro-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding-top: 14px;
  }

  .chart-pro-hero nav {
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 14px;
  }

  .chart-pro-hero nav button {
    flex: 0 0 auto;
  }

  .chart-pro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .chart-analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-time-stack {
    grid-template-columns: 1fr;
  }

  .chart-pro-side {
    display: flex;
    min-height: 0;
    overflow-x: auto;
    padding: 16px 18px;
  }

  .chart-pro-side p {
    flex: 0 0 auto;
  }

  .chart-pro-side p.is-active::before {
    left: 0;
    top: auto;
    bottom: -16px;
    width: 26px;
    height: 3px;
    transform: none;
  }

  .chart-pro-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chart-deep-reading-sections > .ming-glass-panel dl,
  .deep-reading-section dl {
    grid-template-columns: 1fr;
  }

  .useful-analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-conflict-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #chart-view .action-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #chart-view {
    margin: 0 -16px;
    padding: 0 16px 28px;
  }

  .chart-pro-system {
    gap: 22px;
    padding-top: 12px;
  }

  .chart-pro-hero h2 {
    font-size: clamp(42px, 14vw, 56px);
  }

  .chart-pro-hero p {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .deep-reading-entry {
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .deep-reading-entry strong {
    max-width: 9.5em;
    font-size: 14px;
  }

  .chart-deep-reading-report > .ming-glass-panel,
  .deep-reading-hero,
  .chart-deep-reading-sections > .ming-glass-panel,
  .deep-reading-section {
    padding: 20px 18px;
  }

  .chart-deep-reading-report > .ming-glass-panel h2,
  .deep-reading-hero h2 {
    font-size: clamp(28px, 10vw, 38px);
    letter-spacing: 0.04em;
  }

  .chart-deep-reading-report > .ming-glass-panel p,
  .deep-reading-hero p {
    font-size: 15px;
  }

  .chart-deep-reading-sections > .ming-glass-panel header,
  .deep-reading-section header {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .chart-deep-reading-sections > .ming-glass-panel header span,
  .deep-reading-section header span {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .chart-deep-reading-sections > .ming-glass-panel h3,
  .deep-reading-section h3 {
    font-size: 20px;
  }

  .chart-pillar-board,
  .chart-relation-board,
  .chart-useful-analysis,
  .chart-luck-board,
  .chart-conflict-panel,
  .chart-useful-panel {
    padding: 22px 18px;
  }

  .pillar-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .chart-structure-list p {
    grid-template-columns: 28px 1fr;
    gap: 10px 12px;
  }

  .chart-structure-list span {
    grid-column: 2;
  }

  .pillar-detail-grid {
    overflow-x: auto;
  }

  .pillar-detail-grid p {
    min-width: 540px;
  }

  .useful-analysis-grid {
    grid-template-columns: 1fr;
  }

  .chart-analysis-grid {
    grid-template-columns: 1fr;
  }

  .chart-pro-insights {
    grid-template-columns: 1fr;
  }

  .chart-conflict-panel .conflict-lines {
    grid-template-columns: 1fr;
  }

  .chart-conflict-panel .conflict-lines p {
    min-height: 0;
  }

  .chart-useful-panel strong {
    font-size: 24px;
  }
}

@media (max-width: 980px) {
  #home-view .reference-home-hero {
    padding-right: 38%;
  }

  #home-view .reference-hero-copy h1 {
    white-space: nowrap;
    font-size: clamp(50px, 8vw, 72px);
    letter-spacing: 0.04em;
  }

  .destiny-overview-system-body {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
  }

  .destiny-profile-lines {
    padding-right: 0;
    border-right: 0;
  }

  .destiny-profile-lines strong {
    font-size: clamp(24px, 3.8vw, 32px);
  }

  .destiny-status-pods {
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid rgba(159, 139, 105, 0.16);
  }
}

@media (max-width: 720px) {
  #home-view .reference-home-header {
    margin: 0 -16px;
    padding: 16px 16px 8px;
  }

  #home-view .reference-brand-seal {
    width: 40px;
    height: 40px;
  }

  #home-view .reference-brand strong {
    max-width: none;
    font-size: 12px;
  }

  #home-view .reference-home-tools button {
    width: auto;
    min-height: 36px;
    grid-template-columns: 15px auto;
    padding: 0 13px;
  }

  #home-view .reference-home-tools button span {
    display: inline;
  }

  #home-view .reference-home-hero {
    min-height: 210px;
    margin: 0 -16px;
    padding: 42px 28% 28px 28px;
    background:
      linear-gradient(90deg, rgba(249, 244, 235, 0.94) 0 34%, rgba(249, 244, 235, 0.54) 63%, rgba(249, 244, 235, 0.04) 100%),
      url("assets/home-hero-ink-landscape.jpg") 67% 4% / cover no-repeat;
  }

  #home-view .reference-hero-copy h1 {
    white-space: nowrap;
    font-size: clamp(42px, 12vw, 50px);
    letter-spacing: 0.03em;
  }

  #home-view .reference-hero-copy p {
    gap: 9px;
    justify-content: flex-start;
    font-size: 13px;
    letter-spacing: 0.12em;
  }

  #home-view .reference-hero-copy i {
    width: 24px;
  }

  .ming-dashboard {
    margin: 0 -16px;
    padding: 0 16px 28px;
  }

  .destiny-overview-system-body,
  .ming-structure-zone {
    grid-template-columns: 1fr;
  }

  .destiny-overview-system {
    padding: 18px 18px 22px;
  }

  .destiny-overview-system-body {
    gap: 16px;
  }

  .destiny-guardian-portrait img {
    width: 150px;
  }

  .destiny-profile-lines {
    padding: 0;
    border-right: 0;
    text-align: center;
  }

  .destiny-profile-lines strong {
    font-size: 22px;
  }

  .destiny-profile-lines p {
    font-size: 17px;
  }

  .destiny-status-pods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(159, 139, 105, 0.16);
    padding-top: 14px;
  }

  .destiny-status-pods article {
    min-height: 122px;
    padding: 0 8px;
  }

  .destiny-status-pods span {
    font-size: 12px;
  }

  .destiny-status-pods strong {
    font-size: 15px;
  }

  .destiny-status-pods i {
    width: 52px;
    height: 52px;
    margin-top: 12px;
  }

  .element-energy-system,
  .conflict-warning-panel,
  .destiny-three-verdict {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .element-orbit-system {
    width: 132px;
  }

  .element-orbit-system b {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .ming-dashboard .daily-question-banner {
    grid-template-columns: 64px 1fr 46px;
    min-height: 94px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .ming-dashboard .daily-question-banner::before,
  .ming-dashboard .daily-question-banner::after {
    display: none;
  }

  .ming-dashboard .bagua-medallion {
    width: 58px;
    height: 58px;
  }

  .ming-dashboard .bagua-medallion span {
    font-size: 27px;
  }

  .ming-dashboard .daily-question-copy > span {
    font-size: 24px;
  }

  .ming-dashboard .daily-question-copy p {
    font-size: 13px;
  }

  .ming-dashboard .daily-question-banner .route-arrow {
    width: 42px;
    height: 42px;
  }

  .dashboard-utility-line {
    min-height: 44px;
    padding: 0 16px;
  }

  .dashboard-utility-line p,
  .dashboard-utility-line button {
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  html,
  body,
  .app-shell,
  .screen-panel,
  #home-view,
  #home-view .profile-overview {
    max-width: 100%;
    overflow-x: hidden;
  }

  #home-view {
    margin-inline: 0;
  }

  #home-view .reference-home-header,
  #home-view .reference-home-hero,
  .ming-dashboard {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  #home-view .reference-home-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  #home-view .reference-home-hero {
    min-height: 190px;
    padding: 36px 20px 28px;
    background:
      linear-gradient(90deg, rgba(249, 244, 235, 0.96) 0 44%, rgba(249, 244, 235, 0.7) 70%, rgba(249, 244, 235, 0.12) 100%),
      url("assets/home-hero-ink-landscape.jpg") 72% 8% / cover no-repeat;
  }

  #home-view .reference-hero-copy {
    max-width: min(100%, 320px);
  }

  #home-view .reference-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(38px, 11vw, 46px);
    line-height: 1.08;
    letter-spacing: 0.02em;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #home-view .reference-hero-copy p {
    max-width: 100%;
    gap: 7px;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    white-space: normal;
  }

  #home-view .reference-hero-copy i {
    width: 18px;
  }

  .ming-dashboard {
    padding: 0 16px 28px;
  }

  .ming-dashboard-body,
  .destiny-overview-system,
  .destiny-overview-system-body,
  .destiny-profile-lines,
  .destiny-status-pods,
  .ming-structure-zone {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .destiny-overview-system {
    overflow: hidden;
  }

  .destiny-overview-system-body {
    justify-items: center;
    gap: 18px;
  }

  .destiny-guardian-portrait {
    width: 100%;
    max-width: 180px;
    overflow: visible;
  }

  .destiny-guardian-portrait img {
    width: min(150px, 100%);
    max-width: 100%;
  }

  .destiny-guardian-portrait figcaption {
    min-width: 0;
    max-width: 100%;
    margin-top: 8px;
    padding: 7px 14px;
    font-size: 16px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .destiny-profile-lines strong,
  .destiny-profile-lines p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .destiny-status-pods {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .destiny-status-pods article {
    min-height: 0;
    padding: 12px;
  }
}

/* Must remain last: it wins over legacy desktop-first mobile rules above. */
@media (max-width: 720px) {
  #chart-view,
  #chart-view .profile-summary,
  #chart-view .chart-pro-system,
  #chart-view .chart-pro-grid,
  #chart-view .chart-main-stack,
  #chart-view .chart-pillar-board,
  #chart-view .chart-analysis-grid,
  #chart-view .chart-time-stack {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #chart-view {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
    overflow: hidden;
  }

  #chart-view .chart-pillar-board {
    padding: 22px 16px;
  }

  #chart-view .chart-pillar-board > header {
    display: grid;
    gap: 6px;
    align-items: start;
  }

  #chart-view .chart-pillar-board > header strong {
    justify-self: start;
    overflow-wrap: anywhere;
  }

  .pillar-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  .pillar-matrix article {
    min-width: 0;
    padding: 16px 8px;
  }

  .pillar-matrix small {
    display: block;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .pillar-detail-grid {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pillar-detail-grid p {
    min-width: 480px;
  }

  .deep-reading-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 12px;
    align-items: start;
  }

  .deep-reading-entry > div {
    grid-column: 1;
    min-width: 0;
  }

  .deep-reading-entry strong {
    grid-row: 2;
    grid-column: 1;
    width: auto;
    max-width: none;
    min-width: 0;
    font-size: 16px;
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: normal;
    writing-mode: horizontal-tb;
  }

  .deep-reading-entry::after {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
  }

  .destiny-status-pods {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .destiny-status-pods article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    align-items: center;
    justify-items: start;
    min-height: 74px;
    padding: 12px 0;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid rgba(92, 77, 58, 0.1);
  }

  .destiny-status-pods article:last-child {
    border-bottom: 0;
  }

  .destiny-status-pods span,
  .destiny-status-pods strong {
    grid-column: 1;
  }

  .destiny-status-pods i {
    grid-row: 1 / 3;
    grid-column: 2;
    margin: 0;
  }
}
