:root {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: #172b4d; background: #f4f7fb; font-synthesis: none;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  --navy:#152b49; --muted:#708096; --border:#e4eaf2; --surface:#fff;
  --teal:#087f8c; --teal-light:#e7f6f5; --gold:#b88627; --gold-light:#fbf4e5;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;min-height:100vh;background:#f4f7fb;font-size:14px;overflow-x:hidden}
button,input,select{font:inherit}
.app-shell{width:min(1440px,100%);margin:0 auto;padding:0 32px;min-width:0}
.topbar{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--border)}
.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:var(--navy)}
.brand-logo{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:#fff;background:var(--navy);font-size:23px;font-weight:800}
.brand strong,.brand small{display:block}.brand strong{font-size:19px;letter-spacing:-.5px}.brand small{margin-top:4px;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:1.2px}
.header-right{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px;font-weight:700}
.market-dot,.sync-indicator{width:8px;height:8px;border-radius:50%;background:#d49a36;flex-shrink:0}
.market-dot.online,.sync-indicator.online{background:#198754}.market-dot.offline,.sync-indicator.offline{background:#c74646}
.header-divider{height:20px;width:1px;background:var(--border);margin:0 5px}.currency-label{color:var(--navy);font-weight:800}
.dashboard{padding:18px 0 14px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}
.eyebrow{margin:0 0 7px;color:var(--teal);font-size:10px;font-weight:800;letter-spacing:1.25px}
h1,h2,p{overflow-wrap:anywhere}h1{margin:0;color:var(--navy);font-size:clamp(23px,2.3vw,30px);line-height:1.2;letter-spacing:-.9px}
.subtitle{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.sync-info{display:flex;align-items:center;justify-content:flex-end;gap:8px;max-width:340px;color:var(--muted);font-size:11px;text-align:right}
.dashboard-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:14px;align-items:start}
.dashboard-main-column,.dashboard-side-column{display:grid;gap:12px;min-width:0}
.price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.panel{min-width:0;border:1px solid var(--border);border-radius:15px;background:var(--surface);box-shadow:0 3px 12px rgb(22 43 73 / 3%)}
.price-card,.ratio-card{padding:16px}.price-card{border-top:3px solid var(--gold)}.silver-card{border-top-color:#96a7b9}
.card-topline{display:flex;align-items:center;gap:9px;margin-bottom:12px}.metal-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;font-size:13px;font-weight:800}
.gold-icon{color:#946a18;background:var(--gold-light)}.silver-icon{color:#4d657e;background:#edf2f7}
.metal-name{color:var(--navy);font-size:12px;font-weight:800;letter-spacing:.7px}.unit-label{margin-left:auto;color:#8a98aa;font-size:9px;font-weight:700;letter-spacing:.3px;white-space:nowrap}
.price-card label,.form-field label{display:block;margin-bottom:8px;color:var(--muted);font-size:11px;font-weight:600}
.price-input-wrap{display:flex;align-items:center;gap:8px;min-height:47px;padding:0 12px;border:1px solid #dbe4ee;border-radius:9px;background:#fbfcfe}
.currency-symbol{color:var(--muted);font-size:19px;font-weight:600}.price-input-wrap input{width:100%;min-width:0;border:0;outline:0;color:var(--navy);background:transparent;font-size:clamp(20px,2vw,25px);font-weight:750;letter-spacing:-.6px}
input:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid rgb(8 127 140 / 25%);outline-offset:2px}
.field-hint{margin:7px 0 0;color:#8a98aa;font-size:10px;line-height:1.5}.price-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #edf0f5}
.price-footer span{color:var(--muted);font-size:10px}.price-footer strong{color:var(--navy);font-size:12px;text-align:right}
.ratio-card{grid-column:1/-1;color:#fff;border-color:var(--navy);background:var(--navy)}
.ratio-header{display:flex;align-items:center;justify-content:space-between}.ratio-card .eyebrow{color:#b5d9e2}
.info-chip{padding:5px 8px;border:1px solid #415672;border-radius:6px;color:#dbe6f2;font-size:9px;font-weight:800;letter-spacing:.7px}
.ratio-number{margin-top:10px;font-size:clamp(38px,4vw,50px);font-weight:800;letter-spacing:-2px;line-height:1.1;font-variant-numeric:tabular-nums}
.ratio-caption{margin:7px 0 16px;color:#bdcadd;font-size:11px;line-height:1.5}
.scale-labels{display:flex;justify-content:space-between;margin-bottom:8px;color:#c2ccda;font-size:9px}
.scale-track{position:relative;display:flex;height:8px;overflow:visible;border-radius:20px;background:#354862}
.scale-zone{height:100%}.zone-sell{width:33.333%;border-radius:20px 0 0 20px;background:#d16b70}.zone-neutral{width:33.334%;background:#d6a84c}.zone-buy{flex:1;border-radius:0 20px 20px 0;background:#42b99a}
.ratio-marker{position:absolute;top:50%;left:50%;width:15px;height:15px;transform:translate(-50%,-50%);border:3px solid #fff;border-radius:50%;background:#152b49;box-shadow:0 0 0 2px rgb(255 255 255 / 20%);transition:left .2s ease}
.ratio-footnote{margin:14px 0 0;color:#bdcadd;font-size:10px;line-height:1.5}
.history-panel{padding:16px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.section-heading .eyebrow{margin-bottom:5px}.section-heading h2{margin:0;color:var(--navy);font-size:16px;letter-spacing:-.3px}
.section-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;color:var(--teal);background:var(--teal-light);font-size:18px;font-weight:700;flex-shrink:0}
.history-intro{margin:0 0 12px;color:var(--muted);font-size:11px;line-height:1.5}
.history-chart{min-height:135px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;padding:18px;text-align:center;border:1px dashed #d6e0eb;border-radius:10px;background:linear-gradient(180deg,#fbfdff,#f6f9fc);color:var(--muted);font-size:11px}
.history-chart strong{color:var(--navy);font-size:13px}.chart-placeholder-mark{font-size:25px;color:#8ba2b8}
.history-return-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.history-metric{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid var(--border);border-radius:9px}
.metric-period{color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.8px}.history-metric strong{font-size:20px;color:var(--navy)}.history-metric>span:last-child{font-size:10px;color:var(--muted)}
.history-note{margin-top:10px}
.signal-panel{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-left:4px solid #d49a36;background:#fff7e3}
.signal-panel.signal-buy{background:#eaf7ef;border-color:#198754}.signal-panel.signal-neutral{background:#fff7e3;border-color:#d49a36}.signal-panel.signal-sell{background:#fff0ef;border-color:#c74646}
.signal-main{display:flex;align-items:center;gap:12px;min-width:0}.signal-icon{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:11px;background:#ffedbd;color:#80601d;font-size:23px;font-weight:700}
.signal-buy .signal-icon{color:#126747;background:#d3efdf}.signal-sell .signal-icon{color:#a12d35;background:#ffdcda}
.signal-kicker{margin-bottom:4px;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:1px}.signal-copy h2{margin:0;color:#80601d;font-size:16px;line-height:1.35}
.signal-buy .signal-copy h2{color:#126747}.signal-sell .signal-copy h2{color:#a12d35}.signal-copy p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.signal-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:90px;padding:9px 10px;border-radius:8px;font-size:9px;font-weight:900;letter-spacing:.4px;text-align:center}
.signal-badge.neutral{color:#73571d;background:#ffedbd}.signal-badge.buy{color:#126747;background:#dcf5e8}.signal-badge.sell{color:#a12d35;background:#ffe6e5}
.settings-panel,.sync-panel{padding:15px 16px}.adjustment-grid{display:grid;grid-template-columns:1fr 1fr .8fr;gap:9px}
.form-field{min-width:0}.form-field input,.form-field select{width:100%;min-width:0;height:39px;padding:0 9px;border:1px solid #dbe4ee;border-radius:8px;outline:0;color:var(--navy);background:#fbfcfe;font-weight:650}
.form-field input:focus,.form-field select:focus,.price-input-wrap:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px rgb(8 127 140 / 9%)}
.extra-field{margin-top:10px}.data-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #edf0f5}
.data-label{color:var(--muted);font-size:11px}.data-row strong{color:var(--navy);font-size:11px;text-align:right;overflow-wrap:anywhere}
.total-row{margin-top:2px;border-bottom:0}.total-row .data-label,.total-row strong{font-size:13px;font-weight:800}
.primary-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:39px;margin-top:12px;border:0;border-radius:8px;color:#fff;background:var(--teal);font-size:11px;font-weight:750;cursor:pointer;transition:background 160ms ease,transform 160ms ease}
.primary-button:hover{background:#066b76}.primary-button:active{transform:translateY(1px)}.primary-button:disabled{opacity:.65;cursor:wait}
.disclaimer{margin:12px 0 6px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;color:#475569;font-size:10px;line-height:1.5}
.disclaimer strong{display:block;margin-bottom:3px;color:#1e293b;font-size:12px}.disclaimer p{margin:0}
.dashboard-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;color:#8794a6;font-size:10px}
@media(max-width:1000px){.app-shell{padding:0 20px}.dashboard-layout{grid-template-columns:minmax(0,1fr)}.dashboard-side-column{grid-template-columns:1fr 1fr;align-items:start}.signal-panel{grid-column:1/-1}.sync-panel{min-width:0}}
@media(max-width:600px){.app-shell{padding:0 13px}.topbar{min-height:67px}.brand-logo{width:37px;height:37px}.brand strong{font-size:16px}.brand small{font-size:7px;letter-spacing:.8px}.header-right{gap:6px;font-size:9px}.header-divider{margin:0 2px}.page-heading{align-items:flex-start;flex-direction:column;gap:10px}.sync-info{justify-content:flex-start;max-width:100%;text-align:left}.price-grid{grid-template-columns:1fr;gap:9px}.ratio-card{grid-column:auto}.dashboard-side-column{grid-template-columns:1fr}.signal-panel{grid-column:auto;align-items:flex-start;flex-direction:column}.signal-badge{align-self:flex-start}.adjustment-grid{grid-template-columns:1fr 1fr}.adjustment-grid .form-field:last-child{grid-column:1/-1}.price-card,.ratio-card,.history-panel{padding:14px}.dashboard-footer{align-items:flex-start;flex-direction:column;gap:5px}.unit-label{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Long-Term Context — static educational section */
.long-term-context {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top right, #f7efdc 0, transparent 38%),
    var(--surface);
  box-shadow: 0 5px 22px rgb(22 43 73 / 4%);
}

.context-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.context-heading .eyebrow {
  margin-bottom: 7px;
}

.context-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(22px, 2.4vw, 29px);
  letter-spacing: -0.8px;
}

.context-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.context-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border: 1px solid #e9d9b5;
  border-radius: 19px;
  color: #946a18;
  background: #fffaf0;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -1px;
}

.context-mark span {
  margin: 0 3px;
  color: #a9b5c2;
  font-size: 13px;
}

.context-intro {
  padding: 19px 21px;
  border: 1px solid #e8dfca;
  border-radius: 13px;
  background: linear-gradient(115deg, #fffaf0, #ffffff);
}

.context-intro-label {
  color: #94702d;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.3px;
}

.context-intro p {
  max-width: 760px;
  margin: 9px 0 0;
  color: #43536a;
  font-size: 13px;
  line-height: 1.8;
}

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

.context-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgb(255 255 255 / 88%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.context-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgb(22 43 73 / 6%);
}

.context-gold {
  border-top: 3px solid #c79b45;
}

.context-silver {
  border-top: 3px solid #9cabbc;
}

.context-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.context-symbol {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 850;
}

.context-gold .context-symbol {
  color: #946a18;
  background: #fbf1d9;
}

.context-silver .context-symbol {
  color: #4d657e;
  background: #edf2f7;
}

.context-tag {
  color: #8794a6;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.2px;
}

.context-card h3,
.context-reading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  letter-spacing: -0.2px;
}

.context-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.context-reading {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.context-reading h3 {
  margin-bottom: 10px;
}

.reading-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid #edf0f5;
}

.reading-row:last-child {
  border-bottom: 0;
}

.reading-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 800;
}

.reading-high {
  color: #147d58;
  background: #e8f6ee;
}

.reading-mid {
  color: #946a18;
  background: #fbf4e5;
}

.reading-low {
  color: #526b91;
  background: #edf2fa;
}

.reading-row strong {
  color: var(--navy);
  font-size: 12px;
}

.reading-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.context-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #dfe8f0;
  border-radius: 12px;
  background: #f5f8fb;
}

.context-note-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.context-note p {
  margin: 1px 0 0;
  color: #617187;
  font-size: 11px;
  line-height: 1.8;
}

.context-note strong {
  color: var(--navy);
}

@media (max-width: 600px) {
  .long-term-context {
    margin-top: 11px;
    padding: 16px;
    border-radius: 15px;
  }

  .context-heading {
    margin-bottom: 15px;
  }

  .context-mark {
    width: 53px;
    height: 53px;
    border-radius: 15px;
    font-size: 16px;
  }

  .context-intro {
    padding: 15px;
  }

  .context-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .context-card {
    padding: 16px;
  }

  .context-reading {
    margin-top: 18px;
    padding-top: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .context-card {
    transition: none;
  }

  .context-card:hover {
    transform: none;
  }
}

/* Compact ratio guide */
.ratio-guide {
  margin-top: 12px;
  padding: 16px 18px;
}

.ratio-guide-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.ratio-guide-heading .eyebrow {
  margin-bottom: 4px;
}

.ratio-guide-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  letter-spacing: -0.3px;
}

.ratio-guide-symbol {
  padding: 7px 10px;
  border: 1px solid #e9dfca;
  border-radius: 8px;
  color: #946a18;
  background: #fffaf0;
  font-size: 12px;
  font-weight: 800;
}

.ratio-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ratio-guide-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcfe;
}

.guide-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 19px;
  font-weight: 800;
}

.guide-high {
  color: #147d58;
  background: #e8f6ee;
}

.guide-middle {
  color: #946a18;
  background: #fbf4e5;
}

.guide-low {
  color: #526b91;
  background: #edf2fa;
}

.ratio-guide-card strong {
  display: block;
  color: var(--navy);
  font-size: 11px;
}

.ratio-guide-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.ratio-guide-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.ratio-guide-note strong {
  color: var(--navy);
}

@media (max-width: 600px) {
  .ratio-guide {
    padding: 14px;
  }

  .ratio-guide-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ratio-guide-card {
    padding: 10px 12px;
  }
}

/* BullionFriend — unified enterprise market information section */
.market-info-panel {
  margin-top: 16px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 22px rgb(20 36 60 / 4%);
}

.market-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0f4;
}

.market-info-header .eyebrow {
  margin: 0 0 7px;
  color: #a27b35;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.market-info-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  letter-spacing: -.6px;
}

.market-info-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.ratio-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid #eee3cf;
  border-radius: 11px;
  background: #fdf9f1;
  color: #9a742e;
  font-size: 12px;
  font-weight: 800;
}

.ratio-mark-divider {
  color: #c9b58e;
  font-weight: 400;
}

.market-info-body {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, .9fr);
  align-items: stretch;
  gap: 24px;
  padding: 22px 0;
}

.ratio-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.ratio-meaning-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ratio-meaning-table th {
  padding: 0 10px 12px;
  color: #8993a3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.ratio-meaning-table th:first-child,
.ratio-meaning-table td:first-child {
  padding-left: 0;
}

.ratio-meaning-table td {
  padding: 13px 10px;
  border-top: 1px solid #edf0f4;
  color: #586477;
  font-size: 11px;
  line-height: 1.5;
  vertical-align: middle;
}

.ratio-range {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ratio-tag {
  display: inline-block;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.4;
  white-space: nowrap;
}

.ratio-buy {
  color: #18764f;
  background: #eaf6ef;
}

.ratio-neutral {
  color: #78602c;
  background: #f8f1e2;
}

.ratio-caution {
  color: #8b5050;
  background: #faeeee;
}

.about-bullionfriend {
  padding: 20px;
  border: 1px solid #e9edf3;
  border-radius: 12px;
  background: #f9fafc;
}

.about-label {
  color: #a27b35;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.about-bullionfriend h3 {
  margin: 10px 0 8px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -.4px;
}

.about-bullionfriend > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.about-divider {
  height: 1px;
  margin: 17px 0;
  background: #e5e9ef;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 13px;
}

.about-feature-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  border: 1px solid #e8dcc4;
  border-radius: 8px;
  background: #fffaf1;
  color: #98712d;
  font-size: 9px;
  font-weight: 800;
}

.about-feature strong {
  color: var(--navy);
  font-size: 11px;
}

.about-feature p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.market-purpose {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid #eee5d4;
  border-radius: 10px;
  background: #fdfaf4;
}

.purpose-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #efe3cc;
  color: #8c682a;
  font-size: 13px;
  font-weight: 800;
}

.market-purpose strong {
  color: var(--navy);
  font-size: 11px;
}

.market-purpose p {
  margin: 4px 0 0;
  color: #727b89;
  font-size: 10px;
  line-height: 1.8;
}

@media (max-width: 760px) {
  .market-info-panel {
    padding: 16px;
  }

  .market-info-header {
    gap: 12px;
  }

  .market-info-header h2 {
    font-size: 19px;
  }

  .ratio-mark {
    padding: 10px;
    font-size: 10px;
  }

  .market-info-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
  }

  .ratio-meaning-table {
    min-width: 460px;
  }

  .about-bullionfriend {
    padding: 17px;
  }

  .market-purpose {
    padding: 13px;
  }
}

/* BullionFriend — refined Insights layout */
.market-info-panel {
  width: 100%;
  box-sizing: border-box;
  margin: 20px 0 0;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgb(15 23 42 / 4%);
}

.market-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8edf3;
}

.market-info-body {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(270px, 1fr);
  align-items: start;
  gap: 26px;
  padding: 24px 0;
}

.ratio-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.ratio-meaning-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ratio-meaning-table th,
.ratio-meaning-table td {
  text-align: left;
  vertical-align: middle;
  padding: 14px 12px;
}

.ratio-meaning-table th:first-child,
.ratio-meaning-table td:first-child {
  width: 15%;
  padding-left: 0;
}

.ratio-meaning-table th:nth-child(2),
.ratio-meaning-table td:nth-child(2) {
  width: 55%;
}

.ratio-meaning-table th:last-child,
.ratio-meaning-table td:last-child {
  width: 30%;
}

.ratio-meaning-table th {
  border-bottom: 1px solid #e8edf3;
  color: #788497;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .7px;
}

.ratio-meaning-table td {
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
  line-height: 1.6;
}

.ratio-meaning-table tbody tr:last-child td {
  border-bottom: 0;
}

.about-bullionfriend {
  min-width: 0;
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid #e5eaf1;
  border-radius: 13px;
  background: #f8fafc;
}

.market-purpose {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px 20px;
  border: 1px solid #eee3cf;
  border-radius: 12px;
  background: #fdfaf4;
}

@media (max-width: 900px) {
  .market-info-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .about-bullionfriend {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .market-info-panel {
    padding: 16px;
  }

  .market-info-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .ratio-table-wrap {
    overflow-x: auto;
  }

  .ratio-meaning-table {
    min-width: 560px;
  }

  .market-purpose {
    padding: 14px;
  }
}
.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: block;
}