/* Risk Briefing module (static/js/risk-briefing.js). Inside .ren-theme, so text,
   surfaces and borders come from the ReN tokens and follow light/dark on their own;
   risk colours stay the app's (Critical #6b0000, High #b83232, as on the Overview). */

.rb { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #f4f5f9; font-size: 14px; }
html[data-theme="dark"] .rb { background: #0f172a; }
.rb-main { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 24px 40px; display: flex; flex-direction: column; gap: 18px; }
.rb-main > * { width: 100%; max-width: 1320px; margin-left: auto; margin-right: auto; }

/* header, scopes, views */
.rb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 24px 6px; }
.rb-head h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--ren-text-strong); letter-spacing: -0.01em; }
.rb-sub { font-size: 12.5px; color: var(--ren-text-muted); margin-top: 2px; }
.rb-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 8px; border: 1px solid var(--ren-border); background: var(--ren-surface); color: var(--ren-text-strong); cursor: pointer; }
.rb-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rb-btn:hover { border-color: var(--ren-primary); }
.rb-btn.dark { background: #1a1a2e; border-color: #1a1a2e; color: #fff; }
html[data-theme="dark"] .rb-btn.dark { background: #4369f4; border-color: #4369f4; }
.rb-bar-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 24px 10px; border-bottom: 1px solid var(--ren-border); }
.rb-scopes, .rb-tabs, .rb-extabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-scopes button, .rb-tabs button, .rb-extabs button { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; min-height: 34px; border-radius: 8px; cursor: pointer; border: 1px solid var(--ren-border); background: var(--ren-surface); color: var(--ren-text-secondary); }
.rb-scopes button[aria-pressed="true"] { background: #1a1a2e; border-color: #1a1a2e; color: #fff; }
.rb-tabs button[aria-selected="true"], .rb-extabs button[aria-selected="true"] { background: rgba(67, 105, 244, 0.1); border-color: #4369f4; color: #2f4fc9; }
html[data-theme="dark"] .rb-scopes button[aria-pressed="true"] { background: #e7e9f3; border-color: #e7e9f3; color: #0f172a; }
html[data-theme="dark"] .rb-tabs button[aria-selected="true"], html[data-theme="dark"] .rb-extabs button[aria-selected="true"] { color: #a9bcff; border-color: #7b9eff; background: rgba(123, 158, 255, 0.14); }
.rb button:focus-visible, .rb-drawer button:focus-visible, .rb [role="button"]:focus-visible { outline: 2px solid #4369f4; outline-offset: 2px; }

/* common pieces */
.rb-card { background: var(--ren-surface); border: 1px solid var(--ren-border); border-radius: 12px; padding: 20px 22px; }
.rb-card h2, .rb-sec-h h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ren-text-strong); }
.rb-card h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: var(--ren-text-strong); }
.rb-sec-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin-bottom: 10px; }
.rb-sec-h span { font-size: 12px; color: var(--ren-text-muted); }
.rb-lede { margin: 4px 0 14px !important; color: var(--ren-text-secondary); line-height: 1.5; max-width: 900px; }
.rb-muted { color: var(--ren-text-muted); }
.rb-small { font-size: 12px; line-height: 1.5; }
.rb-link { font: inherit; font-size: 13px; font-weight: 600; color: #2f4fc9; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.rb-link:hover { text-decoration: underline; }
html[data-theme="dark"] .rb-link, html[data-theme="dark"] .rb-drawer .rb-link { color: #a9bcff; }
.rb-empty { display: flex; align-items: center; gap: 12px; padding: 48px 16px; justify-content: center; color: var(--ren-text-muted); text-align: center; }
/* The global .spinner centres itself with margin: 0 auto; in this flex row those auto
   margins take all the free space and push the text to the far right. */
.rb-empty .spinner { margin: 0; flex: none; }
.rb-note { margin: 10px 0 0 !important; font-size: 13px; line-height: 1.5; background: #fff8eb; border: 1px solid #f2dcae; border-radius: 8px; padding: 9px 12px; color: var(--ren-text-secondary); }
html[data-theme="dark"] .rb-note { background: rgba(196, 122, 30, 0.12); border-color: rgba(196, 122, 30, 0.4); }
.rb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-chip { font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--ren-border); background: var(--ren-surface); color: var(--ren-text-strong); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.rb-chip:hover { border-color: var(--ren-border-strong); }
.rb-chip.sm { font-size: 12px; padding: 4px 8px; font-weight: 500; }
.rb-chip.off { color: var(--ren-text-muted); cursor: default; border-style: dashed; }
.rb-chip[aria-pressed="true"] { border-color: #4369f4; }
.rb-chip i.sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rb-chip b.up, .rb-d.up, .up { color: #b83232; }
.rb-d { font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rb-d.down { color: #1a7a4a; }
.rb-d.flat, .flat { color: var(--ren-text-muted); }
.pos { color: #1a7a4a; } .neg { color: #b83232; }
html[data-theme="dark"] .pos, html[data-theme="dark"] .rb-d.down { color: #5fd39a; }
html[data-theme="dark"] .neg, html[data-theme="dark"] .rb-d.up, html[data-theme="dark"] .up, html[data-theme="dark"] .rb-chip b.up { color: #f08080; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.rb-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ren-text-muted); align-items: center; }
.rb-key.below { margin-top: 10px; }
.rb-key i { display: inline-block; width: 10px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.rb-key i.c, .rb-bar i.c { background: #6b0000; }
.rb-key i.h, .rb-bar i.h { background: #b83232; }
.rb-key i.tk { width: 2px; height: 11px; background: var(--ren-text-strong); }
.rb-key i.ring { width: 11px; height: 11px; box-shadow: inset 0 0 0 2px #1a1a2e; }
html[data-theme="dark"] .rb-key i.ring { box-shadow: inset 0 0 0 2px #e7e9f3; }
.rb-key i.k3, .rb-stack i.k3 { background: #6b0000; } .rb-key i.k1, .rb-stack i.k1 { background: #d98a8a; }
.rb-key i.k0, .rb-stack i.k0 { background: #cbd2dc; } .rb-key i.kn, .rb-stack i.kn { background: #eef0f4; box-shadow: inset 0 0 0 1px #cbd2dc; }
html[data-theme="dark"] .rb-key i.kn, html[data-theme="dark"] .rb-stack i.kn { background: #273348; box-shadow: inset 0 0 0 1px #3a4760; }
html[data-theme="dark"] .rb-key i.k0, html[data-theme="dark"] .rb-stack i.k0 { background: #64748b; }

/* bars and lines */
.rb-bar { display: flex; gap: 2px; height: 9px; border-radius: 3px; background: #eceef3; overflow: hidden; flex: 1; min-width: 60px; }
html[data-theme="dark"] .rb-bar { background: #273348; }
.rb-bar i { display: block; height: 100%; }
.rb-bar i.p { background: #4369f4; }
.rb-stack { display: flex; gap: 2px; height: 10px; border-radius: 3px; overflow: hidden; flex: 1; }
.rb-stack i { display: block; height: 100%; }
.rb-spark { display: block; flex: none; }
.rb-spark path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rb-spark .base { stroke: var(--ren-border); stroke-width: 1; }
.rb-spark.none { display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 26px; font-size: 10.5px; color: var(--ren-text-muted); border: 1px dashed var(--ren-border-strong); border-radius: 4px; }
.rb-tickbar { position: relative; display: flex; align-items: center; margin-top: 8px; height: 13px; }
.rb-tickbar.sm { margin: 0; flex: 1; }
.rb-tickbar i.tick { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ren-text-strong); }

/* the verdict */
.rb-verdict { padding: 24px 26px; }
.rb-kick { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ren-text-muted); margin-bottom: 8px; }
.rb-verdict h2 { font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -0.012em; max-width: 1000px; color: var(--ren-text-strong); }
.rb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin-top: 20px; }
.rb-kpi { border: 1px solid var(--ren-border); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.rb-kpi-t { font-size: 13px; font-weight: 600; color: var(--ren-text-secondary); }
.rb-kpi-n { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rb-kpi-n b { font-size: 32px; font-weight: 700; line-height: 1; color: var(--ren-text-strong); font-variant-numeric: tabular-nums; }
.rb-kpi-n span { font-size: 12.5px; font-weight: 600; }
.rb-stk { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ren-text-muted); }
.rb-stk span:first-child { width: 64px; flex: none; }
.rb-stk.ago .rb-stack { height: 7px; opacity: 0.8; }
.rb-cl-mini { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.rb-cl-mini div { display: flex; justify-content: space-between; gap: 8px; }
.rb-cl-mini span:first-child { font-weight: 600; }
.rb-cl-mini em { font-style: normal; color: var(--ren-text-muted); }

/* lanes */
.rb-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.rb-lane { background: var(--ren-surface); border: 1px solid var(--ren-border); border-top: 3px solid; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 5px; }
.rb-lane-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rb-lane-h h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ren-text-strong); }
.rb-lane-h span { font-size: 12px; font-weight: 700; }
.rb-lane-rule { margin: 0 0 5px !important; font-size: 12px; color: var(--ren-text-secondary); }
.rb-lane-empty { margin: 6px 0 0 !important; font-size: 13px; color: var(--ren-text-secondary); border: 1px dashed var(--ren-border-strong); border-radius: 8px; padding: 12px; line-height: 1.5; }
.rb-row { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 9px 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; }
.rb-row:hover { background: var(--ren-row-hover); }
.rb-row.hl { border-color: #4369f4; background: rgba(67, 105, 244, 0.06); }
.rb-row.dim { opacity: 0.38; }
.rb-row-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rb-row-t b { font-size: 13.5px; font-weight: 600; color: var(--ren-text-strong); }
.rb-row-m { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.rb-pc { font-size: 13px; font-weight: 700; width: 36px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ren-text-strong); }
.rb-row-s { display: block; font-size: 11.5px; color: var(--ren-text-muted); margin-top: 3px; }
.rb-more { margin-top: 2px; }

/* compounding */
.rb-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 22px; }
.rb-tbl { display: flex; flex-direction: column; margin-top: 6px; }
.rb-tr { display: grid; grid-template-columns: 62px minmax(0, 1fr) 58px 54px; gap: 10px; align-items: center; padding: 7px 2px; border-bottom: 1px solid var(--ren-border); font-size: 13px; }
.rb-tr.th { font-size: 11px; color: var(--ren-text-muted); padding-top: 0; }
.rb-tr.th span:nth-child(n + 3) { text-align: right; }
/* guidance cut on the latest call */
.rb-tr.rb-gc { grid-template-columns: 62px minmax(0, 1fr) 58px 76px; align-items: start; }
.rb-gc-h { display: block; color: var(--ren-text-strong); line-height: 1.45; }
.rb-gc-s { display: block; font-size: 11.5px; color: var(--ren-text-muted); margin-top: 3px; }
.rb-gc-none { margin: 4px 0 0 !important; }
.rb-tk { font: inherit; font-size: 13px; font-weight: 700; color: var(--ren-text-strong); background: none; border: 0; padding: 0; cursor: pointer; }
.rb-tk:hover { color: #2f4fc9; text-decoration: underline; }
.rb-dots-c { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rb-dots { display: flex; align-items: center; gap: 3px; }
.rb-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e3e6ec; }
.rb-dots i.on { background: #6b0000; }
html[data-theme="dark"] .rb-dots i { background: #334155; } html[data-theme="dark"] .rb-dots i.on { background: #e06a64; }
.rb-dots b { margin-left: 4px; font-size: 12px; }
.rb-ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-cl { border: 1px solid var(--ren-border); border-radius: 10px; padding: 12px 14px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.rb-cl.on { border-color: #4369f4; background: rgba(67, 105, 244, 0.04); }
.rb-cl-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rb-cl-h b { font-size: 14px; }
.rb-cl-h .rb-muted { font-weight: 400; font-size: 12px; }
.rb-cl p { margin: 0 !important; color: var(--ren-text-secondary); }
.rb-cmp { display: grid; grid-template-columns: 64px minmax(0, 1fr) 126px; gap: 8px; align-items: center; font-size: 12px; color: var(--ren-text-muted); }
.rb-cmp .t { height: 8px; background: #eceef3; border-radius: 4px; overflow: hidden; }
html[data-theme="dark"] .rb-cmp .t { background: #273348; }
.rb-cmp .t i { display: block; height: 100%; background: #b83232; }
.rb-cmp .t i.ago { background: #a3acba; }
.rb-cmp b { text-align: right; color: var(--ren-text-strong); font-variant-numeric: tabular-nums; }

/* price strip, levers */
.rb-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.rb-pcard { border: 1px solid var(--ren-border); border-radius: 10px; padding: 14px; }
.rb-pcard p, .rb-three .rb-card p { margin: 2px 0 10px !important; font-size: 13px; color: var(--ren-text-secondary); line-height: 1.5; }
.rb-pcard.hot, .rb-three .rb-card.hot { background: #fff5f6; border-color: #f1c5cc; }
.rb-pcard.hot h3, .rb-three .rb-card.hot h3 { color: #8b1d2c; }
html[data-theme="dark"] .rb-pcard.hot, html[data-theme="dark"] .rb-three .rb-card.hot { background: rgba(184, 50, 50, 0.12); border-color: rgba(224, 106, 100, 0.4); }
html[data-theme="dark"] .rb-pcard.hot h3, html[data-theme="dark"] .rb-three .rb-card.hot h3 { color: #f4a3a3; }
.rb-pr { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 3px 0; }
.rb-pr b { font-variant-numeric: tabular-nums; }
.rb-lv { display: grid; grid-template-columns: 98px minmax(0, 1fr) 60px; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; }
.rb-lv.tier { grid-template-columns: 100px minmax(0, 1fr) 52px; padding: 6px 0; }
.rb-lv .t { height: 9px; background: #eceef3; border-radius: 4px; overflow: hidden; }
html[data-theme="dark"] .rb-lv .t { background: #273348; }
.rb-lv .t i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: #a3acba; }
.rb-lv .t i.up { background: #b83232; } .rb-lv .t i.dn, .rb-lv .t i.pos { background: #1d9e75; } .rb-lv .t i.neg { background: #b83232; }
.rb-lv .t i.hot { background: #6b0000; }
.rb-lv b { text-align: right; font-variant-numeric: tabular-nums; }
.rb-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 16px; align-items: start; }
.rb-levrow { border: 1px solid var(--ren-border); border-radius: 10px; margin-bottom: 6px; }
.rb-levrow.open { border-color: var(--ren-border-strong); }
.rb-levrow > button { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-radius: 10px; padding: 11px 13px; cursor: pointer; }
.rb-levrow > button:hover { background: var(--ren-row-hover); }
.rb-levrisks { padding: 0 13px 11px; align-items: center; }

/* explore + charts */
.rb-explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rb-xcard { display: flex; flex-direction: column; gap: 3px; text-align: left; font: inherit; padding: 13px 15px; min-height: 44px; border: 1px solid var(--ren-border); border-radius: 10px; background: var(--ren-surface); color: var(--ren-text-strong); cursor: pointer; }
.rb-xcard:hover { border-color: var(--ren-border-strong); }
.rb-xcard span { font-size: 12px; color: var(--ren-text-muted); }
.rb-ask { border: 1px dashed var(--ren-border-strong); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.rb-ask h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ren-text-strong); }
.rb-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.rb-seg { display: inline-flex; border: 1px solid var(--ren-border); border-radius: 7px; overflow: hidden; }
.rb-seg button { font: inherit; font-size: 12px; font-weight: 600; padding: 6px 11px; border: 0; background: var(--ren-surface); color: var(--ren-text-secondary); cursor: pointer; }
.rb-seg button + button { border-left: 1px solid var(--ren-border); }
.rb-seg button[aria-pressed="true"] { background: #1a1a2e; color: #fff; }
html[data-theme="dark"] .rb-seg button[aria-pressed="true"] { background: #e7e9f3; color: #0f172a; }
.rb-grew { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; align-items: flex-start; }
.rb-chart { flex: 1 1 640px; min-width: 0; overflow-x: auto; }
.rb-lines { display: block; width: 100%; min-width: 560px; height: auto; font-family: inherit; }
.rb-drawer .rb-lines { min-width: 0; }
.rb-lines .gl { stroke: var(--ren-chart-grid); } .rb-lines .cross { stroke: #8a93a3; stroke-dasharray: 3 3; }
.rb-lines .tk { fill: var(--ren-text-muted); font-size: 11px; } .rb-lines .tk.on { fill: var(--ren-text-strong); font-weight: 700; }
.rb-lines .ln { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.rb-lines .ln.thick { stroke-width: 4; }
.rb-lines .ln.faded { stroke: #cdd3db; stroke-width: 1.6; }
html[data-theme="dark"] .rb-lines .ln.faded { stroke: #3d4a63; }
.rb-lines .dot { stroke: var(--ren-surface); stroke-width: 2; }
.rb-lines .el { font-size: 11.5px; font-weight: 600; fill: var(--ren-text-strong); } .rb-lines .el.faded { fill: var(--ren-text-muted); font-weight: 500; }
.rb-lines .el .v { font-weight: 800; }
.rb-years { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; padding-left: 40px; }
.rb-years button { font: inherit; font-size: 11.5px; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--ren-border); background: var(--ren-surface); color: var(--ren-text-secondary); cursor: pointer; }
.rb-years button[aria-pressed="true"] { border-color: #4369f4; color: #2f4fc9; font-weight: 700; }
.rb-yr { flex: 1 1 220px; min-width: 220px; border: 1px solid var(--ren-border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 2px; background: var(--ren-surface-muted); }
.rb-yr > b { font-size: 14px; }
.rb-yr .rb-small { margin-bottom: 6px; }
.rb-yrow { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; font: inherit; font-size: 12.5px; text-align: left; padding: 4px 2px; border: 0; background: none; color: var(--ren-text-strong); cursor: pointer; }
.rb-yrow i { width: 9px; height: 9px; border-radius: 50%; }
.rb-yrow.faded { color: var(--ren-text-muted); }
.rb-sct-wrap, .rb-heat-wrap, .rb-tm-wrap { overflow-x: auto; }
.rb-sct { display: block; width: 100%; min-width: 520px; height: auto; font-family: inherit; }
.rb-sct .gl { stroke: var(--ren-chart-grid); } .rb-sct .zero { stroke: #8a93a3; }
.rb-sct .tk { fill: var(--ren-text-muted); font-size: 11px; } .rb-sct .tk.on { fill: #b83232; font-weight: 700; }
.rb-sct .split { stroke: #b83232; stroke-dasharray: 4 3; opacity: 0.7; }
/* Both stacked-risk quadrants are risky: rallying swings hard, falling was the weakest group in
   the back-test, so it gets the darker Critical red (not a "priced in" grey). */
.rb-sct .q.up { fill: rgba(184, 50, 50, 0.07); } .rb-sct .q.dn { fill: rgba(107, 0, 0, 0.08); } .rb-sct .q.am { fill: rgba(196, 122, 30, 0.08); }
.rb-sct .qt { font-size: 11.5px; font-weight: 700; fill: var(--ren-text-secondary); } .rb-sct .qt.up { fill: #9c2a2a; } .rb-sct .qt.dn { fill: #6b0000; } .rb-sct .qt.am { fill: #8a5210; }
html[data-theme="dark"] .rb-sct .qt.up { fill: #f4a3a3; } html[data-theme="dark"] .rb-sct .qt.dn { fill: #ff8f88; } html[data-theme="dark"] .rb-sct .qt.am { fill: #f0c27a; }
html[data-theme="dark"] .rb-sct .q.dn { fill: rgba(255, 120, 110, 0.07); }
.rb-pt { cursor: pointer; }
.rb-pt circle { stroke-width: 2; fill-opacity: 0.85; stroke: var(--ren-surface); }
.rb-pt text { font-size: 10.5px; font-weight: 600; fill: var(--ren-text-strong); pointer-events: none; }
.rb-pt.s.up circle { fill: #f8c9c5; stroke: #b83232; } .rb-pt.s.dn circle { fill: #d98a8a; stroke: #6b0000; } .rb-pt.o circle { fill: #e2e9ff; stroke: #6b85d9; }
.rb-pt.b-big circle { fill: #f8c9c5; stroke: #b83232; } .rb-pt.b-small circle { fill: #fde7bd; stroke: #c47a1e; } .rb-pt.b-steady circle { fill: #e2e8f0; stroke: #64748b; }
.rb-pt.on circle { stroke: var(--ren-text-strong); stroke-width: 3; }
.rb-pt:focus-visible { outline: none; } .rb-pt:focus-visible circle { stroke: #4369f4; stroke-width: 3; }
html[data-theme="dark"] .rb-pt.s.up circle, html[data-theme="dark"] .rb-pt.b-big circle { fill: #4a1f24; stroke: #e06a64; }
html[data-theme="dark"] .rb-pt.b-steady circle { fill: #273348; stroke: #8a93a3; }
html[data-theme="dark"] .rb-pt.s.dn circle { fill: #7a2228; stroke: #ff8f88; }
html[data-theme="dark"] .rb-pt.o circle { fill: #1a2744; stroke: #7b9eff; } html[data-theme="dark"] .rb-pt.b-small circle { fill: #4a3020; stroke: #e8904a; }
.rb-key i.pt { width: 11px; height: 11px; border-radius: 50%; border: 2px solid; }
.rb-key i.pt.su { background: #f8c9c5; border-color: #b83232; } .rb-key i.pt.sd { background: #d98a8a; border-color: #6b0000; }
html[data-theme="dark"] .rb-key i.pt.su { background: #4a1f24; border-color: #e06a64; } html[data-theme="dark"] .rb-key i.pt.sd { background: #7a2228; border-color: #ff8f88; } .rb-key i.pt.o { background: #e2e9ff; border-color: #6b85d9; }
.rb-info { margin: 10px 0; min-height: 44px; border: 1px solid var(--ren-border); border-radius: 10px; padding: 10px 12px; font-size: 13px; background: var(--ren-surface-muted); line-height: 1.5; }
.rb-heat { border-collapse: separate; border-spacing: 2px; font-size: 12.5px; min-width: 640px; }
.rb-heat th { font-weight: 700; color: var(--ren-text-secondary); padding: 4px 6px; text-align: center; font-size: 12px; }
.rb-heat th[scope="row"] { text-align: left; white-space: nowrap; }
.rb-heat th.on { color: #2f4fc9; border-bottom: 2px solid #4369f4; }
.rb-heat td { padding: 0; } .rb-heat td.on .rb-cell { outline: 2px solid rgba(67, 105, 244, 0.35); outline-offset: -2px; }
.rb-heat.ov { min-width: 560px; }
.rb-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 42px; min-width: 64px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.rb-cell b { font-size: 12.5px; } .rb-cell small { font-size: 10px; opacity: 0.85; }
.rb-cell.ring { box-shadow: inset 0 0 0 2px #1a1a2e; }
html[data-theme="dark"] .rb-cell.ring { box-shadow: inset 0 0 0 2px #e7e9f3; }
.rb-ramp { display: inline-flex; align-items: center; gap: 2px; } .rb-ramp i { width: 20px; height: 10px; margin: 0; border-radius: 0; }
.rb-ov { display: flex; flex-direction: column; border: 1px solid var(--ren-border); border-radius: 8px; padding: 9px 11px; margin-bottom: 7px; font-size: 13px; }
.rb-ov .up { font-weight: 700; font-size: 12.5px; }
.rb-tm { position: relative; }
.rb-tile { position: absolute; box-sizing: border-box; border: 0; border-radius: 4px; padding: 5px 6px; cursor: pointer; overflow: hidden; text-align: left; display: flex; flex-direction: column; justify-content: space-between; font: inherit; }
.rb-tile b { font-size: 12px; line-height: 1.1; } .rb-tile span { font-size: 10.5px; opacity: 0.9; }
.rb-tile.ng { background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(100, 116, 139, 0.12) 5px 10px); }
.rb-tile.on { box-shadow: inset 0 0 0 2px #1a1a2e; }
.rb-key i.t0 { background: #e9edf2; box-shadow: inset 0 0 0 1px #cbd2dc; } .rb-key i.t1 { background: #fcd9df; } .rb-key i.t2 { background: #f4a3b4; } .rb-key i.t3 { background: #c42a51; } .rb-key i.t5 { background: #7a0e2b; }
.rb-key i.tn { background: #f1f3f6; box-shadow: inset 0 0 0 1px #cbd2dc; }

/* the drawer */
.rb-scrim { position: fixed; inset: 0; background: rgba(1, 1, 44, 0.3); z-index: 2000; }
.rb-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 100vw); background: var(--ren-surface); z-index: 2001; box-shadow: -12px 0 40px rgba(1, 1, 44, 0.2); display: flex; flex-direction: column; font-size: 14px; }
.rb-dr-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 22px 8px; }
.rb-pill { font-size: 11.5px; font-weight: 700; color: #fff; padding: 4px 9px; border-radius: 6px; }
.rb-x { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--ren-border); background: var(--ren-surface); color: var(--ren-text-strong); font-size: 22px; line-height: 1; cursor: pointer; }
.rb-dr-b { flex: 1; overflow-y: auto; padding: 4px 22px 28px; display: flex; flex-direction: column; gap: 18px; }
.rb-dr-b h2 { margin: 0; font-size: 21px; font-weight: 700; color: var(--ren-text-strong); letter-spacing: -0.01em; }
.rb-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: -8px; }
.rb-big > b { font-size: 32px; font-weight: 700; color: var(--ren-text-strong); font-variant-numeric: tabular-nums; }
.rb-big span { font-size: 13px; color: var(--ren-text-secondary); }
.rb-big b.c { color: #6b0000; }
html[data-theme="dark"] .rb-big b.c { color: #f4a3a3; }
.rb-dsec h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ren-text-strong); }
.rb-dsec h4 { margin: 14px 0 4px; font-size: 13px; font-weight: 700; color: var(--ren-text-secondary); }
.rb-dsec p { margin: 0 0 8px; }
.rb-bridge { display: grid; gap: 10px; align-items: end; margin-top: 8px; }
.rb-bcol { position: relative; height: 140px; border-bottom: 1px solid var(--ren-border-strong); }
.rb-bcol i { position: absolute; left: 16%; right: 16%; border-radius: 3px; }
.rb-bcol i.base { background: #a3acba; } .rb-bcol i.add { background: #b83232; } .rb-bcol i.drop { background: #1d9e75; } .rb-bcol i.now { background: #1a1a2e; }
.rb-bcol i.o { opacity: 0.55; }
html[data-theme="dark"] .rb-bcol i.now { background: #e7e9f3; }
.rb-bcol span { position: absolute; left: 0; right: 0; text-align: center; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ren-text-strong); }
.rb-bridge small { display: block; text-align: center; font-size: 11.5px; color: var(--ren-text-secondary); margin-top: 5px; line-height: 1.3; }
.rb-drv { border: 1px solid var(--ren-border); border-radius: 10px; padding: 11px 13px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.rb-drv-t { font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--ren-text-strong); }
.rb-drv blockquote { margin: 0; padding: 8px 11px; background: var(--ren-surface-muted); border-radius: 7px; font-size: 12.5px; line-height: 1.55; color: var(--ren-text-secondary); }
.rb-drv .rb-chip { margin-left: 5px; }
.rb-new { font-size: 10.5px; font-weight: 700; color: #2f4fc9; border: 1px solid rgba(67, 105, 244, 0.5); border-radius: 4px; padding: 0 5px; }
.rb-sev { font-size: 11px; font-weight: 700; color: #fff; border-radius: 5px; padding: 2px 7px; }
.rb-sev.c { background: #6b0000; } .rb-sev.h { background: #b83232; }
.rb-wrow { display: grid; grid-template-columns: 124px minmax(0, 1fr) 40px 34px; gap: 8px; align-items: center; width: 100%; font: inherit; font-size: 13px; text-align: left; padding: 5px 6px; border: 0; border-radius: 6px; background: none; color: var(--ren-text-strong); cursor: pointer; }
.rb-wrow:hover { background: var(--ren-row-hover); }
.rb-wrow.on { background: rgba(67, 105, 244, 0.08); font-weight: 700; }
.rb-wrow b { text-align: right; font-variant-numeric: tabular-nums; }
.rb-reach { display: flex; gap: 10px; font-size: 13px; padding: 3px 0; }
.rb-reach b { min-width: 118px; }
.rb-reach span { color: var(--ren-text-secondary); }
.rb-dr-act { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--ren-border); }

@media (max-width: 720px) {
  .rb-main { padding: 14px 14px 32px; }
  .rb-head, .rb-bar-row { padding-left: 14px; padding-right: 14px; }
  .rb-verdict h2 { font-size: 18px; }
  .rb-grid2, .rb-two { grid-template-columns: 1fr; }
}
