/* Canonical CSS owner: heaven. Historical layers consolidated 2026-08-02. */
.wentian-v2-dialog .icon-button {
  width: 34px;

  height: 34px;

  border: 1px solid var(--wt-line);

  border-radius: 50%;

  background: transparent;

  color: var(--wt-muted);
}

.wentian-v2-dialog .empty-state {
  padding: 48px 20px;

  color: var(--wt-faint);

  text-align: center;
}

.wentian-v2-dialog .dialog-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  padding: 15px 18px;

  border-bottom: 1px solid var(--wt-line);
}

.wentian-v2-dialog .dialog-header h2 {
  margin: 3px 0px 0px;

  color: var(--wt-paper);

  font-family: var(--heaven-serif);

  font-size: 20px;
}

.wentian-v2-dialog .dialog-eyebrow {
  color: var(--wt-gold);

  font-size: 10px;

  letter-spacing: 1.5px;
}

.wentian-v2-dialog .mentor-answer-heading {
  display: block;

  margin: 20px 0px 7px;

  color: var(--wt-gold-bright);

  font-size: 16px;
}

.wentian-v2-dialog .mentor-answer-paragraph {
  margin: 0px 0px 10px;
}

.wentian-v2-dialog .mentor-answer-list {
  margin: 0px 0px 12px;

  padding-left: 24px;
}

body[data-active-view="heavenView"] .overview-strip {
  display: none;
}

body[data-active-view="heavenView"] .workspace-view {
  margin-top: 0px;
}

@media (max-width: 767px) {
  body[data-active-view="heavenView"] .workspace-view {
    margin-top: 0px;

    border-radius: 7px;
  }
}

.personal-profile-empty[hidden] {
  display: none;
}

:where(#heavenView) .heaven-panel {
  display: none;
}

.heaven-panel.active-heaven-panel {
  display: block;
}

:where(#heavenView) .heaven-controls {
  display: grid;

  grid-template-columns: minmax(240px, 0.9fr) minmax(220px, 0.75fr) auto auto;

  align-items: end;

  padding: 14px 18px;

  border-bottom: 1px solid var(--line);
}

.heaven-controls input,
.heaven-controls select {
  width: 100%;

  min-width: 0px;

  height: 40px;

  padding: 0px 10px;

  border: 1px solid var(--line-strong);

  border-radius: 4px;

  background: var(--surface);

  color: var(--text);

  outline: none;
}

.heaven-controls input:focus,
.heaven-controls select:focus {
  border-color: var(--blue);

  box-shadow: rgba(8, 127, 174, 0.13) 0px 0px 0px 2px;
}

.heaven-controls > .button {
  height: 40px;

  min-width: 86px;
}

.heaven-trend-layout {
  min-height: 530px;

  display: grid;

  grid-template-columns: minmax(520px, 1.15fr) minmax(330px, 0.85fr);

  border-bottom: 1px solid var(--line);
}

.hexagram-board {
  min-width: 0px;

  padding: 18px;

  border-right: 1px solid var(--line);

  background: var(--surface);
}

.hexagram-heading {
  min-height: 58px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  padding-bottom: 12px;

  border-bottom: 1px solid var(--line);
}

.hexagram-heading h3 {
  margin: 5px 0px 0px;

  font-size: 20px;
}

.hexagram-change {
  text-align: right;
}

.hexagram-change span {
  display: block;

  color: var(--text-muted);

  font-size: 11px;
}

.hexagram-change strong {
  display: block;

  margin-top: 4px;

  color: var(--coral);

  font-size: 18px;
}

.hexagram-lines {
  display: grid;

  gap: 9px;

  margin-top: 18px;
}

.hexagram-line-row {
  min-width: 0px;

  min-height: 52px;

  display: grid;

  grid-template-columns: 44px 170px minmax(0px, 1fr);

  align-items: center;

  gap: 10px;

  padding: 6px 8px;

  border-left: 3px solid transparent;
}

.hexagram-line-row.moving {
  border-left-color: var(--coral);

  background: var(--coral-soft);
}

.hexagram-position {
  color: var(--text-muted);

  font-size: 11px;
}

.hex-line {
  position: relative;

  width: 150px;

  height: 24px;

  display: flex;

  align-items: center;

  gap: 16px;
}

.hex-line i {
  height: 8px;

  display: block;

  flex: 1 1 0%;

  background: rgb(29, 43, 53);
}

.hex-line b {
  position: absolute;

  right: -22px;

  color: var(--coral);

  font-size: 16px;
}

.hexagram-line-detail {
  min-width: 0px;
}

.hexagram-line-detail strong {
  display: block;
}

.hexagram-line-detail small {
  display: block;

  margin-top: 4px;

  overflow: hidden;

  color: var(--text-muted);

  font-size: 11px;

  line-height: 1.55;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.hexagram-text {
  margin: 16px 0px 0px;

  padding: 12px;

  border-top: 1px solid var(--line);

  color: var(--text-muted);

  line-height: 1.75;
}

.market-movement-summary {
  margin: 10px 0px 0px;

  padding: 10px 12px;

  border-left: 3px solid var(--blue);

  background: rgb(242, 247, 249);

  color: var(--text-muted);

  font-size: 11px;

  line-height: 1.65;
}

.trend-reading-panel {
  min-width: 0px;

  padding: 18px;

  background: var(--surface-muted);
}

.trend-score-line {
  min-height: 82px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  padding-bottom: 14px;

  border-bottom: 1px solid var(--line);
}

.trend-score-line strong {
  display: block;

  margin-top: 5px;

  font-size: 30px;
}

.trend-score-line > span {
  color: var(--coral);

  font-size: 16px;

  font-weight: 750;
}

.three-talent-readings {
  display: grid;

  margin-top: 12px;
}

.talent-reading {
  min-height: 74px;

  padding: 11px 0px;

  border-bottom: 1px solid var(--line);
}

.talent-reading strong {
  display: block;
}

.talent-reading span {
  display: block;

  margin-top: 5px;
}

.talent-reading small {
  display: block;

  margin-top: 5px;

  color: var(--text-muted);
}

.heaven-index-strip {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 8px;

  margin-top: 14px;
}

.heaven-index-strip div {
  min-width: 0px;

  padding: 9px;

  border: 1px solid var(--line);

  border-radius: 4px;

  background: var(--surface);
}

.heaven-index-strip span {
  display: block;
}

.heaven-index-strip strong {
  display: block;

  margin-top: 4px;
}

.heaven-index-strip small {
  display: block;

  margin: 4px 0px 0px;

  color: var(--text-muted);

  font-size: 10px;
}

.heaven-index-strip p {
  margin: 4px 0px 0px;

  color: var(--text-muted);

  font-size: 10px;

  grid-column: 1 / -1;

  line-height: 1.6;
}

.heaven-interpretation {
  padding: 18px;

  border-bottom: 1px solid var(--line);

  background: rgb(251, 252, 253);

  line-height: 1.8;
}

.heaven-interpretation > div {
  overflow-wrap: anywhere;
}

.heaven-interpretation > small {
  display: block;

  margin-top: 12px;

  color: var(--text-muted);
}

.fortune-heading {
  min-height: 76px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  padding: 14px 18px;

  border-bottom: 1px solid var(--line);
}

.fortune-heading h3 {
  margin: 5px 0px 0px;

  font-size: 20px;
}

.fortune-heading-actions {
  display: flex;

  align-items: end;

  gap: 10px;
}

.qi-time-field span {
  display: block;

  margin-bottom: 4px;

  color: var(--text-muted);

  font-size: 10px;
}

.qi-time-field input {
  width: 132px;

  height: 36px;

  padding: 0px 8px;

  border: 1px solid var(--line-strong);

  border-radius: 4px;

  background: var(--surface);

  color: var(--text);
}

.fortune-metric {
  min-width: 0px;

  min-height: 108px;

  padding: 14px;

  border-right: 1px solid var(--line);
}

.fortune-metric:last-child {
  border-right: 0px;
}

.qi-framework-panel {
  padding: 16px 18px 18px;

  border-bottom: 1px solid var(--line);

  background: var(--surface);
}

.qi-framework-layers {
  display: grid;

  grid-template-columns: 1.05fr 1.2fr 0.85fr 0.85fr;

  margin-top: 12px;

  border-top: 1px solid var(--line);

  border-bottom: 1px solid var(--line);
}

.qi-framework-layer {
  min-width: 0px;

  padding: 13px 14px;

  border-right: 1px solid var(--line);
}

.qi-framework-layer:last-child {
  border-right: 0px;
}

.qi-framework-layer > span {
  display: block;

  color: var(--text-muted);

  font-size: 10px;
}

.qi-framework-layer > strong {
  display: block;

  margin-top: 6px;

  font-size: 17px;
}

.qi-framework-layer > small {
  display: block;

  color: var(--text-muted);

  font-size: 10px;

  min-height: 30px;

  margin-top: 5px;

  line-height: 1.5;
}

.qi-framework-layer > div {
  height: 7px;

  display: flex;

  margin-top: 9px;

  overflow: hidden;

  background: rgb(229, 234, 237);
}

.qi-framework-layer > div i {
  height: 100%;

  display: block;
}

.human-field-summary {
  margin: 12px 0px 0px;

  color: var(--text);

  font-size: 15px;

  line-height: 1.75;
}

.human-field-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  margin-top: 14px;

  border-top: 1px solid var(--line);

  border-bottom: 1px solid var(--line);
}

.human-field-grid > div {
  min-width: 0px;

  padding: 13px 14px;

  border-right: 1px solid var(--line);
}

.human-field-grid > div:last-child {
  border-right: 0px;
}

.human-field-grid span {
  display: block;

  color: var(--text-muted);

  font-size: 11px;
}

.human-field-grid strong {
  display: block;

  margin-top: 7px;

  font-size: 12px;

  font-weight: 650;

  line-height: 1.65;
}

.fortune-metric span {
  display: block;

  color: var(--text-muted);

  font-size: 11px;
}

.fortune-metric strong {
  display: block;

  margin-top: 8px;

  font-size: 16px;
}

.fortune-metric small {
  display: block;

  color: var(--text-muted);

  font-size: 11px;

  margin-top: 7px;

  overflow-wrap: anywhere;

  line-height: 1.45;
}

.phase-sector-panel {
  min-width: 0px;

  padding: 18px;
}

.phase-balance-row {
  min-width: 0px;

  display: grid;

  grid-template-columns: 38px minmax(0px, 1fr) 42px;

  align-items: center;

  gap: 10px;
}

.phase-symbol {
  width: 30px;

  height: 30px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  color: var(--text-inverse);

  font-size: 12px;
}

.phase-track {
  height: 8px;

  overflow: hidden;

  background: rgb(229, 234, 237);
}

.phase-track span {
  height: 100%;

  display: block;
}

.phase-balance-row small {
  display: block;

  margin-top: 5px;

  color: var(--text-muted);

  font-size: 10px;

  line-height: 1.4;
}

.phase-balance-row > b {
  text-align: right;
}

.phase-wood {
  background: rgb(39, 139, 98) !important;
}

.phase-fire {
  background: rgb(223, 78, 61) !important;
}

.phase-earth {
  background: rgb(185, 134, 22) !important;
}

.phase-metal {
  background: rgb(104, 118, 129) !important;
}

.phase-water {
  background: rgb(20, 126, 167) !important;
}

.phase-sector-list {
  display: grid;
}

.phase-sector-row {
  min-width: 0px;

  min-height: 52px;

  display: grid;

  grid-template-columns: 36px minmax(0px, 1fr) 42px;

  align-items: center;

  gap: 8px;

  border-bottom: 1px solid var(--line);
}

.phase-sector-row .phase-symbol {
  width: 26px;

  height: 26px;
}

.phase-sector-row strong {
  display: block;
}

.phase-sector-row small {
  display: block;

  margin-top: 3px;

  color: var(--text-muted);

  font-size: 10px;
}

.phase-sector-row > b {
  color: var(--text-muted);

  text-align: right;
}

.sector-phase-override-row {
  min-height: 42px;

  display: grid;

  grid-template-columns: 30px minmax(0px, 1fr) 30px;

  align-items: center;

  gap: 8px;

  border-bottom: 1px solid var(--line);
}

.sector-phase-override-row .phase-symbol {
  width: 24px;

  height: 24px;
}

.sector-phase-override-row strong {
  min-width: 0px;

  overflow-wrap: anywhere;

  font-size: 12px;
}

.sector-phase-override-row .icon-button {
  width: 28px;

  min-height: 28px;

  color: var(--text-muted);

  font-size: 18px;
}

.sector-phase-empty {
  color: var(--text-muted);

  font-size: 11px;

  margin: 12px 0px 2px;
}

.personal-fortune-panel {
  padding: 18px;

  border-bottom: 1px solid var(--line);

  background: var(--surface);
}

.personal-profile-empty {
  min-height: 68px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  margin-top: 12px;

  padding: 12px 0px;

  border-top: 1px solid var(--line);

  color: var(--text-muted);
}

.personal-fortune-result {
  margin-top: 16px;

  border-top: 1px solid var(--line);
}

.heaven-footnote {
  margin: 0px;

  padding: 11px 18px;

  color: var(--text-muted);

  font-size: 11px;

  text-align: right;
}

.heart-stage {
  display: none;
}

.heart-stage.active-heart-stage {
  display: block;

  animation: heart-stage-enter 320ms var(--ease-out) both;
}

@keyframes heart-stage-enter {
  0% {
    opacity: 0;

    transform: translateY(8px);
  }

  100% {
    opacity: 1;

    transform: translateY(0px);
  }
}

.heart-stage-inner {
  min-height: 590px;

  display: grid;

  place-items: center;

  align-content: center;

  gap: 18px;

  padding: 32px 18px;

  text-align: center;
}

.heart-stage-index {
  color: var(--coral);

  font-size: 12px;

  font-weight: 750;
}

.casting-action-panel h3,
.heart-first-thought h3,
.heart-stage-inner h3 {
  margin: 0px;

  font-size: 22px;
}

.heart-guidance {
  display: grid;

  gap: 8px;

  color: var(--text-muted);

  line-height: 1.7;
}

.heart-guidance p {
  margin: 0px;
}

.breathing-stage {
  position: relative;

  overflow: hidden;

  background: rgb(247, 250, 251);
}

.breathing-scene {
  width: 260px;

  height: 260px;

  position: relative;

  display: grid;

  place-items: center;

  isolation: isolate;
}

.breathing-phase {
  position: absolute;

  bottom: 8px;

  color: var(--blue-dark);

  font-size: 12px;

  font-weight: 750;

  letter-spacing: 0px;

  transition: color var(--motion-medium) ease;
}

.breathing-scene[data-phase="exhale"] .breathing-phase {
  color: rgb(104, 118, 129);
}

.breathing-stage > h3 {
  min-height: 32px;

  max-width: 520px;

  font-size: 18px;

  transition: opacity var(--motion-medium) ease;
}

@keyframes breathing-ring {
  0%,
  100% {
    opacity: 0.28;

    transform: scale(0.82);
  }

  50% {
    opacity: 0.82;

    transform: scale(1);
  }
}

.heart-casting-layout,
.heart-reveal-layout {
  min-height: 590px;

  display: grid;

  grid-template-columns: minmax(520px, 1fr) minmax(300px, 0.75fr);
}

.heart-hexagram-shell,
.heart-reveal-board {
  padding: 18px;

  border-right: 1px solid var(--line);
}

.casting-action-panel,
.heart-first-thought {
  display: grid;

  place-content: center;

  justify-items: center;

  gap: 18px;

  padding: 28px;

  background: var(--surface-muted);

  text-align: center;
}

@keyframes coin-toss {
  0% {
    transform: translateY(0px) rotateY(0deg);
  }

  42% {
    transform: translateY(-24px) rotateY(180deg);
  }

  100% {
    transform: translateY(0px) rotateY(360deg);
  }
}

.ritual-lines {
  max-width: 660px;

  margin: 28px auto 0px;
}

.hexagram-line-row.new-line .hex-line {
  animation: line-arrive 420ms var(--ease-out) both;
}

.heart-first-thought p {
  max-width: 430px;

  margin: 0px;

  color: var(--text-muted);

  line-height: 1.75;
}

.heart-line-text {
  min-height: 104px;

  padding: 13px 16px;

  border-right: 1px solid var(--line);

  border-bottom: 1px solid var(--line);
}

.heart-line-text:nth-child(3n) {
  border-right: 0px;
}

.heart-line-text.moving {
  background: var(--coral-soft);
}

.heart-line-text p {
  margin: 7px 0px 0px;

  color: var(--text-muted);

  line-height: 1.6;
}

.heart-interpretation-heading {
  min-height: 70px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  padding: 12px 18px;

  border-bottom: 1px solid var(--line);
}

.heart-interpretation-heading h3 {
  margin: 4px 0px 0px;

  font-size: 20px;
}

.heart-footnote {
  border-top: 1px solid var(--line);
}

.fortune-calendar-heading {
  min-width: 0px;
}

#heavenFortunePanel .fortune-heading-actions {
  align-items: end;

  gap: 8px;
}

.qi-climate-panel {
  padding: 20px 18px 18px;

  border-bottom: 1px solid var(--border);

  background: rgb(247, 250, 249);
}

#heavenFortunePanel .human-field-grid .lucide {
  width: 15px;

  height: 15px;
}

#heavenFortunePanel .workspace-heading {
  gap: 14px;
}

#heavenFortunePanel .workspace-heading > span {
  max-width: 68%;

  overflow-wrap: anywhere;

  line-height: 1.45;

  text-align: right;
}

:where(#heavenView) #heavenFortunePanel .qi-framework-layer:nth-child(2) {
  animation-delay: 35ms;
}

:where(#heavenView) #heavenFortunePanel .qi-framework-layer:nth-child(3) {
  animation-delay: 70ms;
}

#heavenFortunePanel .qi-framework-layer:nth-child(4) {
  animation-delay: 105ms;
}

@keyframes qi-row-enter {
  0% {
    opacity: 0;

    transform: translateY(4px);
  }

  100% {
    opacity: 1;

    transform: translateY(0px);
  }
}

#heavenFortunePanel .qi-framework-layer > div i {
  width: var(--qi-segment);

  transform-origin: left center;

  animation: qi-segment-enter var(--motion-slow) var(--ease-out) both;
}

@keyframes qi-segment-enter {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

#heavenFortunePanel .phase-track {
  height: 7px;

  border-radius: 2px;
}

#heavenFortunePanel .phase-track span {
  width: var(--phase-width);

  transform-origin: left center;

  animation: qi-segment-enter var(--motion-slow) var(--ease-out) both;
}

#heavenFortunePanel .personal-profile-empty {
  min-height: 60px;

  margin-top: 12px;

  padding: 8px 0px;
}

.personal-primary-grid {
  min-width: 0px;

  display: grid;

  grid-template-columns: 130px minmax(0px, 1fr);

  border-right: 1px solid var(--border);
}

.personal-day-master {
  min-width: 0px;

  padding: 13px 14px;

  border-right: 1px solid var(--border);
}

.personal-day-master-label {
  color: var(--text-secondary);

  font-size: 10px;
}

.personal-day-master-identity {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-top: 9px;
}

.personal-day-master-mark {
  width: 34px;

  height: 34px;

  display: grid;

  place-items: center;

  flex: 0 0 34px;

  border: 1px solid currentColor;

  border-radius: var(--radius-sm);

  background: var(--wt-soft-gold);
}

.personal-day-master-mark svg {
  width: 18px;

  height: 18px;

  stroke-width: 1.7;
}

.personal-day-master-copy {
  min-width: 0px;

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 3px;
}

.personal-day-master-copy > strong {
  white-space: nowrap;

  font-size: 20px;
}

.personal-day-master-copy > small {
  color: var(--text-secondary);

  font-size: 10px;

  white-space: nowrap;
}

#heavenFortunePanel .fortune-metric:nth-child(3n) {
  border-right: 0px;
}

#heavenFortunePanel .fortune-metric:nth-child(n+4) {
  border-bottom: 0px;
}

#heavenFortunePanel .fortune-metric strong {
  font-size: 14px;
}

@media (max-width: 1023px) {

  #heavenFortunePanel .qi-framework-panel {
    border-right: 0px;

    border-bottom: 1px solid var(--border);
  }

  #heavenFortunePanel .personal-fortune-result {
    grid-template-columns: 1fr;
  }

  .personal-primary-grid {
    border-right: 0px;

    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 767px) {
  body[data-active-view="heavenView"] .overview-strip {
    display: none;
  }

  #heavenView > .heaven-toolbar {
    min-height: 58px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-direction: row;

    gap: 10px;

    padding: 10px 12px;
  }

  #heavenView > .heaven-toolbar .section-title-group {
    min-width: 0px;

    align-items: baseline;

    flex-direction: row;

    gap: 7px;
  }

  #heavenView > .heaven-toolbar .section-title-group h2 {
    flex: 0 0 auto;
  }

  #heavenView > .heaven-toolbar .section-subtitle {
    min-width: 0px;

    overflow: hidden;

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;
  }

  #heavenModelStatus {
    max-width: 92px;

    text-align: right;
  }

  #heavenFortunePanel .fortune-heading {
    display: block;

    padding: 12px;
  }

  #heavenFortunePanel .fortune-heading h3 {
    font-size: 14px;

    white-space: normal;
  }

  #heavenFortunePanel .fortune-heading-actions {
    width: 100%;

    display: grid;

    grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr) auto;

    align-items: end;

    margin-top: 10px;
  }

  #heavenFortunePanel .qi-time-field input {
    width: 100%;
  }

  .qi-climate-panel {
    padding: 16px 12px 12px;
  }

  #heavenFortunePanel .human-field-grid {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }

  #heavenFortunePanel .human-field-grid > div {
    min-height: 132px;

    padding: 12px;

    border-right: 1px solid rgb(220, 229, 225);

    border-bottom: 1px solid rgb(220, 229, 225);
  }

  #heavenFortunePanel .human-field-grid > div:nth-child(2n) {
    min-height: 132px;

    padding: 12px;

    border-bottom: 1px solid rgb(220, 229, 225);

    border-right: 0px;
  }

  #heavenFortunePanel .human-field-grid > div:nth-last-child(-n+2) {
    border-bottom: 0px;
  }

  #heavenFortunePanel .personal-fortune-panel,
#heavenFortunePanel .qi-framework-panel {
    padding: 14px 12px;
  }

  #heavenFortunePanel .workspace-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 4px;
  }

  #heavenFortunePanel .workspace-heading > span {
    max-width: 100%;

    text-align: left;
  }

  #heavenFortunePanel .qi-framework-layer,
  #heavenFortunePanel .qi-framework-layer:last-child,
  #heavenFortunePanel .qi-framework-layer:nth-child(2) {
    min-height: 92px;

    grid-template-columns: 52px 58px minmax(0px, 1fr);

    gap: 6px;

    padding: 10px 2px;

    border-right: 0px;

    border-bottom: 1px solid var(--border);
  }

  #heavenFortunePanel .qi-framework-layer > div {
    width: 100%;

    grid-column: 2 / 4;

    margin-top: 2px;
  }

  .personal-primary-grid {
    grid-template-columns: 112px minmax(0px, 1fr);
  }

  .personal-day-master {
    padding: 11px;
  }

  #heavenFortunePanel .fortune-metric,
  #heavenFortunePanel .fortune-metric:nth-child(3),
  #heavenFortunePanel .fortune-metric:nth-child(n+4) {
    min-height: 88px;

    border-right: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
  }

  #heavenFortunePanel .fortune-metric:nth-child(2n) {
    border-right: 0px;
  }

  #heavenFortunePanel .fortune-metric:nth-last-child(-n+2) {
    border-bottom: 0px;
  }
}

.heaven-trend-actions {
  display: flex;

  align-items: end;

  gap: 8px;
}

.heaven-trend-actions .button {
  width: auto;

  min-width: 72px;

  height: 40px;

  flex: 0 0 auto;

  white-space: nowrap;
}

.heaven-stock-query {
  min-width: 0px;

  display: grid;

  grid-template-columns: minmax(240px, 360px) minmax(220px, 1fr);

  align-items: end;

  gap: 10px;
}

.heaven-stock-identity {
  min-width: 0px;

  height: 40px;

  display: grid;

  grid-template-columns: auto minmax(0px, 1fr) auto;

  align-items: center;

  gap: 9px;

  padding: 0px 11px;

  border: 1px solid var(--border);

  border-radius: 6px;

  background: var(--surface-muted);
}

.heaven-stock-identity > span {
  color: var(--text-secondary);

  font-size: 11px;
}

.heaven-stock-identity > strong {
  min-width: 0px;

  overflow: hidden;

  font-size: 14px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.heaven-stock-identity > small {
  color: var(--text-secondary);

  font-size: 11px;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.heaven-stock-identity > small::before {
  content: "所属板块 · ";
}

:where(#heavenView) .heart-motto {
  margin: 2px 0px 0px;

  padding: 13px 22px;

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);

  color: rgb(53, 94, 80);

  font-size: 15px;

  font-style: normal;

  font-weight: 680;

  line-height: 1.65;
}

.heart-return-button {
  min-height: 34px;

  display: inline-flex;

  align-items: center;

  gap: 7px;

  margin: 10px 18px 0px;

  padding: 0px 8px;

  border-color: transparent;

  background: transparent;

  color: var(--text-secondary);
}

.heart-return-button:hover {
  background: var(--surface-muted);

  color: var(--text-primary);
}

.heart-return-button .lucide {
  width: 16px;

  height: 16px;
}

.heart-return-button + .heart-stage-inner {
  min-height: 536px;
}

.heart-return-button + .heart-casting-layout,
.heart-return-button + .heart-reveal-layout {
  min-height: 536px;
}

@media (max-width: 860px) {
  #heavenTrendPanel .heaven-controls {
    grid-template-columns: minmax(0px, 1fr);
  }

  .heaven-stock-query {
    grid-template-columns: minmax(220px, 0.9fr) minmax(200px, 1.1fr);
  }
}

@media (max-width: 520px) {
  #heavenTrendPanel .heaven-controls,
  .heaven-stock-query {
    grid-template-columns: 1fr;
  }

  .heaven-trend-actions {
    display: grid;

    grid-template-columns: repeat(3, minmax(0px, 1fr));
  }

  .heaven-trend-actions .button {
    width: 100%;

    min-width: 0px;

    padding-right: 8px;

    padding-left: 8px;
  }

  .heaven-stock-identity > small {
    grid-area: 2 / 2;

    margin-top: -8px;
  }

  .heaven-stock-identity {
    grid-template-columns: auto minmax(0px, 1fr);

    height: 52px;

    align-content: center;
  }

  .heart-motto {
    padding-right: 12px;

    padding-left: 12px;

    font-size: 14px;
  }

  .heart-return-button {
    margin: 8px 12px 0px;
  }
}

#heavenView .heart-motto {
  font-family: var(--heaven-serif);
}

#heavenView .heaven-panel h3 {
  font-family: var(--heaven-serif);
}

#heavenView .heaven-toolbar h2 {
  font-family: var(--heaven-serif);

  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 19px;
}

.heaven-title-seal {
  width: 30px;

  height: 30px;

  display: grid;

  place-items: center;

  border: 1px solid rgba(173, 56, 47, 0.7);

  border-radius: 2px;

  color: var(--heaven-cinnabar);

  font-size: 15px;

  transform: rotate(-3deg);
}

#heavenView .section-subtitle {
  color: var(--heaven-ink-faint);
}

:where(#heavenView) .heaven-proverb {
  margin: 0px;

  border-bottom: 1px solid var(--heaven-rule);

  color: var(--heaven-ink-faint);

  font-family: var(--heaven-serif);

  font-size: 11px;

  text-align: right;
}

#heavenView .button {
  border-radius: 2px;
}

#heavenView .button.primary {
  border-color: var(--heaven-cinnabar);

  background: var(--heaven-cinnabar);
}

#heavenView .button.primary:hover:not(:disabled) {
  border-color: rgb(143, 45, 39);

  background: rgb(143, 45, 39);
}

#heavenView .button:focus-visible,
#heavenView .segment:focus-visible,
#heavenView summary:focus-visible {
  outline: 2px solid var(--heaven-cinnabar);

  outline-offset: 3px;
}

#heavenTrendPanel .heaven-controls input {
  border-color: var(--heaven-rule-strong);

  border-radius: 2px;

  background: rgba(255, 255, 255, 0.68);

  font-family: var(--heaven-serif);
}

#heavenTrendPanel .heaven-controls input:focus {
  border-color: var(--heaven-cinnabar);

  box-shadow: 0 0 0 2px var(--heaven-cinnabar-soft);
}

#heavenTrendPanel .heaven-stock-identity > small,
#heavenTrendPanel .heaven-stock-identity > span {
  color: var(--heaven-ink-faint);
}

:where(#heavenView) #heavenTrendPanel .hexagram-board {
  padding: 24px 28px 22px;
}

#heavenTrendPanel .hexagram-heading {
  min-height: 66px;

  border-color: var(--heaven-rule);
}

#heavenTrendPanel .hexagram-heading h3 {
  margin-top: 7px;

  font-size: 27px;

  font-weight: 650;
}

#heavenTrendPanel .hexagram-change strong {
  color: var(--heaven-cinnabar);

  font-family: var(--heaven-serif);

  font-weight: 600;
}

#marketHexagramLines {
  gap: 0px;

  margin-top: 10px;
}

.talent-line-group {
  display: grid;

  grid-template-columns: 34px minmax(0px, 1fr);

  gap: 14px;

  padding: 15px 0px;

  border-bottom: 1px dashed var(--heaven-rule);

  animation-delay: var(--group-delay);
}

.talent-line-group:last-child {
  border-bottom: 0px;
}

.talent-seal {
  width: 30px;

  height: 30px;

  display: grid;

  place-items: center;

  margin-top: 9px;

  border: 1px solid var(--heaven-rule-strong);

  border-radius: 2px;

  color: var(--heaven-ink-soft);

  font-family: var(--heaven-serif);
}

.talent-line-content > p {
  margin: 0px 0px 5px 8px;

  color: var(--heaven-ink-faint);

  font-family: var(--heaven-serif);

  font-size: 11px;
}

#marketHexagramLines .hexagram-line-row {
  min-height: 48px;

  grid-template-columns: 42px 150px minmax(0px, 1fr);

  padding: 5px 8px;

  border-radius: 1px;
}

#marketHexagramLines .hexagram-line-row.moving {
  border-left-color: var(--heaven-cinnabar);

  background: linear-gradient(90deg, var(--heaven-cinnabar-soft), transparent 78%);
}

#marketHexagramLines .hex-line i {
  height: 7px;

  border-radius: 1px;

  background: rgb(61, 58, 50);

  transform-origin: center center;

  animation: heaven-line-draw 520ms var(--ease-out) both;
}

#marketHexagramLines .hex-line b {
  display: none;
}

#marketHexagramLines .hexagram-line-detail strong {
  font-family: var(--heaven-serif);

  font-weight: 600;
}

#marketHexagramLines .hexagram-line-detail small {
  color: var(--heaven-ink-soft);
}

#heavenTrendPanel .hexagram-text {
  margin-top: 10px;

  padding: 15px 4px 0px;

  border-color: var(--heaven-rule);

  color: var(--heaven-ink-soft);

  font-family: var(--heaven-serif);

  font-size: 14px;

  line-height: 1.9;
}

#heavenTrendPanel .market-movement-summary {
  padding: 10px 13px;

  border-left-color: var(--heaven-cinnabar);

  background: var(--heaven-cinnabar-soft);

  color: var(--heaven-ink-soft);
}

:where(#heavenView) #heavenTrendPanel .trend-reading-panel {
  padding: 22px 24px;
}

#heavenTrendPanel .trend-score-line {
  min-height: 90px;

  padding-bottom: 10px;

  border: 0px;
}

#heavenTrendPanel .trend-score-line strong {
  margin-top: 6px;

  font-family: var(--heaven-serif);

  font-size: 48px;

  font-variant-numeric: tabular-nums;
}

#heavenTrendPanel .trend-score-line > span {
  padding: 5px 10px;

  border: 2px solid var(--heaven-cinnabar);

  border-radius: 2px;

  color: var(--heaven-cinnabar);

  font-family: var(--heaven-serif);

  font-size: 14px;

  transform: rotate(-3deg);
}

.trend-score-meter {
  padding: 4px 0px 16px;

  border-bottom: 1px solid var(--heaven-rule);
}

.trend-score-track {
  height: 4px;

  position: relative;

  border-radius: 2px;

  background: linear-gradient(90deg, rgba(63, 99, 80, 0.45), rgba(41, 40, 34, 0.1) 50%, rgba(173, 56, 47, 0.42));
}

.trend-score-track::after {
  content: "";

  position: absolute;

  top: -5px;

  bottom: -5px;

  left: 50%;

  width: 1px;

  background: var(--heaven-rule-strong);
}

#heavenMomentumNeedle {
  width: 13px;

  height: 13px;

  position: absolute;

  top: 50%;

  left: var(--momentum-position, 50%);

  z-index: 1;

  border: 2px solid var(--heaven-paper-muted);

  border-radius: 50%;

  background: var(--heaven-ink);

  box-shadow: rgba(41, 40, 34, 0.25) 0px 2px 7px;

  transform: translate(-50%, -50%);

  transition: left 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.trend-score-marks {
  display: flex;

  justify-content: space-between;

  margin-top: 9px;

  color: var(--heaven-ink-faint);

  font-size: 10px;
}

#heavenTrendPanel .three-talent-readings {
  margin-top: 8px;
}

#heavenTrendPanel .talent-reading {
  min-height: 88px;

  padding: 13px 2px;

  border-color: var(--heaven-rule);
}

#heavenTrendPanel .talent-reading > strong {
  font-family: var(--heaven-serif);

  font-size: 14px;
}

#heavenTrendPanel .talent-reading > span {
  color: var(--heaven-ink-soft);

  font-size: 12px;
}

.talent-balance {
  display: grid;

  grid-template-columns: 55px minmax(0px, 1fr) 55px minmax(0px, 1fr);

  align-items: center;

  gap: 7px;

  margin-top: 9px;
}

.talent-balance small {
  color: var(--heaven-ink-faint);

  font-variant-numeric: tabular-nums;

  margin: 0px !important;
}

.talent-balance i {
  height: 3px;

  overflow: hidden;

  background: var(--heaven-rule);
}

.talent-balance b {
  width: var(--talent-value);

  height: 100%;

  display: block;

  background: var(--heaven-ink-soft);

  transform-origin: left center;

  animation: qi-segment-enter 500ms var(--ease-out) both;
}

#heavenTrendPanel .heaven-index-strip {
  gap: 7px;

  margin-top: 12px;
}

#heavenTrendPanel .heaven-index-strip div {
  padding: 10px;

  border-color: var(--heaven-rule);

  border-radius: 2px;

  background: rgba(255, 255, 255, 0.58);
}

#heavenFortunePanel {
  background: rgba(253, 252, 248, 0.9);
}

#heavenFortunePanel .fortune-heading h3 {
  margin-top: 4px;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  font-family: var(--heaven-serif);

  font-size: 18px;
}

:where(#heavenView) #heavenFortunePanel .qi-time-field input {
  width: 126px;

  height: 34px;

  border-radius: 2px;
}

#heavenFortunePanel .human-field-grid {
  grid-template-columns: repeat(4, minmax(0px, 1fr));

  margin-top: 20px;

  border-color: var(--heaven-rule);

  background: rgba(255, 255, 255, 0.38);
}

#heavenFortunePanel .human-field-grid > div {
  padding: 13px 14px;

  min-height: 112px;

  border-color: var(--heaven-rule);
}

#heavenFortunePanel .human-field-grid span {
  display: flex;

  align-items: center;

  gap: 7px;

  font-size: 11px;

  color: var(--heaven-ink-faint);
}

#heavenFortunePanel .human-field-grid strong {
  margin-top: 8px;

  font-size: 12px;

  line-height: 1.65;

  color: var(--heaven-ink);

  font-family: var(--heaven-serif);

  font-weight: 500;
}

#heavenFortunePanel .qi-framework-panel {
  min-width: 0px;

  border-bottom-width: 0px;

  border-bottom-style: none;

  padding: 22px;

  background: transparent;

  border-color: var(--heaven-rule);
}

#heavenFortunePanel .workspace-heading h3 {
  font-family: var(--heaven-serif);

  font-weight: 600;
}

#heavenFortunePanel .phase-sector-list {
  margin-top: 12px;

  border-color: var(--heaven-rule);
}

:where(#heavenView) #heavenFortunePanel .qi-framework-layers {
  border-bottom-width: 0px;

  border-bottom-style: none;

  border-color: var(--heaven-rule);
}

#heavenFortunePanel .fortune-metric {
  min-height: 92px;

  padding: 11px;

  border-color: var(--heaven-rule);
}

#heavenFortunePanel .phase-sector-row {
  border-color: var(--heaven-rule);
}

:where(#heavenView) #heavenFortunePanel .qi-framework-layer {
  display: grid;

  align-items: center;

  animation: qi-row-enter var(--motion-deliberate) var(--ease-out) both;

  border-color: var(--heaven-rule);
}

#heavenFortunePanel .personal-day-master-copy > strong {
  font-family: var(--heaven-serif);
}

#heavenView #heavenHeartPanel > .heart-toolbar-controls {
  width: auto;

  margin: 0px;
}

#heavenHeartPanel .heart-stage-index {
  color: rgb(196, 96, 86);

  font-family: var(--heaven-serif);

  font-size: 11px;
}

#heavenHeartPanel .casting-action-panel h3,
#heavenHeartPanel .heart-first-thought h3,
#heavenHeartPanel .heart-interpretation-heading h3,
#heavenHeartPanel .heart-stage-inner h3 {
  color: var(--ritual-text);

  font-family: var(--heaven-serif);

  font-weight: 500;
}

#heavenHeartPanel .heart-first-thought p,
#heavenHeartPanel .heart-guidance,
#heavenHeartPanel .heart-line-text p,
#heavenHeartPanel .heaven-footnote {
  color: var(--ritual-muted);

  font-family: var(--heaven-serif);
}

#heavenHeartPanel .breathing-stage {
  background: transparent;
}

#heavenHeartPanel .breathing-stage > h3 {
  color: var(--ritual-muted);

  font-family: var(--heaven-serif);
}

:where(#heavenView) #heavenHeartPanel .heart-return-button {
  border-color: transparent;
}

#heavenHeartPanel .heart-casting-layout,
#heavenHeartPanel .heart-reveal-layout {
  min-height: 620px;

  grid-template-columns: minmax(520px, 1.15fr) minmax(320px, 0.85fr);
}

#heavenHeartPanel .hexagram-heading,
#heavenHeartPanel .workspace-heading {
  border-color: var(--ritual-rule);
}

#heavenHeartPanel .hexagram-change span,
#heavenHeartPanel .hexagram-line-detail small,
#heavenHeartPanel .hexagram-position,
#heavenHeartPanel .workspace-heading > span {
  color: var(--ritual-muted);
}

#heavenHeartPanel .hexagram-heading h3,
#heavenHeartPanel .hexagram-line-detail strong {
  color: var(--ritual-text);

  font-family: var(--heaven-serif);
}

#heavenHeartPanel .hexagram-change strong {
  color: rgb(196, 96, 86);
}

#heavenHeartPanel .hex-line i {
  background: rgb(211, 203, 187);
}

#heavenHeartPanel .heart-line-text.moving,
#heavenHeartPanel .hexagram-line-row.moving {
  border-left-color: rgb(196, 96, 86);

  background: rgba(196, 96, 86, 0.08);
}

@keyframes heaven-group-enter {
  0% {
    opacity: 0;

    transform: translateY(6px);
  }

  100% {
    opacity: 1;

    transform: translateY(0px);
  }
}

@keyframes heaven-line-draw {
  0% {
    opacity: 0;

    transform: scaleX(0.25);

    filter: blur(2px);
  }

  100% {
    opacity: 1;

    transform: scaleX(1);

    filter: blur(0px);
  }
}

@keyframes ritual-stage-enter {
  0% {
    opacity: 0;

    transform: translateY(10px);
  }

  100% {
    opacity: 1;

    transform: translateY(0px);
  }
}

@media (max-width: 980px) {
  #heavenHeartPanel .heart-casting-layout,
  #heavenHeartPanel .heart-reveal-layout,
  #heavenTrendPanel .heaven-trend-layout {
    grid-template-columns: minmax(0px, 1fr);
  }

  #heavenTrendPanel .hexagram-board {
    border-right: 0px;

    border-bottom: 1px solid var(--heaven-rule);
  }

  #heavenHeartPanel .heart-hexagram-shell,
  #heavenHeartPanel .heart-reveal-board {
    border-right: 0px;

    border-bottom-color: var(--ritual-rule);
  }

  #heavenFortunePanel .human-field-grid {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }
}

@media (max-width: 700px) {
  #heavenView .heaven-toolbar {
    min-height: 60px;

    padding: 0px 14px;
  }

  .heaven-proverb {
    padding: 8px 14px;

    text-align: left;
  }

  #heavenFortunePanel .fortune-heading,
  #heavenTrendPanel .heaven-controls {
    padding-right: 14px;

    padding-left: 14px;
  }

  #heavenTrendPanel .hexagram-board,
  #heavenTrendPanel .trend-reading-panel {
    padding: 18px 14px;
  }

  #heavenTrendPanel .hexagram-heading h3 {
    font-size: 21px;
  }

  .talent-line-group {
    grid-template-columns: minmax(0px, 1fr);

    gap: 4px;
  }

  .talent-seal {
    margin: 0px 0px 4px 8px;
  }

  #marketHexagramLines .hexagram-line-row {
    grid-template-columns: 38px 104px minmax(0px, 1fr);

    gap: 8px;
  }

  #marketHexagramLines .hex-line {
    width: 104px;
  }

  #marketHexagramLines .hexagram-line-detail small {
    white-space: normal;
  }

  .talent-balance {
    grid-template-columns: 54px minmax(0px, 1fr);
  }

  #heavenFortunePanel .human-field-grid {
    grid-template-columns: minmax(0px, 1fr);
  }

  #heavenHeartPanel .heart-stage,
  #heavenHeartPanel .heart-stage-inner {
    min-height: 560px;
  }

  #heavenHeartPanel .heart-line-text {
    border-right: 0px;
  }
}

#heavenView .heaven-panel >  {
  width: min(100% - 40px, 1280px);

  margin-right: auto;

  margin-left: auto;
}

.heaven-toolbar-actions {
  display: flex;

  align-items: center;

  gap: 20px;
}

#heavenView #heavenNotice {
  width: min(100% - 40px, 1280px);

  margin: 12px auto 0px;
}

:where(#heavenView) #heavenTrendPanel .heaven-controls {
  min-height: 74px;

  padding: 14px 0px;
}

:where(#heavenView) #heavenTrendPanel .heaven-trend-layout {
  min-height: 560px;

  grid-template-columns: minmax(560px, 1.35fr) minmax(360px, 0.85fr);

  border-right: 1px solid var(--heaven-rule);

  border-left: 1px solid var(--heaven-rule);
}

#heavenTrendPanel .heaven-interpretation {
  border-right: 1px solid var(--heaven-rule);

  border-left: 1px solid var(--heaven-rule);
}

#heavenFortunePanel .fortune-heading {
  display: grid;

  grid-template-columns: minmax(0px, 1fr) auto;

  align-items: center;

  gap: 18px;

  min-height: 82px;

  padding: 14px 0px;

  border-color: var(--heaven-rule);
}

#heavenFortunePanel .qi-climate-panel {
  background: transparent;

  min-height: 530px;

  position: relative;

  display: grid;

  place-items: center;

  padding: 28px;

  overflow: hidden;

  border: 0px;
}

#heavenFortunePanel .qi-climate-panel::before {
  content: "壹 · 天";

  margin-bottom: 18px;

  color: var(--heaven-cinnabar);

  font-family: var(--heaven-serif);

  font-size: 11px;

  display: none;
}

#qiFieldCanvas {
  width: 100%;

  height: 100%;

  position: absolute;

  inset: 0px;
}

.qi-section-mark {
  display: block;

  margin-bottom: 14px;

  color: var(--heaven-cinnabar);

  font-family: var(--heaven-serif);

  font-size: 11px;
}

#heavenFortunePanel .human-field-summary {
  font-family: var(--heaven-serif);

  line-height: 1.85;

  max-width: 520px;

  margin: 15px auto 0px;

  color: var(--heaven-ink-faint);

  font-size: 12px;

  text-align: center;
}

#heavenFortunePanel .phase-balance-row {
  animation: qi-row-enter var(--motion-deliberate) var(--ease-out) both;

  border-color: var(--heaven-rule);

  min-height: 82px;

  grid-template-columns: 38px minmax(0px, 1fr) 46px;

  padding: 12px 3px;
}

#heavenFortunePanel .phase-balance-row .phase-symbol {
  width: 30px;

  height: 30px;

  border-radius: 50%;
}

#heavenFortunePanel .phase-balance-row small {
  margin-top: 7px;

  color: var(--heaven-ink-soft);

  font-family: var(--heaven-serif);

  font-size: 11px;

  line-height: 1.5;
}

#heavenFortunePanel > .qi-framework-panel {
  padding: 16px 0px 4px;

  border-right: 0px;

  border-bottom: 1px solid var(--heaven-rule);
}

#heavenFortunePanel > .qi-framework-panel .workspace-heading {
  min-height: 42px;

  border-bottom: 1px solid var(--heaven-rule);
}

#heavenFortunePanel > .qi-framework-panel .qi-framework-layers {
  display: grid;

  grid-template-columns: repeat(3, minmax(0px, 1fr));

  margin-top: 0px;

  border: 0px;
}

#heavenFortunePanel > .qi-framework-panel .qi-framework-layer {
  min-height: 124px;

  display: grid;

  grid-template-columns: 70px minmax(0px, 1fr);

  grid-template-rows: auto auto 1fr;

  align-content: center;

  gap: 5px 12px;

  padding: 20px 22px;

  border-right: 1px solid var(--heaven-rule);

  border-bottom: 0px;
}

#heavenFortunePanel > .qi-framework-panel .qi-framework-layer:last-child {
  border-right: 0px;
}

#heavenFortunePanel > .qi-framework-panel .qi-framework-layer > span {
  grid-row: 1;

  color: var(--heaven-ink-soft);

  font-family: var(--heaven-serif);

  letter-spacing: 0.12em;
}

#heavenFortunePanel > .qi-framework-panel .qi-framework-layer > strong {
  grid-area: 1 / 2;

  font-family: var(--heaven-serif);

  font-size: 17px;
}

#heavenFortunePanel > .qi-framework-panel .qi-framework-layer > small {
  grid-area: 2 / 1 / auto / -1;

  color: var(--heaven-ink-faint);
}

#heavenFortunePanel > .qi-framework-panel .qi-framework-layer > div {
  width: 100%;

  grid-area: 3 / 1 / auto / -1;

  align-self: end;
}

:where(#heavenView) #heavenFortunePanel .personal-fortune-panel {
  border-top: 0px;
}

:where(#heavenView) #heavenFortunePanel .personal-fortune-panel::before {
  color: var(--heaven-cinnabar);

  font-family: var(--heaven-serif);

  font-size: 11px;

  margin-bottom: 10px;

  letter-spacing: 0.35em;
}

#heavenFortunePanel .personal-fortune-panel > .workspace-heading {
  min-height: 48px;

  padding-bottom: 14px;

  border-bottom: 1px solid var(--heaven-rule);
}

:where(#heavenView) #heavenFortunePanel .personal-fortune-result {
  grid-template-columns: minmax(430px, 0.9fr) minmax(480px, 1.1fr);

  border-top: 0px;
}

:where(#heavenView) #heavenFortunePanel .personal-primary-grid {
  border-color: var(--heaven-rule);
}

:where(#heavenView) #heavenFortunePanel .personal-day-master {
  border-color: var(--heaven-rule);

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  justify-content: center;
}

.phase-text-wood {
  color: rgb(63, 115, 80) !important;
}

.phase-text-fire {
  color: rgb(181, 58, 48) !important;
}

.phase-text-earth {
  color: rgb(164, 119, 37) !important;
}

.phase-text-metal {
  color: rgb(139, 106, 39) !important;
}

.phase-text-water {
  color: rgb(49, 80, 95) !important;
}

.personal-preferences {
  display: grid;

  grid-template-columns: repeat(2, minmax(0px, 1fr));
}

#heavenFortunePanel .personal-preferences > section + section {
  border-left: 1px solid var(--heaven-rule);
}

#heavenHeartPanel .heart-stage-inner {
  gap: 22px;

  padding: 54px 24px;

  min-height: calc(-128px + 100vh);
}

#heavenHeartPanel .breathing-scene {
  width: 280px;

  height: 330px;
}

.heart-cast-button {
  --hold-progress: 0turn;

  width: 128px;

  height: 128px;

  position: relative;

  display: grid;

  place-items: center;

  border: 0px;

  border-radius: 50%;

  background: transparent;

  color: var(--ritual-text);

  cursor: pointer;

  font-family: var(--heaven-serif);

  line-height: 1.7;

  touch-action: none;
}

.heart-cast-button::before {
  content: "";

  position: absolute;

  border-radius: 50%;

  inset: 0px;

  border: 1px solid rgba(201, 168, 106, 0.42);
}

.heart-cast-button::after {
  content: "";

  position: absolute;

  border-radius: 50%;

  inset: -1px;

  background: conic-gradient(rgba(201, 168, 106, 0.9) var(--hold-progress), transparent 0);

  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), rgb(0, 0, 0) calc(100% - 2px));
}

.heart-cast-button.is-holding::after {
  transition: background 680ms linear;
}

.heart-cast-button:disabled {
  cursor: not-allowed;

  opacity: 0.38;
}

#heavenView.heaven-data-loading .heaven-panel,
#heavenView.heaven-data-loading .heaven-proverb,
#heavenView.heaven-data-loading .heaven-page-head {
  opacity: 0.42;

  pointer-events: none;
}

#heavenView.heaven-data-loading::after {
  content: "汇集天 · 人 · 地数据";

  position: absolute;

  top: 118px;

  left: 50%;

  z-index: 8;

  padding: 10px 16px;

  border: 1px solid var(--heaven-rule);

  border-radius: 2px;

  background: rgba(253, 252, 248, 0.96);

  color: var(--heaven-ink-soft);

  box-shadow: rgba(41, 40, 34, 0.1) 0px 12px 34px;

  font-family: var(--heaven-serif);

  font-size: 12px;

  letter-spacing: 0.16em;

  transform: translateX(-50%);
}

#heavenTrendPanel.heaven-performance-pending .talent-line-group {
  opacity: 0.34;

  transform: translateY(7px);

  animation: auto ease 0s 1 normal none running none;

  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}

#heavenTrendPanel.heaven-performance-pending .talent-line-group.is-ready {
  opacity: 1;

  transform: translateY(0px);
}

#heavenTrendPanel.heaven-performance-pending .talent-seal {
  filter: grayscale(1);

  opacity: 0.4;

  transition: color 420ms, border-color 420ms, filter 420ms, opacity 420ms, box-shadow 420ms;
}

#heavenTrendPanel.heaven-performance-pending .talent-line-group.is-ready .talent-seal {
  border-color: rgba(181, 58, 48, 0.7);

  color: var(--heaven-cinnabar);

  filter: none;

  opacity: 1;

  box-shadow: rgba(181, 58, 48, 0.12) 0px 0px 18px;
}

#heavenTrendPanel.heaven-performance-pending .hexagram-line-row .hex-line i {
  opacity: 0.12;

  filter: blur(3px);

  transform: scaleX(0.16);

  animation: auto ease 0s 1 normal none running none;

  transition: opacity 620ms var(--ease-out), filter 620ms var(--ease-out), transform 620ms var(--ease-out);
}

#heavenTrendPanel.heaven-performance-pending .hexagram-line-row .hex-line b,
#heavenTrendPanel.heaven-performance-pending .hexagram-line-row .hexagram-line-detail,
#heavenTrendPanel.heaven-performance-pending .hexagram-line-row .hexagram-position {
  opacity: 0;

  filter: blur(4px);

  transition: opacity 520ms, filter 520ms;
}

#heavenTrendPanel.heaven-performance-pending .hexagram-line-row.is-ready .hex-line i {
  opacity: 1;

  filter: blur(0px);

  transform: scaleX(1);
}

#heavenTrendPanel.heaven-performance-pending .hexagram-line-row.is-ready .hex-line b,
#heavenTrendPanel.heaven-performance-pending .hexagram-line-row.is-ready .hexagram-line-detail,
#heavenTrendPanel.heaven-performance-pending .hexagram-line-row.is-ready .hexagram-position {
  opacity: 1;

  filter: blur(0px);
}

#heavenTrendPanel.heaven-performance-pending #marketHexagramName,
#heavenTrendPanel.heaven-performance-pending #marketTransformedName,
#heavenTrendPanel.heaven-performance-pending .hexagram-change,
#heavenTrendPanel.heaven-performance-pending .market-movement-summary,
#heavenTrendPanel.heaven-performance-pending .trend-score-line > *,
#heavenTrendPanel.heaven-performance-pending .trend-score-meter {
  opacity: 0;

  filter: blur(8px);

  transform: translateY(6px);

  transition: opacity 800ms var(--ease-out), filter 800ms var(--ease-out), transform 800ms var(--ease-out);
}

#heavenTrendPanel.performance-change-ready #marketTransformedName,
#heavenTrendPanel.performance-change-ready .hexagram-change,
#heavenTrendPanel.performance-score-ready .trend-score-line > *,
#heavenTrendPanel.performance-score-ready .trend-score-meter,
#heavenTrendPanel.performance-text-ready .market-movement-summary,
#heavenTrendPanel.performance-title-ready #marketHexagramName {
  opacity: 1;

  filter: blur(0px);

  transform: translateY(0px);
}

#heavenTrendPanel.heaven-performance-pending #heavenMomentumNeedle {
  left: 50%;

  opacity: 0;
}

#heavenTrendPanel.performance-score-ready #heavenMomentumNeedle {
  left: var(--momentum-position, 50%);

  opacity: 1;

  transition: left 1.5s cubic-bezier(0.18, 0.85, 0.3, 1.22), opacity 300ms;
}

#heavenTrendPanel.heaven-performance-pending .heaven-index-strip > *,
#heavenTrendPanel.heaven-performance-pending .talent-reading {
  opacity: 0;

  transform: translateY(9px);

  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

#heavenTrendPanel.heaven-performance-pending .heaven-index-strip > .is-ready,
#heavenTrendPanel.heaven-performance-pending .talent-reading.is-ready {
  opacity: 1;

  transform: translateY(0px);
}

#heavenTrendPanel.heaven-performance-pending .talent-reading:not(.is-ready) .talent-balance b {
  width: 0px;

  animation: auto ease 0s 1 normal none running none;
}

#heavenFortunePanel .heaven-typing::after,
#heavenTrendPanel .heaven-typing::after {
  content: "";

  width: 1px;

  height: 1em;

  display: inline-block;

  margin-left: 3px;

  background: currentcolor;

  vertical-align: -0.12em;

  animation: 820ms steps(1) 0s infinite normal none running heaven-caret;
}

#heavenFortunePanel.heaven-performance-pending #qiClimateKeyword,
#heavenFortunePanel.heaven-performance-pending .human-field-summary {
  opacity: 0;

  filter: blur(12px);

  transform: translateY(8px);

  transition: opacity 1.1s var(--ease-out), filter 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}

#heavenFortunePanel.performance-climate-ready #qiClimateKeyword,
#heavenFortunePanel.performance-climate-ready .human-field-summary {
  opacity: 1;

  filter: blur(0px);

  transform: translateY(0px);
}

#heavenFortunePanel.heaven-performance-pending .human-field-grid > div,
#heavenFortunePanel.heaven-performance-pending .personal-fortune-panel,
#heavenFortunePanel.heaven-performance-pending .phase-balance-row,
#heavenFortunePanel.heaven-performance-pending .qi-framework-layer {
  opacity: 0.18;

  transform: translateY(12px);

  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}

#heavenFortunePanel.heaven-performance-pending .human-field-grid > div.is-ready,
#heavenFortunePanel.heaven-performance-pending .personal-fortune-panel.is-ready,
#heavenFortunePanel.heaven-performance-pending .phase-balance-row.is-ready,
#heavenFortunePanel.heaven-performance-pending .qi-framework-layer.is-ready {
  opacity: 1;

  transform: translateY(0px);
}

#heavenFortunePanel.heaven-performance-pending .phase-balance-row .phase-track span,
#heavenFortunePanel.heaven-performance-pending .qi-framework-layer:not(.is-ready) > div i {
  transform: scaleX(0);

  animation: auto ease 0s 1 normal none running none;
}

#heavenFortunePanel.heaven-performance-pending .phase-balance-row.is-ready .phase-track span,
#heavenFortunePanel.heaven-performance-pending .qi-framework-layer.is-ready > div i {
  transform: scaleX(1);

  transition: transform 760ms var(--ease-out);
}

.qi-use-source {
  min-height: 54px;

  display: grid;

  grid-template-columns: 34px minmax(0px, 1fr);

  align-items: center;

  gap: 12px;

  padding: 8px 12px;

  border-bottom: 1px solid var(--heaven-rule);

  background: rgba(253, 252, 248, 0.76);
}

.qi-use-source.no-catalog {
  opacity: 0.4;
}

.qi-use-source > strong {
  font-family: var(--heaven-serif);

  font-size: 22px;
}

.qi-use-source span {
  display: block;
}

.qi-use-source b {
  display: block;

  color: var(--heaven-ink-soft);

  font-family: var(--heaven-serif);

  font-size: 12px;
}

.qi-use-source small {
  display: block;

  margin-top: 4px;

  color: var(--heaven-ink-faint);

  font-size: 10px;
}

.phase-stroke-wood {
  stroke: rgb(74, 124, 89);
}

.phase-stroke-fire {
  stroke: rgb(181, 58, 48);
}

.phase-stroke-earth {
  stroke: rgb(176, 138, 62);
}

.phase-stroke-metal {
  stroke: rgb(156, 124, 60);
}

.phase-stroke-water {
  stroke: rgb(49, 80, 95);
}

.qi-sector-group {
  min-width: 0px;

  border: 1px solid var(--heaven-rule);

  background: rgba(253, 252, 248, 0.86);
}

.qi-sector-group > summary {
  min-height: 54px;

  display: grid;

  grid-template-columns: minmax(0px, 1fr) auto 18px;

  align-items: center;

  gap: 12px;

  padding: 9px 13px;

  color: var(--heaven-ink-soft);

  font-family: var(--heaven-serif);

  cursor: pointer;

  list-style: none;

  transition: background 260ms var(--ease-out), color 260ms var(--ease-out);
}

.qi-sector-group > summary::-webkit-details-marker {
  display: none;
}

.qi-sector-group > summary:hover {
  background: rgba(255, 255, 255, 0.72);

  color: var(--heaven-ink);
}

.qi-sector-group > summary:focus-visible {
  outline: 2px solid var(--heaven-cinnabar);

  outline-offset: 2px;
}

.qi-sector-group-title {
  min-width: 0px;

  display: flex;

  align-items: center;

  gap: 10px;
}

.qi-sector-group-title > i {
  width: 20px;

  height: 2px;

  flex: 0 0 auto;

  display: block;
}

.qi-sector-group-title strong {
  color: inherit;

  font-size: 14px;

  font-weight: 600;

  letter-spacing: 0.08em;
}

.qi-sector-group-count {
  color: var(--heaven-ink-faint);

  font-size: 10px;
}

.qi-sector-chevron {
  width: 16px;

  height: 16px;

  transition: transform 420ms var(--ease-out);
}

.qi-sector-group[open] .qi-sector-chevron {
  transform: rotate(180deg);
}

.qi-sector-fold {
  overflow: hidden;

  padding: 0px 12px 13px;

  animation: qi-sector-unfold 480ms var(--ease-out) both;
}

@keyframes qi-sector-unfold {
  0% {
    opacity: 0;

    transform: translateY(-6px);
  }

  100% {
    opacity: 1;

    transform: translateY(0px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qi-sector-fold {
    animation: auto ease 0s 1 normal none running none;
  }

  .qi-sector-chevron {
    transition: none;
  }
}

.qi-sector-tags {
  display: grid;

  grid-template-columns: repeat(3, minmax(0px, 1fr));

  gap: 7px;

  margin: 0px;

  padding: 0px;

  list-style: none;
}

.qi-sector-tags li {
  min-width: 0px;

  min-height: 34px;

  display: flex;

  align-items: center;

  gap: 6px;

  padding: 7px 9px;

  border-left-width: 2px;

  background: rgba(255, 255, 255, 0.6);

  color: var(--heaven-ink);

  font-family: var(--heaven-serif);

  font-size: 11px;

  overflow-wrap: anywhere;
}

.qi-sector-tags li small {
  flex: 0 0 auto;

  padding: 1px 4px;

  border: 1px solid var(--heaven-rule-strong);

  color: var(--heaven-cinnabar);

  font-family: var(--font-sans);

  font-size: 8px;
}

.phase-border-wood {
  border-left-color: rgb(74, 124, 89);
}

.phase-border-fire {
  border-left-color: rgb(181, 58, 48);
}

.phase-border-earth {
  border-left-color: rgb(176, 138, 62);
}

.phase-border-metal {
  border-left-color: rgb(156, 124, 60);
}

.phase-border-water {
  border-left-color: rgb(49, 80, 95);
}

.qi-use-empty {
  color: var(--heaven-ink-faint);

  font-family: var(--heaven-serif);
}

@keyframes heaven-caret {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@keyframes qi-flow-line {
  100% {
    stroke-dashoffset: -0.2;
  }
}

@keyframes qi-word-focus {
  0% {
    opacity: 0;

    filter: blur(12px);
  }

  100% {
    opacity: 1;

    filter: blur(0px);
  }
}

@keyframes ritual-curtain-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes ritual-curtain-out {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes heart-ignite {
  0% {
    opacity: 0;

    filter: blur(6px);

    transform: scale(0.2);
  }

  100% {
    opacity: 1;

    filter: blur(0px);

    transform: scale(1);
  }
}

@media (max-width: 900px) {
  #heavenView .heaven-panel > ,
#heavenView .heaven-proverb,
#heavenView .heaven-page-head,
#heavenView .heaven-toolbar {
    width: min(100% - 28px, 1280px);
  }

  #heavenFortunePanel .qi-climate-panel {
    min-height: 470px;
  }

  #heavenFortunePanel > .qi-framework-panel .qi-framework-layers {
    grid-template-columns: minmax(0px, 1fr);
  }

  #heavenFortunePanel > .qi-framework-panel .qi-framework-layer {
    border-right: 0px;

    border-bottom: 1px solid var(--heaven-rule);
  }

  #heavenFortunePanel .personal-fortune-result {
    grid-template-columns: minmax(0px, 1fr);
  }

  #heavenFortunePanel .personal-primary-grid {
    grid-template-columns: minmax(0px, 1fr);

    border-right: 0px;
  }

  #heavenFortunePanel .personal-preferences {
    border-top: 1px solid var(--heaven-rule);

    border-left: 0px;
  }

  #heavenFortunePanel .personal-day-master {
    border-right: 0px;

    border-bottom: 1px solid var(--heaven-rule);
  }
}

@media (max-width: 600px) {
  #heavenView .heaven-toolbar {
    min-height: 64px;
  }

  #heavenView .heaven-toolbar .section-subtitle {
    display: none;
  }

  #heavenFortunePanel .fortune-heading {
    display: flex;

    align-items: flex-start;

    flex-direction: column;
  }

  #heavenFortunePanel .fortune-heading-actions {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }

  #heavenFortunePanel .fortune-heading-actions .qi-time-field {
    grid-column: 1 / -1;
  }

  #heavenFortunePanel .fortune-heading-actions .button {
    width: 100%;

    grid-column: auto;
  }

  #heavenFortunePanel .qi-time-field input {
    width: 100%;
  }

  #heavenFortunePanel .qi-climate-panel {
    min-height: 430px;

    padding: 18px;
  }

  #heavenFortunePanel .personal-preferences,
  .qi-sector-tags {
    grid-template-columns: minmax(0px, 1fr);
  }

  #heavenFortunePanel .personal-preferences > section + section {
    border-top: 1px solid var(--heaven-rule);

    border-left: 0px;
  }
}

@media (max-width: 860px) {
  .heart-casting-layout,
.heart-reveal-layout,
.heaven-trend-layout {
    grid-template-columns: 1fr;
  }

  .heart-hexagram-shell,
.heart-reveal-board,
.hexagram-board {
    border-right: 0px;

    border-bottom: 1px solid var(--line);
  }

  .human-field-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qi-framework-layers {
    grid-template-columns: 1fr 1fr;
  }

  .qi-framework-layer:nth-child(2n) {
    border-right: 0px;
  }

  .qi-framework-layer:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .human-field-grid > div:nth-child(2n) {
    border-right: 0px;
  }

  .human-field-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .fortune-metric:nth-child(3) {
    border-right: 0px;
  }

  .fortune-metric:nth-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }

  .heart-line-text:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .heart-line-text:nth-child(2n) {
    border-right: 0px;
  }
}

@media (max-width: 520px) {
  .heaven-controls {
    grid-template-columns: 1fr;

    padding: 12px;
  }

  .heaven-controls > .button {
    width: 100%;
  }

  .heart-hexagram-shell,
.heart-reveal-board,
.hexagram-board,
.phase-sector-panel,
.trend-reading-panel {
    padding: 12px;
  }

  .hexagram-heading {
    align-items: flex-start;
  }

  .hexagram-heading h3 {
    font-size: 17px;
  }

  .hexagram-line-row {
    grid-template-columns: 34px 112px minmax(0px, 1fr);

    gap: 6px;

    padding-right: 2px;

    padding-left: 2px;
  }

  .hex-line {
    width: 100px;

    gap: 11px;
  }

  .hex-line b {
    right: -17px;
  }

  .hexagram-line-detail small {
    white-space: normal;
  }

  .heaven-index-strip {
    grid-template-columns: 1fr;
  }

  .fortune-heading {
    align-items: flex-start;

    flex-direction: column;
  }

  .fortune-heading .button {
    width: 100%;
  }

  .fortune-heading-actions {
    width: 100%;

    align-items: stretch;

    flex-direction: column;
  }

  .qi-time-field input {
    width: 100%;
  }

  .human-field-grid,
.qi-framework-layers {
    grid-template-columns: 1fr;
  }

  .human-field-grid > div,
.human-field-grid > div:nth-child(2n) {
    border-right: 0px;

    border-bottom: 1px solid var(--line);
  }

  .qi-framework-layer,
  .qi-framework-layer:nth-child(2) {
    grid-column: auto;

    border-right: 0px;

    border-bottom: 1px solid var(--line);
  }

  .qi-framework-layer:last-child {
    grid-column: auto;

    border-right: 0px;

    border-bottom: 0px;
  }

  .human-field-grid > div:last-child {
    border-bottom: 0px;
  }

  .personal-fortune-panel,
.qi-framework-panel {
    padding: 12px;
  }

  .qi-framework-panel .workspace-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 4px;
  }

  .qi-framework-panel .workspace-heading > span {
    max-width: 100%;

    overflow-wrap: anywhere;

    line-height: 1.5;
  }

  .fortune-metric,
  .fortune-metric:nth-child(3) {
    border-right: 1px solid var(--line);

    border-bottom: 1px solid var(--line);
  }

  .fortune-metric:nth-child(2n) {
    border-right: 0px;
  }

  .heart-stage-inner,
  .heart-casting-layout,
  .heart-reveal-layout {
    min-height: 520px;
  }

  .heart-line-text,
  .heart-line-text:nth-child(2n),
  .heart-line-text:nth-child(3n) {
    border-right: 0px;
  }
}

.heart-toolbar-controls {
  position: absolute;

  top: 12px;

  right: 14px;

  z-index: 8;

  display: flex;

  align-items: center;

  gap: 7px;
}

#heavenHeartPanel .heart-footnote {
  border-color: var(--ritual-rule);

  position: relative;

  z-index: 2;
}

.heart-whispers {
  position: absolute;

  inset: 0px;

  z-index: 0;

  overflow: hidden;

  pointer-events: none;
}

.heart-whispers span {
  position: absolute;

  top: var(--whisper-y);

  left: var(--whisper-x);

  color: rgba(232, 222, 199, 0.46);

  font-family: var(--heaven-serif);

  font-size: 13px;

  line-height: 1.65;

  letter-spacing: 0.12em;

  text-shadow: rgba(0, 0, 0, 0.72) 0px 0px 8px, rgba(232, 222, 199, 0.12) 0px 0px 16px;

  writing-mode: vertical-rl;

  text-orientation: upright;

  white-space: nowrap;

  animation: heart-whisper var(--whisper-duration) ease-in-out var(--whisper-delay) infinite;
}

#heartIntro .heart-stage-inner {
  width: min(58%, 620px);

  position: relative;

  z-index: 1;

  margin-inline: auto;
}

#heavenHeartPanel .heart-stage.active-heart-stage {
  animation: 1.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0s 1 normal backwards running heart-stage-arrive;

  transition: opacity 1.05s cubic-bezier(0.4, 0, 0.2, 1), filter 1.05s cubic-bezier(0.4, 0, 0.2, 1), transform 1.05s cubic-bezier(0.4, 0, 0.2, 1);
}

#heavenHeartPanel .heart-stage.active-heart-stage.is-leaving {
  animation: auto ease 0s 1 normal none running none;

  opacity: 0;

  filter: blur(7px);

  transform: translateY(-8px);
}

.heart-rise {
  opacity: 0;

  filter: blur(6px);

  transform: translateY(14px);

  transition: opacity 1.65s cubic-bezier(0.22, 0.61, 0.36, 1), filter 1.65s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.heart-rise.is-visible {
  opacity: 1;

  filter: blur(0px);

  transform: translateY(0px);
}

.heart-incense {
  width: 2px;

  height: 270px;

  position: absolute;

  top: 50%;

  right: 7%;

  border-radius: 2px;

  background: linear-gradient(rgba(201, 168, 106, 0.05), rgba(201, 168, 106, 0.38));

  transform: translateY(-50%);
}

.heart-incense::after {
  content: "一炷香";

  position: absolute;

  top: calc(100% + 18px);

  left: 50%;

  color: rgb(95, 90, 81);

  font-family: var(--heaven-serif);

  font-size: 10px;

  letter-spacing: 0.22em;

  white-space: nowrap;

  transform: translateX(-50%);
}

.heart-incense i {
  width: 10px;

  height: 10px;

  position: absolute;

  top: 0px;

  left: 50%;

  margin: -5px 0px 0px -5px;

  border-radius: 50%;

  background: radial-gradient(circle, rgb(255, 217, 160) 0px, rgb(224, 136, 64) 45%, transparent 75%);

  box-shadow: rgba(255, 180, 90, 0.35) 0px 0px 14px 4px;
}

.heart-incense i.is-burning {
  animation: 45s linear 1s 1 normal forwards running heart-incense-burn;
}

#heavenHeartPanel #beginCastingButton {
  opacity: 0.35;

  transition: opacity 900ms, border-color 300ms, background-color 300ms;
}

#heavenHeartPanel #beginCastingButton.is-ready {
  opacity: 1;
}

.heart-coins {
  min-height: 196px;

  display: flex;

  align-items: flex-end;

  justify-content: center;

  gap: 22px;

  padding-top: 84px;

  perspective: 900px;
}

.heart-coin {
  width: 86px;

  height: 86px;

  position: relative;

  transform-style: preserve-3d;

  will-change: transform;
}

.heart-coin-inner {
  width: 100%;

  height: 100%;

  position: relative;

  transform-style: preserve-3d;

  will-change: transform;
}

.heart-coin-face {
  position: absolute;

  inset: 0px;

  display: grid;

  place-items: center;

  border: 2px solid rgb(201, 168, 106);

  border-radius: 50%;

  background: radial-gradient(circle at 36% 30%, rgb(217, 191, 124), rgb(141, 109, 49) 56%, rgb(61, 46, 24) 100%);

  color: rgb(51, 37, 21);

  box-shadow: rgba(48, 35, 18, 0.48) 0px 0px 0px 5px inset, rgba(255, 231, 160, 0.3) 0px 0px 18px inset, rgba(0, 0, 0, 0.25) 0px 8px 18px;

  backface-visibility: hidden;

  font-family: var(--heaven-serif);

  font-size: 20px;

  text-shadow: rgba(255, 230, 162, 0.34) 0px 1px;
}

.heart-coin-face::before {
  content: "";

  width: 18px;

  height: 18px;

  position: absolute;

  top: 50%;

  left: 50%;

  border: 2px solid rgba(46, 31, 14, 0.75);

  background: rgb(20, 19, 15);

  transform: translate(-50%, -50%);
}

.heart-coin-face.front {
  padding-bottom: 52px;
}

.heart-coin-face.back {
  transform: rotateY(180deg);
}

.heart-coin-face.back::after {
  content: "";
}

.heart-coin.is-shaking .heart-coin-inner {
  animation: 120ms linear 0s infinite normal none running heart-coin-shake;
}

.heart-coin-ring {
  width: 108px;

  height: 34px;

  position: absolute;

  bottom: -17px;

  left: 50%;

  border: 1px solid rgba(201, 168, 106, 0.7);

  border-radius: 50%;

  opacity: 0;

  transform: translateX(-50%) scale(0.35);

  pointer-events: none;
}

.heart-coin-ring.is-bursting {
  animation: 1s ease-out 0s 1 normal forwards running heart-coin-ring-burst;
}

.heart-hold-charge {
  display: none;
}

.heart-cast-button.is-holding {
  --hold-progress: 1turn;

  color: rgb(240, 217, 165);

  text-shadow: rgba(201, 168, 106, 0.5) 0px 0px 18px;
}

#heavenHeartPanel .heart-hexagram-shell.is-complete {
  animation: 2.2s ease-in-out 0s 1 normal both running heart-board-complete;
}

#heartReveal .heart-reveal-line {
  opacity: 0.1;

  filter: blur(3px);

  transition: opacity 1s cubic-bezier(0.37, 0.01, 0.22, 1), filter 1s cubic-bezier(0.37, 0.01, 0.22, 1);
}

#heartReveal .heart-reveal-line.is-revealed {
  opacity: 1;

  filter: blur(0px);
}

#heartReveal .hexagram-change,
#heartReveal .hexagram-heading h3,
#heartReveal .hexagram-text {
  opacity: 0;

  filter: blur(10px);

  transition: opacity 1.5s cubic-bezier(0.37, 0.01, 0.22, 1), filter 1.5s cubic-bezier(0.37, 0.01, 0.22, 1);
}

#heartReveal.is-title-ready .hexagram-change,
#heartReveal.is-title-ready .hexagram-heading h3,
#heartReveal.is-title-ready .hexagram-text {
  opacity: 1;

  filter: blur(0px);
}

#heavenHeartPanel .heart-line-text {
  appearance: none;

  display: block;

  border-top: 0px;

  border-right: 1px solid var(--ritual-rule);

  border-bottom: 1px solid var(--ritual-rule);

  border-left: 0px;

  border-radius: 0px;

  background: transparent;

  color: inherit;

  cursor: pointer;

  text-align: left;

  filter: blur(5px);

  opacity: 0.38;

  transition: filter 800ms, opacity 800ms, background-color 300ms;
}

#heartReveal .heart-first-thought p {
  opacity: 0;

  transition: opacity 1s;
}

#heartReveal.is-thought-typing #heartFirstThoughtPrompt {
  opacity: 1;
}

#heartReveal.is-thought-ready .heart-first-thought p {
  opacity: 1;
}

.heart-typing::after {
  content: "";

  width: 1px;

  height: 1em;

  display: inline-block;

  margin-left: 4px;

  background: currentcolor;

  vertical-align: -0.12em;

  animation: 820ms steps(1) 0s infinite normal none running heaven-caret;
}

#heartInterpretationStage {
  min-height: calc(-128px + 100vh);

  padding: 6vh clamp(24px, 5vw, 74px) 48px;

  overflow: visible;
}

#heavenHeartPanel .heart-interpretation-heading {
  border-color: var(--ritual-rule);

  min-height: 76px;

  padding: 0px 0px 22px;
}

.heart-interpretation-heading > div {
  display: flex;

  align-items: baseline;

  gap: 24px;
}

.heart-interpretation-heading small {
  color: rgb(196, 96, 86);

  font-family: var(--heaven-serif);

  opacity: 0;

  transition: opacity 1.4s;
}

.heart-read-guaci {
  margin: 18px 0px 32px;

  color: rgb(201, 168, 106);

  font-family: var(--heaven-serif);

  font-size: 14px;

  line-height: 1.9;

  opacity: 0;

  transition: opacity 1.5s;
}

.heart-read-layout {
  display: grid;

  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);

  gap: clamp(34px, 7vw, 110px);

  align-items: start;
}

.heart-read-lines {
  position: sticky;

  top: 18px;

  display: flex;

  flex-direction: column;

  gap: 22px;

  padding: 24px 0px;
}

.heart-read-line {
  display: grid;

  grid-template-columns: 42px minmax(170px, 230px);

  align-items: center;

  gap: 18px;

  opacity: 0;

  transform: translateY(8px);

  transition: opacity 850ms cubic-bezier(0.37, 0.01, 0.22, 1), transform 850ms cubic-bezier(0.37, 0.01, 0.22, 1);
}

.heart-read-line > span {
  color: rgb(110, 105, 95);

  font-family: var(--heaven-serif);

  font-size: 12px;
}

.heart-read-line .hex-line {
  width: 100%;
}

.heart-read-texts {
  display: flex;

  flex-direction: column-reverse;
}

.heart-read-text {
  min-height: 98px;

  padding: 20px 8px;

  border-bottom: 1px solid var(--ritual-rule);

  opacity: 0;

  transform: translateY(8px);

  transition: opacity 850ms cubic-bezier(0.37, 0.01, 0.22, 1), transform 850ms cubic-bezier(0.37, 0.01, 0.22, 1);
}

.heart-read-line.is-visible,
.heart-read-text.is-visible {
  opacity: 1;

  transform: translateY(0px);
}

.heart-read-text strong {
  color: rgb(201, 168, 106);

  font-family: var(--heaven-serif);

  font-size: 13px;
}

.heart-read-text.moving strong {
  color: rgb(196, 96, 86);
}

.heart-read-text p {
  margin: 8px 0px 0px;

  color: rgb(170, 163, 148);

  font-family: var(--heaven-serif);

  font-size: 13px;

  line-height: 1.9;
}

#heartInterpretationStage.is-read-heading-ready .heart-interpretation-heading small,
#heartInterpretationStage.is-read-heading-ready .heart-read-guaci {
  opacity: 1;
}

.heart-read-motto {
  margin: 34px 0px 0px;

  color: rgb(95, 90, 81);

  font-family: var(--heaven-serif);

  font-size: 12px;

  letter-spacing: 0.28em;

  opacity: 0;

  transition: opacity 1.2s 500ms;
}

#heartInterpretationStage.is-read-complete .heart-read-motto {
  opacity: 1;
}

@keyframes heart-daybreak-in {
  0% {
    opacity: 0;

    filter: blur(28px);

    transform: scale(0.72);
  }

  34% {
    opacity: 0.45;
  }

  100% {
    opacity: 1;

    filter: blur(8px);

    transform: scale(1.08);
  }
}

@keyframes heart-ink-veil-in {
  0% {
    opacity: 0;

    filter: blur(8px);
  }

  100% {
    opacity: 1;

    filter: blur(0px);
  }
}

@keyframes heart-local-curtain-out {
  0% {
    opacity: 1;

    filter: blur(0px);
  }

  100% {
    opacity: 0;

    filter: blur(12px);
  }
}

@keyframes heart-curtain-copy {
  0% {
    opacity: 0;

    filter: blur(7px);

    transform: translateY(8px);
  }

  100% {
    opacity: 1;

    filter: blur(0px);

    transform: translateY(0px);
  }
}

@keyframes heart-whisper {
  0%,
  100% {
    opacity: 0.55;

    transform: translateY(0px);
  }

  50% {
    opacity: 0.96;

    transform: translateY(-5px);
  }
}

@keyframes heart-stage-arrive {
  0% {
    opacity: 0;

    filter: blur(8px);

    transform: translateY(12px);
  }

  100% {
    opacity: 1;

    filter: blur(0px);

    transform: translateY(0px);
  }
}

@keyframes heart-incense-burn {
  100% {
    top: 100%;
  }
}

@keyframes heart-coin-shake {
  0% {
    transform: rotateX(-5deg) rotateY(-7deg) translate(-1px, 1px);
  }

  50% {
    transform: rotateX(6deg) rotateY(8deg) translate(2px, -1px);
  }

  100% {
    transform: rotateX(-4deg) rotateY(-5deg) translate(-1px, 0px);
  }
}

@keyframes heart-coin-ring-burst {
  0% {
    opacity: 0.85;

    transform: translateX(-50%) scale(0.35);
  }

  100% {
    opacity: 0;

    transform: translateX(-50%) scale(1.45);
  }
}

@keyframes heart-ghost-breathe {
  0%,
  100% {
    opacity: 0.1;

    filter: blur(1px);
  }

  50% {
    opacity: 0.3;

    filter: blur(0px);
  }
}

@keyframes heart-board-complete {
  0%,
  100% {
    box-shadow: rgba(255, 237, 208, 0) 0px 0px 0px inset;
  }

  48% {
    box-shadow: rgba(255, 237, 208, 0.08) 0px 0px 80px inset, rgba(201, 168, 106, 0.08) 0px 0px 42px;
  }
}

@media (max-width: 900px) {
  .heart-incense {
    right: 24px;

    height: 210px;
  }

  .heart-read-layout {
    grid-template-columns: minmax(0px, 1fr);

    gap: 28px;
  }

  .heart-read-lines {
    position: static;
  }
}

@media (max-width: 600px) {

  #heartIntro .heart-stage-inner {
    width: calc(100% - 82px);
  }

  .heart-whispers span {
    font-size: 9px;

    line-height: 1.4;

    white-space: nowrap;
  }

  .heart-whispers span:nth-child(1) {
    left: 4% !important;

    top: 12% !important;
  }

  .heart-whispers span:nth-child(2) {
    left: 74% !important;

    top: 9% !important;
  }

  .heart-whispers span:nth-child(5) {
    left: 4% !important;

    top: 58% !important;
  }

  .heart-whispers span:nth-child(7) {
    left: 74% !important;

    top: 60% !important;
  }

  .heart-whispers span:nth-child(3),
  .heart-whispers span:nth-child(4),
  .heart-whispers span:nth-child(6) {
    display: none;
  }

  #heartIntro .heart-motto {
    font-size: 13px;

    white-space: nowrap;
  }

  .heart-incense {
    right: 14px;

    height: 160px;
  }

  .heart-incense::after {
    display: none;
  }

  .heart-coins {
    min-height: 160px;

    gap: 12px;

    padding-top: 66px;
  }

  .heart-coin {
    width: 64px;

    height: 64px;
  }

  .heart-coin-face {
    font-size: 15px;
  }

  .heart-coin-face::before {
    width: 14px;

    height: 14px;
  }

  .heart-coin-face.front {
    padding-bottom: 40px;
  }

  .heart-coin-ring {
    width: 82px;
  }

  #heartInterpretationStage {
    padding: 54px 18px 80px;
  }

  .heart-interpretation-heading > div {
    display: grid;

    gap: 5px;
  }

  .heart-read-line {
    grid-template-columns: 38px minmax(0px, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .heart-coin.is-shaking .heart-coin-inner,
.heart-incense i,
.heart-whispers span {
    animation: auto ease 0s 1 normal none running none !important;
  }

  #heavenHeartPanel .heart-stage.active-heart-stage,
.heart-rise {
    animation-duration: 1ms !important;

    transition-duration: 1ms !important;
  }

  #heavenHeartPanel .heart-breath-ripple span {
    animation-name: heart-breath-ripple-soft !important;
  }

  #heavenHeartPanel .breathing-phase {
    transition: none !important;
  }
}

#heavenHeartPanel {
  min-height: calc(-128px + 100vh);

  position: relative;

  isolation: isolate;

  overflow: hidden;

  --ritual-bg: var(--heaven-paper);

  --ritual-surface: var(--heaven-paper-muted);

  --ritual-rule: var(--heaven-rule);

  --ritual-text: var(--heaven-ink);

  --ritual-muted: var(--heaven-ink-soft);

  background: var(--heaven-paper);

  color: var(--ritual-text);

  width: 100% !important;

  max-width: none !important;

  margin: 0px !important;
}

#heavenHeartPanel::before {
  content: "";

  position: absolute;

  inset: 8px 0px;

  z-index: 0;

  background: radial-gradient(58% 60%, rgba(17, 20, 16, 0.99) 0px, rgba(17, 20, 16, 0.99) 62%, rgba(20, 22, 17, 0.94) 70%, rgba(28, 29, 23, 0.62) 79%, rgba(54, 52, 42, 0.18) 89%, transparent 100%), radial-gradient(55% 58% at 50% 48%, rgb(17, 20, 15) 0px, rgb(17, 20, 15) 56%, rgba(17, 20, 15, 0.55) 76%, rgba(17, 20, 15, 0.12) 91%, transparent 100%);

  filter: blur(8px);

  pointer-events: none;

  display: none;
}

#heavenHeartPanel .heart-stage {
  overflow: hidden;

  min-height: calc(-128px + 100vh);

  position: relative;

  z-index: 2;

  background-color: var(--heaven-paper);

  background-image: linear-gradient(rgba(41, 40, 34, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(41, 40, 34, 0.01) 1px, transparent 1px);

  background-size: 28px 28px, 28px 28px;
}

#heavenHeartPanel #heartIntro::before {
  content: "心";

  position: absolute;

  top: 50%;

  left: 50%;

  font-family: var(--heaven-serif);

  font-size: min(42vw, 440px);

  line-height: 1;

  pointer-events: none;

  transform: translate(-50%, -52%);

  color: rgba(36, 40, 32, 0.035);
}

#heavenHeartPanel .heart-motto {
  margin: 24px 0px 8px;

  font-size: 16px;

  font-weight: 400;

  color: rgb(113, 96, 71);
}

#heavenHeartPanel .heart-question-composer {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  display: grid;
  gap: var(--card-gap);
}

#heavenHeartPanel #heartIntro .heart-stage-inner {
  grid-template-columns: minmax(0, 1fr);
}

#heavenHeartPanel .heart-question-presets {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

#heavenHeartPanel .heart-question-presets button {
  min-width: calc(var(--control-height) * 2);
  height: var(--control-height);
  border: 1px solid var(--ritual-rule);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ritual-muted);
  font-family: var(--heaven-serif);
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast), color var(--duration-fast);
}

#heavenHeartPanel .heart-question-presets button:hover:not(:disabled),
#heavenHeartPanel .heart-question-presets button[aria-pressed="true"] {
  border-color: var(--heaven-cinnabar);
  background: var(--heaven-cinnabar-soft);
  color: var(--heaven-cinnabar);
}

#heavenHeartPanel .heart-question-presets button:disabled {
  cursor: default;
  opacity: 0.62;
}

#heavenHeartPanel #heartQuestionInput {
  width: 100%;
  min-width: 0;
  min-height: calc(var(--control-height) * 2);
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid var(--wt-control-border);
  border-radius: var(--radius-md);
  padding: var(--card-gap);
  background: var(--wt-control-bg);
  color: var(--wt-text);
  font: inherit;
  line-height: 1.6;
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

#heavenHeartPanel #heartQuestionInput::placeholder {
  color: var(--wt-faint);
}

#heavenHeartPanel #heartQuestionInput:focus {
  border-color: var(--heaven-cinnabar);
  box-shadow: 0 0 0 2px var(--heaven-cinnabar-soft);
}

#heavenHeartPanel #heartQuestionInput:disabled {
  opacity: 0.72;
}

#heavenHeartPanel .button {
  background: transparent;

  border-color: rgba(122, 74, 57, 0.52);

  color: var(--ritual-text);
}

#heavenHeartPanel .button:hover:not(:disabled) {
  border-color: rgb(154, 91, 69);

  background: rgba(154, 91, 69, 0.07);
}

#heavenHeartPanel .button.primary {
  border-color: rgb(154, 91, 69);

  background: rgb(154, 91, 69);

  color: var(--text-inverse);
}

#heavenHeartPanel .button:disabled {
  border-color: var(--ritual-rule);

  background: rgba(36, 40, 32, 0.035);

  color: rgb(154, 157, 150);
}

#heavenHeartPanel .heart-whispers span {
  color: rgba(88, 77, 62, 0.72);

  text-shadow: rgba(253, 252, 248, 0.9) 0px 0px 8px, rgba(194, 159, 90, 0.12) 0px 0px 16px;
}

#heavenHeartPanel .heart-incense {
  background: linear-gradient(rgba(157, 126, 71, 0.08), rgba(157, 126, 71, 0.42));
}

#heavenHeartPanel .heart-cast-button.is-holding {
  color: rgb(125, 91, 50);

  text-shadow: rgba(194, 159, 90, 0.34) 0px 0px 18px;
}

#heavenHeartPanel .heart-line-text.is-inspected,
#heavenHeartPanel .heart-line-text:focus-visible,
#heavenHeartPanel .heart-line-text:hover {
  z-index: 2;

  filter: blur(0px);

  opacity: 1;

  outline: none;

  background: rgba(36, 40, 32, 0.04);
}

#heavenHeartPanel .heaven-interpretation {
  min-height: 460px;

  padding: 32px max(24px, 8vw);

  border-color: var(--ritual-rule);

  font-family: var(--heaven-serif);

  font-size: 15px;

  line-height: 2;

  color: rgb(63, 70, 62);

  background: var(--heaven-paper);
}

#heavenHeartPanel .heart-read-guaci {
  color: rgb(115, 85, 45);
}

#heavenHeartPanel .heart-read-text strong {
  color: rgb(118, 85, 44);
}

#heavenHeartPanel .heart-read-text p {
  color: rgb(79, 87, 78);
}

#heavenHeartPanel .heart-read-line > span {
  color: rgb(89, 97, 88);
}

:where(#heavenView) #heavenHeartPanel .heart-breath-ripple {
  top: 43%;

  left: 50%;
}

:where(#heavenView) #heavenHeartPanel .heart-breath-ripple span {
  border-radius: 50%;

  will-change: transform, opacity;
}

:where(#heavenView) #heavenHeartPanel .heart-breath-ripple span:nth-child(1) {
  inset: 76px;

  border-color: rgba(126, 77, 52, 0.66);
}

:where(#heavenView) #heavenHeartPanel .heart-breath-ripple span:nth-child(2) {
  inset: 45px;

  border-color: rgba(139, 112, 77, 0.38);
}

:where(#heavenView) #heavenHeartPanel .heart-breath-ripple span:nth-child(3) {
  inset: 13px;

  border-color: rgba(91, 99, 91, 0.24);
}

:where(#heavenView) #heavenHeartPanel .heart-breath-ripple > i {
  top: 50%;

  left: 50%;

  border-radius: 50%;
}

@keyframes heart-breath-ripple {
  0% {
    opacity: 0.12;

    transform: scale(0.7);
  }

  33.333%,
  55.556% {
    opacity: 0.82;

    transform: scale(0.94);
  }

  100% {
    opacity: 0.1;

    transform: scale(0.62);
  }
}

@keyframes heart-breath-ripple-core {
  0% {
    opacity: 0.38;

    box-shadow: rgba(194, 159, 90, 0.04) 0px 0px 0px 3px, rgba(154, 91, 69, 0.06) 0px 0px 8px;

    transform: translate(-50%, -50%) scale(0.76);
  }

  33.333%,
  55.556% {
    opacity: 1;

    box-shadow: rgba(194, 159, 90, 0.09) 0px 0px 0px 9px, rgba(154, 91, 69, 0.18) 0px 0px 26px;

    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0.3;

    box-shadow: rgba(194, 159, 90, 0) 0px 0px 0px 2px, rgba(154, 91, 69, 0.03) 0px 0px 5px;

    transform: translate(-50%, -50%) scale(0.64);
  }
}

@keyframes heart-breath-ripple-soft {
  0% {
    opacity: 0.24;

    transform: scale(0.86);
  }

  33.333%,
  55.556% {
    opacity: 0.68;

    transform: scale(0.94);
  }

  100% {
    opacity: 0.18;

    transform: scale(0.82);
  }
}

:where(#heavenView) #heavenHeartPanel .breathing-phase {
  top: 43%;

  bottom: auto;

  z-index: 3;

  color: rgb(118, 81, 61);

  font-family: var(--heaven-serif);

  font-size: 20px;

  font-weight: 500;

  transition: color 480ms, opacity 480ms;
}

#heavenHeartPanel .breathing-scene[data-phase="prepare"] .breathing-phase {
  color: rgb(133, 137, 128);

  opacity: 0.62;
}

#heavenHeartPanel .breathing-scene[data-phase="hold"] .breathing-phase {
  color: rgb(138, 107, 62);

  opacity: 0.9;
}

#heavenHeartPanel .breathing-scene[data-phase="exhale"] .breathing-phase {
  color: rgb(111, 117, 110);

  opacity: 0.72;
}

#heavenHeartPanel .breathing-scene[data-phase="settled"] .breathing-phase {
  color: rgb(118, 81, 61);

  opacity: 1;
}

.heaven-calibration-panel {
  margin: 24px 0px 28px;

  padding: 20px 2px 18px;

  border-top: 1px solid var(--heaven-rule, #ded8cb);

  border-bottom: 1px solid var(--heaven-rule, #ded8cb);
}

.heaven-calibration-heading {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 20px;
}

.heaven-calibration-heading h3 {
  margin: 4px 0px 0px;

  color: var(--heaven-ink, #36342f);

  font-size: 20px;

  letter-spacing: 0px;
}

.heaven-calibration-summary {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  justify-content: flex-end;

  gap: 12px;

  color: rgb(110, 106, 98);

  font-size: 11px;
}

.heaven-calibration-summary > span {
  display: inline-flex;

  align-items: center;

  gap: 5px;
}

.heaven-calibration-summary > strong {
  min-width: 92px;

  padding-left: 12px;

  border-left: 1px solid rgb(221, 215, 202);

  color: rgb(78, 75, 69);

  font-size: 12px;

  text-align: right;

  font-variant-numeric: tabular-nums;
}

.heaven-calibration-summary > strong.is-passed {
  color: rgb(36, 107, 85);
}

.heaven-calibration-summary > strong.is-failed {
  color: rgb(169, 54, 48);
}

.heaven-calibration-summary > strong.is-manual {
  color: rgb(148, 101, 21);
}

.status-dot {
  width: 8px;

  height: 8px;

  display: inline-block;

  flex: 0 0 auto;

  border-radius: 50%;

  background: rgb(146, 144, 138);

  box-shadow: rgba(146, 144, 138, 0.12) 0px 0px 0px 3px;
}

.status-dot.passed {
  background: rgb(43, 122, 96);

  box-shadow: rgba(43, 122, 96, 0.12) 0px 0px 0px 3px;
}

.status-dot.failed {
  background: rgb(191, 64, 56);

  box-shadow: rgba(191, 64, 56, 0.12) 0px 0px 0px 3px;
}

.status-dot.manual {
  background: rgb(179, 122, 24);

  box-shadow: rgba(179, 122, 24, 0.14) 0px 0px 0px 3px;
}

.heaven-calibration-panel > p {
  margin: 8px 0px 16px;

  color: rgb(119, 115, 106);

  font-size: 12px;

  line-height: 1.6;
}

.heaven-line-checks {
  border-top: 1px solid rgb(221, 215, 202);
}

.heaven-line-check {
  border-bottom: 1px solid rgb(226, 221, 210);

  background: rgba(255, 255, 255, 0.34);
}

.heaven-line-check.is-failed {
  background: rgba(191, 64, 56, 0.035);
}

.heaven-line-check.is-manual {
  background: rgba(179, 122, 24, 0.04);
}

.heaven-line-check > summary {
  min-height: 58px;

  display: grid;

  grid-template-columns: 94px minmax(0px, 1fr) 112px 18px;

  align-items: center;

  gap: 14px;

  padding: 8px 10px;

  color: rgb(64, 62, 57);

  cursor: pointer;

  list-style: none;
}

.heaven-line-check > summary::-webkit-details-marker {
  display: none;
}

.heaven-line-check > summary > svg {
  width: 16px;

  height: 16px;

  color: rgb(136, 130, 121);

  transition: transform 180ms;
}

.heaven-line-check[open] > summary > svg {
  transform: rotate(180deg);
}

.heaven-check-state {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  font-size: 11px;
}

.is-passed .heaven-check-state b {
  color: rgb(36, 107, 85);
}

.is-failed .heaven-check-state b {
  color: rgb(169, 54, 48);
}

.is-manual .heaven-check-state b {
  color: rgb(148, 101, 21);
}

.heaven-check-name strong {
  display: block;

  color: rgb(53, 51, 47);

  font-size: 13px;
}

.heaven-check-name small {
  display: block;

  margin-top: 3px;

  color: rgb(129, 124, 115);

  font-size: 11px;
}

.heaven-check-result {
  text-align: right;

  font-variant-numeric: tabular-nums;
}

.heaven-check-result b {
  display: block;

  color: rgb(74, 71, 65);

  font-size: 12px;
}

.heaven-check-result small {
  display: block;

  margin-top: 3px;

  color: rgb(138, 133, 124);

  font-size: 10px;
}

.heaven-line-check-body {
  padding: 4px 10px 16px 118px;
}

.heaven-check-reasons {
  margin: 0px 0px 12px;

  padding: 9px 12px 9px 28px;

  border-left: 2px solid rgb(191, 64, 56);

  color: rgb(127, 48, 43);

  background: rgba(191, 64, 56, 0.055);

  font-size: 12px;

  line-height: 1.65;
}

.heaven-check-evidence {
  margin: 0px 0px 12px;

  color: rgb(104, 100, 93);

  font-size: 12px;

  line-height: 1.6;
}

.heaven-manual-fields {
  display: grid;

  grid-template-columns: repeat(3, minmax(0px, 1fr));

  gap: 10px 12px;
}

.heaven-manual-field {
  min-width: 0px;

  display: grid;

  gap: 6px;

  color: rgb(109, 105, 97);

  font-size: 11px;
}

.heaven-manual-field > span:first-child {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 6px;
}

.heaven-manual-field small {
  color: rgb(152, 145, 136);

  font-size: 9px;

  font-weight: 400;
}

.heaven-manual-field.is-manual small {
  color: rgb(148, 101, 21);
}

.heaven-field-control {
  min-width: 0px;

  display: grid;

  grid-template-columns: minmax(0px, 1fr) auto;

  align-items: center;

  border: 1px solid rgb(215, 208, 195);

  border-radius: 5px;

  background: rgba(255, 255, 255, 0.86);

  transition: border-color 160ms, box-shadow 160ms;
}

.heaven-field-control:focus-within {
  border-color: rgb(135, 126, 108);

  box-shadow: rgba(135, 126, 108, 0.12) 0px 0px 0px 3px;
}

.heaven-field-control input,
.heaven-field-control select {
  width: 100%;

  min-width: 0px;

  height: 40px;

  padding: 0px 9px;

  border: 0px;

  outline: 0px;

  color: rgb(55, 52, 47);

  background: transparent;

  font-size: 12px;

  font-variant-numeric: tabular-nums;
}

.heaven-field-control b {
  padding-right: 9px;

  color: rgb(139, 133, 123);

  font-size: 10px;

  font-weight: 500;
}

.calibration-note-field {
  margin-top: 12px;
}

.heaven-calibration-panel .dialog-actions {
  padding: 0px;

  margin-top: 12px;
}

@media (max-width: 767px) {
  .heaven-calibration-heading {
    align-items: flex-start;

    flex-direction: column;
  }

  .heaven-calibration-summary {
    justify-content: flex-start;
  }

  .heaven-calibration-summary > strong {
    min-width: 0px;

    text-align: left;
  }

  .heaven-line-check > summary {
    grid-template-columns: 82px minmax(0px, 1fr) 18px;

    gap: 9px;
  }

  .heaven-check-result {
    grid-area: 2 / 2;

    text-align: left;
  }

  .heaven-line-check > summary > svg {
    grid-area: 1 / 3 / span 2;
  }

  .heaven-line-check-body {
    padding-left: 10px;
  }

  .heaven-manual-fields {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }
}

.heart-read-actions {
  display: flex;

  gap: 8px;
}

.heaven-reading-dialog {
  border-radius: 9px;

  width: min(920px, -32px + 100vw);

  height: min(820px, -32px + 100dvh);

  max-height: min(820px, -32px + 100dvh);

  grid-template-rows: auto auto minmax(0px, 1fr);

  overflow: hidden;

  background: rgb(253, 252, 248);
}

.heaven-reading-dialog[open] {
  display: grid;
}

.heaven-reading-tabs {
  display: flex;

  gap: 4px;

  padding: 10px 18px;

  border-bottom: 1px solid var(--border);
}

.heaven-reading-tabs button {
  min-height: 34px;

  padding: 0px 12px;

  border-width: 0px 0px 2px;

  border-style: none none solid;

  border-color: currentcolor currentcolor transparent;

  border-image: none;

  background: transparent;

  color: var(--text-secondary);

  cursor: pointer;

  font-style: inherit;

  font-variant: inherit;

  font-weight: inherit;

  font-stretch: inherit;

  line-height: inherit;

  font-family: inherit;

  font-optical-sizing: inherit;

  font-size-adjust: inherit;

  font-kerning: inherit;

  font-feature-settings: inherit;

  font-variation-settings: inherit;

  font-language-override: inherit;

  font-size: 12px;
}

.heaven-reading-tabs button.active {
  border-bottom-color: rgb(154, 91, 69);

  color: rgb(111, 63, 49);

  font-weight: 700;
}

.heaven-reading-tabs button:focus-visible {
  outline: rgb(154, 91, 69) solid 2px;

  outline-offset: 1px;
}

.heaven-reading-current {
  min-height: 0px;

  max-height: none;

  overflow-y: auto;

  padding: 24px 28px 30px;

  scrollbar-gutter: stable;

  overscroll-behavior: contain;
}

.heaven-reading-current::-webkit-scrollbar,
.heaven-reading-history-detail::-webkit-scrollbar,
.heaven-reading-history-list-wrap::-webkit-scrollbar {
  width: 9px;
}

.heaven-reading-current::-webkit-scrollbar-thumb,
.heaven-reading-history-detail::-webkit-scrollbar-thumb,
.heaven-reading-history-list-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;

  border-radius: 8px;

  background: padding-box rgba(112, 94, 72, 0.34);
}

.heaven-reading-loading {
  width: 100%;

  height: 100%;

  min-height: 360px;

  position: relative;

  overflow: hidden;

  background: rgb(253, 252, 248);
}

.heaven-reading-loading[hidden] {
  display: none;
}

.heaven-reading-loading canvas {
  width: 100%;

  height: 100%;

  display: block;
}

.heaven-reading-history-detail > header,
.heaven-reading-result > header {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 18px;
}

.heaven-reading-history-detail > header span,
.heaven-reading-result > header span {
  color: rgb(154, 91, 69);

  font-family: var(--heaven-serif);

  font-size: 12px;

  font-weight: 700;
}

.heaven-reading-history-detail h3,
.heaven-reading-result h3 {
  margin: 5px 0px 0px;

  color: rgb(45, 51, 46);

  font-family: var(--heaven-serif);

  font-size: 22px;

  font-weight: 600;

  letter-spacing: 0px;
}

.heaven-reading-history-detail time,
.heaven-reading-result time {
  color: var(--text-secondary);

  font-size: 11px;

  white-space: nowrap;
}

.heaven-reading-history-detail > p,
.heaven-reading-result > p {
  margin: 12px 0px 0px;

  color: var(--text-secondary);

  font-size: 12px;
}

.heaven-reading-answer {
  margin-top: 24px;

  color: rgb(48, 56, 51);

  font-family: var(--heaven-serif);

  font-size: 15px;

  line-height: 1.95;
}

.heaven-reading-answer .mentor-answer-heading {
  color: rgb(113, 63, 49);
}

.heaven-reading-history {
  min-height: 0px;

  max-height: none;

  display: grid;

  grid-template-columns: 270px minmax(0px, 1fr);

  overflow: hidden;
}

.heaven-reading-history[hidden] {
  display: none;
}

.heaven-reading-history-list-wrap {
  min-width: 0px;

  overflow-y: auto;

  border-right: 1px solid var(--border);

  background: rgba(246, 244, 237, 0.72);
}

.heaven-reading-history-heading {
  display: flex;

  justify-content: space-between;

  gap: 10px;

  padding: 15px 16px 10px;

  color: var(--text-secondary);

  font-size: 11px;
}

.heaven-reading-history-heading strong {
  color: var(--text);

  font-size: 13px;
}

.heaven-reading-history-list {
  display: grid;
}

.heaven-reading-history-item {
  display: grid;

  gap: 4px;

  width: 100%;

  padding: 13px 16px;

  border-right: 0px;

  border-bottom: 0px;

  border-left: 0px;

  border-image: none;

  border-top: 1px solid var(--border);

  background: transparent;

  color: var(--text);

  cursor: pointer;

  text-align: left;
}

.heaven-reading-history-item.active,
.heaven-reading-history-item:hover {
  background: var(--surface);

  box-shadow: rgb(154, 91, 69) 3px 0px inset;
}

.heaven-reading-history-item:focus-visible {
  outline: rgb(154, 91, 69) solid 2px;

  outline-offset: -2px;
}

.heaven-reading-history-item span {
  overflow: hidden;

  font-size: 13px;

  font-weight: 700;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.heaven-reading-history-item small,
.heaven-reading-history-item time {
  overflow: hidden;

  color: var(--text-secondary);

  font-size: 10px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.heaven-reading-history-detail {
  min-width: 0px;

  overflow-y: auto;

  padding: 24px 28px;
}

.heaven-reading-history-detail footer {
  display: flex;

  justify-content: flex-end;

  margin-top: 28px;

  padding-top: 14px;

  border-top: 1px solid var(--border);
}

@media (max-width: 767px) {
  .heart-toolbar-controls {
    top: 8px;

    right: 8px;

    gap: 6px;
  }

  .heart-toolbar-controls span {
    display: none;
  }

  .heart-read-actions {
    flex-wrap: wrap;

    justify-content: flex-end;
  }

  .heaven-reading-dialog {
    max-width: none;

    border-radius: 8px;

    width: calc(-16px + 100vw);

    height: calc(-16px + 100dvh);

    max-height: calc(-16px + 100dvh);

    margin: 8px auto;
  }

  .heaven-reading-current {
    min-height: 0px;

    max-height: none;

    padding: 20px 17px 24px;
  }

  .heaven-reading-history {
    min-height: 0px;

    max-height: none;

    grid-template-columns: 1fr;

    overflow-y: auto;
  }

  .heaven-reading-history-list-wrap {
    max-height: 210px;

    border-right: 0px;

    border-bottom: 1px solid var(--border);
  }

  .heaven-reading-history-detail {
    overflow: visible;

    padding: 20px 17px 24px;
  }

  .heaven-reading-history-detail > header,
  .heaven-reading-result > header {
    display: grid;
  }
}

@media (max-height: 520px) {
  .heaven-reading-loading {
    min-height: 260px;
  }
}

#heavenView .heaven-toolbar {
  border-bottom: 1px solid var(--heaven-rule);

  width: min(100% - 40px, 1280px);

  margin-right: auto;

  margin-left: auto;

  background: transparent;

  min-height: 66px;

  padding: 12px 20px;
}

#heavenView .heaven-proverb {
  margin-right: auto;

  margin-left: auto;

  padding: 10px 20px;
}

#heavenView .heaven-panel {
  padding-right: 20px;

  padding-left: 20px;
}

#heavenView .heaven-controls {
  min-height: 96px;

  gap: 16px;
}

.heaven-trend-empty {
  display: grid;

  place-items: center;

  padding: 32px 20px;

  border-top: 1px solid var(--heaven-rule);

  color: var(--heaven-ink-soft);

  font-family: var(--heaven-serif);

  font-size: 16px;

  min-height: 340px;
}

@media (max-width: 767px) {
  #heavenView .heaven-toolbar {
    min-height: 62px;

    padding: 10px 14px;
  }

  #heavenView .heaven-proverb {
    padding: 9px 14px;
  }

  #heavenView .heaven-panel {
    padding-right: 14px;

    padding-left: 14px;
  }

  #heavenView .heaven-controls {
    align-items: stretch;

    flex-direction: column;

    min-height: 0px;

    padding: 14px 0px;
  }

  .heaven-trend-actions {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;
  }

  .heaven-trend-empty {
    min-height: 330px;
  }
}

.page {
  padding: var(--page-pad-y) var(--page-pad-x);
}

.btn.primary {
  background: var(--blue);

  border-color: var(--blue);

  color: var(--text-inverse);
}

.btn.primary:hover {
  background: var(--blue-d);

  color: var(--text-inverse);
}

.phase-pick .pp.on {
  border-color: var(--up);

  color: var(--up);

  background: var(--up-soft);

  font-weight: 700;
}

.phase-pick .auto {
  font-size: 11px;

  color: var(--down);

  margin-left: 4px;
}

.view.on {
  display: block;
}

.tier.gap .lab {
  background: repeating-linear-gradient(45deg, rgb(250, 250, 250), rgb(250, 250, 250) 8px, rgb(243, 244, 246) 8px, rgb(243, 244, 246) 16px);
}

.apex .h .big {
  font-size: 26px;

  font-weight: 800;

  color: var(--up);
}

.model.on {
  background: var(--blue-soft);

  box-shadow: inset 2px 0 0 var(--blue);
}

.star {
  color: rgb(245, 158, 11);

  font-size: 14px;

  cursor: pointer;
}

.star.off {
  color: rgb(209, 213, 219);
}

:root[data-theme="dark"] #heavenView,
:root[data-theme="dark"] #heavenView .heart-stage,
:root[data-theme="dark"] #heavenView .heaven-panel,
:root[data-theme="dark"] .heaven-reading-dialog {
  border-color: var(--heaven-rule);

  background-color: var(--heaven-paper);

  color: var(--heaven-ink);
}

:root[data-theme="dark"] #heavenView :is(.heaven-subnav, .heaven-card, .heaven-calibration-panel) {
  border-color: var(--heaven-rule);

  background-color: var(--heaven-paper-soft);

  color: var(--heaven-ink);
}

:root[data-theme="dark"] #heavenView :is(input, select, textarea, .heaven-field-control) {
  border-color: var(--heaven-rule);

  background: var(--heaven-field-bg);

  color: var(--heaven-ink);
}

#heavenView {
  --heaven-paper: #fdfcf8;

  --heaven-paper-muted: #f6f4ed;

  --heaven-ink: #292822;

  --heaven-ink-soft: #6d685b;

  --heaven-ink-faint: #9b9587;

  --heaven-rule: rgba(41, 40, 34, 0.14);

  --heaven-rule-strong: rgba(41, 40, 34, 0.28);

  --heaven-cinnabar: #ad382f;

  --heaven-cinnabar-soft: rgba(173, 56, 47, 0.075);

  --heaven-gold: #9b7a39;

  color: var(--heaven-ink);

  background-color: var(--heaven-paper);

  background-image: linear-gradient(rgba(41, 40, 34, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(41, 40, 34, 0.01) 1px, transparent 1px);

  background-size: 28px 28px, 28px 28px;

  position: relative;

  border-color: rgb(222, 217, 206);

  box-shadow: var(--shadow-soft);

  color-scheme: dark;

  --wt-bg: #0b1120;

  --wt-panel: #0d1526;

  --wt-panel-raised: #101a30;

  --wt-text: #d8d2bd;

  --wt-paper: #e8e2cd;

  --wt-gold: #c9a55c;

  --wt-gold-bright: #e3c887;

  --wt-cinnabar: #d76b61;

  --wt-green: #7ea87e;

  --wt-line: rgba(201, 165, 92, 0.18);

  --wt-line-soft: rgba(255, 255, 255, 0.06);

  --wt-muted: rgba(216, 210, 189, 0.55);

  --wt-faint: rgba(216, 210, 189, 0.35);

  --wt-stage-bg: radial-gradient(1200px 500px at 50% -10%, #16223f 0%, #0b1120 60%);

  --wt-fortune-stage-bg: radial-gradient(900px 440px at 32% 44%, #16223f 0%, #0b1120 66%);

  --wt-heart-stage-bg: radial-gradient(1000px 520px at 50% 18%, #16223f 0%, #0b1120 65%);

  --wt-stage-veil: rgba(8, 14, 27, 0.28);

  --wt-surface: rgba(13, 21, 38, 0.72);

  --wt-surface-raised: rgba(16, 26, 48, 0.78);

  --wt-surface-soft: rgba(13, 21, 38, 0.55);

  --wt-control-bg: rgba(255, 255, 255, 0.045);

  --wt-control-border: rgba(201, 165, 92, 0.25);

  --wt-control-hover: rgba(201, 165, 92, 0.09);

  --wt-button-border: rgba(255, 255, 255, 0.14);

  --wt-panel-gradient: linear-gradient(160deg, rgba(16, 26, 48, 0.9), rgba(13, 21, 38, 0.9));

  --wt-star: #e8e2cd;

  --wt-hexagram-ink: #cfc8ad;

  --wt-track: rgba(255, 255, 255, 0.07);

  --wt-notice-bg: rgba(215, 107, 97, 0.08);

  --wt-notice-border: rgba(215, 107, 97, 0.35);

  --wt-notice-text: #efb0a9;

  --wt-loading-bg: rgba(13, 21, 38, 0.96);

  --wt-backdrop: rgba(4, 8, 16, 0.72);

  --wt-dialog-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);

  --wt-focus-ring: rgba(201, 165, 92, 0.12);

  --wt-gold-glow: rgba(230, 195, 122, 0.42);

  --wt-soft-gold: rgba(201, 165, 92, 0.08);

  --wt-whisper: rgba(216, 210, 189, 0.13);

  --wt-breath-center: radial-gradient(circle, rgba(230, 195, 122, 0.6), rgba(201, 165, 92, 0.06) 65%, transparent 70%);

  --wt-breath-shadow: 0 0 32px rgba(201, 165, 92, 0.28);

  --wt-cast-rest: rgba(255, 255, 255, 0.03);

  --wt-coin-hole: #0b1120;

  --wt-metal-text: #e3ddc9;

  --wt-history-bg: rgba(255, 255, 255, 0.02);

  --ease-out: cubic-bezier(.2, .75, .3, 1);

  --heaven-serif: "Kaiti SC", "STKaiti", "KaiTi", "STSong", "SimSun", serif;
}

:root[data-theme="light"] #heavenView {
  color-scheme: light;

  --wt-bg: #f4f5f7;

  --wt-panel: #ffffff;

  --wt-panel-raised: #fbfaf6;

  --wt-text: #343a43;

  --wt-paper: #202934;

  --wt-gold: #946b1d;

  --wt-gold-bright: #765315;

  --wt-cinnabar: #b94f46;

  --wt-green: #4f7b5a;

  --wt-line: rgba(132, 101, 39, 0.22);

  --wt-line-soft: rgba(52, 58, 67, 0.09);

  --wt-muted: rgba(52, 58, 67, 0.74);

  --wt-faint: rgba(52, 58, 67, 0.52);

  --wt-stage-bg: radial-gradient(1200px 500px at 50% -10%, #ffffff 0%, #f4f2eb 58%, #eef1f4 100%);

  --wt-fortune-stage-bg: radial-gradient(900px 440px at 32% 44%, #fffefa 0%, #f3f1e9 58%, #edf1f4 100%);

  --wt-heart-stage-bg: radial-gradient(1000px 520px at 50% 18%, #fffefa 0%, #f3f1e9 56%, #edf1f4 100%);

  --wt-stage-veil: rgba(255, 255, 255, 0.34);

  --wt-surface: rgba(255, 255, 255, 0.78);

  --wt-surface-raised: rgba(248, 247, 242, 0.9);

  --wt-surface-soft: rgba(247, 246, 241, 0.74);

  --wt-control-bg: rgba(255, 255, 255, 0.76);

  --wt-control-border: rgba(132, 101, 39, 0.26);

  --wt-control-hover: rgba(148, 107, 29, 0.08);

  --wt-button-border: rgba(52, 58, 67, 0.16);

  --wt-panel-gradient: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(246, 244, 237, 0.94));

  --wt-star: #8e7440;

  --wt-hexagram-ink: #645d4d;

  --wt-track: rgba(52, 58, 67, 0.1);

  --wt-notice-bg: rgba(185, 79, 70, 0.07);

  --wt-notice-border: rgba(185, 79, 70, 0.28);

  --wt-notice-text: #914039;

  --wt-loading-bg: rgba(255, 255, 255, 0.96);

  --wt-backdrop: rgba(41, 47, 56, 0.26);

  --wt-dialog-shadow: 0 18px 52px rgba(31, 41, 55, 0.18);

  --wt-focus-ring: rgba(148, 107, 29, 0.13);

  --wt-gold-glow: rgba(148, 107, 29, 0.2);

  --wt-soft-gold: rgba(148, 107, 29, 0.08);

  --wt-whisper: rgba(52, 58, 67, 0.2);

  --wt-breath-center: radial-gradient(circle, rgba(180, 130, 36, 0.42), rgba(148, 107, 29, 0.05) 65%, transparent 70%);

  --wt-breath-shadow: 0 0 32px rgba(148, 107, 29, 0.16);

  --wt-cast-rest: rgba(52, 58, 67, 0.05);

  --wt-coin-hole: #343127;

  --wt-metal-text: #6d6658;

  --wt-history-bg: #fbfaf6;
}

@media (min-width: 768px) {
  :root[data-theme="light"] body[data-active-view="heavenView"] {
    --wt-bg: #f4f5f7;
  }

  :root[data-theme="light"] body[data-active-view="heavenView"] #heavenView.heaven-shell,
  :root[data-theme="light"] body[data-active-view="heavenView"] .app-main {
    background: var(--wt-bg);
  }
}

:root[data-theme="light"] #heavenView .wt-head .verse {
  color: var(--wt-faint);
}

:root[data-theme="light"] #heavenView .wt-empty {
  color: var(--wt-muted);
}

:root[data-theme="light"] #heavenView .wt-empty .big {
  color: var(--wt-gold);
}

:root[data-theme="light"] #heavenView .fortune-stage > .stars i,
:root[data-theme="light"] #heavenView .heart-stage-shell > .stars i,
:root[data-theme="light"] #heavenView .wt-stage .stars i {
  opacity: 0.18;
}

:root[data-theme="light"] #heavenView .bagua {
  color: var(--wt-gold);

  opacity: 0.075;
}

:root[data-theme="light"] #heavenView .fortune-bagua {
  opacity: 0.08;
}

:root[data-theme="light"] #heavenView .heart-bagua {
  opacity: 0.045;
}

:root[data-theme="light"] #heavenView .heart-whispers span {
  color: var(--wt-whisper);
}

:root[data-theme="light"] #heavenView .heart-breath-ripple > i {
  background: var(--wt-breath-center);

  box-shadow: var(--wt-breath-shadow);
}

:root[data-theme="light"] #heavenView .heart-cast-button {
  background: conic-gradient(var(--wt-gold) var(--hold-progress), var(--wt-cast-rest) 0);
}

:root[data-theme="light"] #heavenView .heart-coin-face::after {
  background: var(--wt-coin-hole);
}

:root[data-theme="light"] #heavenView .phase-text-metal {
  color: var(--wt-metal-text);
}

:root[data-theme="light"] #heavenView :is(input, select, textarea)::placeholder {
  color: var(--wt-faint);
}

:root[data-theme="light"] .heaven-reading-dialog.wentian-v2-dialog {
  color-scheme: light;

  --wt-panel: #ffffff;

  --wt-text: #343a43;

  --wt-paper: #202934;

  --wt-gold: #946b1d;

  --wt-gold-bright: #765315;

  --wt-cinnabar: #b94f46;

  --wt-line: rgba(132, 101, 39, 0.22);

  --wt-line-soft: rgba(52, 58, 67, 0.09);

  --wt-muted: rgba(52, 58, 67, 0.74);

  --wt-faint: rgba(52, 58, 67, 0.52);

  --wt-notice-bg: rgba(185, 79, 70, 0.07);

  --wt-notice-border: rgba(185, 79, 70, 0.28);

  --wt-notice-text: #914039;

  --wt-backdrop: rgba(41, 47, 56, 0.26);

  --wt-dialog-shadow: 0 18px 52px rgba(31, 41, 55, 0.18);

  --wt-soft-gold: rgba(148, 107, 29, 0.08);

  --wt-history-bg: #fbfaf6;

  background: var(--wt-panel);

  box-shadow: var(--wt-dialog-shadow);
}

:root[data-theme="light"] .heaven-reading-dialog.wentian-v2-dialog::backdrop {
  background: var(--wt-backdrop);
}

:root[data-theme="light"] .wentian-v2-dialog .heaven-reading-history-list-wrap {
  background: var(--wt-history-bg);
}

:root[data-theme="light"] .wentian-v2-dialog .heaven-reading-history-item.active,
:root[data-theme="light"] .wentian-v2-dialog .heaven-reading-history-item:hover {
  background: var(--wt-soft-gold);
}

#heavenView #heavenTrendPanel .heaven-controls {
  border-color: transparent;

  background: transparent;

  color: var(--wt-text);
}

#heavenView #heavenTrendPanel .heaven-trend-layout {
  background: var(--wt-stage-veil);
}

#heavenView #heavenTrendPanel .form-field input {
  border-color: var(--wt-control-border);

  background: var(--wt-control-bg);

  color: var(--wt-paper);
}

#heavenView #heavenTrendPanel .hexagram-board {
  border-color: var(--wt-line);

  background: var(--wt-surface);

  color: var(--wt-text);
}

#heavenView #heavenTrendPanel .trend-reading-panel {
  background: var(--wt-surface-raised);

  color: var(--wt-text);
}

#heavenView #heavenFortunePanel .qi-time-field input {
  border-color: var(--wt-control-border);

  background: var(--wt-control-bg);

  color: var(--wt-paper);
}

#heavenView #heavenFortunePanel .heaven-footnote {
  margin: 9px 2px 0px;

  padding: 0px;

  border: 0px;

  background: transparent;

  color: var(--wt-faint);
}

#heavenView #heavenFortunePanel .personal-fortune-panel::before {
  content: none;

  display: none;
}

#heavenView #heavenHeartPanel .heart-breath-ripple {
  width: 180px;

  height: 180px;

  position: relative;

  inset: auto;

  z-index: auto;

  transform: none;
}

#heavenView #heavenHeartPanel .heart-breath-ripple span {
  position: absolute;

  inset: 50%;

  animation: auto ease 0s 1 normal none running none;

  border: 1px solid rgba(201, 165, 92, 0.32);

  box-shadow: none;

  opacity: 1;

  transform: translate(-50%, -50%) scale(0.38);
}

#heavenView #heavenHeartPanel .heart-breath-ripple span:nth-child(1) {
  width: 100%;

  height: 100%;
}

#heavenView #heavenHeartPanel .heart-breath-ripple span:nth-child(2) {
  width: 76%;

  height: 76%;
}

#heavenView #heavenHeartPanel .heart-breath-ripple span:nth-child(3) {
  width: 52%;

  height: 52%;
}

#heavenView #heavenHeartPanel .heart-breath-ripple > i {
  position: absolute;

  inset: 50%;

  animation: auto ease 0s 1 normal none running none;

  width: 30%;

  height: 30%;

  border: 0px;

  background: radial-gradient(circle, rgba(230, 195, 122, 0.6), rgba(201, 165, 92, 0.06) 65%, transparent 70%);

  box-shadow: rgba(201, 165, 92, 0.28) 0px 0px 32px;

  transform: translate(-50%, -50%) scale(0.38);
}

#heavenView #heavenHeartPanel .breathing-scene[data-phase="hold"] .heart-breath-ripple > i,
#heavenView #heavenHeartPanel .breathing-scene[data-phase="hold"] .heart-breath-ripple span {
  transform: translate(-50%, -50%) scale(1);
}

#heavenView #heavenHeartPanel .breathing-scene[data-phase="inhale"] .heart-breath-ripple > i,
#heavenView #heavenHeartPanel .breathing-scene[data-phase="inhale"] .heart-breath-ripple span {
  transform: translate(-50%, -50%) scale(1);

  transition-duration: 3s;
}

#heavenView #heavenHeartPanel .breathing-scene[data-phase="exhale"] .heart-breath-ripple > i,
#heavenView #heavenHeartPanel .breathing-scene[data-phase="exhale"] .heart-breath-ripple span {
  transform: translate(-50%, -50%) scale(0.38);

  transition-duration: 4s;
}

#heavenView #heavenHeartPanel .breathing-phase {
  inset: 50% auto auto 50%;

  transform: translate(-50%, -50%);
}

#heavenView #heavenHeartPanel .heart-coin-face {
  padding: 0px;
}

#heavenView #heavenHeartPanel .heart-coin-face::before {
  width: auto;

  height: auto;

  inset: 9px;

  border: 1px solid rgba(65, 42, 11, 0.5);

  border-radius: 50%;

  background: transparent;

  box-shadow: rgba(239, 205, 113, 0.25) 0px 0px 0px 1px;

  transform: none;
}

#heavenView #heavenHeartPanel .heart-coin-face::after {
  width: 27%;

  height: 27%;

  inset: 36.5% auto auto 36.5%;

  border-radius: 1px;

  background: var(--wt-bg);

  transform: none;
}

#heavenView #heavenHeartPanel .heart-return-button {
  position: absolute;

  inset: 14px auto auto 14px;

  z-index: 8;

  margin: 0px;

  color: var(--wt-text);
}

#heavenView #heavenHeartPanel .heart-return-button + .heart-casting-layout,
#heavenView #heavenHeartPanel .heart-return-button + .heart-reveal-layout,
#heavenView #heavenHeartPanel .heart-return-button + .heart-stage-inner {
  min-height: 610px;
}

#heavenView #heavenHeartPanel .heart-stage-inner > h3 {
  color: var(--wt-paper);
}

#heavenView #heavenHeartPanel #restartHeartButton,
#heavenView #heavenHeartPanel .heart-toolbar-controls .button {
  color: var(--wt-text);
}

#heavenView #heavenHeartPanel .heart-hexagram-shell {
  padding: 56px 30px 28px;

  border-color: var(--wt-line);

  background: var(--wt-stage-veil);

  color: var(--wt-text);
}

#heavenView #heavenHeartPanel .heart-reveal-board {
  padding: 56px 30px 28px;

  border-color: var(--wt-line);

  background: var(--wt-stage-veil);

  color: var(--wt-text);
}

#heavenView #heavenHeartPanel .casting-action-panel {
  background: var(--wt-surface-soft);
}

#heavenView #heavenHeartPanel .heart-first-thought {
  background: var(--wt-surface-soft);
}

@scope (#heavenView) {
  * {
    box-sizing: border-box;
  }

  html {
    min-width: 320px;

    background: var(--wt-bg);
  }

  body {
    margin: 0px;

    background: var(--wt-bg);

    color: var(--wt-text);

    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  }

  input {
    font: inherit;
  }

  button {
    font: inherit;

    cursor: pointer;
  }

  [hidden] {
    display: none !important;
  }

  .wt-serif {
    font-family: "Kaiti SC", STKaiti, KaiTi, STSong, SimSun, serif;
  }

  .heaven-shell {
    width: min(1180px, 100% - 32px);

    min-height: 100vh;

    margin: 0px auto;

    padding: 24px 0px 42px;
  }

  .wt-head {
    padding: 12px 8px 0px;

    text-align: center;
  }

  .wt-title-line {
    display: flex;

    align-items: baseline;

    justify-content: center;

    gap: 12px;
  }

  .wt-title-line h1 {
    margin: 0px;

    color: var(--wt-paper);

    font-size: 30px;

    font-weight: 700;

    letter-spacing: 14px;

    text-indent: 14px;
  }

  .wt-title-line > span {
    color: var(--wt-faint);

    font-size: 11px;
  }

  .wt-head .verse {
    margin-top: 8px;

    color: rgba(216, 210, 189, 0.45);

    font-size: 12.5px;

    letter-spacing: 4px;
  }

  .heaven-proverb {
    margin: 8px 0px 0px;

    padding: 10px 2px;

    border-bottom: 1px solid var(--wt-line);

    color: var(--wt-muted);

    font-size: 12px;

    font-weight: 700;

    text-align: right;
  }

  .inline-notice {
    margin: 12px 0px 0px;

    padding: 10px 13px;

    border: 1px solid var(--wt-notice-border);

    background: var(--wt-notice-bg);

    color: var(--wt-notice-text);

    font-size: 12px;

    line-height: 1.6;
  }

  .heaven-panel {
    margin-top: 12px;
  }

  .heaven-controls {
    display: flex;

    align-items: flex-end;

    gap: 12px;
  }

  .heaven-stock-query {
    min-width: 0px;

    display: grid;

    grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.9fr);

    gap: 10px;

    flex: 1 1 0%;
  }

  .form-field {
    display: grid;

    gap: 6px;

    min-width: 0px;
  }

  .form-field > span {
    color: var(--wt-faint);

    font-size: 11px;
  }

  .form-field input,
  .heaven-manual-field input,
  .heaven-manual-field select {
    width: 100%;

    min-height: 38px;

    padding: 8px 11px;

    border: 1px solid var(--wt-control-border);

    border-radius: 7px;

    outline: none;

    background: var(--wt-control-bg);

    color: var(--wt-paper);
  }

  .form-field input:focus,
  .heaven-manual-field input:focus,
  .heaven-manual-field select:focus {
    border-color: var(--wt-gold);

    box-shadow: 0 0 0 2px var(--wt-focus-ring);
  }

  .heaven-stock-identity {
    height: 38px;

    min-width: 0px;

    display: flex;

    align-self: end;

    align-items: center;

    justify-content: flex-start;

    gap: 0.55em;

    padding: 0px 4px;

    white-space: nowrap;
  }

  .heaven-stock-identity > span {
    overflow: hidden;

    font-size: 12.5px;

    line-height: 1;

    text-align: left;

    text-overflow: ellipsis;

    flex: 0 0 auto;

    color: var(--wt-muted);

    font-weight: 400;
  }

  .heaven-stock-identity > strong {
    overflow: hidden;

    font-size: 12.5px;

    line-height: 1;

    text-align: left;

    text-overflow: ellipsis;

    flex: 0 1 auto;

    color: var(--wt-gold-bright);

    font-weight: 700;
  }

  .heaven-trend-actions {
    display: flex;

    gap: 8px;
  }

  .button {
    min-height: 38px;

    padding: 8px 15px;

    border: 1px solid var(--wt-button-border);

    border-radius: 7px;

    background: var(--wt-control-bg);

    color: var(--wt-text);

    transition: border-color 0.2s, background 0.2s, transform 0.2s;
  }

  .button:hover:not(:disabled) {
    border-color: var(--wt-gold);

    background: var(--wt-control-hover);

    transform: translateY(-1px);
  }

  .button.primary {
    border-color: var(--wt-gold);

    background: var(--wt-gold);

    color: rgb(26, 20, 8);

    font-weight: 700;
  }

  .button.primary:hover:not(:disabled) {
    background: rgb(217, 185, 110);
  }

  .button:disabled {
    cursor: not-allowed;

    opacity: 0.38;
  }

  .cast-hint {
    margin: 9px auto 0px;

    color: var(--wt-faint);

    font-size: 11px;

    letter-spacing: 1.5px;

    text-align: center;
  }

  .wt-stage {
    position: relative;

    min-height: 250px;

    overflow: hidden;

    margin-top: 12px;

    border: 1px solid var(--wt-line);

    border-radius: 14px;

    background: var(--wt-stage-bg);
  }

  .wt-stage .stars {
    position: absolute;

    inset: 0px;

    pointer-events: none;
  }

  .wt-stage .stars i {
    position: absolute;

    border-radius: 50%;

    background: var(--wt-star);

    opacity: 0.15;

    animation: 4s ease-in-out 0s infinite alternate none running wt-tw;
  }

  @keyframes wt-tw {
    0% {
      opacity: 0.05;
    }

    100% {
      opacity: 0.5;
    }
  }

  .bagua {
    position: absolute;

    top: 50%;

    left: 50%;

    opacity: 0.1;

    pointer-events: none;

    transform: translate(-50%, -50%);
  }

  .bagua .ring {
    transform-origin: 150px 150px;

    animation: 140s linear 0s infinite normal none running wt-spin;
  }

  .bagua .ring2 {
    transform-origin: 150px 150px;

    animation: 200s linear 0s infinite reverse none running wt-spin;
  }

  @keyframes wt-spin {
    100% {
      transform: rotate(360deg);
    }
  }

  .wt-empty {
    position: relative;

    z-index: 2;

    padding: 66px 20px;

    color: rgba(216, 210, 189, 0.4);

    text-align: center;
  }

  .wt-empty .big {
    margin-bottom: 12px;

    color: rgba(227, 200, 135, 0.5);

    font-size: 34px;

    letter-spacing: 10px;
  }

  .wt-empty p {
    margin: 0px;

    font-size: 12.5px;

    letter-spacing: 2px;

    line-height: 2;
  }

  .stage-in {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns: minmax(540px, 1.35fr) minmax(330px, 0.82fr);

    min-height: 560px;

    background: var(--wt-stage-veil);

    backdrop-filter: blur(1px);
  }

  .hexagram-board {
    min-width: 0px;

    padding: 24px 28px 22px;

    border-right: 1px solid var(--wt-line);

    background: var(--wt-surface);
  }

  .hexagram-heading {
    min-height: 66px;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 18px;

    padding-bottom: 13px;

    border-bottom: 1px solid var(--wt-line);
  }

  .metric-label {
    color: var(--wt-faint);

    font-size: 11px;

    letter-spacing: 1.5px;
  }

  .hexagram-heading h3 {
    margin: 7px 0px 0px;

    color: var(--wt-paper);

    font-family: var(--heaven-serif);

    font-size: 27px;

    font-weight: 650;
  }

  .hexagram-change {
    text-align: right;
  }

  .hexagram-change span {
    display: block;

    color: var(--wt-faint);

    font-size: 11px;
  }

  .hexagram-change strong {
    display: block;

    margin-top: 8px;

    color: var(--wt-gold-bright);

    font-family: var(--heaven-serif);

    font-size: 18px;

    font-weight: 600;
  }

  .hexagram-lines {
    display: grid;

    gap: 0px;

    margin-top: 10px;
  }

  .talent-line-group {
    display: grid;

    grid-template-columns: 34px minmax(0px, 1fr);

    gap: 14px;

    padding: 15px 0px;

    border-bottom: 1px dashed var(--wt-line);

    animation-delay: var(--group-delay);
  }

  .talent-line-group:last-child {
    border-bottom: 0px;
  }

  .talent-seal {
    width: 30px;

    height: 30px;

    display: grid;

    place-items: center;

    margin-top: 9px;

    border: 1px solid rgba(201, 165, 92, 0.35);

    border-radius: 2px;

    color: var(--wt-muted);

    font-family: var(--heaven-serif);
  }

  .talent-line-content > p {
    margin: 0px 0px 5px 8px;

    color: var(--wt-faint);

    font-family: var(--heaven-serif);

    font-size: 11px;
  }

  .hexagram-line-row {
    min-height: 48px;

    display: grid;

    grid-template-columns: 42px 150px minmax(0px, 1fr);

    align-items: center;

    gap: 10px;

    padding: 5px 8px;

    border-left: 2px solid transparent;
  }

  .hexagram-line-row.moving {
    border-left-color: var(--wt-cinnabar);

    background: linear-gradient(90deg, rgba(215, 107, 97, 0.09), transparent 78%);
  }

  .hexagram-position {
    color: var(--wt-muted);

    font-family: var(--heaven-serif);

    font-size: 12px;
  }

  .hex-line {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    position: relative;
  }

  .hex-line i {
    width: 62px;

    height: 7px;

    border-radius: 1px;

    background: var(--wt-hexagram-ink);

    transform-origin: center center;

    animation: heaven-line-draw 520ms var(--ease-out) both;
  }

  .hex-line.yang-line i {
    width: 134px;
  }

  .hex-line b {
    position: absolute;

    right: -4px;

    color: var(--wt-cinnabar);

    font-size: 15px;
  }

  .hexagram-line-detail {
    min-width: 0px;
  }

  .hexagram-line-detail strong {
    display: block;

    color: var(--wt-paper);

    font-family: var(--heaven-serif);

    font-size: 12.5px;

    font-weight: 600;
  }

  .hexagram-line-detail small {
    display: block;

    overflow: hidden;

    margin-top: 3px;

    color: var(--wt-muted);

    font-size: 10.5px;

    line-height: 1.45;

    text-overflow: ellipsis;

    white-space: nowrap;
  }

  .hexagram-text {
    margin: 10px 0px 0px;

    padding: 15px 4px 0px;

    border-top: 1px solid var(--wt-line);

    color: var(--wt-muted);

    font-family: var(--heaven-serif);

    font-size: 14px;

    line-height: 1.9;
  }

  .market-movement-summary {
    margin: 10px 0px 0px;

    padding: 10px 13px;

    border-left: 2px solid var(--wt-cinnabar);

    background: rgba(215, 107, 97, 0.09);

    color: var(--wt-muted);

    font-size: 12px;

    line-height: 1.7;
  }

  .trend-reading-panel {
    min-width: 0px;

    padding: 22px 24px;

    background: var(--wt-surface-raised);
  }

  .trend-score-line {
    min-height: 90px;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 16px;

    padding-bottom: 10px;
  }

  .trend-score-line strong {
    display: block;

    margin-top: 6px;

    color: var(--wt-paper);

    font-family: var(--heaven-serif);

    font-size: 48px;

    font-variant-numeric: tabular-nums;
  }

  .trend-score-line > span {
    margin-top: 10px;

    padding: 5px 10px;

    border: 1px solid var(--wt-cinnabar);

    border-radius: 2px;

    color: var(--wt-cinnabar);

    font-family: var(--heaven-serif);

    font-size: 14px;

    transform: rotate(-3deg);
  }

  .trend-score-meter {
    padding: 4px 0px 16px;

    border-bottom: 1px solid var(--wt-line);
  }

  .trend-score-track {
    height: 4px;

    position: relative;

    border-radius: 2px;

    background: linear-gradient(90deg, rgba(78, 126, 101, 0.65), rgba(216, 210, 189, 0.12) 50%, rgba(215, 107, 97, 0.58));
  }

  .trend-score-track i {
    width: 9px;

    height: 9px;

    position: absolute;

    top: 50%;

    left: var(--momentum-position, 50%);

    border: 2px solid var(--wt-panel);

    border-radius: 50%;

    background: var(--wt-paper);

    transform: translate(-50%, -50%);
  }

  .trend-score-marks {
    display: flex;

    justify-content: space-between;

    margin-top: 8px;

    color: var(--wt-faint);

    font-size: 9.5px;
  }

  .three-talent-readings {
    display: grid;

    gap: 0px;
  }

  .talent-reading {
    padding: 15px 0px;

    border-bottom: 1px solid var(--wt-line-soft);
  }

  .talent-reading > strong {
    color: var(--wt-paper);

    font-family: var(--heaven-serif);

    font-size: 13px;
  }

  .talent-reading > span {
    margin-left: 8px;

    color: var(--wt-muted);

    font-size: 11px;
  }

  .talent-reading > small {
    display: block;

    margin-top: 5px;

    color: var(--wt-faint);

    font-size: 10px;
  }

  .talent-balance {
    display: grid;

    grid-template-columns: 52px minmax(0px, 1fr);

    gap: 5px 8px;

    margin-top: 9px;
  }

  .talent-balance small {
    color: var(--wt-faint);

    font-size: 10px;
  }

  .talent-balance i {
    height: 3px;

    align-self: center;

    position: relative;

    border-radius: 2px;

    background: var(--wt-track);
  }

  .talent-balance b {
    width: var(--talent-value);

    height: 100%;

    display: block;

    border-radius: inherit;

    background: var(--wt-gold);
  }

  .heaven-hex-transition {
    min-height: 190px;

    display: grid;

    grid-template-columns: minmax(118px, 1fr) 74px minmax(118px, 1fr);

    align-items: center;

    gap: 10px;

    margin-top: 14px;

    padding: 16px 2px 4px;

    border-top: 1px solid var(--wt-line);
  }

  .compact-hex-figure {
    min-width: 0px;

    margin: 0px;

    text-align: center;
  }

  .compact-hex-lines {
    width: min(100%, 136px);

    display: flex;

    flex-direction: column;

    gap: 7px;

    margin: 0px auto;
  }

  .compact-hex-line {
    height: 8px;

    display: flex;

    justify-content: center;

    gap: 10px;

    position: relative;
  }

  .compact-hex-line i {
    width: 57px;

    display: block;

    border-radius: 2px;

    background: var(--wt-hexagram-ink);
  }

  .compact-hex-line.yang i {
    width: 124px;
  }

  .compact-hex-line.moving i {
    background: var(--wt-gold-bright);

    box-shadow: 0 0 10px var(--wt-gold-glow);
  }

  .compact-hex-line em {
    position: absolute;

    right: -2px;

    top: 50%;

    color: var(--wt-gold-bright);

    font-family: var(--heaven-serif);

    font-size: 13px;

    font-style: normal;

    transform: translateY(-50%);
  }

  .compact-hex-figure figcaption {
    margin-top: 12px;
  }

  .compact-hex-figure figcaption strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: var(--wt-paper);

    font-family: var(--heaven-serif);

    font-size: 14px;

    font-weight: 600;
  }

  .compact-hex-figure figcaption strong b {
    color: var(--wt-gold-bright);

    font-weight: 600;
  }

  .compact-hex-figure figcaption small {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    margin-top: 4px;

    color: var(--wt-faint);

    font-family: var(--heaven-serif);

    font-size: 10px;
  }

  .compact-hex-change {
    display: grid;

    justify-items: center;

    gap: 5px;

    color: var(--wt-gold);

    font-family: var(--heaven-serif);

    text-align: center;
  }

  .compact-hex-change i {
    font-size: 24px;

    font-style: normal;
  }

  .compact-hex-change span {
    font-size: 11px;

    letter-spacing: 1px;

    white-space: nowrap;
  }

  .heaven-calibration-panel {
    margin-top: 14px;

    border: 1px solid var(--wt-line);

    border-radius: 9px;

    background: var(--wt-panel-gradient);
  }

  .heaven-calibration-panel > summary {
    cursor: pointer;

    list-style: none;
  }

  .heaven-calibration-panel > summary::-webkit-details-marker {
    display: none;
  }

  .heaven-calibration-heading {
    min-height: 74px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 14px 18px;
  }

  .heaven-calibration-heading h3 {
    margin: 4px 0px 0px;

    color: var(--wt-paper);

    font-family: var(--heaven-serif);

    font-size: 19px;
  }

  .heaven-calibration-summary {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 10px;

    color: var(--wt-faint);

    font-size: 10px;
  }

  .heaven-calibration-summary > span {
    display: inline-flex;

    align-items: center;

    gap: 5px;
  }

  .heaven-calibration-summary > strong {
    min-width: 86px;

    padding-left: 10px;

    border-left: 1px solid var(--wt-line);

    color: var(--wt-muted);

    text-align: right;
  }

  .heaven-calibration-summary > strong.is-passed {
    color: var(--wt-green);
  }

  .heaven-calibration-summary > strong.is-failed {
    color: var(--wt-cinnabar);
  }

  .heaven-calibration-summary > strong.is-manual {
    color: var(--wt-gold-bright);
  }

  .fold-label {
    color: var(--wt-gold);

    font-weight: 500;
  }

  .heaven-calibration-panel[open] .fold-label {
    font-size: 0px;
  }

  .heaven-calibration-panel[open] .fold-label::after {
    content: "收起";

    font-size: 10px;
  }

  .calibration-body {
    padding: 0px 18px 18px;

    border-top: 1px solid var(--wt-line-soft);
  }

  .calibration-body > p {
    margin: 13px 0px;

    color: var(--wt-faint);

    font-size: 11px;
  }

  .heaven-line-checks {
    border-top: 1px solid var(--wt-line);
  }

  .heaven-line-check {
    border-bottom: 1px solid var(--wt-line-soft);

    background: rgba(255, 255, 255, 0.02);
  }

  .heaven-line-check.is-failed {
    background: rgba(215, 107, 97, 0.04);
  }

  .heaven-line-check.is-manual {
    background: rgba(201, 165, 92, 0.04);
  }

  .heaven-line-check > summary {
    min-height: 58px;

    display: grid;

    grid-template-columns: 94px minmax(0px, 1fr) 112px 18px;

    align-items: center;

    gap: 14px;

    padding: 8px 10px;

    cursor: pointer;

    list-style: none;
  }

  .heaven-check-state {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(--wt-muted);

    font-size: 11px;
  }

  .status-dot {
    width: 7px;

    height: 7px;

    display: inline-block;

    border-radius: 50%;

    background: var(--wt-faint);
  }

  .status-dot.passed {
    background: var(--wt-green);
  }

  .status-dot.failed {
    background: var(--wt-cinnabar);
  }

  .status-dot.manual {
    background: var(--wt-gold);
  }

  .heaven-check-name strong {
    display: block;

    color: var(--wt-paper);

    font-size: 12px;
  }

  .heaven-check-name small,
  .heaven-check-result small {
    display: block;

    margin-top: 3px;

    color: var(--wt-faint);

    font-size: 10px;
  }

  .heaven-check-result {
    text-align: right;
  }

  .heaven-check-result b {
    display: block;

    color: var(--wt-gold-bright);

    font-family: var(--heaven-serif);

    font-size: 12px;
  }

  .heaven-line-check-body {
    padding: 4px 10px 16px 118px;
  }

  .heaven-check-evidence,
  .heaven-check-reasons {
    margin: 0px 0px 10px;

    padding-left: 18px;

    color: rgb(211, 145, 138);

    font-size: 11px;

    line-height: 1.7;
  }

  .heaven-manual-fields {
    display: grid;

    grid-template-columns: repeat(2, minmax(0px, 1fr));

    gap: 8px;
  }

  .heaven-manual-field {
    display: grid;

    grid-template-columns: minmax(110px, 1fr) minmax(130px, 0.8fr);

    align-items: center;

    gap: 10px;

    padding: 8px;

    border: 1px solid var(--wt-line-soft);
  }

  .heaven-manual-field > span:first-child {
    color: var(--wt-muted);

    font-size: 11px;
  }

  .heaven-manual-field small {
    display: block;

    margin-top: 2px;

    color: var(--wt-faint);

    font-size: 9px;
  }

  .heaven-field-control {
    display: flex;

    align-items: center;

    gap: 5px;
  }

  .heaven-field-control b {
    color: var(--wt-faint);

    font-size: 10px;
  }

  .calibration-note-field {
    margin-top: 12px;
  }

  .dialog-actions {
    display: flex;

    justify-content: flex-end;

    gap: 8px;

    margin-top: 12px;
  }

  .heaven-data-loading .heaven-panel {
    opacity: 0.45;

    pointer-events: none;
  }

  .heaven-data-loading::after {
    content: "汇集天 · 人 · 地数据";

    position: fixed;

    top: 48%;

    left: 50%;

    z-index: 20;

    padding: 10px 16px;

    border: 1px solid var(--wt-line);

    border-radius: 7px;

    background: var(--wt-loading-bg);

    color: var(--wt-muted);

    font-family: var(--heaven-serif);

    font-size: 12px;

    letter-spacing: 0.16em;

    transform: translate(-50%, -50%);
  }

  .heaven-performance-pending .talent-line-group {
    opacity: 0.34;

    transform: translateY(7px);

    animation: auto ease 0s 1 normal none running none;

    transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
  }

  .heaven-performance-pending .talent-line-group.is-ready {
    opacity: 1;

    transform: translateY(0px);
  }

  .heaven-performance-pending .talent-seal {
    filter: grayscale(1);

    opacity: 0.4;

    transition: color 420ms, border-color 420ms, filter 420ms, opacity 420ms, box-shadow 420ms;
  }

  .heaven-performance-pending .talent-line-group.is-ready .talent-seal {
    border-color: rgba(201, 165, 92, 0.7);

    color: var(--wt-gold-bright);

    filter: none;

    opacity: 1;

    box-shadow: rgba(201, 165, 92, 0.12) 0px 0px 18px;
  }

  .heaven-performance-pending .hexagram-line-row .hex-line i {
    opacity: 0.12;

    filter: blur(3px);

    transform: scaleX(0.16);

    animation: auto ease 0s 1 normal none running none;

    transition: opacity 620ms var(--ease-out),filter 620ms var(--ease-out),transform 620ms var(--ease-out);
  }

  .heaven-performance-pending .hexagram-line-row .hex-line b,
  .heaven-performance-pending .hexagram-line-row .hexagram-line-detail,
  .heaven-performance-pending .hexagram-line-row .hexagram-position {
    opacity: 0;

    filter: blur(4px);

    transition: opacity 520ms, filter 520ms;
  }

  .heaven-performance-pending .hexagram-line-row.is-ready .hex-line i {
    opacity: 1;

    filter: blur(0px);

    transform: scaleX(1);
  }

  .heaven-performance-pending .hexagram-line-row.is-ready .hex-line b,
  .heaven-performance-pending .hexagram-line-row.is-ready .hexagram-line-detail,
  .heaven-performance-pending .hexagram-line-row.is-ready .hexagram-position {
    opacity: 1;

    filter: blur(0px);
  }

  .heaven-performance-pending #marketHexagramName,
  .heaven-performance-pending #marketTransformedName,
  .heaven-performance-pending .hexagram-change,
  .heaven-performance-pending .market-movement-summary,
  .heaven-performance-pending .trend-score-line > *,
  .heaven-performance-pending .trend-score-meter {
    opacity: 0;

    filter: blur(8px);

    transform: translateY(6px);

    transition: opacity 800ms var(--ease-out),filter 800ms var(--ease-out),transform 800ms var(--ease-out);
  }

  .performance-change-ready #marketTransformedName,
  .performance-change-ready .hexagram-change,
  .performance-score-ready .trend-score-line > *,
  .performance-score-ready .trend-score-meter,
  .performance-text-ready .market-movement-summary,
  .performance-title-ready #marketHexagramName {
    opacity: 1;

    filter: blur(0px);

    transform: translateY(0px);
  }

  .heaven-performance-pending #heavenMomentumNeedle {
    left: 50%;

    opacity: 0;
  }

  .performance-score-ready #heavenMomentumNeedle {
    left: var(--momentum-position,50%);

    opacity: 1;

    transition: left 1.5s cubic-bezier(0.18, 0.85, 0.3, 1.22), opacity 300ms;
  }

  .heaven-performance-pending .talent-reading {
    opacity: 0;

    transform: translateY(6px);

    transition: opacity 500ms ease,transform 500ms var(--ease-out);
  }

  .heaven-performance-pending .talent-reading.is-ready {
    opacity: 1;

    transform: none;
  }

  .heaven-performance-pending .heaven-hex-transition {
    opacity: 0;

    filter: blur(5px);

    transform: translateY(5px);

    transition: opacity 680ms ease,filter 680ms ease,transform 680ms var(--ease-out);
  }

  .performance-change-ready .heaven-hex-transition {
    opacity: 1;

    filter: blur(0px);

    transform: none;
  }

  .heaven-typing::after {
    content: "";

    display: inline-block;

    width: 1px;

    height: 1em;

    margin-left: 3px;

    background: currentcolor;

    vertical-align: -0.1em;

    animation: 0.8s steps(1) 0s infinite normal none running blink;
  }

  @keyframes heaven-line-draw {
    0% {
      opacity: 0.2;

      transform: scaleX(0.15);
    }

    100% {
      opacity: 1;

      transform: scaleX(1);
    }
  }

  @keyframes heaven-group-enter {
    0% {
      opacity: 0;

      transform: translateY(6px);
    }

    100% {
      opacity: 1;

      transform: none;
    }
  }

  @keyframes blink {
    50% {
      opacity: 0;
    }
  }

  .heaven-reading-dialog {
    padding: 0px;

    border: 1px solid var(--wt-line);

    border-radius: 12px;

    background: var(--wt-panel);

    color: var(--wt-text);

    box-shadow: rgba(0, 0, 0, 0.48) 0px 30px 90px;

    width: min(1080px, -24px + 100vw);

    height: min(760px, -24px + 100dvh);

    grid-template-rows: auto auto minmax(0px, 1fr);
  }

  .heaven-reading-dialog[open] {
    display: grid;
  }

  .heaven-reading-dialog::backdrop {
    background: rgba(4, 8, 16, 0.72);

    backdrop-filter: blur(4px);
  }

  .dialog-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    padding: 15px 18px;

    border-bottom: 1px solid var(--wt-line);
  }

  .dialog-header h2 {
    margin: 3px 0px 0px;

    color: var(--wt-paper);

    font-family: var(--heaven-serif);

    font-size: 20px;
  }

  .dialog-eyebrow {
    color: var(--wt-gold);

    font-size: 10px;

    letter-spacing: 1.5px;
  }

  .icon-button {
    width: 34px;

    height: 34px;

    border: 1px solid var(--wt-line);

    border-radius: 50%;

    background: transparent;

    color: var(--wt-muted);

    font-size: 22px;
  }

  .heaven-reading-tabs {
    display: flex;

    padding: 0px 18px;

    border-bottom: 1px solid var(--wt-line);
  }

  .heaven-reading-tabs button {
    padding: 11px 2px 9px;

    border-width: 0px 0px 2px;

    border-style: none none solid;

    border-color: currentcolor currentcolor transparent;

    border-image: none;

    background: transparent;

    color: var(--wt-faint);
  }

  .heaven-reading-tabs button + button {
    margin-left: 24px;
  }

  .heaven-reading-tabs button.active {
    border-bottom-color: var(--wt-gold);

    color: var(--wt-gold-bright);
  }

  .heaven-reading-current {
    min-height: 0px;

    overflow-y: auto;

    padding: 22px 28px 28px;
  }

  .heaven-reading-loading {
    height: 100%;

    min-height: 0px;
  }

  .heaven-reading-loading canvas {
    width: 100%;

    height: 100%;

    min-height: 0px;

    display: block;
  }

  .empty-state {
    padding: 48px 20px;

    color: var(--wt-faint);

    text-align: center;
  }

  .heaven-reading-history-detail > header,
  .heaven-reading-result > header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 18px;
  }

  .heaven-reading-history-detail > header span,
  .heaven-reading-result > header span {
    color: var(--wt-gold);

    font-family: var(--heaven-serif);

    font-size: 12px;

    font-weight: 700;
  }

  .heaven-reading-history-detail h3,
  .heaven-reading-result h3 {
    margin: 5px 0px 0px;

    color: var(--wt-paper);

    font-family: var(--heaven-serif);

    font-size: 22px;

    font-weight: 600;
  }

  .heaven-reading-history-detail time,
  .heaven-reading-result time {
    color: var(--wt-faint);

    font-size: 11px;
  }

  .heaven-reading-history-detail > p,
  .heaven-reading-result > p {
    color: var(--wt-muted);

    font-size: 12px;
  }

  .heaven-reading-answer {
    margin-top: 22px;

    color: var(--wt-text);

    font-family: var(--heaven-serif);

    font-size: 15px;

    line-height: 1.95;
  }

  .mentor-answer-heading {
    display: block;

    margin: 20px 0px 7px;

    color: var(--wt-gold-bright);

    font-size: 16px;
  }

  .mentor-answer-paragraph {
    margin: 0px 0px 10px;
  }

  .mentor-answer-list {
    margin: 0px 0px 12px;

    padding-left: 24px;
  }

  .heaven-reading-history {
    min-height: 0px;

    display: grid;

    grid-template-columns: 270px minmax(0px, 1fr);

    overflow: hidden;
  }

  .heaven-reading-history-list-wrap {
    overflow-y: auto;

    border-right: 1px solid var(--wt-line);

    background: rgba(255, 255, 255, 0.02);
  }

  .heaven-reading-history-heading {
    display: flex;

    justify-content: space-between;

    padding: 15px 16px 10px;

    color: var(--wt-faint);

    font-size: 11px;
  }

  .heaven-reading-history-item {
    width: 100%;

    display: grid;

    gap: 4px;

    padding: 13px 16px;

    border-right: 0px;

    border-bottom: 0px;

    border-left: 0px;

    border-image: none;

    border-top: 1px solid var(--wt-line);

    background: transparent;

    color: var(--wt-text);

    text-align: left;
  }

  .heaven-reading-history-item.active,
  .heaven-reading-history-item:hover {
    background: rgba(201, 165, 92, 0.08);

    box-shadow: inset 3px 0 var(--wt-gold);
  }

  .heaven-reading-history-item span {
    overflow: hidden;

    font-size: 13px;

    font-weight: 700;

    text-overflow: ellipsis;

    white-space: nowrap;
  }

  .heaven-reading-history-item small,
  .heaven-reading-history-item time {
    color: var(--wt-faint);

    font-size: 10px;
  }

  .heaven-reading-history-detail {
    min-width: 0px;

    overflow-y: auto;

    padding: 24px 28px;
  }
}

@scope (#heavenView) {
  @media (max-width: 960px) {
    .heaven-shell {
      width: min(100% - 20px, 760px);
    }

    .heaven-controls {
      align-items: stretch;

      flex-direction: column;
    }

    .heaven-stock-query {
      grid-template-columns: 1fr;
    }

    .heaven-trend-actions {
      justify-content: flex-end;
    }

    .stage-in {
      grid-template-columns: 1fr;
    }

    .hexagram-board {
      border-right: 0px;

      border-bottom: 1px solid var(--wt-line);
    }

    .wt-stage .bagua {
      width: 440px;

      height: 440px;
    }
  }
}

@scope (#heavenView) {
  @media (max-width: 640px) {
    .heaven-shell {
      width: 100%;

      padding: 16px 10px 28px;
    }

    .wt-title-line {
      display: grid;

      gap: 5px;
    }

    .heaven-proverb {
      text-align: center;
    }

    .heaven-trend-actions {
      display: grid;

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

    .button {
      padding-inline: 8px;
    }

    .wt-empty {
      padding: 55px 14px;
    }

    .wt-empty .big {
      font-size: 28px;
    }

    .wt-empty p {
      font-size: 11px;

      letter-spacing: 1px;
    }

    .hexagram-board,
    .trend-reading-panel {
      padding: 18px 13px;
    }

    .hexagram-heading {
      min-height: auto;
    }

    .hexagram-heading h3 {
      font-size: 20px;
    }

    .hexagram-line-row {
      grid-template-columns: 34px 104px minmax(0px, 1fr);

      gap: 5px;

      padding-inline: 2px;
    }

    .hex-line i {
      width: 42px;
    }

    .hex-line.yang-line i {
      width: 94px;
    }

    .hexagram-line-detail small {
      white-space: normal;
    }

    .heaven-calibration-heading {
      align-items: flex-start;

      flex-direction: column;
    }

    .heaven-calibration-summary {
      justify-content: flex-start;
    }

    .heaven-line-check > summary {
      grid-template-columns: 78px minmax(0px, 1fr) 18px;

      gap: 8px;
    }

    .heaven-check-result {
      grid-column: 2;

      text-align: left;
    }

    .heaven-line-check-body {
      padding-left: 10px;
    }

    .heaven-manual-fields,
    .heaven-manual-field {
      grid-template-columns: 1fr;
    }

    .heaven-reading-dialog {
      width: calc(-12px + 100vw);

      height: calc(-12px + 100dvh);
    }

    .heaven-reading-current {
      padding: 18px 15px;
    }

    .heaven-reading-history {
      grid-template-columns: 1fr;

      overflow-y: auto;
    }

    .heaven-reading-history-list-wrap {
      max-height: 210px;

      border-right: 0px;

      border-bottom: 1px solid var(--wt-line);
    }

    .heaven-reading-history-detail {
      overflow: visible;

      padding: 18px 15px;
    }

    .heaven-hex-transition {
      min-height: 172px;

      grid-template-columns: minmax(96px, 1fr) 48px minmax(96px, 1fr);

      gap: 5px;
    }

    .compact-hex-lines {
      width: min(100%, 112px);
    }

    .compact-hex-line {
      gap: 8px;
    }

    .compact-hex-line i {
      width: 47px;
    }

    .compact-hex-line.yang i {
      width: 102px;
    }

    .compact-hex-change span {
      font-size: 10px;

      white-space: normal;
    }
  }
}

@media (min-width: 768px) {
  body[data-active-view="heavenView"] {
    --wt-bg: #0b1120;
  }

  body[data-active-view="heavenView"] .overview-strip {
    display: flex;

    flex: 0 0 var(--summary-height);
  }

  :root body[data-active-view="heavenView"] .app-main {
    height: var(--workspace-height);

    min-height: 0px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: var(--wt-bg);
  }

  body[data-active-view="heavenView"] #heavenView.heaven-shell {
    width: 100%;

    max-width: none;

    min-height: 0px;

    flex: 1 1 auto;

    margin: 0px;

    padding: var(--page-pad-y) var(--page-pad-x);

    overflow: hidden auto;

    background: var(--wt-bg);

    color: var(--wt-text);
  }

  body[data-active-view="heavenView"] #heavenView.heaven-shell > * {
    width: min(var(--table-wide), 100%);

    margin-right: auto;

    margin-left: auto;
  }

  body[data-active-view="heavenView"] #heavenView.heaven-shell > .heaven-panel {
    background: transparent;
  }

  body[data-active-view="heavenView"] #heavenView #heavenHeartPanel {
    min-height: 0px;

    background: transparent;

    color: var(--wt-text);

    width: min(var(--table-wide), 100%) !important;

    max-width: var(--table-wide) !important;

    margin-right: auto !important;

    margin-left: auto !important;
  }

  body[data-active-view="heavenView"] #heavenView #heavenHeartPanel .heart-stage,
  body[data-active-view="heavenView"] #heavenView #heavenHeartPanel .heart-stage-inner {
    min-height: 610px;

    background-color: transparent;

    background-image: none;
  }
}

#heavenView #heavenFortunePanel .qi-framework-layers {
  display: block;

  margin-top: 8px;

  border: 0px;
}

#heavenView #heavenFortunePanel .fortune-basics .qi-framework-panel {
  padding: 0px;
}

#heavenView #heavenFortunePanel .fortune-basics .workspace-heading {
  min-height: 0px;

  margin: 0px;

  padding: 0px 0px 11px;
}

#heavenView #heavenFortunePanel .qi-framework-layer {
  min-height: 0px;

  grid-template-columns: 72px 70px minmax(0px, 1fr);

  gap: 9px;

  padding: 11px 0px;

  border-right: 0px;

  border-bottom: 1px solid var(--wt-line-soft);
}

#heavenView #heavenFortunePanel .qi-framework-layer:nth-child(2) {
  min-height: 0px;

  grid-template-columns: 72px 70px minmax(0px, 1fr);

  gap: 9px;

  padding: 11px 0px;

  border-right: 0px;

  border-bottom: 1px solid var(--wt-line-soft);
}

#heavenView #heavenFortunePanel .qi-framework-layer:nth-child(3) {
  min-height: 0px;

  grid-template-columns: 72px 70px minmax(0px, 1fr);

  gap: 9px;

  padding: 11px 0px;

  border-right: 0px;

  border-bottom: 1px solid var(--wt-line-soft);
}

#heavenView #heavenFortunePanel .qi-framework-layer:last-child {
  min-height: 0px;

  grid-template-columns: 72px 70px minmax(0px, 1fr);

  gap: 9px;

  padding: 11px 0px;

  border-right: 0px;

  border-bottom: 0px;
}

#heavenView #heavenFortunePanel .qi-framework-layer > span {
  color: var(--wt-faint);

  font-size: 10px;

  font-weight: 400;
}

#heavenView #heavenFortunePanel .qi-framework-layer > strong {
  margin: 0px;

  color: var(--wt-gold-bright);

  font-size: 14px;
}

#heavenView #heavenFortunePanel .qi-framework-layer > small {
  min-height: 0px;

  margin: 0px;

  color: var(--wt-muted);

  font-size: 10px;

  line-height: 1.6;
}

#heavenView #heavenFortunePanel .qi-framework-layer > div {
  width: auto;

  height: 3px;

  grid-column: 2 / -1;

  margin: 0px;

  border-radius: 2px;
}

#heavenView #heavenFortunePanel .personal-fortune-panel {
  margin-top: 14px;

  padding: 14px 0px 0px;

  border: 0px;

  background: transparent;
}

#heavenView #heavenFortunePanel .personal-fortune-result {
  display: block;

  margin-top: 0px;

  border: 0px;
}

#heavenView #heavenFortunePanel .personal-primary-grid {
  grid-template-columns: 112px minmax(0px, 1fr);

  gap: 12px;

  margin-top: 12px;

  border: 0px;
}

#heavenView #heavenFortunePanel .personal-preferences {
  grid-template-columns: 1fr;

  grid-template-rows: auto auto;

  align-content: center;

  gap: 10px;
}

#heavenView #heavenFortunePanel .personal-preferences > section {
  min-height: 0px;

  display: block;

  padding: 0px;

  border: 0px;
}

#heavenView #heavenFortunePanel .personal-day-master {
  min-height: 118px;

  padding: 0px 12px 0px 0px;

  border-right: 1px solid var(--wt-line);
}

.heaven-reading-dialog.wentian-v2-dialog {
  --wt-panel: #0d1526;

  --wt-text: #d8d2bd;

  --wt-paper: #e8e2cd;

  --wt-gold: #c9a55c;

  --wt-gold-bright: #e3c887;

  --wt-cinnabar: #d76b61;

  --wt-line: rgba(201, 165, 92, 0.18);

  --wt-line-soft: rgba(255, 255, 255, 0.06);

  --wt-muted: rgba(216, 210, 189, 0.55);

  --wt-faint: rgba(216, 210, 189, 0.35);

  --wt-notice-bg: rgba(215, 107, 97, 0.08);

  --wt-notice-border: rgba(215, 107, 97, 0.35);

  --wt-notice-text: #efb0a9;

  --wt-backdrop: rgba(4, 8, 16, 0.72);

  --wt-dialog-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);

  --wt-soft-gold: rgba(201, 165, 92, 0.08);

  --wt-history-bg: rgba(255, 255, 255, 0.02);

  --heaven-serif: "Kaiti SC", "STKaiti", "KaiTi", "STSong", "SimSun", serif;

  width: min(1080px, -24px + 100vw);

  height: min(760px, -24px + 100dvh);

  max-height: calc(-24px + 100dvh);

  padding: 0px;

  grid-template-rows: auto auto minmax(0px, 1fr);

  border: 1px solid var(--wt-line);

  border-radius: 12px;

  background: var(--wt-panel);

  color: var(--wt-text);

  box-shadow: var(--wt-dialog-shadow);
}

.heaven-reading-dialog.wentian-v2-dialog[open] {
  display: grid;
}

.heaven-reading-dialog.wentian-v2-dialog::backdrop {
  background: var(--wt-backdrop);

  backdrop-filter: blur(4px);
}

.wentian-v2-dialog .heaven-reading-tabs {
  display: flex;

  padding: 0px 18px;

  border-bottom: 1px solid var(--wt-line);
}

.wentian-v2-dialog .heaven-reading-tabs button {
  padding: 11px 2px 9px;

  border-width: 0px 0px 2px;

  border-style: none none solid;

  border-color: currentcolor currentcolor transparent;

  border-image: none;

  background: transparent;

  color: var(--wt-faint);
}

.wentian-v2-dialog .heaven-reading-tabs button + button {
  margin-left: 24px;
}

.wentian-v2-dialog .heaven-reading-tabs button.active {
  border-bottom-color: var(--wt-gold);

  color: var(--wt-gold-bright);
}

.wentian-v2-dialog .heaven-reading-current {
  min-height: 0px;

  max-height: none;

  overflow-y: auto;

  padding: 22px 28px 28px;
}

.wentian-v2-dialog .heaven-reading-loading {
  height: 100%;

  min-height: 0px;
}

.wentian-v2-dialog .heaven-reading-loading canvas {
  width: 100%;

  height: 100%;

  min-height: 0px;

  display: block;
}

.wentian-v2-dialog .heaven-reading-history-detail > header,
.wentian-v2-dialog .heaven-reading-result > header {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 18px;
}

.wentian-v2-dialog .heaven-reading-history-detail > header span,
.wentian-v2-dialog .heaven-reading-result > header span {
  color: var(--wt-gold);

  font-family: var(--heaven-serif);

  font-size: 12px;

  font-weight: 700;
}

.wentian-v2-dialog .heaven-reading-history-detail h3,
.wentian-v2-dialog .heaven-reading-result h3 {
  margin: 5px 0px 0px;

  color: var(--wt-paper);

  font-family: var(--heaven-serif);

  font-size: 22px;

  font-weight: 600;
}

.wentian-v2-dialog .heaven-reading-history-detail time,
.wentian-v2-dialog .heaven-reading-result time {
  color: var(--wt-faint);

  font-size: 11px;
}

.wentian-v2-dialog .heaven-reading-history-detail > p,
.wentian-v2-dialog .heaven-reading-result > p {
  color: var(--wt-muted);

  font-size: 12px;
}

.wentian-v2-dialog .heaven-reading-answer {
  margin-top: 22px;

  color: var(--wt-text);

  font-family: var(--heaven-serif);

  font-size: 15px;

  line-height: 1.95;
}

.wentian-v2-dialog .heaven-reading-history {
  min-height: 0px;

  max-height: none;

  display: grid;

  grid-template-columns: 270px minmax(0px, 1fr);

  overflow: hidden;
}

.wentian-v2-dialog .heaven-reading-history-list-wrap {
  overflow-y: auto;

  border-right: 1px solid var(--wt-line);

  background: var(--wt-history-bg);
}

.wentian-v2-dialog .heaven-reading-history-heading {
  display: flex;

  justify-content: space-between;

  padding: 15px 16px 10px;

  color: var(--wt-faint);

  font-size: 11px;
}

.wentian-v2-dialog .heaven-reading-history-item {
  width: 100%;

  display: grid;

  gap: 4px;

  padding: 13px 16px;

  border-right: 0px;

  border-bottom: 0px;

  border-left: 0px;

  border-image: none;

  border-top: 1px solid var(--wt-line);

  background: transparent;

  color: var(--wt-text);

  text-align: left;
}

.wentian-v2-dialog .heaven-reading-history-item.active,
.wentian-v2-dialog .heaven-reading-history-item:hover {
  background: rgba(201, 165, 92, 0.08);

  box-shadow: inset 3px 0 var(--wt-gold);
}

.wentian-v2-dialog .heaven-reading-history-item span {
  overflow: hidden;

  font-size: 13px;

  font-weight: 700;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.wentian-v2-dialog .heaven-reading-history-item small,
.wentian-v2-dialog .heaven-reading-history-item time {
  color: var(--wt-faint);

  font-size: 10px;
}

.wentian-v2-dialog .heaven-reading-history-detail {
  min-width: 0px;

  overflow-y: auto;

  padding: 24px 28px;
}

@media (max-width: 640px) {
  body[data-active-view="heavenView"] #heavenView.heaven-shell {
    width: 100%;

    padding: 16px 10px 28px;
  }

  .heaven-reading-dialog.wentian-v2-dialog {
    width: calc(-12px + 100vw);

    height: calc(-12px + 100dvh);

    max-height: calc(-12px + 100dvh);
  }

  .wentian-v2-dialog .heaven-reading-current {
    padding: 18px 15px;
  }

  .wentian-v2-dialog .heaven-reading-history {
    grid-template-columns: 1fr;

    overflow-y: auto;
  }

  .wentian-v2-dialog .heaven-reading-history-list-wrap {
    max-height: 210px;

    border-right: 0px;

    border-bottom: 1px solid var(--wt-line);
  }

  .wentian-v2-dialog .heaven-reading-history-detail {
    overflow: visible;

    padding: 18px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #heavenView *,
  #heavenView ::after,
  #heavenView ::before {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}

@scope (#heavenView) {
  .heaven-panel:not(.active-heaven-panel) {
    display: none;
  }

  .fortune-heading {
    min-height: 64px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 18px;

    padding: 0px 2px 10px;
  }

  .fortune-calendar-heading h3 {
    margin: 5px 0px 0px;

    color: var(--wt-paper);

    font-size: 19px;

    font-weight: 600;
  }

  .fortune-heading-actions {
    display: flex;

    align-items: flex-end;

    gap: 8px;
  }

  .qi-time-field {
    display: grid;

    gap: 5px;

    color: var(--wt-faint);

    font-size: 10px;
  }

  .qi-time-field input {
    min-height: 38px;

    padding: 7px 10px;

    border: 1px solid var(--wt-control-border);

    border-radius: 7px;

    outline: 0px;

    background: var(--wt-control-bg);

    color: var(--wt-paper);

    color-scheme: inherit;
  }

  .fortune-stage {
    min-height: 570px;

    display: grid;

    grid-template-columns: minmax(0px, 1.55fr) minmax(350px, 0.78fr);

    position: relative;

    overflow: hidden;

    border: 1px solid var(--wt-line);

    border-radius: 14px;

    background: var(--wt-fortune-stage-bg);
  }

  .fortune-stage > .stars,
  .heart-stage-shell > .stars {
    position: absolute;

    inset: 0px;

    pointer-events: none;
  }

  .fortune-stage > .stars i,
  .heart-stage-shell > .stars i {
    position: absolute;

    border-radius: 50%;

    background: var(--wt-paper);

    opacity: 0.15;

    animation: 4s ease-in-out 0s infinite alternate none running wt-tw;
  }

  .fortune-bagua {
    left: 32%;

    width: 620px;

    height: 620px;

    opacity: 0.055;
  }

  .qi-climate-panel {
    min-width: 0px;

    display: grid;

    align-content: center;

    justify-items: center;

    position: relative;

    z-index: 2;

    padding: 56px 52px;

    border-right: 1px solid var(--wt-line);

    text-align: center;
  }

  .qi-climate-panel::before {
    content: "";

    position: absolute;

    border-radius: 50%;

    filter: blur(34px);

    opacity: 0.2;

    width: 250px;

    height: 250px;

    top: 22%;

    left: 19%;

    background: var(--wt-gold);
  }

  .qi-climate-panel::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    filter: blur(34px);

    opacity: 0.2;

    width: 190px;

    height: 190px;

    right: 18%;

    bottom: 18%;

    background: var(--wt-cinnabar);
  }

  .heart-stage-index,
  .qi-section-mark {
    position: relative;

    z-index: 1;

    color: var(--wt-cinnabar);

    font-family: var(--heaven-serif);

    font-size: 11px;

    letter-spacing: 2px;
  }

  .qi-climate-caption {
    position: relative;

    z-index: 1;

    margin: 18px 0px 0px;

    color: var(--wt-faint);

    font-size: 12px;

    letter-spacing: 5px;
  }

  .qi-climate-panel h3 {
    position: relative;

    z-index: 1;

    margin: 14px 0px 0px;

    color: var(--wt-paper);

    font-size: 48px;

    font-weight: 500;

    letter-spacing: 5px;
  }

  .qi-climate-panel > strong {
    position: relative;

    z-index: 1;

    margin-top: 18px;

    color: var(--wt-gold-bright);

    font-size: 16px;

    font-weight: 500;

    letter-spacing: 2px;
  }

  .human-field-summary {
    max-width: 650px;

    position: relative;

    z-index: 1;

    margin: 20px auto 0px;

    color: var(--wt-muted);

    font-size: 12px;

    line-height: 2;
  }

  .fortune-basics {
    min-width: 0px;

    position: relative;

    z-index: 2;

    padding: 16px;

    background: var(--wt-surface);

    backdrop-filter: blur(5px);
  }

  .workspace-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding-bottom: 11px;

    border-bottom: 1px solid var(--wt-line);
  }

  .workspace-heading > div > span {
    color: var(--wt-cinnabar);

    font-family: var(--heaven-serif);

    font-size: 10px;

    letter-spacing: 1px;
  }

  .workspace-heading h3 {
    margin: 3px 0px 0px;

    color: var(--wt-paper);

    font-size: 17px;

    font-weight: 600;
  }

  .text-fold-button {
    padding: 5px 0px;

    border: 0px;

    background: transparent;

    color: var(--wt-faint);

    font-size: 10px;
  }

  .qi-framework-principle {
    margin: 10px 0px 0px;

    color: var(--wt-faint);

    font-size: 10px;

    line-height: 1.65;
  }

  .qi-framework-layers {
    margin-top: 8px;
  }

  .qi-framework-layers.is-folded {
    display: none;
  }

  .qi-framework-layer {
    display: grid;

    grid-template-columns: 72px 70px minmax(0px, 1fr);

    align-items: center;

    gap: 9px;

    padding: 11px 0px;

    border-bottom: 1px solid var(--wt-line-soft);
  }

  .qi-framework-layer:last-child {
    border-bottom: 0px;
  }

  .qi-framework-layer > span {
    color: var(--wt-faint);

    font-size: 10px;
  }

  .qi-framework-layer > strong {
    color: var(--wt-gold-bright);

    font-family: var(--heaven-serif);

    font-size: 14px;
  }

  .qi-framework-layer > small {
    color: var(--wt-muted);

    font-size: 10px;

    line-height: 1.6;
  }

  .phase-wood {
    background: rgb(110, 159, 117);
  }

  .phase-fire {
    background: rgb(215, 107, 97);
  }

  .phase-earth {
    background: rgb(201, 154, 77);
  }

  .phase-metal {
    background: rgb(216, 210, 189);
  }

  .phase-water {
    background: rgb(104, 142, 186);
  }

  .phase-text-wood {
    color: rgb(127, 184, 138);
  }

  .phase-text-fire {
    color: rgb(224, 123, 112);
  }

  .phase-text-earth {
    color: rgb(217, 173, 96);
  }

  .phase-text-metal {
    color: rgb(227, 221, 201);
  }

  .phase-text-water {
    color: rgb(127, 163, 205);
  }

  .personal-fortune-panel {
    margin-top: 14px;

    padding: 14px 0px 0px;

    border: 0px;

    border-radius: 0px;

    background: transparent;
  }

  .personal-profile-empty {
    padding: 30px 12px;

    color: var(--wt-faint);

    font-size: 11px;

    text-align: center;
  }

  .personal-primary-grid {
    display: grid;

    grid-template-columns: 112px minmax(0px, 1fr);

    gap: 12px;

    margin-top: 12px;
  }

  .personal-day-master {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    min-height: 118px;

    border-right: 1px solid var(--wt-line);
  }

  .personal-day-master-label {
    color: var(--wt-faint);

    font-size: 10px;
  }

  .personal-day-master-copy small {
    color: var(--wt-faint);

    font-size: 9px;
  }

  .personal-preferences {
    display: grid;

    align-content: center;

    gap: 10px;
  }

  .personal-preferences section > span {
    display: block;

    margin-bottom: 5px;

    color: var(--wt-faint);

    font-size: 10px;
  }

  .personal-preference-line {
    display: flex;

    align-items: baseline;

    gap: 8px;

    margin: 3px 0px;
  }

  .personal-preference-line strong {
    width: 30px;

    color: var(--wt-muted);

    font-size: 9px;
  }

  .personal-preference-line p {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin: 0px;
  }

  .personal-preference-line em {
    padding: 2px 5px;

    border: 1px solid var(--wt-line);

    border-radius: 4px;

    color: var(--wt-paper);

    font-size: 9px;

    font-style: normal;
  }

  .fortune-sector-catalog {
    width: 100%;

    margin-top: 12px;

    overflow: hidden;

    border: 1px solid var(--wt-line);

    border-radius: 10px;

    background: var(--wt-surface);
  }

  .fortune-sector-catalog > summary {
    min-height: 56px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    padding: 10px 16px;

    cursor: pointer;

    list-style: none;
  }

  .fortune-sector-catalog > summary::-webkit-details-marker {
    display: none;
  }

  .fortune-sector-catalog > summary > span:first-child {
    display: grid;

    gap: 3px;
  }

  .fortune-sector-catalog > summary small {
    color: var(--wt-cinnabar);

    font-size: 9px;

    letter-spacing: 1px;
  }

  .fortune-sector-catalog > summary strong {
    color: var(--wt-paper);

    font-size: 15px;

    font-weight: 600;
  }

  .fortune-sector-summary-hint {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--wt-faint);

    font-size: 10px;
  }

  .fortune-sector-summary-hint i {
    font-size: 14px;

    font-style: normal;

    transition: transform 0.35s;
  }

  .fortune-sector-catalog[open] .fortune-sector-summary-hint i {
    transform: rotate(180deg);
  }

  .fortune-sector-groups {
    display: grid;

    grid-template-columns: repeat(5, minmax(0px, 1fr));

    border-top: 1px solid var(--wt-line);
  }

  .fortune-sector-group {
    min-width: 0px;

    padding: 14px;

    border-right: 1px solid var(--wt-line-soft);
  }

  .fortune-sector-group:last-child {
    border-right: 0px;
  }

  .fortune-sector-group header {
    display: grid;

    grid-template-columns: 7px auto 1fr;

    align-items: center;

    gap: 7px;

    padding-bottom: 10px;

    border-bottom: 1px solid var(--wt-line-soft);
  }

  .fortune-sector-group header i {
    width: 7px;

    height: 7px;

    border-radius: 50%;
  }

  .fortune-sector-group header strong {
    font-size: 12px;
  }

  .fortune-sector-group header small {
    color: var(--wt-faint);

    font-size: 10px;

    text-align: right;
  }

  .fortune-sector-group ul {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin: 10px 0px 0px;

    padding: 0px;

    list-style: none;
  }

  .fortune-sector-group li {
    padding: 3px 6px;

    border: 1px solid var(--wt-line-soft);

    border-radius: 4px;

    color: var(--wt-muted);

    font-size: 11px;

    line-height: 1.5;
  }

  .heart-journey {
    max-width: 640px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 2px auto 12px;

    padding: 10px 16px;

    border: 1px solid var(--wt-line);

    border-radius: 9px;

    background: var(--wt-surface-raised);
  }

  .heart-journey span {
    display: flex;

    align-items: center;

    gap: 6px;

    color: var(--wt-faint);

    font-family: var(--heaven-serif);

    font-size: 11px;

    white-space: nowrap;
  }

  .heart-journey span i {
    width: 22px;

    height: 22px;

    display: grid;

    place-items: center;

    border: 1px solid var(--wt-line);

    border-radius: 50%;

    font-style: normal;
  }

  .heart-journey span.active {
    color: var(--wt-gold-bright);
  }

  .heart-journey span.active i {
    border-color: var(--wt-gold);

    background: rgba(201, 165, 92, 0.1);
  }

  .heart-journey b {
    width: 46px;

    height: 1px;

    margin: 0px 8px;

    background: var(--wt-line);
  }

  .heart-stage-shell {
    min-height: 610px;

    position: relative;

    overflow: hidden;

    border: 1px solid var(--wt-line);

    border-radius: 14px;

    background: var(--wt-heart-stage-bg);
  }

  .heart-bagua {
    width: 760px;

    height: 760px;

    opacity: 0.035;
  }

  .heart-toolbar-controls {
    display: flex;

    gap: 7px;

    position: absolute;

    top: 14px;

    right: 14px;

    z-index: 9;
  }

  .heart-toolbar-controls .button {
    min-height: 32px;

    padding: 5px 10px;

    font-size: 10px;
  }

  .heart-whispers span {
    position: absolute;

    top: var(--whisper-y);

    left: var(--whisper-x);

    z-index: 1;

    color: rgba(216, 210, 189, 0.13);

    font-family: var(--heaven-serif);

    font-size: 12px;

    letter-spacing: 3px;

    writing-mode: vertical-rl;

    animation: heart-whisper var(--whisper-duration) ease-in-out var(--whisper-delay) infinite alternate;
  }

  @keyframes heart-whisper {
    0% {
      opacity: 0.18;

      transform: translateY(8px);
    }

    100% {
      opacity: 0.68;

      transform: translateY(-8px);
    }
  }

  .heart-stage {
    min-height: 610px;

    display: none;

    position: relative;

    z-index: 3;

    opacity: 0;
  }

  .heart-stage.active-heart-stage {
    display: block;

    opacity: 1;

    animation: 1.15s ease 0s 1 normal both running heart-stage-enter;
  }

  .heart-stage.is-leaving {
    animation: 1.05s ease 0s 1 normal both running heart-stage-leave;
  }

  @keyframes heart-stage-enter {
    0% {
      opacity: 0;

      filter: blur(6px);

      transform: translateY(10px);
    }

    100% {
      opacity: 1;

      filter: none;

      transform: none;
    }
  }

  @keyframes heart-stage-leave {
    100% {
      opacity: 0;

      filter: blur(7px);

      transform: translateY(-7px);
    }
  }

  .heart-stage-inner {
    min-height: 610px;

    display: grid;

    align-content: center;

    justify-items: center;

    padding: 56px 22px;

    text-align: center;
  }

  .heart-stage-inner > h3 {
    margin: 20px 0px 0px;

    color: var(--wt-paper);

    font-size: 27px;

    font-weight: 500;

    letter-spacing: 4px;
  }

  .heart-guidance {
    margin-top: 22px;

    color: var(--wt-muted);

    font-size: 12px;

    line-height: 1.8;
  }

  .heart-guidance p {
    margin: 5px 0px;
  }

  .heart-motto {
    margin: 28px 0px 26px;

    padding-top: 18px;

    border-top: 1px solid var(--wt-line);

    color: var(--wt-gold-bright);

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 2px;
  }

  .heart-rise {
    opacity: 0;

    filter: blur(5px);

    transform: translateY(12px);

    transition: opacity 1.2s, filter 1.2s, transform 1.2s;
  }

  .heart-rise.is-visible {
    opacity: 1;

    filter: none;

    transform: none;
  }

  .heart-return-button {
    position: absolute;

    top: 14px;

    left: 14px;

    z-index: 8;

    min-height: 32px;

    padding: 5px 10px;

    font-size: 10px;
  }

  .breathing-stage {
    grid-template-rows: auto 220px auto auto;

    align-content: center;
  }

  .breathing-scene {
    width: 220px;

    height: 220px;

    display: grid;

    place-items: center;

    position: relative;

    margin-top: 12px;
  }

  .heart-breath-ripple {
    width: 180px;

    height: 180px;

    position: relative;
  }

  .heart-breath-ripple span {
    position: absolute;

    inset: 50%;

    border: 1px solid rgba(201, 165, 92, 0.32);

    border-radius: 50%;

    transform: translate(-50%, -50%) scale(0.38);

    transition: transform 3s ease-in-out, opacity 2s;
  }

  .heart-breath-ripple span:nth-child(1) {
    width: 100%;

    height: 100%;
  }

  .heart-breath-ripple span:nth-child(2) {
    width: 76%;

    height: 76%;
  }

  .heart-breath-ripple span:nth-child(3) {
    width: 52%;

    height: 52%;
  }

  .heart-breath-ripple > i {
    position: absolute;

    inset: 50%;

    border-radius: 50%;

    transform: translate(-50%, -50%) scale(0.38);

    transition: transform 3s ease-in-out, opacity 2s;

    width: 30%;

    height: 30%;

    border: 0px;

    background: radial-gradient(circle, rgba(230, 195, 122, 0.6), rgba(201, 165, 92, 0.06) 65%, transparent 70%);

    box-shadow: rgba(201, 165, 92, 0.28) 0px 0px 32px;
  }

  .breathing-scene[data-phase="inhale"] .heart-breath-ripple > i,
  .breathing-scene[data-phase="inhale"] .heart-breath-ripple span {
    transform: translate(-50%, -50%) scale(1);

    transition-duration: 3s;
  }

  .breathing-scene[data-phase="hold"] .heart-breath-ripple > i,
  .breathing-scene[data-phase="hold"] .heart-breath-ripple span {
    transform: translate(-50%, -50%) scale(1);
  }

  .breathing-scene[data-phase="exhale"] .heart-breath-ripple > i,
  .breathing-scene[data-phase="exhale"] .heart-breath-ripple span {
    transform: translate(-50%, -50%) scale(0.38);

    transition-duration: 4s;
  }

  .breathing-phase {
    position: absolute;

    z-index: 2;

    color: var(--wt-paper);

    font-family: var(--heaven-serif);

    font-size: 22px;

    font-weight: 500;
  }

  .breathing-stage > h3 {
    margin: 2px 0px 0px;

    font-size: 17px;

    letter-spacing: 2px;
  }

  .breathing-stage #beginCastingButton {
    margin-top: 44px;
  }

  .heart-incense {
    width: 2px;

    height: 270px;

    position: absolute;

    top: 50%;

    right: 7%;

    margin: 0px;

    border-radius: 2px;

    background: linear-gradient(rgba(201, 168, 106, 0.05), rgba(201, 168, 106, 0.38));

    transform: translateY(-50%);
  }

  .heart-incense::after {
    content: "一炷香";

    display: block;

    position: absolute;

    top: calc(100% + 14px);

    left: 50%;

    color: var(--wt-faint);

    font-family: var(--heaven-serif);

    font-size: 10px;

    letter-spacing: 0.22em;

    white-space: nowrap;

    transform: translateX(-50%);
  }

  .heart-incense i {
    width: 10px;

    height: 10px;

    position: absolute;

    top: 0px;

    left: 50%;

    margin: -5px 0px 0px -5px;

    border-radius: 50%;

    background: radial-gradient(circle, rgb(255, 217, 160) 0px, rgb(224, 136, 64) 45%, transparent 75%);

    box-shadow: rgba(255, 180, 90, 0.35) 0px 0px 14px 4px;

    transform: none;
  }

  .heart-incense i::after {
    content: "";

    width: 8px;

    height: 22px;

    position: absolute;

    bottom: 5px;

    left: 50%;

    border-radius: 50%;

    background: rgba(216, 210, 189, 0.18);

    filter: blur(4px);

    opacity: 0;

    transform: translateX(-50%);
  }

  .heart-incense i.is-burning {
    animation: 45s linear 1s 1 normal forwards running heart-incense-burn, 1.8s ease-in-out 0s infinite normal none running heart-incense-glow;
  }

  .heart-incense i.is-burning::after {
    animation: 2.2s ease-out 0s infinite normal none running heart-incense-smoke;
  }

  @keyframes heart-incense-glow {
    0%,
    100% {
      box-shadow: rgba(255, 180, 90, 0.26) 0px 0px 10px 3px;
    }

    50% {
      box-shadow: rgba(255, 180, 90, 0.5) 0px 0px 18px 6px;
    }
  }

  @keyframes heart-incense-smoke {
    0% {
      opacity: 0;

      transform: translate(-50%, 0px) scale(0.65);
    }

    28% {
      opacity: 0.55;
    }

    100% {
      opacity: 0;

      transform: translate(-70%, -28px) scale(1.2);
    }
  }

  .heart-casting-layout,
  .heart-reveal-layout {
    min-height: 610px;

    display: grid;

    grid-template-columns: minmax(0px, 1.15fr) minmax(360px, 0.85fr);
  }

  .heart-hexagram-shell,
  .heart-reveal-board {
    padding: 56px 30px 28px;

    border-right: 1px solid var(--wt-line);

    background: var(--wt-stage-veil);
  }

  .casting-action-panel,
  .heart-first-thought {
    display: grid;

    align-content: center;

    justify-items: center;

    padding: 54px 24px;

    text-align: center;

    background: var(--wt-surface-soft);
  }

  .heart-coins {
    display: flex;

    gap: 22px;

    margin: 42px 0px 30px;

    perspective: 900px;
  }

  .heart-coin {
    width: 82px;

    height: 82px;

    position: relative;

    border-radius: 50%;

    transform-style: preserve-3d;

    filter: drop-shadow(rgba(0, 0, 0, 0.24) 0px 9px 12px);
  }

  .heart-coin-inner {
    width: 100%;

    height: 100%;

    position: relative;

    transform-style: preserve-3d;
  }

  .heart-coin-face {
    position: absolute;

    inset: 0px;

    border: 1px solid rgb(226, 192, 112);

    border-radius: 50%;

    backface-visibility: hidden;

    background: radial-gradient(circle at 34% 26%, rgb(225, 195, 111) 0px, rgb(189, 143, 52) 36%, rgb(128, 89, 29) 76%, rgb(76, 52, 20) 100%);

    color: rgb(60, 41, 11);

    box-shadow: rgba(67, 43, 12, 0.42) 0px 0px 0px 3px inset, rgba(240, 205, 112, 0.22) 0px 0px 0px 7px inset, rgba(55, 34, 8, 0.34) -5px -7px 12px inset, rgba(255, 228, 139, 0.22) 5px 6px 10px inset;
  }

  .heart-coin-face::before {
    content: "";

    position: absolute;

    inset: 9px;

    border: 1px solid rgba(65, 42, 11, 0.5);

    border-radius: 50%;

    box-shadow: rgba(239, 205, 113, 0.25) 0px 0px 0px 1px;
  }

  .heart-coin-face::after {
    content: "";

    width: 27%;

    height: 27%;

    position: absolute;

    top: 36.5%;

    left: 36.5%;

    border-radius: 1px;

    background: rgb(11, 17, 32);

    box-shadow: rgb(61, 41, 13) 0px 0px 0px 2px inset, rgba(231, 191, 91, 0.58) 0px 0px 0px 2px, rgba(0, 0, 0, 0.38) 0px 2px 4px;
  }

  .heart-coin-face.front {
    background: radial-gradient(circle at 34% 26%, rgb(236, 210, 126) 0px, rgb(201, 155, 61) 37%, rgb(133, 93, 32) 76%, rgb(76, 52, 20) 100%);
  }

  .heart-coin-face.back {
    transform: rotateY(180deg);

    background: radial-gradient(circle at 66% 28%, rgb(217, 184, 95) 0px, rgb(173, 127, 45) 42%, rgb(110, 74, 24) 78%, rgb(62, 42, 18) 100%);
  }

  .coin-hole {
    display: none;
  }

  .coin-glyph {
    position: absolute;

    z-index: 2;

    color: rgba(55, 34, 8, 0.9);

    font-family: var(--heaven-serif);

    font-size: 14px;

    font-weight: 700;

    font-style: normal;

    line-height: 1;

    text-shadow: rgba(255, 224, 130, 0.3) 0px 1px;
  }

  .coin-glyph-top {
    top: 8px;

    left: 50%;

    transform: translateX(-50%);
  }

  .coin-glyph-right {
    top: 50%;

    right: 9px;

    transform: translateY(-50%);
  }

  .coin-glyph-bottom {
    bottom: 8px;

    left: 50%;

    transform: translateX(-50%);
  }

  .coin-glyph-left {
    top: 50%;

    left: 9px;

    transform: translateY(-50%);
  }

  .heart-coin-face.back .coin-glyph {
    color: rgba(58, 37, 12, 0.8);

    font-size: 13px;
  }

  .heart-coin-ring {
    position: absolute;

    inset: -7px;

    border: 1px solid rgba(201, 165, 92, 0.25);

    border-radius: 50%;

    opacity: 0;
  }

  .heart-coin-ring.is-bursting {
    animation: 0.7s ease-out 0s 1 normal none running coin-ring;
  }

  @keyframes coin-ring {
    0% {
      opacity: 0.8;

      transform: scale(0.7);
    }

    100% {
      opacity: 0;

      transform: scale(1.45);
    }
  }

  .heart-coin.is-shaking {
    animation: 0.12s linear 0s infinite alternate none running coin-shake;
  }

  @keyframes coin-shake {
    100% {
      transform: translate(2px, -2px) rotate(2deg);
    }
  }

  .casting-action-panel > h3,
  .heart-first-thought > h3 {
    color: var(--wt-paper);

    font-size: 18px;

    font-weight: 500;
  }

  .heart-cast-button {
    --hold-progress: 0turn;

    width: 100px;

    height: 100px;

    display: grid;

    place-items: center;

    position: relative;

    margin-top: 18px;

    border: 1px solid var(--wt-line);

    border-radius: 50%;

    background: conic-gradient(var(--wt-gold) var(--hold-progress),rgba(255,255,255,.03) 0);

    color: var(--wt-paper);
  }

  .heart-cast-button::before {
    content: "";

    position: absolute;

    inset: 4px;

    border-radius: 50%;

    background: var(--wt-panel);
  }

  .heart-cast-button span {
    position: relative;

    z-index: 2;

    font-family: var(--heaven-serif);

    line-height: 1.5;
  }

  #heavenHeartPanel .heart-yao-empty {
    min-height: 7px;
  }

  .heart-line-text {
    min-width: 0px;

    padding: 8px 10px;

    border: 1px solid var(--wt-line-soft);

    background: var(--wt-surface-raised);

    color: var(--wt-muted);

    text-align: left;
  }

  .heart-line-text strong {
    color: var(--wt-paper);

    font-size: 10px;
  }

  .heart-line-text p {
    display: none;

    margin: 5px 0px 0px;

    font-size: 9px;

    line-height: 1.5;
  }

  .heart-line-text.is-inspected p,
  .heart-line-text:hover p {
    display: block;
  }

  .heart-first-thought p {
    max-width: 320px;

    color: var(--wt-muted);

    font-size: 12px;

    line-height: 2;
  }

  .heart-interpretation-heading {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 16px;

    padding: 48px 34px 18px;

    border-bottom: 1px solid var(--wt-line);
  }

  .heart-interpretation-heading h3 {
    margin: 6px 0px 0px;

    color: var(--wt-paper);

    font-size: 25px;
  }

  .heart-interpretation-heading small {
    color: var(--wt-gold);
  }

  .heart-read-actions {
    display: flex;

    gap: 8px;
  }

  .heart-read-guaci {
    margin: 18px 34px;

    color: var(--wt-muted);

    font-family: var(--heaven-serif);

    font-size: 13px;
  }

  .heart-read-layout {
    display: grid;

    grid-template-columns: 300px minmax(0px, 1fr);

    gap: 28px;

    padding: 0px 34px 30px;
  }

  .heart-read-lines,
  .heart-read-texts {
    display: grid;

    align-content: start;

    gap: 4px;
  }

  .heart-read-line {
    min-height: 46px;

    display: grid;

    grid-template-columns: 40px 170px;

    align-items: center;

    color: var(--wt-faint);
  }

  .heart-read-line .hex-line i {
    height: 6px;
  }

  .heart-read-text {
    min-height: 46px;

    padding: 7px 10px;

    border-left: 2px solid transparent;
  }

  .heart-read-text.moving {
    border-left-color: var(--wt-cinnabar);

    background: rgba(215, 107, 97, 0.06);
  }

  .heart-read-text strong {
    color: var(--wt-paper);

    font-size: 11px;
  }

  .heart-read-text p {
    margin: 4px 0px 0px;

    color: var(--wt-muted);

    font-size: 10px;
  }

  .heart-read-motto {
    margin: 4px 34px;

    color: var(--wt-gold);

    text-align: right;
  }

  .heaven-footnote {
    margin: 9px 2px 0px;

    color: var(--wt-faint);

    font-size: 10px;

    text-align: right;
  }
}

@scope (#heavenView) {
  @media (max-width: 960px) {
    .fortune-stage {
      grid-template-columns: 1fr;
    }

    .qi-climate-panel {
      min-height: 440px;

      border-right: 0px;

      border-bottom: 1px solid var(--wt-line);
    }

    .fortune-bagua {
      left: 50%;
    }

    .heart-casting-layout,
    .heart-reveal-layout {
      grid-template-columns: 1fr;
    }

    .heart-hexagram-shell,
    .heart-reveal-board {
      border-right: 0px;

      border-bottom: 1px solid var(--wt-line);
    }

    .fortune-sector-groups {
      grid-template-columns: repeat(2, minmax(0px, 1fr));
    }

    .fortune-sector-group:nth-child(2n) {
      border-right: 0px;
    }

    .fortune-sector-group {
      border-bottom: 1px solid var(--wt-line-soft);
    }
  }
}

@scope (#heavenView) {
  @media (max-width: 640px) {
    .fortune-heading {
      align-items: stretch;

      flex-direction: column;
    }

    .fortune-heading-actions {
      display: grid;

      grid-template-columns: 1fr auto auto;
    }

    .fortune-stage {
      min-height: 0px;
    }

    .qi-climate-panel {
      min-height: 390px;

      padding: 44px 20px;
    }

    .qi-climate-panel h3 {
      font-size: 34px;
    }

    .fortune-basics {
      padding: 10px;
    }

    .qi-framework-layer {
      grid-template-columns: 62px 60px minmax(0px, 1fr);
    }

    .heart-journey {
      overflow-x: auto;

      justify-content: flex-start;
    }

    .heart-journey b {
      width: 18px;

      margin-inline: 4px;
    }

    .heart-stage,
    .heart-stage-inner,
    .heart-stage-shell {
      min-height: 560px;
    }

    .breathing-stage #beginCastingButton {
      margin-top: 36px;
    }

    .heart-incense {
      right: 8%;

      height: 230px;
    }

    .heart-incense::after {
      display: block;
    }

    .heart-coins {
      gap: 9px;
    }

    .heart-coin {
      width: 68px;

      height: 68px;
    }

    .coin-glyph {
      font-size: 11px;
    }

    .coin-glyph-top {
      top: 7px;
    }

    .coin-glyph-right {
      right: 7px;
    }

    .coin-glyph-bottom {
      bottom: 7px;
    }

    .coin-glyph-left {
      left: 7px;
    }

    .casting-action-panel,
    .heart-first-thought,
    .heart-hexagram-shell,
    .heart-reveal-board {
      padding-inline: 14px;
    }

    .fortune-sector-groups {
      grid-template-columns: 1fr;
    }

    .fortune-sector-group {
      border-right: 0px;
    }

    .heart-read-layout {
      grid-template-columns: 1fr;

      padding-inline: 14px;
    }

    .heart-interpretation-heading {
      align-items: stretch;

      flex-direction: column;

      padding-inline: 14px;
    }

    .heart-read-actions {
      display: grid;

      grid-template-columns: 1fr 1fr;
    }
  }
}

@media (min-width: 861px) {
  #heavenTrendPanel .heaven-controls {
    grid-template-columns: minmax(0px, 1fr) auto;
  }
}

@media (min-width: 901px) {
  #heavenView .heaven-proverb {
    width: min(100% - 40px, 1280px);
  }
}

@media (max-width: 767px) {
  :root[data-theme="dark"] body.mobile-shell[data-active-view="heavenView"] .app-main,
  :root[data-theme="dark"] body.mobile-shell[data-active-view="heavenView"] #heavenView.heaven-shell {
    background-color: var(--wt-bg);
    background-image: var(--wt-stage-bg);
    color: var(--wt-text);
  }

  :root[data-theme="dark"] body.mobile-shell[data-active-view="heavenView"] #heavenView .heaven-panel {
    background: transparent;
  }
}
