:root {
  --goldval-bg: #09090a;
  --goldval-surface: #151517;
  --goldval-surface-strong: #1c1c1f;
  --goldval-line: rgba(255, 255, 255, 0.09);
  --goldval-text: #f5f5f7;
  --goldval-secondary: rgba(235, 235, 245, 0.62);
  --goldval-tertiary: rgba(235, 235, 245, 0.42);
  --goldval-gold: #d6b15e;
  --goldval-gold-bright: #f1d58f;
  --goldval-green: #58c79a;
  --goldval-red: #ff746c;
  --goldval-blue: #72a7ff;
}

.work-card.valuation-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(214, 177, 94, 0.2), transparent 38%),
    linear-gradient(145deg, #191815 0%, #0b0b0c 68%);
  border-color: rgba(214, 177, 94, 0.42);
  box-shadow: 0 12px 28px rgba(9, 9, 10, 0.25);
  color: #fff;
}

.work-card.valuation-card::after {
  content: "会员";
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 3px 7px;
  border: 1px solid rgba(241, 213, 143, 0.32);
  border-radius: 999px;
  background: rgba(214, 177, 94, 0.12);
  color: #f1d58f;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.work-card.valuation-card h3 {
  color: #fff;
}

.work-card.valuation-card p {
  color: #d9bd79;
}

.work-card.valuation-card:active {
  transform: scale(0.975);
}

body.gold-valuation-active {
  min-width: 0;
  overflow-x: hidden;
  background: var(--goldval-bg);
  color: var(--goldval-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body.gold-valuation-active #icp-footer {
  display: none;
}

body.gold-valuation-active #root,
body.gold-valuation-active .gold-valuation-host {
  background: var(--goldval-bg);
}

body.gold-valuation-active .gold-valuation-page {
  position: relative;
  width: min(100%, 560px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: clip;
  background:
    radial-gradient(circle at 88% -4%, rgba(214, 177, 94, 0.16), transparent 25rem),
    var(--goldval-bg);
  color: var(--goldval-text);
  font-variant-numeric: tabular-nums;
  isolation: isolate;
}

.goldval-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  padding: max(8px, env(safe-area-inset-top)) 16px 8px;
  background: rgba(9, 9, 10, 0.72);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.goldval-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 12px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(9, 9, 10, 0.22), transparent);
}

.goldval-back,
.goldval-icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--goldval-text);
  -webkit-tap-highlight-color: transparent;
  transition: transform 100ms ease-out, background-color 120ms ease-out;
}

.goldval-back {
  font-size: 31px;
  font-weight: 350;
  line-height: 1;
}

.goldval-back:active,
.goldval-icon-button:active,
.goldval-button:active,
.goldval-row-button:active,
.goldval-sheet-close:active {
  transform: scale(0.96);
  background-color: rgba(255, 255, 255, 0.13);
}

.goldval-header-title {
  min-width: 0;
  padding-left: 8px;
}

.goldval-header-title strong,
.goldval-header-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldval-header-title strong {
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.018em;
}

.goldval-header-title span {
  margin-top: 2px;
  color: var(--goldval-secondary);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.goldval-member-pill,
.goldval-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(214, 177, 94, 0.25);
  border-radius: 999px;
  background: rgba(214, 177, 94, 0.1);
  color: var(--goldval-gold-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.goldval-content {
  display: grid;
  gap: 14px;
  padding: 10px 16px calc(30px + env(safe-area-inset-bottom));
}

.goldval-card {
  overflow: hidden;
  border: 1px solid var(--goldval-line);
  border-radius: 22px;
  background: rgba(21, 21, 23, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.goldval-hero {
  position: relative;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(214, 177, 94, 0.19), transparent 42%),
    linear-gradient(150deg, rgba(30, 29, 25, 0.98), rgba(17, 17, 19, 0.98));
}

.goldval-psi-card {
  position: relative;
  padding: 20px;
  border-color: rgba(214, 177, 94, 0.3);
  background:
    radial-gradient(circle at 91% 4%, rgba(241, 213, 143, 0.2), transparent 37%),
    radial-gradient(circle at 8% 96%, rgba(114, 167, 255, 0.1), transparent 35%),
    linear-gradient(148deg, rgba(33, 31, 26, 0.96), rgba(18, 18, 21, 0.97) 58%);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
  isolation: isolate;
}

.goldval-psi-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.055), transparent 28%);
}

.goldval-psi-head,
.goldval-psi-value {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.goldval-psi-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(114, 167, 255, 0.22);
  border-radius: 999px;
  background: rgba(114, 167, 255, 0.09);
  color: #a8c7ff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.goldval-psi-value {
  align-items: flex-end;
  margin-top: 20px;
}

.goldval-psi-value p {
  margin: 0 0 5px;
  color: var(--goldval-secondary);
  font-size: 12px;
  font-weight: 600;
}

.goldval-psi-number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}

.goldval-psi-number strong {
  color: var(--goldval-text);
  font-size: clamp(38px, 12vw, 52px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.goldval-psi-number span {
  color: var(--goldval-secondary);
  font-size: 10px;
  font-weight: 600;
}

.goldval-psi-move {
  margin-bottom: 4px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 116, 108, 0.2);
  border-radius: 999px;
  background: rgba(255, 116, 108, 0.08);
  color: #ffaaa5;
  font-size: 10px;
  font-weight: 720;
  white-space: nowrap;
}

.goldval-psi-summary {
  margin: 17px 0 0;
  color: var(--goldval-secondary);
  font-size: 12px;
  line-height: 1.65;
}

.goldval-psi-summary strong {
  color: var(--goldval-gold-bright);
  font-weight: 730;
}

.goldval-psi-range {
  margin-top: 18px;
}

.goldval-psi-range-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.goldval-psi-range-values > span {
  min-width: 0;
}

.goldval-psi-range-values > span:nth-child(2) {
  text-align: center;
}

.goldval-psi-range-values > span:last-child {
  text-align: right;
}

.goldval-psi-range-values small,
.goldval-psi-range-values b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldval-psi-range-values small {
  color: var(--goldval-secondary);
  font-size: 9px;
}

.goldval-psi-range-values b {
  margin-top: 3px;
  color: var(--goldval-text);
  font-size: 13px;
  font-weight: 720;
}

.goldval-psi-range-values > span:nth-child(2) b {
  color: var(--goldval-gold-bright);
}

.goldval-psi-lock {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 11px 12px;
  border: 1px solid rgba(88, 199, 154, 0.14);
  border-radius: 14px;
  background: rgba(88, 199, 154, 0.055);
}

.goldval-psi-lock-icon {
  position: relative;
  width: 25px;
  height: 22px;
  border: 1.5px solid rgba(140, 224, 189, 0.75);
  border-radius: 7px;
}

.goldval-psi-lock-icon::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 5px;
  width: 11px;
  height: 10px;
  border: 1.5px solid rgba(140, 224, 189, 0.75);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.goldval-psi-lock strong,
.goldval-psi-lock span {
  display: block;
}

.goldval-psi-lock strong {
  color: #9ae5c5;
  font-size: 11px;
  font-weight: 710;
}

.goldval-psi-lock div > span {
  margin-top: 3px;
  color: var(--goldval-secondary);
  font-size: 9px;
  line-height: 1.4;
}

.goldval-psi-toggle {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 4px 0 2px;
  border: 0;
  background: transparent;
  color: var(--goldval-gold-bright);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 80ms linear, transform 100ms ease-out;
}

.goldval-psi-toggle:active {
  opacity: 0.64;
  transform: scale(0.985);
}

.goldval-psi-chevron {
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 320ms cubic-bezier(0.2, 0.85, 0.25, 1.15);
}

.goldval-psi-card.is-logic-open .goldval-psi-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.goldval-psi-logic {
  display: grid;
  max-height: 0;
  gap: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    max-height 420ms cubic-bezier(0.22, 0.9, 0.26, 1),
    opacity 180ms ease-out,
    transform 280ms cubic-bezier(0.22, 0.9, 0.26, 1);
}

.goldval-psi-card.is-logic-open .goldval-psi-logic {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
}

.goldval-psi-layer {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.15);
}

.goldval-psi-layer-index {
  color: var(--goldval-gold);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.goldval-psi-layer strong {
  display: block;
  font-size: 11px;
  font-weight: 710;
}

.goldval-psi-layer p {
  margin: 4px 0 0;
  color: var(--goldval-secondary);
  font-size: 10px;
  line-height: 1.5;
}

.goldval-psi-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 2px 0;
  color: var(--goldval-tertiary);
  font-size: 9px;
}

.goldval-psi-note span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--goldval-secondary);
  font-size: 9px;
}

.goldval-v11-section {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.022), transparent 42%),
    rgba(21, 21, 23, 0.94);
}

.goldval-v11-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.goldval-v11-section-head h2 {
  margin: 7px 0 0;
  color: var(--goldval-text);
  font-size: 19px;
  font-weight: 730;
  letter-spacing: -0.026em;
  line-height: 1.15;
}

.goldval-v11-state {
  display: inline-flex;
  min-height: 26px;
  flex-shrink: 0;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(114, 167, 255, 0.2);
  border-radius: 999px;
  background: rgba(114, 167, 255, 0.08);
  color: #a8c7ff;
  font-size: 9px;
  font-weight: 720;
  white-space: nowrap;
}

.goldval-v11-state.is-controlled {
  border-color: rgba(88, 199, 154, 0.2);
  background: rgba(88, 199, 154, 0.08);
  color: #9ae5c5;
}

.goldval-v11-intro {
  margin: 12px 0 0;
  color: var(--goldval-secondary);
  font-size: 11px;
  line-height: 1.6;
}

.goldval-v11-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}

.goldval-v11-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.17);
}

.goldval-v11-metric:nth-child(3) {
  grid-column: 1 / -1;
}

.goldval-v11-metric span,
.goldval-v11-metric small,
.goldval-v11-metric strong {
  display: block;
}

.goldval-v11-metric span {
  overflow: hidden;
  color: var(--goldval-secondary);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldval-v11-metric strong {
  margin-top: 6px;
  color: var(--goldval-text);
  font-size: 22px;
  font-weight: 740;
  letter-spacing: -0.035em;
}

.goldval-v11-metric small {
  margin-top: 4px;
  color: var(--goldval-tertiary);
  font-size: 8px;
  line-height: 1.45;
}

.goldval-v11-metric.is-gold strong {
  color: var(--goldval-gold-bright);
}

.goldval-v11-metric.is-green strong {
  color: #9ae5c5;
}

.goldval-v11-metric.is-blue strong {
  color: #a8c7ff;
}

.goldval-v11-footnote {
  margin: 12px 1px 0;
  color: var(--goldval-tertiary);
  font-size: 9px;
  line-height: 1.55;
}

.goldval-v11-driver-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.goldval-v11-driver {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.15);
}

.goldval-v11-driver-index {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  background: rgba(214, 177, 94, 0.1);
  color: var(--goldval-gold);
  font-size: 8px;
  font-weight: 780;
}

.goldval-v11-driver strong,
.goldval-v11-driver p {
  margin: 0;
}

.goldval-v11-driver strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.goldval-v11-driver p {
  margin-top: 4px;
  color: var(--goldval-secondary);
  font-size: 9px;
  line-height: 1.45;
}

.goldval-v11-driver b {
  color: var(--goldval-text);
  font-size: 13px;
  font-weight: 730;
  white-space: nowrap;
}

.goldval-v11-driver.is-positive b {
  color: var(--goldval-gold-bright);
}

.goldval-v11-driver.is-negative b {
  color: #a8c7ff;
}

.goldval-v11-driver.is-neutral b {
  color: var(--goldval-secondary);
}

.goldval-v11-ai blockquote {
  margin: 16px 0 0;
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(214, 177, 94, 0.65);
  color: rgba(245, 245, 247, 0.83);
  font-size: 12px;
  line-height: 1.75;
}

.goldval-v11-ai-rule {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 116, 108, 0.15);
  border-radius: 14px;
  background: rgba(255, 116, 108, 0.055);
}

.goldval-v11-ai-rule > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 116, 108, 0.1);
  color: #ffaaa5;
  font-size: 14px;
  font-weight: 740;
}

.goldval-v11-ai-rule strong {
  display: block;
  color: #ffbbb6;
  font-size: 10px;
  font-weight: 710;
}

.goldval-v11-ai-rule p {
  margin: 3px 0 0;
  color: var(--goldval-secondary);
  font-size: 9px;
  line-height: 1.45;
}

.goldval-v11-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
}

.goldval-v11-report-cell {
  min-width: 0;
  padding: 11px 12px;
  background: #151517;
}

.goldval-v11-report-cell span,
.goldval-v11-report-cell strong {
  display: block;
}

.goldval-v11-report-cell span {
  color: var(--goldval-tertiary);
  font-size: 8px;
}

.goldval-v11-report-cell strong {
  overflow-wrap: anywhere;
  margin-top: 4px;
  color: var(--goldval-text);
  font-size: 10px;
  font-weight: 680;
  line-height: 1.4;
}

.goldval-v11-monitor {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(114, 167, 255, 0.13);
  border-radius: 14px;
  background: rgba(114, 167, 255, 0.05);
}

.goldval-v11-monitor strong {
  display: block;
  color: #a8c7ff;
  font-size: 10px;
  font-weight: 710;
}

.goldval-v11-monitor p {
  margin: 5px 0 0;
  color: var(--goldval-secondary);
  font-size: 9px;
  line-height: 1.55;
}

.goldval-v11-brief {
  padding: 18px;
  background:
    radial-gradient(circle at 94% 4%, rgba(114, 167, 255, 0.1), transparent 32%),
    rgba(21, 21, 23, 0.96);
}

.goldval-v11-brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.goldval-v11-brief-head > div:first-child {
  min-width: 0;
}

.goldval-v11-brief h2 {
  margin: 8px 0 0;
  color: var(--goldval-text);
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.goldval-v11-operation {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  justify-items: end;
  min-width: 66px;
  padding: 7px 9px;
  border: 1px solid rgba(214, 177, 94, 0.22);
  border-radius: 12px;
  background: rgba(214, 177, 94, 0.08);
}

.goldval-v11-operation strong {
  color: var(--goldval-gold-bright);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.02em;
}

.goldval-v11-operation p {
  margin: 0;
  color: var(--goldval-tertiary);
  font-size: 7px;
  line-height: 1.3;
  white-space: nowrap;
}

.goldval-v11-brief-copy {
  margin: 14px 0 0;
  color: var(--goldval-secondary);
  font-size: 11px;
  line-height: 1.6;
}

.goldval-v11-ai-steps {
  display: grid;
  gap: 0;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.14);
}

.goldval-v11-ai-steps article {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 9px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.goldval-v11-ai-steps article:last-child {
  border-bottom: 0;
}

.goldval-v11-ai-steps span {
  color: var(--goldval-gold);
  font-size: 9px;
  font-weight: 730;
}

.goldval-v11-ai-steps p {
  margin: 0;
  color: var(--goldval-secondary);
  font-size: 10px;
  line-height: 1.6;
}

.goldval-v11-plain-result {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(214, 177, 94, 0.16);
  border-radius: 14px;
  background: rgba(214, 177, 94, 0.06);
}

.goldval-v11-plain-result span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: rgba(214, 177, 94, 0.11);
  color: var(--goldval-gold-bright);
  font-size: 14px;
}

.goldval-v11-plain-result strong {
  display: block;
  margin-top: 2px;
  color: var(--goldval-gold-bright);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.goldval-v11-plain-result small {
  display: block;
  color: var(--goldval-tertiary);
  font-size: 8px;
  line-height: 1.3;
}

.goldval-v11-brief-label {
  margin: 18px 0 0;
  color: var(--goldval-secondary);
  font-size: 10px;
  font-weight: 700;
}

.goldval-v11-brief-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.goldval-v11-brief-numbers .goldval-v11-metric {
  padding: 10px 9px;
}

.goldval-v11-brief-numbers .goldval-v11-metric:nth-child(3) {
  grid-column: auto;
}

.goldval-v11-brief-numbers .goldval-v11-metric span {
  font-size: 8px;
}

.goldval-v11-brief-numbers .goldval-v11-metric strong {
  font-size: 18px;
}

.goldval-v11-brief-confidence {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(88, 199, 154, 0.13);
  border-radius: 14px;
  background: rgba(88, 199, 154, 0.05);
}

.goldval-v11-brief-confidence span,
.goldval-v11-brief-confidence strong {
  display: block;
}

.goldval-v11-brief-confidence span {
  color: var(--goldval-secondary);
  font-size: 8px;
}

.goldval-v11-brief-confidence strong {
  margin-top: 3px;
  color: #9ae5c5;
  font-size: 13px;
  font-weight: 730;
  white-space: nowrap;
}

.goldval-v11-brief-confidence p {
  margin: 0;
  color: var(--goldval-secondary);
  font-size: 9px;
  line-height: 1.5;
}

.goldval-v11-brief-toggle {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 4px 0 2px;
  border: 0;
  background: transparent;
  color: var(--goldval-gold-bright);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 80ms linear, transform 100ms ease-out;
}

.goldval-v11-brief-toggle:active {
  opacity: 0.64;
  transform: scale(0.985);
}

.goldval-v11-brief-chevron {
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 320ms cubic-bezier(0.2, 0.85, 0.25, 1.15);
}

.goldval-v11-brief.is-report-open .goldval-v11-brief-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.goldval-v11-brief-report {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 380ms cubic-bezier(0.22, 0.9, 0.26, 1),
    opacity 180ms ease-out,
    transform 280ms cubic-bezier(0.22, 0.9, 0.26, 1);
}

.goldval-v11-brief.is-report-open .goldval-v11-brief-report {
  max-height: 760px;
  opacity: 1;
  transform: translateY(0);
}

.goldval-v11-detail-label {
  margin: 10px 1px 0;
  color: var(--goldval-tertiary);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.08em;
}

.goldval-v11-brief-report .goldval-v11-ai-steps {
  margin-top: 8px;
}

.goldval-v11-brief-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.goldval-eyebrow,
.goldval-section-label {
  margin: 0;
  color: var(--goldval-gold);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.goldval-status {
  margin: 8px 0 0;
  color: var(--goldval-text);
  font-size: clamp(32px, 10vw, 44px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.goldval-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.goldval-chip.is-positive {
  border-color: rgba(88, 199, 154, 0.24);
  background: rgba(88, 199, 154, 0.1);
  color: #8ce0bd;
}

.goldval-chip.is-negative {
  border-color: rgba(255, 116, 108, 0.24);
  background: rgba(255, 116, 108, 0.1);
  color: #ffaaa5;
}

.goldval-chip.is-neutral {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: var(--goldval-secondary);
}

.goldval-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.goldval-metric {
  min-width: 0;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.goldval-metric span,
.goldval-metric small {
  display: block;
  color: var(--goldval-secondary);
  font-size: 11px;
  font-weight: 560;
}

.goldval-metric strong {
  display: block;
  overflow: hidden;
  margin: 5px 0 3px;
  color: var(--goldval-text);
  font-size: clamp(21px, 6vw, 27px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldval-metric strong em {
  margin-left: 3px;
  color: var(--goldval-secondary);
  font-size: 11px;
  font-style: normal;
  font-weight: 560;
  letter-spacing: 0;
}

.goldval-range {
  margin-top: 18px;
}

.goldval-range-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--goldval-secondary);
  font-size: 11px;
}

.goldval-range-copy strong {
  color: var(--goldval-text);
  font-weight: 650;
}

.goldval-range-track {
  position: relative;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #477e69, #d6b15e 50%, #a9514c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.goldval-range-marker {
  position: absolute;
  top: 50%;
  left: var(--position, 50%);
  width: 18px;
  height: 18px;
  border: 3px solid #111;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
}

.goldval-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 13px 15px;
  border: 1px solid rgba(214, 177, 94, 0.22);
  border-radius: 16px;
  background: rgba(214, 177, 94, 0.08);
}

.goldval-banner.is-danger {
  border-color: rgba(255, 116, 108, 0.22);
  background: rgba(255, 116, 108, 0.08);
}

.goldval-banner-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(214, 177, 94, 0.15);
  color: var(--goldval-gold-bright);
  font-size: 13px;
  font-weight: 800;
}

.goldval-banner strong,
.goldval-banner span {
  display: block;
}

.goldval-banner strong {
  font-size: 13px;
  font-weight: 720;
}

.goldval-banner span {
  margin-top: 3px;
  color: var(--goldval-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.goldval-section {
  padding: 18px;
}

.goldval-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.goldval-section-heading h2,
.goldval-section-heading p {
  margin: 0;
}

.goldval-section-heading h2 {
  color: var(--goldval-text);
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.goldval-section-heading p {
  margin-top: 4px;
  color: var(--goldval-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.goldval-row-button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--goldval-gold-bright);
  font-size: 11px;
  font-weight: 700;
  transition: transform 100ms ease-out, background-color 120ms ease-out;
}

.goldval-confidence-layout {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
}

.goldval-confidence-ring {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--goldval-surface) 60%, transparent 61%),
    conic-gradient(var(--goldval-gold) var(--score), rgba(255, 255, 255, 0.07) 0);
}

.goldval-confidence-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: inherit;
}

.goldval-confidence-ring strong,
.goldval-confidence-ring span {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.goldval-confidence-ring strong {
  font-size: 28px;
  font-weight: 740;
  letter-spacing: -0.04em;
}

.goldval-confidence-ring span {
  margin-top: -3px;
  color: var(--goldval-secondary);
  font-size: 10px;
}

.goldval-confidence-copy {
  display: grid;
  gap: 8px;
}

.goldval-confidence-copy p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--goldval-secondary);
  font-size: 12px;
}

.goldval-confidence-copy p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.goldval-confidence-copy b {
  color: var(--goldval-text);
  font-weight: 680;
}

.goldval-horizons {
  display: grid;
  gap: 10px;
}

.goldval-horizon {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.goldval-horizon-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: baseline;
}

.goldval-horizon-head strong {
  color: var(--goldval-text);
  font-size: 14px;
  font-weight: 700;
}

.goldval-horizon-head span {
  color: var(--goldval-secondary);
  font-size: 11px;
}

.goldval-horizon-head b {
  color: var(--goldval-gold-bright);
  font-size: 21px;
  font-weight: 730;
  letter-spacing: -0.03em;
}

.goldval-direction-signal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(213, 177, 91, 0.18);
  border-radius: 12px;
  background: rgba(213, 177, 91, 0.07);
}

.goldval-direction-signal strong {
  color: var(--goldval-gold-bright);
  font-size: 14px;
}

.goldval-direction-signal span {
  color: var(--goldval-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.goldval-direction-signal.is-bullish strong {
  color: var(--goldval-green);
}

.goldval-direction-signal.is-bearish strong {
  color: var(--goldval-red);
}

.goldval-probability-track {
  display: flex;
  height: 7px;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.goldval-probability-track i {
  display: block;
  height: 100%;
}

.goldval-probability-track .up {
  background: var(--goldval-green);
}

.goldval-probability-track .flat {
  background: #6f7078;
}

.goldval-probability-track .down {
  background: var(--goldval-red);
}

.goldval-horizon-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: var(--goldval-tertiary);
  font-size: 10px;
}

.goldval-horizon-target {
  display: grid;
  gap: 3px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.goldval-horizon-target strong {
  color: var(--goldval-secondary);
  font-size: 11px;
  font-weight: 650;
}

.goldval-horizon-target span,
.goldval-horizon-target small {
  color: var(--goldval-tertiary);
  font-size: 10px;
  line-height: 1.45;
}

.goldval-horizon-target small {
  color: var(--goldval-gold-bright);
}

.goldval-factor-list {
  display: grid;
  gap: 9px;
}

.goldval-factor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.goldval-factor strong,
.goldval-factor span,
.goldval-factor small {
  min-width: 0;
}

.goldval-factor strong {
  overflow: hidden;
  color: var(--goldval-text);
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldval-factor b {
  font-size: 13px;
  font-weight: 720;
}

.goldval-factor.is-bullish b {
  color: #8ce0bd;
}

.goldval-factor.is-bearish b {
  color: #ffaaa5;
}

.goldval-factor small {
  grid-column: 1 / -1;
  color: var(--goldval-secondary);
  font-size: 10px;
  line-height: 1.45;
}

.goldval-summary {
  padding: 19px;
  background:
    linear-gradient(135deg, rgba(214, 177, 94, 0.1), transparent 48%),
    var(--goldval-surface);
}

.goldval-summary blockquote {
  margin: 10px 0 0;
  color: var(--goldval-text);
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -0.01em;
  line-height: 1.55;
}

.goldval-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.goldval-action p {
  margin: 0;
  color: var(--goldval-secondary);
  font-size: 11px;
  line-height: 1.55;
}

.goldval-action strong {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(214, 177, 94, 0.13);
  color: var(--goldval-gold-bright);
  font-size: 12px;
  white-space: nowrap;
}

.goldval-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.goldval-data-cell {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.goldval-data-cell span,
.goldval-data-cell strong {
  display: block;
}

.goldval-data-cell span {
  color: var(--goldval-secondary);
  font-size: 10px;
}

.goldval-data-cell strong {
  overflow: hidden;
  margin-top: 5px;
  color: var(--goldval-text);
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldval-disclaimer {
  margin: 2px 5px 0;
  color: var(--goldval-tertiary);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.goldval-state {
  display: grid;
  min-height: calc(100dvh - 72px);
  place-items: center;
  padding: 24px 16px calc(30px + env(safe-area-inset-bottom));
}

.goldval-state-card {
  width: 100%;
  padding: 30px 22px;
  border: 1px solid var(--goldval-line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 84% 4%, rgba(214, 177, 94, 0.18), transparent 42%),
    var(--goldval-surface);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.goldval-state-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(214, 177, 94, 0.3);
  border-radius: 20px;
  background: rgba(214, 177, 94, 0.11);
  color: var(--goldval-gold-bright);
  font-size: 21px;
  font-weight: 760;
}

.goldval-state-card h1 {
  margin: 0;
  color: var(--goldval-text);
  font-size: 28px;
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.goldval-state-card p {
  max-width: 360px;
  margin: 12px auto 0;
  color: var(--goldval-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.goldval-state-actions {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.goldval-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  background: var(--goldval-gold);
  color: #17130b;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 100ms ease-out, filter 120ms ease-out;
}

.goldval-button.secondary {
  border: 1px solid var(--goldval-line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--goldval-text);
}

.goldval-skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
}

.goldval-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.08) 45%, transparent 65%);
  transform: translateX(-100%);
  animation: goldvalShimmer 1.4s ease-in-out infinite;
}

.goldval-loading-card {
  min-height: 210px;
}

.goldval-loading-line {
  height: 13px;
  margin: 15px 18px;
  border-radius: 999px;
}

.goldval-loading-line.wide {
  width: 68%;
  height: 32px;
  margin-top: 26px;
}

.goldval-loading-line.short {
  width: 38%;
}

@keyframes goldvalShimmer {
  to {
    transform: translateX(100%);
  }
}

.goldval-sheet-layer {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.goldval-sheet-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.goldval-sheet {
  position: relative;
  width: min(100%, 560px);
  max-height: min(82dvh, 720px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px 28px 0 0;
  background: rgba(27, 27, 30, 0.94);
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.52);
  color: var(--goldval-text);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  will-change: transform;
  touch-action: none;
}

.goldval-sheet-handle-zone {
  display: grid;
  min-height: 34px;
  place-items: center;
  cursor: grab;
}

.goldval-sheet-handle-zone:active {
  cursor: grabbing;
}

.goldval-sheet-handle {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: rgba(235, 235, 245, 0.27);
}

.goldval-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 18px 13px;
}

.goldval-sheet-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 730;
  letter-spacing: -0.025em;
}

.goldval-sheet-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--goldval-secondary);
  font-size: 17px;
  transition: transform 100ms ease-out, background-color 120ms ease-out;
}

.goldval-sheet-scroll {
  max-height: calc(min(82dvh, 720px) - 86px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px calc(22px + env(safe-area-inset-bottom));
  touch-action: pan-y;
}

.goldval-sheet-section {
  margin-bottom: 18px;
}

.goldval-sheet-section h3 {
  margin: 0 0 9px;
  color: var(--goldval-secondary);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.08em;
}

.goldval-condition {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.goldval-condition + .goldval-condition {
  margin-top: 8px;
}

.goldval-condition-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.goldval-condition-head strong {
  font-size: 13px;
}

.goldval-condition-head span {
  color: var(--goldval-green);
  font-size: 10px;
  font-weight: 700;
}

.goldval-condition.is-warning .goldval-condition-head span {
  color: var(--goldval-gold-bright);
}

.goldval-condition.is-triggered .goldval-condition-head span {
  color: #ffaaa5;
}

.goldval-condition p,
.goldval-condition small {
  display: block;
  margin: 7px 0 0;
  color: var(--goldval-secondary);
  font-size: 10px;
  line-height: 1.5;
}

/* Gold Inventory Decision — account-scoped, fail-closed decision surface. */
.gold-valuation-page,
.gold-valuation-page button {
  font-optical-sizing: auto;
}

.goldinv-content {
  gap: 16px;
}

.goldinv-hero {
  position: relative;
  padding: 22px;
  border-color: rgba(214, 177, 94, 0.3);
  background:
    radial-gradient(circle at 92% 4%, rgba(241, 213, 143, 0.18), transparent 38%),
    linear-gradient(148deg, rgba(34, 32, 27, 0.98), rgba(17, 17, 19, 0.98) 62%);
}

.goldinv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.045), transparent 29%);
}

.goldinv-hero-top,
.goldinv-section-head,
.goldinv-account-line,
.goldinv-readiness-score {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.goldinv-hero-top > div,
.goldinv-section-head > div,
.goldinv-readiness-score > div {
  min-width: 0;
}

.goldinv-hero h1 {
  margin: 5px 0 0;
  color: var(--goldval-text);
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.goldinv-hero-copy,
.goldinv-section-copy {
  margin: 12px 0 0;
  color: var(--goldval-secondary);
  font-size: 12px;
  letter-spacing: 0.005em;
  line-height: 1.65;
}

.goldinv-mode,
.goldinv-decision-badge,
.goldinv-policy-pill {
  display: inline-flex;
  min-height: 28px;
  flex: none;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 159, 10, 0.3);
  border-radius: 999px;
  background: rgba(255, 159, 10, 0.1);
  color: #ffc069;
  font-size: 10px;
  font-weight: 730;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.goldinv-mode.is-ready,
.goldinv-decision-badge:not(.is-blocked) {
  border-color: rgba(88, 199, 154, 0.3);
  background: rgba(88, 199, 154, 0.1);
  color: #8ce0bd;
}

.goldinv-policy-pill {
  border-color: rgba(114, 167, 255, 0.28);
  background: rgba(114, 167, 255, 0.1);
  color: #a8c7ff;
}

.goldinv-account-line {
  align-items: center;
  justify-content: flex-start;
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.goldinv-account-line span {
  overflow: hidden;
  color: var(--goldval-text);
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldinv-account-line b,
.goldinv-account-line small {
  flex: none;
  color: var(--goldval-gold-bright);
  font-size: 10px;
  font-weight: 670;
}

.goldinv-account-line small {
  color: var(--goldval-tertiary);
}

.goldinv-hero-metrics,
.goldinv-output-grid,
.goldinv-policy-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.goldinv-output {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
}

.goldinv-output span,
.goldinv-output strong,
.goldinv-output small {
  display: block;
  min-width: 0;
}

.goldinv-output span {
  color: var(--goldval-secondary);
  font-size: 10px;
  font-weight: 580;
  letter-spacing: 0.02em;
}

.goldinv-output strong {
  overflow: hidden;
  margin-top: 6px;
  color: var(--goldval-text);
  font-size: 19px;
  font-weight: 740;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldinv-output small {
  margin-top: 5px;
  color: var(--goldval-tertiary);
  font-size: 9px;
  letter-spacing: 0.015em;
  line-height: 1.45;
}

.goldinv-decision,
.goldinv-section {
  padding: 20px;
}

.goldinv-section-head {
  align-items: center;
}

.goldinv-section-head h2 {
  margin: 4px 0 0;
  color: var(--goldval-text);
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.028em;
  line-height: 1.12;
}

.goldinv-stage6 {
  border-color: rgba(88, 199, 154, 0.2);
  background:
    radial-gradient(circle at 94% 0%, rgba(88, 199, 154, 0.1), transparent 42%),
    var(--goldval-card);
}

.goldinv-stage6-badge {
  display: inline-flex;
  min-height: 28px;
  flex: none;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--goldval-secondary);
  font-size: 10px;
  font-weight: 730;
  white-space: nowrap;
}

.goldinv-stage6-badge.is-complete {
  border-color: rgba(88, 199, 154, 0.28);
  background: rgba(88, 199, 154, 0.09);
  color: #8ce0bd;
}

.goldinv-stage6-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.goldinv-stage6-module {
  display: grid;
  min-width: 0;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.goldinv-stage6-module i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--goldval-secondary);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.goldinv-stage6-module.is-complete i {
  background: rgba(88, 199, 154, 0.13);
  color: #8ce0bd;
}

.goldinv-stage6-module span {
  overflow: hidden;
  color: var(--goldval-secondary);
  font-size: 10px;
  font-weight: 630;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldinv-stage6-live {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.goldinv-stage6-config {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.goldinv-stage6-config .goldinv-output {
  min-height: 92px;
  padding: 12px;
  border-color: rgba(214, 177, 94, 0.13);
  background: linear-gradient(145deg, rgba(214, 177, 94, 0.055), rgba(255, 255, 255, 0.025));
}

.goldinv-stage6-config .goldinv-output strong {
  font-size: 14px;
  line-height: 1.35;
}

.goldinv-stage6-live .goldinv-output {
  padding: 11px;
}

.goldinv-stage6-live .goldinv-output strong {
  font-size: 17px;
}

.goldinv-stage6-next {
  margin-top: 10px;
  padding: 12px 13px;
  border-left: 2px solid rgba(255, 159, 10, 0.55);
  border-radius: 4px 13px 13px 4px;
  background: rgba(255, 159, 10, 0.05);
}

.goldinv-stage6-next strong {
  color: #ffc069;
  font-size: 11px;
  font-weight: 690;
}

.goldinv-stage6-next p {
  margin: 5px 0 0;
  color: var(--goldval-secondary);
  font-size: 9px;
  line-height: 1.55;
}

.goldinv-state-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 18px;
}

.goldinv-state {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 4px;
  padding: 10px 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  opacity: 0.48;
}

.goldinv-state.is-selected {
  border-color: color-mix(in srgb, var(--state-color) 44%, transparent);
  background: color-mix(in srgb, var(--state-color) 11%, transparent);
  opacity: 1;
}

.goldinv-state.is-red { --state-color: #ff746c; }
.goldinv-state.is-orange { --state-color: #ff9f0a; }
.goldinv-state.is-yellow { --state-color: #ffd60a; }
.goldinv-state.is-green { --state-color: #58c79a; }

.goldinv-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--state-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--state-color) 54%, transparent);
}

.goldinv-state strong {
  color: var(--goldval-text);
  font-size: 12px;
}

.goldinv-state span {
  overflow: hidden;
  width: 100%;
  color: var(--goldval-secondary);
  font-size: 8px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldinv-output-grid {
  margin-top: 10px;
}

.goldinv-safety-note {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-top: 11px;
  padding: 13px;
  border: 1px solid rgba(88, 199, 154, 0.15);
  border-radius: 15px;
  background: rgba(88, 199, 154, 0.055);
}

.goldinv-safety-note.is-blocked {
  border-color: rgba(255, 159, 10, 0.16);
  background: rgba(255, 159, 10, 0.055);
}

.goldinv-safety-note > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(88, 199, 154, 0.12);
  color: #8ce0bd;
  font-size: 14px;
  font-weight: 800;
}

.goldinv-safety-note.is-blocked > span {
  background: rgba(255, 159, 10, 0.13);
  color: #ffc069;
}

.goldinv-safety-note strong {
  font-size: 12px;
  font-weight: 680;
}

.goldinv-safety-note p {
  margin: 4px 0 0;
  color: var(--goldval-secondary);
  font-size: 10px;
  line-height: 1.55;
}

.goldinv-policy-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.goldinv-policy-metrics .goldinv-output strong {
  font-size: 16px;
}

.goldinv-mini-label {
  margin: 16px 0 8px;
  color: var(--goldval-secondary);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.goldinv-horizon-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.goldinv-horizon-row > span {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 9px 2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--goldval-tertiary);
}

.goldinv-horizon-row > span.is-active {
  border-color: rgba(114, 167, 255, 0.18);
  background: rgba(114, 167, 255, 0.06);
  color: #a8c7ff;
}

.goldinv-horizon-row > span.is-diagnostic {
  border-style: dashed;
  color: var(--goldval-secondary);
}

.goldinv-horizon-row strong {
  font-size: 15px;
  font-weight: 730;
}

.goldinv-horizon-row small {
  font-size: 8px;
}

.goldinv-formula {
  margin-top: 12px;
  padding: 14px;
  border-radius: 15px;
  background: rgba(114, 167, 255, 0.055);
}

.goldinv-formula small,
.goldinv-formula strong {
  display: block;
}

.goldinv-formula small {
  color: #a8c7ff;
  font-size: 9px;
  font-weight: 680;
}

.goldinv-formula strong {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 670;
  line-height: 1.5;
}

.goldinv-formula p,
.goldinv-footnote {
  margin: 7px 0 0;
  color: var(--goldval-secondary);
  font-size: 9px;
  line-height: 1.55;
}

.goldinv-row-action {
  min-height: 34px;
  flex: none;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--goldval-gold-bright);
  font-size: 10px;
  font-weight: 680;
  -webkit-tap-highlight-color: transparent;
  transition: transform 100ms ease-out, background-color 120ms ease-out;
}

.goldinv-row-action:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
}

.goldinv-store-list,
.goldinv-lots,
.goldinv-readiness-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.goldinv-store {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.goldinv-store-copy strong,
.goldinv-store-copy span {
  display: block;
}

.goldinv-store-copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 670;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldinv-store-copy span {
  margin-top: 3px;
  color: var(--goldval-secondary);
  font-size: 9px;
}

.goldinv-store > b {
  color: var(--goldval-text);
  font-size: 13px;
  font-weight: 710;
}

.goldinv-store-track {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.goldinv-store-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9b7834, var(--goldval-gold-bright));
}

.goldinv-lots,
.goldinv-readiness-list {
  overflow: hidden;
  max-height: 900px;
  opacity: 1;
  transition: max-height 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease-out, margin-top 220ms ease-out;
}

.goldinv-lots[aria-hidden="true"],
.goldinv-readiness-list[aria-hidden="true"] {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
}

.goldinv-lot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 10px 12px;
  border-left: 2px solid rgba(214, 177, 94, 0.34);
  background: rgba(255, 255, 255, 0.02);
}

.goldinv-lot div strong,
.goldinv-lot div span {
  display: block;
}

.goldinv-lot div strong,
.goldinv-lot > b {
  font-size: 11px;
  font-weight: 670;
}

.goldinv-lot div span,
.goldinv-lot > small {
  margin-top: 2px;
  color: var(--goldval-secondary);
  font-size: 9px;
}

.goldinv-lot > small {
  grid-column: 1 / -1;
}

.goldinv-lot > small.is-warning { color: #ffc069; }
.goldinv-lot > small.is-alert { color: #ffaaa5; }

.goldinv-footnote {
  margin-top: 13px;
}

.goldinv-empty {
  margin: 0;
  padding: 16px;
  color: var(--goldval-secondary);
  font-size: 11px;
  text-align: center;
}

.goldinv-readiness-score {
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
}

.goldinv-readiness-score > strong {
  color: var(--goldval-gold-bright);
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.goldinv-readiness-score b,
.goldinv-readiness-score span {
  display: block;
}

.goldinv-readiness-score b {
  font-size: 11px;
}

.goldinv-readiness-score span {
  margin-top: 3px;
  color: var(--goldval-secondary);
  font-size: 9px;
  line-height: 1.45;
}

.goldinv-readiness-track {
  height: 5px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
}

.goldinv-readiness-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9b7834, var(--goldval-gold-bright));
}

.goldinv-readiness-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.goldinv-readiness-item > i {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #ff746c;
}

.goldinv-readiness-item.is-partial > i { background: #ff9f0a; }
.goldinv-readiness-item.is-configured > i { background: #72a7ff; }
.goldinv-readiness-item.is-ready > i { background: #58c79a; }

.goldinv-readiness-item strong {
  display: block;
  font-size: 11px;
  font-weight: 670;
}

.goldinv-readiness-item p {
  margin: 4px 0 0;
  color: var(--goldval-secondary);
  font-size: 9px;
  line-height: 1.5;
}

.goldinv-readiness-item > span {
  color: #ffaaa5;
  font-size: 9px;
  font-weight: 670;
  white-space: nowrap;
}

.goldinv-readiness-item.is-partial > span { color: #ffc069; }
.goldinv-readiness-item.is-configured > span { color: #a8c7ff; }
.goldinv-readiness-item.is-ready > span { color: #8ce0bd; }

.goldinv-icp {
  display: flex;
  justify-content: center;
  padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
  background: var(--goldval-bg);
}

.goldinv-icp a {
  color: var(--goldval-tertiary);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 120ms ease-out, transform 100ms ease-out;
}

.goldinv-icp a:active {
  transform: scale(0.97);
  color: var(--goldval-gold-bright);
}

/* Account controls + dual-model command surface. */
.goldinv-settings-card {
  border-color: rgba(114, 167, 255, 0.18);
  background:
    radial-gradient(circle at 96% 0%, rgba(114, 167, 255, 0.09), transparent 44%),
    rgba(21, 21, 23, 0.94);
}

.goldinv-edit-settings,
.goldinv-settings-save,
.goldinv-settings-reset {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 720;
  -webkit-tap-highlight-color: transparent;
  transition: transform 100ms ease-out, filter 120ms ease-out, background-color 120ms ease-out;
}

.goldinv-edit-settings {
  flex: none;
  padding: 0 14px;
  background: rgba(114, 167, 255, 0.13);
  color: #bcd2ff;
}

.goldinv-edit-settings:active,
.goldinv-settings-save:active,
.goldinv-settings-reset:active,
.goldinv-hold-options button:active,
.goldinv-model-card.is-psi:active {
  transform: scale(0.97);
  filter: brightness(1.12);
}

.goldinv-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.goldinv-setting-chip {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
}

.goldinv-setting-chip span,
.goldinv-setting-chip strong,
.goldinv-setting-chip small {
  display: block;
}

.goldinv-setting-chip span {
  color: var(--goldval-secondary);
  font-size: 9px;
  font-weight: 610;
}

.goldinv-setting-chip strong {
  margin-top: 5px;
  color: var(--goldval-text);
  font-size: 16px;
  font-weight: 740;
  letter-spacing: -0.02em;
}

.goldinv-setting-chip small {
  overflow: hidden;
  margin-top: 4px;
  color: var(--goldval-tertiary);
  font-size: 8px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldinv-models {
  border-color: rgba(214, 177, 94, 0.2);
}

.goldinv-model-count {
  flex: none;
  color: #8ce0bd;
  font-size: 10px;
  font-weight: 690;
}

.goldinv-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.goldinv-model-card {
  display: flex;
  min-width: 0;
  min-height: 184px;
  flex-direction: column;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 17px;
  color: var(--goldval-text);
  text-align: left;
}

.goldinv-model-card.is-inventory {
  background: linear-gradient(145deg, rgba(88, 199, 154, 0.085), rgba(255, 255, 255, 0.025));
}

.goldinv-model-card.is-psi {
  appearance: none;
  background: linear-gradient(145deg, rgba(214, 177, 94, 0.105), rgba(114, 167, 255, 0.035));
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 100ms ease-out, filter 120ms ease-out;
}

.goldinv-model-card > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
}

.goldinv-model-card > div b,
.goldinv-model-card > div small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldinv-model-card > div b {
  font-size: 11px;
  font-weight: 720;
}

.goldinv-model-card > div small {
  grid-column: 2;
  color: var(--goldval-tertiary);
  font-size: 8px;
}

.goldinv-model-dot {
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--goldval-green);
  box-shadow: 0 0 12px rgba(88, 199, 154, 0.5);
}

.is-psi .goldinv-model-dot {
  background: var(--goldval-gold-bright);
  box-shadow: 0 0 12px rgba(241, 213, 143, 0.4);
}

.goldinv-model-card > strong {
  display: block;
  margin-top: 15px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.goldinv-model-card > p {
  margin: 7px 0 12px;
  color: var(--goldval-secondary);
  font-size: 9px;
  line-height: 1.55;
}

.goldinv-model-status {
  display: block;
  margin-top: auto;
  color: #8ce0bd;
  font-size: 8px;
  font-weight: 670;
  line-height: 1.4;
}

.is-psi .goldinv-model-status {
  color: var(--goldval-gold-bright);
}

.goldinv-model-rule {
  margin: 12px 0 0;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--goldval-secondary);
  font-size: 9px;
  line-height: 1.55;
}

.goldinv-operations {
  padding-top: 17px;
  padding-bottom: 17px;
}

.goldinv-ops-line {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 13px;
  color: var(--goldval-secondary);
  font-size: 9px;
  line-height: 1.55;
}

.goldinv-ops-line i {
  width: 7px;
  height: 7px;
  margin-top: 3px;
  border-radius: 50%;
  background: #ff9f0a;
}

.goldinv-ops-line i.is-live {
  background: var(--goldval-green);
  box-shadow: 0 0 10px rgba(88, 199, 154, 0.5);
}

.goldinv-ops-details {
  display: grid;
  overflow: hidden;
  max-height: 500px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
  opacity: 1;
  transition: max-height 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease-out, margin-top 220ms ease-out;
}

.goldinv-ops-details[aria-hidden="true"] {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
}

.goldinv-ops-details .goldinv-output strong {
  font-size: 13px;
}

.goldinv-account-sheet {
  max-height: min(88dvh, 820px);
}

.goldinv-sheet-intro {
  margin: 0;
  color: var(--goldval-secondary);
  font-size: 11px;
  line-height: 1.65;
}

.goldinv-settings-form,
.goldinv-psi-sheet {
  display: grid;
  gap: 14px;
}

.goldinv-settings-fields {
  display: grid;
  gap: 9px;
}

.goldinv-setting-field {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
}

.goldinv-setting-field > span strong,
.goldinv-setting-field > span small,
.goldinv-hold-field legend strong,
.goldinv-hold-field legend small {
  display: block;
}

.goldinv-setting-field > span strong,
.goldinv-hold-field legend strong {
  color: var(--goldval-text);
  font-size: 11px;
  font-weight: 690;
}

.goldinv-setting-field > span small,
.goldinv-hold-field legend small {
  margin-top: 3px;
  color: var(--goldval-tertiary);
  font-size: 8px;
  line-height: 1.4;
}

.goldinv-setting-field > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.goldinv-setting-field input {
  width: 92px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  outline: 0;
  background: rgba(0, 0, 0, 0.24);
  color: var(--goldval-text);
  font: inherit;
  font-size: 15px;
  font-weight: 720;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.goldinv-setting-field input:focus {
  border-color: rgba(114, 167, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(114, 167, 255, 0.13);
}

.goldinv-setting-field > div b {
  min-width: 14px;
  color: var(--goldval-secondary);
  font-size: 10px;
}

.goldinv-hold-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 12px 13px 13px;
}

.goldinv-hold-field legend {
  width: 100%;
  padding: 0;
}

.goldinv-hold-options {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px !important;
  margin-top: 11px;
}

.goldinv-hold-options button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--goldval-secondary);
  font: inherit;
  font-size: 10px;
  font-weight: 690;
  transition: transform 100ms ease-out, background-color 120ms ease-out, border-color 120ms ease-out;
}

.goldinv-hold-options button.is-selected {
  border-color: rgba(114, 167, 255, 0.45);
  background: rgba(114, 167, 255, 0.14);
  color: #dbe7ff;
}

.goldinv-settings-preview {
  padding: 14px;
  border: 1px solid rgba(88, 199, 154, 0.17);
  border-radius: 16px;
  background: rgba(88, 199, 154, 0.055);
}

.goldinv-settings-preview > span,
.goldinv-settings-preview > small {
  display: block;
  color: var(--goldval-secondary);
  font-size: 9px;
}

.goldinv-settings-preview > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 7px 0 5px;
}

.goldinv-settings-preview strong {
  color: var(--goldval-text);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.goldinv-settings-preview b {
  color: #8ce0bd;
  font-size: 12px;
}

.goldinv-settings-error {
  min-height: 16px;
  margin: -4px 0;
  color: #ffaaa5;
  font-size: 10px;
  line-height: 1.45;
}

.goldinv-settings-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
}

.goldinv-settings-save {
  min-height: 48px;
  padding: 0 16px;
  background: #f0d486;
  color: #201b10;
}

.goldinv-settings-save:disabled {
  opacity: 0.58;
}

.goldinv-settings-reset {
  min-height: 48px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--goldval-secondary);
}

.goldinv-psi-sheet .goldval-card {
  box-shadow: none;
}

.goldinv-psi-sheet .goldval-psi-card,
.goldinv-psi-sheet .goldval-v11-section,
.goldinv-psi-sheet .goldval-v11-brief {
  border-radius: 18px;
}

.goldval-button:focus-visible,
.goldval-back:focus-visible,
.goldval-row-button:focus-visible,
.goldval-sheet-close:focus-visible,
.goldval-psi-toggle:focus-visible,
.goldval-v11-brief-toggle:focus-visible,
.goldinv-row-action:focus-visible,
.goldinv-edit-settings:focus-visible,
.goldinv-settings-save:focus-visible,
.goldinv-settings-reset:focus-visible,
.goldinv-model-card.is-psi:focus-visible,
.goldinv-hold-options button:focus-visible,
.goldinv-icp a:focus-visible,
.work-card.valuation-card:focus-visible {
  outline: 3px solid rgba(114, 167, 255, 0.8);
  outline-offset: 2px;
}

@media (max-width: 370px) {
  .goldval-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .goldval-hero,
  .goldval-psi-card,
  .goldval-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .goldval-status {
    font-size: 32px;
  }

  .goldval-price-grid {
    grid-template-columns: 1fr;
  }

  .goldval-metric strong {
    font-size: 21px;
  }

  .goldval-confidence-layout {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .goldval-confidence-ring {
    width: 88px;
    height: 88px;
  }

  .goldinv-hero,
  .goldinv-decision,
  .goldinv-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .goldinv-policy-metrics {
    grid-template-columns: 1fr;
  }

  .goldinv-stage6-live {
    grid-template-columns: 1fr;
  }

  .goldinv-stage6-config {
    grid-template-columns: 1fr;
  }

  .goldinv-model-grid {
    grid-template-columns: 1fr;
  }

  .goldinv-model-card {
    min-height: 156px;
  }

  .goldinv-setting-field {
    gap: 9px;
  }

  .goldinv-setting-field input {
    width: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-card.valuation-card,
  .goldval-back,
  .goldval-button,
  .goldval-row-button,
  .goldval-sheet-close {
    transition: none;
  }

  .goldval-psi-toggle,
  .goldval-psi-chevron,
  .goldval-psi-logic,
  .goldval-v11-brief-toggle,
  .goldval-v11-brief-chevron,
  .goldval-v11-brief-report {
    transition: none;
  }

  .goldinv-row-action,
  .goldinv-edit-settings,
  .goldinv-settings-save,
  .goldinv-settings-reset,
  .goldinv-model-card.is-psi,
  .goldinv-hold-options button,
  .goldinv-ops-details,
  .goldinv-lots,
  .goldinv-readiness-list,
  .goldinv-icp a {
    transition: none;
  }

  .goldval-skeleton::after {
    animation: none;
    opacity: 0.35;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .goldval-header,
  .goldval-sheet,
  .goldval-psi-card,
  .goldval-v11-brief {
    background: #171719;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .goldinv-hero {
    background: #1c1c1f;
  }

  .goldinv-settings-card,
  .goldinv-model-card,
  .goldinv-setting-field {
    background: #1c1c1f;
  }

  .goldval-sheet-scrim {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .goldval-card,
  .goldval-sheet,
  .goldval-factor,
  .goldval-horizon,
  .goldval-condition {
    border-color: rgba(255, 255, 255, 0.3);
  }

  .goldinv-output,
  .goldinv-store,
  .goldinv-readiness-item,
  .goldinv-account-line,
  .goldinv-stage6-module,
  .goldinv-setting-chip,
  .goldinv-model-card,
  .goldinv-setting-field {
    border-color: rgba(255, 255, 255, 0.3);
  }

  .goldval-header {
    background: rgba(9, 9, 10, 0.96);
  }

  .goldval-section-heading p,
  .goldval-factor small,
  .goldval-disclaimer,
  .goldval-state-card p {
    color: rgba(255, 255, 255, 0.82);
  }
}
