:root {
  color-scheme: dark;
  --product-bg: #000;
  --product-base: #080808;
  --product-elevated: #111;
  --product-hover: #181818;
  --product-text: #f5f5f7;
  --product-secondary: rgba(245, 245, 247, .62);
  --product-tertiary: rgba(245, 245, 247, .38);
  --product-line: rgba(255, 255, 255, .11);
  --product-line-strong: rgba(255, 255, 255, .2);
  --product-accent: #c9a66b;
  /* Evidence: the tag under a passage, its detail panel and the chart parts it points to share one colour. Violet,
     because the BaZi chart already colours the five elements (wood green, fire red, earth ochre, metal gold,
     water blue): a gold or blue highlight read as an element. */
  --evidence: #b6a4ff;
  --evidence-line: rgba(182, 164, 255, .55);
  --evidence-soft: rgba(182, 164, 255, .14);
  --product-motion: cubic-bezier(.4, 0, .2, 1);
}

/* Account and privacy-safe admin surfaces */
.account-ui { min-height: 100vh; margin: 0; background: #000; color: var(--product-text); font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", Inter, sans-serif; -webkit-font-smoothing: antialiased; }
.account-ui * { box-sizing: border-box; }
.account-ui :where(a, button, input, select, summary):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.account-shell { width: min(480px, calc(100% - 36px)); min-height: 100vh; margin: 0 auto; display: grid; align-content: center; gap: 42px; padding: 8vh 0; }
.account-shell.account-wide { width: min(760px, calc(100% - 36px)); }
.conversation-archive { align-content: start; gap: 24px; padding: 40px 0; }
.conversation-archive h1 { font-size: 30px; font-weight: 600; }
.conversation-archive .language-control { display: flex; }
.conversation-archive .history-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 16px; }
.conversation-archive .history-search input { flex: 1 1 220px; min-width: 0; width: auto; min-height: 48px; padding: 12px 16px; border: 1px solid var(--product-line-strong); border-radius: 16px; background: var(--product-elevated); color: var(--product-text); font: inherit; font-size: 16px; }
.conversation-archive .history-search button, .history-pages a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--product-line-strong); border-radius: 14px; background: var(--product-elevated); color: var(--product-text); font: inherit; text-decoration: none; cursor: pointer; }
.history-search a, .history-pages span, .history-count { color: var(--product-secondary); font-size: 13px; }
.conversation-list { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.conversation-delete { display: flex; justify-content: flex-end; margin: 4px 6px 0; }
.conversation-delete button { min-height: 28px; padding: 0 4px; border: 0; background: transparent; color: var(--product-secondary); font: inherit; font-size: 12px; cursor: pointer; }
.conversation-delete button:hover, .conversation-delete[data-armed="1"] button { color: var(--theme-error, #e0776b); }
.conversation-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; padding: 20px; border: 1px solid var(--product-line); border-radius: 18px; background: var(--product-base); color: var(--product-text); text-decoration: none; }
.conversation-link:hover { background: var(--product-hover); border-color: var(--product-line-strong); }
.conversation-link strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 16px; font-weight: 500; line-height: 1.6; }
.conversation-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; grid-column: 1; color: var(--product-secondary); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.conversation-corrected { padding: 0 7px; border: 1px solid var(--product-line-strong); border-radius: 999px; font-size: 11px; }
.conversation-open { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--product-secondary); font-size: 13px; }
.history-empty { padding: 48px 12px; color: var(--product-secondary); text-align: center; }
.history-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
@media (max-width: 600px) {
  .conversation-archive { padding-top: 24px; }
  .conversation-link { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .conversation-open { grid-column: 1; grid-row: auto; }
}
.account-brand { display: inline-flex; align-items: center; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.account-brand span { margin-left: 10px; color: var(--product-tertiary); font-size: 12px; font-weight: 500; }
.account-card { padding: 34px; border: 1px solid var(--product-line); border-radius: 20px; background: #0a0a0a; }
.account-kicker { margin: 0 0 14px; color: var(--product-tertiary); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.legal-page { align-content: start; padding-top: 42px; gap: 28px; }
.legal-copy { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.account-card.legal-copy h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.3; }
.legal-copy h2 { margin: 36px 0 12px; font-size: 20px; line-height: 1.5; }
.legal-copy p, .legal-copy ul { color: rgba(245, 245, 247, .82); }
.legal-copy ul { padding-left: 22px; }.legal-copy li + li { margin-top: 10px; }
.pricing-currencies { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }.pricing-currencies a { padding: 5px 11px; border: 1px solid var(--product-line, rgba(255,255,255,.14)); border-radius: 999px; font-size: 12px; color: inherit; text-decoration: none; opacity: .72; }.pricing-currencies a[aria-current] { opacity: 1; border-color: currentColor; }
.pricing-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 20px; }.pricing-pack { padding: 18px 16px; border: 1px solid var(--product-line, rgba(255,255,255,.14)); border-radius: 14px; }.legal-copy .pricing-pack h2 { margin: 0; font-size: 22px; }.pricing-pack h2 small { font-size: 13px; font-weight: 400; opacity: .7; }.legal-copy .pricing-pack p { margin: 6px 0 0; font-size: 13px; }.legal-copy .pricing-pack .pricing-price { font-size: 20px; font-weight: 600; color: inherit; }.legal-copy .pricing-pack .pricing-bonus { color: #9fd6a8; }
@media (max-width: 560px) { .pricing-packs { grid-template-columns: 1fr; } }
.pricing-member { margin: 16px 0 24px; padding: 20px 20px 8px; border: 1px solid var(--product-line-strong); border-radius: 14px; }
.legal-copy .pricing-member h2 { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.legal-copy .pricing-member h2 .pricing-price { font-size: 22px; font-weight: 600; }
.legal-copy .pricing-member h2 small { font-size: 13px; font-weight: 400; opacity: .7; margin-left: -6px; }
.legal-copy a:not(.account-link) { color: var(--product-text); text-underline-offset: 3px; }
.legal-copy .legal-notice { padding: 15px 18px; background: #151515; border-radius: 10px; color: var(--product-text); }
.legal-copy .account-kicker { color: var(--product-secondary); }
.legal-copy .legal-version { margin-top: 28px; color: var(--product-tertiary); font-size: 12px; font-variant-numeric: tabular-nums; }
.legal-copy .legal-translation { font-size: 13px; color: var(--product-secondary); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 25px 0; font-size: 13px; }
.legal-copy details { margin: 12px 0; padding: 15px 18px; border: 1px solid var(--product-line); border-radius: 10px; }
.legal-copy summary { cursor: pointer; font-weight: 600; }.legal-copy details p:last-child { margin-bottom: 0; }
.legal-copy section { scroll-margin-top: 24px; }
.account-card h1, .admin-intro h1 { margin: 0; font-size: clamp(28px, 5vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -.045em; }
.account-copy, .admin-intro > p:last-child, .admin-section > div > p:last-child { margin: 17px 0 28px; color: var(--product-secondary); font-size: 13px; line-height: 1.75; }
.account-ui form { display: grid; gap: 15px; }
.account-ui label { display: grid; gap: 8px; color: var(--product-secondary); font-size: 11px; }
.account-ui input, .account-ui select { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--product-line-strong); border-radius: 10px; background: #111; color: #fff; font: inherit; }
.account-ui button, .account-link { min-height: 46px; display: grid; place-items: center; padding: 0 18px; border: 0; border-radius: 10px; background: var(--product-text); color: var(--theme-button-text); font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; }
.account-ui button:hover, .account-link:hover { filter: brightness(1.08); }
.account-error { color: #ff9f9f; font-size: 12px; line-height: 1.5; }
.account-success { color: #9ee7c8; font-size: 12px; }
.account-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account-header nav { display: flex; gap: 18px; }
.account-header > a:last-child, .account-header nav a { color: var(--product-secondary); font-size: 12px; text-decoration: none; }
.account-facts { margin: 28px 0; border-top: 1px solid var(--product-line); }
.account-facts div { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--product-line); }
.account-facts dt { color: var(--product-secondary); font-size: 12px; }.account-facts dd { margin: 0; font: 500 11px/1.4 "SF Mono", monospace; }
.account-secondary { margin-top: 14px; border: 1px solid var(--product-line-strong) !important; background: transparent !important; }
.account-danger { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--product-line); color: var(--product-secondary); font-size: 12px; }
.account-danger summary { cursor: pointer; }.account-danger p { line-height: 1.7; }.account-danger button { background: #8b1f25; }
.account-danger label { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 14px; line-height: 1.6; cursor: pointer; }
.account-ui .account-danger input[type="checkbox"] { flex: 0 0 16px; width: 16px; height: 16px; min-height: 0; margin: 3px 0 0; padding: 0; accent-color: #ededed; }
.admin-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 80px; }
.admin-intro { max-width: 720px; padding: 14vh 0 7vh; }.admin-intro h1 { font-size: clamp(40px, 6vw, 72px); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--product-line); border-left: 1px solid var(--product-line); }
.metric-grid article { min-height: 132px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--product-line); border-bottom: 1px solid var(--product-line); }
.metric-grid span { color: var(--product-secondary); font-size: 11px; }.metric-grid strong { font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.admin-section { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(340px, 1.2fr); gap: 8vw; padding: 9vh 0; border-bottom: 1px solid var(--product-line); }
.admin-section h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--product-line); }.status-grid div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--product-line); }.status-grid dt { color: var(--product-tertiary); font-size: 11px; }.status-grid dd { margin: 0; color: var(--product-text); font: 500 11px/1.3 "SF Mono", monospace; }
.admin-create { grid-template-columns: 1fr 1fr; }.admin-create label:first-of-type { grid-column: 1 / -1; }.admin-create button, .admin-create :is(.account-error,.account-success) { grid-column: 1 / -1; }
.admin-table-wrap { grid-template-columns: 1fr; gap: 30px; }.admin-table-wrap table { width: 100%; border-collapse: collapse; }.admin-table-wrap th, .admin-table-wrap td { padding: 14px 10px; border-bottom: 1px solid var(--product-line); text-align: left; font-size: 11px; }.admin-table-wrap th { color: var(--product-tertiary); font-weight: 500; }.admin-table-wrap td { color: var(--product-secondary); }
@media (max-width: 760px) { .account-card { padding: 26px 22px; border-radius: 16px; }.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.admin-section { grid-template-columns: 1fr; }.admin-create { grid-template-columns: 1fr; }.admin-create label:first-of-type { grid-column: auto; }.admin-create button, .admin-create :is(.account-error,.account-success) { grid-column: auto; }.admin-table-wrap { overflow-x: auto; } }

.reading-ui,
.pair-ui {
  background: var(--product-bg);
  color: var(--product-text);
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.reading-ui :where(button, a, input, select, summary),
.pair-ui :where(button, a, input, select, summary) {
  transition: color 320ms var(--product-motion), border-color 320ms var(--product-motion), background 320ms var(--product-motion), opacity 320ms var(--product-motion), transform 320ms var(--product-motion);
}

.reading-ui :where(button, a, input, select, summary):focus-visible,
.pair-ui :where(button, a, input, select, summary):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Reading workspace */
.reading-ui { min-width: 1080px; background: #000; letter-spacing: 0; }
.reading-ui .workspace {
  grid-template-columns: 226px minmax(540px, 1fr) 438px;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}
.reading-ui .sidebar,
.reading-ui .chart-panel {
  background: rgba(8, 8, 8, .9);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}
.reading-ui .sidebar { padding: 14px 10px 12px; gap: 8px; border-color: var(--product-line); }
.reading-ui .sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.reading-ui .brand { display: inline-flex; min-width: 0; min-height: 40px; align-items: center; padding: 0 6px; color: var(--product-text); text-decoration: none; }
.reading-ui .brand::before { content: none; }
.reading-ui .brand-wordmark { display: inline-flex; align-items: center; margin: 0; padding: 0; border: 0; color: var(--product-text); font-size: 15px; line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.reading-ui .brand-system { display: inline-flex; flex: 0 0 auto; flex-direction: column; align-items: flex-start; margin: 0 0 0 7px; padding: 0 0 0 7px; border: 0; border-left: 1px solid var(--product-line); color: var(--product-tertiary); font-size: 9px; font-weight: 400; line-height: 1.3; white-space: nowrap; }
.reading-ui .brand-system > span { display: block; margin: 0; padding: 0; border: 0; color: inherit; font-size: inherit; letter-spacing: 0; }
/* Japanese and Korean names of the two systems are too long for the desktop sidebar beside the collapse button; the phone menu and the home header still show them. */
html:is([lang|="ja"], [lang|="ko"]) .reading-ui .sidebar:not(.mobile-navigation .sidebar) .brand-system { display: none; }
.brand-mark { display: block; flex: 0 0 34px; width: 34px; height: 18px; margin-right: 7px; object-fit: contain; }
.reading-ui .sidebar-toggle { display: grid; position: relative; z-index: 2; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--product-secondary); cursor: pointer; }
.reading-ui .sidebar-toggle:hover { background: rgba(255,255,255,.06); color: #fff; }
.reading-ui .sidebar-toggle svg { width: 22px; height: 22px; stroke-width: 1.7; }
.reading-ui .sidebar-collapsed-logo { display: none; width: 34px; height: 18px; object-fit: contain; }
.reading-ui .sidebar-toggle svg,
.reading-ui .new-reading svg,
.reading-ui .profile-switch-icon,
.reading-ui .profile-switcher-dialog svg,
.reading-ui .sidebar-foot svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reading-ui .new-reading svg { display: block; flex: 0 0 20px; width: 20px; height: 20px; }
.reading-ui .sidebar-content { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 8px; }
.reading-ui .sidebar-profile { display: grid; gap: 3px; }
.reading-ui .primary-nav { display: grid; grid-template-columns: 1fr; gap: 2px; padding-bottom: 4px; }
.reading-ui .new-reading {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--product-secondary);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}
.reading-ui .new-reading:hover { background: rgba(255,255,255,.065); color: #fff; box-shadow: none; }
.reading-ui .nav-title { padding: 9px 10px 4px; color: var(--product-tertiary); font-size: 10px; line-height: 1.2; letter-spacing: .02em; }
.reading-ui .profile-card {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: none;
}
.reading-ui .profile-card-switch { cursor: pointer; }
.reading-ui .profile-card-switch:hover { background: rgba(255,255,255,.055); }
.reading-ui .profile-switch-icon { flex: 0 0 18px; width: 18px; height: 18px; margin-left: auto; color: var(--product-tertiary); }
.reading-ui .profile-card-row { display: flex; align-items: center; gap: 2px; min-width: 0; }
.reading-ui .profile-card-row .profile-card { flex: 1; }
.reading-ui .profile-card-menu-toggle { display: grid; flex: none; width: 28px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--product-tertiary); cursor: pointer; }
.reading-ui .profile-card-menu-toggle:hover, .reading-ui .profile-card-menu-toggle[aria-expanded="true"] { background: rgba(255,255,255,.07); color: #fff; }
.reading-ui .profile-card-menu-toggle svg { width: 16px; height: 16px; fill: currentColor; }
/* Fixed, because the sidebar clips its own overflow; the script places it under the toggle. */
.reading-ui .profile-card-menu { position: fixed; z-index: 60; display: grid; min-width: 188px; padding: 6px; border: 1px solid var(--product-line-strong); border-radius: 14px; background: #1b1b1d; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.reading-ui .profile-card-menu[hidden] { display: none; }
.reading-ui .profile-card-menu :is(a, button) { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--product-text); font: inherit; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; }
.reading-ui .profile-card-menu :is(a, button):hover, .reading-ui .profile-card-menu :is(a, button):focus-visible { background: rgba(255,255,255,.07); outline: 0; }
.reading-ui .profile-card-menu svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reading-ui .profile-card .profile-glyph,
.reading-ui .profile-switcher-item .profile-glyph { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid var(--product-line); border-radius: 9px; background: var(--product-elevated); color: var(--product-text); font-size: 13px; }
.reading-ui .profile-card .profile-copy { min-width: 0; color: var(--product-secondary); }
.reading-ui .profile-card strong { display: block; overflow: hidden; margin: 0 0 3px; color: var(--product-text); font-size: 11px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.reading-ui .profile-card small { display: block; color: var(--product-tertiary); font-size: 9px; line-height: 1.45; }
.reading-ui .history { min-height: 0; gap: 2px; padding: 0; }
.reading-ui .history-entry { display: block; overflow: hidden; min-height: 34px; padding: 8px 10px; border: 0; border-radius: 8px; color: var(--product-secondary); font-size: 11px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.reading-ui .history-entry:hover,
.reading-ui .history-entry.active { background: rgba(255,255,255,.065); color: var(--product-text); }
.reading-ui .history > span.history-entry { cursor: default; }
.reading-ui .history-entry { min-width: 0; max-width: 100%; }
/* One row: account on the left, appearance and language as icons on the right, so recent questions keep the room. */
.reading-ui .sidebar-foot { display: flex; align-items: center; gap: 2px; margin: auto 0 0; padding: 8px 0 0; color: var(--product-tertiary); }
.reading-ui .sidebar-foot > .sidebar-foot-link { order: -1; flex: 1; min-width: 0; }
.reading-ui .sidebar-foot > :is(.theme-control, .language-control) { flex: 0 0 44px; width: 44px; margin: 0; }
.reading-ui .sidebar-foot :is(a, button),
.reading-ui .sidebar-foot .language-control { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 10px; padding: 0 10px; border-radius: 10px; color: var(--product-secondary); font-size: 12px; line-height: 1.4; text-decoration: none; }
.reading-ui .sidebar-foot .language-control select { flex: 1; appearance: none; font: inherit; }
.reading-ui .sidebar-foot .language-control::after { content: ""; position: absolute; right: 13px; top: calc(50% - 4px); width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.reading-ui .sidebar-foot svg { flex: 0 0 20px; width: 20px; height: 20px; }
.reading-ui .sidebar-foot button { border: 0; background: transparent; font-family: inherit; font-weight: 400; text-align: left; cursor: pointer; }
.reading-ui .sidebar-foot :is(a, button):hover { background: rgba(255,255,255,.055); color: #fff; }
.reading-ui .workspace.sidebar-collapsed { grid-template-columns: 64px minmax(540px, 1fr) 438px; }
.reading-ui .workspace.sidebar-collapsed .sidebar { padding-inline: 10px; }
.reading-ui .workspace.sidebar-collapsed .sidebar-brand-row { justify-content: center; }
.reading-ui .workspace.sidebar-collapsed .sidebar-toggle { width: 44px; height: 44px; }
.reading-ui .workspace.sidebar-collapsed .sidebar-collapse-icon { display: none; }
.reading-ui .workspace.sidebar-collapsed .sidebar-collapsed-logo { display: block; }
.reading-ui .workspace.sidebar-collapsed .brand,
.reading-ui .workspace.sidebar-collapsed .sidebar-profile,
.reading-ui .workspace.sidebar-collapsed .nav-title,
.reading-ui .workspace.sidebar-collapsed .history { display: none; }
.reading-ui .workspace.sidebar-collapsed .sidebar-content { flex: 1; }
.reading-ui .workspace.sidebar-collapsed .primary-nav { grid-template-columns: 1fr; }
.reading-ui .workspace.sidebar-collapsed .new-reading { width: 44px; min-height: 44px; justify-content: center; padding: 0; }
.reading-ui .workspace.sidebar-collapsed .new-reading span { display: none; }
.reading-ui .workspace.sidebar-collapsed .sidebar-foot { flex-direction: column; gap: 8px; padding-top: 8px; }
.reading-ui .workspace.sidebar-collapsed .sidebar-foot > .sidebar-foot-link { flex: 0 0 auto; }
.reading-ui .workspace.sidebar-collapsed .sidebar-foot :is(a, button),
.reading-ui .workspace.sidebar-collapsed .sidebar-foot .language-control { width: 44px; min-height: 44px; justify-content: center; padding: 0; }
.reading-ui .workspace.sidebar-collapsed .sidebar-foot span { display: none; }
.reading-ui .workspace.sidebar-collapsed .sidebar-foot .language-control::after { display: none; }
.reading-ui .analysis-panel { position: relative; background: #000; }
/* An old conversation on corrected birth details: readable, closed, one step to the corrected ones. */
.reading-ui .corrected-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; width: min(100% - 32px, 760px); margin: 12px auto 0; padding: 12px 14px; border: 1px solid var(--product-line-strong); border-radius: 12px; background: var(--product-elevated); color: var(--product-secondary); font-size: 13px; line-height: 1.6; }
.reading-ui .corrected-notice p { flex: 1 1 260px; margin: 0; }
.reading-ui .corrected-notice button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: #fff; color: #090909; font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; }
.reading-ui .corrected-notice button:disabled { opacity: .6; cursor: default; }
.reading-ui .trace { padding: 44px clamp(34px, 7vw, 90px) 42px; scrollbar-color: rgba(255,255,255,.2) transparent; }
.reading-ui .conversation-turn { display: flow-root; scroll-margin-top: 32px; }
.reading-ui .conversation-turn + .conversation-turn { margin-top: 64px; }
.reading-ui .conversation-turn[aria-busy="true"] { min-height: 220px; }
.reading-ui .trace-intro { max-width: 650px; margin-bottom: 28px; color: var(--product-secondary); font-size: 15px; line-height: 1.85; }
.reading-ui .pending-block {
  position: relative;
  max-width: 880px;
  margin: 28px auto 0;
  padding: 0 0 6px;
  border: 0;
  background: transparent;
}
.reading-ui .pending-block::before { content: none; }
.reading-ui .pending-block p::before { content: none; }
.reading-ui .thinking-brand {
  --thinking-metal: #f5f5f7;
  --thinking-metal-middle: #b8b8bd;
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
  color: var(--product-secondary); font: 500 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.reading-ui .thinking-mark { position: relative; display: block; flex: 0 0 36px; width: 36px; height: 18px; }
.reading-ui .thinking-mark > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.reading-ui :is(.thinking-mark-base, .thinking-mark-light) {
  -webkit-mask: url("/static/twinsky-mark.svg") center / contain no-repeat;
  mask: url("/static/twinsky-mark.svg") center / contain no-repeat;
}
.reading-ui .thinking-mark-base { background: var(--thinking-metal-middle); opacity: .32; }
.reading-ui .thinking-mark-original { object-fit: contain; opacity: .74; }
.reading-ui .thinking-mark-light {
  background-image: linear-gradient(108deg, transparent 35%, var(--thinking-metal-middle) 43%, var(--thinking-metal) 49%, var(--thinking-metal-middle) 55%, transparent 63%);
  background-size: 350% 100%; background-position: 130% 0; opacity: .72;
  animation: thinking-silver-sweep 3s ease-in-out infinite;
}
.reading-ui .thinking-label { min-width: 0; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .reading-ui .thinking-label {
    background-image: linear-gradient(108deg, var(--product-secondary) 35%, var(--thinking-metal-middle) 43%, var(--thinking-metal) 49%, var(--thinking-metal-middle) 55%, var(--product-secondary) 63%);
    background-size: 350% 100%; background-position: 130% 0;
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: thinking-silver-sweep 3s ease-in-out infinite;
  }
}
.reading-ui .thinking-brand[data-mark-state="complete"] .thinking-mark-light { animation: none; opacity: 0; }
.reading-ui .thinking-brand[data-mark-state="complete"] .thinking-mark-original { opacity: 1; }
.reading-ui .thinking-brand[data-mark-state="complete"] .thinking-label { animation: none; background: none; -webkit-text-fill-color: currentColor; }
@keyframes thinking-silver-sweep { 0%, 10% { background-position: 130% 0; } 77%, 100% { background-position: -30% 0; } }
.reading-ui .question-chips { max-width: 660px; gap: 8px; }
.reading-ui .question-chips::before { color: var(--product-tertiary); font-size: 12px; font-weight: 500; }
.reading-ui .question-chips button {
  padding: 8px 12px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: transparent;
  color: var(--product-secondary);
  font-size: 12px;
}
.reading-ui .question-chips button:hover { transform: none; border-color: var(--product-line-strong); background: rgba(255,255,255,.055); color: #fff; }
.reading-ui .follow-ups { display: flex; align-items: flex-start; gap: 10px; max-width: 760px; margin: 0 auto 10px; }
/* Under an answer the row has the transcript's width and wraps instead of scrolling. */
.reading-ui .conversation-turn .follow-ups { margin: 18px 0 6px; }
.reading-ui .conversation-turn .follow-ups-list { flex-wrap: wrap; overflow: visible; }
.reading-ui .conversation-turn .follow-ups-list button { white-space: normal; text-align: left; line-height: 1.5; }
.reading-ui .reasoning-fold { margin: 14px 0 0; }
.reading-ui .reasoning-fold > summary { width: fit-content; padding: 6px 0; color: var(--product-tertiary); font-size: 12px; letter-spacing: .04em; cursor: pointer; }
.reading-ui .reasoning-fold > summary:hover { color: var(--product-secondary); }
.reading-ui .reasoning-fold[open] > summary { margin-bottom: 6px; }
/* The fold's own label already names the steps. */
.reading-ui .reasoning-fold .reasoning-timeline-kicker { display: none; }
.reading-ui .follow-ups-label { display: inline-flex; flex: none; align-items: center; gap: 5px; padding-top: 7px; color: var(--product-tertiary); font-size: 11px; letter-spacing: .04em; }
.reading-ui .follow-ups-mark { width: 14px; height: 14px; flex: none; }
.reading-ui .follow-ups-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.reading-ui .follow-ups-list::-webkit-scrollbar { display: none; }
.reading-ui .follow-ups-list button {
  flex: none;
  padding: 7px 12px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: transparent;
  color: var(--product-secondary);
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.reading-ui .follow-ups-list button:hover { border-color: var(--product-line-strong); background: rgba(255,255,255,.055); color: #fff; }
@media (max-width: 760px) {
  .reading-ui .follow-ups { flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 8px; }
  .reading-ui .follow-ups-label { padding: 0 0 0 4px; }
  /* One swipeable line keeps the composer short on phones. */
  .reading-ui .follow-ups-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}
.reading-ui .user-question {
  max-width: 620px;
  padding: 12px 16px;
  border: 0;
  border-radius: 17px 17px 5px 17px;
  background: #1c1c1e;
}
.reading-ui .user-question span { color: var(--product-tertiary); }
.reading-ui .user-question p { color: var(--product-text); }
.reading-ui .answer-card {
  max-width: 760px;
  margin-bottom: 30px;
  padding: 6px 0 30px;
  border-bottom: 1px solid var(--product-line);
}
.reading-ui .answer-card-label { color: var(--product-secondary); font-size: 12px; font-weight: 500; }
.reading-ui .answer-card-body { color: var(--product-text); font-size: 16px; line-height: 2; }
.reading-ui .evidence-button {
  min-height: 32px;
  margin-top: 12px;
  padding: 0 10px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: transparent;
  color: var(--product-secondary);
  font-size: 10px;
}
.reading-ui .evidence-button:hover { transform: none; border-color: var(--evidence-line); background: var(--evidence-soft); color: var(--evidence); }
.reading-ui .evidence-contract { max-width: 780px; margin: 0 0 30px; }
.reading-ui .evidence-contract > header { margin-bottom: 16px; }
.reading-ui .evidence-contract h2 { margin: 0 0 7px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.reading-ui .evidence-contract > header p { margin: 0; color: var(--product-secondary); font-size: 12px; line-height: 1.7; }
.reading-ui .evidence-contract-card { padding: 19px 0 22px; border-top: 1px solid var(--product-line); }
.reading-ui .evidence-contract-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.reading-ui .evidence-contract-title h3 { margin: 0; font-size: 14px; font-weight: 600; }
.reading-ui .support-badge { color: var(--product-secondary); font-size: 11px; font-weight: 500; }
.reading-ui .support-badge.dual_converge,
.reading-ui .support-badge.dual_complement,
.reading-ui .support-badge.dual_reconciled { color: var(--product-text); }
.reading-ui .evidence-conclusion { margin: 12px 0 15px; color: rgba(245,245,247,.82); font-size: 13px; line-height: 1.8; }
.reading-ui .evidence-systems { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reading-ui .system-proof { min-width: 0; padding: 14px; border-radius: 12px; background: var(--product-elevated); }
.reading-ui .system-proof strong { color: var(--product-secondary); font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.reading-ui .system-proof p { margin: 8px 0 0; color: rgba(245,245,247,.72); font-size: 12px; line-height: 1.7; }
.reading-ui .system-proof.unavailable { opacity: .45; }
.reading-ui .report-details,
.reading-ui .reasoning-audit,
.reading-ui .source-audit { max-width: 780px; border-color: var(--product-line); }
.reading-ui .report-details > summary,
.reading-ui .reasoning-audit > summary,
.reading-ui .source-audit > summary { color: var(--product-secondary); }
.reading-ui .report-section-body,
.reading-ui .step-body { color: rgba(245,245,247,.7); }
.reading-ui .analysis-plan,
.reading-ui .step details { border-color: var(--product-line); background: var(--product-elevated); box-shadow: none; }
.reading-ui .step { border-color: var(--product-line); }
.reading-ui .step::before { background: var(--product-secondary); box-shadow: 0 0 0 5px #000; }
.reading-ui .step-label { color: var(--product-secondary); }
.reading-ui .composer {
  padding: 10px clamp(28px, 5vw, 70px) 18px;
  background: rgba(0,0,0,.84);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.reading-ui .composer form {
  position: relative;
  overflow: visible;
  max-width: 760px;
  min-height: 54px;
  margin: 0 auto;
  padding: 7px 7px 7px 17px;
  border: 1px solid var(--product-line-strong);
  border-radius: 16px;
  background: #141414;
  box-shadow: 0 18px 42px rgba(0,0,0,.32);
}
.reading-ui .composer form::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -1px;
  padding: 1.5px;
  border-radius: 17px;
  background:
    radial-gradient(90px 28px at 8% 25%, #fff 0, rgba(255,255,255,.78) 18%, transparent 66%),
    radial-gradient(120px 36px at 74% 82%, rgba(255,255,255,.92) 0, rgba(140,144,151,.78) 24%, transparent 72%),
    linear-gradient(112deg, #111 5%, #b9bdc4 18%, #f7f7f5 27%, #464950 39%, #d9dce0 54%, #777b82 66%, #fff 78%, #1b1c20 94%);
  background-size: 180% 180%, 210% 190%, 240% 100%;
  background-position: 110% 20%, -20% 80%, 100% 50%;
  filter: contrast(1.18) brightness(1.04) drop-shadow(0 0 5px rgba(255,255,255,.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}
.reading-ui .composer form:focus-within::before {
  opacity: 1;
  animation: composer-liquid-metal 3.6s cubic-bezier(.4,0,.2,1) infinite alternate;
}
@keyframes composer-liquid-metal {
  0% { background-position: 110% 20%, -20% 80%, 100% 50%; }
  48% { background-position: 45% 80%, 90% 15%, 48% 50%; }
  100% { background-position: -20% 35%, 35% 90%, 0 50%; }
}
@keyframes composer-beam-loop { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.reading-ui .composer form:focus-within { border-color: transparent; box-shadow: 0 18px 42px rgba(0,0,0,.32); }
.reading-ui .composer input { color: var(--product-text); }
.reading-ui .composer input:focus-visible { outline: 0; }
.reading-ui .composer input::placeholder { color: var(--product-tertiary); }
.reading-ui .secondary-profile-control {
  display: flex;
  flex: 0 1 152px;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0 8px;
  color: var(--product-tertiary);
  font-size: 10px;
}
.reading-ui .secondary-profile-control select {
  min-width: 0;
  max-width: 110px;
  border: 0;
  background: transparent;
  color: var(--product-secondary);
  font: inherit;
}
.reading-ui .secondary-profile-control select:focus-visible { outline: 1px solid #777; }
.reading-ui .secondary-profile-control select:disabled { opacity: .5; }
.reading-ui .composer form > button[type="submit"] {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
}
.reading-ui .composer form > button[type="submit"] svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reading-ui .composer form > button[type="submit"]:hover:not(:disabled) { transform: none; background: #e8e8e8; filter: none; }
.reading-ui .composer form > button[type="submit"]:disabled { background: #2b2b2d; color: #777; opacity: 1; }
.reading-ui .engine-control { position: relative; z-index: 5; flex: 0 0 auto; }
.reading-ui .engine-control > summary { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 10px; color: var(--product-secondary); font-size: 11px; list-style: none; cursor: pointer; }
.reading-ui .engine-control > summary::-webkit-details-marker { display: none; }
.reading-ui .engine-control > summary:hover, .reading-ui .engine-control[open] > summary { background: rgba(255,255,255,.06); color: var(--product-text); }
.reading-ui .engine-control > summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.reading-ui .engine-control > summary small { color: var(--product-tertiary); font-size: 9px; }
.reading-ui .engine-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: 300px; overflow: hidden; border: 1px solid var(--product-line-strong); border-radius: 18px; background: #1b1b1d; box-shadow: 0 24px 70px rgba(0,0,0,.58); }
.reading-ui .engine-panel header { display: grid; gap: 5px; padding: 18px 20px 14px; border-bottom: 1px solid var(--product-line); }
.reading-ui .engine-panel header strong { color: var(--product-text); font-size: 14px; font-weight: 600; }
.reading-ui .engine-panel header small, .reading-ui .engine-row span small { color: var(--product-tertiary); font-size: 10px; }
.reading-ui .engine-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; min-height: 72px; padding: 13px 20px; cursor: pointer; }
.reading-ui .engine-row + .engine-row { border-top: 1px solid var(--product-line); }
.reading-ui .engine-row span { display: grid; gap: 5px; }
.reading-ui .engine-row span strong { color: var(--product-secondary); font-size: 13px; font-weight: 500; }
.reading-ui .engine-row input { position: absolute; opacity: 0; pointer-events: none; }
/* On is green and off is grey, as on a phone; a grey "on" read as off. */
.reading-ui .engine-row i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #3a3a3c; transition: background .3s cubic-bezier(.4,0,.2,1); }
.reading-ui .engine-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #f5f5f7; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .3s cubic-bezier(.4,0,.2,1), background .3s cubic-bezier(.4,0,.2,1); }
.reading-ui .engine-row input:checked + i { background: #30d158; }
.reading-ui .engine-row input:checked + i::after { transform: translateX(18px); background: #fff; }
.reading-ui .engine-row input:focus-visible + i { outline: 2px solid #fff; outline-offset: 3px; }
.reading-ui .engine-row input:disabled + i { opacity: .66; }
.reading-ui .chart-panel { border-color: var(--product-line); background: var(--product-base); }
.reading-ui .chart-head { padding: 20px 18px 14px; background: rgba(8,8,8,.82); }
.reading-ui .chart-head h2::before { content: none; }
.reading-ui .chart-head h2 { margin: 0; color: var(--product-text); font-size: 14px; font-weight: 600; }
.reading-ui .chart-head-row { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.reading-ui .chart-subject-tabs { display: flex; gap: 6px; margin: 0 0 8px; }
.reading-ui .chart-subject-tabs[hidden] { display: none; }
.reading-ui .chart-subject-tabs button { min-height: 28px; padding: 0 10px; border: 1px solid var(--product-line); border-radius: 999px; background: transparent; color: var(--product-tertiary); font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1; cursor: pointer; }
.reading-ui .chart-subject-tabs button:hover,
.reading-ui .chart-subject-tabs button.active { border-color: var(--product-line-strong); background: #1c1c1e; color: #fff; }
.reading-ui .chart-subject-tabs button.is-reading { color: var(--evidence); border-color: var(--evidence-line); animation: tool-tab-reading 1.1s ease-in-out infinite alternate; }
.reading-ui .chart-head-actions { display: flex; align-items: center; gap: 5px; }
.reading-ui .chart-legend-toggle,
.reading-ui .chart-panel-dismiss { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--product-tertiary); cursor: pointer; }
.reading-ui .chart-legend-toggle { display: flex; width: auto; gap: 5px; padding: 0 7px; white-space: nowrap; font-family: inherit; font-size: 10px; font-weight: 400; line-height: 1; }
.reading-ui .chart-legend-toggle:hover,
.reading-ui .chart-panel-dismiss:hover { background: rgba(255,255,255,.06); color: #fff; }
.reading-ui .chart-legend-toggle svg,
.reading-ui .chart-panel-dismiss svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.reading-ui .chart-panel-dismiss { display: none; }
/* 图例: a small panel under the chart header explaining colours and abbreviations. */
.reading-ui .chart-head { position: relative; z-index: 3; }
.reading-ui .chart-legend-toggle[aria-expanded="true"] { background: rgba(255,255,255,.08); color: #fff; }
.reading-ui .chart-legend { position: absolute; top: calc(100% - 6px); right: 14px; z-index: 30; width: min(320px, calc(100% - 28px)); max-height: min(70vh, 540px); overflow: auto; padding: 14px 16px 12px; border: 1px solid var(--product-line-strong); border-radius: 12px; background: #121214; box-shadow: 0 16px 40px rgba(0,0,0,.45); color: var(--product-secondary); font-size: 12px; line-height: 1.55; }
.reading-ui .chart-legend[hidden], .reading-ui .chart-legend-group[hidden] { display: none; }
.reading-ui .chart-legend h3 { margin: 0 0 8px; color: var(--product-text); font-size: 12.5px; font-weight: 600; }
.reading-ui .chart-legend p { margin: 0 0 8px; }
.reading-ui .chart-legend-group:not([hidden]) ~ .chart-legend-group:not([hidden]) { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--product-line); }
.reading-ui .chart-legend .chart-legend-label { margin: 10px 0 6px; color: var(--product-tertiary); font-size: 11px; }
.reading-ui .chart-legend-elements { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; padding: 0; list-style: none; }
.reading-ui .chart-legend-elements li { display: inline-flex; align-items: center; gap: 6px; color: var(--product-text); }
.reading-ui .chart-legend-elements i { width: 10px; height: 10px; border-radius: 3px; }
.reading-ui .chart-legend-elements .element-wood i { background: #66c487; }
.reading-ui .chart-legend-elements .element-fire i { background: #ff6b6b; }
.reading-ui .chart-legend-elements .element-earth i { background: #c58a5a; }
.reading-ui .chart-legend-elements .element-metal i { background: #e9c46a; }
.reading-ui .chart-legend-elements .element-water i { background: #69a7ff; }
.reading-ui .chart-legend-abbr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin: 0 0 6px; }
.reading-ui .chart-legend-abbr div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.reading-ui .chart-legend-abbr dt { flex: none; width: 22px; color: var(--product-text); font: 600 11px/1.4 "SF Mono", ui-monospace, monospace; }
.reading-ui .chart-legend-abbr dd { margin: 0; color: var(--product-secondary); }
.reading-ui .chart-legend .chart-legend-evidence { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--product-line); }
.reading-ui .chart-legend-evidence i { flex: none; width: 12px; height: 12px; margin-top: 3px; border: 1.5px solid var(--evidence); border-radius: 3px; background: var(--evidence-soft); }
.reading-ui .return-report { min-height: 28px; padding: 0 9px; border: 0; border-radius: 7px; background: rgba(255,255,255,.07); color: var(--product-text); font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1; cursor: pointer; }
.reading-ui .return-report:hover { background: rgba(255,255,255,.12); color: #fff; }
.reading-ui .return-report[hidden] { display: none; }
.reading-ui .chart-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--product-secondary);
}
.reading-ui .chart-tabs button[data-tab="bazi"]::before,
.reading-ui .chart-tabs button[data-tab="d1"]::before,
.pair-chart-tabs button[data-pair-system="bazi"]::before,
.pair-chart-tabs button[data-pair-system="vedic"]::before {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: currentColor;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.reading-ui .chart-tabs button[data-tab="bazi"]::before,
.pair-chart-tabs button[data-pair-system="bazi"]::before,
.reading-ui .mobile-chart-symbol {
  content: "";
  background: currentColor;
  -webkit-mask: url("/static/taiji-mark.svg") center / contain no-repeat;
  mask: url("/static/taiji-mark.svg") center / contain no-repeat;
}
.reading-ui .chart-tabs button[data-tab="d1"]::before,
.pair-chart-tabs button[data-pair-system="vedic"]::before {
  content: "";
  background: currentColor;
  -webkit-mask: url("/static/om-mark.svg") center / 15px 15px no-repeat;
  mask: url("/static/om-mark.svg") center / 15px 15px no-repeat;
}
.reading-ui .chart-tabs button[data-tab="report"]::before {
  content: "✓";
  display: grid;
  width: 16px;
  height: 16px;
  margin-inline: 2px;
  place-items: center;
  border-radius: 50%;
  background: #8e8e93;
  color: #202022;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  transition: color .2s ease, background-color .2s ease;
}
.reading-ui .chart-tabs button[data-tab="report"][data-report-state="idle"]::before { opacity: .58; }
.reading-ui .chart-tabs button[data-tab="report"][data-report-state="running"]::before { opacity: 1; }
.reading-ui .chart-tabs button[data-tab="report"][data-report-state="complete"]::before { background: rgba(52,199,89,.16); color: #34c759; }
.reading-ui .chart-tabs button:hover { color: #fff; background: rgba(255,255,255,.05); }
.reading-ui .chart-tabs button.active { border: 0; background: #1c1c1e; color: #fff; box-shadow: none; }
.reading-ui .chart-tabs button.is-reading { color: #fff; background: var(--evidence-soft); animation: tool-tab-reading 1.1s ease-in-out infinite alternate; }
@keyframes tool-tab-reading { from { box-shadow: inset 0 0 0 1px var(--evidence-soft); } to { box-shadow: inset 0 0 0 1px var(--evidence-line), 0 0 18px var(--evidence-soft); } }
.reading-ui .chart-scroll { display: flex; flex-direction: column; overflow: hidden; padding: 24px 24px 32px; }
.reading-ui .chart-view.active { min-height: 0; overflow: auto; }
.reading-ui .chart-view.active:not([data-chart="bazi"]) { flex: 1; }
.reading-ui .chart-view[data-chart="report"].active { display: block; width: 100%; overflow-y: auto; overscroll-behavior: contain; }
/* D1: the chart and its dasha cards fit the pane together; the opened period timeline scrolls below them. */
.reading-ui .chart-view[data-chart-logical="d1"].active { display: flex; flex-direction: column; }
.reading-ui .vedic-d1 { display: contents; }
.reading-ui .vedic-d1-fit { display: flex; flex: 0 0 auto; flex-direction: column; width: 100%; max-width: 530px; max-height: 100%; min-height: 0; margin: 0 auto; }
.reading-ui .chart-view[data-chart-logical="d1"] .vedic-svg { display: block; flex: 0 1 auto; width: 100%; max-width: 100%; height: auto; min-height: 0; margin: 0 auto; }
.reading-ui .chart-view[data-chart="bazi"].active { display: flex; flex: 1; flex-direction: column; overflow: hidden; }
.reading-ui .chart-view[data-chart-logical="bazi"].active { display: flex; flex: 1; flex-direction: column; overflow: hidden; }
.reading-ui .bazi-svg { display: block; flex: 0 0 auto; margin: 0 auto; overflow: hidden; }
.reading-ui .bazi-svg .pillar { opacity: .9; }
.reading-ui .bazi-svg .meta { font-size: 11px; }
.reading-ui .fortune-tree { flex: 1; min-height: 0; margin-top: 20px; padding-right: 4px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--product-line); scrollbar-color: rgba(255,255,255,.16) transparent; }
.reading-ui .fortune-level { padding: 16px 0 4px; }
.reading-ui .fortune-level > header,
.reading-ui .fortune-years > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.reading-ui .fortune-level header strong,
.reading-ui .fortune-years header strong { color: var(--product-text); font-size: 12px; font-weight: 600; }
.reading-ui .fortune-level header span,
.reading-ui .fortune-years header span { color: var(--product-tertiary); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.reading-ui .fortune-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 2px 0 9px; }
.reading-ui .fortune-cell { position: relative; min-width: 0; min-height: 62px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 8px 4px 6px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--product-secondary); font-family: inherit; cursor: pointer; }
.reading-ui .fortune-cell b { color: var(--product-text); font-size: 15px; font-weight: 500; }
.reading-ui .fortune-cell .element-metal { color: #e9c46a; }
.reading-ui .fortune-cell .element-wood { color: #66c487; }
.reading-ui .fortune-cell .element-water { color: #69a7ff; }
.reading-ui .fortune-cell .element-fire { color: #ff6b6b; }
.reading-ui .fortune-cell .element-earth { color: #c58a5a; }
.reading-ui .fortune-cell small { color: var(--product-tertiary); font: 500 9px/1 "SF Mono", monospace; }
.reading-ui .fortune-cell em { position: absolute; top: 5px; right: 5px; color: var(--product-tertiary); font-size: 10px; font-style: normal; }
.reading-ui .fortune-cell.compact { min-height: 48px; cursor: default; }
.reading-ui .fortune-cell:hover { background: rgba(255,255,255,.045); }
.reading-ui .fortune-cell.active,
.reading-ui .fortune-cell.selected { border-color: #777; background: #252525; }
.reading-ui .fortune-cell .fortune-current { position: absolute; left: 5px; top: 5px; color: var(--product-text); font: 600 8px/1 "SF Mono", monospace; }
.reading-ui .fortune-cell.hl { border-color: var(--evidence); box-shadow: 0 0 0 2px var(--evidence-soft); }
.reading-ui .fortune-drawer { margin-top: 10px; padding: 16px 0 0; border-top: 1px solid var(--product-line); background: transparent; }
.reading-ui .fortune-years[hidden] { display: none; }
.reading-ui .fortune-calendar-level { padding-top: 16px; border-top: 1px solid var(--product-line); }
.reading-ui .fortune-calendar-level[hidden],
.reading-ui .fortune-calendar-status[hidden] { display: none; }
.reading-ui .fortune-years:not([hidden]),
.reading-ui .fortune-calendar-level:not([hidden]) { animation: fortune-reveal 320ms var(--product-motion) both; }
.reading-ui .fortune-calendar-level > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.reading-ui .fortune-calendar-level header strong { color: var(--product-text); font-size: 12px; font-weight: 600; }
.reading-ui .fortune-calendar-level header span,
.reading-ui .fortune-calendar-status { color: var(--product-tertiary); font-size: 11px; line-height: 1.5; }
.reading-ui .fortune-days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@keyframes fortune-reveal { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
.reading-ui .profile-switcher-dialog {
  width: min(680px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--product-line-strong);
  border-radius: 20px;
  background: #151517;
  color: var(--product-text);
  box-shadow: 0 28px 90px rgba(0,0,0,.7);
}
.reading-ui .profile-switcher-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(10px); }
.reading-ui .profile-switcher-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 22px 18px; }
.reading-ui .profile-switcher-dialog h2 { margin: 0; font-size: 22px; }
.reading-ui .profile-switcher-dialog header button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #242426; color: var(--product-secondary); font-size: 20px; cursor: pointer; }
.reading-ui .profile-switcher-tools { display: flex; gap: 10px; margin: 0 22px 14px; }
.reading-ui .profile-switcher-search { display: flex; flex: 1; min-width: 0; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--product-line-strong); border-radius: 12px; background: #0c0c0d; }
.reading-ui .profile-switcher-new { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 46px; padding: 0 15px; border: 1px solid var(--product-line-strong); border-radius: 12px; background: transparent; color: var(--product-text); font: inherit; font-size: 13px; cursor: pointer; }
.reading-ui .profile-switcher-new:hover { background: rgba(255,255,255,.06); }
.reading-ui .profile-switcher-new svg { width: 18px; height: 18px; }
.reading-ui .profile-switcher-search:focus-within { border-color: rgba(255,255,255,.52); }
.reading-ui .profile-switcher-search svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--product-tertiary); }
.reading-ui .profile-switcher-search input { width: 100%; min-height: 44px; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1; }
.reading-ui .profile-switcher-list { display: grid; gap: 2px; max-height: min(52svh, 460px); overflow-y: auto; padding: 0 12px; }
.reading-ui .profile-switcher-list > p { margin: 0; padding: 26px 12px; color: var(--product-tertiary); font-size: 12px; text-align: center; }
.reading-ui .profile-switcher-item { display: flex; width: 100%; min-width: 0; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 11px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.reading-ui .profile-switcher-item:hover { background: rgba(255,255,255,.06); }
.reading-ui .profile-switcher-item.current { background: rgba(255,255,255,.045); }
.reading-ui .profile-switcher-row { display: flex; align-items: center; min-width: 0; border-radius: 11px; }
.reading-ui .profile-switcher-row:hover, .reading-ui .profile-switcher-row.current { background: rgba(255,255,255,.045); }
.reading-ui .profile-switcher-row .profile-switcher-item { flex: 1; }
.reading-ui .profile-switcher-row .profile-switcher-item:hover, .reading-ui .profile-switcher-row .profile-switcher-item.current { background: transparent; }
.reading-ui .profile-switcher-actions { display: flex; flex: none; gap: 2px; padding-right: 6px; }
.reading-ui .profile-switcher-action { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--product-tertiary); cursor: pointer; }
.reading-ui .profile-switcher-action:hover, .reading-ui .profile-switcher-action:focus-visible { background: rgba(255,255,255,.08); color: #fff; }
.reading-ui .profile-switcher-action.is-danger { color: #e9737c; }
.reading-ui .profile-switcher-action.is-danger:hover, .reading-ui .profile-switcher-action.is-danger:focus-visible { background: rgba(233,115,124,.12); color: #ff9ca6; }
.reading-ui .profile-switcher-action svg { width: 17px; height: 17px; }
/* One line per person on wide screens: name and sex, birth time, birthplace, current. */
.reading-ui .profile-switcher-row .profile-switcher-item { display: grid; grid-template-columns: 32px minmax(0, 1.15fr) minmax(112px, .9fr) minmax(0, 1.1fr) 40px; gap: 4px 14px; padding: 12px; }
.reading-ui .profile-switcher-row .profile-switcher-item em { grid-column: 5; text-align: right; }
.reading-ui .profile-switcher-item .profile-name { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.reading-ui .profile-switcher-item .profile-name strong { overflow: hidden; color: var(--product-text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.reading-ui .profile-switcher-item .profile-name small { flex: none; color: var(--product-tertiary); font-size: 11px; }
.reading-ui .profile-switcher-item .profile-meta { display: contents; }
.reading-ui .profile-switcher-item :is(.profile-birth, .profile-place) { overflow: hidden; color: var(--product-secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.reading-ui .profile-switcher-item .profile-birth { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .reading-ui .profile-switcher-row .profile-switcher-item { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "glyph name badge" "glyph meta meta"; gap: 3px 10px; padding: 10px; }
  .reading-ui .profile-switcher-item .profile-glyph { grid-area: glyph; }
  .reading-ui .profile-switcher-item .profile-name { grid-area: name; }
  .reading-ui .profile-switcher-row .profile-switcher-item em { grid-area: badge; text-align: left; }
  .reading-ui .profile-switcher-item .profile-meta { display: block; grid-area: meta; overflow: hidden; color: var(--product-tertiary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .reading-ui .profile-switcher-item :is(.profile-birth, .profile-place) { color: inherit; font-size: inherit; }
  .reading-ui .profile-switcher-item .profile-place:not(:empty)::before { content: " · "; }
  .reading-ui .profile-switcher-tools { margin-inline: 16px; }
  .reading-ui .profile-switcher-dialog > header { padding-inline: 16px; }
  .reading-ui .profile-switcher-list { padding-inline: 6px; }
}
.reading-ui .profile-switcher-item em { flex: none; margin-left: auto; color: #8fd4a8; font-size: 9px; font-style: normal; white-space: nowrap; }
.reading-ui .profile-switcher-status { min-height: 17px; margin: 8px 22px; color: var(--product-tertiary); font-size: 10px; }
:is(.reading-ui, .account-ui) .profile-frame-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: min(92svh, 900px);
  padding: 0;
  border: 1px solid var(--product-line-strong);
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
  color: var(--product-text);
  box-shadow: 0 32px 100px rgba(0,0,0,.75);
}
:is(.reading-ui, .account-ui) .profile-frame-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(10px); }
:is(.reading-ui, .account-ui) .profile-frame-dialog > header { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 22px; border-bottom: 1px solid var(--product-line); }
:is(.reading-ui, .account-ui) .profile-frame-dialog h2 { margin: 0; font-size: 14px; font-weight: 600; }
:is(.reading-ui, .account-ui) .profile-frame-dialog h2:focus { outline: none; }
:is(.reading-ui, .account-ui) .profile-frame-dialog header button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--product-secondary); font-family: inherit; font-size: 24px; font-weight: 300; line-height: 1; cursor: pointer; }
/* The embedded form reports its height; this is only the first guess. */
:is(.reading-ui, .account-ui) .profile-frame-dialog iframe { display: block; width: 100%; height: 620px; max-height: calc(min(92svh, 900px) - 58px); border: 0; background: #0a0a0a; }
.reading-ui .pair-setup-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid var(--product-line-strong);
  border-radius: 20px;
  background: #141414;
  color: var(--product-text);
  box-shadow: 0 28px 90px rgba(0,0,0,.7);
}
.reading-ui .pair-setup-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(10px); }
.reading-ui .pair-setup-dialog form { display: grid; gap: 18px; padding: 24px; }
.reading-ui .pair-setup-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.reading-ui .pair-setup-dialog h2 { margin: 8px 0 0; font-size: 22px; }
.reading-ui .pair-setup-dialog h2:focus { outline: none; }
.reading-ui .pair-setup-dialog header button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #242424; color: #bbb; font-size: 20px; cursor: pointer; }
.reading-ui .pair-setup-dialog > form > p { margin: 0; color: var(--product-secondary); font-size: 12px; line-height: 1.65; }
.reading-ui .pair-setup-dialog label { display: grid; gap: 8px; color: var(--product-secondary); font-size: 11px; }
.reading-ui .pair-setup-dialog fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.reading-ui .pair-setup-dialog .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reading-ui .pair-profile-picker { border: 1px solid #383838; border-radius: 12px; background: #0c0c0c; }
.reading-ui .pair-profile-picker summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.reading-ui .pair-profile-picker summary::-webkit-details-marker { display: none; }
.reading-ui .pair-profile-picker summary > span:first-child { grid-column: 1 / -1; color: #aaa; font-size: 12px; }
.reading-ui .pair-profile-picker summary strong { font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
.reading-ui .pair-profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; font-size: 12px; }
.reading-ui .pair-profile-heading button { min-height: 44px; padding: 8px 12px; border: 1px solid #333; border-radius: 8px; background: #171717; color: #eee; cursor: pointer; }
.reading-ui .pair-profile-picker summary > span:last-child { color: #aaa; }
.reading-ui .pair-setup-dialog .pair-profile-options { display: grid; gap: 6px; max-height: 200px; overflow-y: auto; padding: 8px; border-top: 1px solid #303030; }
.reading-ui .pair-relationships > legend { margin-bottom: 6px; color: #f5f5f5; font-size: 16px; font-weight: 500; }
.reading-ui .pair-relationship-hint { margin: 0 0 16px; color: #aaa; font-size: 12px; line-height: 1.6; }
.reading-ui .pair-relationship-group + .pair-relationship-group { margin-top: 16px; }
.reading-ui .pair-relationship-group h3 { margin: 0 0 8px; color: #aaa; font-size: 12px; font-weight: 500; }
.reading-ui .pair-relationship-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.reading-ui .pair-setup-dialog .pair-choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.reading-ui .pair-choice input { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; opacity: 0; }
.reading-ui .pair-choice > span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 8px; border: 1px solid #363636; border-radius: 10px; background: #1d1d1d; color: #ccc; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; box-sizing: border-box; }
.reading-ui .pair-choice:hover > span { background: #292929; border-color: #666; }
.reading-ui .pair-choice.is-disabled { cursor: not-allowed; opacity: .38; }
.reading-ui .pair-choice.is-disabled:hover > span { background: #1d1d1d; border-color: #363636; }
.reading-ui .pair-choice input:checked + span { background: #eee; border-color: #eee; color: #111; }
.reading-ui .pair-choice input:focus-visible + span { outline: 2px solid #eee; outline-offset: 3px; }
.reading-ui .pair-profile-options .pair-choice > span { justify-content: flex-start; }
.reading-ui .pair-setup-dialog :is(summary, button):focus-visible { outline: 2px solid #eee; outline-offset: 3px; }
.reading-ui .pair-setup-status { min-height: 18px; color: #c7c7cc !important; }
.reading-ui .pair-profile-manage { width: max-content; color: var(--product-secondary); font-size: 11px; text-underline-offset: 3px; }
.reading-ui .pair-setup-dialog footer { display: flex; justify-content: flex-end; gap: 9px; }
.reading-ui .pair-setup-dialog footer button { min-height: 44px; padding: 0 18px; border: 1px solid var(--product-line-strong); border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.reading-ui .pair-setup-clear { background: transparent; color: var(--product-secondary); }
.reading-ui .pair-setup-confirm { border-color: #fff !important; background: #fff; color: #080808; }
.reading-ui .pair-setup-dialog footer button:disabled { opacity: .5; cursor: wait; }
@media (max-width: 540px) {
  .reading-ui .pair-setup-dialog form { padding: 20px 16px; gap: 16px; }
  .reading-ui .pair-relationship-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reading-ui .pair-setup-dialog footer { position: sticky; bottom: 0; padding: 12px 0; background: #141414; }
}
.reading-ui .chart-svg rect { fill: #101010; stroke: rgba(255,255,255,.25); }
.reading-ui .chart-title,
.reading-ui .stem,
.reading-ui .branch,
.reading-ui .rasi { fill: #f5f5f7; }
.reading-ui .pillar-label,
.reading-ui .section-label,
.reading-ui .ten-god,
.reading-ui .hidden,
.reading-ui .meta,
.reading-ui .tiny,
.reading-ui .house-number { fill: rgba(245,245,247,.56); }
.reading-ui .graha { fill: #ddd2bd; }
.reading-ui .lagna { fill: #f5f5f7; }
.reading-ui .chart-item.hl rect { fill: var(--evidence-soft); stroke: var(--evidence); }
.reading-ui .chart-item.hl text { fill: #fff; }
.reading-ui .rasi-constellation {
  opacity: 0;
  pointer-events: none;
  color: rgba(245,245,247,.88);
  transition: opacity 320ms var(--product-motion);
}
.reading-ui .rasi-constellation line { fill: none; stroke: currentColor; stroke-width: .78; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.reading-ui .rasi-constellation circle { fill: currentColor; }
.reading-ui .house > .graha,
.reading-ui .house > .lagna,
.reading-ui .house > .house-number { transition: opacity 220ms var(--product-motion); }
.reading-ui .house.reasoning-reveal > .graha,
.reading-ui .house.reasoning-reveal > .lagna,
.reading-ui .house.reasoning-reveal > .house-number { opacity: 0; }
.reading-ui .house.reasoning-reveal > .rasi-constellation {
  opacity: .84;
  animation: constellation-evidence-breathe 1.2s var(--product-motion) both;
}
.reading-ui .chart-item.reasoning-pulse text,
.reading-ui .chart-item.reasoning-pulse tspan,
.reading-ui .fortune-cell.reasoning-pulse b span {
  animation: bazi-evidence-breathe 1.2s var(--product-motion) both;
}
.reading-ui .fortune-cell.reasoning-pulse { background: rgba(255,255,255,.045); }
@keyframes bazi-evidence-breathe {
  0%, 100% { opacity: .76; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.65) drop-shadow(0 0 3px rgba(255,255,255,.28)); }
}
@keyframes constellation-evidence-breathe {
  0%, 100% { opacity: .46; filter: brightness(1); }
  50% { opacity: .92; filter: brightness(1.28) drop-shadow(0 0 2px rgba(255,255,255,.22)); }
}
.reading-ui .varga-pager { display: grid; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--product-line); }
.reading-ui .varga-pager[hidden] { display: none; }
:is(.reading-ui, .pair-ui) .dasha-cards { display: grid; flex: 0 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 6px 2% 0; }
:is(.reading-ui, .pair-ui) .dasha-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 4px; min-width: 0; padding: 8px 9px 9px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--product-text); font: inherit; text-align: left; cursor: pointer; transition: background .3s var(--product-motion), border-color .3s var(--product-motion); }
:is(.reading-ui, .pair-ui) .dasha-card:hover { background: rgba(255,255,255,.06); }
:is(.reading-ui, .pair-ui) .dasha-card:focus-visible { outline: 1px solid var(--product-text); outline-offset: 2px; }
:is(.reading-ui, .pair-ui) .dasha-card[aria-expanded="true"] { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.07); }
/* Compact: label over lord, no dates (those are the tooltip and the wheel's centre). Labels wrap rather than cut off. */
:is(.reading-ui, .pair-ui) .dasha-card-label { grid-column: 1 / -1; color: var(--product-secondary); font-size: 10.5px; line-height: 1.3; overflow-wrap: anywhere; text-wrap: balance; }
:is(.reading-ui, .pair-ui) .dasha-card strong { grid-column: 1; grid-row: 2; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
:is(.reading-ui, .pair-ui) .dasha-card-chevron { grid-column: 2; grid-row: 2; align-self: center; width: 12px; height: 12px; fill: none; stroke: var(--product-tertiary); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--product-motion); }
:is(.reading-ui, .pair-ui) .dasha-card[aria-expanded="true"] .dasha-card-chevron { transform: rotate(180deg); }
:is(.reading-ui, .pair-ui) .dasha-card:is(.hl, .evidence-active-target) { border-color: var(--evidence); background: var(--evidence-soft); box-shadow: 0 0 0 1px var(--evidence-soft); }
:is(.reading-ui, .pair-ui) .dasha-card.reasoning-pulse { background: rgba(255,255,255,.06); }
/* /pair shows the same D1 markup without the wheel script: the cards are a plain read-out there. */
.pair-ui .dasha-card { cursor: default; }
.pair-ui .dasha-card-chevron { visibility: hidden; }
.reading-ui .dasha-timeline { flex: 0 0 auto; width: 100%; max-width: 530px; margin: 12px auto 0; padding: 0 2%; border-top: 1px solid var(--product-line); }
.reading-ui .dasha-timeline[hidden] { display: none; }
.reading-ui .dasha-timeline:not([hidden]) { animation: fortune-reveal 320ms var(--product-motion) both; }
.reading-ui .dasha-wheel { display: grid; justify-items: center; gap: 4px; padding: 14px 0 4px; }
.reading-ui .dasha-wheel-title { max-width: 100%; overflow: hidden; color: var(--product-text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.reading-ui .dasha-wheel-ring { display: block; width: 100%; max-width: 340px; height: auto; overflow: visible; }
/* Monochrome in either theme: every shade is the text colour at some opacity. */
.reading-ui .dasha-seg { fill: var(--product-text); fill-opacity: .09; stroke: var(--product-bg); stroke-width: 2; cursor: pointer; outline: none; transition: fill-opacity .3s var(--product-motion); }
.reading-ui .dasha-seg.current { fill-opacity: .24; }
.reading-ui .dasha-seg:hover { fill-opacity: .18; }
.reading-ui .dasha-seg.current:hover { fill-opacity: .32; }
.reading-ui .dasha-seg.selected { fill-opacity: .92; }
.reading-ui .dasha-seg:focus-visible { stroke: var(--product-text); stroke-width: 1.5; }
.reading-ui .dasha-seg-label { fill: var(--product-secondary); font-size: 11px; pointer-events: none; }
.reading-ui .dasha-seg-label.selected { fill: var(--product-text); font-weight: 700; }
.reading-ui .dasha-wheel-now-halo { stroke: var(--product-bg); stroke-width: 4.5; stroke-linecap: round; pointer-events: none; }
.reading-ui .dasha-wheel-now { stroke: var(--product-text); stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.reading-ui :is(.dasha-wheel-name, .dasha-wheel-date, .dasha-wheel-tense) { text-anchor: middle; pointer-events: none; }
.reading-ui .dasha-wheel-name { fill: var(--product-text); font-size: 19px; font-weight: 700; }
.reading-ui .dasha-wheel-date { fill: var(--product-secondary); font: 500 11px "SF Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.reading-ui .dasha-wheel-tense { fill: var(--product-tertiary); font-size: 10.5px; }
/* Outlined pills, unlike the filled D1/D9 pager steps below, so the two kinds of arrows read apart. */
.reading-ui .dasha-wheel-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.reading-ui :is(.dasha-step, .dasha-now) { display: inline-flex; align-items: center; gap: 2px; min-height: 34px; padding: 0 12px; border: 1px solid var(--product-line-strong); border-radius: 999px; background: transparent; color: var(--product-text); font: inherit; font-size: 12px; cursor: pointer; transition: background .3s var(--product-motion), opacity .3s var(--product-motion); }
.reading-ui .dasha-step { padding: 0 12px 0 8px; }
.reading-ui .dasha-step[data-dasha-step="1"] { padding: 0 8px 0 12px; }
.reading-ui :is(.dasha-step, .dasha-now):hover:not(:disabled) { background: rgba(255,255,255,.06); }
.reading-ui :is(.dasha-step, .dasha-now):disabled { opacity: .3; cursor: default; }
.reading-ui .dasha-step svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
  .reading-ui .thinking-mark-light { display: none; }
  .reading-ui .thinking-mark-original { opacity: 1; }
  .reading-ui .thinking-label { animation: none; background: none; -webkit-text-fill-color: currentColor; }
  .reading-ui .rasi-constellation,
  .reading-ui .house > .graha,
  .reading-ui .house > .lagna,
  .reading-ui .house > .house-number { transition: none; }
  .reading-ui .house.reasoning-reveal > .rasi-constellation,
  .reading-ui .chart-item.reasoning-pulse text,
  .reading-ui .chart-item.reasoning-pulse tspan,
  .reading-ui .fortune-cell.reasoning-pulse b span { animation: none; filter: brightness(1.35); }
}
.reading-ui .varga-pager-head { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 8px; }
.reading-ui .varga-step { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: rgba(118,118,128,.18); color: var(--product-text); cursor: pointer; transition: background .3s var(--product-motion), opacity .3s var(--product-motion); }
.reading-ui .varga-step:hover:not(:disabled) { background: rgba(118,118,128,.34); }
.reading-ui .varga-step:disabled { opacity: .22; cursor: default; }
.reading-ui .varga-step svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reading-ui .varga-current { display: flex; min-width: 0; align-items: baseline; justify-content: center; gap: 8px; }
.reading-ui .varga-current strong { color: var(--product-text); font: 600 14px/1 "SF Mono", monospace; letter-spacing: .04em; }
.reading-ui .varga-current small { min-width: 0; overflow: hidden; color: var(--product-secondary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.reading-ui .varga-dots { display: flex; max-width: 100%; justify-content: safe center; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; }
.reading-ui .varga-dots::-webkit-scrollbar { display: none; }
.reading-ui .varga-dot { position: relative; flex: 0 0 24px; width: 24px; min-width: 24px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; scroll-snap-align: center; }
.reading-ui .varga-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 999px; background: rgba(245,245,247,.28); transform: translate(-50%,-50%); transition: width .3s var(--product-motion), background .3s var(--product-motion); }
.reading-ui .varga-dot:hover::before { background: rgba(245,245,247,.58); }
.reading-ui .varga-dot.active::before { width: 17px; background: #f5f5f7; }
.reading-ui .varga-dot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reading-ui .varga-dot:focus-visible { outline: 1px solid #fff; outline-offset: -4px; border-radius: 8px; }
/* Pair workspace */
.pair-ui { min-height: 100svh; margin: 0; background: #000; }
.pair-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 72px; }
.pair-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 64px; }
.pair-topbar nav { display: flex; align-items: center; gap: 18px; }
.pair-brand { display: inline-flex; align-items: center; color: var(--product-text); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.pair-back { color: var(--product-secondary); font-size: 12px; text-decoration: none; }
.pair-back:hover { color: #fff; }
.pair-intro { max-width: 720px; margin-bottom: 32px; }
.pair-intro h1 { margin: 0 0 14px; color: var(--product-text); font-size: clamp(34px, 5vw, 58px); line-height: 1.08; font-weight: 600; letter-spacing: -.045em; }
.pair-intro p { max-width: 620px; margin: 0; color: var(--product-secondary); font-size: 14px; line-height: 1.8; }
.pair-selectors { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 14px; }
.pair-person { padding: 18px; border: 1px solid var(--product-line); background: var(--product-base); }
.pair-person label,
.pair-topic label { display: grid; gap: 9px; color: var(--product-secondary); font-size: 11px; }
.pair-person select,
.pair-topic select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--product-line-strong); border-radius: 10px; background: #111; color: var(--product-text); font: inherit; font-size: 12px; }
.pair-link-mark { padding-bottom: 15px; color: var(--product-tertiary); font: 400 18px/1 "SF Mono", monospace; }
.pair-actions { display: flex; justify-content: flex-end; align-items: end; gap: 12px; margin: 16px 0 46px; }
.pair-topic { width: 150px; }
.pair-run { min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--product-text); color: var(--theme-button-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pair-run:disabled { opacity: .45; cursor: wait; }
.pair-empty,
.pair-status { padding: 22px; border: 1px solid var(--product-line); color: var(--product-secondary); font-size: 13px; line-height: 1.7; }
.pair-result[hidden] { display: none; }
.pair-result-head { max-width: 760px; margin-bottom: 30px; }
.pair-result-head h2 { margin: 0 0 12px; font-size: 28px; font-weight: 600; letter-spacing: -.025em; }
.pair-headline { margin: 0 0 15px; color: var(--product-text); font-size: 18px; line-height: 1.7; }
.pair-verdict { color: var(--product-secondary); font-size: 12px; font-weight: 500; line-height: 1.5; }
.pair-layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 28px; background: var(--product-line); border: 1px solid var(--product-line); }
.pair-layer { min-height: 138px; padding: 18px; background: var(--product-base); }
.pair-layer strong { display: block; margin-bottom: 10px; color: var(--product-text); font-size: 11px; }
.pair-layer p { margin: 0; color: var(--product-secondary); font-size: 12px; line-height: 1.75; }
.pair-conditions { margin: 0 0 36px; padding: 20px 0; border-block: 1px solid var(--product-line); }
.pair-conditions strong { color: var(--product-text); font-size: 12px; }
.pair-conditions p { margin: 9px 0 0; color: var(--product-secondary); font-size: 12px; line-height: 1.75; }
.pair-reading-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 36px; align-items: start; }
.pair-evidence-list { display: grid; gap: 0; }
.pair-evidence-list > h3,
.pair-charts > h3 { margin: 0 0 16px; font-size: 15px; font-weight: 600; }
.pair-evidence-item { padding: 18px 0; border-top: 1px solid var(--product-line); }
.pair-evidence-meta { display: flex; justify-content: space-between; gap: 18px; color: var(--product-tertiary); font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.pair-evidence-item p { margin: 10px 0 0; color: rgba(245,245,247,.76); font-size: 13px; line-height: 1.8; }
.pair-evidence-actions { display: flex; gap: 7px; margin-top: 12px; }
.pair-evidence-actions button { min-height: 30px; padding: 0 10px; border: 1px solid var(--product-line); border-radius: 999px; background: transparent; color: var(--product-secondary); font: inherit; font-size: 10px; cursor: pointer; }
.pair-evidence-actions button:hover { border-color: var(--evidence-line); color: var(--evidence); background: var(--evidence-soft); }
.pair-charts { position: sticky; top: 20px; padding: 16px; border: 1px solid var(--product-line); background: var(--product-base); }
.pair-chart-toolbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pair-chart-tabs { display: flex; gap: 5px; }
.pair-chart-tabs button { display: inline-flex; min-height: 30px; align-items: center; gap: 6px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--product-secondary); font: inherit; font-size: 10px; cursor: pointer; }
.pair-chart-tabs button.active { background: #1c1c1e; color: #fff; }
.pair-chart-subject { color: var(--product-secondary); font: 500 10px/30px "SF Mono", monospace; }
.pair-chart-view { display: none; max-height: 56vh; overflow: auto; }
.pair-chart-view.active { display: block; }
.pair-chart-view .chart-svg { width: 100%; height: auto; }
.pair-chart-view .chart-svg rect { fill: #101010; stroke: rgba(255,255,255,.25); }
.pair-chart-view .chart-item.hl rect { fill: var(--evidence-soft); stroke: var(--evidence); stroke-width: 2; }
.pair-chart-view .chart-item.hl text { fill: #fff; font-weight: 700; }
.pair-error { color: #ff9f9f; }

@media (max-width: 1080px) {
  .reading-ui { min-width: 0; }
  .reading-ui .workspace { grid-template-columns: 210px minmax(500px, 1fr); }
  .reading-ui .workspace.sidebar-collapsed { grid-template-columns: 64px minmax(500px, 1fr); }
  .reading-ui .chart-panel { display: none; }
  .reading-ui.chart-overlay-open .chart-panel { display: flex; position: fixed; z-index: 30; inset: 0 0 0 auto; width: min(520px, 100vw); height: 100dvh; border-left: 1px solid var(--product-line); box-shadow: -24px 0 70px rgba(0,0,0,.68); }
  .reading-ui.chart-overlay-open .chart-panel-dismiss { display: grid; }
  .pair-reading-grid { grid-template-columns: 1fr; }
  .pair-charts { position: static; }
}

@media (max-width: 760px) {
  .reading-ui .workspace { display: block; height: 100dvh; }
  .reading-ui .sidebar { display: none; }
  .reading-ui .analysis-panel { height: 100dvh; min-height: 0; }
  .reading-ui .trace { padding: 28px 18px; }
  .reading-ui .evidence-systems { grid-template-columns: 1fr; }
  .reading-ui .composer { padding: 8px 12px 12px; }
  .reading-ui .composer form { min-height: 52px; }
  .reading-ui .engine-panel { position: fixed; right: 12px; bottom: 78px; width: min(300px, calc(100vw - 24px)); }
  :is(.reading-ui, .account-ui) .profile-frame-dialog { width: min(640px, calc(100vw - 16px)); max-height: 94svh; border-radius: 14px; }
  :is(.reading-ui, .account-ui) .profile-frame-dialog iframe { max-height: calc(94svh - 58px); }
  .pair-shell { width: min(100% - 28px, 1180px); padding-top: 20px; }
  .pair-topbar { margin-bottom: 48px; }
  .pair-intro h1 { font-size: 36px; }
  .pair-selectors { grid-template-columns: 1fr; }
  .pair-link-mark { display: none; }
  .pair-actions { justify-content: stretch; }
  .pair-topic { flex: 1; width: auto; }
  .pair-run { flex: 0 0 auto; }
  .pair-layers { grid-template-columns: 1fr; }
  .pair-layer { min-height: 0; }
  .pair-charts { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .reading-ui *, .reading-ui *::before, .reading-ui *::after,
  .pair-ui *, .pair-ui *::before, .pair-ui *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .reading-ui .composer form::before, .reading-ui .pending-block::before { display: none; }
}
.reasoning-timeline {
  max-width: 880px;
  margin: 30px auto 34px;
  padding: 0 0 0 28px;
  border-left: 1px dashed rgba(255, 255, 255, 0.16);
}
.reasoning-timeline-kicker {
  margin: 0 0 14px;
  font: 500 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.38);
}

.reasoning-step {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 0 18px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reasoning-step-marker {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #70d89b;
  background: rgba(112, 216, 155, 0.08);
  box-shadow: 0 0 0 7px #000;
}

.reasoning-step-copy {
  display: grid;
  gap: 6px;
}

.reasoning-step-copy strong {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}

.reasoning-step-copy small {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
}

.reasoning-follow {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 88px;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  background: rgba(28,28,30,.94);
  color: rgba(255,255,255,.76);
  box-shadow: 0 12px 34px rgba(0,0,0,.5);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.reasoning-follow[hidden] { display: none; }
.reasoning-follow:hover { color: #fff; border-color: rgba(255,255,255,.34); }
.reasoning-follow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.reasoning-step:hover,
.reasoning-step.is-active {
  color: #fff;
}

.reasoning-step.is-active .reasoning-step-copy small {
  color: rgba(255, 255, 255, 0.64);
}

.reasoning-step.is-running .reasoning-step-marker { color: var(--evidence); background: var(--evidence-soft); animation: reasoning-wait 1.2s ease-in-out infinite alternate; }
.reasoning-step.is-failed .reasoning-step-marker { color: #ffb36b; background: rgba(255,179,107,.1); }
@keyframes reasoning-wait { from { opacity: .35; } to { opacity: 1; } }
.open-analysis-result { display: block; min-height: 40px; margin: 16px auto 24px; padding: 10px 18px; border: 1px solid #fff; border-radius: 999px; background: #fff; color: #111; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; cursor: pointer; }
.open-analysis-result:hover { border-color: #ededed; background: #ededed; color: #111; }

.final-report-heading {
  max-width: 880px;
  margin: 58px auto 22px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.final-report-heading span {
  font: 500 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.38);
}

.final-report-heading h2 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.25;
}

.evidence-trace {
  opacity: 1 !important;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.32));
}

[data-evidence-ref].evidence-trace {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.chat-v2-chunk {
  max-width: 880px;
  margin: 0 auto 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.chat-v2-chunk-label {
  margin-bottom: 10px;
  color: var(--product-secondary);
  font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.chat-v2-chunk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.chat-v2-chunk-head .chat-v2-chunk-label { margin-bottom: 0; }

.chat-v2-chunk-body {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.chat-v2-evidence-status,
.chat-v2-validation {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

.chat-v2-evidence-status { display: block; margin-top: 12px; }
.chat-v2-validation { max-width: 880px; margin: 26px auto; }

/* Chat V2's durable deliverable becomes the primary reading surface. */
.reading-ui .evidence-report { width: min(100%, 880px); margin: 0 auto 44px; }
.reading-ui .report-cover { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 18px 0 8px; }
.reading-ui .report-cover-meta { display: flex; gap: 9px; margin-top: 17px; color: var(--product-tertiary); font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.reading-ui .report-cover-meta span + span::before { content: "·"; margin-right: 9px; }
.reading-ui .report-question { grid-column: 1; grid-row: 1; min-width: 0; max-width: 700px; margin: 0; overflow-wrap: anywhere; }
.reading-ui .report-question span { color: var(--product-tertiary); font-size: 10px; }
.reading-ui .report-question p { margin: 7px 0 0; color: rgba(245,245,247,.86); font-size: 15px; line-height: 1.65; }
/* 复制 · 分享 · 导出PDF under the report, opposite the answer feedback; monochrome like the settings page. */
.reading-ui .report-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.reading-ui .report-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.reading-ui .report-action-status:empty { display: none; }
.reading-ui .report-action { min-height: 36px; padding: 0 14px; border: 1px solid var(--product-line-strong); border-radius: 10px; background: transparent; color: var(--product-text); font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; }
.reading-ui .report-action:hover { background: var(--product-hover); }
.reading-ui .report-action.is-primary { border-color: transparent; background: var(--product-text); color: var(--theme-button-text); }
.reading-ui .report-action.is-primary:hover { opacity: .88; }
.reading-ui .report-action:disabled { cursor: progress; opacity: .6; }
.reading-ui .report-foot .answer-feedback { margin: 0; }
.reading-ui .report-actions button:focus-visible,
.reading-ui .report-appendix > summary:focus-visible { outline: 2px solid #eee; outline-offset: 3px; }
.reading-ui .report-action-status { position: absolute; z-index: 1; top: calc(100% + 6px); right: 0; width: max-content; max-width: min(260px, 60vw); padding: 7px 10px; border: 1px solid var(--product-line); border-radius: 8px; background: var(--product-elevated); color: var(--product-secondary); font-size: 11px; line-height: 1.5; pointer-events: none; }
.reading-ui .report-scope-details > summary { padding: 14px 0; color: var(--product-secondary); font-size: 11px; cursor: pointer; }
.reading-ui .report-utility { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 22px 0 8px; padding: 0; }
.reading-ui .report-utility .report-cover-meta { margin: 0; }
.reading-ui .report-scope-details { margin: 8px 0 28px; }
.reading-ui .report-scope { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0 0 28px; }
.reading-ui .report-scope dt,
.reading-ui .report-scope dd { min-width: 0; margin: 0; }
.reading-ui .report-scope dt { color: var(--product-tertiary); font-size: 9px; }
.reading-ui .report-scope dd { color: var(--product-secondary); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.reading-ui .report-body { padding: 0; }
.reading-ui .report-ai-note { margin: 28px 0 0; color: var(--product-tertiary); font-size: 11px; line-height: 1.6; }
.reading-ui .report-group { margin: 42px 0 52px; }
.reading-ui .report-group h2 { margin: 0 0 20px; color: #f5f5f7; font-size: 22px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.reading-ui .report-passage + .report-passage { margin-top: 26px; }
.reading-ui .report-group-text { color: rgba(245,245,247,.9); font-size: 17px; font-weight: 400; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.reading-ui .evidence-claim { position: relative; margin-inline: -14px; padding: 12px 14px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease; }
.reading-ui .evidence-claim:hover { background: rgba(255,255,255,.025); }
.reading-ui .evidence-claim:focus-visible { outline: 1px solid var(--evidence); outline-offset: 3px; }
.reading-ui .evidence-claim.is-active { border-left-color: var(--evidence); background: var(--evidence-soft); }
.reading-ui .chat-v2-chunk.evidence-claim { margin-inline: auto; border-left: 1px solid rgba(255,255,255,.1); border-radius: 16px; }
.reading-ui .evidence-claim-summary { display: block; margin-top: 10px; color: var(--evidence); font-size: 10px; font-weight: 500; letter-spacing: .02em; }
.reading-ui .evidence-detail { position: fixed; z-index: 45; right: 18px; bottom: 18px; width: min(402px, calc(100vw - 36px)); max-height: min(56dvh, 560px); padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--evidence-line); border-radius: 12px; background: #151515; color: var(--product-secondary); box-shadow: 0 16px 44px rgba(0,0,0,.46); animation: evidence-detail-reveal 180ms ease both; }
.reading-ui .evidence-detail > header { display: flex; align-items: center; gap: 9px; padding-bottom: 13px; border-bottom: 1px solid var(--product-line); }
.reading-ui .evidence-detail > header strong { color: var(--product-text); font-size: 13px; }
.reading-ui .evidence-mode { padding: 3px 7px; border: 1px solid var(--product-line); border-radius: 999px; color: var(--product-secondary); font-size: 9px; }
.reading-ui .evidence-detail-close { flex: 0 0 44px; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--product-secondary); font-size: 20px; line-height: 1; cursor: pointer; }
.reading-ui .evidence-detail-close:hover { background: rgba(255,255,255,.055); color: var(--product-text); }
.reading-ui .evidence-detail-close:focus-visible { outline: 1px solid var(--evidence); outline-offset: 3px; }
.reading-ui .evidence-detail-group { margin-top: 16px; }
.reading-ui .evidence-detail-group h3,
.reading-ui .evidence-time h3 { margin: 0 0 8px; color: var(--evidence); font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.reading-ui .evidence-detail-group ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.reading-ui .evidence-detail-group li { display: grid; gap: 3px; color: rgba(245,245,247,.72); font-size: 12px; line-height: 1.65; }
.reading-ui .evidence-detail-group li small { color: var(--product-tertiary); font-size: 9px; }
.reading-ui .evidence-fact-title { color: var(--product-text); font-size: 12px; font-weight: 600; }
.reading-ui .evidence-time { margin-top: 18px; }
.reading-ui .evidence-time p { margin: 0 0 8px; color: var(--product-text); font: 500 11px/1.5 "SF Mono", ui-monospace, monospace; }
.reading-ui .evidence-time-strip { display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: thin; }
.reading-ui .evidence-time-strip span { position: relative; flex: 1 0 54px; padding: 10px 6px 4px; border-top: 1px solid var(--evidence-line); color: var(--product-secondary); font: 500 9px/1 "SF Mono", ui-monospace, monospace; text-align: center; }
.reading-ui .evidence-time-strip span::before { content: ""; position: absolute; top: -3px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--evidence); }
.reading-ui .evidence-time-row { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 10px; margin-top: 9px; color: var(--product-secondary); font: 500 9px/1.5 "SF Mono", ui-monospace, monospace; }
.reading-ui .evidence-time-row strong { color: var(--product-text); font-weight: 600; }
.reading-ui .evidence-time-row span { min-width: 0; overflow-wrap: anywhere; }
.reading-ui .evidence-active-target.chart-item rect { fill: var(--evidence-soft); stroke: var(--evidence); stroke-width: 2; transition: fill 180ms ease, stroke 180ms ease; }
.reading-ui .evidence-active-target.chart-item > text,
.reading-ui .evidence-active-target.chart-item > text tspan { fill: var(--evidence); font-weight: 700; }
.reading-ui .fortune-cell.evidence-active-target { border-color: var(--evidence); background: var(--evidence-soft); box-shadow: 0 0 0 1px var(--evidence-soft); }
.reading-ui .house.evidence-active-target > rect { stroke: var(--evidence); stroke-width: 2; }
@keyframes evidence-detail-reveal { from { transform: translateY(6px); } to { transform: translateY(0); } }  /* opaque from the first frame: no chart text showing through */
.reading-ui .report-evidence-count { display: block; margin-top: 14px; color: var(--product-tertiary); font-size: 10px; }
.reading-ui .report-appendix { margin-top: 28px; }
.reading-ui .report-appendix > summary { padding: 18px 0; color: var(--product-secondary); font-size: 12px; cursor: pointer; }
.reading-ui .report-evidence-list { padding-bottom: 14px; }
.reading-ui .report-evidence-item { padding: 12px 0; }
.reading-ui .report-evidence-id { color: var(--evidence); font-size: 9px; overflow-wrap: anywhere; }
.reading-ui .report-evidence-statement { margin: 9px 0 6px; color: rgba(245,245,247,.74); font-size: 12px; line-height: 1.7; }
.reading-ui .report-evidence-meta { color: var(--product-tertiary); font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.reading-ui .report-validation { margin-top: 22px; color: var(--product-tertiary); font: 500 9px/1.6 "SF Mono", ui-monospace, monospace; overflow-wrap: anywhere; }
.reading-ui .report-pane-empty { display: grid; min-height: 60vh; place-content: center; gap: 9px; padding: 30px; color: var(--product-tertiary); text-align: center; }
.reading-ui .report-pane-empty strong { color: var(--product-secondary); font-size: 13px; font-weight: 500; }
.reading-ui .report-pane-empty p { max-width: 270px; margin: 0; font-size: 10px; line-height: 1.7; }
.reading-ui .report-view .evidence-report { width: min(100%, 880px); margin: 0 auto 36px; }
.reading-ui .report-view .report-cover { padding-top: 12px; }
.reading-ui .report-view .report-cover-meta { flex-wrap: wrap; }
.reading-ui .report-view .report-question { margin-top: 0; }
.reading-ui .report-view .report-question p { font-size: 14px; }
.reading-ui .report-view .report-scope { grid-template-columns: 96px 1fr; }
.reading-ui .report-view .report-group { margin: 34px 0 42px; }
.reading-ui .report-view .report-group h2 { font-size: 20px; }
.reading-ui .report-view .report-group-text { font-size: 16px; line-height: 1.85; }

@media (max-width: 760px) {
  .reading-ui .report-cover { padding-top: 16px; }
  .reading-ui .report-scope { grid-template-columns: 1fr; }
  .reading-ui .evidence-claim { margin-inline: -8px; padding-inline: 8px; }
  .reading-ui .evidence-detail { inset: auto 8px calc(8px + env(safe-area-inset-bottom)); width: auto; max-height: min(46dvh, 420px); padding: 16px; border-radius: 14px; }
}

@media print {
  @page { size: A4; margin: 18mm; }
  body.reading-ui { min-width: 0 !important; background: #fff !important; color: #111 !important; }
  .reading-ui .workspace { display: block !important; height: auto !important; overflow: visible !important; background: #fff !important; }
  .reading-ui :is(.sidebar, .analysis-panel, .chart-head, .report-foot, .evidence-button, .evidence-detail, .reasoning-timeline, .user-question, .varga-pager) { display: none !important; }
  .reading-ui .chart-panel { display: block !important; position: static !important; width: auto !important; height: auto !important; overflow: visible !important; border: 0 !important; background: #fff !important; box-shadow: none !important; }
  .reading-ui .chart-scroll { display: block !important; height: auto !important; overflow: visible !important; padding: 0 !important; }
  .reading-ui .chart-view { display: none !important; }
  .reading-ui .chart-view[data-chart="report"] { display: block !important; height: auto !important; overflow: visible !important; }
  .reading-ui .report-pane-empty { display: none !important; }
  .reading-ui .evidence-report { width: 100%; max-width: none; margin: 0; color: #111; }
  .reading-ui .evidence-report :where(h1, h2, p, span, small, code, dt, dd) { color: #111 !important; }
  .reading-ui .report-cover { padding-top: 0; }
  .reading-ui .report-group,
  .reading-ui .report-evidence-item { break-inside: avoid; }
  .reading-ui .report-appendix:not([open]) > :not(summary) { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
  .reasoning-step,
  .reasoning-step-marker,
  .evidence-trace,
  .reading-ui .evidence-claim,
  .reading-ui .evidence-active-target,
  .reading-ui .evidence-detail {
    animation: none !important;
    transition: none !important;
  }
}

/* Sidebar motion changes layout, never scales text or the chart SVG. */
@media (min-width: 1081px) {
  .reading-ui .workspace { transition: grid-template-columns 240ms ease; }
  .reading-ui .sidebar { min-width: 0; overflow-x: clip; }
  .reading-ui .sidebar-brand-row { justify-content: flex-start; }
  .reading-ui .sidebar .brand { flex: 0 0 auto; width: 152px; overflow: hidden; white-space: nowrap; transition: width 240ms ease, opacity 140ms ease, visibility 140ms; }
  .reading-ui .sidebar-toggle,
  .reading-ui .workspace.sidebar-collapsed .sidebar-toggle { flex: 0 0 44px; width: 44px; height: 44px; }
  .reading-ui .sidebar-toggle :is(.sidebar-collapse-icon, .sidebar-collapsed-logo) { display: block; grid-area: 1 / 1; transition: opacity 140ms ease, visibility 140ms; }
  .reading-ui .sidebar-toggle .sidebar-collapsed-logo { opacity: 0; }
  .reading-ui .workspace.sidebar-collapsed .sidebar-toggle .sidebar-collapse-icon { display: block; opacity: 0; }
  .reading-ui .workspace.sidebar-collapsed .sidebar-toggle .sidebar-collapsed-logo { opacity: 1; }
  .reading-ui .workspace.sidebar-collapsed .sidebar-brand-row { justify-content: flex-start; gap: 0; }
  .reading-ui .workspace.sidebar-collapsed .brand { display: inline-flex; width: 0; padding: 0; opacity: 0; visibility: hidden; }
  .reading-ui .sidebar-profile-slot { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 240ms ease, opacity 140ms ease, visibility 140ms; }
  .reading-ui .sidebar-profile { min-height: 0; width: 206px; overflow: hidden; }
  .reading-ui .workspace.sidebar-collapsed .sidebar-profile-slot { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
  .reading-ui .workspace.sidebar-collapsed .sidebar-profile { display: grid; }
  .reading-ui .sidebar .history { width: 206px; transition: opacity 140ms ease, visibility 140ms; }
  .reading-ui .workspace.sidebar-collapsed .history { display: grid; opacity: 0; visibility: hidden; }
  .reading-ui .sidebar .new-reading { min-height: 44px; white-space: nowrap; overflow: hidden; }
  .reading-ui .sidebar .new-reading span { transition: opacity 140ms ease, visibility 140ms; }
  .reading-ui .workspace.sidebar-collapsed .new-reading { justify-content: flex-start; padding-left: 10px; }
  .reading-ui .workspace.sidebar-collapsed .new-reading span { display: inline; opacity: 0; visibility: hidden; }
}
.reading-ui :is(.sidebar-toggle, .mobile-icon-button):focus-visible { outline: 2px solid var(--evidence); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .reading-ui :is(.workspace, .sidebar .brand, .sidebar-profile-slot, .sidebar .history, .sidebar .new-reading span, .sidebar-toggle *) { transition: none !important; }
}

/* Account sign-in and linked identities use the workspace's monochrome palette. */
.account-auth button { background: #f0f0f2; color: #111; }
.account-auth .account-copy { font-size: 14px; }
.account-auth label, .account-methods label { font-size: 13px; }
.account-ui .account-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; line-height: 1.7; }
.account-ui .account-consent input { flex: 0 0 16px; width: 16px; height: 16px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: #ededed; }
.account-consent a, .account-form-note a { color: var(--product-text); text-underline-offset: 3px; }
.account-or { margin: 27px 0; text-align: center; color: var(--product-tertiary); font-size: 12px; }
.account-form-note { margin: -4px 0 0; color: var(--product-secondary); font-size: 12px; line-height: 1.7; }
.referral-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.referral-share > div { display: grid; gap: 2px; margin-right: auto; }
.referral-share small { color: var(--product-tertiary); font-size: 11px; }
.referral-code { font: 600 22px/1.2 "SF Mono", ui-monospace, monospace; letter-spacing: .14em; color: var(--product-text); }
.referral-link { overflow-wrap: anywhere; }
.account-ui .account-code-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.account-ui .account-code-form + .account-code-form { margin-top: 18px; }
.account-ui .account-code-form button { width: auto; min-width: 104px; min-height: 46px; margin-top: 0; padding: 0 20px; }
@media (max-width: 560px) { .account-ui .account-code-form { grid-template-columns: 1fr; } .account-ui .account-code-form button { width: 100%; } }
.auth-referral { display: grid; gap: 6px; }
.admin-code-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.admin-code-list code { padding: 6px 10px; border: 1px solid var(--product-line); border-radius: 8px; font-size: 13px; letter-spacing: .06em; }
.admin-lookup-result { margin-top: 28px; column-gap: 28px; }.admin-lookup-result strong { font-size: 15px; }.admin-lookup-result + .admin-table-wrap { margin-top: 18px; }
.account-legacy { margin-top: 28px; color: var(--product-secondary); font-size: 12px; }
.account-legacy summary { width: fit-content; cursor: pointer; line-height: 1.7; }
.account-legacy[open] summary { margin-bottom: 18px; }
.account-ui .account-code { font-size: 22px; letter-spacing: .24em; font-variant-numeric: tabular-nums; }
.account-email-hint { color: var(--product-text); font-weight: 500; overflow-wrap: anywhere; }
.account-resend { margin-top: 24px; }
.account-wide h1 { overflow-wrap: anywhere; }
.account-methods { margin: 28px 0; padding-bottom: 28px; border-bottom: 1px solid var(--product-line); }
.account-methods h2 { margin: 0; font-size: 18px; font-weight: 600; }
.account-methods .account-copy { margin: 10px 0 18px; }
.account-identities { display: grid; gap: 14px; margin: 20px 0; padding: 0; list-style: none; }
.account-identities li { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; font-size: 12px; }
.account-identities li > span:nth-child(2) { overflow-wrap: anywhere; color: var(--product-secondary); }
.account-identities small { color: var(--product-tertiary); font-size: 11px; }
@media (max-width: 380px) {
  .account-identities li { grid-template-columns: 54px minmax(0, 1fr); }
  .account-identities small { grid-column: 2; }
}
/* Promotional beta points: deliberately quieter than the chart and answer. */
.credit-badge { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 13px; border: 1px solid #ffffff1f; border-radius: 999px; color: #dedee2; background: #ffffff05; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.credit-badge:hover { border-color: #ffffff4d; background: #ffffff0b; }
.credit-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.credit-badge:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }
.credit-badge[aria-expanded="true"] { border-color: #ffffff4d; background: #ffffff0b; }
/* With buying open the pill reads "✦ 500 | 充值", one target that opens the points card. */
.credit-badge.has-cta { padding-right: 14px; }
.credit-badge-sep { width: 1px; height: 14px; margin: 0 3px; background: currentColor; opacity: .22; }
.credit-badge-cta { color: #f5f5f7; font-weight: 600; }
/* Members' own colour: a starlight violet, on the badge's star, edge and word. */
.credit-badge.is-member { border-color: #b9a6ff59; background: linear-gradient(90deg, #a68bff12, #7fa7ff12); }
.credit-badge.is-member:hover, .credit-badge.is-member[aria-expanded="true"] { border-color: #b9a6ff8c; background: linear-gradient(90deg, #a68bff1f, #7fa7ff1f); }
.credit-badge.is-member svg { stroke: #c4b5fd; }
.credit-badge-cta.is-member { background: linear-gradient(90deg, #d8ccff, #9fbcff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.account-report-form { display: grid; gap: 12px; margin-top: 14px; }
.account-report-kinds { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.account-report-form .account-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.account-ui .account-report-form input[type="checkbox"] { flex: 0 0 16px; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: #ededed; }
html[data-theme="light"] .account-ui .account-report-form input[type="checkbox"] { accent-color: var(--product-accent); }
.account-report-form select { margin-top: 6px; }
.account-report-people { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; border: 0; }
.account-report-people legend { margin-bottom: 8px; padding: 0; font-size: 13px; }
.account-report-person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 190px); align-items: center; gap: 12px; }
.account-report-person .account-check span { display: grid; gap: 2px; }
.account-report-person .account-check small { color: var(--product-tertiary); font-size: 11px; }
.account-report-person input[type="text"] { min-height: 36px; font-size: 14px; }
@media (max-width: 520px) { .account-report-person { grid-template-columns: 1fr; gap: 6px; } }
/* Below 360px the phone top bar has room for the balance only; the card still has the 充值 button. */
@media (max-width: 359px) { .mobile-topbar :is(.credit-badge-sep, .credit-badge-cta) { display: none; } }
.credit-badge small { color: #96969e; font-size: 11px; }
.workspace-account-bar { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 10px; min-height: 64px; padding: 10px 24px; }
.credit-reserved { color: #8e8e96; font-size: 11px; }
.workspace-account-link { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #a8a8ae; cursor: pointer; }
.workspace-account-link:hover { color: #eee; background: #ffffff0b; }
.workspace-account-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.workspace-account-popover {
  position: fixed; z-index: 40; width: min(300px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 24px));
  overflow: auto; padding: 10px; border: 1px solid var(--product-line-strong); border-radius: 16px;
  background: var(--product-elevated); color: var(--product-text); box-shadow: 0 18px 48px rgba(0,0,0,.42);
}
.workspace-account-popover[hidden] { display: none; }
.workspace-account-identity { display: grid; gap: 5px; padding: 8px 10px 12px; border-bottom: 1px solid var(--product-line); }
.workspace-account-identity strong { font-size: 14px; font-weight: 550; }
.workspace-account-identity small, .mobile-account-identity small { display: block; color: var(--product-tertiary); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.workspace-account-identity b, .mobile-account-identity b { color: var(--product-secondary); font-weight: 400; }
.account-menu-items { display: grid; gap: 2px; margin-top: 8px; }
.account-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--product-secondary); font-family: inherit; font-size: 12px; font-weight: 400; line-height: 1.4; text-align: left; text-decoration: none; cursor: pointer; }
.account-menu-item:hover { background: var(--product-hover); color: var(--product-text); }
.account-menu-item:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.account-menu-item svg { flex: 0 0 19px; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.account-menu-points { margin-left: auto; color: var(--product-text); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.account-menu-points small { color: var(--product-tertiary); font-size: 10px; font-weight: 400; }
.account-menu-admin { color: var(--product-tertiary); font-size: 12px; }
.account-menu-logout { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--product-line); }
.account-menu-logout .account-menu-item { color: #d1a3a3; }
.account-menu-logout .account-menu-item:hover { color: #f2c5c5; background: rgba(160,60,60,.12); }
@keyframes account-menu-in { from { opacity: 0; transform: translateY(4px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .workspace-account-popover:not([hidden]) { animation: account-menu-in 150ms var(--product-motion); }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-account-popover { animation: none !important; }
}
.account-title { font-size: clamp(30px, 5vw, 42px) !important; letter-spacing: -.035em !important; }
.account-identity-email { margin: 10px 0 0; color: var(--product-secondary); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.account-identity-email strong { color: var(--product-text); font-weight: 450; }
.account-ui .account-secondary { color: var(--product-text) !important; background: transparent !important; }
.account-ui .account-secondary:hover { color: #fff !important; background: var(--product-hover) !important; filter: none; }
.account-ui .account-secondary:focus-visible { color: #fff !important; background: var(--product-hover) !important; }
.account-ui .account-secondary:disabled { color: var(--product-tertiary) !important; background: transparent !important; opacity: .6; cursor: not-allowed; }
.credit-total { margin: 20px 0 0; font-size: 40px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.credit-total small { font-size: 13px; color: var(--product-secondary); letter-spacing: 0; }
.signup-gift { margin: 22px 0; padding: 12px 14px; border: 1px solid #ffffff1a; border-radius: 10px; color: #d5e9dd; font-size: 13px; }
@media (max-width: 1080px) { .reading-ui .workspace-account-bar { display: none; } }
@media print { .credit-badge, .workspace-account-bar { display: none !important; } }
.beta-credit-receipt { color: #bfc0c6; font-size: 13px; line-height: 1.7; margin: 16px 0 24px; }
.beta-credit-list { padding-left: 20px; line-height: 1.9; overflow-wrap: anywhere; }
/* Answer usefulness, not an accuracy score. Keep controls monochrome on iOS. */
.answer-feedback { display: flex; align-items: center; gap: 4px; margin: 16px 0; color: #999; }
.answer-feedback button { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
.answer-feedback svg { width: 22px; height: 22px; }
.answer-feedback [data-rating="unhelpful"] svg { transform: rotate(180deg); }
.answer-feedback [aria-pressed="true"] { color: #f5f5f5; background: #272727; }
.answer-feedback button:focus-visible { outline: 2px solid #ddd; outline-offset: 2px; }
.answer-feedback button:disabled { opacity: .5; cursor: wait; }
.answer-feedback [role="status"] { font-size: 12px; margin-left: 8px; }
@media print { .answer-feedback { display: none; } }
.bazi-assessment { padding: 12px 16px; color: #aaa; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.bazi-assessment summary { min-height: 44px; display: list-item; cursor: pointer; color: #ccc; }
.bazi-assessment p { margin: 8px 0; }

/* Reading feedback keeps the original composer animation and report text intact. */
.reading-ui .evidence-detail :is(li, p, strong, span) { overflow-wrap: anywhere; }
.account-ui .account-code-form + .account-form-note { margin-top: 8px; }

/* Fortune: today, this month and picking a day; engine-computed, opened in place over the workspace. */
.tw-dialog.fortune-dialog { width: min(640px, calc(100vw - 32px)); max-height: min(90dvh, 880px); padding: 20px 24px 20px; }
.fortune-dialog .tw-dialog-head { margin-bottom: 10px; }
.fortune-kicker { margin: 0; color: rgba(245,245,247,.5); font-size: 12px; letter-spacing: .04em; }
.fortune-tabs { display: inline-flex; gap: 2px; margin-bottom: 14px; padding: 3px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; }
.fortune-tabs button { min-height: 30px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: rgba(245,245,247,.62); font: inherit; font-size: 13px; cursor: pointer; }
.fortune-tabs button[aria-selected="true"] { background: #fff; color: #0a0a0a; font-weight: 600; }
.fortune-back { margin: 0 0 12px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: transparent; color: rgba(245,245,247,.82); font: inherit; font-size: 13px; cursor: pointer; }
html[data-theme="light"] .fortune-back { border-color: var(--product-line-strong); color: var(--product-secondary); }
.reading-ui .fortune-tabs button { transition: none; }  /* The chosen tab shows at once; the content follows. */
.fortune-switch { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.fortune-switch h2 { min-width: 0; margin: 0 2px; font-size: 20px; font-weight: 600; white-space: nowrap; }
.fortune-switch button { display: grid; place-items: center; width: 30px; height: 30px; min-height: 0; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: transparent; color: rgba(245,245,247,.72); cursor: pointer; }
.fortune-switch button:hover { color: #fff; border-color: rgba(255,255,255,.32); }
.fortune-switch svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.monthly-loading, .monthly-error { margin: 28px 0; color: rgba(245,245,247,.6); font-size: 13px; text-align: center; }
.monthly-error { color: #e0776b; }
.monthly-retry { display: block; margin: -14px auto 24px; padding: 6px 16px; border: 1px solid var(--product-line-strong); border-radius: 999px; background: transparent; color: var(--product-text); font: inherit; font-size: 12px; cursor: pointer; }
.monthly-retry:hover { background: rgba(255,255,255,.06); }
.calibration-title { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.calibration-section { margin-top: 14px; }
.calibration-section h4 { margin: 0 0 4px; color: rgba(245,245,247,.62); font-size: 12px; font-weight: 500; }
.calibration-section .monthly-timeline { margin: 0 -10px; }
.calibration-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 9px; }
.calibration-row.is-current { background: rgba(255,255,255,.06); }
/* The phone layout wraps fortune rows; a calibration row stays on one line, its tag at the end. */
.calibration-row .monthly-when { min-width: 7.5em; }
.calibration-row .monthly-event { order: 0; flex: 1 1 auto; }
.calibration-current { flex: 0 0 auto; padding: 0 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #f5f5f7; font-size: 11px; line-height: 1.7; }
.calibration-dialog .monthly-overview { margin-top: 16px; }
.calibration-dialog .monthly-overview strong { flex: 0 0 auto; color: #f5f5f7; font-weight: 500; }
html[data-theme="light"] .calibration-section h4 { color: var(--product-secondary); }
html[data-theme="light"] .calibration-row.is-current { background: var(--product-hover); }
html[data-theme="light"] .calibration-current { border-color: var(--product-line-strong); color: var(--product-text); }
html[data-theme="light"] .calibration-dialog .monthly-overview strong { color: var(--product-text); }
/* 校准时间: the questionnaire and its result. */
.calibration-action { display: grid; gap: 8px; margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: #121214; }
.calibration-action h3 { margin: 0; color: #f5f5f7; font-size: 15px; font-weight: 600; }
.calibration-action p { margin: 0; color: rgba(245,245,247,.72); font-size: 13px; line-height: 1.65; }
.calibration-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.calibration-primary, .calibration-secondary { min-height: 38px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.calibration-primary { border: 0; background: #fff; color: #0a0a0a; font-weight: 600; }
.calibration-primary:disabled { opacity: .4; cursor: not-allowed; }
.calibration-secondary { border: 1px solid rgba(255,255,255,.2); background: transparent; color: #f5f5f7; }
.calibration-link { min-height: 36px; padding: 0 4px; border: 0; background: transparent; color: rgba(245,245,247,.62); font: inherit; font-size: 13px; cursor: pointer; }
.calibration-link:hover { color: #fff; }
.calibration-note { margin: 8px 0 0; color: rgba(245,245,247,.5); font-size: 12px; line-height: 1.6; }
.calibration-progress { display: grid; gap: 6px; margin-bottom: 14px; color: rgba(245,245,247,.5); font-size: 12px; font-variant-numeric: tabular-nums; }
.calibration-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.calibration-bar i { display: block; height: 100%; background: #fff; transition: width .2s ease; }
.calibration-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.calibration-method { color: rgba(245,245,247,.62); font-size: 12px; }
.calibration-question:focus { outline: none; }
.calibration-question { margin: 4px 0 6px; color: #f5f5f7; font-size: 17px; font-weight: 600; line-height: 1.55; }
.calibration-options { display: grid; gap: 8px; margin-top: 14px; }
.calibration-option { min-height: 46px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: #121214; color: #f5f5f7; font: inherit; font-size: 14px; line-height: 1.5; text-align: left; cursor: pointer; }
.calibration-option:hover { border-color: rgba(255,255,255,.34); }
.calibration-option.is-selected { border-color: #fff; background: rgba(255,255,255,.08); }
.calibration-month { display: grid; gap: 6px; margin-top: 12px; }
.calibration-pick-label { margin: 4px 0 0; color: rgba(245,245,247,.5); font-size: 12px; }
.calibration-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.calibration-picks.is-months { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.calibration-pick { min-height: 36px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: #121214; color: #f5f5f7; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.calibration-pick:hover { border-color: rgba(255,255,255,.34); }
.calibration-pick.is-selected { border-color: #fff; background: rgba(255,255,255,.1); }
html[data-theme="light"] .calibration-pick { background: var(--product-base); border-color: var(--product-line); color: var(--product-text); }
html[data-theme="light"] .calibration-pick.is-selected { border-color: var(--product-text); background: var(--product-hover); }
html[data-theme="light"] .calibration-pick-label { color: var(--product-tertiary); }
.calibration-nav { display: flex; justify-content: space-between; margin-top: 12px; }
.calibration-review { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.calibration-review li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.calibration-review-question { grid-column: 1 / -1; color: rgba(245,245,247,.6); font-size: 12px; line-height: 1.55; }
.calibration-review strong { color: #f5f5f7; font-size: 13px; font-weight: 500; }
.calibration-review .calibration-link { min-height: 0; }
.calibration-dialog .is-skipped { color: rgba(245,245,247,.42); font-weight: 400; }
.calibration-lead { padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: #121214; }
.calibration-lead h3 { margin: 2px 0 4px; color: #f5f5f7; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calibration-lead p { margin: 0; color: rgba(245,245,247,.72); font-size: 13px; }
.calibration-kicker { color: rgba(245,245,247,.5) !important; font-size: 12px !important; letter-spacing: .04em; }
.calibration-backups, .calibration-conflicts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 12px 0 0; color: rgba(245,245,247,.72); font-size: 13px; line-height: 1.6; }
.calibration-backups strong, .calibration-conflicts strong { color: #f5f5f7; font-weight: 500; }
.calibration-conflicts { padding: 10px 12px; border-radius: 10px; background: rgba(216,180,117,.08); }
.calibration-finding { margin: 8px 0 0; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.calibration-finding > p { margin: 6px 0 0; color: rgba(245,245,247,.82); font-size: 13px; line-height: 1.7; }
.calibration-favors { color: #f5f5f7 !important; font-weight: 500; }
.calibration-evidence { margin-top: 8px; color: rgba(245,245,247,.6); font-size: 12px; }
.calibration-evidence summary { cursor: pointer; }
.calibration-rule { margin: 6px 0 0; color: rgba(245,245,247,.72); line-height: 1.65; }
.calibration-facts, .calibration-sources { margin: 6px 0 0; padding-left: 18px; line-height: 1.65; }
.calibration-sources a { color: inherit; }
.calibration-sources q { display: block; margin-top: 2px; color: rgba(245,245,247,.5); font-style: italic; }
.calibration-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.calibration-table th { padding: 6px 4px; color: rgba(245,245,247,.5); font-weight: 500; text-align: center; white-space: nowrap; }
.calibration-table th:first-child { text-align: left; }
.calibration-table td { padding: 8px 4px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; vertical-align: top; }
.calibration-table td:first-child { display: grid; gap: 2px; text-align: left; color: rgba(245,245,247,.6); line-height: 1.5; }
.calibration-table td:first-child strong { color: #f5f5f7; font-weight: 500; }
.calibration-table .is-match { color: #9dd6ad; }
.calibration-table .is-mismatch { color: #e3897e; }
.calibration-table .is-skip { color: rgba(245,245,247,.35); }
.calibration-table .calibration-total td { border-top: 1px solid rgba(255,255,255,.2); color: #f5f5f7; font-weight: 600; font-variant-numeric: tabular-nums; }
html[data-theme="light"] .calibration-table .calibration-total td { border-color: var(--product-line-strong); color: var(--product-text); }
/* The 生时校准 cover: logo in the top third, two short columns, the price, one centred button. */
.calibration-dialog.is-cover .calibration-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.calibration-cover { display: grid; justify-items: center; gap: 10px; text-align: center; }
.calibration-cover-logo { display: grid; place-items: center; width: 100%; padding: 4px 0 2px; }  /* small, so the price and refund line show without scrolling */
.twinsky-logo { position: relative; width: min(48%, 190px); aspect-ratio: 320 / 157; }
.twinsky-logo-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.twinsky-logo-metal { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; pointer-events: none; }
.twinsky-logo-metal canvas { display: block; width: 100%; height: 100%; }
html[data-theme="light"] .twinsky-logo-image { filter: invert(1); }
.calibration-cover-title { margin: 0; color: #f5f5f7; font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.calibration-cover-lead { max-width: 30em; margin: 0; color: rgba(245,245,247,.68); font-size: 14px; line-height: 1.7; }
.calibration-cover-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 10px; text-align: left; }
.calibration-cover-column { padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; }
.calibration-cover-column h4 { margin: 0 0 6px; color: #f5f5f7; font-size: 13px; font-weight: 600; }
.calibration-cover-column ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: rgba(245,245,247,.7); font-size: 13px; line-height: 1.6; }
.calibration-cover-column li { position: relative; padding-left: 18px; }
.calibration-cover-column li::before { position: absolute; left: 0; }
.calibration-cover-column.is-can li::before { content: "✓"; color: #9dd6ad; }
.calibration-cover-column.is-cannot li::before { content: "×"; color: rgba(245,245,247,.45); }
.calibration-cover-fee { display: grid; gap: 2px; width: 100%; margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.05); color: rgba(245,245,247,.6); font-size: 12px; line-height: 1.6; }
.calibration-cover-fee strong { color: #f5f5f7; font-size: 14px; font-weight: 600; }
.calibration-dialog.is-cover[open] { display: flex; flex-direction: column; overflow: hidden; }
.calibration-dialog.is-cover [data-calibration-body] { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.calibration-dialog.is-cover .calibration-cover { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.calibration-cta-bar { flex: none; display: grid; justify-items: center; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); margin-top: 4px; }
.calibration-cta { justify-self: center; min-width: min(100%, 240px); min-height: 48px; margin-top: 0; padding: 0 32px; border: 0; border-radius: 999px; background: #fff; color: #0a0a0a; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.calibration-cta:hover { background: #e9e9ec; }
@media (max-width: 520px) { .calibration-cover-columns { grid-template-columns: minmax(0, 1fr); } .calibration-cover-logo { padding: 2px 0 6px; } .twinsky-logo { width: min(44%, 160px); } }
html[data-theme="light"] :is(.calibration-cover-title, .calibration-cover-column h4, .calibration-cover-fee strong) { color: var(--product-text); }
html[data-theme="light"] :is(.calibration-cover-lead, .calibration-cover-column ul, .calibration-cover-fee) { color: var(--product-secondary); }
html[data-theme="light"] .calibration-cover-column { border-color: var(--product-line); }
html[data-theme="light"] .calibration-cover-fee { background: var(--product-hover); }
html[data-theme="light"] .calibration-cover-column.is-can li::before { color: #2e7d48; }
html[data-theme="light"] .calibration-cover-column.is-cannot li::before { color: var(--product-tertiary); }
html[data-theme="light"] .calibration-cta { background: var(--product-text); color: var(--product-base); }
html[data-theme="light"] .calibration-cta-bar { border-color: var(--product-line); }
/* Intro, range choice, agreement and result states of 校准时间. */
.calibration-points { display: grid; gap: 6px; margin: 6px 0 0; padding-left: 18px; color: rgba(245,245,247,.78); font-size: 13px; line-height: 1.65; }
.calibration-limit { margin: 16px 0 0; padding: 10px 12px; border: 1px solid rgba(216,180,117,.35); border-radius: 10px; background: rgba(216,180,117,.08); color: #f5f5f7; font-size: 13px; line-height: 1.6; }
.calibration-range { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calibration-range-span { flex: 0 0 auto; color: rgba(245,245,247,.55); font-size: 13px; font-variant-numeric: tabular-nums; }
.calibration-candidates { margin: 0 -10px; }
.calibration-moments { margin-top: 14px; color: rgba(245,245,247,.62); font-size: 13px; }
.calibration-moments summary { cursor: pointer; }
.calibration-agree { display: flex; align-items: flex-start; gap: 8px; color: rgba(245,245,247,.82); font-size: 13px; line-height: 1.6; cursor: pointer; }
.calibration-agree input { flex: 0 0 auto; width: 16px; height: 16px; margin: 3px 0 0; accent-color: #fff; }
.calibration-agree a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.calibration-gist { color: rgba(245,245,247,.45) !important; font-size: 12px !important; }
.calibration-status { margin: 12px 0 0; padding: 12px 14px; border: 1px solid rgba(216,180,117,.3); border-radius: 12px; background: rgba(216,180,117,.08); }
.calibration-status p { margin: 0; color: rgba(245,245,247,.82); font-size: 13px; line-height: 1.65; }
.calibration-lead.is-outside { border-color: rgba(216,180,117,.5); }
.calibration-chip { padding: 0 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(245,245,247,.6); font-size: 11px; line-height: 1.7; }
.calibration-chip.is-ai { border-color: rgba(157,214,173,.4); color: #9dd6ad; }
.calibration-table td:first-child .calibration-chip { justify-self: start; }
.calibration-table-wrap { overflow-x: auto; }
.calibration-table :is(th, td).is-outside { opacity: .55; }
html[data-theme="light"] :is(.calibration-points, .calibration-moments, .calibration-agree, .calibration-status p, .calibration-range-span) { color: var(--product-secondary); }
html[data-theme="light"] .calibration-limit { color: var(--product-text); background: rgba(176,128,52,.08); border-color: rgba(176,128,52,.35); }
html[data-theme="light"] .calibration-status { background: rgba(176,128,52,.06); border-color: rgba(176,128,52,.3); }
html[data-theme="light"] .calibration-agree input { accent-color: var(--product-text); }
html[data-theme="light"] .calibration-gist { color: var(--product-tertiary) !important; }
html[data-theme="light"] .calibration-chip { border-color: var(--product-line-strong); color: var(--product-secondary); }
html[data-theme="light"] .calibration-chip.is-ai { border-color: rgba(46,125,72,.4); color: #2e7d48; }
/* The result: one answer card, then the summary; the full comparison stays folded. */
.calibration-answer { display: grid; gap: 6px; padding: 18px 18px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: #121214; }
.calibration-answer.is-outside { border-color: rgba(216,180,117,.5); }
.calibration-answer h3 { margin: 0; color: #f5f5f7; font-size: 28px; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.calibration-answer h4 { margin: 10px 0 0; color: rgba(245,245,247,.62); font-size: 12px; font-weight: 500; }
.calibration-answer .calibration-note { margin: 0; }
.calibration-answer-chart { margin: 0; color: rgba(245,245,247,.72); font-size: 13px; }
.calibration-strength { justify-self: start; margin: 4px 0 2px; padding: 2px 10px; border-radius: 999px; font-size: 12px; line-height: 1.7; }
.calibration-strength.is-clear { background: rgba(157,214,173,.14); color: #9dd6ad; }
.calibration-strength.is-slight { background: rgba(216,180,117,.14); color: #e2bf82; }
.calibration-reasons { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.6; }
.calibration-reasons li { color: rgba(245,245,247,.6); }
.calibration-reasons li::before { content: "✓"; margin-right: 6px; color: #9dd6ad; }
.calibration-reasons strong { color: #f5f5f7; font-weight: 500; }
.calibration-bars { display: grid; gap: 6px; }
.calibration-bar-row { display: grid; grid-template-columns: minmax(64px, auto) minmax(0, 1fr) 40px; align-items: center; gap: 10px; color: rgba(245,245,247,.72); font-size: 12px; }
.calibration-bar-row.is-outside { color: rgba(245,245,247,.42); }
.calibration-bar-track { height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.calibration-bar-track i { display: block; height: 100%; border-radius: 4px; background: rgba(255,255,255,.28); }
.calibration-bar-row.is-leading { color: #f5f5f7; font-weight: 500; }
.calibration-bar-row.is-leading .calibration-bar-track i { background: #9dd6ad; }
.calibration-bar-score { text-align: right; font-variant-numeric: tabular-nums; }
.calibration-summary { margin: 14px 2px 0; color: rgba(245,245,247,.82); font-size: 14px; line-height: 1.75; white-space: pre-line; }
.calibration-suggested { margin: 0; color: #f5f5f7; font-size: 15px; font-weight: 500; }
.calibration-minute { display: grid; gap: 4px; margin: 6px 0 2px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); }
.calibration-minute strong { color: #f5f5f7; font-size: 13px; font-weight: 500; }
.calibration-minute > p:not(.calibration-note) { margin: 0; color: rgba(245,245,247,.78); font-size: 13px; line-height: 1.65; }
html[data-theme="light"] .calibration-minute { background: var(--product-hover); }
html[data-theme="light"] .calibration-minute strong { color: var(--product-text); }
html[data-theme="light"] .calibration-minute > p:not(.calibration-note) { color: var(--product-secondary); }
.calibration-ladder { display: grid; gap: 4px; margin: 8px 0 4px; }
.calibration-step { display: grid; grid-template-columns: 18px 84px minmax(0, 1fr) auto; align-items: baseline; gap: 6px; color: rgba(245,245,247,.42); font-size: 13px; line-height: 1.6; }
.calibration-step i { font-style: normal; text-align: center; }
.calibration-step.is-done { color: #f5f5f7; }
.calibration-step.is-done i { color: #9dd6ad; }
.calibration-step-label { color: rgba(245,245,247,.55); }
.calibration-step-span { color: rgba(245,245,247,.45); font-size: 12px; font-variant-numeric: tabular-nums; }
html[data-theme="light"] :is(.calibration-suggested, .calibration-step.is-done) { color: var(--product-text); }
html[data-theme="light"] :is(.calibration-step, .calibration-step-label, .calibration-step-span) { color: var(--product-tertiary); }
html[data-theme="light"] .calibration-step.is-done i { color: #2e7d48; }
.calibration-more { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.calibration-more > summary { color: rgba(245,245,247,.62); font-size: 13px; cursor: pointer; }
html[data-theme="light"] .calibration-answer { background: var(--product-base); border-color: var(--product-line); }
html[data-theme="light"] .calibration-answer.is-outside { border-color: rgba(176,128,52,.45); }
html[data-theme="light"] :is(.calibration-answer h3, .calibration-reasons strong, .calibration-bar-row.is-leading) { color: var(--product-text); }
html[data-theme="light"] :is(.calibration-answer h4, .calibration-answer-chart, .calibration-reasons li, .calibration-bar-row, .calibration-summary, .calibration-more > summary) { color: var(--product-secondary); }
html[data-theme="light"] .calibration-bar-row.is-outside { color: var(--product-tertiary); }
html[data-theme="light"] .calibration-bar-track { background: var(--product-hover); }
html[data-theme="light"] .calibration-bar-track i { background: var(--product-line-strong); }
html[data-theme="light"] .calibration-bar-row.is-leading .calibration-bar-track i { background: #2e7d48; }
html[data-theme="light"] .calibration-strength.is-clear { background: rgba(46,125,72,.1); color: #2e7d48; }
html[data-theme="light"] .calibration-strength.is-slight { background: rgba(176,128,52,.1); color: #8a5a12; }
html[data-theme="light"] .calibration-reasons li::before { color: #2e7d48; }
html[data-theme="light"] .calibration-more { border-color: var(--product-line); }
.calibration-disclaimer { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.05); color: rgba(245,245,247,.6); font-size: 12px; line-height: 1.7; }
html[data-theme="light"] :is(.calibration-action, .calibration-lead, .calibration-option) { background: var(--product-base); border-color: var(--product-line); }
html[data-theme="light"] :is(.calibration-action h3, .calibration-lead h3, .calibration-question, .calibration-option, .calibration-review strong, .calibration-backups strong, .calibration-conflicts strong, .calibration-favors, .calibration-table td:first-child strong) { color: var(--product-text) !important; }
html[data-theme="light"] :is(.calibration-action p, .calibration-lead p, .calibration-finding > p, .calibration-backups, .calibration-conflicts, .calibration-method, .calibration-link, .calibration-progress, .calibration-review-question, .calibration-evidence, .calibration-table td:first-child, .calibration-table th) { color: var(--product-secondary); }
html[data-theme="light"] :is(.calibration-note, .calibration-kicker, .calibration-dialog .is-skipped, .calibration-sources q) { color: var(--product-tertiary) !important; }
html[data-theme="light"] .calibration-primary { background: var(--product-text); color: var(--product-base); }
html[data-theme="light"] .calibration-secondary { border-color: var(--product-line-strong); color: var(--product-text); }
html[data-theme="light"] .calibration-option.is-selected { border-color: var(--product-text); background: var(--product-hover); }
html[data-theme="light"] .calibration-bar { background: var(--product-line); }
html[data-theme="light"] .calibration-bar i { background: var(--product-text); }
html[data-theme="light"] :is(.calibration-finding, .calibration-review li, .calibration-table td) { border-color: var(--product-line); }
html[data-theme="light"] .calibration-disclaimer { background: var(--product-hover); color: var(--product-secondary); }
.monthly-headline { margin: 6px 0 14px; color: #f5f5f7; font-size: 17px; line-height: 1.65; letter-spacing: -.005em; }
.monthly-limited { margin: -6px 0 14px; color: var(--product-secondary); font-size: 12px; line-height: 1.6; }
.monthly-overview { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #121214; }
.monthly-overview p { display: flex; align-items: baseline; gap: 10px; margin: 0; color: rgba(245,245,247,.72); font-size: 12px; line-height: 1.6; }
.monthly-system { flex: 0 0 auto; padding: 1px 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: rgba(245,245,247,.62); font-size: 10px; line-height: 1.6; white-space: nowrap; }
.monthly-timeline, .monthly-evidence { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.monthly-date, .monthly-reason { display: flex; align-items: baseline; gap: 10px; width: 100%; min-height: 0; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.monthly-date:hover, .monthly-reason:hover { background: rgba(255,255,255,.05); }
.monthly-when { flex: 0 0 auto; min-width: 9.5em; color: rgba(245,245,247,.5); font-size: 12px; font-variant-numeric: tabular-nums; }
.monthly-event { flex: 1 1 auto; min-width: 0; color: #f5f5f7; font-size: 13px; line-height: 1.55; }
.monthly-card { margin-top: 10px; padding: 14px 16px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #111113; }
.monthly-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.monthly-dimension { color: rgba(245,245,247,.62); font-size: 12px; }
.monthly-tendency, .monthly-resonance { padding: 1px 8px; border-radius: 999px; font-size: 11px; line-height: 1.7; }
.monthly-tendency { border: 1px solid currentColor; color: rgba(245,245,247,.72); }
.monthly-tendency[data-tendency="expansion"] { color: #9dd6ad; }
.monthly-tendency[data-tendency="consolidation"] { color: #a9b8d6; }
.monthly-tendency[data-tendency="transition"] { color: rgba(245,245,247,.82); }
.monthly-tendency[data-tendency="pressure"] { color: #e3897e; }
.monthly-resonance { background: rgba(255,255,255,.1); color: #f5f5f7; }
.monthly-card h4 { margin: 0 0 4px; color: #f5f5f7; font-size: 16px; font-weight: 600; }
.monthly-advice { margin: 0 0 10px; color: rgba(245,245,247,.78); font-size: 13px; line-height: 1.7; }
.monthly-evidence { margin: 0 -10px 10px; }
.monthly-reason { color: rgba(245,245,247,.66); font-size: 12px; line-height: 1.65; }
.monthly-reason > span:last-child { min-width: 0; }
.monthly-ask { min-height: 34px; padding: 0 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: transparent; color: #f5f5f7; font: inherit; font-size: 12px; cursor: pointer; }
.monthly-ask:hover { background: #fff; color: #0a0a0a; }
/* Today */
.daily-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 10px 0 14px; }
.daily-tone { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid currentColor; font-size: 20px; font-weight: 600; }
.daily-tone[data-tone="good"] { color: #9dd6ad; }
.daily-tone[data-tone="even"] { color: #a9b8d6; }
.daily-tone[data-tone="careful"] { color: #e3897e; }
.daily-headline { flex: 1 1 260px; margin: 0; color: #f5f5f7; font-size: 17px; line-height: 1.6; }
.daily-indices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.daily-index { display: grid; gap: 6px; margin: 0; padding: 10px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #121214; color: rgba(245,245,247,.62); font-size: 12px; }
.daily-dots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; max-width: 96px; }
.daily-dots i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.daily-dots i.is-on { background: #f5f5f7; }
.daily-reasons { margin: 0 -10px 8px; }
.daily-actions { display: grid; gap: 4px; margin: 0 0 6px; }
.daily-actions p { display: flex; gap: 10px; margin: 0; color: rgba(245,245,247,.78); font-size: 13px; line-height: 1.7; }
.daily-actions strong { flex: 0 0 auto; color: rgba(245,245,247,.5); font-weight: 500; }
.daily-actions .daily-aside { color: rgba(245,245,247,.72); font-size: 12px; }  /* a quiet note, not a gold warning */
.daily-checkin { margin: 6px 0 14px; padding: 4px 0 0; border-top: 1px solid rgba(255,255,255,.08); }
.daily-checkin-question { margin: 0 0 8px; color: #f5f5f7; font-size: 14px; }
.daily-verdicts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.daily-verdict { min-height: 34px; padding: 0 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: transparent; color: rgba(245,245,247,.8); font: inherit; font-size: 13px; cursor: pointer; }
.daily-verdict[aria-pressed="true"] { border-color: #fff; background: #fff; color: #0a0a0a; font-weight: 600; }
.daily-verdict:disabled { opacity: .45; cursor: default; }
.daily-note-row { display: flex; gap: 8px; }
.daily-note { flex: 1 1 auto; min-width: 0; min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: #121214; color: #f5f5f7; font: inherit; font-size: 13px; }
.daily-save { flex: 0 0 auto; min-height: 36px; padding: 0 16px; border: 0; border-radius: 10px; background: #fff; color: #0a0a0a; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.daily-save:disabled { background: #2b2b2d; color: #777; cursor: default; }
.daily-checkin-note { margin: 8px 0 0; color: rgba(245,245,247,.55); font-size: 12px; line-height: 1.6; }
/* Picking a day */
.calendar-intents { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.calendar-intent { min-height: 30px; padding: 0 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: transparent; color: rgba(245,245,247,.72); font: inherit; font-size: 12px; cursor: pointer; }
.calendar-intent[aria-pressed="true"] { border-color: #fff; background: #fff; color: #0a0a0a; font-weight: 600; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-weekday { padding: 4px 0; color: rgba(245,245,247,.42); font-size: 11px; text-align: center; }
.calendar-day { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; min-height: 58px; padding: 7px 2px 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: #111113; color: #f5f5f7; font: inherit; cursor: pointer; }
.calendar-day:hover { border-color: rgba(255,255,255,.28); }
.calendar-day.is-past { opacity: .38; }  /* Days already gone: readable, not on offer. */
.calendar-day::after { content: ""; order: 2; width: 6px; height: 6px; border-radius: 50%; background: #a9b8d6; opacity: .7; }
.calendar-day[data-tone="good"]::after { background: #9dd6ad; }
.calendar-day[data-tone="careful"]::after { background: #e3897e; }
.calendar-day[data-mark="best"] { border-color: #9dd6ad; background: rgba(157,214,173,.1); }
.calendar-day[data-mark="avoid"] { opacity: .55; }
.calendar-day[aria-current="date"] .calendar-number { text-decoration: underline; text-underline-offset: 3px; }
.calendar-number { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calendar-pillar { color: rgba(245,245,247,.45); font-size: 10px; }
.calendar-mark { order: 3; font-size: 10px; line-height: 1; color: #9dd6ad; }
.calendar-day[data-mark="avoid"] .calendar-mark { color: #e3897e; }
.calendar-checked { position: absolute; top: 3px; left: 5px; color: rgba(245,245,247,.55); font-size: 10px; }
.calendar-legend { margin: 10px 0 0; color: rgba(245,245,247,.45); font-size: 11px; }
.calendar-best { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
/* A dot for something new, as on 运势 until today's reading is opened */
.reading-ui .nav-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #5b8cff; }
.reading-ui .nav-dot[hidden] { display: none; }
.reading-ui .workspace.sidebar-collapsed .new-reading { position: relative; }
.reading-ui .workspace.sidebar-collapsed .nav-dot { position: absolute; top: 8px; right: 8px; margin: 0; }
.reading-ui [data-open-mobile-menu] { position: relative; }
.reading-ui [data-open-mobile-menu] .nav-dot { position: absolute; top: 9px; right: 9px; margin: 0; }
@media (max-width: 560px) {
  .tw-dialog.fortune-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 24px); padding: 16px 14px 16px; }
  .daily-indices { gap: 6px; }
  .daily-index { padding: 8px 10px; }
  .calendar-day { min-height: 50px; }
  .calendar-pillar { display: none; }
  .monthly-headline { font-size: 16px; }
  .monthly-date { flex-wrap: wrap; row-gap: 2px; }
  .monthly-when { min-width: 0; }
  .monthly-event { flex-basis: 100%; order: 3; }
}

/* Light appearance changes paint only; workspace geometry and chart IDs stay shared. */
html[data-theme="light"] :is(.account-ui, .reading-ui, .pair-ui),
html[data-theme="light"] .reading-ui :is(.workspace, .analysis-panel) { background: var(--product-bg); }
html[data-theme="light"] :is(.account-ui, .reading-ui, .pair-ui) :focus-visible { outline-color: var(--theme-focus) !important; }
html[data-theme="light"] .account-brand { color: var(--product-text); }
html[data-theme="light"] .account-card { background: var(--product-elevated); }
html[data-theme="light"] .legal-copy :is(p, ul) { color: var(--product-text); }
html[data-theme="light"] .legal-copy a:not(.account-link) { color: var(--theme-focus); }
html[data-theme="light"] .legal-copy .legal-notice { background: var(--product-base); }
html[data-theme="light"] .account-ui :is(input, select),
html[data-theme="light"] :is(.pair-person, .pair-topic) select { background: var(--product-elevated); color: var(--product-text); }
html[data-theme="light"] .account-ui button,
html[data-theme="light"] :is(.account-link, .pair-run) { color: var(--theme-button-text); }
html[data-theme="light"] :is(.account-error, .pair-error, .monthly-error) { color: var(--theme-error); }
html[data-theme="light"] .account-success { color: var(--theme-success); }
html[data-theme="light"] .account-danger button { background: var(--theme-error); }
html[data-theme="light"] .account-ui :is(.account-consent, .account-danger) input[type="checkbox"] { accent-color: var(--product-accent); }
html[data-theme="light"] .account-ui .account-secondary:is(:hover, :focus-visible) { color: var(--product-text) !important; }
html[data-theme="light"] .account-auth button { background: var(--product-accent); color: var(--theme-button-text); }
html[data-theme="light"] :is(.signup-gift, .credit-badge) { border-color: var(--product-line); }
html[data-theme="light"] .signup-gift { color: var(--theme-success); }
html[data-theme="light"] :is(.beta-credit-receipt, .credit-reserved, .credit-badge small) { color: var(--product-secondary); }
html[data-theme="light"] .credit-badge { background: var(--product-elevated); color: var(--product-text); }
html[data-theme="light"] :is(.credit-badge:hover, .credit-badge[aria-expanded="true"]) { background: var(--product-hover); border-color: var(--product-line-strong); }
html[data-theme="light"] .credit-badge-cta { color: var(--product-text); }
html[data-theme="light"] .credit-badge.is-member { border-color: #7c5cf04d; background: linear-gradient(90deg, #7c5cf00d, #3b82f60d); }
html[data-theme="light"] .credit-badge.is-member svg { stroke: #6d4fe0; }
html[data-theme="light"] .credit-badge-cta.is-member { background: linear-gradient(90deg, #6d4fe0, #2f6fd6); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .credit-badge:focus-visible { outline-color: var(--theme-focus); }
html[data-theme="light"] .workspace-account-link { color: var(--product-secondary); }
html[data-theme="light"] .workspace-account-link:hover { background: var(--product-hover); color: var(--product-text); }
html[data-theme="light"] .workspace-account-popover { box-shadow: 0 18px 48px rgba(25,25,20,.14); }
html[data-theme="light"] .account-menu-logout .account-menu-item { color: var(--theme-error); }
html[data-theme="light"] .account-menu-logout .account-menu-item:hover { background: #f9e9e9; color: var(--theme-error); }

/* Navigation, transcript and composer. */
html[data-theme="light"] .reading-ui :is(.sidebar, .chart-panel, .chart-head) { background: var(--product-base); }
html[data-theme="light"] .reading-ui :is(.sidebar-toggle, .new-reading, .profile-card-switch, .profile-card-menu-toggle, .question-chips button, .follow-ups-list button, .chart-legend-toggle, .chart-panel-dismiss):hover,
html[data-theme="light"] .reading-ui .profile-card-menu-toggle[aria-expanded="true"],
html[data-theme="light"] .reading-ui .history-entry:is(:hover, .active),
html[data-theme="light"] .reading-ui .sidebar-foot :is(a, button):hover { background: var(--product-hover); color: var(--product-text); }
html[data-theme="light"] .reading-ui :is(.profile-card-menu, .engine-panel, .profile-switcher-dialog, .pair-setup-dialog, .evidence-detail, .event-dialog, .varga-menu-panel) { background: var(--product-elevated); border-color: var(--product-line-strong); box-shadow: 0 18px 50px rgba(25,25,20,.16); }
html[data-theme="light"] .reading-ui .profile-card-menu :is(a, button):is(:hover, :focus-visible) { background: var(--product-hover); }
html[data-theme="light"] .reading-ui .trace,
html[data-theme="light"] .reading-ui :is(.fortune-tree, .chart-scroll) { scrollbar-color: var(--product-line-strong) transparent; }
html[data-theme="light"] .reading-ui :is(.thinking-brand, .pending-block, .pending-block p) { color: var(--product-secondary); }
html[data-theme="light"] .reading-ui .pending-block strong { color: var(--product-text); }
html[data-theme="light"] .reading-ui .user-question { background: var(--product-base); }
html[data-theme="light"] .reading-ui :is(.evidence-conclusion, .system-proof p, .report-section-body, .step-body, .report-question p, .report-group-text, .evidence-detail-group li, .report-evidence-statement) { color: var(--product-text); }
html[data-theme="light"] .reading-ui :is(.support-badge.dual_converge, .support-badge.dual_complement, .support-badge.dual_reconciled, .step-label, .report-group h2) { color: var(--product-text); }
html[data-theme="light"] .reading-ui .step::before { box-shadow: 0 0 0 5px var(--product-bg); }
html[data-theme="light"] .reading-ui .composer { background: rgba(250,250,248,.9); }
html[data-theme="light"] .reading-ui .composer form { background: var(--product-elevated); box-shadow: 0 12px 30px rgba(25,25,20,.08); }
html[data-theme="light"] .reading-ui .composer form::before {
  background:
    radial-gradient(90px 28px at 8% 25%, #252525 0, rgba(40,40,40,.78) 18%, transparent 66%),
    radial-gradient(120px 36px at 74% 82%, rgba(55,55,55,.92) 0, rgba(140,144,151,.78) 24%, transparent 72%),
    linear-gradient(112deg, #d8d8d4 5%, #85888d 18%, #353535 27%, #c4c5c7 39%, #63656a 54%, #a9adb3 66%, #303030 78%, #dadbd8 94%);
  background-size: 180% 180%, 210% 190%, 240% 100%;
  filter: contrast(1.05) drop-shadow(0 0 3px rgba(30,30,30,.12));
}
html[data-theme="light"] .reading-ui .composer form:focus-within { box-shadow: 0 12px 30px rgba(25,25,20,.08); }
html[data-theme="light"] .reading-ui :is(.corrected-notice button, .composer form > button[type="submit"], .pair-setup-confirm, .pair-report-start button),
html[data-theme="light"] .open-analysis-result { background: var(--product-accent); border-color: var(--product-accent); color: var(--theme-button-text); }
html[data-theme="light"] .reading-ui .pair-setup-confirm { border-color: var(--product-accent) !important; }
html[data-theme="light"] .reading-ui :is(.composer form > button[type="submit"], .pair-report-start button):hover:not(:disabled),
html[data-theme="light"] .open-analysis-result:hover { background: #424242; border-color: #424242; color: var(--theme-button-text); }
html[data-theme="light"] .reading-ui :is(.composer form > button[type="submit"], .pair-report-start button):disabled { background: var(--product-hover); color: var(--product-tertiary); }
html[data-theme="light"] .reading-ui .engine-control > summary:hover,
html[data-theme="light"] .reading-ui .engine-control[open] > summary { background: var(--product-hover); }
html[data-theme="light"] .reading-ui .engine-row i { background: var(--product-line-strong); }
html[data-theme="light"] .reading-ui .engine-row i::after,
html[data-theme="light"] .reading-ui .engine-row input:checked + i::after { background: #fff; }
html[data-theme="light"] .reading-ui .engine-row input:checked + i { background: #34c759; }
html[data-theme="light"] .reading-ui .conversation-meter { color: var(--product-secondary); }
html[data-theme="light"] .reading-ui .conversation-meter .meter-track { stroke: var(--product-line); }
html[data-theme="light"] .reading-ui .conversation-meter .meter-fill { stroke: var(--product-secondary); }
html[data-theme="light"] .reading-ui .conversation-meter.warn :is(.meter-fill, [data-meter-text]) { color: var(--product-text); stroke: var(--product-text); }
html[data-theme="light"] .reading-ui .conversation-meter.full :is(.meter-fill, [data-meter-text]) { color: var(--theme-error); stroke: var(--theme-error); }
html[data-theme="light"] .reading-ui :is(.conversation-limit, .pair-report-start p) { color: var(--product-secondary); }
html[data-theme="light"] .reading-ui .composer .conversation-limit button { color: var(--product-text); border-color: var(--product-line-strong); }
html[data-theme="light"] .reading-ui .composer .conversation-limit button:hover:not(:disabled) { background: var(--product-hover); }
html[data-theme="light"] .reading-ui .pair-report-label { color: var(--theme-focus); border-color: var(--theme-highlight-line); }

/* Profile and pair dialogs use the same semantic colors as their embedded forms. */
html[data-theme="light"] :is(.reading-ui, .account-ui) .profile-frame-dialog,
html[data-theme="light"] :is(.reading-ui, .account-ui) .profile-frame-dialog iframe { background: var(--product-elevated); }
html[data-theme="light"] :is(.reading-ui, .account-ui) .profile-frame-dialog { box-shadow: 0 24px 70px rgba(25,25,20,.18); }
html[data-theme="light"] .reading-ui :is(.profile-switcher-dialog, .pair-setup-dialog, .event-dialog)::backdrop,
html[data-theme="light"] :is(.reading-ui, .account-ui) .profile-frame-dialog::backdrop { background: rgba(30,30,25,.28); }
html[data-theme="light"] .reading-ui :is(.profile-switcher-dialog header button, .pair-setup-dialog header button) { background: var(--product-base); color: var(--product-secondary); }
html[data-theme="light"] .reading-ui :is(.profile-switcher-search, .pair-profile-picker) { background: var(--product-base); border-color: var(--product-line-strong); }
html[data-theme="light"] .reading-ui .profile-switcher-search input { color: var(--product-text); }
html[data-theme="light"] .reading-ui .profile-switcher-search:focus-within { border-color: var(--theme-focus); }
html[data-theme="light"] .reading-ui .profile-switcher-new:hover,
html[data-theme="light"] .reading-ui .profile-switcher-item:is(:hover, .current),
html[data-theme="light"] .reading-ui .profile-switcher-row:is(:hover, .current),
html[data-theme="light"] .reading-ui .profile-switcher-action:is(:hover, :focus-visible) { background: var(--product-hover); color: var(--product-text); }
html[data-theme="light"] .reading-ui .profile-switcher-row .profile-switcher-item:is(:hover, .current) { background: transparent; }
html[data-theme="light"] .reading-ui .profile-switcher-action.is-danger,
html[data-theme="light"] .reading-ui .profile-switcher-action.is-danger:is(:hover, :focus-visible) { color: var(--theme-error); }
html[data-theme="light"] .reading-ui .profile-switcher-action.is-danger:is(:hover, :focus-visible) { background: #f9e9e9; }
html[data-theme="light"] .reading-ui .profile-switcher-item em { color: var(--theme-success); }
html[data-theme="light"] .reading-ui :is(.pair-profile-picker summary > span, .pair-relationship-hint, .pair-relationship-group h3) { color: var(--product-secondary); }
html[data-theme="light"] .reading-ui .pair-profile-heading button { background: var(--product-base); border-color: var(--product-line-strong); color: var(--product-text); }
html[data-theme="light"] .reading-ui .pair-setup-dialog .pair-profile-options { border-color: var(--product-line); }
html[data-theme="light"] .reading-ui .pair-relationships > legend { color: var(--product-text); }
html[data-theme="light"] .reading-ui .pair-choice > span { background: var(--product-base); border-color: var(--product-line-strong); color: var(--product-secondary); }
html[data-theme="light"] .reading-ui .pair-choice:hover > span { background: var(--product-hover); border-color: var(--product-line-strong); }
html[data-theme="light"] .reading-ui .pair-choice input:checked + span { background: var(--product-accent); border-color: var(--product-accent); color: var(--theme-button-text); }
html[data-theme="light"] .reading-ui .pair-choice input:focus-visible + span { outline-color: var(--theme-focus); }
html[data-theme="light"] .reading-ui .pair-setup-status { color: var(--product-secondary) !important; }
html[data-theme="light"] .reading-ui .pair-setup-dialog footer { background: var(--product-elevated); }

/* Evidence, report and tool states. */
html[data-theme="light"] .reasoning-timeline,
html[data-theme="light"] .final-report-heading { border-color: var(--product-line); }
html[data-theme="light"] :is(.reasoning-timeline-kicker, .reasoning-step-copy small, .final-report-heading span, .chat-v2-evidence-status, .chat-v2-validation) { color: var(--product-tertiary); }
html[data-theme="light"] .reasoning-step { color: var(--product-secondary); }
html[data-theme="light"] .reasoning-step:is(:hover, .is-active),
html[data-theme="light"] .reasoning-step.is-active .reasoning-step-copy small { color: var(--product-text); }
html[data-theme="light"] .reasoning-step-marker { color: var(--theme-success); background: #e5f1e9; box-shadow: 0 0 0 7px var(--product-bg); }
html[data-theme="light"] .reasoning-step.is-running .reasoning-step-marker { color: var(--theme-focus); background: var(--theme-highlight); }
html[data-theme="light"] .reasoning-step.is-failed .reasoning-step-marker { color: var(--theme-error); background: #f9e9e9; }
html[data-theme="light"] .reasoning-follow { background: var(--product-elevated); border-color: var(--product-line-strong); color: var(--product-secondary); box-shadow: 0 10px 28px rgba(25,25,20,.12); }
html[data-theme="light"] .reasoning-follow:hover { color: var(--product-text); border-color: var(--product-line-strong); }
html[data-theme="light"] .chat-v2-chunk { background: var(--product-elevated); border-color: var(--product-line); }
html[data-theme="light"] :is(.chat-v2-chunk-label, .chat-v2-chunk-body, .pair-verdict, .pair-evidence-item p) { color: var(--product-text); }
html[data-theme="light"] .reading-ui .evidence-detail-close:hover { background: var(--product-hover); color: var(--product-text); }
html[data-theme="light"] .reading-ui .evidence-claim:hover { background: var(--product-base); }
html[data-theme="light"] .reading-ui .evidence-claim.is-active { border-left-color: var(--evidence); background: var(--evidence-soft); }
html[data-theme="light"] .reading-ui .chat-v2-chunk.evidence-claim { border-left-color: var(--product-line); }
html[data-theme="light"] .reading-ui .chat-v2-chunk.evidence-claim.is-active { border-left-color: var(--evidence); }
html[data-theme="light"] .reading-ui :is(.evidence-claim-summary, .evidence-detail-group h3, .evidence-time h3, .evidence-time-row strong, .report-evidence-id) { color: var(--evidence); }
html[data-theme="light"] .reading-ui .evidence-time-strip span { border-color: var(--evidence); }
html[data-theme="light"] .reading-ui .evidence-time-strip span::before { background: var(--evidence); }
html[data-theme="light"] .reading-ui .evidence-button:hover,
html[data-theme="light"] .pair-evidence-actions button:hover,
html[data-theme="light"] .reading-ui .return-report { background: var(--product-hover); border-color: transparent; color: var(--product-text); }
html[data-theme="light"] .reading-ui .return-report:hover { background: var(--product-line); color: var(--product-text); }
html[data-theme="light"] .evidence-trace { filter: drop-shadow(0 0 4px var(--evidence-line)); }
html[data-theme="light"] [data-evidence-ref].evidence-trace { box-shadow: inset 0 0 0 1px var(--evidence); }
html[data-theme="light"] .answer-feedback { color: var(--product-secondary); }
html[data-theme="light"] .answer-feedback [aria-pressed="true"] { color: var(--product-text); background: var(--product-hover); }
html[data-theme="light"] .bazi-assessment { color: var(--product-secondary); }
html[data-theme="light"] .bazi-assessment summary { color: var(--product-text); }

/* Charts retain their renderer classes, five-element meanings and evidence targets. */
html[data-theme="light"] :is(.reading-ui, .pair-ui) .chart-svg { fill: var(--product-text); filter: drop-shadow(0 8px 15px rgba(25,25,20,.04)); }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .chart-svg rect { fill: var(--product-elevated); stroke: var(--product-line-strong); }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .chart-svg :is(.chart-title, .stem, .branch, .rasi, .graha, .lagna) { fill: var(--product-text); }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .chart-svg :is(.pillar-label, .section-label, .ten-god, .hidden, .meta, .tiny, .house-number) { fill: var(--product-secondary); }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .chart-svg :is(.chart-item.hl, .evidence-active-target.chart-item) rect { fill: var(--evidence-soft); stroke: var(--evidence); }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .chart-svg :is(.chart-item.hl, .evidence-active-target.chart-item) text { fill: var(--evidence); }
html[data-theme="light"] .reading-ui .house.evidence-active-target > rect { stroke: var(--evidence); }
html[data-theme="light"] .reading-ui .rasi-constellation { color: var(--theme-focus); }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .bazi-svg .element-metal { fill: #806000; }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .bazi-svg .element-wood { fill: #216e40; }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .bazi-svg .element-water { fill: #245da6; }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .bazi-svg .element-fire { fill: #b43838; }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .bazi-svg .element-earth { fill: #80512c; }
html[data-theme="light"] .reading-ui .fortune-cell .element-metal { color: #806000; }
html[data-theme="light"] .reading-ui .fortune-cell .element-wood { color: #216e40; }
html[data-theme="light"] .reading-ui .fortune-cell .element-water { color: #245da6; }
html[data-theme="light"] .reading-ui .fortune-cell .element-fire { color: #b43838; }
html[data-theme="light"] .reading-ui .fortune-cell .element-earth { color: #80512c; }
html[data-theme="light"] .reading-ui .fortune-cell:is(:hover, .reasoning-pulse),
html[data-theme="light"] .reading-ui :is(.chart-tabs button, .chart-subject-tabs button):is(:hover, .active),
html[data-theme="light"] .pair-chart-tabs button.active { background: var(--product-hover); color: var(--product-text); }
html[data-theme="light"] .reading-ui .fortune-cell:is(.active, .selected) { background: var(--product-hover); border-color: var(--product-line-strong); }
html[data-theme="light"] .reading-ui .fortune-cell .fortune-current { color: var(--product-text); }
html[data-theme="light"] .reading-ui .fortune-cell:is(.hl, .evidence-active-target) { background: var(--evidence-soft); border-color: var(--evidence); box-shadow: 0 0 0 1px var(--evidence); }
html[data-theme="light"] .reading-ui .chart-tabs button[data-tab="report"]::before { background: var(--product-line); color: var(--product-secondary); }
html[data-theme="light"] .reading-ui .chart-tabs button[data-tab="report"][data-report-state="complete"]::before { background: #e5f1e9; color: var(--theme-success); }
html[data-theme="light"] .reading-ui :is(.chart-tabs button, .chart-subject-tabs button).is-reading { background: var(--evidence-soft); border-color: var(--evidence); color: var(--evidence); animation-name: light-tool-tab-reading; }
@keyframes light-tool-tab-reading { from { box-shadow: inset 0 0 0 1px var(--evidence-soft); } to { box-shadow: inset 0 0 0 1px var(--evidence-line), 0 0 18px var(--evidence-soft); } }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .dasha-card { border-color: var(--product-line-strong); background: var(--product-elevated); }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .dasha-card:is(:hover, .reasoning-pulse),
html[data-theme="light"] .reading-ui :is(.dasha-now, .dasha-step):hover:not(:disabled) { background: var(--product-hover); }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .dasha-card[aria-expanded="true"] { border-color: var(--product-secondary); background: var(--product-hover); }
html[data-theme="light"] :is(.reading-ui, .pair-ui) .dasha-card:is(.hl, .evidence-active-target) { border-color: var(--evidence); background: var(--evidence-soft); }
html[data-theme="light"] .reading-ui .varga-step { background: var(--product-hover); }
html[data-theme="light"] .reading-ui .varga-step:hover:not(:disabled) { background: var(--product-line); }
html[data-theme="light"] .reading-ui .varga-dot::before { background: var(--product-line-strong); }
html[data-theme="light"] .reading-ui .varga-dot:hover::before { background: var(--product-secondary); }
html[data-theme="light"] .reading-ui .varga-dot.active::before { background: var(--product-text); }
html[data-theme="light"] .pair-back:hover { color: var(--product-text); }

/* Today's fortune, monthly reading and date picking. */
html[data-theme="light"] :is(.fortune-kicker, .monthly-loading, .monthly-dimension, .monthly-when, .daily-checkin-note, .daily-actions strong, .calendar-weekday, .calendar-pillar, .calendar-checked, .calendar-legend) { color: var(--product-secondary); }
html[data-theme="light"] :is(.fortune-tabs, .fortune-switch button, .monthly-system, .monthly-ask, .daily-checkin, .daily-verdict, .daily-note, .calendar-intent) { border-color: var(--product-line-strong); }
html[data-theme="light"] :is(.fortune-tabs button, .fortune-switch button, .monthly-system, .monthly-reason, .daily-index, .calendar-intent) { color: var(--product-secondary); }
html[data-theme="light"] :is(.monthly-headline, .monthly-event, .monthly-card h4, .monthly-advice, .daily-headline, .daily-actions p, .daily-checkin-question, .daily-verdict, .daily-note, .monthly-ask) { color: var(--product-text); }
html[data-theme="light"] :is(.monthly-overview, .monthly-card, .daily-index, .daily-note, .calendar-day) { background: var(--product-base); border-color: var(--product-line); }
html[data-theme="light"] .monthly-overview p { color: var(--product-text); }
html[data-theme="light"] .monthly-limited { color: #806000; }
html[data-theme="light"] :is(.daily-actions .daily-aside, .monthly-tendency[data-tendency="transition"]) { color: var(--product-secondary); }
html[data-theme="light"] .monthly-tendency { color: var(--product-secondary); }
html[data-theme="light"] :is(.monthly-tendency[data-tendency="expansion"], .daily-tone[data-tone="good"], .calendar-mark) { color: var(--theme-success); }
html[data-theme="light"] :is(.monthly-tendency[data-tendency="consolidation"], .daily-tone[data-tone="even"]) { color: var(--theme-focus); }
html[data-theme="light"] :is(.monthly-tendency[data-tendency="pressure"], .daily-tone[data-tone="careful"], .calendar-day[data-mark="avoid"] .calendar-mark) { color: var(--theme-error); }
html[data-theme="light"] .monthly-resonance { background: var(--product-hover); color: var(--product-text); }
html[data-theme="light"] :is(.monthly-date, .monthly-reason):hover { background: var(--product-hover); }
html[data-theme="light"] .fortune-switch button:hover { color: var(--product-text); border-color: var(--product-line-strong); }
html[data-theme="light"] :is(.fortune-tabs button[aria-selected="true"], .daily-verdict[aria-pressed="true"], .calendar-intent[aria-pressed="true"], .monthly-ask:hover, .daily-save) { background: var(--product-accent); border-color: var(--product-accent); color: var(--theme-button-text); }
html[data-theme="light"] .daily-save:disabled { background: var(--product-hover); color: var(--product-tertiary); }
html[data-theme="light"] .daily-dots i { background: var(--product-line); }
html[data-theme="light"] .daily-dots i.is-on { background: var(--product-text); }
html[data-theme="light"] .calendar-day { color: var(--product-text); }
html[data-theme="light"] .calendar-day:hover { border-color: var(--product-line-strong); }
html[data-theme="light"] .calendar-day::after { background: var(--theme-focus); }
html[data-theme="light"] .calendar-day[data-tone="good"]::after { background: var(--theme-success); }
html[data-theme="light"] .calendar-day[data-tone="careful"]::after { background: var(--theme-error); }
html[data-theme="light"] .calendar-day[data-mark="best"] { border-color: var(--theme-success); background: #eaf3ec; }

/* Older saved reports and their native event/source panels. */
html[data-theme="light"] .reading-ui :is(.event-entry-item, .observation-entry-item, .blind-status-item) { border-color: var(--product-line-strong); color: var(--product-secondary); }
html[data-theme="light"] .reading-ui :is(.event-entry-item strong, .observation-entry-item strong, .blind-status-item strong, .step h2, .analysis-plan strong, .step summary) { color: var(--product-text); }
html[data-theme="light"] .reading-ui :is(.event-entry, .validation-entry, .blind-entry) { background: var(--product-base) !important; border-color: var(--product-line-strong) !important; color: var(--product-text) !important; }
html[data-theme="light"] .reading-ui :is(.blind-status-item button, .step-feedback button, .step-feedback-note, .sources-panel, .event-dialog input, .event-dialog select, .event-dialog textarea, .event-dialog-actions button, .varga-menu > summary) { background: var(--product-elevated); border-color: var(--product-line-strong); color: var(--product-text); }
html[data-theme="light"] .reading-ui .step-feedback button:is(:hover, .active) { background: var(--theme-highlight); border-color: var(--theme-highlight-line); color: var(--theme-focus); }
html[data-theme="light"] .reading-ui :is(.step-feedback-status, .step-kind) { color: var(--theme-success); }
html[data-theme="light"] .reading-ui :is(.analysis-plan p, .analysis-plan li, .source-meta, .source-excerpt, .event-dialog label, .event-forms-fieldset legend, .varga-menu-label, .varga-option small) { color: var(--product-secondary); }
html[data-theme="light"] .reading-ui :is(.analysis-plan-action, .source-item a, .varga-option) { color: var(--product-text); }
html[data-theme="light"] .reading-ui :is(.source-item, .event-forms-fieldset, .varga-menu-group) { border-color: var(--product-line); }
html[data-theme="light"] .reading-ui .event-dialog-actions button[type="submit"] { background: var(--product-accent); border-color: var(--product-accent); color: var(--theme-button-text); }
html[data-theme="light"] .reading-ui .event-dialog-status { color: var(--theme-success) !important; }
html[data-theme="light"] .reading-ui .varga-option:hover { background: var(--product-hover); }
html[data-theme="light"] .reading-ui .varga-menu[open] > summary { color: var(--product-text); border-color: var(--product-line-strong); }
html[data-theme="light"] .reading-ui .varga-status { color: var(--theme-focus) !important; }
html[data-theme="light"] .reading-ui .varga-option[data-available="false"] .varga-status { color: var(--product-tertiary) !important; }

/* Preserve the flowing mark and evidence pulse against a light canvas. */
html[data-theme="light"] .reading-ui .thinking-brand { --thinking-metal: #17171a; --thinking-metal-middle: #62626b; }
html[data-theme="light"] .reading-ui .thinking-mark-original { filter: invert(1); }
html[data-theme="light"] .reading-ui .chart-item.reasoning-pulse :is(text, tspan),
html[data-theme="light"] .reading-ui .fortune-cell.reasoning-pulse b span { animation-name: light-evidence-breathe; }
@keyframes light-evidence-breathe { 0%, 100% { opacity: .76; filter: brightness(1); } 50% { opacity: 1; filter: brightness(.8) drop-shadow(0 0 3px var(--evidence-soft)); } }
html[data-theme="light"] .reading-ui .house.reasoning-reveal > .rasi-constellation { animation-name: light-constellation-breathe; }
@keyframes light-constellation-breathe { 0%, 100% { opacity: .46; filter: brightness(1); } 50% { opacity: .92; filter: brightness(.9) drop-shadow(0 0 2px var(--evidence-line)); } }

/* Account settings (templates/account.html): a section list on the left and one row per setting, the way mature
   apps lay out settings. Monochrome on purpose; the gold accent of the older account pages is not used here. */
.settings-ui { background: var(--product-bg); }
.settings-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 96px; }
.settings-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.settings-top-actions { display: flex; align-items: center; gap: 4px; }
.settings-back { margin-left: 10px; color: var(--product-secondary); font-size: 13px; text-decoration: none; white-space: nowrap; }
.settings-back:hover { color: var(--product-text); }
.settings-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: start; }
.settings-nav { position: sticky; top: 24px; display: grid; gap: 2px; }
.settings-ui .settings-nav h1 { margin: 0 0 16px; padding: 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.settings-nav a { padding: 8px 10px; border-radius: 8px; color: var(--product-secondary); font-size: 14px; text-decoration: none; }
.settings-nav a:hover, .settings-nav a[aria-current] { background: var(--product-hover); color: var(--product-text); }
.settings-nav a.settings-nav-admin { margin-top: 14px; border-top: 1px solid var(--product-line); border-radius: 0; padding-top: 16px; }
.settings-main { min-width: 0; }
.settings-section { margin-bottom: 48px; scroll-margin-top: 24px; }
.settings-section > h2 { margin: 0 0 14px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.settings-desc { margin: -6px 0 14px; color: var(--product-secondary); font-size: 13px; line-height: 1.6; }
.settings-desc a { color: var(--product-text); text-underline-offset: 3px; }
.settings-flash { margin: 0 0 18px; padding: 10px 14px; border: 1px solid var(--product-line); border-radius: 10px; color: var(--product-text); font-size: 13px; }
.settings-group { border: 1px solid var(--product-line); border-radius: 14px; background: var(--product-elevated); }
.settings-ui form.settings-group { display: block; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; }
.settings-row + .settings-row { border-top: 1px solid var(--product-line); }
.settings-row-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.settings-row-end { justify-content: flex-end; padding-top: 14px; padding-bottom: 14px; }
.settings-text { flex: 1; min-width: 0; }
.settings-text h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; }
.settings-text p { margin: 4px 0 0; color: var(--product-secondary); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.settings-text p strong { color: var(--product-text); font-weight: 500; }
.settings-action { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.settings-ui form.settings-action { display: flex; }
.settings-subhead { margin: 24px 0 10px; color: var(--product-secondary); font-size: 13px; font-weight: 500; }
.settings-subhead.is-danger { color: #ff8f8f; }
.settings-group.is-danger { border-color: rgba(255, 120, 120, .32); }
.settings-tag { padding: 2px 8px; border: 1px solid var(--product-line-strong); border-radius: 999px; color: var(--product-secondary); font-size: 11px; font-weight: 500; }
.settings-note { color: var(--product-secondary); font-size: 12px; }
.settings-ui .settings-btn { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 36px; margin: 0; padding: 0 14px; border: 1px solid var(--product-line-strong); border-radius: 9px; background: transparent; color: var(--product-text); font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; filter: none; }
.settings-ui .settings-btn:hover { background: var(--product-hover); filter: none; }
.settings-ui .settings-btn.is-primary { border-color: transparent; background: var(--product-text); color: var(--theme-button-text); }
.settings-ui .settings-btn.is-primary:hover { opacity: .88; background: var(--product-text); }
.settings-ui .settings-btn.is-danger { border-color: rgba(255, 120, 120, .45); color: #ff8f8f; }
.settings-ui .settings-btn.is-danger:hover { background: rgba(255, 120, 120, .1); }
.settings-ui .settings-btn.is-quiet { min-height: 30px; padding: 0 10px; border-color: transparent; color: var(--product-secondary); }
.settings-ui .settings-btn:disabled { opacity: .5; cursor: not-allowed; }
.settings-ui .settings-inline-form { display: flex; gap: 8px; max-width: 480px; margin-top: 12px; }
.settings-ui .settings-inline-form input:not([type="checkbox"]) { flex: 1; min-width: 0; min-height: 36px; background: var(--product-base); font-size: 14px; }
.settings-ui .settings-inline-form .settings-note { flex: 1; align-self: center; }
.settings-disclosure { margin-top: 8px; }
.settings-disclosure > summary { width: fit-content; color: var(--product-secondary); font-size: 13px; cursor: pointer; }
.settings-disclosure > summary:hover { color: var(--product-text); }
.settings-list { margin: 12px 0 0; padding: 0; list-style: none; max-width: 480px; }
.settings-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--product-line); color: var(--product-secondary); font-size: 13px; }
.settings-ui .settings-list form { display: block; }
.settings-ui .settings-text .credit-total { margin: 6px 0 2px; color: var(--product-text); font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.settings-ui .settings-text .credit-total small { font-size: 13px; font-weight: 400; }
.settings-ui .settings-text .referral-code { margin-top: 6px; color: var(--product-text); font-size: 20px; font-weight: 600; letter-spacing: .18em; }
.settings-ui .settings-text .referral-link { font-size: 12px; }
.settings-ui .account-identities { margin: 12px 0 0; }
.settings-ui .account-danger { margin: 8px 0 0; padding: 0; border: 0; }
.settings-ui .account-danger > summary { width: fit-content; color: var(--product-secondary); font-size: 13px; }
.settings-ui .account-danger form, .settings-ui .account-danger { display: block; }
.settings-ui .account-danger .settings-btn { margin-top: 4px; }
.settings-ui .account-danger p a { color: var(--product-text); text-underline-offset: 3px; }
.settings-ui .account-report-people { display: grid; gap: 10px; }
.settings-ui .account-report-kinds { display: flex; gap: 18px; }
.settings-share-list { margin: 0; padding: 0; list-style: none; }
.settings-share-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--product-line); }
.settings-share-text { display: grid; flex: 1; gap: 3px; min-width: 0; }
.settings-share-text strong { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.settings-share-text > span { color: var(--product-secondary); font-size: 12px; }
.settings-ui .settings-share-list form { display: block; }
#shares { scroll-margin-top: 24px; }
@media (max-width: 860px) {
  .settings-top { margin-bottom: 24px; }
  .settings-layout { grid-template-columns: 1fr; gap: 24px; }
  .settings-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .settings-ui .settings-nav h1 { flex: 0 0 100%; margin-bottom: 8px; padding: 0; font-size: 24px; }
  .settings-nav a { padding: 6px 12px; border: 1px solid var(--product-line); border-radius: 999px; font-size: 13px; }
  .settings-nav a.settings-nav-admin { margin-top: 0; padding-top: 6px; border-top: 1px solid var(--product-line); border-radius: 999px; }
  .settings-row { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .settings-action { justify-content: flex-start; }
  .settings-row-end { align-items: flex-end; }
  .settings-share-list li { flex-direction: column; align-items: stretch; gap: 6px; }
}
/* The older light-theme rules paint every .account-ui button dark with white text; settings buttons opt out. */
html[data-theme="light"] .settings-ui .settings-btn { background: transparent; color: var(--product-text); }
html[data-theme="light"] .settings-ui .settings-btn:hover { background: var(--product-hover); }
html[data-theme="light"] .settings-ui .settings-btn.is-primary { background: var(--product-text); color: var(--theme-button-text); }
html[data-theme="light"] .settings-ui .settings-btn.is-quiet { color: var(--product-secondary); }
html[data-theme="light"] .settings-ui .settings-btn.is-danger:hover { background: rgba(180, 35, 45, .08); }
html[data-theme="light"] .settings-subhead.is-danger, html[data-theme="light"] .settings-ui .settings-btn.is-danger { color: #b4232d; }
html[data-theme="light"] .settings-group.is-danger, html[data-theme="light"] .settings-ui .settings-btn.is-danger { border-color: rgba(180, 35, 45, .35); }
html[data-theme="light"] { --evidence: #6b48c8; --evidence-line: rgba(107, 72, 200, .45); --evidence-soft: #f2eefd; }
html[data-theme="light"] .reading-ui .chart-legend { border-color: rgba(0,0,0,.12); background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.14); }
html[data-theme="light"] .reading-ui .chart-legend-toggle[aria-expanded="true"] { background: rgba(0,0,0,.06); color: var(--product-text); }
html[data-theme="light"] .reading-ui .chart-legend-elements .element-wood i { background: #216e40; }
html[data-theme="light"] .reading-ui .chart-legend-elements .element-fire i { background: #b43838; }
html[data-theme="light"] .reading-ui .chart-legend-elements .element-earth i { background: #80512c; }
html[data-theme="light"] .reading-ui .chart-legend-elements .element-metal i { background: #806000; }
html[data-theme="light"] .reading-ui .chart-legend-elements .element-water i { background: #245da6; }

.error-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--product-line); }
.error-links a { color: var(--product-secondary); font-size: 13px; text-underline-offset: 4px; }

html[data-theme="light"] .monthly-retry:hover { background: rgba(0,0,0,.05); }

/* Under a chat answer: 查看完整分析, then quiet text links for 分享 and 导出 PDF. */
.reading-ui .answer-quick-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; }
.reading-ui .answer-quick-link { min-height: 32px; padding: 0 6px; border: 0; background: transparent; color: rgba(245,245,247,.62); font: inherit; font-size: 13px; cursor: pointer; }
.reading-ui .answer-quick-link:hover { color: #f5f5f7; text-decoration: underline; }
html[data-theme="light"] .reading-ui .answer-quick-link { color: var(--product-secondary); }
html[data-theme="light"] .reading-ui .answer-quick-link:hover { color: var(--product-text); }
.reading-ui .answer-quick-actions { margin: 16px 0 24px; }
.reading-ui .answer-quick-actions .open-analysis-result { margin: 0; }

/* Phones: the ten-god labels and hints under the BaZi chart stay readable (they were 8–9px). */
@media (max-width: 640px) {
  .reading-ui .fortune-cell em { font-size: 11px; }
  .reading-ui :is(.fortune-years header span, .fortune-level header span) { font-size: 11px; }
}
/* Phones: all 20 chart dots fit on one line instead of running off the right edge. */
@media (max-width: 640px) {
  .reading-ui .varga-dot { flex-basis: 16px; width: 16px; min-width: 16px; }
  .reading-ui .varga-dot.active::before { width: 12px; }
}
/* Phones: points and membership come first on the account page; signing out can wait further down. */
@media (max-width: 640px) {
  .account-ui .settings-main { display: flex; flex-direction: column; }
  .account-ui .settings-main > .settings-flash { order: -2; }
  .account-ui .settings-main > #plan { order: -1; }
  .account-ui .settings-nav a[href="#plan"] { order: -1; }
  .account-ui .settings-nav h1 { order: -2; }
}
/* "My account" stays on one line beside the theme and language buttons. */
.reading-ui .sidebar-foot > .sidebar-foot-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
