:root {
  color-scheme: dark;
  --bg: #0d0a08;
  --nav: #15100c;
  --panel: #100c08;
  --panel-2: #17100a;
  --panel-3: #21160d;
  --gold: #f1d47d;
  --gold-2: #c49a3b;
  --ivory: #f8efd6;
  --muted: #9a8460;
  --line: rgba(241, 212, 125, .25);
  --line-soft: rgba(241, 212, 125, .12);
  --copper: #a45d39;
  --rose: #d07a86;
  --green: #7dbb82;
  --violet: #9372ff;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html.mbp-entry-intent body {
  visibility: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(241, 212, 125, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(241, 212, 125, .025) 1px, transparent 1px),
    var(--bg);
  background-size: 88px 88px;
  color: var(--muted);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(13, 10, 8, .96), rgba(13, 10, 8, .72), rgba(13, 10, 8, .96)),
    url("../images/home2/hero-bg.webp") center top / cover no-repeat;
  opacity: .46;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.mbp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 64px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(241, 212, 125, .12);
  background: rgba(21, 16, 12, .95);
  backdrop-filter: blur(14px);
}

.mbp-brand,
.mbp-nav-links,
.mbp-nav-actions,
.mbp-auth-trigger,
.mbp-member {
  display: flex;
  align-items: center;
}

.mbp-brand {
  gap: 12px;
  margin-right: auto;
  color: var(--gold);
  font: 800 22px/1 "Noto Serif SC", "Songti SC", serif;
}

.mbp-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  flex: 0 0 auto;
}

.mbp-nav-links {
  gap: 10px;
}

.mbp-nav-actions {
  gap: 10px;
}

@media (min-width: 1021px) {
  .mingbook-onepage .mbp-nav-actions {
    margin-right: 0;
  }
}

.mbp-nav-links a,
.mbp-auth-trigger,
.mbp-member-pay-trigger,
.mbp-member {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(201, 169, 97, .25);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 16, 11, .92), rgba(10, 8, 5, .92));
  box-shadow: inset 0 0 0 1px rgba(255, 244, 214, .03);
  color: rgba(237, 219, 178, .88);
  font: 700 15px/1 "Noto Serif SC", "Songti SC", serif;
  text-align: center;
  white-space: nowrap;
  transition: transform .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mbp-nav-links a,
.mbp-auth-trigger,
.mbp-member-pay-trigger,
.mbp-member {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.mbp-auth-trigger,
.mbp-member-pay-trigger {
  appearance: none;
  cursor: pointer;
}

.mbp-nav-links a:hover,
.mbp-auth-trigger:hover,
.mbp-member-pay-trigger:hover,
.mbp-member:hover {
  color: var(--gold);
  border-color: rgba(231, 201, 133, .38);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 214, .05), 0 12px 30px rgba(0, 0, 0, .16);
  transform: translateY(-1px);
}

.mbp-nav-links a.is-active {
  color: #f3d58c;
  border-color: rgba(223, 194, 123, .44);
  background: linear-gradient(135deg, rgba(118, 86, 37, .34), rgba(22, 18, 12, .94));
}

.mbp-nav-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: grid;
  place-items: center;
}

.mbp-nav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mbp-auth-trigger.is-logged-in {
  border-color: rgba(241, 212, 125, .34);
}

.mbp-auth-trigger.is-member {
  border-color: rgba(241, 212, 125, .45);
  background: linear-gradient(135deg, rgba(118, 86, 37, .34), rgba(22, 18, 12, .94));
}

.mbp-auth-trigger.is-member .mbp-auth-trigger-meta {
  color: #f1d47d;
  font-weight: 900;
}

.mbp-auth-trigger-label {
  font-weight: 800;
  line-height: 1.1;
}

.mbp-auth-trigger-meta,
.mbp-member-pay-trigger small {
  display: none;
  color: #bfa871;
  font-size: 11px;
  line-height: 1.1;
}

.mbp-member {
  min-width: 0;
}

.mbp-member-pay-trigger {
  min-width: 0;
}

.mbp-member-pay-trigger span {
  font-weight: 900;
  line-height: 1.1;
}

.mbp-member-pay-trigger.is-member {
  border-color: rgba(241, 212, 125, .42);
}

.mbp-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 5, 3, .72);
  backdrop-filter: blur(10px);
}

.mbp-auth-dialog {
  position: relative;
  width: min(480px, calc(100vw - 32px));
  padding: 28px 28px 24px;
  border: 1px solid rgba(241, 212, 125, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(241, 212, 125, .12), transparent 28%),
    linear-gradient(180deg, rgba(30, 22, 15, .98), rgba(15, 10, 7, .98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

.mbp-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 999px;
  background: rgba(241, 212, 125, .06);
  color: #dec68f;
  cursor: pointer;
}

.mbp-auth-head span,
.mbp-auth-session-kicker {
  display: inline-block;
  color: #c6a65f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.mbp-auth-head strong {
  display: block;
  margin-top: 10px;
  color: var(--ivory);
  font: 900 34px/1.1 "Noto Serif SC", "Songti SC", serif;
}

.mbp-auth-head p {
  margin: 12px 0 0;
  color: #b59d73;
  font-size: 14px;
  line-height: 1.6;
}

.mbp-auth-session,
.mbp-auth-form-wrap {
  margin-top: 22px;
}

.mbp-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mbp-auth-tab {
  min-height: 42px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 999px;
  background: rgba(241, 212, 125, .05);
  color: #bfa871;
  cursor: pointer;
  font-weight: 800;
}

.mbp-auth-tab.is-active {
  border-color: rgba(241, 212, 125, .38);
  background: linear-gradient(135deg, rgba(241, 212, 125, .2), rgba(180, 99, 63, .18));
  color: var(--ivory);
}

.mbp-auth-field {
  display: block;
  margin-top: 16px;
}

.mbp-auth-field span {
  display: block;
  margin-bottom: 8px;
  color: #cfb98e;
  font-size: 13px;
  font-weight: 800;
}

.mbp-auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 14px;
  background: rgba(8, 6, 4, .88);
  color: var(--ivory);
}

.mbp-auth-field input::placeholder {
  color: #766650;
}

.mbp-auth-error {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(206, 88, 88, .32);
  border-radius: 12px;
  background: rgba(150, 44, 44, .12);
  color: #ef9f92;
  font-size: 13px;
  line-height: 1.5;
}

.mbp-auth-primary,
.mbp-auth-secondary {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.mbp-auth-primary {
  width: 100%;
  margin-top: 16px;
  background: linear-gradient(135deg, #bb8a3c, #9f4d31);
  color: #fff6e3;
  box-shadow: 0 12px 28px rgba(159, 77, 49, .24);
}

.mbp-auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 1px solid rgba(241, 212, 125, .2);
  border-radius: 999px;
  background: rgba(255, 246, 227, .92);
  color: #24190f;
  cursor: pointer;
  font-weight: 900;
}

.mbp-auth-google span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  color: #3568d4;
  font: 900 15px/1 Arial, sans-serif;
}

.mbp-auth-primary.is-danger {
  width: auto;
  min-width: 132px;
  margin-top: 0;
  background: linear-gradient(135deg, #9f4d31, #7f231f);
}

.mbp-auth-primary:disabled,
.mbp-auth-secondary:disabled,
.mbp-auth-close:disabled,
.mbp-auth-trigger:disabled,
.mbp-auth-google:disabled {
  opacity: .68;
  cursor: wait;
}

.mbp-auth-secondary {
  min-width: 132px;
  padding: 0 20px;
  border: 1px solid rgba(241, 212, 125, .18);
  background: rgba(241, 212, 125, .06);
  color: #d3bc90;
}

.mbp-auth-note {
  margin: 12px 2px 0;
  color: #9f8b69;
  font-size: 13px;
  line-height: 1.6;
}

.mbp-auth-session {
  padding: 18px;
  border: 1px solid rgba(241, 212, 125, .16);
  border-radius: 18px;
  background: rgba(241, 212, 125, .05);
}

.mbp-auth-session-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mbp-auth-session-top strong {
  display: block;
  margin-top: 8px;
  color: var(--ivory);
  font-size: 24px;
  line-height: 1.2;
}

.mbp-auth-session-top small {
  display: block;
  margin-top: 6px;
  color: #a89167;
  font-size: 13px;
}

.mbp-auth-session-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(241, 212, 125, .14);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.mbp-auth-session-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.mbp-auth-session-grid div {
  padding: 14px;
  border: 1px solid rgba(241, 212, 125, .12);
  border-radius: 14px;
  background: rgba(6, 4, 3, .46);
}

.mbp-auth-session-grid span {
  display: block;
  color: #ae9870;
  font-size: 12px;
}

.mbp-auth-session-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ivory);
  font-size: 24px;
  line-height: 1.2;
}

.mbp-auth-session-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.mbp-auth-session-actions .mbp-auth-primary {
  width: auto;
  min-width: 132px;
  margin-top: 0;
  padding: 0 20px;
}

.mbp-pay-overlay,
.mbp-ticket-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 5, 3, .76);
  backdrop-filter: blur(10px);
}

.mbp-pay-dialog,
.mbp-ticket-dialog {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(241, 212, 125, .24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(241, 212, 125, .14), transparent 30%),
    linear-gradient(180deg, rgba(32, 24, 16, .98), rgba(13, 9, 6, .98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
}

.mbp-ticket-dialog {
  width: min(620px, calc(100vw - 32px));
}

.mbp-pay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 999px;
  background: rgba(241, 212, 125, .06);
  color: #dec68f;
  cursor: pointer;
}

.mbp-pay-head span {
  display: inline-block;
  color: #c6a65f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.mbp-pay-head strong {
  display: block;
  margin-top: 10px;
  color: var(--ivory);
  font: 900 32px/1.12 "Noto Serif SC", "Songti SC", serif;
}

.mbp-pay-head p {
  margin: 12px 0 0;
  color: #b59d73;
  font-size: 14px;
  line-height: 1.6;
}

.mbp-pay-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 18px;
  background: rgba(241, 212, 125, .06);
}

.mbp-pay-product b,
.mbp-pay-product strong {
  display: block;
  color: var(--ivory);
}

.mbp-pay-product b {
  font-size: 18px;
}

.mbp-pay-product small {
  display: block;
  margin-top: 6px;
  color: #a89167;
  font-size: 13px;
  line-height: 1.5;
}

.mbp-pay-product strong {
  color: var(--gold);
  font-size: 28px;
  white-space: nowrap;
}

.mbp-pay-benefits {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: #d9c79b;
  font-size: 14px;
  font-weight: 800;
}

.mbp-pay-benefits span {
  padding-left: 18px;
  position: relative;
}

.mbp-pay-benefits span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}

.mbp-pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.mbp-pay-method {
  min-height: 42px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 12px;
  background: rgba(241, 212, 125, .06);
  color: #d3bc90;
  cursor: pointer;
  font-weight: 900;
}

.mbp-pay-method.is-active {
  border-color: rgba(241, 212, 125, .48);
  background: rgba(241, 212, 125, .16);
  color: var(--ivory);
}

.mbp-pay-method:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.mbp-pay-qr {
  display: grid;
  place-items: center;
  width: 196px;
  min-height: 196px;
  margin: 20px auto 0;
  padding: 12px;
  border-radius: 18px;
  background: #fffaf0;
}

.mbp-pay-qr img,
.mbp-pay-qr canvas {
  width: 172px !important;
  height: 172px !important;
}

.mbp-pay-open-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(241, 212, 125, .12);
  color: var(--gold);
  font-weight: 900;
}

.mbp-pay-error {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(206, 88, 88, .32);
  border-radius: 12px;
  background: rgba(150, 44, 44, .12);
  color: #ef9f92;
  font-size: 13px;
  line-height: 1.5;
}

.mbp-pay-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.mbp-pay-primary,
.mbp-pay-secondary {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.mbp-pay-primary {
  flex: 1;
  background: linear-gradient(135deg, #d6b765, #b16a3d);
  color: #160e08;
  box-shadow: 0 12px 28px rgba(177, 106, 61, .22);
}

.mbp-pay-secondary {
  min-width: 132px;
  padding: 0 18px;
  border: 1px solid rgba(241, 212, 125, .18);
  background: rgba(241, 212, 125, .06);
  color: #d3bc90;
}

.mbp-pay-primary:disabled,
.mbp-pay-secondary:disabled,
.mbp-pay-close:disabled,
.mbp-member-pay-trigger:disabled {
  opacity: .68;
  cursor: wait;
}

.mbp-ticket-link {
  display: block;
  margin: 12px auto 0;
  border: 0;
  background: transparent;
  color: #9d8a66;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mbp-ticket-link:hover {
  color: var(--gold);
}

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

.mbp-ticket-grid label,
.mbp-ticket-field {
  display: grid;
  gap: 7px;
  color: #bba77c;
  font-size: 12px;
  font-weight: 900;
}

.mbp-ticket-grid select,
.mbp-ticket-grid input,
.mbp-ticket-field input,
.mbp-ticket-field textarea {
  width: 100%;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 12px;
  background: rgba(0, 0, 0, .18);
  color: var(--ivory);
  font: inherit;
  font-size: 14px;
  padding: 12px 13px;
  outline: 0;
}

.mbp-ticket-grid select:focus,
.mbp-ticket-grid input:focus,
.mbp-ticket-field input:focus,
.mbp-ticket-field textarea:focus {
  border-color: rgba(241, 212, 125, .42);
}

.mbp-ticket-field {
  margin-top: 14px;
}

.mbp-ticket-field small {
  color: #9d8a66;
  font-size: 12px;
  font-weight: 700;
}

body.mbp-auth-open,
body.mbp-pay-open,
body.mbp-ticket-open {
  overflow: hidden;
}

.mbp-page {
  width: min(1480px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 26px 0 80px;
}

@media (min-width: 1021px) {
  :root {
    --mbp-ui-scale: .765;
  }
}

@media (min-width: 1021px) {
  .mbp-nav {
    height: calc(64px * var(--mbp-ui-scale));
  }

  .mbp-nav > * {
    zoom: var(--mbp-ui-scale);
  }

  .mbp-page {
    zoom: var(--mbp-ui-scale);
  }
}

.mbp-hero {
  display: block;
  min-height: 0;
}

.mbp-spine {
  min-height: 548px;
  padding: 36px 28px 28px;
  border: 1px solid rgba(241, 212, 125, .3);
  background:
    linear-gradient(180deg, rgba(241, 212, 125, .04), transparent 22%),
    rgba(7, 5, 3, .9);
  box-shadow: inset 0 1px 0 rgba(255, 245, 200, .22);
}

.mbp-spine-kicker {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  letter-spacing: .32em;
}

.mbp-spine-title,
.mbp-hero-main h1,
.mbp-section-head h2,
.mbp-book-title,
.mbp-final h2 {
  margin: 0;
  color: var(--gold);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 900;
}

.mbp-spine-title {
  margin-top: 20px;
  text-align: center;
  font-size: 34px;
  letter-spacing: .28em;
}

.mbp-spine-profile {
  position: relative;
  margin-top: 66px;
  border: 1px solid rgba(241, 212, 125, .3);
  background: rgba(86, 38, 22, .18);
}

.mbp-client-current {
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: 56px 1fr 18px;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mbp-client-current:hover {
  background: rgba(241, 212, 125, .05);
}

.mbp-profile-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 235, 174, .55);
  border-radius: 999px;
  background: linear-gradient(135deg, #c97944, #7e2e20);
  color: #fff3d0;
  font-size: 26px;
  font-weight: 900;
}

.mbp-profile-copy {
  min-width: 0;
}

.mbp-spine-profile strong {
  display: block;
  color: var(--ivory);
  font-size: 18px;
}

.mbp-spine-profile small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.mbp-client-arrow {
  color: var(--gold);
  font-size: 18px;
}

.mbp-client-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(241, 212, 125, .28);
  border-radius: 10px;
  background: rgba(15, 11, 7, .98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .48);
}

.mbp-client-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mbp-client-menu-head b {
  color: var(--ivory);
}

.mbp-client-menu-head small {
  display: inline;
  margin-top: 0;
  color: var(--muted);
}

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

.mbp-client-item,
.mbp-client-save,
.mbp-client-new {
  width: 100%;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 8px;
  background: rgba(241, 212, 125, .045);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.mbp-client-item {
  overflow: hidden;
}

.mbp-client-item:hover,
.mbp-client-item.is-active {
  border-color: rgba(241, 212, 125, .42);
  background: rgba(241, 212, 125, .1);
}

.mbp-client-select {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mbp-client-mini {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(180, 104, 62, .35);
  color: #fff0cf;
  font-weight: 900;
}

.mbp-client-copy {
  min-width: 0;
}

.mbp-client-item b {
  display: block;
  overflow: hidden;
  color: var(--ivory);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mbp-client-item small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mbp-client-tools {
  display: flex;
  gap: 6px;
  padding: 0 10px 10px 54px;
}

.mbp-client-tool {
  height: 24px;
  min-width: 42px;
  padding: 0 8px;
  border: 1px solid rgba(241, 212, 125, .22);
  border-radius: 999px;
  background: rgba(241, 212, 125, .08);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.mbp-client-tool:hover {
  border-color: rgba(241, 212, 125, .5);
}

.mbp-client-tool.danger {
  border-color: rgba(173, 70, 46, .38);
  color: #f0a48b;
}

.mbp-client-tool.is-confirming {
  background: rgba(113, 32, 20, .34);
  color: #ffd2c4;
}

.mbp-client-empty {
  padding: 14px 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.mbp-client-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.mbp-client-save,
.mbp-client-new {
  padding: 9px 10px;
  color: var(--gold);
  font-weight: 900;
}

.mbp-client-save {
  background: linear-gradient(180deg, rgba(241, 212, 125, .2), rgba(174, 120, 45, .14));
  color: var(--ivory);
}

.mbp-catalog-title {
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  color: var(--ivory);
  font-weight: 800;
}

.mbp-catalog-title em {
  color: var(--gold-2);
  font-style: normal;
  font-size: 12px;
}

.mbp-catalog {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.mbp-catalog li {
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  color: #8c7b53;
}

.mbp-catalog li.is-active {
  border-color: rgba(241, 212, 125, .35);
  background: rgba(241, 212, 125, .08);
  color: var(--ivory);
}

.mbp-catalog b {
  color: var(--gold);
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.mbp-catalog i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--copper);
  color: #fff0cf;
  font-style: normal;
}

.mbp-hero-main {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(420px, 520px) minmax(620px, 1fr);
  gap: 18px 22px;
  align-items: stretch;
  padding: 22px;
  overflow: visible;
  border: 1px solid rgba(241, 212, 125, .22);
  border-radius: 18px;
  background: rgba(7, 5, 3, .48);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 196, .08),
    0 24px 80px rgba(0, 0, 0, .28);
}

.mbp-hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 22%, rgba(241, 212, 125, .055), transparent 34%),
    linear-gradient(90deg, rgba(13, 10, 8, .96), rgba(13, 10, 8, .82), rgba(13, 10, 8, .96));
  opacity: .88;
}

.mbp-seal {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(220, 104, 72, .9);
  border-radius: 10px;
  background: rgba(116, 37, 26, .84);
  color: #fff0de;
  font: 900 20px/1.05 "Noto Serif SC", "Songti SC", serif;
  transform: rotate(-3deg);
}

.mbp-hero-kicker {
  margin: 24px 0 12px;
  color: var(--muted);
  letter-spacing: .5em;
}

.mbp-hero-main h1 {
  font-size: clamp(44px, 4vw, 64px);
  line-height: 1;
  letter-spacing: .16em;
}

.mbp-hero-input {
  min-width: 0;
  width: 100%;
  display: grid;
  align-content: start;
  justify-items: stretch;
  gap: 14px;
  padding: 18px 20px 22px;
  border: 1px solid rgba(241, 212, 125, .22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(241, 212, 125, .055), transparent 24%),
    rgba(13, 10, 7, .82);
  box-shadow: inset 0 1px 0 rgba(255, 244, 196, .08);
}

.mbp-hero-input .mbp-seal {
  display: none;
}

.mbp-input-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 268px);
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

.mbp-input-head span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .24em;
}

.mbp-input-head h1 {
  margin: 0;
  color: #d7c592;
  font: 800 15px/1.45 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.mbp-input-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.mbp-input-prompt {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 4px;
  padding: 12px 18px;
  border: 1px solid rgba(241, 212, 125, .24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 8% 0%, rgba(241, 212, 125, .16), transparent 36%),
    linear-gradient(135deg, rgba(45, 31, 18, .92), rgba(13, 10, 7, .92));
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 196, .09),
    0 12px 28px rgba(0, 0, 0, .24);
}

.mbp-input-prompt::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(241, 212, 125, .75), rgba(190, 112, 64, .55), transparent);
}

.mbp-input-prompt span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
}

.mbp-input-prompt strong {
  color: var(--ivory);
  font: 900 22px/1.18 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: .04em;
}

.mbp-input-prompt small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mbp-client-input-card {
  position: relative;
  width: min(268px, 100%);
  justify-self: end;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(241, 212, 125, .22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(164, 93, 57, .18), rgba(16, 12, 8, .94)),
    rgba(16, 12, 8, .9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.mbp-hero-input > .mbp-client-input-card {
  width: 100%;
  justify-self: stretch;
  margin-bottom: 0;
}

.mbp-client-input-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.mbp-client-input-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.mbp-input-client-picker {
  position: relative;
  border: 1px solid rgba(241, 212, 125, .16);
  border-radius: 9px;
  background: rgba(241, 212, 125, .04);
}

.mbp-input-client-picker .mbp-client-current {
  min-height: 44px;
  grid-template-columns: 34px 1fr 14px;
  gap: 8px;
  padding: 6px 9px;
}

.mbp-input-client-picker .mbp-profile-mark {
  width: 32px;
  height: 32px;
  font-size: 17px;
}

.mbp-input-client-picker strong {
  display: block;
  overflow: hidden;
  color: var(--ivory);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mbp-input-client-picker .mbp-profile-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  white-space: nowrap;
}

.mbp-input-client-picker .mbp-profile-line strong {
  min-width: 0;
  flex: 1 1 auto;
}

.mbp-client-inline-label,
.mbp-client-switch-note {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.mbp-client-inline-label {
  color: var(--gold);
}

.mbp-client-switch-note {
  color: var(--muted);
}

.mbp-input-client-picker small {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mbp-input-client-picker .mbp-client-menu {
  top: calc(100% + 8px);
}

.mbp-hero-chart {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 690px;
  padding: 26px;
  scroll-margin-top: 76px;
  border: 1px solid rgba(241, 212, 125, .22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 8%, rgba(241, 212, 125, .08), transparent 38%),
    linear-gradient(180deg, rgba(241, 212, 125, .045), transparent 28%),
    rgba(13, 10, 7, .82);
  box-shadow: inset 0 1px 0 rgba(255, 244, 196, .08);
}

.mbp-luck-locator {
  flex: 0 0 auto;
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: minmax(58px, .42fr) minmax(148px, 1fr) minmax(130px, .9fr) minmax(112px, .74fr);
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(241, 212, 125, .22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(241, 212, 125, .08), transparent 34%),
    rgba(16, 12, 8, .9);
  color: var(--muted);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 196, .08),
    0 14px 34px rgba(0, 0, 0, .26);
}

.mbp-luck-locator.is-pending {
  opacity: .72;
}

.mbp-luck-locator-head {
  align-self: center;
}

.mbp-luck-locator-head span,
.mbp-luck-field span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.mbp-luck-locator-head strong {
  display: block;
  margin: 0;
  color: var(--ivory);
  font-size: 16px;
  line-height: 1;
}

.mbp-luck-field {
  display: grid;
  gap: 6px;
}

.mbp-luck-field select,
.mbp-xiaolian-toggle {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(241, 212, 125, .24);
  border-radius: 8px;
  background: rgba(6, 5, 4, .9);
  color: var(--ivory);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.mbp-luck-field select:focus-visible,
.mbp-xiaolian-toggle:focus-visible {
  outline: 2px solid rgba(241, 212, 125, .48);
  outline-offset: 2px;
}

.mbp-luck-field select:disabled,
.mbp-xiaolian-toggle:disabled {
  color: rgba(245, 232, 198, .52);
}

.mbp-xiaolian-field {
  position: relative;
}

.mbp-xiaolian-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  text-align: left;
  cursor: pointer;
}

.mbp-xiaolian-toggle span {
  overflow: hidden;
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mbp-xiaolian-toggle i {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(245, 232, 198, .9);
  border-bottom: 2px solid rgba(245, 232, 198, .9);
  transform: translateY(-2px) rotate(45deg);
}

.mbp-xiaolian-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 340px;
  overflow: auto;
  padding: 6px 0;
  border: 1px solid rgba(241, 212, 125, .24);
  border-radius: 8px;
  background: #171615;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .42);
}

.mbp-xiaolian-menu button,
.mbp-xiaolian-empty {
  width: 100%;
  min-height: 34px;
  display: block;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.mbp-xiaolian-menu button {
  cursor: pointer;
}

.mbp-xiaolian-menu button:hover,
.mbp-xiaolian-menu button:focus-visible {
  background: rgba(241, 212, 125, .12);
  outline: 0;
}

.mbp-xiaolian-menu button.is-selected {
  background: rgba(241, 212, 125, .2);
  color: #fff0c6;
}

.mbp-luck-locator-meta {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(241, 212, 125, .16);
  border-radius: 8px;
  background: rgba(241, 212, 125, .045);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  white-space: nowrap;
}

.mbp-luck-locator-meta b {
  color: var(--ivory);
}

.mbp-luck-locator-meta span {
  color: var(--muted);
}

@media (max-width: 1020px) {
  .mbp-luck-locator {
    width: min(640px, 100%);
    flex-basis: min(640px, 100%);
    grid-template-columns: minmax(58px, .42fr) minmax(148px, 1fr) minmax(130px, .9fr) minmax(112px, .74fr);
  }
}

@media (max-width: 680px) {
  .mbp-luck-locator {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }

  .mbp-luck-locator-head,
  .mbp-luck-locator-meta {
    grid-column: 1 / -1;
  }

  .mbp-luck-field select,
  .mbp-xiaolian-toggle {
    min-height: 36px;
    font-size: 11px;
  }
}

.mbp-hero-copy {
  max-width: 560px;
  margin: 18px auto 0;
  color: #d6bd7a;
  text-align: center;
  font-size: 15px;
}

.mbp-path-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.mbp-path-strip span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(241, 212, 125, .16);
  border-radius: 999px;
  background: rgba(241, 212, 125, .045);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.mbp-path-strip b {
  color: var(--gold);
  font-size: 12px;
}

.mbp-path-strip span.is-current {
  border-color: rgba(241, 212, 125, .36);
  background: rgba(241, 212, 125, .1);
  color: var(--ivory);
}

.mbp-birth-form {
  width: min(620px, 100%);
  margin-top: 0;
  scroll-margin-top: 92px;
}

.mbp-hero-input .mbp-birth-form {
  width: 100%;
}

.mbp-decode-btn,
.mbp-final a {
  border: 1px solid rgba(255, 232, 190, .28);
  border-radius: 999px;
  background: linear-gradient(135deg, #91412c, #b9683e);
  color: #fff4df;
  font-weight: 900;
  cursor: pointer;
}

.mbp-form-card {
  position: relative;
  overflow: visible;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 16px 12px;
  border: 1px solid rgba(201, 169, 97, .24);
  border-radius: 20px;
  background: rgba(33, 27, 21, .92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
  text-align: left;
}

.mbp-hero-input .mbp-form-card {
  max-width: none;
}

.mbp-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 999px;
  background: rgba(201, 169, 97, .72);
}

.mbp-form-card::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 20px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(201, 169, 97, .38);
  box-shadow: -450px 0 0 rgba(201, 169, 97, .38);
}

.mbp-form-card.is-input-guided {
  animation: mbpInputGuidePulse 1.45s ease both;
}

.mbp-input-prompt.is-input-guided {
  animation: mbpPromptGuideNudge .8s ease both;
}

.mbp-form-card .nf-row {
  position: relative;
  padding: 9px 0;
}

.mbp-form-card .nf-row + .nf-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 169, 97, .16) 25%, rgba(201, 169, 97, .16) 48%, transparent 50%, rgba(201, 169, 97, .16) 52%, rgba(201, 169, 97, .16) 75%, transparent);
}

.mbp-form-card .nf-row + .nf-row::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
  background: rgba(201, 169, 97, .46);
}

.mbp-form-card .nf-row:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
}

.nf-row-left,
.nf-row-head,
.nf-time-selects {
  display: flex;
  align-items: center;
}

.nf-row-left {
  flex: 1;
  min-width: 0;
}

.nf-row-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.nf-date-row,
.nf-city-row {
  display: block;
}

.nf-city-row .nf-row-head {
  margin-bottom: 8px;
}

.nf-city-row .nf-label {
  white-space: nowrap;
}

.nf-tst-row {
  display: none;
}

.nf-label {
  color: #a29482;
  font-size: 16px;
  font-weight: 600;
}

.nf-required {
  margin-right: 6px;
  color: #e46f67;
  font-weight: 900;
}

.nf-name-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #d9cdbb;
  font: inherit;
  font-size: 16px;
}

.nf-name-input::placeholder {
  color: #a29482;
}

.nf-gender-pill,
.nf-cal-toggle {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(201, 169, 97, .24);
  border-radius: 999px;
  background: #110d09;
}

.nf-gender-btn,
.nf-cal-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a29482;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nf-gender-btn {
  min-width: 54px;
  height: 34px;
  font-size: 18px;
}

.nf-cal-btn {
  min-width: 60px;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.nf-gender-btn.active,
.nf-cal-btn.active {
  background: #c9a961;
  color: #14100c;
  box-shadow: 0 4px 14px rgba(201, 169, 97, .28);
}

.nf-cal-btn-ai.active {
  border: 1px solid rgba(201, 169, 97, .42);
  background: rgba(201, 169, 97, .12);
  color: #dec48c;
  box-shadow: none;
}

.nf-date-inputs {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr minmax(110px, auto);
  gap: 10px;
}

.nf-select {
  min-width: 0;
  width: 100%;
  height: 46px;
  border: 1px solid rgba(201, 169, 97, .22);
  border-radius: 12px;
  outline: 0;
  background: #110d09;
  color: #d9cdbb;
  font: inherit;
  font-size: 17px;
  padding: 0 14px;
}

.nf-select:focus {
  border-color: rgba(201, 169, 97, .58);
}

.nf-select option {
  background: #211b15;
  color: #d9cdbb;
}

.nf-lunar-leap {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a29482;
  white-space: nowrap;
}

.nf-lunar-leap span {
  font-size: 12px;
}

.nf-muted-line {
  margin-top: 6px;
  color: #a29482;
  font-size: 14px;
  line-height: 1.45;
}

.mbp-ai-inline {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 169, 97, .16);
  border-radius: 14px;
  background: rgba(201, 169, 97, .05);
}

.ai-chat-messages {
  display: grid;
  gap: 8px;
  max-height: 176px;
  overflow-y: auto;
  padding-right: 2px;
}

.ai-chat-messages:empty {
  display: none;
}

.mbp-ai-inline .ai-msg {
  width: fit-content;
  max-width: 92%;
  padding: 9px 11px;
  border: 1px solid rgba(201, 169, 97, .15);
  border-radius: 12px;
  background: rgba(0, 0, 0, .18);
  color: #c6b7a6;
  font-size: 14px;
  line-height: 1.55;
}

.mbp-ai-inline .ai-msg-user {
  justify-self: end;
  border-color: rgba(201, 169, 97, .32);
  background: rgba(201, 169, 97, .12);
  color: #f0dfb2;
}

.mbp-ai-inline .ai-msg-thinking {
  width: fit-content;
  max-width: 92%;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(201, 169, 97, .08);
  color: #b9a57a;
  font-size: 13px;
}

.mbp-ai-inline em {
  color: var(--gold);
  font-style: normal;
}

.ai-chat-input-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.ai-chat-messages:empty + .ai-chat-input-row {
  margin-top: 0;
}

.ai-chat-input {
  flex: 1;
  min-width: 0;
  height: 64px;
  border: 1px solid rgba(201, 169, 97, .22);
  border-radius: 10px;
  background: #110d09;
  color: #d9cdbb;
  padding: 0 16px;
  font-size: 16px;
}

.ai-chat-send,
.nf-soft-btn,
.nf-clear-city {
  border: 1px solid rgba(201, 169, 97, .3);
  border-radius: 999px;
  background: rgba(201, 169, 97, .08);
  color: #dec48c;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ai-chat-send {
  width: 72px;
}

.ai-chat-send:disabled {
  cursor: wait;
  opacity: .7;
}

.ai-chat-tip {
  margin-top: 8px;
  color: #8e7c6b;
  font-size: 13px;
  line-height: 1.45;
}

.nf-time-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.nf-time-selects {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nf-time-sel {
  width: 84px;
  text-align: center;
}

.nf-time-sep {
  color: #c6b7a6;
  font-size: 18px;
}

.nf-soft-btn {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.nf-hint {
  color: #a29482;
  font-size: 14px;
}

.nf-city-scope {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(86px, .58fr);
  gap: 6px;
  margin: 0 0 8px;
  padding: 4px;
  border: 1px solid rgba(201, 169, 97, .22);
  border-radius: 999px;
  background: #110d09;
}

.nf-city-scope-btn {
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a29482;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.nf-city-scope-btn.active {
  background: linear-gradient(135deg, #d9b85d, #b88838);
  color: #170f08;
  box-shadow: 0 8px 18px rgba(201, 169, 97, .16);
}

.nf-city-note {
  margin: -1px 2px 9px;
  color: rgba(162, 148, 130, .9);
  font-size: 13px;
  line-height: 1.45;
}

.nf-city-search-wrap {
  position: relative;
}

.nf-city-search-wrap .nf-select {
  padding-right: 70px;
}

.nf-clear-city {
  position: absolute;
  right: 10px;
  top: 50%;
  height: 32px;
  padding: 0 10px;
  transform: translateY(-50%);
  font-size: 13px;
}

.nf-city-dropdown {
  position: absolute;
  z-index: 15;
  left: 22px;
  right: 22px;
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(201, 169, 97, .22);
  border-radius: 14px;
  background: #1a1410;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .45);
}

.nf-city-item {
  display: grid;
  gap: 3px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(201, 169, 97, .08);
  color: #c6b7a6;
  cursor: pointer;
}

.nf-city-item span {
  color: #8e8173;
  font-size: 12px;
}

.nf-city-item:hover {
  background: rgba(201, 169, 97, .1);
  color: #dec48c;
}

.nf-city-selected {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
  color: #dec48c;
  font-size: 15px;
  min-width: 0;
  white-space: nowrap;
}

.nf-city-selected-main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nf-city-selected-meta {
  flex: 0 0 auto;
  color: #a29482;
  font-size: 13px;
}

.nf-error {
  margin-top: 4px;
  padding: 10px 14px;
  border: 1px solid rgba(224, 77, 77, .3);
  border-radius: 10px;
  background: rgba(224, 77, 77, .08);
  color: #e07070;
  font-size: 14px;
}

.nf-error.is-guide {
  border-color: rgba(241, 212, 125, .42);
  background:
    linear-gradient(135deg, rgba(241, 212, 125, .13), rgba(178, 96, 58, .08)),
    rgba(16, 12, 8, .86);
  color: #f1d47d;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 244, 196, .08);
}

@keyframes mbpInputGuidePulse {
  0% {
    border-color: rgba(201, 169, 97, .24);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
    transform: translateY(0);
  }
  22% {
    border-color: rgba(241, 212, 125, .84);
    box-shadow:
      0 0 0 3px rgba(241, 212, 125, .13),
      0 20px 54px rgba(241, 212, 125, .16);
    transform: translateY(-3px);
  }
  48% {
    transform: translateY(0);
  }
  72% {
    border-color: rgba(241, 212, 125, .62);
    box-shadow:
      0 0 0 2px rgba(241, 212, 125, .1),
      0 18px 44px rgba(0, 0, 0, .38);
  }
  100% {
    border-color: rgba(201, 169, 97, .24);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
    transform: translateY(0);
  }
}

@keyframes mbpPromptGuideNudge {
  0%,
  100% {
    transform: translateX(0);
  }
  28% {
    transform: translateX(5px);
  }
  55% {
    transform: translateX(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mbp-form-card.is-input-guided,
  .mbp-input-prompt.is-input-guided {
    animation: none;
  }
}

.nf-submit-wrap {
  padding-top: 8px;
}

.nf-submit {
  position: relative;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: #c9a961;
  color: #14100c;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .26em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(201, 169, 97, .3);
}

.mbp-flow,
.mbp-specials,
.mbp-book {
  padding: 68px 0 0;
}

.mbp-book {
  position: relative;
  scroll-margin-top: 86px;
}

.mbp-book-panel {
  position: relative;
  overflow: visible;
  padding: 40px 34px 36px;
  border: 1px solid rgba(241, 212, 125, .2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 6%, rgba(241, 212, 125, .08), transparent 28%),
    radial-gradient(circle at 16% 34%, rgba(164, 93, 57, .08), transparent 30%),
    linear-gradient(180deg, rgba(16, 12, 8, .9), rgba(8, 6, 4, .88));
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 190, .06),
    0 26px 80px rgba(0, 0, 0, .28);
}

.mbp-book-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(241, 212, 125, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(241, 212, 125, .026) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: .46;
}

.mbp-book-panel > * {
  position: relative;
  z-index: 1;
}

.mbp-book::before {
  content: "";
  position: absolute;
  top: 22px;
  left: clamp(28px, 7vw, 130px);
  right: clamp(28px, 7vw, 130px);
  height: 34px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(241, 212, 125, .42) 18%, rgba(164, 93, 57, .5) 50%, rgba(241, 212, 125, .42) 82%, transparent) 50% 10px / 100% 1px no-repeat,
    radial-gradient(circle at 50% 10px, rgba(241, 212, 125, .55), rgba(241, 212, 125, .2) 3px, transparent 7px);
  opacity: .72;
}

.mbp-book::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(241, 212, 125, .55);
  background: rgba(13, 10, 8, .95);
  box-shadow: 0 0 18px rgba(241, 212, 125, .24);
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}

.mbp-section-head {
  max-width: 780px;
  margin-bottom: 32px;
}

.mbp-section-title-row,
.mbp-yijing-title-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
}

.mbp-title-seal {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 4px;
  padding: 0 12px;
  border: 1px solid rgba(241, 212, 125, .58);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(241, 212, 125, .16), rgba(38, 24, 13, .96)),
    rgba(12, 8, 5, .92);
  color: var(--gold);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(241, 212, 125, .2);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 205, .16),
    0 8px 18px rgba(0, 0, 0, .18);
}

.mbp-title-seal::before {
  content: "";
  position: absolute;
  inset: 3px 5px;
  border: 1px solid rgba(241, 212, 125, .16);
  border-radius: inherit;
  pointer-events: none;
}
.mbp-section-head span {
  color: var(--gold);
  font-weight: 900;
}

.mbp-section-head h2 {
  margin-top: 10px;
  color: var(--ivory);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
}

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

.mbp-report-pulse {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mbp-report-pulse span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(241, 212, 125, .14);
  border-radius: 999px;
  background: rgba(241, 212, 125, .045);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.mbp-report-pulse b {
  color: var(--gold);
}

.mbp-report-action-bar {
  position: absolute;
  top: 52px;
  right: 52px;
  width: min(540px, 34vw);
  min-height: 156px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 18px 34px 18px 28px;
  border: 1px solid rgba(241, 212, 125, .28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 84% 50%, rgba(241, 212, 125, .22), transparent 31%),
    radial-gradient(circle at 96% 12%, rgba(255, 244, 196, .14), transparent 26%),
    linear-gradient(135deg, rgba(164, 93, 57, .18), rgba(16, 12, 8, .9));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}

.mbp-report-action-bar span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.mbp-report-action-bar strong {
  display: block;
  margin-top: 3px;
  color: var(--ivory);
  font-size: 19px;
  line-height: 1.35;
}

.mbp-report-action-bar button,
.mbp-chapter-ai-btn {
  border: 1px solid rgba(255, 232, 190, .28);
  border-radius: 999px;
  background: linear-gradient(135deg, #d5bb69, #b96f42);
  color: #16100b;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.mbp-report-action-bar button {
  position: relative;
  isolation: isolate;
  --decode-progress: 0deg;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  align-content: center;
  width: 118px;
  height: 118px;
  min-width: 118px;
  min-height: 118px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 252, 222, .54), transparent 24%),
    radial-gradient(circle at 68% 18%, rgba(255, 246, 198, .52) 0 2px, transparent 4px),
    radial-gradient(circle at 78% 68%, rgba(255, 236, 170, .42) 0 1px, transparent 3px),
    linear-gradient(145deg, #e0c06b, #bf7a40 82%);
  font-size: 18px;
  line-height: 1.08;
  text-align: center;
  letter-spacing: .08em;
  animation: mbpDecodeOrbGlow 2.8s ease-in-out infinite;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -18px 30px rgba(98, 50, 26, .16),
    0 18px 42px rgba(185, 111, 66, .38),
    0 0 0 9px rgba(241, 212, 125, .08),
    0 0 30px rgba(241, 212, 125, .32);
}

.mbp-report-action-bar button::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 14%, rgba(255, 246, 196, .95) 20%, transparent 30%, transparent 54%, rgba(255, 218, 122, .76) 63%, transparent 74%, transparent);
  opacity: .9;
  -webkit-mask: radial-gradient(circle, transparent 0 62%, #000 64% 100%);
  mask: radial-gradient(circle, transparent 0 62%, #000 64% 100%);
  mix-blend-mode: screen;
  animation: mbpDecodeOrbSpin 5.2s linear infinite;
}

.mbp-report-action-bar button::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 1;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, .68) 47%, rgba(255, 230, 154, .34) 53%, transparent 66%);
  transform: translateX(-120%) rotate(18deg);
  mix-blend-mode: screen;
  animation: mbpDecodeOrbShine 2.6s ease-in-out infinite;
  pointer-events: none;
}

.mbp-decode-progress-ring {
  position: absolute;
  inset: 5px;
  z-index: 2;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg,
      rgba(255, 246, 196, .98) 0 var(--decode-progress, 0deg),
      rgba(87, 61, 31, .38) var(--decode-progress, 0deg) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 58%, #000 60% 72%, transparent 74% 100%);
  mask: radial-gradient(circle, transparent 0 58%, #000 60% 72%, transparent 74% 100%);
  filter: drop-shadow(0 0 9px rgba(241, 212, 125, .28));
  opacity: 0;
  visibility: hidden;
  transition: background .42s ease, filter .42s ease, opacity .24s ease, visibility .24s ease;
  pointer-events: none;
}

.mbp-decode-progress-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-conic-gradient(from -90deg, rgba(39, 27, 13, .72) 0 1.8deg, transparent 1.8deg 60deg);
}

.mbp-report-action-bar button.is-running {
  opacity: 1;
}

.mbp-report-action-bar button.has-progress .mbp-decode-progress-ring,
.mbp-report-action-bar button.has-progress .mbp-decode-progress-label,
.mbp-report-action-bar button.is-running .mbp-decode-progress-ring,
.mbp-report-action-bar button.is-running .mbp-decode-progress-label,
.mbp-report-action-bar button.is-complete .mbp-decode-progress-ring,
.mbp-report-action-bar button.is-complete .mbp-decode-progress-label {
  opacity: 1;
  visibility: visible;
}

.mbp-report-action-bar button.is-running .mbp-decode-progress-ring {
  filter: drop-shadow(0 0 14px rgba(255, 225, 142, .5));
  animation: mbpDecodeProgressBreath 1.35s ease-in-out infinite;
}

.mbp-report-action-bar button.is-complete .mbp-decode-progress-ring {
  filter: drop-shadow(0 0 18px rgba(255, 225, 142, .62));
}

.mbp-report-action-bar button span,
.mbp-report-action-bar button b,
.mbp-decode-progress-label {
  position: relative;
  z-index: 3;
  display: block;
  color: #1b1209;
  text-shadow: 0 1px 0 rgba(255, 244, 196, .36);
}

.mbp-report-action-bar button span {
  font-size: 20px;
  letter-spacing: .08em;
}

.mbp-report-action-bar button b {
  font-size: 29px;
}

.mbp-decode-progress-label {
  position: absolute;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
}

.mbp-report-action-bar button:disabled,
.mbp-chapter-ai-btn:disabled {
  opacity: .62;
  cursor: wait;
}

.mbp-report-action-bar button:disabled {
  animation: none;
}

.mbp-report-action-bar button.is-running:disabled {
  opacity: 1;
}

.mbp-report-action-bar button:disabled::before,
.mbp-report-action-bar button:disabled::after {
  animation: none;
}

@keyframes mbpDecodeOrbGlow {
  0%,
  100% {
    filter: brightness(1);
    transform: scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .28),
      inset 0 -18px 30px rgba(98, 50, 26, .16),
      0 18px 42px rgba(185, 111, 66, .38),
      0 0 0 9px rgba(241, 212, 125, .08),
      0 0 30px rgba(241, 212, 125, .32);
  }
  50% {
    filter: brightness(1.16);
    transform: scale(1.035);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .4),
      inset 0 -18px 30px rgba(98, 50, 26, .12),
      0 20px 48px rgba(185, 111, 66, .48),
      0 0 0 12px rgba(241, 212, 125, .11),
      0 0 46px rgba(255, 225, 142, .54);
  }
}

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

@keyframes mbpDecodeOrbShine {
  0%,
  34% {
    opacity: 0;
    transform: translateX(-120%) rotate(18deg);
  }
  48% {
    opacity: .95;
  }
  72%,
  100% {
    opacity: 0;
    transform: translateX(120%) rotate(18deg);
  }
}

@keyframes mbpDecodeProgressBreath {
  0%,
  100% {
    opacity: .82;
  }
  50% {
    opacity: 1;
  }
}

@keyframes mbpSmallBtnSpin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes mbpSmallBtnShine {
  0%,
  28% {
    opacity: 0;
    transform: translateX(-64%) rotate(8deg);
  }
  48% {
    opacity: .95;
  }
  100% {
    opacity: 0;
    transform: translateX(64%) rotate(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mbp-report-action-bar button,
  .mbp-report-action-bar button::before,
  .mbp-report-action-bar button::after,
  .mbp-report-action-bar button.is-running .mbp-decode-progress-ring,
  .mbp-chapter-ai-btn.is-running::before,
  .mbp-chapter-ai-btn.is-running::after {
    animation: none;
  }
}

.is-decoded .mbp-report-pulse span,
.mbp-book.is-generated .mbp-report-pulse span {
  border-color: rgba(241, 212, 125, .32);
  background: rgba(241, 212, 125, .09);
  color: var(--ivory);
}

.mbp-chart-stage {
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  gap: 34px;
  padding: 34px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 14px;
  background: rgba(16, 12, 8, .88);
}

.mbp-chart-panel {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.mbp-fc-card {
  flex: 0 0 auto;
  width: 100%;
  min-width: 420px;
  max-width: 640px;
  margin: 0;
  background: #f0ebe1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #2d2420;
}

@media (max-width: 680px) {
  .mbp-fc-card {
    min-width: 0;
  }
}

.fc-header {
  padding: 18px 18px 12px;
  display: flex;
  align-items: center;
}

.fc-header-title {
  flex: 1;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 8px;
  color: #2d2420;
}

.fc-grid-wrap {
  padding: 14px 14px 6px;
}

.fc-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 1px;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  border: 1px solid #d2c4b5;
  border-radius: 5px;
  background: #d2c4b5;
}

.fc-sanfang-lines {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.fc-sanfang-lines.is-empty {
  display: none;
}

.fc-sanfang-triangle,
.fc-sanfang-opposite {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 6;
  vector-effect: non-scaling-stroke;
}

.fc-sanfang-triangle {
  stroke: rgba(151, 82, 48, .24);
  stroke-width: .8;
  filter: drop-shadow(0 0 1px rgba(255, 250, 238, .32));
}

.fc-sanfang-opposite {
  stroke: rgba(66, 52, 43, .18);
  stroke-width: .75;
}

.fc-sanfang-point {
  fill: rgba(151, 82, 48, .48);
  stroke: rgba(255, 250, 238, .7);
  stroke-width: .45;
  vector-effect: non-scaling-stroke;
}

.fc-cell {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fdfcf9;
  cursor: pointer;
}

.fc-empty-cell {
  position: relative;
  display: grid;
  place-items: center;
  cursor: default;
}

.fc-empty-mark {
  color: rgba(45, 36, 32, .24);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.is-chart-pending .mbp-fc-card {
  box-shadow:
    0 18px 48px rgba(0, 0, 0, .38),
    0 0 0 1px rgba(241, 212, 125, .12);
}

.is-chart-pending .fc-cell,
.is-chart-pending #mbp-fc-center-panel {
  background:
    linear-gradient(135deg, rgba(210, 196, 181, .16), transparent 38%),
    #fdfcf9;
}

.is-chart-pending .fc-sanfang-lines {
  display: none;
}

.is-chart-pending .fc-center-val,
.is-chart-pending .fc-center-name,
.is-chart-pending .fc-hex-name {
  color: rgba(45, 36, 32, .36);
  letter-spacing: .12em;
}

.is-chart-pending .fc-tab {
  pointer-events: none;
}

.fc-yao-placeholder {
  opacity: .22;
}

.fc-cell:hover {
  background: #f7f2ea;
}

.fc-cell.fc-ben {
  background: #fae5df;
}

.fc-cell.fc-rel {
  background: #f4ebd5;
}

#mbp-fc-si { grid-column: 1; grid-row: 1; }
#mbp-fc-wu { grid-column: 2; grid-row: 1; }
#mbp-fc-wei { grid-column: 3; grid-row: 1; }
#mbp-fc-shen { grid-column: 4; grid-row: 1; }
#mbp-fc-chen { grid-column: 1; grid-row: 2; }
#mbp-fc-you { grid-column: 4; grid-row: 2; }
#mbp-fc-mao { grid-column: 1; grid-row: 3; }
#mbp-fc-xu { grid-column: 4; grid-row: 3; }
#mbp-fc-yin { grid-column: 1; grid-row: 4; }
#mbp-fc-chou { grid-column: 2; grid-row: 4; }
#mbp-fc-zi { grid-column: 3; grid-row: 4; }
#mbp-fc-hai { grid-column: 4; grid-row: 4; }

#mbp-fc-center-panel {
  position: relative;
  z-index: 1;
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  padding: 12px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: visible;
  background: #fdfcf9;
}

.fc-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
  overflow: hidden;
}

.fc-major-list,
.fc-minor-list,
.fc-shen-list,
.fc-palace-info {
  display: flex;
  flex-direction: column;
}

.fc-major-list {
  gap: 1px;
}

.fc-major-star {
  color: #2d2420;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.fc-minor-list {
  align-items: flex-end;
  gap: 1px;
}

.fc-minor-star {
  color: #73655c;
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
}

.fc-cell.fc-compact-stars {
  padding: 5px 6px;
}

.fc-cell.fc-compact-stars .fc-cell-top {
  gap: 4px;
  overflow: visible;
}

.fc-cell.fc-compact-stars .fc-minor-list {
  gap: 0;
}

.fc-cell.fc-compact-stars .fc-minor-star {
  font-size: 9.5px;
  line-height: 1.08;
}

.fc-cell.fc-crowded-stars .fc-minor-list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-content: start;
  justify-content: end;
  column-gap: 3px;
  row-gap: 0;
}

.fc-cell.fc-crowded-stars .fc-minor-star {
  font-size: 8.5px;
}

.fc-cell-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 2px;
}

.fc-shen-list {
  color: #8c7e75;
  font-size: 9px;
  line-height: 1.3;
}

.fc-palace-info {
  flex: 1;
  align-items: center;
  margin-left: 2px;
}

.fc-branch {
  color: #4a3f39;
  font-size: 11px;
  line-height: 1.2;
}

.fc-age {
  margin: 1px 0;
  color: #6e615a;
  font-size: 10px;
  line-height: 1.2;
}

.fc-palace-name {
  color: #1f1917;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: pre-line;
}

.fc-cell-mutagen {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 2px;
}

.fc-pal-mutagen {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .5px;
  line-height: 1.4;
}

.fc-mutagen-lu,
.fc-pal-mutagen.fc-mutagen-lu { color: #2d7a3a; }
.fc-mutagen-quan,
.fc-pal-mutagen.fc-mutagen-quan { color: #6b3fa0; }
.fc-mutagen-ke,
.fc-pal-mutagen.fc-mutagen-ke { color: #2d5fa0; }
.fc-mutagen-ji,
.fc-pal-mutagen.fc-mutagen-ji { color: #963d32; }
.fc-pal-mutagen.fc-mutagen-lu { background: #e6f4ea; border: 1px solid #b5d9bc; }
.fc-pal-mutagen.fc-mutagen-quan { background: #f0e8f8; border: 1px solid #cdb8e8; }
.fc-pal-mutagen.fc-mutagen-ke { background: #e8eef7; border: 1px solid #b0c4e0; }
.fc-pal-mutagen.fc-mutagen-ji { background: #fcecea; border: 1px solid #e8b8b4; }

.fc-center-title {
  margin-bottom: 5px;
  color: #2d2420;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 4px;
  text-align: center;
}

.fc-center-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  color: #6e615a;
  font-size: 11px;
}

.fc-center-name {
  color: #963d32;
  font-size: 12px;
  font-weight: 900;
}

.fc-center-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fc-center-row,
.fc-gua-row {
  display: flex;
  align-items: center;
  color: #6e615a;
  font-size: 10px;
}

.fc-center-lbl {
  width: 54px;
  flex-shrink: 0;
}

.fc-center-val {
  color: #4a3f39;
  font-size: 10px;
  font-weight: 900;
}

.fc-sizhu {
  display: flex;
  gap: 8px;
  margin-top: 3px;
  margin-left: 4px;
}

.fc-sizhu-row {
  display: none;
}

.fc-sizhu-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.fc-gua-rows {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fc-xiaolian-control {
  position: absolute;
  right: 10px;
  bottom: 87px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
}

.fc-xiaolian-label {
  color: #8c7e75;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.fc-xiaolian-field {
  width: 82px;
}

.fc-xiaolian-toggle {
  min-height: 22px;
  height: 22px;
  grid-template-columns: minmax(0, 1fr) 8px;
  gap: 3px;
  padding: 0 7px;
  border-color: #dcc8a3;
  border-radius: 999px;
  background: #f6efe4;
  color: #4a3f39;
  font-size: 10px;
  font-weight: 900;
}

.fc-xiaolian-toggle.is-current {
  border-color: #c07820;
  box-shadow: inset 0 0 0 1px rgba(192, 120, 32, .32);
}

.fc-xiaolian-toggle i {
  width: 6px;
  height: 6px;
  border-width: 1.5px;
}

.fc-xiaolian-menu {
  top: auto;
  bottom: calc(100% + 5px);
  left: auto;
  right: 0;
  width: 76px;
  max-height: 104px;
  padding: 3px;
  border-color: rgba(192, 120, 32, .32);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 10px 22px rgba(61, 38, 18, .22);
}

.fc-xiaolian-menu button,
.fc-xiaolian-menu .mbp-xiaolian-empty {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  border-radius: 6px;
  color: #4a3f39;
  font-size: 10px;
  font-weight: 900;
}

.fc-xiaolian-menu button:hover,
.fc-xiaolian-menu button:focus-visible {
  background: rgba(192, 120, 32, .1);
}

.fc-xiaolian-menu button.is-selected {
  background: rgba(192, 120, 32, .18);
  color: #2d2420;
}

.fc-xiaolian-current-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #c07820;
  box-shadow: 0 0 0 3px rgba(192, 120, 32, .15);
}

.fc-center-btns {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
}

.fc-center-btn {
  flex: 1;
  padding: 5px 0;
  border: 1px solid #e4dcce;
  border-radius: 999px;
  background: #f0ebe1;
  color: #6e615a;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.fc-tabs-wrap {
  padding: 16px 14px 0;
}

.fc-tabs {
  display: flex;
  padding: 4px;
  border: 1px solid rgba(210, 196, 181, .6);
  border-radius: 999px;
  background: #fdfcf9;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.fc-tab {
  flex: 1;
  padding: 11px 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8c7e75;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.fc-tab.active {
  background: #46352d;
  color: #fdfcf9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.fc-tab-deco {
  color: #bcae9f;
  font-size: 10px;
}

.fc-liunian-wrap {
  padding: 14px 10px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fc-liunian-scroll {
  flex: 1;
  overflow-x: auto;
  display: flex;
  gap: 8px;
  padding: 4px 0;
  scrollbar-width: none;
}

.fc-liunian-scroll::-webkit-scrollbar {
  display: none;
}

.fc-year-card {
  flex-shrink: 0;
  width: 76px;
  height: 58px;
  border: 1px solid #d2c4b5;
  border-radius: 8px;
  background: #fdfcf9;
  color: #6e615a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

.fc-year-card.active {
  border: 2px solid #963d32;
  background: #46352d;
  color: #fdfcf9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  font-weight: 900;
}

.fc-scroll-btn {
  width: 26px;
  height: 26px;
  border: 0;
  background: none;
  color: #8c7e75;
  font-size: 14px;
  cursor: pointer;
}

.fc-hexagram-area {
  padding: 20px 14px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fc-hex-name {
  margin-bottom: 2px;
  color: #2d2420;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 5px;
}

.fc-hex-sub {
  margin-bottom: 16px;
  color: #8c7e75;
  font-size: 10px;
  letter-spacing: 2px;
}

.fc-hex-lines {
  width: 132px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fc-hex-gap {
  height: 2px;
}

.fc-yao-solid {
  height: 12px;
  border-radius: 1px;
  background: #362923;
}

.fc-yao-broken {
  height: 12px;
  display: flex;
  gap: 12%;
}

.fc-yao-broken > div {
  flex: 1;
  border-radius: 1px;
  background: #362923;
}

.fc-guaci-card {
  margin: 0 14px 18px;
  padding: 14px 16px;
  border: 1px solid rgba(150, 61, 50, .18);
  border-radius: 8px;
  background: #fdf8f2;
}

.fc-guaci-text {
  margin: 0;
  color: #3d2b22;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.fc-yearly-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 1px 0;
  padding: 1px 2px;
  border-top: 1px dashed rgba(150, 61, 50, .3);
}

.fc-cell.fc-xiaolian {
  background:
    radial-gradient(circle at 84% 80%, rgba(210, 138, 49, .24), transparent 34%),
    linear-gradient(135deg, rgba(255, 249, 235, .98), rgba(255, 238, 207, .94)) !important;
  outline: 2px solid rgba(192, 120, 32, .9);
  outline-offset: -2px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .78),
    inset 0 0 22px rgba(192, 120, 32, .18),
    0 0 0 1px rgba(192, 120, 32, .18);
}

.fc-cell.fc-xiaolian > * {
  position: relative;
  z-index: 2;
}

.fc-cell.fc-decade {
  box-shadow: inset 0 0 0 2px rgba(109, 86, 45, .42);
}

.fc-cell.fc-decade.fc-xiaolian {
  box-shadow:
    inset 0 0 0 2px rgba(192, 120, 32, .52),
    inset 0 0 24px rgba(192, 120, 32, .2),
    0 0 0 1px rgba(192, 120, 32, .2);
}

.fc-cell.fc-xiaolian.is-locating {
  animation: fcXiaoLianCellPulse 1.7s ease-out 1;
}

.fc-cell.fc-xiaolian.is-locating::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 1;
  border-radius: 6px;
  background: linear-gradient(115deg, transparent 0%, transparent 34%, rgba(255, 255, 255, .74) 48%, transparent 62%, transparent 100%);
  pointer-events: none;
  animation: fcXiaoLianSweep 1.15s ease-out 1;
}

.fc-cell.fc-xiaolian.is-locating::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 3;
  border: 2px solid rgba(192, 120, 32, .96);
  border-radius: 6px;
  pointer-events: none;
  box-shadow:
    0 0 0 0 rgba(192, 120, 32, .34),
    inset 0 0 18px rgba(192, 120, 32, .18);
  animation: fcXiaoLianRing 1.7s ease-out 1;
}

.fc-xiaolian-badge {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d99a3e, #a96018);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow:
    0 2px 8px rgba(117, 65, 16, .32),
    0 0 0 2px rgba(255, 255, 255, .55);
  animation: fcXiaoLianBadgePop .38s ease-out 1;
}

@keyframes fcXiaoLianCellPulse {
  0% {
    filter: brightness(1);
    transform: scale(1);
  }
  24% {
    filter: brightness(1.16) saturate(1.08);
    transform: scale(1.012);
  }
  58% {
    filter: brightness(1.06);
  }
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes fcXiaoLianSweep {
  0% {
    opacity: 0;
    transform: translateX(-70%);
  }
  22% {
    opacity: .9;
  }
  100% {
    opacity: 0;
    transform: translateX(70%);
  }
}

@keyframes fcXiaoLianRing {
  0% {
    opacity: 0;
    transform: scale(.86);
  }
  18% {
    opacity: 1;
  }
  52% {
    opacity: .82;
    box-shadow:
      0 0 0 7px rgba(192, 120, 32, .12),
      inset 0 0 18px rgba(192, 120, 32, .16);
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
    box-shadow:
      0 0 0 12px rgba(192, 120, 32, 0),
      inset 0 0 18px rgba(192, 120, 32, 0);
  }
}

@keyframes fcXiaoLianBadgePop {
  0% {
    transform: scale(.82);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@media (min-width: 1021px) {
  .fc-header-title {
    font-size: 24px;
  }

  .fc-empty-mark,
  .fc-major-star,
  .fc-palace-name,
  .fc-center-name,
  .fc-sizhu-col {
    font-size: 14px;
  }

  .fc-minor-star,
  .fc-branch,
  .fc-center-meta,
  .fc-center-row,
  .fc-gua-row,
  .fc-center-val,
  .fc-center-btn {
    font-size: 12px;
  }

  .fc-shen-list,
  .fc-pal-mutagen {
    font-size: 11px;
  }

  .fc-age {
    font-size: 12px;
  }

  .fc-cell.fc-compact-stars .fc-minor-star {
    font-size: 11px;
    line-height: 1.08;
  }

  .fc-cell.fc-crowded-stars .fc-minor-star {
    font-size: 10px;
  }

  .fc-center-title {
    font-size: 18px;
  }
}

.mbp-chart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(96px, 1fr));
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(241, 212, 125, .38);
  border-radius: 8px;
  background: #090705;
}

.mbp-palace,
.mbp-chart-center {
  border-right: 1px solid rgba(241, 212, 125, .16);
  border-bottom: 1px solid rgba(241, 212, 125, .16);
  background: rgba(13, 10, 6, .9);
}

.mbp-palace {
  position: relative;
  padding: 12px;
  color: #d7c592;
}

.mbp-palace.is-life::before,
.mbp-palace.is-body::after {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.mbp-palace.is-life::before {
  content: "命";
  background: rgba(241, 212, 125, .16);
  color: var(--gold);
}

.mbp-palace.is-body::after {
  content: "身";
  top: 34px;
  background: rgba(180, 104, 62, .2);
  color: #ebb17c;
}

.mbp-palace-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--gold);
  font-weight: 900;
}

.mbp-palace-stars {
  margin-top: 12px;
  color: var(--ivory);
  font-size: 13px;
}

.mbp-palace-small {
  margin-top: 10px;
  color: #8f7a50;
  font-size: 12px;
}

.mbp-chart-center {
  grid-column: 2 / span 2;
  grid-row: 2 / span 2;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(241, 212, 125, .06), transparent),
    #151007;
}

.mbp-chart-center h3 {
  margin: 0;
  color: var(--gold);
  font: 900 32px/1.2 "Noto Serif SC", "Songti SC", serif;
}

.mbp-chart-center p {
  margin: 18px 0 0;
  color: #d5bd82;
}

.mbp-decode-panel {
  min-width: 0;
  padding: 34px;
  border: 1px solid rgba(241, 212, 125, .25);
  border-radius: 12px;
  background: rgba(8, 6, 4, .88);
}

.mbp-hero-decode {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  padding: 18px 22px;
}

.mbp-hero-decode > span,
.mbp-hero-decode h3,
.mbp-hero-decode .mbp-decode-btn,
.mbp-hero-decode .mbp-decode-meter {
  margin: 0;
}

.mbp-hero-decode h3 {
  grid-column: 2;
  font-size: 24px;
}

.mbp-hero-decode .mbp-decode-btn {
  grid-column: 3;
  grid-row: 1;
  width: 190px;
  height: 46px;
}

.mbp-hero-decode .mbp-decode-meter {
  grid-column: 1 / 2;
  width: 120px;
}

.mbp-hero-decode .mbp-module-actions {
  grid-column: 2 / -1;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 0;
}

.mbp-hero-decode .mbp-decode-status {
  grid-column: 1 / -1;
  margin-top: 0;
}

.mbp-hero-decode .mbp-decode-list {
  display: none;
}

.mbp-hero-decode .mbp-chart-summary {
  grid-column: 1 / -1;
  margin-top: 0;
}

.mbp-hero-input .mbp-hero-decode {
  grid-column: auto;
  width: 100%;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
  padding: 18px 20px 20px;
  border-color: rgba(241, 212, 125, .36);
  background:
    radial-gradient(circle at 82% 0%, rgba(241, 212, 125, .16), transparent 34%),
    linear-gradient(135deg, rgba(89, 47, 28, .72), rgba(18, 13, 8, .96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
}

.mbp-hero-input .mbp-hero-decode > span,
.mbp-hero-input .mbp-hero-decode h3,
.mbp-hero-input .mbp-hero-decode .mbp-decode-btn,
.mbp-hero-input .mbp-hero-decode .mbp-decode-meter,
.mbp-hero-input .mbp-hero-decode .mbp-module-actions,
.mbp-hero-input .mbp-hero-decode .mbp-decode-status,
.mbp-hero-input .mbp-hero-decode .mbp-chart-summary {
  grid-column: auto;
  grid-row: auto;
}

.mbp-hero-input .mbp-hero-decode .mbp-decode-btn {
  width: 100%;
  height: 64px;
  font-size: 22px;
  letter-spacing: .08em;
  background: linear-gradient(135deg, #d0b76b, #b2653d);
  color: #120d07;
  box-shadow: 0 12px 24px rgba(176, 101, 61, .28), inset 0 1px 0 rgba(255, 246, 214, .48);
}

.mbp-hero-input .mbp-hero-decode .mbp-decode-meter {
  width: 100%;
}

.mbp-hero-input .mbp-hero-decode .mbp-module-actions {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.mbp-decode-panel > span {
  color: var(--muted);
  font-weight: 900;
}

.mbp-hero-input .mbp-hero-decode > span {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .18em;
}

.mbp-decode-panel h3 {
  margin: 12px 0 24px;
  color: var(--ivory);
  font: 900 32px/1.25 "Noto Serif SC", "Songti SC", serif;
}

.mbp-hero-input .mbp-hero-decode h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.mbp-decode-btn {
  width: 240px;
  height: 54px;
  font-size: 18px;
}

.mbp-decode-btn:disabled {
  cursor: wait;
  opacity: .72;
}

.mbp-decode-meter {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  width: min(260px, 100%);
  margin-top: 16px;
}

.mbp-decode-meter i {
  height: 5px;
  border-radius: 999px;
  background: rgba(241, 212, 125, .12);
  box-shadow: inset 0 0 0 1px rgba(241, 212, 125, .08);
}

.mbp-decode-meter i.is-running {
  background: rgba(241, 212, 125, .42);
}

.mbp-decode-meter i.is-done {
  background: linear-gradient(90deg, var(--gold), var(--copper));
}

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

.mbp-module-actions button,
.mbp-card-ai-btn {
  min-width: 0;
  border: 1px solid rgba(241, 212, 125, .24);
  border-radius: 999px;
  background: rgba(241, 212, 125, .07);
  color: var(--gold);
  font-weight: 900;
  cursor: pointer;
}

.mbp-module-actions button {
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.mbp-card-ai-btn {
  position: relative;
  z-index: 1;
  width: max-content;
  height: 36px;
  margin: -2px 0 14px;
  padding: 0 16px;
}

.mbp-module-actions button:disabled,
.mbp-card-ai-btn:disabled {
  cursor: wait;
  opacity: .58;
}

.mbp-module-actions button.is-done,
.mbp-card-ai-btn.is-done {
  border-color: rgba(241, 212, 125, .46);
  background: rgba(241, 212, 125, .14);
  color: var(--ivory);
}

.mbp-decode-status {
  margin-top: 14px;
  color: var(--gold-2);
  font-size: 14px;
}

.mbp-hero-input .mbp-hero-decode .mbp-decode-status {
  margin: 0;
  color: #dbc58b;
  font-size: 13px;
  text-align: center;
}

.mbp-decode-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.mbp-decode-list p {
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(241, 212, 125, .1);
  border-radius: 7px;
  background: rgba(241, 212, 125, .05);
  color: #c9b47d;
  overflow-wrap: anywhere;
}

.mbp-decode-list strong {
  display: inline-block;
  min-width: 42px;
  margin-right: 10px;
  color: var(--gold);
}

.mbp-chart-summary {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.mbp-hero-input .mbp-hero-decode .mbp-chart-summary {
  display: none;
}

.mbp-module-actions-hidden {
  display: none;
}

.mbp-special-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}

.mbp-special-card {
  position: relative;
  min-height: 245px;
  grid-column: span 2;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(241, 212, 125, .2);
  border-radius: 10px;
  background: rgba(8, 6, 4, .9);
}

.mbp-special-card.is-wide {
  grid-column: span 3;
}

.mbp-special-card::before {
  content: "";
  position: absolute;
  inset: 0 24px auto;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  opacity: .72;
}

.mbp-special-card[data-report="marriage"]::before { background: var(--rose); }
.mbp-special-card[data-report="health"]::before { background: var(--green); }
.mbp-special-card[data-report="wealth"]::before { background: var(--gold-2); }
.mbp-special-card[data-report="career"]::before { background: var(--violet); }

.mbp-special-card i {
  position: absolute;
  right: 22px;
  bottom: -28px;
  color: currentColor;
  font: 900 116px/1 "Noto Serif SC", "Songti SC", serif;
  opacity: .07;
}

.mbp-special-card span {
  display: inline-flex;
  padding: 3px 12px;
  border: 1px solid rgba(241, 212, 125, .2);
  border-radius: 5px;
  color: var(--gold);
  font-weight: 900;
  font-size: 13px;
}

.mbp-special-card h3 {
  margin: 26px 0 14px;
  color: var(--ivory);
  font: 900 30px/1.25 "Noto Serif SC", "Songti SC", serif;
}

.mbp-ai-status {
  display: block;
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.mbp-special-card.is-running .mbp-ai-status {
  color: var(--gold);
}

.mbp-special-card.is-error .mbp-ai-status {
  color: #c96a58;
}

.mbp-special-card p {
  margin: 0;
  max-width: 92%;
  color: #d4c096;
  white-space: pre-line;
}

.mbp-special-result,
.mbp-insight-summary,
.mbp-insight-detail p {
  color: #d4c096;
}

.mbp-special-result {
  position: relative;
  z-index: 1;
  max-width: 96%;
  overflow-wrap: anywhere;
}

.mbp-insight-summary {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.mbp-insight-points {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.mbp-insight-points li {
  position: relative;
  padding-left: 18px;
  color: #a99463;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.mbp-insight-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold-2);
}

.mbp-insight-detail {
  margin-top: 16px;
  border-top: 1px solid rgba(241, 212, 125, .12);
  padding-top: 12px;
}

.mbp-insight-detail summary {
  width: max-content;
  cursor: pointer;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.mbp-insight-detail div {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.mbp-insight-detail.is-direct {
  margin-top: 14px;
}

.mbp-insight-detail.is-direct > div {
  margin-top: 0;
}

.mbp-insight-detail section {
  padding: 12px 14px;
  border: 1px solid rgba(241, 212, 125, .12);
  border-radius: 8px;
  background: rgba(241, 212, 125, .035);
}

.mbp-insight-detail strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ivory);
}

.mbp-insight-detail p {
  margin: 0;
  max-width: none;
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.mbp-topic-segments {
  display: grid;
  gap: 16px;
}

p.mbp-topic-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 15px 17px;
  border: 1px solid rgba(241, 212, 125, .14);
  border-radius: 11px;
  background: rgba(241, 212, 125, .045);
  max-width: none;
  color: #ddcca2;
  font-size: 15px;
  line-height: 1.9;
}

.mbp-topic-lead b,
.mbp-topic-split strong {
  color: var(--gold);
  white-space: nowrap;
}

.mbp-topic-lead b {
  width: max-content;
  font-size: 17px;
  line-height: 1.2;
}

.mbp-topic-lead span {
  display: block;
  overflow-wrap: anywhere;
}

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

.mbp-topic-split section {
  padding: 15px 17px;
  border: 1px solid rgba(241, 212, 125, .14);
  border-radius: 9px;
  background: rgba(241, 212, 125, .045);
}

.mbp-topic-split p,
.mbp-topic-detail {
  margin: 6px 0 0;
  max-width: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  white-space: normal;
}

p.mbp-topic-detail {
  margin-top: 0;
  padding-left: 14px;
  border-left: 2px solid rgba(241, 212, 125, .35);
}

.mbp-topic-segments mark,
.mbp-special-overview mark,
.mbp-advice-chapter mark {
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(241, 212, 125, .18);
  color: #fff0b8;
}

.mbp-special-chapter {
  display: grid;
  gap: 16px;
}

.mbp-special-overview {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 8% 0%, rgba(241, 212, 125, .12), transparent 34%),
    rgba(241, 212, 125, .045);
}

.mbp-special-overview span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.mbp-special-overview strong {
  color: var(--ivory);
  font-size: 18px;
}

.mbp-special-overview ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mbp-special-overview li {
  position: relative;
  padding-left: 16px;
  color: #d4c096;
  line-height: 1.65;
}

.mbp-special-overview li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold-2);
}

.mbp-special-topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.mbp-special-topic-card {
  padding: 22px;
  border: 1px solid rgba(241, 212, 125, .15);
  border-radius: 12px;
  background: rgba(241, 212, 125, .035);
}

.mbp-special-topic-card header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.mbp-special-topic-card header span {
  padding: 3px 8px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.mbp-special-topic-card h4 {
  margin: 0;
  color: var(--ivory);
  font-size: 18px;
}

.mbp-special-topic-card .mbp-topic-split {
  grid-template-columns: 1fr;
}

.mbp-special-reading {
  display: grid;
  gap: 28px;
}

.mbp-special-reading-overview {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px 32px;
  overflow: hidden;
  border: 1px solid rgba(216, 185, 99, .26);
  border-radius: 14px;
  background: rgba(29, 22, 13, .74);
}

.mbp-special-reading-overview::after {
  content: "";
  position: absolute;
  right: 34px;
  top: 28px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(216, 185, 99, .12);
  border-radius: 999px;
  box-shadow:
    0 0 0 24px rgba(216, 185, 99, .05),
    0 0 0 50px rgba(216, 185, 99, .035);
  pointer-events: none;
}

.mbp-special-reading-overview span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.mbp-special-reading-overview strong {
  position: relative;
  z-index: 1;
  color: #fff1c8;
  font-size: 24px;
  line-height: 1.35;
}

.mbp-special-reading-overview p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #d9c9a5;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.82;
}

.mbp-special-reading-list {
  display: grid;
  gap: 38px;
}

.mbp-special-reading-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 30%);
  gap: 38px;
  align-items: start;
}

.mbp-special-reading-main,
.mbp-special-reading-note {
  border: 1px solid rgba(216, 185, 99, .2);
  border-radius: 14px;
  background: rgba(18, 14, 9, .86);
}

.mbp-special-reading-main {
  padding: 30px 34px;
}

.mbp-special-reading-main header {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 28px;
}

.mbp-special-reading-no {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(216, 185, 99, .56);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(216, 185, 99, .13), rgba(92, 68, 28, .24)),
    #241b0f;
  box-shadow:
    inset 0 0 0 6px rgba(8, 6, 4, .46),
    inset 0 0 0 7px rgba(216, 185, 99, .18);
  color: #e6cc7a;
  font: 900 20px/1 "Noto Serif SC", "Songti SC", serif;
}

.mbp-special-reading-main h4 {
  margin: 0;
  color: #fff2c9;
  font: 900 28px/1.25 "Noto Serif SC", "Songti SC", serif;
}

.mbp-special-reading-lead,
.mbp-special-reading-detail,
.mbp-special-reading-note p {
  margin: 0;
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mbp-special-reading-lead {
  color: #f1e4c3;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.9;
}

.mbp-special-reading-detail {
  margin-top: 24px;
  color: #d2c3a1;
  font-size: 16px;
  line-height: 1.9;
}

.mbp-special-reading-note {
  padding: 28px 30px;
  background: rgba(33, 24, 14, .88);
}

.mbp-special-reading-note strong {
  display: block;
  color: #dfc46f;
  font-size: 22px;
  line-height: 1.35;
}

.mbp-special-reading-note p {
  margin-top: 26px;
  color: #e1d0a5;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.75;
}

.mbp-special-reading-note small {
  display: block;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 185, 99, .16);
  color: #8e826b;
  font-size: 13px;
  line-height: 1.6;
}

.mbp-special-reading mark {
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(216, 185, 99, .16);
  color: #fff1bd;
}

.mbp-advice-chapter {
  display: grid;
  gap: 16px;
}

.mbp-advice-risk {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 8% 0%, rgba(185, 111, 66, .16), transparent 34%),
    rgba(241, 212, 125, .04);
}

.mbp-advice-risk span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.mbp-advice-risk strong {
  color: var(--ivory);
  font-size: 18px;
}

.mbp-advice-risk ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mbp-advice-risk li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #d4c096;
  line-height: 1.7;
}

.mbp-advice-risk li b {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
}

.mbp-advice-risk li span {
  color: #d4c096;
  font-size: 14px;
  font-weight: 700;
}

.mbp-advice-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mbp-advice-steps section {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(241, 212, 125, .14);
  border-radius: 12px;
  background: rgba(241, 212, 125, .035);
}

.mbp-advice-steps h4 {
  margin: 0 0 8px;
  color: #fff4d6;
  font-size: 16px;
}

.mbp-advice-steps p,
.mbp-advice-note {
  margin: 0;
  color: #d4c096;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.mbp-advice-note {
  padding: 12px 14px;
  border-left: 3px solid rgba(241, 212, 125, .48);
  border-radius: 0 9px 9px 0;
  background: rgba(241, 212, 125, .045);
}

@media (max-width: 760px) {
  p.mbp-topic-lead,
  .mbp-topic-split,
  .mbp-special-topic-grid,
  .mbp-advice-steps {
    grid-template-columns: 1fr;
  }

  .mbp-topic-lead b {
    width: max-content;
  }

  .mbp-advice-risk li {
    grid-template-columns: 1fr;
  }

  .mbp-special-reading-overview {
    padding: 22px 20px;
  }

  .mbp-special-reading-overview::after {
    right: -28px;
    top: -22px;
    opacity: .7;
  }

  .mbp-special-reading-overview strong {
    font-size: 21px;
  }

  .mbp-special-reading-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mbp-special-reading-main {
    padding: 22px 20px;
  }

  .mbp-special-reading-main header {
    gap: 16px;
    margin-bottom: 22px;
  }

  .mbp-special-reading-no {
    width: 54px;
    height: 54px;
    font-size: 18px;
  }

  .mbp-special-reading-main h4 {
    font-size: 24px;
  }

  .mbp-special-reading-lead {
    font-size: 16px;
  }

  .mbp-special-reading-detail,
  .mbp-special-reading-note p {
    font-size: 15px;
  }

  .mbp-special-reading-note {
    padding: 22px 20px;
  }
}

@media (min-width: 1021px) {
  .is-decoded .mbp-special-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .is-decoded .mbp-special-card,
  .is-decoded .mbp-special-card.is-wide {
    grid-column: auto;
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 0 24px;
    padding: 24px 26px;
  }

  .is-decoded .mbp-special-card:has(.mbp-insight-detail[open]) {
    grid-column: auto;
  }

  .is-decoded .mbp-special-card i {
    right: 14px;
    bottom: -14px;
    font-size: 82px;
  }

  .is-decoded .mbp-special-card span {
    align-self: flex-start;
    padding-inline: 9px;
  }

  .is-decoded .mbp-special-card span,
  .is-decoded .mbp-special-card h3,
  .is-decoded .mbp-special-card .mbp-ai-status,
  .is-decoded .mbp-special-card .mbp-card-ai-btn {
    grid-column: 1;
  }

  .is-decoded .mbp-special-card h3 {
    margin: 14px 0 8px;
    font-size: 22px;
  }

  .is-decoded .mbp-ai-status {
    margin-bottom: 8px;
  }

  .is-decoded .mbp-special-result {
    grid-column: 2;
    grid-row: 1 / span 5;
    max-width: none;
    display: block;
    min-height: 0;
  }

  .is-decoded .mbp-special-card .mbp-insight-summary,
  .is-decoded .mbp-special-card .mbp-insight-points li {
    display: block;
    overflow: visible;
  }

  .is-decoded .mbp-special-card .mbp-insight-summary {
    font-size: 14px;
    line-height: 1.7;
  }

  .is-decoded .mbp-special-card .mbp-insight-points {
    gap: 6px;
    margin-top: 10px;
  }

  .is-decoded .mbp-special-card .mbp-insight-points li {
    font-size: 12px;
    line-height: 1.55;
  }

  .is-decoded .mbp-special-card .mbp-insight-detail {
    margin-top: 12px;
    padding-top: 10px;
  }

  .is-decoded .mbp-special-card .mbp-insight-detail.is-direct > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .is-decoded .mbp-special-card .mbp-insight-detail.is-direct section:only-child {
    grid-column: 1 / -1;
  }
}

.mbp-preview-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 54px;
  padding: 14px 22px;
  border: 1px solid rgba(241, 212, 125, .2);
  border-radius: 999px;
  background: rgba(16, 12, 8, .85);
}

.mbp-preview-bar span {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(241, 212, 125, .12);
  color: var(--gold);
  font-weight: 900;
}

.mbp-preview-bar strong {
  color: var(--ivory);
  font-weight: 800;
}

.mbp-preview-bar em {
  color: var(--gold-2);
  font-style: normal;
}

.mbp-book-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  padding-top: 6px;
}

.mbp-book-cover {
  min-height: 620px;
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 34px 28px;
  border: 1px solid rgba(241, 212, 125, .3);
  background:
    linear-gradient(180deg, rgba(241, 212, 125, .06), transparent 24%),
    rgba(8, 6, 4, .9);
}

.mbp-book-kicker {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  letter-spacing: .32em;
}

.mbp-book-title {
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: .18em;
  text-align: center;
}

.mbp-book-client {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(241, 212, 125, .3);
  background: rgba(86, 38, 22, .18);
}

.mbp-book-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 235, 174, .55);
  border-radius: 999px;
  background: linear-gradient(135deg, #c97944, #7e2e20);
  color: #fff3d0;
  font-size: 26px;
  font-weight: 900;
}

.mbp-book-client strong {
  display: block;
  color: var(--ivory);
  font-size: 18px;
}

.mbp-book-client p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.mbp-book-menu-head {
  display: flex;
  justify-content: space-between;
  color: var(--ivory);
  font-weight: 800;
}

.mbp-book-menu-head em {
  color: var(--gold-2);
  font-style: normal;
  font-size: 12px;
}

.mbp-book-menu {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mbp-book-menu li {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 0;
  color: #8c7b53;
  --mbp-chapter-progress: 0%;
  transition: border-color .22s ease, background .22s ease, color .22s ease;
}

.mbp-book-menu li.is-active {
  border-color: rgba(241, 212, 125, .35);
  background: rgba(241, 212, 125, .08);
  color: var(--ivory);
}

.mbp-book-menu button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 7px 8px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  line-height: 1.2;
  cursor: pointer;
}

.mbp-book-menu button:focus-visible {
  outline: 2px solid rgba(241, 212, 125, .55);
  outline-offset: 2px;
}

.mbp-book-menu b {
  color: var(--gold);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 17px;
  line-height: 1;
}

.mbp-book-menu span {
  overflow: visible;
  color: inherit;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: clip;
}

.mbp-book-menu small {
  color: #7f704e;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.mbp-book-menu li.is-running small,
.mbp-book-menu li.is-partial small {
  color: var(--gold-2);
}

.mbp-book-menu li.is-done small {
  color: var(--gold);
}

.mbp-book-menu li.is-running {
  border-color: rgba(241, 212, 125, .28);
  background: rgba(241, 212, 125, .055);
}

.mbp-book-menu li.is-done {
  color: var(--ivory);
}

.mbp-book-menu-progress {
  grid-column: 2 / -1;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(241, 212, 125, .09);
}

.mbp-book-menu-progress u {
  display: block;
  width: var(--mbp-chapter-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--copper));
  box-shadow: 0 0 14px rgba(241, 212, 125, .25);
  transition: width .36s ease;
}

.mbp-book-menu i {
  display: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--copper);
  color: #fff0cf;
  font-style: normal;
}

.mbp-book-menu li:not(.is-active) i {
  visibility: hidden;
}

.mbp-book-progress {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(241, 212, 125, .18);
  background: rgba(241, 212, 125, .045);
}

.mbp-book-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mbp-book-progress-top span {
  color: #b9a780;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.mbp-book-progress-top b {
  color: var(--gold);
  font-size: 17px;
}

.mbp-book-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(241, 212, 125, .1);
  box-shadow: inset 0 0 0 1px rgba(241, 212, 125, .06);
}

.mbp-book-progress-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2d77c, #c97944);
  box-shadow: 0 0 18px rgba(241, 212, 125, .28);
  transition: width .42s ease;
}

.mbp-book-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mbp-book-cover > button {
  width: 180px;
  height: 46px;
  margin: 4px auto 0;
  border: 1px solid rgba(241, 212, 125, .3);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.mbp-book-cover .mbp-pdf-pack-btn {
  width: 208px;
  max-width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 14px 0 18px;
  background: rgba(241, 212, 125, .08);
  font-weight: 900;
}

.mbp-book-cover .mbp-pdf-pack-btn span {
  flex: 0 1 104px;
  color: var(--gold);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
}

.mbp-book-cover .mbp-pdf-pack-btn.is-ready {
  border-color: rgba(241, 212, 125, .58);
  background: linear-gradient(135deg, rgba(241, 212, 125, .18), rgba(160, 84, 50, .18));
  box-shadow: 0 0 22px rgba(241, 212, 125, .12);
}

.mbp-book-cover .mbp-pdf-pack-btn.is-error {
  border-color: rgba(201, 106, 88, .65);
  color: #ffd0c2;
}

.mbp-book-cover .mbp-pdf-pack-btn small {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  border-radius: 999px;
  background: rgba(241, 212, 125, .16);
  color: var(--ivory);
  font-size: 13px;
  line-height: 1;
}

.mbp-pdf-hint {
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.mbp-pdf-hint.is-ready {
  color: var(--gold);
}

.mbp-pdf-hint.is-error {
  color: #c96a58;
}

.mbp-book-cover .mbp-pdf-pack-btn:disabled {
  cursor: wait;
  opacity: .7;
}

.mbp-pdf-export-host {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 794px;
  min-height: 1123px;
  pointer-events: none;
}

.mbp-pdf-report {
  width: 794px;
  min-height: 1123px;
  padding: 30px 34px;
  box-sizing: border-box;
  background: #f5efe4;
  color: #2d2420;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.mbp-pdf-report *,
.mbp-pdf-report *::before,
.mbp-pdf-report *::after {
  box-sizing: border-box;
}

.mbp-pdf-head {
  padding-bottom: 18px;
  border-bottom: 2px solid #d3bea0;
}

.mbp-pdf-head span {
  display: block;
  color: #9a6a18;
  font-weight: 900;
  letter-spacing: .12em;
}

.mbp-pdf-head h1 {
  margin: 10px 0;
  color: #2d2420;
  font: 900 30px/1.25 "Noto Serif SC", "Songti SC", serif;
  letter-spacing: .02em;
}

.mbp-pdf-head p,
.mbp-pdf-section p {
  color: #5d5149;
}

.mbp-pdf-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.mbp-pdf-meta div,
.mbp-pdf-toc {
  border: 1px solid #decbaa;
  border-radius: 10px;
  background: #fffaf2;
}

.mbp-pdf-meta div {
  padding: 12px;
}

.mbp-pdf-meta b {
  display: block;
  margin-bottom: 5px;
  color: #9a6a18;
  font-size: 12px;
}

.mbp-pdf-meta span {
  color: #2d2420;
  font-weight: 800;
}

.mbp-pdf-toc {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.mbp-pdf-toc li {
  padding: 10px 8px;
  border-left: 1px solid #decbaa;
  color: #5d5149;
  text-align: center;
  font-weight: 800;
}

.mbp-pdf-toc li:first-child {
  border-left: 0;
}

.mbp-pdf-section {
  margin-top: 22px;
}

.mbp-pdf-basic-section,
.mbp-pdf-chart-section {
  break-inside: avoid;
  page-break-inside: avoid;
}

.mbp-pdf-section h2 {
  margin: 0 0 14px;
  color: #2d2420;
  font: 900 22px/1.25 "Noto Serif SC", "Songti SC", serif;
}

.mbp-pdf-basic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mbp-pdf-basic-card {
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #decbaa;
  border-radius: 8px;
  background: #fffaf2;
}

.mbp-pdf-basic-card b {
  display: block;
  margin-bottom: 5px;
  color: #9a6a18;
  font-size: 11px;
  line-height: 1.2;
}

.mbp-pdf-basic-card span {
  display: block;
  color: #2d2420;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

.mbp-pdf-chart-panel {
  padding: 12px;
  border: 1px solid #d8c7a9;
  border-radius: 12px;
  background: #fffaf2;
}

.mbp-pdf-zw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 130px);
  gap: 0;
  overflow: hidden;
  border: 1px solid #cdbda4;
  border-radius: 8px;
  background: #fefdf9;
}

.mbp-pdf-palace,
.mbp-pdf-chart-center {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid #cdbda4;
  border-bottom: 1px solid #cdbda4;
}

.mbp-pdf-palace {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 7px;
  background: #fffdf8;
}

.mbp-pdf-palace:nth-child(odd) {
  background: #f6eedc;
}

.mbp-pdf-palace header,
.mbp-pdf-palace footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mbp-pdf-palace header strong {
  color: #2d2420;
  font-size: 13px;
  font-weight: 900;
}

.mbp-pdf-palace header span,
.mbp-pdf-palace footer span {
  color: #75695f;
  font-size: 10px;
}

.mbp-pdf-palace em {
  width: max-content;
  margin-top: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(150, 61, 50, .1);
  color: #963d32;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

.mbp-pdf-palace > b {
  display: block;
  margin-top: 7px;
  color: #1f1b18;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.mbp-pdf-palace p {
  margin: 5px 0 0;
  color: #6d6258;
  font-size: 10px;
  line-height: 1.35;
}

.mbp-pdf-palace footer {
  margin-top: auto;
}

.mbp-pdf-palace footer strong {
  color: #1f1b18;
  font-size: 13px;
  font-weight: 900;
}

.mbp-pdf-chart-center {
  grid-column: 2 / span 2;
  grid-row: 2 / span 2;
  padding: 18px 20px;
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mbp-pdf-chart-center h3 {
  margin: 0 0 12px;
  color: #2d2420;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .16em;
}

.mbp-pdf-chart-center dl {
  margin: 0;
  display: grid;
  gap: 7px;
}

.mbp-pdf-chart-center dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.mbp-pdf-chart-center dt {
  color: #8c7e75;
  font-size: 11px;
}

.mbp-pdf-chart-center dd {
  margin: 0;
  color: #2d2420;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.mbp-pdf-chapters-slot {
  display: grid;
  gap: 16px;
}

.mbp-pdf-chapter {
  padding: 18px 20px;
  border: 1px solid #d8c7a9;
  border-radius: 12px;
  background: #fffaf2;
}

.mbp-pdf-chapter-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eadcc6;
}

.mbp-pdf-chapter-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #2d2420;
  color: #f4d978;
  font-size: 13px;
  font-weight: 900;
}

.mbp-pdf-chapter-head h3 {
  margin: 0;
  color: #2d2420;
  font: 900 24px/1.25 "Noto Serif SC", "Songti SC", serif;
}

.mbp-pdf-chapter-body {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mbp-pdf-text-card {
  padding: 13px 14px;
  border: 1px solid #e0d0b4;
  border-radius: 9px;
  background: #fffdf8;
}

.mbp-pdf-text-card strong {
  display: block;
  margin-bottom: 6px;
  color: #2d2420;
  font-size: 15px;
  font-weight: 900;
}

.mbp-pdf-text-card p {
  margin: 0;
  color: #5d5149;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.mbp-pdf-report .mbp-chapters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.mbp-pdf-report .mbp-chapters article {
  min-height: 0;
  padding: 18px;
  border: 1px solid #d8c7a9;
  border-radius: 10px;
  background: #fffaf2;
  color: #2d2420;
  break-inside: avoid;
  page-break-inside: avoid;
}

.mbp-pdf-report .mbp-report-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
}

.mbp-pdf-report .mbp-report-row > span {
  width: 38px;
  height: 38px;
  border-color: #d8c7a9;
  background: #f2eadc;
  color: #9a6a18;
}

.mbp-pdf-report .mbp-chapters h3,
.mbp-pdf-report .mbp-insight-detail strong {
  color: #2d2420;
}

.mbp-pdf-report .mbp-insight-summary,
.mbp-pdf-report .mbp-insight-detail p,
.mbp-pdf-report .mbp-chapters p {
  color: #5d5149;
}

.mbp-pdf-report .mbp-insight-detail section {
  border-color: #e0d0b4;
  background: #fffdf8;
}

.mbp-pdf-report .mbp-luck-hero,
.mbp-pdf-report .mbp-luck-kv section,
.mbp-pdf-report .mbp-luck-cards section,
.mbp-pdf-report .mbp-xiaolian-panel,
.mbp-pdf-report .mbp-xiaolian-grid section,
.mbp-pdf-report .mbp-luck-bottom section,
.mbp-pdf-report .mbp-luck-timing span {
  border-color: #e0d0b4;
  background: #fffdf8;
}

.mbp-pdf-report .mbp-luck-hero strong,
.mbp-pdf-report .mbp-luck-kv strong,
.mbp-pdf-report .mbp-xiaolian-head strong,
.mbp-pdf-report .mbp-xiaolian-grid strong,
.mbp-pdf-report .mbp-luck-bottom h4 {
  color: #2d2420;
}

.mbp-pdf-report .mbp-luck-hero p,
.mbp-pdf-report .mbp-luck-kv p,
.mbp-pdf-report .mbp-luck-cards p,
.mbp-pdf-report .mbp-luck-summary,
.mbp-pdf-report .mbp-xiaolian-head p,
.mbp-pdf-report .mbp-xiaolian-grid p,
.mbp-pdf-report .mbp-xiaolian-callout p,
.mbp-pdf-report .mbp-luck-bottom ol,
.mbp-pdf-report .mbp-luck-timing span {
  color: #5d5149;
}

.mbp-pdf-report .mbp-luck-summary {
  background: #fffdf8;
  border-left-color: #c9a961;
}

/* Temporarily hide helper blocks; keep markup and JS for later restore/delete. */
.mbp-fc-card .fc-tabs-wrap,
.mbp-fc-card .fc-liunian-wrap,
.mbp-fc-card .fc-hexagram-area,
.mbp-fc-card .fc-guaci-card {
  display: none !important;
}

.mbp-yijing-assist {
  margin: 34px 0 0;
  padding: clamp(26px, 2.8vw, 36px);
  scroll-margin-top: 86px;
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(0, 1fr);
  grid-template-rows: auto;
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
  border: 1px solid rgba(241, 212, 125, .24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 16% 18%, rgba(241, 212, 125, .12), transparent 32%),
    linear-gradient(135deg, rgba(16, 12, 7, .94), rgba(32, 20, 12, .82));
  box-shadow: inset 0 0 0 1px rgba(241, 212, 125, .06), 0 18px 48px rgba(0, 0, 0, .26);
}

.mbp-yijing-left,
.mbp-yijing-right {
  min-width: 0;
}

.mbp-yijing-left {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(16px, 1.45vw, 22px);
  align-content: start;
  justify-items: stretch;
  padding: 4px 0 0;
}

.mbp-yijing-kicker {
  display: block;
  color: var(--ivory);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(36px, 2.8vw, 48px);
  font-weight: 900;
  line-height: 1.08;
  white-space: nowrap;
}

.mbp-yijing-left h3 {
  margin: 0;
  color: var(--gold);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(30px, 2.4vw, 42px);
  line-height: 1.15;
  text-align: center;
}

.mbp-yijing-left p {
  max-width: none;
  margin: 8px 0 0;
  color: #d4c096;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.mbp-yijing-lines {
  width: 72px;
  display: grid;
  gap: 4px;
  margin: 0 auto;
}

.mbp-yijing-line {
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(241, 212, 125, .10);
}

.mbp-yijing-line.is-broken {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  background: transparent;
  box-shadow: none;
}

.mbp-yijing-line.is-broken i {
  border-radius: 999px;
  background: var(--gold);
}

.mbp-yijing-gap {
  height: 1px;
}

.mbp-yijing-right {
  position: relative;
  z-index: 1;
  display: grid;
  grid-column: 2;
  grid-row: 1;
  gap: 14px;
  align-content: start;
  justify-items: stretch;
}

.mbp-yijing-mode-head {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbb78a;
  font-size: 13px;
  font-weight: 900;
}

.mbp-yijing-mode-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(241, 212, 125, .3);
  border-radius: 999px;
  background: rgba(241, 212, 125, .07);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 202, .05);
}

.mbp-yijing-mode-head strong {
  color: #ead8aa;
  font-size: 13px;
  font-weight: 950;
}

.mbp-yijing-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  min-height: 52px;
  padding: 4px;
  border: 1px solid rgba(241, 212, 125, .22);
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
}

.mbp-yijing-tab-item {
  position: relative;
  display: grid;
}

.mbp-yijing-tabs [data-yijing-tab] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d4c096;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.mbp-yijing-help {
  position: absolute;
  top: 50%;
  right: 16%;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 1px solid rgba(241, 212, 125, .5);
  border-radius: 7px;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 246, 202, .22), transparent 38%),
    rgba(241, 212, 125, .12);
  color: #f7dda1;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 202, .08),
    0 0 14px rgba(241, 212, 125, .14);
  transform: translate(24px, -50%);
}

.mbp-yijing-tabs [data-yijing-tab].is-active + .mbp-yijing-help {
  border-color: rgba(105, 48, 30, .42);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 245, 204, .28), transparent 38%),
    rgba(132, 62, 38, .18);
  color: #4b2412;
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 202, .12),
    0 0 16px rgba(105, 48, 30, .18);
}

.mbp-yijing-help::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 11px);
  width: 250px;
  max-width: min(250px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid rgba(241, 212, 125, .3);
  border-radius: 8px;
  background: rgba(16, 12, 8, .96);
  color: #eadfbd;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  text-align: left;
  white-space: normal;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease;
}

.mbp-yijing-help::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(241, 212, 125, .3);
  border-bottom: 1px solid rgba(241, 212, 125, .3);
  background: rgba(16, 12, 8, .96);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px) rotate(45deg);
  transition: opacity .18s ease, transform .18s ease;
}

.mbp-yijing-help:hover::before,
.mbp-yijing-help:hover::after,
.mbp-yijing-help:focus-visible::before,
.mbp-yijing-help:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

.mbp-yijing-help:hover::after,
.mbp-yijing-help:focus-visible::after {
  transform: translate(-50%, 0);
}

.mbp-yijing-tabs [data-yijing-tab].is-active {
  background: linear-gradient(135deg, #d5bb69, #b96f42);
  color: #17100a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.mbp-yijing-help-note {
  margin: -2px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(241, 212, 125, .16);
  border-radius: 8px;
  background: rgba(241, 212, 125, .055);
  color: #d9c89b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.mbp-yijing-help-note[hidden] {
  display: none;
}

.mbp-yijing-years {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 0 6px;
  scrollbar-width: thin;
}

.mbp-yijing-years[hidden] {
  display: none;
}

.mbp-yijing-years button {
  flex: 0 0 72px;
  min-height: 46px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 8px;
  background: rgba(0, 0, 0, .16);
  color: #bda978;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mbp-yijing-years button.is-active {
  border-color: rgba(241, 212, 125, .55);
  background: rgba(241, 212, 125, .14);
  color: var(--ivory);
}

.mbp-yijing-years small {
  display: block;
  margin-top: 2px;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
}

.mbp-yijing-guaci {
  min-height: 78px;
  margin: 0;
  padding: 20px 24px;
  border-left: 3px solid rgba(241, 212, 125, .58);
  border-radius: 0 9px 9px 0;
  background: rgba(241, 212, 125, .05);
  color: #e3d2a4;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.75;
  white-space: pre-wrap;
}

.mbp-yijing-source-label {
  display: inline-block;
  margin-right: 12px;
  padding: 3px 8px;
  border: 1px solid rgba(241, 212, 125, .3);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  vertical-align: 2px;
}

.mbp-yijing-master {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(241, 212, 125, .16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(241, 212, 125, .06), rgba(0, 0, 0, .04)),
    rgba(0, 0, 0, .16);
}

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

.mbp-yijing-master-head span {
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.mbp-yijing-master-head strong {
  color: var(--ivory);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  text-align: right;
}

.mbp-yijing-master-summary {
  margin: 0;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(241, 212, 125, .12);
  border-radius: 0;
  background: transparent;
  color: #e5d3a4;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.7;
}

.mbp-yijing-master-text {
  max-height: none;
  overflow: visible;
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ead8aa;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
  white-space: normal;
}

.mbp-liuyao-entry {
  width: 100%;
  min-height: 104px;
  margin: 0;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(241, 212, 125, .24);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(241, 212, 125, .1), rgba(0, 0, 0, .12) 42%, rgba(180, 87, 54, .16)),
    radial-gradient(circle at 78% 24%, rgba(241, 212, 125, .16), transparent 34%);
  color: #ead8aa;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 246, 202, .05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mbp-liuyao-entry:hover,
.mbp-liuyao-entry:focus-visible {
  border-color: rgba(241, 212, 125, .46);
  outline: 0;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 202, .08), 0 14px 30px rgba(0, 0, 0, .24);
}

.mbp-liuyao-entry-copy {
  display: grid;
  gap: 5px;
}

.mbp-liuyao-entry-copy em {
  width: fit-content;
  padding: 2px 8px;
  border: 1px solid rgba(241, 212, 125, .32);
  border-radius: 999px;
  color: var(--gold);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.mbp-liuyao-entry-copy strong {
  color: var(--ivory);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  font-weight: 900;
}

.mbp-liuyao-entry-copy small {
  color: #cbb78a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.mbp-liuyao-entry-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 74px;
}

.mbp-liuyao-entry-visual i {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 247, 207, .88), transparent 28%),
    linear-gradient(145deg, #d5bb69, #9f6d28);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
}

.mbp-liuyao-entry-visual b {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  display: grid;
  gap: 4px;
  transform: translateX(-50%);
}

.mbp-liuyao-entry-visual u {
  height: 4px;
  border-radius: 999px;
  background: rgba(241, 212, 125, .82);
}

.mbp-liuyao-entry-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d5bb69, #b96f42);
  color: #17100a;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.mbp-liuyao-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 8%, rgba(241, 212, 125, .1), transparent 28%),
    rgba(14, 9, 5, .78);
  backdrop-filter: blur(7px);
}

.mbp-liuyao-overlay[hidden] {
  display: none;
}

.mbp-liuyao-modal {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(840px, calc(100vh - 56px));
  overflow: auto;
  border: 1px solid rgba(241, 212, 125, .26);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 238, 181, .04), transparent 24%, rgba(205, 83, 54, .06)),
    radial-gradient(circle at 14% 12%, rgba(241, 212, 125, .14), transparent 30%),
    linear-gradient(135deg, #19110b, #2a1b11 58%, #120c08);
  color: #ead8aa;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .52);
}

.mbp-liuyao-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(241, 212, 125, .22);
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  color: #d6c18e;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.mbp-liuyao-head {
  padding: 22px 28px 16px;
  border-bottom: 1px solid rgba(241, 212, 125, .14);
}

.mbp-liuyao-head span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.mbp-liuyao-head strong {
  display: block;
  margin-top: 8px;
  color: var(--ivory);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: 0;
}

.mbp-liuyao-head p {
  max-width: 680px;
  margin: 8px 0 0;
  color: #cbb78a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.mbp-liuyao-steps {
  width: min(520px, 100%);
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mbp-liuyao-steps span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 999px;
  background: rgba(0, 0, 0, .16);
  color: #bfae85;
  font-size: 12px;
  font-weight: 950;
}

.mbp-liuyao-steps span.is-active {
  border-color: rgba(241, 212, 125, .58);
  background: linear-gradient(135deg, #d5bb69, #9d6334);
  color: #160f09;
  box-shadow: 0 0 18px rgba(241, 212, 125, .16);
}

.mbp-liuyao-body {
  display: grid;
  grid-template-columns: minmax(330px, .82fr) minmax(500px, 1.18fr);
  gap: 18px;
  align-items: start;
  padding: 18px 28px 24px;
}

.mbp-liuyao-ask,
.mbp-liuyao-cast {
  min-width: 0;
  border: 1px solid rgba(241, 212, 125, .16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(241, 212, 125, .035), rgba(0, 0, 0, .1)),
    rgba(0, 0, 0, .18);
}

.mbp-liuyao-ask {
  display: grid;
  gap: 13px;
  align-content: start;
  padding: 18px;
}

.mbp-liuyao-ask label {
  display: grid;
  gap: 9px;
}

.mbp-liuyao-ask label span {
  color: #f0ddb0;
  font-weight: 900;
}

.mbp-liuyao-ask textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid rgba(241, 212, 125, .2);
  border-radius: 9px;
  outline: 0;
  background: rgba(0, 0, 0, .24);
  color: #fff3d0;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.mbp-liuyao-ask textarea:focus {
  border-color: rgba(241, 212, 125, .5);
}

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

.mbp-liuyao-suggestions button,
.mbp-liuyao-secondary {
  border: 1px solid rgba(241, 212, 125, .2);
  border-radius: 999px;
  background: rgba(241, 212, 125, .08);
  color: #d9c89b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.mbp-liuyao-suggestions button {
  min-height: 58px;
  padding: 0 10px;
  border-radius: 999px;
  line-height: 1.35;
}

.mbp-liuyao-status {
  min-height: 40px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(241, 212, 125, .14);
  border-radius: 9px;
  background: rgba(241, 212, 125, .045);
  color: #cbb78a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.mbp-liuyao-status.is-error {
  color: #ffb59d;
}

.mbp-liuyao-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mbp-liuyao-primary,
.mbp-liuyao-secondary {
  min-height: 42px;
}

.mbp-liuyao-primary {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #d5bb69, #b96f42);
  color: #17100a;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.mbp-liuyao-primary:disabled {
  opacity: .55;
  cursor: default;
}

.mbp-liuyao-cast {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 18px;
}

.mbp-liuyao-cast-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.mbp-liuyao-cast-head span {
  color: #bfae85;
  font-size: 12px;
  font-weight: 900;
}

.mbp-liuyao-cast-head strong {
  color: var(--ivory);
  font-size: 13px;
  font-weight: 950;
}

.mbp-liuyao-cast-head i {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(241, 212, 125, .1);
}

.mbp-liuyao-cast-head u {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d5bb69, #c86648);
  transition: width .22s ease;
}

.mbp-liuyao-coins {
  min-height: 74px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(241, 212, 125, .08);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 40%, rgba(241, 212, 125, .08), transparent 50%),
    rgba(241, 212, 125, .04);
}

.mbp-liuyao-coin {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 249, 214, .9), transparent 28%),
    linear-gradient(145deg, #d5bb69, #986321);
  color: #2b1b0d;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(0, 0, 0, .24);
}

.mbp-liuyao-coin.is-yin {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 249, 214, .84), transparent 28%),
    linear-gradient(145deg, #c9b46f, #6f6047);
}

.mbp-liuyao-coin.is-waiting {
  opacity: .45;
  filter: grayscale(.35);
}

.mbp-liuyao-stack {
  display: grid;
  gap: 7px;
  align-content: center;
  min-height: 236px;
  padding: 14px 16px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 248, 220, .06), rgba(0, 0, 0, .06)),
    rgba(0, 0, 0, .16);
}

.mbp-liuyao-line-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 74px;
  gap: 12px;
  align-items: center;
  color: #bfae85;
  font-size: 12px;
  font-weight: 900;
}

.mbp-liuyao-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 16px;
  align-items: center;
}

.mbp-liuyao-line i {
  height: 8px;
  border-radius: 999px;
  background: #e7cf84;
  box-shadow: 0 0 16px rgba(241, 212, 125, .16);
}

.mbp-liuyao-line.is-yin {
  grid-template-columns: 1fr 1fr;
}

.mbp-liuyao-line.is-moving i {
  background: #d85b42;
  box-shadow: 0 0 14px rgba(216, 91, 66, .32);
}

.mbp-liuyao-line.is-empty {
  opacity: .34;
}

.mbp-liuyao-line.is-empty i {
  background: rgba(241, 212, 125, .5);
  box-shadow: none;
}

.mbp-liuyao-result {
  display: grid;
  gap: 10px;
}

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

.mbp-liuyao-result-card {
  min-height: 88px;
  padding: 12px;
  border: 1px solid rgba(241, 212, 125, .15);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(241, 212, 125, .085), rgba(0, 0, 0, .06)),
    rgba(241, 212, 125, .035);
}

.mbp-liuyao-result-card.is-primary {
  border-color: rgba(241, 212, 125, .34);
}

.mbp-liuyao-result-card.is-moving {
  border-color: rgba(216, 91, 66, .36);
}

.mbp-liuyao-result-card span {
  color: #bfae85;
  font-size: 12px;
  font-weight: 900;
}

.mbp-liuyao-result-card strong {
  display: block;
  margin-top: 7px;
  color: var(--ivory);
  font-size: 18px;
  font-weight: 950;
}

.mbp-liuyao-result-card small {
  display: block;
  margin-top: 4px;
  color: #cbb78a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.mbp-liuyao-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(241, 212, 125, .44);
  border-radius: 0 8px 8px 0;
  background: rgba(241, 212, 125, .045);
  color: #cbb78a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.mbp-yijing-paragraph {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mbp-yijing-paragraph h4 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.mbp-yijing-paragraph p {
  margin: 0 0 16px;
  color: #ead8aa;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.78;
}

.mbp-yijing-paragraph p:last-child {
  margin-bottom: 0;
}

.mbp-yijing-paragraph p + p {
  padding-top: 16px;
  border-top: 1px solid rgba(241, 212, 125, .09);
}

.mbp-yijing-paragraph strong {
  display: block;
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.mbp-yijing-timing {
  display: grid;
  gap: 10px;
}

.mbp-yijing-timing[hidden] {
  display: none;
}

.mbp-yijing-timing-toggle {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 9px;
  background:
    linear-gradient(110deg, rgba(241, 212, 125, .08), rgba(0, 0, 0, .08) 48%, rgba(191, 103, 63, .08)),
    rgba(8, 5, 3, .36);
  color: #e8d8a8;
  cursor: pointer;
  text-align: left;
}

.mbp-yijing-timing-toggle span {
  padding: 3px 8px;
  border: 1px solid rgba(241, 212, 125, .24);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.mbp-yijing-timing-toggle strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ivory);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mbp-yijing-timing-toggle i {
  color: #c9b47d;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.mbp-yijing-timing-toggle:hover,
.mbp-yijing-timing-toggle:focus-visible {
  border-color: rgba(241, 212, 125, .34);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(241, 212, 125, .08);
}

.mbp-yijing-timing-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(241, 212, 125, .14);
  border-radius: 9px;
  background: rgba(0, 0, 0, .13);
}

.mbp-yijing-timing-panel[hidden] {
  display: none;
}

.mbp-yijing-timing-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(241, 212, 125, .12);
  border-radius: 8px;
  background: rgba(241, 212, 125, .045);
}

.mbp-yijing-timing-item span {
  display: block;
  margin-bottom: 6px;
  color: #bda96f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.mbp-yijing-timing-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: #ead8aa;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.mbp-yijing-timing-panel p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #cbb989;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
}

.mbp-yijing-timing-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.mbp-yijing-timing-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(241, 212, 125, .32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 198, 111, .94), rgba(191, 116, 64, .9));
  color: #160f08;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
}

.mbp-yijing-timing-actions button:disabled {
  cursor: wait;
  opacity: .62;
}

.mbp-yijing-timing-reading,
.mbp-yijing-timing-error {
  grid-column: 1 / -1;
}

.mbp-yijing-timing-reading {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(241, 212, 125, .14);
}

.mbp-yijing-timing-badge {
  width: fit-content;
  padding: 4px 10px;
  border: 1px solid rgba(241, 212, 125, .24);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.35;
}

.mbp-yijing-timing-reading-item {
  padding: 10px 12px;
  border: 1px solid rgba(241, 212, 125, .11);
  border-radius: 8px;
  background: rgba(0, 0, 0, .12);
}

.mbp-yijing-timing-reading-item span {
  display: block;
  margin-bottom: 4px;
  color: #e7cf86;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
}

.mbp-yijing-timing-reading-item p,
.mbp-yijing-timing-risk,
.mbp-yijing-timing-error {
  margin: 0;
  color: #e2d2a6;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.mbp-yijing-timing-risk,
.mbp-yijing-timing-error {
  padding: 10px 12px;
  border-radius: 8px;
}

.mbp-yijing-timing-risk {
  border: 1px solid rgba(241, 212, 125, .16);
  background: rgba(241, 212, 125, .06);
  color: #f1d47d;
}

.mbp-yijing-timing-error {
  border: 1px solid rgba(255, 120, 92, .22);
  background: rgba(255, 120, 92, .07);
  color: #f1a184;
}

.mbp-yijing-art {
  min-width: 0;
  margin: 0;
  padding: 14px;
  display: grid;
  gap: 13px;
  align-content: start;
  overflow: visible;
  border: 1px solid rgba(241, 212, 125, .25);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 14%, rgba(241, 212, 125, .07), transparent 42%),
    linear-gradient(180deg, rgba(241, 212, 125, .045), rgba(0, 0, 0, .08) 40%),
    rgba(8, 5, 3, .36);
  box-shadow:
    inset 0 0 0 1px rgba(255, 245, 205, .035),
    0 20px 44px rgba(0, 0, 0, .20);
}

.mbp-yijing-art-mini-lines {
  justify-self: center;
  width: 104px;
  gap: 6px;
  opacity: .96;
}

.mbp-yijing-art-mini-lines .mbp-yijing-line {
  height: 5px;
}

.mbp-yijing-art-mini-lines .mbp-yijing-line.is-broken {
  gap: 12px;
}

.mbp-yijing-art-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 0;
  margin-left: 0;
  margin-right: 0;
  aspect-ratio: 1.46 / 1;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(241, 212, 125, .32);
  border-radius: 0;
  background: #080503;
  box-shadow:
    inset 0 0 0 1px rgba(255, 245, 205, .05),
    0 18px 38px rgba(0, 0, 0, .26),
    0 0 0 1px rgba(241, 212, 125, .08);
}

.mbp-yijing-art-frame:has(> img:not([hidden])) {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.mbp-yijing-art-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border: 2px solid rgba(255, 248, 224, .9);
  background: #fffbf0;
}

.mbp-yijing-art-frame img[hidden] {
  display: none;
}

.mbp-yijing-art-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
  color: #3b2b22;
  background:
    radial-gradient(circle at 78% 16%, rgba(121, 90, 48, .12), transparent 30%),
    linear-gradient(135deg, rgba(251, 247, 229, .96), rgba(232, 219, 188, .92));
}

.mbp-yijing-art-placeholder.is-hidden {
  display: none;
}

.mbp-yijing-art-placeholder span {
  color: #8a6b3a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.mbp-yijing-art-placeholder strong {
  color: #2f241d;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  line-height: 1.2;
}

.mbp-yijing-art-lines {
  width: 104px;
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.mbp-yijing-art-lines .mbp-yijing-line {
  height: 8px;
  background: #3a2b23;
  box-shadow: none;
}

.mbp-yijing-art-lines .mbp-yijing-line.is-broken {
  gap: 14px;
  background: transparent;
}

.mbp-yijing-art-lines .mbp-yijing-line.is-broken i {
  background: #3a2b23;
}

.mbp-yijing-art-lines .mbp-yijing-gap {
  height: 1px;
}

.mbp-yijing-art figcaption {
  min-height: 0;
  padding: 14px 0 13px;
  border-top: 1px solid rgba(241, 212, 125, .15);
  border-bottom: 1px solid rgba(241, 212, 125, .13);
  text-align: center;
}

.mbp-yijing-image-reading {
  padding: 14px 16px;
  border: 1px solid rgba(241, 212, 125, .14);
  border-radius: 9px;
  background: rgba(0, 0, 0, .14);
  color: #d7c793;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
}

.mbp-yijing-image-reading strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 13px;
}

.mbp-chapters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-content: start;
}

.mbp-chapters.is-generated,
.mbp-chapters:has(.mbp-report-row) {
  grid-template-columns: 1fr;
  gap: 14px;
}

.mbp-chapters article {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 22px 156px 22px 22px;
  border: 1px solid rgba(241, 212, 125, .2);
  border-radius: 10px;
  background: rgba(16, 12, 7, .9);
  scroll-margin-top: 82px;
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.mbp-chapters article.is-active {
  border-color: rgba(241, 212, 125, .58);
  background:
    linear-gradient(110deg, rgba(241, 212, 125, .13), rgba(16, 12, 7, .92) 42%, rgba(178, 96, 58, .08)),
    rgba(16, 12, 7, .94);
  box-shadow:
    inset 0 0 0 1px rgba(241, 212, 125, .08),
    0 18px 50px rgba(0, 0, 0, .28);
}

.mbp-chapters article.is-active::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--copper));
  box-shadow: 0 0 18px rgba(241, 212, 125, .32);
}

.mbp-chapters span {
  color: var(--gold);
  font: 900 16px/1 "Noto Serif SC", "Songti SC", serif;
}

.mbp-chapters article.is-active > span {
  border-color: rgba(241, 212, 125, .5);
  background: rgba(241, 212, 125, .13);
  color: #fff0b8;
}

.mbp-chapters h3 {
  margin: 8px 0;
  color: var(--ivory);
  font-size: 22px;
}

.mbp-chapters p {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
}

.mbp-chapter-ai-btn {
  position: relative;
  isolation: isolate;
  min-width: 118px;
  min-height: 36px;
  padding: 0 16px;
  overflow: hidden;
  font-size: 13px;
}

.mbp-chapter-ai-btn::before,
.mbp-chapter-ai-btn::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.mbp-chapter-ai-btn::before {
  left: 14px;
  top: 50%;
  z-index: 2;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(26, 16, 8, .24);
  border-top-color: rgba(26, 16, 8, .9);
  border-radius: 999px;
  transform: translateY(-50%);
}

.mbp-chapter-ai-btn::after {
  inset: -30% -45%;
  z-index: 1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 248, 209, .55) 50%, transparent 66%);
  transform: translateX(-64%) rotate(8deg);
}

.mbp-chapter-ai-btn.is-running {
  padding-left: 36px;
  opacity: 1;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 249, 214, .45), transparent 24%),
    linear-gradient(135deg, #e0c16b, #bf7a40);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .28),
    0 0 22px rgba(241, 212, 125, .25);
}

.mbp-chapter-ai-btn.is-running::before {
  opacity: 1;
  animation: mbpSmallBtnSpin .72s linear infinite;
}

.mbp-chapter-ai-btn.is-running::after {
  opacity: 1;
  animation: mbpSmallBtnShine 1.18s ease-in-out infinite;
}

.mbp-chapters article > .mbp-chapter-ai-btn {
  position: absolute;
  right: 24px;
  bottom: 24px;
}

.mbp-report-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.mbp-reading-badge {
  display: none;
  place-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(241, 212, 125, .24);
  border-radius: 999px;
  background: rgba(241, 212, 125, .08);
  color: var(--gold);
  font: 900 12px/1 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: .08em;
  white-space: nowrap;
}

.mbp-chapters article.is-running .mbp-reading-badge {
  display: grid;
}

.mbp-chapters .mbp-insight-summary {
  color: #ddcca2;
}

.mbp-chapters .mbp-insight-detail p {
  color: var(--muted);
}

.mbp-report-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px 18px;
  align-items: start;
}

.mbp-report-row > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 999px;
  background: rgba(241, 212, 125, .06);
}

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

.mbp-report-title h3 {
  margin: 0;
}

.mbp-report-title .mbp-report-actions {
  justify-self: end;
  align-self: start;
}

.mbp-report-title .mbp-chapter-ai-btn {
  min-height: 40px;
}

.mbp-chapters article.is-active > h3,
.mbp-chapters article.is-active .mbp-report-title h3 {
  color: #fff4d6;
  text-shadow: 0 0 18px rgba(241, 212, 125, .14);
}

.mbp-report-content {
  grid-column: 2;
  min-width: 0;
}

.mbp-report-content .mbp-insight-summary {
  margin-top: -2px;
}

.mbp-decade-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 118px);
  gap: 8px;
  margin-bottom: 12px;
  padding: 2px 2px 7px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(241, 212, 125, .34) transparent;
}

.mbp-decade-rail button {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 7px 10px;
  border: 1px solid rgba(241, 212, 125, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .2);
  color: #cdbb90;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mbp-decade-rail button:hover,
.mbp-decade-rail button:focus-visible {
  border-color: rgba(241, 212, 125, .54);
  background: rgba(241, 212, 125, .08);
  transform: translateY(-1px);
}

.mbp-decade-rail button.is-current {
  background: linear-gradient(135deg, rgba(241, 212, 125, .22), rgba(179, 112, 65, .16));
}

.mbp-decade-rail button.is-active {
  border-color: rgba(255, 239, 176, .88);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 244, 193, .28), transparent 42%),
    linear-gradient(180deg, rgba(82, 69, 34, .64), rgba(34, 26, 14, .86));
  color: #fff5d0;
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 210, .18),
    inset 0 -10px 18px rgba(241, 212, 125, .08),
    0 0 0 1px rgba(255, 239, 176, .22),
    0 0 22px rgba(241, 212, 125, .28);
}

.mbp-decade-rail button.is-active span,
.mbp-decade-rail button.is-active strong {
  color: #fff2c2;
  text-shadow: 0 0 14px rgba(241, 212, 125, .26);
}

.mbp-decade-rail button.is-active em {
  border-color: rgba(255, 245, 198, .5);
  background: rgba(255, 245, 198, .16);
  color: #ffeaa7;
}

.mbp-decade-rail span,
.mbp-decade-rail em {
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
}

.mbp-decade-rail em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 15px;
  margin-top: 1px;
  padding: 0 6px;
  border: 1px solid rgba(241, 212, 125, .34);
  border-radius: 999px;
  background: rgba(241, 212, 125, .1);
  color: var(--gold);
  font-size: 10px;
  line-height: 1;
}

.mbp-decade-rail strong {
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.2;
}

.mbp-xiaolian-age-rail {
  grid-auto-columns: minmax(82px, 100px);
  margin-bottom: 14px;
}

.mbp-xiaolian-age-rail strong {
  overflow: hidden;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mbp-luck-reading {
  display: grid;
  gap: 14px;
}

.mbp-luck-reading-head {
  padding: 18px 20px;
  border: 1px solid rgba(241, 212, 125, .2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 20%, rgba(241, 212, 125, .13), transparent 32%),
    rgba(241, 212, 125, .055);
}

.mbp-luck-reading-head span {
  display: block;
  color: var(--gold);
  font-weight: 900;
}

.mbp-luck-reading-head strong {
  display: block;
  margin-top: 7px;
  color: var(--ivory);
  font-size: 22px;
  line-height: 1.35;
}

.mbp-luck-reading-head p {
  margin: 8px 0 0;
  color: #d4c096;
  font-size: 14px;
  line-height: 1.7;
}

.mbp-luck-reading-body {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid rgba(241, 212, 125, .14);
  border-radius: 12px;
  background: rgba(0, 0, 0, .18);
}

.mbp-luck-reading-body section {
  display: grid;
  gap: 6px;
}

.mbp-luck-reading-body b {
  color: var(--gold);
  font-weight: 900;
}

.mbp-luck-reading-body p {
  margin: 0;
  color: #eadbb4;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.9;
  white-space: pre-line;
}

.mbp-luck-reading-body mark {
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(241, 212, 125, .18);
  color: #fff0b8;
}

.mbp-luck-placeholder {
  color: #cdbb90 !important;
}

.mbp-luck-empty-action {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.mbp-luck-empty-action .mbp-chapter-ai-btn {
  position: static;
  min-width: 146px;
  margin: 0;
}

.mbp-luck-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 12%, rgba(241, 212, 125, .16), transparent 30%),
    rgba(241, 212, 125, .055);
}

.mbp-luck-hero em,
.mbp-luck-kv b,
.mbp-luck-summary b {
  display: block;
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.mbp-luck-hero strong {
  display: block;
  margin-top: 7px;
  color: var(--ivory);
  font-size: 22px;
  line-height: 1.35;
}

.mbp-luck-hero p {
  margin: 8px 0 0;
  color: #d4c096;
  font-size: 14px;
}

.mbp-luck-age-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.mbp-luck-age-badge {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(241, 212, 125, .24);
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.mbp-luck-age-note {
  position: relative;
  width: max-content;
  max-width: 220px;
  color: #cdbb90;
  font-size: 12px;
  line-height: 1.65;
}

.mbp-luck-age-note summary {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(241, 212, 125, .22);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.mbp-luck-age-note summary::-webkit-details-marker {
  display: none;
}

.mbp-luck-age-note p {
  position: absolute;
  right: 0;
  z-index: 3;
  width: 220px;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 9px;
  background: rgba(20, 16, 10, .96);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .28);
}

.mbp-luck-kv,
.mbp-luck-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.mbp-luck-kv section,
.mbp-luck-summary section,
.mbp-luck-bottom section {
  border: 1px solid rgba(241, 212, 125, .14);
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
}

.mbp-luck-kv section {
  padding: 13px 14px;
}

.mbp-luck-kv strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--ivory);
  font-size: 17px;
}

.mbp-luck-kv p,
.mbp-luck-summary p {
  margin: 0;
  color: #d4c096;
  font-size: 13px;
  line-height: 1.6;
}

.mbp-luck-summary section {
  padding: 15px 16px;
  border-left: 3px solid rgba(241, 212, 125, .6);
  background: rgba(241, 212, 125, .045);
}

.mbp-luck-summary b {
  margin-bottom: 8px;
  font-size: 17px;
}

.mbp-luck-summary p {
  color: #e7d8ad;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.72;
}

.mbp-luck-summary mark {
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(241, 212, 125, .18);
  color: #fff0b8;
}

.mbp-xiaolian-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 82% 20%, rgba(201, 169, 97, .12), transparent 34%),
    linear-gradient(135deg, rgba(241, 212, 125, .055), rgba(0, 0, 0, .2));
}

.mbp-xiaolian-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 12px;
  align-items: baseline;
}

.mbp-xiaolian-head span,
.mbp-xiaolian-grid b,
.mbp-xiaolian-callout b {
  color: var(--gold);
  font-weight: 900;
}

.mbp-xiaolian-head strong {
  min-width: 0;
  color: var(--ivory);
  font-size: 19px;
  line-height: 1.35;
}

.mbp-xiaolian-head p {
  grid-column: 1 / -1;
  margin: 0;
  color: #d4c096;
  font-size: 14px;
  line-height: 1.6;
}

.mbp-xiaolian-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mbp-xiaolian-grid section {
  min-height: 96px;
  padding: 13px 14px;
  border: 1px solid rgba(241, 212, 125, .14);
  border-radius: 10px;
  background: rgba(0, 0, 0, .2);
}

.mbp-xiaolian-grid section.is-opposite {
  border-color: rgba(241, 212, 125, .32);
  background: rgba(241, 212, 125, .075);
}

.mbp-xiaolian-grid b {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.mbp-xiaolian-grid strong {
  display: block;
  color: var(--ivory);
  font-size: 18px;
  line-height: 1.35;
}

.mbp-xiaolian-grid p {
  margin: 6px 0 0;
  color: #d4c096;
  font-size: 13px;
  line-height: 1.5;
}

.mbp-xiaolian-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 3px solid rgba(241, 212, 125, .62);
  border-radius: 8px;
  background: rgba(241, 212, 125, .04);
}

.mbp-xiaolian-callout p {
  margin: 0;
  color: #e7d8ad;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.mbp-luck-bottom {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
  margin-top: 14px;
}

.mbp-luck-bottom section {
  padding: 15px 16px;
}

.mbp-luck-bottom h4 {
  margin: 0 0 10px;
  color: var(--ivory);
  font-size: 18px;
}

.mbp-luck-bottom ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: #d4c096;
  line-height: 1.65;
}

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

.mbp-luck-timing span {
  display: grid;
  gap: 5px;
  min-height: 58px;
  place-items: center;
  border: 1px solid rgba(241, 212, 125, .14);
  border-radius: 9px;
  background: rgba(241, 212, 125, .04);
  color: #d4c096;
  font-weight: 900;
}

.mbp-luck-timing b {
  color: var(--gold);
  font-size: 12px;
}

.mbp-curve-panel {
  display: grid;
  gap: 16px;
}

.mbp-curve-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(108px, 1fr));
  gap: 4px;
  width: max-content;
  padding: 4px;
  border: 1px solid rgba(241, 212, 125, .2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
}

.mbp-curve-switch button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #cdbb8d;
  font-weight: 900;
  cursor: pointer;
}

.mbp-curve-switch button.is-active {
  background: linear-gradient(135deg, rgba(241, 212, 125, .2), rgba(185, 111, 66, .22));
  color: #fff0b8;
  box-shadow: inset 0 0 0 1px rgba(241, 212, 125, .22);
}

.mbp-curve-view {
  display: none;
}

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

.mbp-curve-verify-head {
  padding: 18px;
  border: 1px solid rgba(241, 212, 125, .16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(241, 212, 125, .09), rgba(0, 0, 0, .08)),
    rgba(0, 0, 0, .16);
}

.mbp-curve-verify-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.mbp-curve-verify-head strong {
  display: block;
  color: var(--ivory);
  font-size: 20px;
  line-height: 1.35;
}

.mbp-curve-verify-head p {
  margin: 8px 0 0;
  color: #d4c096;
  font-size: 15px;
  line-height: 1.7;
}

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

.mbp-curve-verify-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(241, 212, 125, .16);
  border-radius: 12px;
  background: rgba(0, 0, 0, .18);
}

.mbp-curve-verify-card[data-curve-result="hit"] {
  border-color: rgba(117, 163, 116, .5);
  background: rgba(117, 163, 116, .08);
}

.mbp-curve-verify-card[data-curve-result="weak"] {
  border-color: rgba(199, 107, 66, .48);
}

.mbp-curve-verify-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.mbp-curve-verify-top b {
  color: var(--gold);
  font-size: 18px;
}

.mbp-curve-verify-top span,
.mbp-curve-verify-card small {
  color: #b7a883;
  font-weight: 800;
}

.mbp-curve-verify-card strong {
  color: var(--ivory);
  font-size: 18px;
  line-height: 1.35;
}

.mbp-curve-verify-card p {
  margin: 0;
  color: #d9c89c;
  font-size: 14px;
  line-height: 1.7;
}

.mbp-curve-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.mbp-curve-feedback button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(241, 212, 125, .2);
  border-radius: 999px;
  background: rgba(241, 212, 125, .06);
  color: #d8c692;
  font-weight: 900;
  cursor: pointer;
}

.mbp-curve-feedback button.is-active {
  border-color: rgba(241, 212, 125, .44);
  background: rgba(241, 212, 125, .16);
  color: #fff0b8;
}

.mbp-curve-verify-result {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(241, 212, 125, .42);
  border-radius: 8px;
  background: rgba(241, 212, 125, .07);
  color: #e3d3a8;
  font-weight: 900;
  line-height: 1.65;
}

.mbp-curve-verify-result[data-tone="strong"] {
  border-left-color: rgba(117, 163, 116, .85);
}

.mbp-curve-verify-result[data-tone="caution"] {
  border-left-color: rgba(199, 107, 66, .85);
}

.mbp-curve-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.mbp-curve-summary strong {
  display: block;
  color: var(--ivory);
  font-size: 20px;
  line-height: 1.35;
}

.mbp-curve-summary p {
  margin: 8px 0 0;
  color: #d4c096;
  font-size: 15px;
  line-height: 1.7;
}

.mbp-curve-summary em {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(241, 212, 125, .22);
  border-radius: 999px;
  background: rgba(0, 0, 0, .16);
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.mbp-curve-chart {
  padding: 16px;
  border: 1px solid rgba(241, 212, 125, .18);
  border-radius: 12px;
  background: rgba(241, 212, 125, .045);
}

.mbp-curve-chart svg {
  display: block;
  width: 100%;
  height: 250px;
}

.mbp-curve-chart line {
  stroke: rgba(241, 212, 125, .14);
  stroke-width: 1;
}

.mbp-curve-fill {
  fill: rgba(199, 127, 53, .18);
}

.mbp-curve-line {
  fill: none;
  stroke: #c77f35;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mbp-curve-chart circle {
  fill: #75a374;
  stroke: #10100a;
  stroke-width: 4;
}

.mbp-curve-chart circle.is-current {
  fill: var(--gold);
  stroke: rgba(16, 16, 10, .96);
  stroke-width: 5;
}

.mbp-curve-chart circle.is-warn {
  fill: #c76b42;
}

.mbp-curve-axis {
  fill: #8f8264;
  font-size: 11px;
  font-weight: 800;
}

.mbp-curve-label {
  fill: var(--ivory);
  font-size: 13px;
  font-weight: 900;
}

.mbp-curve-note {
  fill: #b7a883;
  font-size: 12px;
}

.mbp-curve-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.mbp-curve-cards section {
  padding: 14px;
  border: 1px solid rgba(241, 212, 125, .14);
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
}

.mbp-curve-cards strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ivory);
  font-size: 17px;
}

.mbp-curve-cards p {
  margin: 0;
  color: #d4c096;
  font-size: 14px;
  line-height: 1.6;
}

.mbp-curve-cards b {
  color: var(--gold);
}

.mbp-curve-ai-sections {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.mbp-curve-ai-sections section {
  padding: 16px;
  border: 1px solid rgba(241, 212, 125, .14);
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
}

.mbp-curve-ai-sections b {
  display: block;
  margin-bottom: 8px;
  color: var(--ivory);
  font-size: 17px;
}

.mbp-curve-ai-sections p {
  margin: 0;
  color: #d4c096;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-line;
}

.mbp-curve-ai-sections.is-past {
  margin-top: 14px;
  margin-bottom: 14px;
}

.mbp-curve-ai-sections.is-past section {
  border-color: rgba(241, 212, 125, .22);
  background: linear-gradient(135deg, rgba(241, 212, 125, .08), rgba(0, 0, 0, .16));
}

.mbp-pdf-report .mbp-curve-summary strong,
.mbp-pdf-report .mbp-curve-cards strong,
.mbp-pdf-report .mbp-curve-ai-sections b,
.mbp-pdf-report .mbp-curve-verify-head strong,
.mbp-pdf-report .mbp-curve-verify-card strong {
  color: #2d2420;
}

.mbp-pdf-report .mbp-curve-summary p,
.mbp-pdf-report .mbp-curve-cards p,
.mbp-pdf-report .mbp-curve-ai-sections p,
.mbp-pdf-report .mbp-curve-verify-card p {
  color: #5d5149;
}

.mbp-pdf-report .mbp-curve-chart,
.mbp-pdf-report .mbp-curve-cards section,
.mbp-pdf-report .mbp-curve-ai-sections section,
.mbp-pdf-report .mbp-curve-verify-head,
.mbp-pdf-report .mbp-curve-verify-card {
  border-color: #e0d0b4;
  background: #fffdf8;
}

.mbp-pdf-report .mbp-curve-switch,
.mbp-pdf-report .mbp-curve-feedback {
  display: none;
}

.mbp-pdf-report .mbp-curve-view {
  display: block;
}

.mbp-pdf-report .mbp-curve-label {
  fill: #2d2420;
}

.mbp-pdf-report .mbp-curve-note {
  fill: #6d6258;
}

@media (min-width: 1021px) {
  .is-decoded .mbp-book-layout,
  .mbp-book.is-generated .mbp-book-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .is-decoded .mbp-book-cover,
  .mbp-book.is-generated .mbp-book-cover {
    position: sticky;
    top: 84px;
    min-height: 420px;
    padding: 28px 20px;
  }

  .is-decoded .mbp-book-title,
  .mbp-book.is-generated .mbp-book-title {
    font-size: 28px;
    letter-spacing: .12em;
  }

  .is-decoded .mbp-book-cover,
  .mbp-book.is-generated .mbp-book-cover {
    gap: 18px;
  }

  .is-decoded .mbp-book-cover > button,
  .mbp-book.is-generated .mbp-book-cover > button {
    width: 150px;
  }

  .is-decoded .mbp-chapters,
  .mbp-chapters.is-generated,
  .mbp-chapters:has(.mbp-report-row) {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .is-decoded .mbp-chapters article,
  .mbp-chapters.is-generated article,
  .mbp-chapters:has(.mbp-report-row) article {
    min-height: 0;
    padding: 18px 20px;
  }

  .is-decoded .mbp-report-row .mbp-insight-summary {
    font-size: 15px;
    line-height: 1.75;
  }

  .is-decoded .mbp-report-row .mbp-insight-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .is-decoded .mbp-report-row .mbp-insight-points li {
    padding: 9px 10px 9px 22px;
    border: 1px solid rgba(241, 212, 125, .1);
    border-radius: 7px;
    background: rgba(241, 212, 125, .035);
    font-size: 12px;
    line-height: 1.55;
  }

  .is-decoded .mbp-report-row .mbp-insight-points li::before {
    left: 10px;
    top: 17px;
  }

  .is-decoded .mbp-report-row .mbp-insight-detail {
    margin-top: 12px;
  }
}

.mbp-final {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-top: 72px;
  padding: 34px 42px;
  border: 1px solid rgba(241, 212, 125, .2);
  border-radius: 16px;
  background: rgba(21, 15, 10, .9);
}

.mbp-final h2 {
  color: var(--ivory);
  font-size: 28px;
  line-height: 1.35;
}

.mbp-final p {
  margin: 8px 0 0;
}

.mbp-final a {
  flex: 0 0 auto;
  padding: 12px 28px;
}

.mbp-footer {
  padding: 22px 24px 40px;
  color: #5c4c35;
  text-align: center;
  font-size: 13px;
}

.mbp-shichen-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 12, 8, .66);
  backdrop-filter: blur(4px);
}

.mbp-shichen-overlay[hidden] {
  display: none;
}

.mbp-shichen-modal {
  width: min(540px, 100%);
  max-height: min(720px, 90vh);
  overflow: auto;
  border: 1px solid rgba(241, 212, 125, .26);
  border-radius: 18px;
  background: #fdf8f2;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
  color: #3d302b;
}

.mbp-shichen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(110, 82, 48, .16);
}

.mbp-shichen-head strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #3d302b;
  font-size: 17px;
}

.mbp-shichen-head strong img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: cover;
}

.mbp-shichen-head button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(61, 48, 43, .06);
  color: #8e7c6a;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.mbp-shichen-questions,
.mbp-shichen-result {
  padding: 16px 18px 18px;
}

.mbp-shichen-questions p,
.mbp-shichen-result p {
  margin: 0 0 14px;
  color: #8e857d;
  font-size: 13px;
  line-height: 1.65;
}

.mbp-shichen-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: #6f5e4e;
  font-size: 13px;
}

.mbp-shichen-field > span {
  color: #3d302b;
  font-weight: 800;
}

.mbp-shichen-field-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mbp-shichen-field-title > span {
  color: #3d302b;
  font-weight: 800;
}

.mbp-shichen-field input[type="text"] {
  width: 100%;
  height: 42px;
  border: 1px solid #d0c8be;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: #3d302b;
  padding: 0 12px;
}

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

.mbp-shichen-time-card {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 20px;
}

.mbp-shichen-time-card.is-active {
  border-color: rgba(183, 125, 54, .4);
  background: rgba(255, 250, 240, .72);
  box-shadow: 0 12px 24px rgba(183, 125, 54, .12);
}

.mbp-shichen-time-main,
.mbp-shichen-time-card-detail button,
.mbp-shichen-time-detail button {
  min-height: 38px;
  border: 1px solid rgba(201, 169, 97, .28);
  border-radius: 999px;
  background: rgba(255, 250, 240, .88);
  color: #6c563c;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1.2;
}

.mbp-shichen-time-main {
  width: 100%;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 7px 8px;
}

.mbp-shichen-time-main b {
  font-size: 13px;
}

.mbp-shichen-time-main small {
  color: #a48658;
  font-size: 10px;
  font-weight: 800;
}

.mbp-shichen-time-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mbp-shichen-time-card-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 7px 8px 8px;
}

.mbp-shichen-time-card-detail[hidden] {
  display: none;
}

.mbp-shichen-time-card-detail span {
  color: #9a8060;
  font-size: 11px;
  font-weight: 900;
}

.mbp-shichen-time-detail[hidden] {
  display: none;
}

.mbp-shichen-time-card-detail button,
.mbp-shichen-time-detail button {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.mbp-shichen-time-main.is-active,
.mbp-shichen-time-card-detail button.is-active,
.mbp-shichen-time-detail button.is-active {
  border-color: #b77d36;
  background: linear-gradient(135deg, #f3d486, #b97738);
  color: #2c1d13;
  box-shadow: 0 8px 18px rgba(183, 125, 54, .18);
}

.mbp-shichen-time-main.is-active small {
  color: rgba(44, 29, 19, .72);
}

.mbp-shichen-time-hint {
  margin: -2px 0 0 !important;
  color: #9a8060 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.mbp-shichen-field label {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  line-height: 1.5;
}

.mbp-shichen-rule {
  position: relative;
  margin: 0;
}

.mbp-shichen-rule summary {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(201, 169, 97, .34);
  border-radius: 999px;
  background: rgba(255, 250, 240, .92);
  color: #8e6b31;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.mbp-shichen-rule summary::-webkit-details-marker {
  display: none;
}

.mbp-shichen-rule summary::after {
  content: "＋";
  margin-left: 6px;
  font-size: 12px;
}

.mbp-shichen-rule[open] summary::after {
  content: "－";
}

.mbp-shichen-rule p {
  margin: 8px 0 0 !important;
  padding: 10px 12px;
  border: 1px solid rgba(201, 169, 97, .18);
  border-radius: 10px;
  background: rgba(255, 250, 240, .8);
  color: #8e7c6a;
  font-size: 12px;
  line-height: 1.55;
}

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

.mbp-whorl-card {
  position: relative;
  display: grid !important;
  gap: 7px !important;
  align-items: center !important;
  justify-items: center;
  min-height: 168px;
  padding: 12px 10px 10px;
  border: 1px solid rgba(144, 116, 78, .22);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf2, #f7efe4);
  color: #4b3824;
  cursor: pointer;
  text-align: center;
}

.mbp-whorl-card input {
  position: absolute;
  inset: 10px auto auto 10px;
  width: 15px;
  height: 15px;
  z-index: 2;
  accent-color: #6d4a2f;
}

.mbp-whorl-card:has(input:checked) {
  border-color: #9f7a35;
  background: linear-gradient(180deg, #fff5db, #ecd19a);
  box-shadow: 0 10px 24px rgba(159, 122, 53, .18);
}

.mbp-whorl-card b {
  font-size: 13px;
  line-height: 1.2;
}

.mbp-whorl-card small {
  color: #8e6b31;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.mbp-whorl-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 92px;
  border-radius: 18px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(109, 74, 47, .08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(231, 216, 197, .42));
}

.mbp-whorl-visual::before {
  content: "后脑";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: #a48b73;
  font-size: 10px;
  font-weight: 800;
}

.mbp-whorl-head {
  position: relative;
  width: 62px;
  height: 68px;
  margin-top: 12px;
  border: 2px solid #5d4436;
  border-radius: 48% 48% 42% 42%;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(75, 56, 36, .22), transparent 44%),
    linear-gradient(180deg, #cdbba6, #f3dfc5 62%, #dfc5a7);
  box-shadow: inset 0 -8px 0 rgba(80, 58, 42, .1);
}

.mbp-whorl-head::before,
.mbp-whorl-head::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 7px;
  height: 15px;
  border-radius: 999px;
  background: #d3b38f;
  border: 1px solid rgba(93, 68, 54, .45);
}

.mbp-whorl-head::before {
  left: -7px;
}

.mbp-whorl-head::after {
  right: -7px;
}

.mbp-whorl-head i {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid #3f2f28;
  border-right-color: transparent;
  border-bottom-color: #8a6b43;
  border-radius: 50%;
  background: radial-gradient(circle, #3f2f28 0 2px, transparent 3px);
  transform: rotate(-32deg);
}

.mbp-whorl-center-left .mbp-whorl-head i {
  top: 16px;
  left: 19px;
}

.mbp-whorl-right .mbp-whorl-head i {
  top: 16px;
  right: 10px;
}

.mbp-whorl-double .mbp-whorl-head i:first-child {
  top: 13px;
  left: 10px;
}

.mbp-whorl-double .mbp-whorl-head i:last-child {
  top: 22px;
  right: 9px;
  transform: rotate(38deg);
}

.mbp-whorl-card {
  display: block !important;
  aspect-ratio: 577 / 908;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(205, 168, 96, .72);
  background: #fff8ed url("../images/shichen-whorl-guide.jpg") 0 0 / 300% 100% no-repeat;
}

.mbp-whorl-card::before {
  content: "点选";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  min-width: 38px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(108, 86, 58, .3);
  border-radius: 999px;
  background: rgba(255, 250, 240, .88);
  color: #6c563a;
  font-size: 11px;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(61, 48, 43, .1);
}

.mbp-whorl-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
}

.mbp-whorl-card:nth-child(2) {
  background-position: 50% 0;
}

.mbp-whorl-card:nth-child(3) {
  background-position: 100% 0;
}

.mbp-whorl-card input {
  inset: 12px auto auto 12px;
  width: 16px;
  height: 16px;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
}

.mbp-whorl-card:has(input:checked) {
  border-color: #c13228;
  background: #fff8ed url("../images/shichen-whorl-guide.jpg") 0 0 / 300% 100% no-repeat;
  box-shadow:
    0 0 0 3px rgba(193, 50, 40, .28),
    0 14px 30px rgba(159, 91, 53, .2);
}

.mbp-whorl-card:has(input:checked)::before {
  content: "✓ 已选";
  min-width: 52px;
  border-color: rgba(255, 232, 180, .72);
  background: linear-gradient(180deg, #c84d36, #a6251e);
  color: #fff8ea;
  box-shadow:
    0 8px 16px rgba(107, 35, 25, .22),
    0 0 0 2px rgba(255, 248, 234, .9);
}

.mbp-whorl-card:has(input:checked)::after {
  box-shadow:
    inset 0 0 0 3px rgba(193, 50, 40, .72),
    inset 0 0 0 999px rgba(255, 244, 220, .06);
}

.mbp-whorl-card:hover::before {
  border-color: rgba(193, 50, 40, .32);
  color: #a6251e;
}

.mbp-whorl-card:nth-child(2):has(input:checked) {
  background-position: 50% 0;
}

.mbp-whorl-card:nth-child(3):has(input:checked) {
  background-position: 100% 0;
}

.mbp-whorl-visual {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  border-radius: inherit;
  background: none;
}

.mbp-whorl-visual::before {
  content: none;
}

.mbp-whorl-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mbp-whorl-dot,
.mbp-whorl-pulse {
  position: absolute;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.mbp-whorl-dot {
  width: 8px;
  height: 8px;
  background: #ff2b22;
  border: 2px solid #fff0cf;
  box-shadow: 0 0 12px rgba(255, 43, 34, .8), 0 0 24px rgba(255, 43, 34, .45);
  animation: mbpWhorlDotPulse 1.35s ease-in-out infinite;
  z-index: 2;
}

.mbp-whorl-pulse {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 43, 34, .86);
  box-shadow: 0 0 18px rgba(255, 43, 34, .42);
  animation: mbpWhorlRingPulse 1.35s ease-out infinite;
  z-index: 1;
}

.mbp-whorl-tag {
  position: absolute;
  z-index: 3;
  display: grid;
  justify-items: center;
  min-width: 58px;
  max-width: 48%;
  padding: 3px 5px 4px;
  border-radius: 6px;
  background: rgba(182, 37, 31, .96);
  box-shadow: 0 6px 14px rgba(79, 43, 19, .18);
  color: #fff8ea;
  transform: translate(-50%, -50%);
  animation: mbpWhorlTagFloat 2.2s ease-in-out infinite;
}

.mbp-whorl-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.mbp-whorl-tag b,
.mbp-whorl-tag small {
  position: relative;
  z-index: 1;
  line-height: 1.1;
  letter-spacing: 0;
}

.mbp-whorl-tag b {
  font-size: 9px;
  font-weight: 900;
}

.mbp-whorl-tag small {
  margin-top: 1px;
  color: #ffe3bf;
  font-size: 6px;
  font-weight: 800;
}

.mbp-whorl-center-left .mbp-whorl-dot,
.mbp-whorl-center-left .mbp-whorl-pulse {
  left: 48%;
  top: 35.5%;
}

.mbp-whorl-center-left .mbp-whorl-tag {
  left: 33%;
  top: 25%;
}

.mbp-whorl-right .mbp-whorl-dot,
.mbp-whorl-right .mbp-whorl-pulse {
  left: 62%;
  top: 36%;
}

.mbp-whorl-right .mbp-whorl-tag {
  left: 66%;
  top: 25%;
}

.mbp-whorl-double .mbp-whorl-dot,
.mbp-whorl-double .mbp-whorl-pulse {
  left: 46%;
  top: 31%;
}

.mbp-whorl-double .mbp-whorl-dot-alt,
.mbp-whorl-double .mbp-whorl-pulse-alt {
  left: 59%;
  top: 41%;
}

.mbp-whorl-double .mbp-whorl-tag {
  left: 49%;
  top: 22%;
}

@keyframes mbpWhorlTagFloat {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(-50%, calc(-50% - 6px));
  }
}

@keyframes mbpWhorlDotPulse {
  0%,
  100% {
    opacity: .92;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.25);
  }
}

@keyframes mbpWhorlRingPulse {
  0% {
    opacity: .72;
    transform: translate(-50%, -50%) scale(.55);
  }

  80%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mbp-whorl-tag,
  .mbp-whorl-dot,
  .mbp-whorl-pulse {
    animation: none;
  }
}

.mbp-shichen-primary,
.mbp-shichen-back,
.mbp-shichen-candidates button {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.mbp-shichen-primary {
  margin-top: 14px;
  border: 0;
  background: #3d2b1f;
  color: #f5e6c8;
}

.mbp-shichen-result strong {
  display: block;
  color: #3d302b;
  text-align: center;
  font-size: 18px;
}

.mbp-shichen-candidates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.mbp-shichen-candidates button {
  border: 1px solid #d6c08e;
  background: #fff7e8;
  color: #4b3824;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
}

.mbp-shichen-candidates button span {
  min-width: 0;
}

.mbp-shichen-candidates button em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(183, 125, 54, .16);
  color: #8d5524;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
}

.mbp-shichen-candidates button em i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  border-radius: 999px;
  background: #b76f32;
  color: #fff6dc;
  font-style: normal;
  font-size: 10px;
}

.mbp-shichen-back {
  border: 1px solid #d0c8be;
  background: transparent;
  color: #8e7c6a;
}

@media (max-width: 560px) {
  .mbp-shichen-head strong {
    gap: 8px;
    font-size: 16px;
  }

  .mbp-shichen-head strong img {
    width: 24px;
    height: 24px;
  }

  .mbp-shichen-field-title {
    align-items: flex-start;
  }

  .mbp-shichen-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mbp-whorl-guide {
    grid-template-columns: repeat(3, minmax(178px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .mbp-whorl-card {
    min-width: 178px;
  }

  .mbp-whorl-tag small {
    display: none;
  }
}

.is-decoded .mbp-special-card p,
.is-decoded .mbp-chapters p {
  color: #ddcca2;
}

@media (min-width: 1021px) {
  .mbp-auth-trigger-meta,
  .mbp-book-menu small,
  .mbp-yijing-years small,
  .mbp-yijing-art-placeholder span,
  .mbp-xb-profile-copy small,
  .mbp-xb-profile-copy em,
  .chat-badge,
  .chat-sender-read-pill {
    font-size: 12px;
  }

  .chat-memory-source {
    font-size: 12.5px;
  }

  .mbp-auth-head span,
  .mbp-auth-session-kicker,
  .mbp-auth-session-badge,
  .mbp-auth-session-grid span,
  .mbp-spine-profile small,
  .mbp-client-empty,
  .mbp-catalog-title em,
  .mbp-path-strip b,
  .mbp-report-action-bar span,
  .mbp-decode-progress-label,
  .mbp-module-actions button,
  .mbp-special-topic-card header span,
  .mbp-advice-risk li b,
  .mbp-book-client p,
  .mbp-book-menu-head em,
  .mbp-book-progress-top span,
  .mbp-book-progress p,
  .mbp-yijing-help,
  .mbp-yijing-help::after,
  .mbp-yijing-help-note,
  .mbp-yijing-years button,
  .mbp-yijing-art figcaption,
  .mbp-decade-rail span,
  .mbp-decade-rail em,
  .mbp-xiaolian-age-rail strong,
  .mbp-luck-age-note,
  .mbp-luck-timing b,
  .mbp-curve-verify-head span,
  .mbp-curve-note,
  .chat-background-status,
  .xb-starter-tab::after,
  .chat-sender,
  .chat-sys-msg,
  #aip-panel-chat .xb-read-pill,
  #aip-panel-chat .xb-starters-kicker,
  #aip-panel-chat .xb-composer-hint {
    font-size: 13px;
  }

  .mbp-auth-field span,
  .mbp-auth-error,
  .mbp-auth-note,
  .mbp-auth-session-top small,
  .mbp-spine-kicker,
  .mbp-client-item b,
  .mbp-path-strip span,
  .mbp-report-pulse span,
  .mbp-special-card span,
  .mbp-ai-status,
  .mbp-special-overview span,
  .mbp-advice-risk span,
  .is-decoded .mbp-special-card .mbp-insight-points li,
  .mbp-book-kicker,
  .mbp-book-cover .mbp-pdf-pack-btn small,
  .mbp-yijing-source-label,
  .mbp-yijing-image-reading,
  .mbp-yijing-image-reading strong,
  .mbp-chapter-ai-btn,
  .mbp-luck-kv p,
  .mbp-luck-summary p,
  .mbp-xiaolian-grid b,
  .mbp-xiaolian-grid p,
  .mbp-curve-label,
  .mbp-footer,
  .chat-starter-btn,
  .xb-starter-tab,
  .chat-msg-assistant::before,
  .chat-msg-user::after {
    font-size: 14px;
  }
}

@media (max-width: 1020px) {
  .mbp-nav {
    padding-inline: 20px;
  }

  .mbp-nav-actions {
    gap: 8px;
  }

  .mbp-auth-trigger,
  .mbp-member-pay-trigger,
  .mbp-member {
    min-width: 0;
    padding-inline: 14px;
    font-size: 13px;
  }

  .mbp-auth-trigger {
    width: auto;
  }

  .mbp-auth-trigger-meta {
    font-size: 10px;
  }

  .mbp-nav-links {
    display: none;
  }

  .mbp-page {
    width: min(390px, calc(100vw - 24px));
    padding-top: 20px;
  }

  .mbp-book-panel {
    padding: 22px 14px 18px;
    border-radius: 14px;
  }

  .mbp-auth-dialog {
    width: min(420px, calc(100vw - 20px));
    padding: 24px 18px 18px;
  }

  .mbp-auth-head strong {
    font-size: 28px;
  }

  .mbp-auth-session-actions {
    flex-direction: column;
  }

  .mbp-auth-secondary,
  .mbp-auth-session-actions .mbp-auth-primary,
  .mbp-auth-primary.is-danger {
    width: 100%;
  }

  .mbp-pay-dialog {
    width: min(420px, calc(100vw - 20px));
    padding: 24px 18px 18px;
  }

  .mbp-pay-head strong {
    font-size: 28px;
  }

  .mbp-pay-product {
    align-items: flex-start;
    flex-direction: column;
  }

  .mbp-pay-actions {
    flex-direction: column;
  }

  .mbp-ticket-grid {
    grid-template-columns: 1fr;
  }

  .mbp-pay-secondary {
    width: 100%;
  }

  .mbp-hero,
  .mbp-chart-stage,
  .mbp-book-layout {
    grid-template-columns: 1fr;
  }

  .mbp-book-layout {
    padding-top: 6px;
  }

  .mbp-yijing-assist {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
    padding: 20px;
  }

  .mbp-title-seal {
    min-height: 28px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .mbp-yijing-kicker {
    font-size: clamp(30px, 9vw, 38px);
  }

  .mbp-yijing-mode-head,
  .mbp-yijing-tabs,
  .mbp-liuyao-entry {
    width: 100%;
  }

  .mbp-yijing-tabs [data-yijing-tab] {
    padding-right: 26px;
  }

  .mbp-yijing-help {
    right: 8px;
    transform: translateY(-50%);
  }

  .mbp-yijing-right,
  .mbp-yijing-art {
    grid-column: auto;
    grid-row: auto;
  }

  .mbp-yijing-master-text {
    max-height: none;
    overflow: visible;
  }

  .mbp-yijing-art {
    width: min(100%, 420px);
    justify-self: center;
  }

  .mbp-liuyao-entry {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mbp-liuyao-entry-visual {
    display: none;
  }

  .mbp-liuyao-modal {
    width: min(720px, 100%);
  }

  .mbp-liuyao-body {
    grid-template-columns: 1fr;
  }

  .mbp-liuyao-suggestions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mbp-yijing-art-frame {
    width: 100%;
    min-height: 210px;
    margin-right: 0;
    margin-left: 0;
  }

  .mbp-yijing-art-frame:has(> img:not([hidden])) {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .mbp-yijing-timing-toggle {
    grid-template-columns: 1fr auto;
  }

  .mbp-yijing-timing-toggle span {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .mbp-yijing-timing-panel {
    grid-template-columns: 1fr;
  }

  .mbp-yijing-timing-actions,
  .mbp-yijing-timing-actions button {
    width: 100%;
  }

  .mbp-spine {
    display: none;
  }

  .mbp-hero-main {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding: 14px;
    overflow: hidden;
  }

  .mbp-hero-input,
  .mbp-hero-chart {
    padding: 16px;
    border-radius: 14px;
  }

  .mbp-hero-chart {
    min-height: auto;
  }

  .mbp-report-action-bar {
    position: static;
    width: 100%;
    min-height: 146px;
    margin: -6px 0 18px;
    padding: 16px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .mbp-report-action-bar strong {
    font-size: 17px;
  }

  .mbp-report-action-bar button {
    width: 108px;
    height: 108px;
    min-width: 108px;
    min-height: 108px;
    font-size: 15px;
  }

  .mbp-report-action-bar button b {
    font-size: 23px;
  }

  .mbp-decode-progress-label {
    bottom: 14px;
    font-size: 10px;
  }

  .mbp-seal {
    width: 58px;
    height: 58px;
    font-size: 20px;
  }

  .mbp-hero-kicker {
    margin-top: 30px;
  }

  .mbp-hero-main h1 {
    font-size: 46px;
    letter-spacing: .12em;
  }

  .mbp-input-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mbp-input-head h1 {
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: 0;
  }

  .mbp-client-input-card {
    width: 100%;
    justify-self: stretch;
  }

  .mbp-hero-copy {
    font-size: 15px;
  }

  .mbp-path-strip {
    justify-content: flex-start;
  }

  .mbp-path-strip span {
    flex: 1 1 108px;
    justify-content: center;
    padding-inline: 8px;
  }

  .mbp-birth-form {
    margin-top: 30px;
  }

  .mbp-hero-input .mbp-birth-form {
    margin-top: 0;
  }

  .mbp-form-card {
    padding: 0 16px 16px;
  }

  .mbp-form-card::after {
    box-shadow: -250px 0 0 rgba(201, 169, 97, .38);
  }

  .mbp-form-card .nf-row:first-child,
  .nf-time-row {
    display: block;
  }

  .nf-gender-pill {
    width: max-content;
    margin-top: 14px;
    margin-left: auto;
  }

  .nf-row-head {
    display: grid;
    gap: 10px;
  }

  .nf-cal-toggle {
    width: 100%;
  }

  .nf-cal-btn {
    flex: 1;
    min-width: 0;
    padding-inline: 8px;
  }

  .nf-date-inputs,
  .mbp-insight-detail.is-direct > div {
    grid-template-columns: 1fr;
  }

  .nf-time-selects {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .nf-time-sel {
    width: 78px;
    font-size: 18px;
  }

  .nf-select {
    height: 52px;
    font-size: 18px;
  }

  .nf-label {
    font-size: 17px;
  }

  .nf-submit {
    font-size: 20px;
  }

  .mbp-chart-stage {
    padding: 20px;
  }

  .mbp-chart-grid {
    grid-template-rows: repeat(4, 82px);
    min-height: 328px;
  }

  .mbp-palace {
    padding: 8px;
  }

  .mbp-palace-head {
    display: block;
    font-size: 11px;
  }

  .mbp-palace-stars {
    margin-top: 8px;
    font-size: 10px;
  }

  .mbp-palace-small {
    display: none;
  }

  .mbp-chart-center {
    padding: 12px;
  }

  .mbp-chart-center h3 {
    font-size: 20px;
  }

  .mbp-chart-center p {
    margin-top: 10px;
    font-size: 11px;
  }

  .mbp-decode-panel {
    padding: 24px;
  }

  .mbp-decode-panel h3 {
    font-size: 28px;
  }

  .mbp-hero-decode {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .mbp-hero-decode > span,
  .mbp-hero-decode h3,
  .mbp-hero-decode .mbp-decode-btn,
  .mbp-hero-decode .mbp-decode-meter,
  .mbp-hero-decode .mbp-module-actions,
  .mbp-hero-decode .mbp-decode-status,
  .mbp-hero-decode .mbp-chart-summary {
    grid-column: auto;
    grid-row: auto;
  }

  .mbp-hero-decode h3 {
    font-size: 26px;
  }

  .mbp-decode-btn {
    width: 100%;
  }

  .mbp-decode-meter {
    width: 100%;
  }

  .mbp-hero-decode .mbp-module-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mbp-hero-input .mbp-hero-decode .mbp-module-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mbp-special-grid,
  .mbp-chapters {
    grid-template-columns: 1fr;
  }

  .mbp-special-card,
  .mbp-special-card.is-wide {
    grid-column: auto;
    min-height: 178px;
  }

  .mbp-report-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mbp-report-content {
    grid-column: auto;
  }

  .mbp-report-row > span {
    width: max-content;
    height: auto;
    padding: 6px 12px;
    border-radius: 999px;
  }

  .mbp-chapters article {
    padding-right: 20px;
  }

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

  .mbp-chapter-ai-btn,
  .mbp-report-actions,
  .mbp-chapters article > .mbp-chapter-ai-btn {
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
  }

  .mbp-report-actions {
    justify-content: stretch;
  }

  .mbp-reading-badge {
    min-height: 40px;
  }

  .mbp-report-title .mbp-chapter-ai-btn {
    justify-self: stretch;
    width: 100%;
    margin-top: 0;
  }

  .mbp-curve-summary,
  .mbp-luck-hero,
  .mbp-luck-kv,
  .mbp-luck-summary,
  .mbp-xiaolian-grid,
  .mbp-luck-bottom,
  .mbp-luck-timing,
  .mbp-curve-verify-grid,
  .mbp-curve-cards {
    grid-template-columns: 1fr;
  }

  .mbp-curve-switch {
    width: 100%;
  }

  .mbp-xiaolian-head,
  .mbp-xiaolian-callout {
    grid-template-columns: 1fr;
  }

  .mbp-luck-age-wrap {
    justify-items: start;
  }

  .mbp-luck-age-badge {
    width: max-content;
    height: auto;
    min-height: 34px;
    padding: 0 12px;
  }

  .mbp-luck-age-note p {
    left: 0;
    right: auto;
    width: min(280px, calc(100vw - 64px));
  }

  .mbp-curve-chart {
    padding: 12px;
  }

  .mbp-curve-chart svg {
    height: 190px;
  }

  .mbp-preview-bar {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .mbp-book-cover {
    min-height: 360px;
  }

  .mbp-final {
    display: grid;
    padding: 28px 22px;
  }
}

.mbp-xb-section {
  margin-top: 28px;
  padding: 30px;
  scroll-margin-top: 86px;
  border: 1px solid rgba(241, 212, 125, .2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 0%, rgba(241, 212, 125, .08), transparent 32%),
    linear-gradient(180deg, rgba(241, 212, 125, .03), transparent 18%),
    rgba(9, 7, 5, .9);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 196, .06),
    0 28px 80px rgba(0, 0, 0, .22);
}

.mbp-xb-head {
  max-width: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.mbp-xb-client-picker {
  position: relative;
  flex: 0 0 min(360px, 38vw);
  z-index: 5;
}

.mbp-xb-client-current {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(241, 212, 125, .24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(241, 212, 125, .12), rgba(22, 16, 11, .92)),
    rgba(16, 12, 8, .88);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 244, 196, .08), 0 14px 30px rgba(0, 0, 0, .22);
}

.mbp-xb-client-current:hover {
  border-color: rgba(241, 212, 125, .42);
  background:
    linear-gradient(135deg, rgba(241, 212, 125, .18), rgba(25, 18, 12, .95)),
    rgba(16, 12, 8, .9);
}

.mbp-xb-profile-mark {
  width: 44px;
  height: 44px;
  font-size: 21px;
}

.mbp-xb-profile-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mbp-xb-profile-copy small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.mbp-xb-profile-copy strong {
  overflow: hidden;
  color: var(--ivory);
  font-size: 17px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mbp-xb-profile-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mbp-xb-client-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 7px 10px;
  border: 1px solid rgba(241, 212, 125, .25);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.mbp-xb-client-menu {
  width: min(360px, 88vw);
  left: auto;
  right: 0;
}

.mbp-xb-shell {
  padding: 18px;
  border: 1px solid rgba(241, 212, 125, .12);
  border-radius: 20px;
  background: rgba(14, 10, 7, .82);
}

.chat-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #8a7a6a;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.chat-badge.chat-badge-ok {
  color: #c9a961;
  border-color: rgba(201, 169, 97, .5);
  background: rgba(201, 169, 97, .12);
}

.chat-badge.chat-badge-stale,
#chat-badge-mode.chat-badge-transient {
  color: #d8b078;
  border-color: rgba(216, 176, 120, .36);
  background: rgba(216, 176, 120, .1);
}

.chat-memory-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-memory-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #7a6a5a;
  font-size: 11.5px;
  line-height: 1.2;
}

.chat-memory-source.is-ready {
  background: rgba(201, 169, 97, .08);
  border-color: rgba(201, 169, 97, .36);
  color: #c9a961;
}

.chat-memory-source.is-ready::before,
.chat-memory-source.is-used::before {
  content: "✓";
}

.chat-memory-source.is-demand {
  background: rgba(120, 100, 60, .06);
  border-color: rgba(150, 130, 80, .22);
  color: #8d7b63;
}

.chat-memory-source.is-used {
  background: rgba(132, 66, 48, .14);
  border-color: rgba(178, 112, 82, .4);
  color: #e4c3a4;
}

.chat-background-status {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 97, .18);
  color: #7a6a5a;
  background: rgba(201, 169, 97, .06);
  font-size: 12px;
  line-height: 1.55;
}

.chat-background-status.is-working {
  color: #b88f55;
  border-color: rgba(201, 169, 97, .34);
}

.chat-background-status.is-ok {
  color: #9f8450;
  border-color: rgba(170, 140, 80, .28);
}

.chat-background-status.is-warn,
.chat-err {
  color: #c98167;
  border-color: rgba(210, 136, 96, .28);
  background: rgba(210, 136, 96, .08);
}

.chat-starters {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.chat-starter-btn {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 97, .16);
  background: rgba(30, 22, 17, .96);
  color: #efe1cf;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}

.xb-starter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xb-starter-tab {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(201, 169, 97, .15);
  border-radius: 999px;
  background: rgba(30, 22, 17, .92);
  color: #d9c7ac;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}

.xb-starter-tab::after {
  content: "⌄";
  margin-left: 7px;
  color: rgba(201, 169, 97, .72);
  font-size: 12px;
}

.xb-starter-tab:hover,
.xb-starter-tab.is-active {
  border-color: rgba(201, 169, 97, .42);
  background: rgba(201, 169, 97, .12);
  color: #fff0c4;
}

.xb-starter-tab.is-active::after {
  content: "⌃";
}

.xb-starter-panels {
  min-height: 48px;
  padding: 10px;
  border: 1px solid rgba(201, 169, 97, .12);
  border-radius: 18px;
  background: rgba(9, 7, 5, .28);
}

.xb-starter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xb-starter-panel[hidden] {
  display: none;
}

.xb-starter-panel .chat-starter-btn {
  background: rgba(201, 169, 97, .075);
}

.chat-starter-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.chat-starter-btn:disabled,
.chat-send-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

#chat-loading-bar {
  display: none;
  height: 2px;
  margin: 4px 0 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(201, 168, 120, .28) 0%, #c9a878 50%, rgba(201, 168, 120, .28) 100%);
  background-size: 200% 100%;
  animation: mbpChatBarSlide 1.4s linear infinite;
}

@keyframes mbpChatBarSlide {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.chat-messages {
  min-height: 420px;
  max-height: 680px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 24px;
  scroll-behavior: smooth;
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  animation: mbpChatFadeIn .2s ease;
}

@keyframes mbpChatFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.chat-msg-assistant {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
}

.chat-msg-assistant::before {
  content: "仙";
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #241e18;
  border: 1px solid rgba(201, 168, 120, .22);
  color: #c9a878;
  font-size: 13px;
  font-weight: 700;
}

.chat-msg-user {
  justify-content: flex-end;
  padding-left: 56px;
}

.chat-msg-user::after {
  content: "我";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #e3c183 0%, #b87946 100%);
  border: 1px solid rgba(233, 207, 154, .4);
  color: #2a1a0d;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(163, 115, 39, .2);
}

.chat-msg-user .chat-sender {
  display: none;
}

.chat-sender {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9a878;
  font-size: 12px;
  letter-spacing: .04em;
}

.chat-sender-read-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border: 1px solid rgba(201, 169, 97, .42);
  border-radius: 999px;
  background: rgba(201, 169, 97, .10);
  color: #d9c27f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.chat-bubble {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  max-width: min(78%, 780px);
  padding: 13px 16px;
  border: 1px solid rgba(201, 168, 120, .14);
  border-radius: 8px 18px 18px 18px;
  background: linear-gradient(180deg, rgba(40, 31, 23, .96) 0%, rgba(28, 22, 16, .98) 100%);
  color: #efe1cf;
  line-height: 1.84;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  word-break: break-word;
}

.chat-bubble::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -7px;
  width: 12px;
  height: 12px;
  background: rgba(38, 29, 22, .98);
  border-left: 1px solid rgba(201, 168, 120, .14);
  border-bottom: 1px solid rgba(201, 168, 120, .14);
  transform: rotate(45deg);
}

.chat-bubble-user {
  position: relative;
  max-width: min(74%, 760px);
  margin-left: auto;
  padding: 13px 16px;
  border: 1px solid rgba(233, 207, 154, .28);
  border-radius: 18px 8px 18px 18px;
  background: linear-gradient(180deg, #e3c183 0%, #cfa35f 100%);
  color: #2a1a0d;
  box-shadow: 0 12px 28px rgba(163, 115, 39, .22);
  word-break: break-word;
}

.chat-bubble-user::before {
  content: none;
}

.chat-bubble-user::after {
  content: "";
  position: absolute;
  top: 12px;
  right: -7px;
  width: 12px;
  height: 12px;
  background: #d5ab68;
  border-right: 1px solid rgba(233, 207, 154, .28);
  border-top: 1px solid rgba(233, 207, 154, .28);
  transform: rotate(45deg);
}

.chat-sys-msg {
  align-self: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(201, 169, 97, .06);
  border: 1px solid rgba(201, 169, 97, .1);
  color: #a49072;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.chat-setup {
  border-radius: 14px;
  padding: 10px 14px;
  line-height: 1.75;
}

.chat-input {
  flex: 1;
  min-height: 24px;
  max-height: 160px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #efe1cf;
  font: inherit;
  line-height: 1.55;
  resize: none;
  outline: 0;
}

.chat-input::placeholder {
  color: #766756;
}

.chat-send-btn {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.chat-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
}

.chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9a961;
  opacity: .55;
  animation: mbpTypingBlink .9s ease-in-out infinite;
}

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

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

@keyframes mbpTypingBlink {
  0%, 80%, 100% { transform: scale(.75); opacity: .4; }
  40% { transform: scale(1.2); opacity: 1; }
}

#aip-panel-chat {
  --xb-gold: #c9a878;
  --xb-bg-0: #110d0a;
  --xb-bg-1: #1a1612;
  --xb-bg-2: #241e18;
  --xb-text: #efe1cf;
  --xb-muted: #cfbda5;
  --xb-soft: #897762;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#aip-panel-chat .aip-card,
#aip-panel-chat .xb-starters-bar,
#aip-panel-chat .xb-composer {
  background: var(--xb-bg-1);
  border: 1px solid rgba(201, 168, 120, .15);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

#aip-panel-chat .xb-hero {
  padding: 14px 18px;
}

#aip-panel-chat .xb-status-card {
  min-height: 0;
}

#aip-panel-chat .xb-status-strip {
  display: flex;
  align-items: center;
}

#aip-panel-chat .xb-read-pill {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
}

#aip-panel-chat .xb-status-hidden {
  display: none !important;
}

#aip-panel-chat .xb-quota,
#aip-panel-chat .xb-insight,
#aip-panel-chat .xb-meta,
#aip-panel-chat .xb-memory-drawer {
  border: 1px solid rgba(201, 168, 120, .12);
  border-radius: 18px;
  background: var(--xb-bg-2);
}

#aip-panel-chat .xb-starters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
}

#aip-panel-chat .xb-starters-kicker {
  display: flex;
  align-items: center;
  color: var(--xb-soft);
  font-size: 12px;
  flex-shrink: 0;
}

#aip-panel-chat .xb-starters-bar-bottom {
  margin-top: 10px;
}

#aip-panel-chat .xb-starters {
  flex: 1;
}

#aip-panel-chat .xb-starter-icon {
  display: none;
}

#aip-panel-chat .xb-conversation {
  padding: 6px;
  background: var(--xb-bg-1);
}

#aip-panel-chat .xb-composer {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#aip-panel-chat .xb-input-pill {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 120, .18);
  background: var(--xb-bg-1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
}

#aip-panel-chat .xb-send {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--xb-gold);
  color: var(--xb-bg-0);
  box-shadow: 0 10px 24px rgba(201, 168, 120, .18);
  align-self: center;
}

#aip-panel-chat .xb-send:hover:not(:disabled) {
  background: #d5b687;
}

#aip-panel-chat .xb-composer-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
}

#aip-panel-chat .xb-dot {
  color: rgba(201, 168, 120, .45);
}

@media (max-width: 1020px) {
  .mbp-xb-head {
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .mbp-xb-section {
    padding: 22px 16px;
  }

  .mbp-xb-head {
    display: grid;
    gap: 14px;
  }

  .mbp-xb-client-picker {
    width: 100%;
    flex-basis: auto;
  }

  .mbp-xb-client-current {
    min-height: 66px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .mbp-xb-profile-mark {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .mbp-xb-shell {
    padding: 12px;
  }

  .chat-messages {
    min-height: 320px;
    max-height: 560px;
    padding: 18px 16px;
  }

  .chat-msg-user {
    padding-left: 0;
  }

  .chat-bubble,
  .chat-bubble-user {
    max-width: 88%;
  }

  #aip-panel-chat .xb-starters-bar {
    align-items: flex-start;
    padding: 14px;
  }

  #aip-panel-chat .xb-starters {
    flex-basis: 100%;
  }

  #aip-panel-chat .xb-input-pill {
    align-items: center;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(241, 212, 125, .08), transparent 30%),
      linear-gradient(180deg, #090603 0%, #050302 56%, #030201 100%);
  }

  .mbp-nav {
    height: 52px;
    padding-inline: 10px;
    gap: 8px;
    border-bottom-color: rgba(241, 212, 125, .14);
    background: rgba(10, 7, 4, .94);
  }

  .mbp-brand {
    gap: 7px;
    font-size: 15px;
    white-space: nowrap;
  }

  .mbp-brand-logo {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .mbp-nav-actions {
    min-width: 0;
    gap: 5px;
  }

  .mbp-auth-trigger,
  .mbp-member-pay-trigger,
  .mbp-member {
    min-height: 30px;
    min-width: 0;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1;
  }

  .mbp-auth-trigger-meta,
  .mbp-member-pay-trigger small {
    display: none;
  }

  .mbp-page {
    width: 100%;
    max-width: none;
    padding: 0 0 64px;
  }

  .mbp-hero-main {
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mbp-hero-main::before {
    display: none;
  }

  .mbp-hero-input,
  .mbp-hero-chart,
  .mbp-book-panel,
  .mbp-xb-section {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .mbp-hero-input {
    gap: 10px;
    padding: 14px 16px 16px;
    background:
      linear-gradient(180deg, rgba(241, 212, 125, .06), transparent 24%),
      rgba(13, 10, 7, .76);
  }

  .mbp-input-prompt {
    min-height: 0;
    padding: 10px 13px;
    border-radius: 9px;
  }

  .mbp-input-prompt strong {
    font-size: 16px;
    line-height: 1.35;
  }

  .mbp-client-input-card {
    padding: 10px 12px;
    border-radius: 9px;
  }

  .mbp-client-input-head {
    margin-bottom: 8px;
  }

  .mbp-input-client-picker .mbp-client-current {
    min-height: 58px;
    grid-template-columns: 36px minmax(0, 1fr) 14px;
    gap: 10px;
    padding: 10px 12px;
  }

  .mbp-input-client-picker .mbp-profile-mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .mbp-form-card {
    padding: 0 12px 12px;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  }

  .mbp-form-card::before {
    left: 14px;
    right: 14px;
    height: 2px;
  }

  .mbp-form-card::after {
    display: none;
  }

  .mbp-form-card .nf-row {
    padding: 8px 0;
  }

  .mbp-form-card .nf-row:first-child {
    padding-top: 14px;
  }

  .nf-label {
    font-size: 14px;
  }

  .nf-row-head {
    gap: 8px;
    margin-bottom: 8px;
  }

  .nf-cal-toggle,
  .nf-gender-pill {
    border-radius: 8px;
  }

  .nf-cal-btn,
  .nf-gender-btn,
  .nf-soft-btn {
    min-height: 30px;
    font-size: 12px;
  }

  .nf-select,
  .nf-name-input {
    height: 44px;
    border-radius: 8px;
    font-size: 15px;
  }

  .nf-time-selects {
    gap: 8px;
    margin-top: 8px;
  }

  .nf-time-sel {
    width: 70px;
    font-size: 15px;
  }

  .nf-submit {
    height: 44px;
    border-radius: 9px;
    font-size: 16px;
    letter-spacing: .18em;
  }

  .mbp-hero-chart {
    padding: 14px 16px 18px;
    background:
      linear-gradient(180deg, rgba(241, 212, 125, .045), rgba(0, 0, 0, .04)),
      rgba(8, 5, 3, .7);
  }

  .mbp-fc-card {
    padding: 8px;
    border-radius: 9px;
  }

  .fc-grid {
    gap: 3px;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .fc-cell {
    min-height: 0;
    padding: 5px;
    border-radius: 4px;
  }

  #mbp-fc-center-panel {
    padding: 8px;
    border-radius: 4px;
  }

  .fc-center-title {
    font-size: 15px;
  }

  .fc-center-row,
  .fc-gua-row,
  .fc-center-val,
  .fc-center-btn {
    font-size: 10px;
  }

  .fc-tabs {
    min-height: 40px;
    border-radius: 8px;
  }

  .fc-tab {
    min-height: 34px;
    border-radius: 7px;
    font-size: 13px;
  }

  .mbp-book {
    margin-top: 18px;
  }

  .mbp-book-panel {
    padding: 18px 16px 20px;
    background:
      radial-gradient(circle at 50% 0%, rgba(241, 212, 125, .07), transparent 32%),
      rgba(9, 6, 3, .86);
  }

  .mbp-section-head {
    gap: 10px;
    margin-bottom: 14px;
  }

  .mbp-section-head h2 {
    margin-top: 6px;
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: .1em;
  }

  .mbp-section-head p {
    font-size: 12px;
    line-height: 1.55;
  }

  .mbp-report-action-bar {
    min-height: 0;
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 9px;
  }

  .mbp-report-action-bar button {
    width: 76px;
    height: 76px;
    min-width: 76px;
    min-height: 76px;
    font-size: 12px;
  }

  .mbp-report-action-bar button b {
    font-size: 17px;
  }

  .mbp-book-cover {
    padding: 16px;
    border-radius: 9px;
  }

  .mbp-book-title {
    font-size: 26px;
    letter-spacing: .2em;
  }

  .mbp-book-menu li + li {
    margin-top: 8px;
  }

  .mbp-book-menu button {
    min-height: 48px;
    padding: 9px 10px;
    border-radius: 8px;
  }

  .mbp-chapters {
    gap: 10px;
  }

  .mbp-chapters article,
  .mbp-special-card,
  .mbp-luck-hero,
  .mbp-luck-kv section,
  .mbp-luck-summary section,
  .mbp-curve-summary,
  .mbp-curve-cards section,
  .mbp-curve-ai-sections section {
    border-radius: 8px;
  }

  .mbp-chapters article {
    padding: 15px 14px;
  }

  .mbp-report-row {
    gap: 8px;
  }

  .mbp-report-content,
  .mbp-insight-summary,
  .mbp-insight-detail p,
  .mbp-topic-detail,
  .mbp-luck-reading-body p,
  .mbp-curve-summary p {
    font-size: 14px;
    line-height: 1.72;
  }

  .mbp-yijing-assist {
    gap: 14px;
    margin: 22px 0 0;
    padding: 18px 16px 20px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 50% 4%, rgba(241, 212, 125, .11), transparent 34%),
      linear-gradient(180deg, rgba(25, 17, 9, .96), rgba(9, 6, 3, .9));
  }

  .mbp-yijing-left {
    gap: 12px;
  }

  .mbp-yijing-kicker {
    font-size: 28px;
    line-height: 1.08;
    white-space: normal;
  }

  .mbp-yijing-left h3 {
    font-size: 28px;
    line-height: 1.14;
  }

  .mbp-yijing-left p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
  }

  .mbp-yijing-lines {
    width: 58px;
    gap: 3px;
  }

  .mbp-yijing-tabs {
    width: 100%;
    min-height: 42px;
    border-radius: 8px;
  }

  .mbp-yijing-mode-head {
    min-height: 0;
    gap: 7px;
    font-size: 11px;
  }

  .mbp-yijing-mode-head span {
    min-height: 23px;
    padding: 0 8px;
    font-size: 11px;
  }

  .mbp-yijing-mode-head strong {
    font-size: 12px;
  }

  .mbp-yijing-tabs [data-yijing-tab] {
    border-radius: 7px;
    font-size: 13px;
  }

  .mbp-liuyao-overlay {
    padding: 10px;
  }

  .mbp-liuyao-modal {
    max-height: 92vh;
    border-radius: 12px;
  }

  .mbp-liuyao-head {
    padding: 18px 16px 14px;
  }

  .mbp-liuyao-head strong {
    font-size: 24px;
  }

  .mbp-liuyao-body {
    padding: 14px;
  }

  .mbp-liuyao-steps {
    gap: 6px;
  }

  .mbp-liuyao-steps span {
    min-height: 30px;
    font-size: 11px;
  }

  .mbp-liuyao-entry {
    min-height: 0;
    padding: 14px;
    grid-template-columns: 1fr;
  }

  .mbp-liuyao-entry-action {
    width: 100%;
  }

  .mbp-liuyao-suggestions {
    grid-template-columns: 1fr;
  }

  .mbp-liuyao-suggestions button {
    min-height: 42px;
  }

  .mbp-liuyao-result-grid {
    grid-template-columns: 1fr;
  }

  .mbp-yijing-help {
    display: none;
  }

  .mbp-yijing-help-note {
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 11px;
  }

  .mbp-yijing-guaci {
    min-height: 0;
    padding: 14px 15px;
    border-left-width: 2px;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    line-height: 1.7;
  }

  .mbp-yijing-master {
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
  }

  .mbp-yijing-master-head {
    align-items: flex-start;
  }

  .mbp-yijing-master-head span,
  .mbp-yijing-master-head strong {
    font-size: 13px;
  }

  .mbp-yijing-master-summary,
  .mbp-yijing-master-text,
  .mbp-yijing-paragraph p {
    font-size: 14px;
    line-height: 1.72;
  }

  .mbp-yijing-art {
    width: 100%;
    padding: 12px;
    gap: 12px;
    border-radius: 8px;
  }

  .mbp-yijing-art-frame,
  .mbp-yijing-art-frame:has(> img:not([hidden])) {
    min-height: 0;
    aspect-ratio: 358 / 505;
    padding: 8px;
  }

  .mbp-yijing-art-frame img {
    object-fit: contain;
  }

  .mbp-yijing-art figcaption {
    padding: 12px 0;
  }

  .mbp-yijing-image-reading {
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
  }

  .mbp-yijing-timing-toggle {
    min-height: 48px;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .mbp-yijing-timing-toggle strong {
    font-size: 13px;
    white-space: normal;
  }

  .mbp-yijing-timing-panel {
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
  }

  .mbp-xb-section {
    margin-top: 18px;
    padding: 18px 16px;
  }

  .mbp-xb-shell {
    border-radius: 9px;
  }

  .chat-messages {
    min-height: 280px;
    padding: 14px 12px;
  }

  .chat-bubble,
  .chat-bubble-user {
    max-width: 92%;
  }

  .mbp-footer {
    padding: 28px 16px 36px;
    font-size: 12px;
    line-height: 1.7;
  }
}
