/* CismanGT · Mercado global. Estilos acotados a la nueva vista. */
.mg-root { display: grid; gap: 20px; min-width: 0; }
.mg-root *, .mg-root *::before, .mg-root *::after { box-sizing: border-box; }
.mg-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.mg-status { margin: 0; color: var(--muted, #91a7c7); font-size: .78rem; line-height: 1.6; }
.mg-status[data-state="warning"], .mg-observation { color: #eabd58; }
.mg-refresh { flex: 0 0 auto; min-height: 42px; }
.mg-refresh:disabled { cursor: default; opacity: .6; }
.mg-pending-grid, .mg-stable-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mg-card { min-width: 0; padding: 24px; border: 1px solid var(--line, rgba(78,137,226,.18)); border-radius: 18px; background: var(--panel, #091c33); }
.mg-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.mg-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mg-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; background: rgba(59,132,251,.14); color: #76b8ff; font-size: 1rem; font-weight: 800; }
.mg-gold { color: #f5c84c; background: rgba(245,200,76,.12); }
.mg-oil { color: #9fbed9; background: rgba(140,173,204,.12); }
.mg-index { color: #8eb9ff; background: rgba(67,128,244,.14); }
.mg-btc-icon { color: #ffd58a; background: rgba(245,166,35,.15); font-size: 1.7rem; }
.mg-usdt-icon { color: var(--green, #27e1ad); background: rgba(39,225,173,.12); font-size: 1.4rem; }
.mg-usdc-icon { color: #89baff; background: rgba(37,135,255,.16); font-size: 1.4rem; }
.mg-identity-text { min-width: 0; }
.mg-card h2 { margin: 0; color: var(--text, #f5f8ff); font-size: 1.08rem; line-height: 1.35; }
.mg-subtitle { margin: 4px 0 0; color: var(--muted, #91a7c7); font-size: .75rem; line-height: 1.6; }
.mg-badge { flex-shrink: 0; padding: 5px 9px; border: 1px solid rgba(99,151,215,.22); border-radius: 8px; color: var(--muted, #91a7c7); font-size: .65rem; font-weight: 600; }
.mg-pending { padding: 20px 22px; }
.mg-pending .mg-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; font-size: .86rem; }
.mg-pending-note { margin: 15px 0 0; color: var(--muted, #91a7c7); font-size: .77rem; line-height: 1.6; }
.mg-lead { display: grid; gap: 5px; margin: 25px 0 23px; }
.mg-value-label { color: var(--muted, #91a7c7); font-size: .75rem; }
.mg-price { color: var(--text, #f5f8ff); font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.25; letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mg-stable-price { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.mg-changes, .mg-metrics, .mg-range-values { display: grid; margin: 0; min-width: 0; gap: 16px; }
.mg-changes { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; }
.mg-changes .mg-metric { padding: 14px 16px; border: 1px solid rgba(87,144,215,.16); border-radius: 12px; background: rgba(14,38,67,.42); }
.mg-metric { min-width: 0; }
.mg-metric dt { margin: 0 0 7px; color: var(--muted, #91a7c7); font-size: .73rem; line-height: 1.5; }
.mg-metric dd { margin: 0; color: var(--text, #f5f8ff); font-size: 1.05rem; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mg-changes dd { font-size: 1.3rem; }
.mg-bitcoin-metrics, .mg-stable-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 19px; border-top: 1px solid var(--line, rgba(78,137,226,.18)); }
.mg-metric dd.mg-positive, .mg-positive { color: var(--green, #27e1ad); }
.mg-metric dd.mg-negative, .mg-negative { color: var(--red, #ff5c7f); }
.mg-source { margin: 19px 0 0; color: var(--muted, #91a7c7); font-size: .68rem; line-height: 1.7; overflow-wrap: anywhere; }
.mg-source.mg-observation { color: #eabd58; }
.mg-source-warning { display: block; }
.mg-range { margin-top: 22px; padding: 20px; border: 1px solid var(--line, rgba(78,137,226,.18)); border-radius: 13px; background: rgba(5,19,36,.4); }
.mg-range h3 { margin: 0; color: var(--text, #f5f8ff); font-size: .88rem; line-height: 1.6; }
.mg-range-values { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.mg-range-note { margin: 13px 0 0; color: var(--muted, #91a7c7); font-size: .69rem; line-height: 1.75; }
.mg-range-note.mg-observation { color: #eabd58; }
.mg-range .mg-source { margin-top: 7px; }
.mg-deviation { margin: -5px 0 20px; color: var(--muted, #91a7c7); font-size: .74rem; line-height: 1.7; }
.mg-deviation strong { color: var(--text, #f5f8ff); font-weight: 600; }
.mg-message, .mg-access-note { margin: 16px 0 0; color: var(--muted, #91a7c7); font-size: .75rem; line-height: 1.75; }
.mg-access-note { padding: 11px 13px; border-radius: 9px; background: rgba(55,114,206,.09); border: 1px solid rgba(87,144,215,.12); }
.mg-root button:focus-visible { outline: 2px solid var(--cyan, #37c8ff); outline-offset: 4px; }
@media (max-width: 1100px) {
  .mg-card { padding: 21px; }
  .mg-pending .mg-card-heading { align-items: flex-start; flex-wrap: wrap; }
  .mg-stable-metrics { grid-template-columns: minmax(0, 1fr); gap: 17px; }
}
@media (max-width: 640px) {
  .mg-root { gap: 16px; }
  .mg-pending-grid, .mg-stable-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mg-pending .mg-card-heading { flex-wrap: nowrap; align-items: center; }
  .mg-card { padding: 18px; }
  .mg-pending { padding: 17px 18px; }
  .mg-card h2 { font-size: 1rem; }
  .mg-pending .mg-subtitle { display: none; }
  .mg-pending-note { margin-top: 10px; }
  .mg-badge { font-size: .6rem; padding: 5px 7px; }
  .mg-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .mg-toolbar { align-items: flex-start; gap: 10px; }
  .mg-status { font-size: .71rem; }
  .mg-refresh { min-height: 40px; padding: 9px 12px; font-size: .72rem; }
  .mg-lead { margin: 22px 0 20px; }
  .mg-changes { gap: 8px; }
  .mg-changes .mg-metric { padding: 10px 8px; }
  .mg-changes dt { font-size: .63rem; }
  .mg-changes dd { font-size: .98rem; }
  .mg-bitcoin-metrics, .mg-stable-metrics { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mg-range { padding: 15px; }
  .mg-range-values { gap: 12px; }
  .mg-range-values dd { font-size: .91rem; }
  .mg-range-values dt { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-root *, .mg-root *::before, .mg-root *::after { transition: none !important; animation: none !important; }
}