/* BR Markets 0.6 — board + asset dashboards. Theme tokens (--br-*) with fallbacks. */
.brm { --_ink: var(--br-ink, #0b1220); --_ink2: var(--br-ink-2, #3b4457); --_muted: var(--br-muted, #6b7280); --_line: var(--br-line, #e6e9f0); --_card: var(--br-card, #fff); --_surface: var(--br-surface, #f3f5f9); --_primary: var(--br-primary, #1E5BFF); --_deep: var(--br-deep, #0A2A8A); --_accent: var(--br-accent, #F2B134); --_up: #0f9d58; --_down: #d93025; --_r: var(--br-r, 14px); color: var(--_ink); font-variant-numeric: tabular-nums; max-width: 1180px; }
.brm a { color: inherit; text-decoration: none; }
.brm h1, .brm h2 { letter-spacing: -.02em; margin: 0; }
.brm-eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--_primary); margin-bottom: 6px; }
.brm-muted { color: var(--_muted); }
.brm .up { color: var(--_up); } .brm .down { color: var(--_down); }

/* hero */
.brm-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: end; padding: 30px 32px; border-radius: 22px; color: #fff; background: radial-gradient(1200px 400px at 110% -40%, rgba(242,177,52,.28), transparent 60%), radial-gradient(700px 300px at -10% 120%, rgba(30,91,255,.55), transparent 60%), linear-gradient(135deg, #07122e 0%, #0A2A8A 100%); margin-bottom: 18px; }
.brm-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.brm-hero .brm-eyebrow { color: var(--_accent); }
.brm-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: #fff; }
.brm-hero p { margin: 8px 0 0; color: rgba(255,255,255,.78); max-width: 58ch; line-height: 1.5; }
.brm-kpis { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.brm-kpis > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px; backdrop-filter: blur(6px); }
.brm-kpis dt { font-size: .74rem; color: rgba(255,255,255,.7); } .brm-kpis dd { margin: 2px 0 0; font-size: 1.6rem; font-weight: 800; } .brm-kpis dd.sm { font-size: 1.05rem; padding-top: 6px; }
.brm-kpis dd.up { color: #5ee0a0; } .brm-kpis dd.down { color: #ff8a80; }

/* movers */
.brm-movers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.brm-movers-col { background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_r); padding: 14px 16px; }
.brm-movers-col h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--_muted); margin-bottom: 6px; }
.brm-mover { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; }
.brm-mover:hover { background: var(--_surface); }

/* shared bits */
.brm-logo { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--_surface); display: inline-grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px var(--_line); }
.brm-logo img { width: 100%; height: 100%; object-fit: cover; } .brm-logo i { font-style: normal; font-weight: 800; font-size: .72rem; color: var(--_deep); }
.brm-logo.lg { width: 56px; height: 56px; } .brm-logo.lg i { font-size: 1.1rem; }
.brm-name { display: flex; flex-direction: column; min-width: 0; } .brm-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; } .brm-name small { color: var(--_muted); font-size: .78rem; }
.brm-verified { font-style: normal; color: var(--_primary); font-size: .8rem; }
.brm-px { font-weight: 700; } .brm-px sub, .brm-price sub, .brm-m sub { font-size: .62em; vertical-align: -.25em; }
.brm-chg { display: inline-block; min-width: 72px; text-align: center; padding: 3px 8px; border-radius: 8px; font-weight: 700; font-size: .86rem; background: var(--_surface); color: var(--_muted); }
.brm-chg.up { background: rgba(15,157,88,.1); color: var(--_up); } .brm-chg.down { background: rgba(217,48,37,.09); color: var(--_down); }
.brm-chg.lg { font-size: .95rem; padding: 5px 10px; }
.brm-stale { display: block; font-size: .7rem; font-weight: 500; color: var(--_muted); }
.brm-grade { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: 8px; font-weight: 900; font-size: .8rem; background: var(--_surface); font-style: normal; }
.brm-blur { filter: blur(6px); user-select: none; pointer-events: none; opacity: .7; }
.brm-lock { width: 13px; height: 13px; color: var(--_muted); vertical-align: -2px; margin-left: 4px; }
.brm-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 12px; font-weight: 700; background: var(--_primary); color: #fff !important; box-shadow: 0 6px 18px -8px rgba(30,91,255,.8); transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.brm-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(30,91,255,.9); }
.brm-btn.ghost { background: var(--_card); color: var(--_ink) !important; box-shadow: inset 0 0 0 1px var(--_line); }
.brm-btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--_primary); }
.brm-btn.locked { color: var(--_muted) !important; }

/* board */
.brm-board { background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_r); overflow: hidden; }
.brm-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--_line); }
.brm-search { display: flex; align-items: center; gap: 8px; background: var(--_surface); border-radius: 10px; padding: 0 12px; flex: 1 1 240px; max-width: 340px; }
.brm-search svg { width: 16px; height: 16px; color: var(--_muted); } .brm-search input { border: 0; background: transparent; padding: 10px 0; width: 100%; font: inherit; outline: none; color: inherit; }
.brm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.brm-chips button { border: 1px solid var(--_line); background: var(--_card); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; color: var(--_ink2); }
.brm-chips button span { color: var(--_muted); font-weight: 500; margin-left: 2px; }
.brm-chips button.is-on { background: var(--_deep); color: #fff; border-color: var(--_deep); } .brm-chips button.is-on span { color: rgba(255,255,255,.7); }
.brm-tr { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) 96px 140px 120px 90px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--_line); }
a.brm-tr:hover { background: var(--_surface); } .brm-tr:last-of-type { border-bottom: 0; }
.brm-th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--_muted); font-weight: 700; padding-top: 10px; padding-bottom: 10px; background: var(--_surface); }
.brm-tr .r { text-align: right; } .brm-tr .c { text-align: center; }
.brm-asset { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brm-chart { display: block; width: 100%; height: auto; color: var(--_primary); }
.brm-chart.up { color: var(--_up); } .brm-chart.down { color: var(--_down); } .brm-chart.decoy { color: var(--_primary); }
.brm-spark .brm-chart { width: 120px; height: 32px; margin: 0 auto; }
.brm .brm-tr, .brm .brm-mover, .brm .brm-rc, .brm .brm-tr b, .brm .brm-mover b, .brm .brm-rc b, .brm .brm-px { color: var(--_ink) !important; }
.brm .brm-tr.is-stale:not([hidden]) { opacity: .78; }
.brm-tr.is-stale { display: grid; } .brm-tr[hidden] { display: none !important; }
.brm-more { display: block; width: 100%; border: 0; border-top: 1px solid var(--_line); background: var(--_surface); padding: 14px; font: inherit; font-weight: 700; color: var(--_primary); cursor: pointer; }
.brm-more:hover { background: rgba(30,91,255,.07); }
.brm-empty { padding: 24px; text-align: center; color: var(--_muted); }

/* upsell band */
.brm-upsell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin: 18px 0; padding: 24px 28px; border-radius: 20px; background: linear-gradient(135deg, rgba(30,91,255,.08), rgba(242,177,52,.12)); border: 1px solid rgba(30,91,255,.18); }
.brm-upsell h2 { font-size: 1.3rem; } .brm-upsell ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.brm-upsell li { padding-left: 22px; position: relative; color: var(--_ink2); } .brm-upsell li::before { content: "✓"; position: absolute; left: 0; color: var(--_primary); font-weight: 800; }
.brm-upsell-cta, .brm-gate-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } .brm-upsell-cta small, .brm-gate-cta small { color: var(--_muted); font-size: .78rem; }
.brm-disclaimer { color: var(--_muted); font-size: .78rem; margin: 18px 2px 8px; max-width: 90ch; }

/* asset page */
.brm-crumbs { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--_muted); margin-bottom: 12px; } .brm-crumbs a:hover { color: var(--_primary); } .brm-crumbs b { color: var(--_ink); font-weight: 600; }
.brm-asset-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; grid-template-areas: "id quote" "actions quote"; gap: 14px 24px; align-items: center; padding: 24px 28px; border-radius: 22px; background: var(--_card); border: 1px solid var(--_line); margin-bottom: 16px; box-shadow: 0 20px 40px -32px rgba(10,42,138,.45); }
.brm-id { grid-area: id; display: flex; gap: 16px; align-items: center; }
.brm-id h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); } .brm-ticker { font-size: .5em; font-weight: 700; color: var(--_muted); letter-spacing: .04em; vertical-align: .35em; }
.brm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.brm-tag { padding: 3px 10px; border-radius: 999px; background: var(--_surface); font-size: .78rem; font-weight: 700; color: var(--_ink2); } .brm-tag.ok { background: rgba(30,91,255,.1); color: var(--_primary); } .brm-tag.grade { background: var(--_deep); color: #fff; }
.brm-quote { grid-area: quote; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.brm-price { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; } .brm-quote small { color: var(--_muted); font-size: .78rem; }
.brm-actions { grid-area: actions; display: flex; gap: 8px; flex-wrap: wrap; }
.brm-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.brm-card { background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_r); padding: 18px 20px; }
.brm-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; } .brm-card-head h2 { font-size: 1.05rem; }
.brm-range-tabs { display: inline-flex; background: var(--_surface); border-radius: 10px; padding: 3px; }
.brm-range-tabs button { border: 0; background: transparent; font: inherit; font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--_ink2); display: inline-flex; align-items: center; }
.brm-range-tabs button.is-on { background: var(--_card); box-shadow: 0 1px 3px rgba(0,0,0,.08); color: var(--_ink); } .brm-range-tabs button.locked { color: var(--_muted); }
.brm-plot { position: relative; min-height: 240px; } .brm-plot .brm-chart { height: 240px; }
.brm-locked-plot .brm-chart { filter: blur(5px) saturate(.6); opacity: .55; }
.brm-locked-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.brm-locked-msg .brm-lock { width: 22px; height: 22px; margin: 0; color: var(--_deep); } .brm-locked-msg b { font-size: 1rem; }
.brm-collecting { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border-radius: 12px; background: repeating-linear-gradient(135deg, var(--_surface) 0 10px, transparent 10px 20px); color: var(--_ink2); padding: 20px; }
.brm-collecting span { color: var(--_muted); max-width: 42ch; font-size: .88rem; }
.brm-foot { margin: 10px 0 0; font-size: .76rem; color: var(--_muted); }
.brm-pill { display: inline-flex; align-items: center; gap: 2px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--_surface); color: var(--_muted); }
.brm-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.brm-m { position: relative; background: var(--_surface); border-radius: 12px; padding: 11px 12px; min-height: 64px; }
.brm-m span { display: block; padding-right: 16px; font-size: .74rem; color: var(--_muted); font-weight: 600; } .brm-m b { display: block; font-size: 1.08rem; margin-top: 3px; font-weight: 800; }
.brm-m b a { color: var(--_primary); } .brm-m .brm-lock { position: absolute; top: 10px; right: 10px; }
.brm-m.is-locked { background: linear-gradient(180deg, var(--_surface), rgba(30,91,255,.05)); }
.brm-range { display: block; position: relative; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--_down), var(--_accent), var(--_up)); margin-top: 7px; } .brm-range b { position: absolute; top: -4px; width: 4px; height: 12px; margin: 0 0 0 -2px !important; border-radius: 2px; background: var(--_ink); }
.brm-gate { display: flex; flex-direction: column; gap: 12px; align-items: stretch; margin-top: 12px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #07122e, #0A2A8A); color: #fff; }
.brm-gate b { display: block; font-size: 1.02rem; } .brm-gate .brm-gate-cta { align-items: stretch; text-align: center; } .brm-gate .brm-btn { justify-content: center; white-space: normal; text-align: center; } .brm-gate span { font-size: .84rem; color: rgba(255,255,255,.75); } .brm-gate .brm-btn { background: var(--_accent); color: #0b1220 !important; box-shadow: none; } .brm-gate-cta small { color: rgba(255,255,255,.65); }

/* related */
.brm-related { margin-top: 26px; } .brm-related-head h2 { font-size: 1.3rem; margin-bottom: 12px; }
.brm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.brm-rc { display: flex; flex-direction: column; background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_r); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.brm-rc:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -24px rgba(10,42,138,.55); }
.brm-rc-img { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #0A2A8A, #1E5BFF); } .brm-rc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brm-rc-img .brm-grade { position: absolute; top: 10px; right: 10px; background: #fff; }
.brm-rc-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.brm-rc-body small { color: var(--_muted); font-size: .76rem; font-weight: 600; text-transform: capitalize; } .brm-rc-body b { font-size: 1rem; line-height: 1.35; }
.brm-rc-body em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 700; color: var(--_primary); font-size: .86rem; }
.brm-rc.deal { flex-direction: row; align-items: stretch; } .brm-rc-logo { width: 84px; flex: none; display: grid; place-items: center; background: var(--_surface); }
.brm-rc-logo img { width: 52px; height: 52px; object-fit: contain; } .brm-rc-logo i { font-style: normal; font-weight: 900; font-size: 1.4rem; color: var(--_deep); }
.brm-offer { font-size: .84rem; color: var(--_up); font-weight: 700; }

@media (max-width: 960px) {
	.brm-hero, .brm-grid, .brm-upsell { grid-template-columns: minmax(0, 1fr); }
	.brm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.brm-asset-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "quote" "actions"; } .brm-quote { text-align: left; align-items: flex-start; }
	.brm-upsell-cta { align-items: flex-start; }
}
@media (max-width: 640px) {
	.brm-hero, .brm-asset-hero { padding: 20px; border-radius: 18px; }
	.brm-movers, .brm-cards { grid-template-columns: minmax(0, 1fr); }
	.brm-tr { grid-template-columns: minmax(0, 1fr) auto 84px; } .brm-tr .hide-sm { display: none; }
	.brm-upsell ul, .brm-mgrid { grid-template-columns: minmax(0, 1fr); }
	.brm-mover { grid-template-columns: 32px minmax(0, 1fr) auto; } .brm-mover .brm-px { display: none; }
}
@media (prefers-reduced-motion: reduce) { .brm-rc, .brm-btn { transition: none; } }
