/* Square, data-driven study poster; full text remains available in the detail dialog. */
.br-snapshot-chart { display: flex; align-items: center; min-height: 0; border: 1px solid #303937; border-radius: 1.5cqi; padding: 1cqi; }
.br-snapshot-chart .br-chart { width: 100%; max-height: 100%; }
.br-snapshot .br-stats { padding: 1.5cqi; gap: 2cqi; border-block: 1px solid #303937; }
.br-post { margin: 0 12px 12px; min-width: 0; }
.br-frame { container-type: inline-size; width: 100%; aspect-ratio: 1; }
.br-square {
  width: 100%; height: 100%; box-sizing: border-box; overflow: hidden;
  display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  gap: 1.2cqi; padding: 2.4cqi; border: 1px solid #303937; border-radius: 2.5cqi;
  background: #0d1211; color: #f1f4f2; font: 400 1.9cqi/1.4 "Outfit", system-ui, sans-serif;
}
.br-square * { box-sizing: border-box; min-width: 0; }
.br-square :is(h3, h4, p) { margin: 0; }
.br-square strong { font-weight: 600; }
.br-brandbar { display: flex; align-items: center; gap: 2cqi; font-size: 1.6cqi; letter-spacing: .04em; color: #ff8c50; }
.br-brandbar time { margin-left: auto; color: #c7cecb; letter-spacing: 0; }
.br-brand { color: #ff7937; font-size: 3.1cqi; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.br-brand strong { color: #f1f4f2; }
.br-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5cqi; align-items: center; padding: 1.2cqi 0; border-block: 1px solid #303937; }
.br-square .br-hero h3 { font: 600 4.1cqi/1.12 "Bricolage Grotesque", "Outfit", sans-serif; letter-spacing: -.025em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #f1f4f2; }
.br-meta { margin-top: .8cqi !important; color: #c7cecb; font-size: 1.6cqi; }
.br-badges { display: flex; flex-wrap: wrap; gap: .7cqi; margin-top: 1.1cqi; }
.br-badges span { padding: .5cqi 1cqi; border: 1px solid #805130; border-radius: 1.2cqi; font-size: 1.5cqi; color: #ffac74; background: #281c12; }
.br-price { display: grid; gap: .5cqi; padding: 1.5cqi; background: #151d1a; border: 1px solid #303937; border-radius: 1.5cqi; }
.br-price > strong { font-size: 4.8cqi; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.br-price > span:not(.br-label) { color: #e1e8e4; font-size: 2cqi; }
.br-price > small { color: #b3bfb8; font-size: 1.4cqi; }
.br-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1cqi; }
.br-stat { display: flex; gap: 1cqi; align-items: center; background: #151d1a; border: 1px solid #303937; border-radius: 1.5cqi; padding: 1.3cqi; }
.br-square .br-stat > .icon { width: 3.8cqi !important; height: 3.8cqi !important; color: #ff8c50; }
.br-metric { display: grid; gap: .3cqi; }
.br-label, .br-metric small { color: #b9c4be; }
.br-square .br-label { font-size: 1.5cqi; }
.br-square .br-metric strong { font-size: 2.4cqi; line-height: 1.15; font-variant-numeric: tabular-nums; }
.br-square .br-metric small { font-size: 1.2cqi; }
.br-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1cqi; min-height: 0; }
.br-panel { padding: 1.5cqi; border: 1px solid #303937; border-radius: 1.5cqi; background: #101714; min-height: 0; overflow: hidden; }
.br-square .br-panel h4 { display: flex; align-items: center; gap: 1cqi; margin-bottom: 1cqi; font: 600 2.5cqi/1.3 "Bricolage Grotesque", sans-serif; color: #f1f4f2; }
.br-panel h4 > span { display: inline-grid; place-items: center; padding: .5cqi .8cqi; border-radius: .8cqi; color: #100f0d; background: #ff8c50; font-family: "Outfit", sans-serif; font-size: 1.9cqi; }
.br-callout, .br-risk { padding: 1.1cqi; border-radius: 1cqi; background: #291e14; border-left: .4cqi solid #ff8c50; margin-block: 1cqi; }
.br-callout > strong, .br-risk > strong { display: block; color: #ffac74; font-size: 1.6cqi; margin-bottom: .5cqi; }
.br-square .br-callout p, .br-square .br-risk p { color: #e0e4e1; font-size: 1.7cqi; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.br-fact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1cqi; border-bottom: 1px solid #303937; padding: .6cqi 0; font-size: 1.55cqi; line-height: 1.35; }
.br-square .br-risk p { -webkit-line-clamp: 2; }
.br-fact > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: #ced6d1; }
.br-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqi; padding: .8cqi; background: #17201b; border-radius: 1cqi; }
.br-levels .br-metric strong { color: #ffac74; }
.br-levels .br-metric:first-child strong { color: #79d4f5; }
.br-chart-wrap { height: 16cqi; margin-block: .8cqi; border: 1px solid #303937; border-radius: .8cqi; overflow: hidden; }
.br-chart { display: block; width: 100%; height: 100%; background: #101714; }
.br-chart-empty { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1cqi; color: #b9c4be; font-size: 1.5cqi; }
.br-square .br-chart-empty .icon { width: 3cqi !important; height: 3cqi !important; }
.br-tech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8cqi; }
.br-square .br-tech strong { font-size: 1.55cqi; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-square .br-observation p { -webkit-line-clamp: 2; font-size: 1.5cqi; }
.br-summary { display: grid; grid-template-columns: 1fr 3fr; align-items: start; gap: 1.4cqi; padding: 1.3cqi; border: 1px solid #303937; border-left: .4cqi solid #ff8c50; border-radius: 1cqi; background: #151d1a; }
.br-summary > strong { font-size: 1.9cqi; }
.br-summary p { font-size: 1.6cqi; line-height: 1.4; color: #d2dad5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.br-foot { display: flex; justify-content: space-between; gap: 1cqi; font-size: 1.2cqi; line-height: 1.3; color: #c7cecb; }
.br-read { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--panel); font: inherit; }
.br-read .icon { width: 18px; height: 18px; }
.br-editor { display: grid; gap: 12px; min-width: 0; padding: 16px; margin: 0; border: 1px solid var(--border); border-radius: 12px; }
.br-editor legend { padding-inline: 6px; font-weight: 600; }
.br-editor > p { margin: 0; }
.br-optional-fields { display: grid; gap: 12px; padding-top: 8px; }
.br-editor-section summary { min-height: 44px; align-content: center; cursor: pointer; }
.br-history { min-width: 0; }
.br-history summary { min-height: 44px; align-content: center; cursor: pointer; }
.br-preview { max-width: 640px; margin-inline: auto; width: 100%; }
.br-preview .br-post { margin: 0; }
body > .br-detail-dialog { width: min(900px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; }
.br-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.br-detail-head h2 { margin: 0; }
.br-details { display: grid; gap: 16px; }
.br-details section > p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; margin: 8px 0 0; }
.br-detail-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.br-detail-metrics .br-metric { padding: 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; gap: 4px; }
.br-detail-metrics .br-label { color: var(--muted); font-size: .8125rem; }
.br-detail-chart .br-chart { height: 240px; border-radius: 8px; }
.br-detail-chart summary { min-height: 44px; align-content: center; cursor: pointer; }
.br-history-table { overflow-x: auto; }
.br-history-table table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.br-history-table :is(th, td) { padding: 8px; text-align: start; border-bottom: 1px solid var(--border); }
@media (max-width: 767px) { .br-editor { padding: 12px; } }
.br-snapshot .br-brandbar { font-size: 2.3cqi; }
.br-snapshot .br-brand { font-size: 3.2cqi; }
.br-snapshot .br-hero h3 { font-size: 6cqi; }
.br-snapshot .br-meta, .br-snapshot .br-foot, .br-snapshot .br-label { font-size: 2.7cqi; }
.br-snapshot .br-price > span, .br-snapshot .br-metric strong { font-size: 3.2cqi; }
.br-snapshot .br-stats .br-metric:last-child strong { font-size: 2.7cqi; }
