.regal-context{display:grid;gap:18px;min-width:0;color:var(--qe-text,#d8dfeb)}.regal-context .v33-parity-tool{padding:18px}.regal-context h3,.regal-context h4{margin:0 0 12px}.regal-context table.regal-data-table{width:100%;border-collapse:collapse;font-size:12px}.regal-context .regal-data-table td,.regal-context .regal-data-table th{padding:10px;text-align:left;border-bottom:1px solid #ffffff14}

.regal-context details{padding:10px 0}.regal-context summary{cursor:pointer;color:#dfbb64}.regal-context-controls{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:14px}.regal-context-chart{margin:12px 0;padding:14px;border:1px solid #ffffff16;border-radius:8px}.regal-context-chart svg{width:100%;max-height:220px}.regal-context-chart figcaption{color:#dfbb64}.regal-context-chart p{font-size:11px;color:#929daf}.regal-context-explain{display:grid;grid-template-columns:1fr 1fr;gap:14px}.regal-context .v33-parity-detectors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.regal-context .v33-parity-detectors article{padding:14px;border:1px solid #ffffff17;border-radius:8px;background:#13272066}.regal-context .v33-parity-detectors article[data-tone=negative]{background:#34202766}.regal-context .v33-parity-detectors small{display:block;margin-top:6px;color:#909aaa}.regal-context .qe-risk-meter-ladder{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0;list-style:none;gap:6px}.regal-context .qe-risk-meter-ladder li{border-top:3px solid #dfbb64;padding:8px;background:#ffffff04}.regal-context .table-scroll{overflow-x:auto}.regal-macro-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.regal-macro-grid article{border:1px solid #ffffff16;padding:12px;border-radius:7px;background:#10131a}.regal-macro-grid button{font-size:12px;text-align:left}.regal-macro-grid small{display:block;color:#8791a0;margin-top:8px}.regal-cycle-wheel{width:180px;height:180px;margin:15px auto;border:20px solid #dfbb6440;border-right-color:#89aca060;border-bottom-color:#c19ba160;border-radius:50%;display:grid;place-items:center;text-align:center;font-size:12px}.regal-context button:focus-visible,.regal-context svg circle:focus{outline:2px solid #dfbb64;outline-offset:2px}@media(max-width:700px){.regal-macro-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.regal-context .v33-parity-detectors{grid-template-columns:repeat(2,minmax(0,1fr))}.regal-context .qe-risk-meter-ladder{grid-template-columns:1fr}.regal-context-explain{grid-template-columns:1fr}}
.regal-context .qe-btc-grid{stroke:#253040;stroke-width:1}.regal-context .qe-btc-area{fill:#dfbb641a}.regal-context .qe-btc-line{stroke:#dfbb64;fill:none;stroke-width:2}.regal-context .qe-bitcoin-price-chart svg{width:100%;max-height:280px}.regal-context .qe-bitcoin-price-chart svg text{font-size:11px;fill:#9ca9ba}.regal-context .qe-bond-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.regal-context .qe-commodity-chart-canvas{width:100%;height:300px}.regal-context .qe-commodity-chart-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.regal-context .qe-commodity-chart-toolbar button{background:#19212d;color:#e2e8f0;border:1px solid #ffffff20;border-radius:5px;padding:7px}@media(max-width:700px){.regal-context .qe-bond-groups{grid-template-columns:1fr}}

/* ─── Panel visual design ─────────────────────────────────────────────────
   The tool panels had no design of their own. A panel carried no background
   and no border, so it floated on the page ground with nothing containing
   it, and every column header was the same colour, size and weight as the
   measurements underneath it -- rgb(167,175,188), 14px, 500, for both -- so
   a heading and a number were indistinguishable.

   The deck already has both treatments; the panels simply were not using
   them. This is the macro tile's card and the model table's header applied
   here, so a tool panel reads as the same product as everything around it.

   Two notes on why these selectors are shaped the way they are.

   This file loads last, after target_workspace_final.css, so equal-specificity
   rules here win. That is the reason the block lives in this file rather than
   with the rest of today's styling: the same declarations there lost to the
   generic `.regal-context .regal-data-table td, .regal-context .regal-data-table th` rule fifteen lines above,
   silently and with no visible error.

   And the header rule is written through `table` to outrank
   `.qe-context-dialog-card .v33-parity-tool :is(p,li,td,th,dd,dt)`, which
   sets 14px. Body cells are deliberately left to that rule: it exists to make
   panel text readable at dialog size, and a header is the only thing here
   that wants to be smaller than its content. */
.regal-context .v33-parity-tool {
  background: linear-gradient(180deg, #161b22 0%, #13181f 100%);
  /* A grid item defaults to min-width: auto, so it cannot shrink below the
     min-content width of its widest table. `.regal-context` was doing the
     right thing -- 340px at a 414px viewport -- and the panel inside it sat
     at 578px regardless, pushing 164px past the screen and making the dialog
     scroll sideways to read a sentence. It also defeated the table's own
     overflow-x: the table never had to scroll because the panel simply grew.
     Zero here lets the panel take the width it is given and hands the
     overflow back to the table, which is where it was meant to be handled. */
  min-width: 0;
  border: 1px solid #30363d;
  border-radius: 8px;
  box-shadow: 0 1px 0 #ffffff08 inset;
  padding: 0;
}
.regal-context .v33-parity-tool > h3 {
  align-items: baseline;
  border-bottom: 1px solid #30363db3;
  color: #dfbb64;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 10px;
}
.regal-context .v33-parity-tool h4 {
  color: #c3ccd7;
  font: 600 9.5px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .13em;
  margin: 0;
  text-transform: uppercase;
}
/* A column heading is not a measurement. It was rendered as one.

   The type here is `.qe-ticker-financial-table thead th` verbatim -- the
   deck's existing header treatment, which the single-ticker readout has been
   using all along. That readout was the evidence that this design language
   was already present and that the tool panels were the one surface not
   speaking it, so the panels are matched to it rather than given a second
   dialect: same face, same size, same weight, same tracking, same token for
   the colour. The band and the rule underneath are the additions, and they
   are what separate a heading from the rows beneath it. */
.regal-context .v33-parity-tool table.regal-data-table th {
  background: #0d111788;
  border-bottom: 1px solid #30363d;
  color: var(--qe-muted);
  font: 500 9px/1 "IBM Plex Mono", monospace;
  letter-spacing: .05em;
  padding: 8px 10px;
  text-transform: uppercase;
}
.regal-context .v33-parity-tool table.regal-data-table td {
  border-bottom: 1px solid #30363d73;
  color: #ccd4de;
  font-variant-numeric: tabular-nums;
  padding: 8px 10px;
}
.regal-context .v33-parity-tool table.regal-data-table tbody tr:last-child td { border-bottom: 0; }
.regal-context .v33-parity-tool table.regal-data-table tbody tr:hover td { background: #dfbb640d; }
/* The first column of these tables is the name of the thing; the rest are
   its measurements. Only one of those wants full contrast. */
.regal-context .v33-parity-tool table.regal-data-table td:first-child { color: #f2f4f8; font-weight: 600; }
/* The table sits on the panel, not in a frame of its own.

   Two rules combine badly here and neither is wrong on its own.
   `table.qe-ticker-financial-table` is display:block unconditionally -- the
   fix that lets a 1481px financial table scroll horizontally instead of
   having its right-hand columns be unreachable. And the scroll-container
   rule gives `.qe-table-scroll, .qe-screener-table-scroll,
   .qe-ticker-financial-table` a page-ground background, a border and a
   radius; that is right for the two wrapper divs, but the third name is the
   table itself. Together they paint a full-width slab behind a table whose
   rows shrink-wrap: measured here, 1102px of frame around 392px of columns.

   So the frame comes off inside a panel, where the card already provides the
   ground and the header band and row rules mark the table along its real
   columns. display:block and overflow-x stay untouched, so a wide table in a
   panel still scrolls. */
.regal-context .v33-parity-tool table.regal-data-table {
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* Tool tabs were bare text in a row, with nothing to say they were buttons. */
.regal-context .regal-context-controls button {
  background: #12171e;
  border: 1px solid #30363d;
  border-radius: 5px;
  color: #aab4c0;
  cursor: pointer;
  padding: 6px 11px;
  transition: background-color .13s ease, border-color .13s ease, color .13s ease;
}
.regal-context .regal-context-controls button:hover {
  background: #dfbb6417;
  border-color: #dfbb6473;
  color: #f2f4f8;
}
.regal-context .v33-parity-tool details {
  border-top: 1px solid #30363d73;
  padding: 10px 0 4px;
}
/* The What / Read pair is guidance about the panel, not more of its data. */
.regal-context .v33-parity-tool .regal-context-explain {
  background: #0d111773;
  border: 1px solid #30363d8c;
  border-radius: 6px;
  margin-top: 14px;
  padding: 12px 14px;
}

/* Four clickable things had no hover and three had no focus ring, out of 147
   interactive elements on the deck -- the brand home link, the index ribbon
   that cycles S&P/Nasdaq/Dow, and the two card expanders. A control that
   never changes under the pointer reads as decoration, and one with no focus
   ring is unusable by keyboard. They take the same treatment every other
   header control already has. */
.qe-brand:hover,
.qe-brand:focus-visible,
.qe-index-ribbon:hover,
.qe-index-ribbon:focus-visible,
#v33-me-model-expand:hover,
#v33-me-model-expand:focus-visible,
#v33-me-pf-expand:hover,
#v33-me-pf-expand:focus-visible {
  border-color: var(--qe-accent);
  outline: 2px solid var(--qe-accent);
  outline-offset: 2px;
}
.qe-brand:hover strong,
.qe-index-ribbon:hover .qe-index-label {
  color: var(--qe-accent);
}

/* The donor styles these unscoped; Regal's copy is keyed to
   #v33-verbose-portfolio, and the private review renders into
   #regal-private-mount, so the heading and the scroll wrapper had no effect
   there. Same values, keyed off the elements themselves. */
.es-portfolio-verbose-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.es-portfolio-verbose-heading span { color: var(--text2, #a7afbc); font-size: 10px; }
.es-portfolio-verbose-scroll { overflow-x: auto; }

/* Regal's research tables sat in a qe-research-table-wrap that no stylesheet
   defined, so six tables of fifty rows could push the dialog sideways instead
   of scrolling inside it. The donor's rule. */
.qe-research-table-scroll { max-width: 100%; overflow-x: auto; }

/* ── The Original SaaS tool chrome (v33-popups.js _v33PopupHeaderHTML and
   _v33SidebarLlmPanel), shared by every sidebar tool. The panels had grown a
   22px title, a placeholder glyph where the icon belongs, 14px body text on
   every cell and a stack of chips and disclosures above the first reading;
   the donor opens on a 15px title with its icon, one lead sentence and one
   quiet line, at 11-13px. Colours are the donor's tokens: raised #16171d,
   card #101117, rail #0e0f13, gold hairline #4a3d1e, muted #a7afbc, faint
   #6e7682. ── */
.qe-context-dialog-card { width: min(1100px, calc(100vw - 40px)) !important; max-width: 1100px !important; font-size: 13px; }
.qe-context-dialog-card .qe-panel-heading > div::before { content: none; }
#qe-context-dialog-heading { align-items: center; color: var(--qe-text); display: flex; font-size: 15px; font-weight: 650; gap: 11px; letter-spacing: .2px; }
#qe-context-dialog-heading .regal-tool-icon { color: var(--qe-accent); flex: none; height: 18px; width: 18px; }
.qe-context-dialog-actions { margin-top: 0; }
.qe-context-dialog-card > #qe-context-dialog-result { margin-top: 10px; max-height: none; overflow: visible; }
.qe-context-dialog-card .regal-context[class*="regal-tool-"] { gap: 12px; }
.regal-context .regal-tool-lead { color: #a7afbc; font-size: 13px; line-height: 1.55; margin: 0; }
.regal-context .regal-tool-lead b { color: var(--qe-text); font-weight: 650; }
.regal-context .regal-tool-lead b[data-tone="good"] { color: #8fad9d; }
.regal-context .regal-tool-lead b[data-tone="bad"] { color: #bf929a; }
.regal-context .regal-tool-meta { align-items: center; color: #6e7682; display: flex; flex-wrap: wrap; font-size: 11px; gap: 8px; margin: -6px 0 2px; }
.regal-context .regal-tool-pill { border: 1px solid rgb(217 131 46 / 50%); border-radius: 999px; color: #d9832e; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; }
.regal-context .regal-tool-pill[data-state="stale"] { border-color: rgb(191 146 154 / 45%); color: #c69ca3; }
.qe-context-dialog-card .regal-context .regal-tool-smallprint { color: #6e7682; font-size: 11px; line-height: 1.5; margin: 12px 0 0; }
.regal-ask-card { background: rgb(223 187 100 / 4.5%); border: 1px solid rgb(223 187 100 / 28%); border-radius: 10px; margin-top: 16px; padding: 12px; }
.regal-ask-head { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.regal-ask-head strong { color: #dfbb64; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.regal-ask-head span { color: #6e7682; font-size: 10.5px; }
.regal-ask-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.regal-ask-modes button { background: #0e0f13; border: 1px solid var(--qe-border); border-radius: 999px; color: var(--qe-text); cursor: pointer; font-size: 10.5px; padding: 4px 9px; }
.regal-ask-modes button[aria-pressed="true"] { background: rgb(223 187 100 / 10%); border-color: #dfbb64; color: #dfbb64; }
.regal-ask-card textarea { box-sizing: border-box; resize: vertical; width: 100%; }
.regal-ask-card .regal-ask-send { background: #dfbb64; border: none; border-radius: 7px; color: #241a05; cursor: pointer; font-size: 11.5px; font-weight: 800; margin-top: 8px; padding: 7px 12px; }
.regal-ask-card .regal-ask-send:hover, .regal-ask-card .regal-ask-send:focus-visible { background: #e8c878; outline: 2px solid #dfbb64; outline-offset: 2px; }

/* ── Rotation tools (Intraday Flow, Theme Heat, Business Cycle): the donor's
   rot-hero verdict card, viz header with its Map/List toggle, treemap, heat
   grid and legend (dashboard.css .rot-hero / .rot-tile / .rot-horizon /
   .viz-mode-toggle / .es-heat-*). ── */
.regal-context .v33-parity-tool.regal-flow, .regal-context .v33-parity-tool.regal-themes, .regal-context .v33-parity-tool.regal-cycle { background: transparent; border: 0; box-shadow: none; padding: 0; }
/* Specificity: the dialog's older "readable panels" rules set 14px on every
   p/li/td/th inside a tool and restyle every h4 as a 9.5px mono label; the
   rules below are written through the dialog card so the donor's sizes win. */
.qe-context-dialog-card .v33-parity-tool, .qe-context-dialog-card .v33-parity-tool :is(p, li, td, th, dd, dt) { font-size: 13px; }
.regal-flow-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.regal-tool-btn { align-items: center; background: #16171d; border: 1px solid var(--qe-border); border-radius: 6px; color: var(--qe-text); cursor: pointer; display: inline-flex; font-size: 12px; font-weight: 600; gap: 6px; padding: 6px 14px; white-space: nowrap; }
.regal-tool-btn:hover, .regal-tool-btn:focus-visible { border-color: #dfbb64; color: #dfbb64; outline: none; }
.regal-market-pill { background: rgb(30 173 83 / 10%); border: 1px solid rgb(30 173 83 / 40%); border-radius: 6px; color: #8fad9d; font-size: 11px; font-weight: 700; padding: 4px 9px; }
.regal-market-pill[data-state="closed"] { background: rgb(167 175 188 / 7%); border-color: rgb(167 175 188 / 28%); color: #a7afbc; }
.regal-flow-stamp { color: #a7afbc; font-size: 11px; }
.regal-context .regal-rot-hero { align-items: stretch; background: #16171d; border: 1px solid var(--qe-border); border-radius: 12px; display: flex; gap: 16px; margin: 0 0 12px; padding: 16px 18px; }
.regal-rot-hero-main { flex: 1; min-width: 0; }
.regal-rot-horizon { border: 1px solid var(--qe-border); border-radius: 999px; display: inline-flex; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; margin-bottom: 8px; overflow: hidden; text-transform: uppercase; }
.regal-rot-horizon span { color: #6e7682; padding: 2px 10px; white-space: nowrap; }
.regal-rot-horizon span + span { border-left: 1px solid var(--qe-border); }
.regal-rot-horizon span[data-active="true"] { background: #dfbb64; color: #241a05; }
.regal-context .regal-rot-verdict { color: var(--qe-text); font-size: 18px; font-weight: 750; letter-spacing: .3px; line-height: 1.1; margin: 0; text-transform: uppercase; }
.regal-context .regal-rot-hero[data-sub] .regal-rot-verdict { font-size: 16px; }
.regal-context .regal-rot-verdict[data-tone="good"] { color: #8fad9d; }
.regal-context .regal-rot-verdict[data-tone="bad"] { color: #bf929a; }
.regal-context .regal-rot-verdict[data-tone="warn"] { color: #d9832e; }
.qe-context-dialog-card .regal-context .regal-rot-sentence { color: #a7afbc; font-size: 12px; line-height: 1.5; margin: 11px 0 0; max-width: 62ch; }
.regal-rot-tiles { align-items: stretch; display: flex; flex: none; gap: 10px; }
.regal-rot-tile { align-items: center; background: #101117; border: 1px solid var(--qe-border); border-radius: 10px; display: flex; flex-direction: column; justify-content: center; min-width: 84px; padding: 10px 12px; text-align: center; }
.regal-rot-tile strong { color: var(--qe-text); font-size: 21px; font-variant-numeric: tabular-nums; font-weight: 750; line-height: 1; }
.regal-rot-tile strong small { font-size: .55em; font-weight: 600; opacity: .5; }
.regal-rot-tile strong[data-tone="good"] { color: #8fad9d; }
.regal-rot-tile strong[data-tone="bad"] { color: #bf929a; }
.regal-rot-tile strong[data-tone="warn"] { color: #d9832e; }
.regal-rot-tile span { color: #6e7682; font-size: 9.5px; letter-spacing: .05em; line-height: 1.3; margin-top: 5px; max-width: 128px; text-transform: uppercase; }
.regal-viz-header { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin: 0 0 10px; }
.qe-context-dialog-card .regal-context .v33-parity-tool .regal-viz-title { color: var(--qe-text); flex: 1; font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .6px; margin: 0; min-width: 0; text-transform: uppercase; }
.regal-viz-title span { color: #a7afbc; font-size: 10px; font-weight: 400; }
.regal-viz-toggle { background: #16171d; border: 1px solid var(--qe-border); border-radius: 6px; display: inline-flex; flex: none; overflow: hidden; }
.regal-viz-toggle button { background: transparent; border: 0; border-right: 1px solid var(--qe-border); color: #a7afbc; cursor: pointer; font-size: 12px; font-weight: 600; padding: 6px 15px; transition: background .12s, color .12s; white-space: nowrap; }
.regal-viz-toggle button:last-child { border-right: 0; }
.regal-viz-toggle button:hover { background: rgb(223 187 100 / 10%); color: var(--qe-text); }
.regal-viz-toggle button[aria-pressed="true"] { background: #dfbb64; color: #241a05; font-weight: 800; }
.regal-treemap { background: #0a1019; border: 1px solid var(--qe-border); border-radius: 10px; overflow: hidden; position: relative; width: 100%; }
.regal-treemap-cell { border: 1px solid; border-radius: 5px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: absolute; transition: filter .12s; }
.regal-treemap-cell:hover, .regal-heat-cell:hover { filter: brightness(1.14); z-index: 2; }
.regal-treemap-cell[data-selectable], .regal-heat-cell[data-selectable] { cursor: pointer; }
.regal-treemap-cell:focus-visible, .regal-heat-cell:focus-visible { outline: 2px solid #dfbb64; outline-offset: -2px; z-index: 2; }
.regal-heat-lbl { display: block; font-weight: 650; letter-spacing: .1px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regal-heat-sub { display: block; font-size: 9.5px; line-height: 1.25; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regal-heat-val { align-self: flex-start; display: block; font-variant-numeric: tabular-nums; font-weight: 750; line-height: 1; }
.regal-heat-grid { align-content: flex-start; display: flex; flex-wrap: wrap; gap: 7px; }
.regal-heat-grid > * { flex: 1 1 var(--regal-tile-min, 158px); min-width: 0; }
.regal-heat-cell { border: 1px solid; border-radius: 5px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; min-height: 64px; overflow: hidden; padding: 11px 12px; transition: filter .12s; }
.regal-heat-cell .regal-heat-lbl { font-size: 11.5px; white-space: normal; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.regal-heat-cell .regal-heat-val { font-size: 15px; margin-top: 8px; }
.regal-heat-badge { background: rgb(6 6 8 / 35%); border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: .06em; margin-left: 6px; padding: 1px 5px; text-transform: uppercase; vertical-align: 1px; }
.regal-heat-cell[data-badge] { box-shadow: inset 0 0 0 1px #dfbb64; }
.regal-viz-legend { align-items: center; color: #6e7682; display: flex; flex-wrap: wrap; font-size: 10px; gap: 14px; margin-top: 8px; }
.regal-viz-key::before { border-radius: 2px; content: ""; display: inline-block; height: 10px; margin-right: 5px; vertical-align: -1px; width: 10px; }
.regal-viz-key[data-key="up"]::before { background: rgb(22 201 132); }
.regal-viz-key[data-key="down"]::before { background: rgb(222 66 66); }
.regal-viz-key[data-key="flat"]::before { background: #172234; }
.regal-viz-note { margin-left: auto; }
.regal-viz-hint { opacity: .72; }
.regal-rank-list { border: 1px solid var(--qe-border); border-radius: 8px; max-height: 360px; overflow: auto; }
.regal-rank-list table { border-collapse: collapse; width: 100%; }
.qe-context-dialog-card .regal-context .regal-rank-list :is(td, th) { font-size: 12px; }
.qe-context-dialog-card .regal-context .regal-rank-list th { background: #0e0f13; color: #a7afbc; font-family: inherit; font-size: 10px; font-weight: 600; line-height: 1.2; letter-spacing: .4px; padding: 7px 10px; position: sticky; text-align: left; text-transform: uppercase; top: 0; }
.qe-context-dialog-card .regal-context .regal-rank-list td { border-bottom: 1px solid rgb(74 61 30 / 55%); color: #d6dde6; padding: 6px 10px; }
.regal-rank-list td:nth-last-child(-n+2), .qe-context-dialog-card .regal-context .regal-rank-list th:nth-last-child(-n+2) { font-variant-numeric: tabular-nums; text-align: right; }
.qe-context-dialog-card .regal-context .regal-rank-list td[data-tone="good"] { color: #8fad9d; }
.qe-context-dialog-card .regal-context .regal-rank-list td[data-tone="bad"] { color: #bf929a; }
.regal-rank-list td button { background: transparent; border: 1px solid var(--qe-border); border-radius: 5px; color: #dfbb64; cursor: pointer; font: 700 11px "IBM Plex Mono", ui-monospace, monospace; padding: 2px 7px; }
@media (max-width: 720px) { .regal-context .regal-rot-hero { flex-direction: column; } .regal-rot-tiles { justify-content: flex-start; } }

/* Theme Heat: the heat mix line, the donor's two-column List, the chosen
   theme's roster and the AI phase tile row. */
.qe-context-dialog-card .regal-context .regal-heat-mix { color: #a7afbc; font-size: 11px; letter-spacing: .04em; margin: 0 0 12px; text-transform: uppercase; }
.regal-heat-columns { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.regal-heat-column { background: #060608; border: 1px solid rgb(191 146 154 / 25%); border-radius: 8px; padding: 8px 6px; }
.regal-heat-column[data-tone="good"] { border-color: rgb(143 173 157 / 25%); }
.regal-heat-column h5 { color: #fca5a5; font-size: 10px; font-weight: 700; letter-spacing: .5px; margin: 0 6px 4px; text-transform: uppercase; }
.regal-heat-column[data-tone="good"] h5 { color: #a4bdb0; }
.regal-heat-row { align-items: center; background: transparent; border: 0; border-radius: 6px; color: var(--qe-text); cursor: pointer; display: grid; font-size: 12px; gap: 8px; grid-template-columns: 1fr auto 64px; padding: 5px 6px; text-align: left; width: 100%; }
.regal-heat-row:hover, .regal-heat-row:focus-visible { background: #16171d; outline: none; }
.regal-heat-row b { font-variant-numeric: tabular-nums; text-align: right; }
.regal-heat-column[data-tone="good"] .regal-heat-row b { color: #8fad9d; }
.regal-heat-column[data-tone="bad"] .regal-heat-row b { color: #bf929a; }
.regal-heat-state { border: 1px solid #30363d; border-radius: 4px; color: #a7afbc; font-size: 9px; font-weight: 700; letter-spacing: .05em; padding: 1px 5px; }
.regal-heat-state[data-state="SURGING"] { border-color: rgb(143 173 157 / 50%); color: #8fad9d; }
.regal-heat-state[data-state="HOT"] { border-color: rgb(134 239 172 / 45%); color: #a4bdb0; }
.regal-heat-state[data-state="WARMING"] { border-color: rgb(217 131 46 / 50%); color: #d9832e; }
.regal-heat-state[data-state="COOLING"] { border-color: rgb(191 146 154 / 45%); color: #c69ca3; }
.regal-theme-detail { background: #16171d; border: 1px solid var(--qe-border); border-radius: 10px; margin-top: 12px; padding: 12px 14px; }
.regal-theme-detail-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.regal-theme-detail-head strong { color: #dfbb64; font-size: 13px; }
.regal-theme-detail-head span { color: #a7afbc; font-size: 11px; }
.regal-phase-row { margin-top: 14px; }
.regal-phase-row h5 { color: var(--qe-text); font-size: 11px; font-weight: 700; letter-spacing: .6px; margin: 0 0 8px; text-transform: uppercase; }
.regal-phase-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.regal-phase-tiles > * { flex: 1 1 128px; min-width: 0; }
.regal-phase-tile { background: #101117; border: 1px solid var(--qe-border); border-radius: 8px; padding: 8px 10px; }
.regal-phase-tile span { color: #a7afbc; display: block; font-size: 10px; line-height: 1.3; }
.regal-phase-tile b { color: var(--qe-text); display: block; font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 3px; }
@media (max-width: 720px) { .regal-heat-columns { grid-template-columns: 1fr; } }

/* Business Cycle: the donor's renderBusinessCycleWheel (a 260-box donut with
   the current phase lit and named in the hole, its pattern underneath, and the
   pair-spread heat grid beside it) and its Detail view (.ltrot-phase-card and
   .ltrot-pairs-table). */
.regal-cycle-wheel-view { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 24px; }
.regal-cycle-wheel-col { flex: 0 0 260px; text-align: center; }
.regal-cycle-wheel-col svg { display: block; height: 250px; margin: 0 auto; max-width: 100%; width: 250px; }
.qe-context-dialog-card .regal-context .regal-cycle-desc { color: #a7afbc; font-size: 11.5px; line-height: 1.5; margin: 10px auto 0; max-width: 260px; }
.regal-cycle-pairs-col { flex: 1; min-width: 280px; }
.qe-context-dialog-card .regal-context .regal-cycle-pairs-title { color: var(--qe-text); font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.qe-context-dialog-card .regal-context .regal-cycle-pairs-sub { color: #a7afbc; font-size: 11px; margin: 0 0 8px; }
.regal-cycle-phase-card { align-items: center; background: #0e0f13; border: 1px solid var(--qe-border); border-radius: 8px; display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 14px; padding: 16px 18px; }
.regal-cycle-phase-pill { border-radius: 6px; font-size: 18px; font-weight: 800; letter-spacing: .4px; padding: 6px 14px; }
.regal-cycle-phase-pill[data-phase="early-cycle"] { background: rgb(143 173 157 / 20%); color: #8fad9d; }
.regal-cycle-phase-pill[data-phase="mid-cycle"], .regal-cycle-phase-pill[data-phase="recovery"] { background: rgb(223 187 100 / 20%); color: #dfbb64; }
.regal-cycle-phase-pill[data-phase="late-cycle"] { background: rgb(234 179 8 / 20%); color: #eab308; }
.regal-cycle-phase-pill[data-phase="recession"] { background: rgb(191 146 154 / 20%); color: #bf929a; }
.regal-cycle-phase-card > span { color: #a7afbc; font-size: 11px; }
.regal-cycle-fits { display: flex; flex-basis: 100%; flex-wrap: wrap; gap: 6px; }
.regal-cycle-fit { background: #16171d; border: 1px solid var(--qe-border); border-radius: 999px; color: #a7afbc; font-size: 11px; padding: 3px 10px; }
.regal-cycle-fit b { color: var(--qe-text); font-variant-numeric: tabular-nums; font-weight: 700; margin-left: 4px; }
.regal-cycle-fit[data-current] { border-color: #dfbb64; color: #dfbb64; }
.regal-cycle-fit[data-gated] { opacity: .62; }
.regal-cycle-pairs-box { background: #0e0f13; border: 1px solid var(--qe-border); border-radius: 8px; padding: 8px 10px; }
.qe-context-dialog-card .regal-context .regal-cycle-pairs-box h5 { color: #a7afbc; font-size: 12px; font-weight: 700; letter-spacing: .5px; margin: 0 0 6px 4px; text-transform: uppercase; }
.qe-context-dialog-card .regal-context .regal-cycle-pairs { background: transparent; border: 0; border-collapse: collapse; display: table; font-size: 11.5px; width: 100%; }
.qe-context-dialog-card .regal-context .regal-cycle-pairs :is(th, td) { background: transparent; border-bottom: 1px solid var(--qe-border); font-size: 11.5px; padding: 6px 8px; text-align: left; }
.qe-context-dialog-card .regal-context .regal-cycle-pairs th { color: #a7afbc; font-family: inherit; font-size: 10px; font-weight: 600; line-height: 1.2; letter-spacing: .4px; text-transform: uppercase; }
.qe-context-dialog-card .regal-context .regal-cycle-pairs td:first-child { color: var(--qe-text); font-weight: 700; }
.qe-context-dialog-card .regal-context .regal-cycle-pairs td small { color: #6e7682; font-weight: 500; margin-left: 6px; }
.qe-context-dialog-card .regal-context .regal-cycle-pairs :is(th, td):not(:first-child) { font-variant-numeric: tabular-nums; text-align: right; }
.qe-context-dialog-card .regal-context .regal-cycle-pairs td[data-tone="good"] { color: #8dad9b; }
.qe-context-dialog-card .regal-context .regal-cycle-pairs td[data-tone="bad"] { color: #b48690; }
.qe-context-dialog-card .regal-context .regal-cycle-windows { color: #6e7682; font-size: 11px; margin: 8px 4px 2px; }

/* Geopolitical Shocks, Smart Money Watch and US Bonds & FX open in the donor's
   900px virtual popup (v33-popups.js: panel.style.maxWidth = '900px'); the
   panel-backed tools keep 1100px. */
.qe-context-dialog-card:has(.regal-tool-geopolitical_shocks, .regal-tool-smart_money_watch, .regal-tool-bonds_fx, .regal-tool-risk_meter) { max-width: 900px !important; width: min(900px, calc(100vw - 40px)) !important; }
/* Geopolitical Shocks: the donor's _v33RenderGeoShocks cards on its justified
   tile grid -- a state stripe, a mono badge, the measure in mono beneath. */
.regal-context .v33-parity-tool.regal-geo { background: transparent; border: 0; box-shadow: none; padding: 0; }
.qe-context-dialog-card .regal-context .regal-shocks { display: block; margin: 0; }
.qe-context-dialog-card .regal-context .regal-shocks-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.qe-context-dialog-card .regal-context .regal-shocks-grid > * { flex: 1 1 210px; min-width: 0; }
.qe-context-dialog-card .regal-context .regal-shock { background: #0e0f13; border: 1px solid var(--qe-border); border-left: 3px solid #6e7682; border-radius: 8px; display: block; padding: 11px 13px; }
.qe-context-dialog-card .regal-context .regal-shock:focus-visible { outline: 2px solid #dfbb64; outline-offset: 1px; }
.qe-context-dialog-card .regal-context .regal-shock-head { align-items: center; display: flex; gap: 8px; }
.qe-context-dialog-card .regal-context .regal-shock-head strong { color: var(--qe-text); flex: 1; font-size: 13px; font-weight: 700; }
.qe-context-dialog-card .regal-context .regal-shock-badge { background: rgb(148 163 184 / 10%); border: 1px solid #6e7682; border-radius: 5px; color: #6e7682; font: 800 9.5px/1.3 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; padding: 2px 7px; }
.qe-context-dialog-card .regal-context .regal-shock[data-state="HEALTHY"] { border-left-color: #8fad9d; }
.qe-context-dialog-card .regal-context .regal-shock[data-state="HEALTHY"] .regal-shock-badge { background: rgb(46 230 154 / 10%); border-color: #8fad9d; color: #8fad9d; }
.qe-context-dialog-card .regal-context .regal-shock[data-state="ELEVATED"] { border-left-color: #d4a548; }
.qe-context-dialog-card .regal-context .regal-shock[data-state="ELEVATED"] .regal-shock-badge { background: rgb(212 165 72 / 12%); border-color: #d4a548; color: #d4a548; }
.qe-context-dialog-card .regal-context .regal-shock[data-state="ACTIVE"] { border-left-color: #f97316; }
.qe-context-dialog-card .regal-context .regal-shock[data-state="ACTIVE"] .regal-shock-badge { background: rgb(249 115 22 / 14%); border-color: #f97316; color: #f97316; }
.qe-context-dialog-card .regal-context .regal-shock[data-state="CRISIS"] { border-left-color: #bf929a; }
.qe-context-dialog-card .regal-context .regal-shock[data-state="CRISIS"] .regal-shock-badge { background: rgb(248 81 73 / 16%); border-color: #bf929a; color: #bf929a; }
.qe-context-dialog-card .regal-context .regal-shock-measure { color: #6e7682; font: 10.5px/1.45 "IBM Plex Mono", ui-monospace, monospace; margin: 4px 0 0; }
.qe-context-dialog-card .regal-context .regal-shock-reading { color: #a7afbc; font: 10.5px/1.45 "IBM Plex Mono", ui-monospace, monospace; margin: 7px 0 0; }
.qe-context-dialog-card .regal-context .regal-shock-pending { color: #d4a548; font-size: 10.5px; margin: 5px 0 0; }
.qe-context-dialog-card .regal-context .regal-shocks-summary { align-items: center; color: #a7afbc; display: flex; flex-wrap: wrap; font-size: 12px; gap: 10px 20px; margin: 14px 0 16px; }
.qe-context-dialog-card .regal-context .regal-shocks-summary b { color: var(--qe-text); }
.qe-context-dialog-card .regal-context .regal-shocks-faint { color: #6e7682; }
.qe-context-dialog-card .regal-context .regal-shocks-note { color: #a7afbc; font-size: 12px; line-height: 1.5; margin: 0; }
.qe-context-dialog-card .regal-context .regal-shocks-charts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 0; }
.qe-context-dialog-card .regal-context .regal-shocks-charts h5 { color: var(--qe-text); font-size: 12px; font-weight: 600; margin: 0 0 6px; }

/* AI Capex: the stage as the verdict card, company capex as heat tiles, and
   plain reading tiles for the mixed-unit market-stress companions. */
.regal-context .v33-parity-tool.regal-capex { background: transparent; border: 0; box-shadow: none; padding: 0; }
.qe-context-dialog-card .regal-context .regal-capex > .regal-viz-header { margin-top: 16px; }
.qe-context-dialog-card .regal-context .regal-capex > .regal-rot-hero + .regal-viz-header { margin-top: 4px; }
.regal-rot-scale span[data-active="true"][data-tone="good"] { background: #8dad9b; color: #04140d; }
.regal-rot-scale span[data-active="true"][data-tone="warn"] { background: #d9832e; color: #1c0e02; }
.regal-rot-scale span[data-active="true"][data-tone="bad"] { background: #b48690; color: #1c0606; }
.regal-stat-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.regal-stat-tiles > * { flex: 1 1 var(--regal-tile-min, 150px); min-width: 0; }
.regal-stat-tile { background: #101117; border: 1px solid var(--qe-border); border-radius: 8px; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; }
.regal-stat-tile:focus-visible { outline: 2px solid #dfbb64; outline-offset: 1px; }
.regal-stat-tile > span { color: #a7afbc; font-size: 10.5px; line-height: 1.3; }
.regal-stat-tile > b { color: var(--qe-text); font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 750; line-height: 1.2; }
.regal-stat-tile > b[data-tone="good"] { color: #8fad9d; }
.regal-stat-tile > b[data-tone="bad"] { color: #bf929a; }
.regal-stat-tile > b[data-tone="warn"] { color: #d9832e; }
.regal-stat-tile > small { color: #6e7682; font-size: 10px; line-height: 1.35; }
.regal-heat-cell .regal-heat-sub { font-size: 10px; margin-top: 3px; opacity: .85; }

/* Smart Money Watch: the donor's _v33RenderSmartMoneyWatch name cards on the
   justified tile grid -- score stripe and badge, mono rank line, sources, tags,
   the component grid and the foot -- then the chosen name's evidence and the
   two trade lists. */
.regal-context .v33-parity-tool.regal-smart { background: transparent; border: 0; box-shadow: none; padding: 0; }
.qe-context-dialog-card .regal-context .regal-smart > .regal-viz-header { margin-top: 18px; }
.regal-smart-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.regal-smart-cards > * { flex: 1 1 210px; min-width: 0; }
.regal-smart-card { background: #0e0f13; border: 1px solid var(--qe-border); border-left: 3px solid #94a3b8; border-radius: 8px; cursor: pointer; padding: 16px; }
.regal-smart > div:first-child > .regal-viz-header { align-items: start; flex-wrap: wrap; gap: 12px; }
.qe-context-dialog-card .regal-context .regal-smart > div:first-child > .regal-viz-header .regal-viz-title { font-size: 14px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.regal-smart > div:first-child > .regal-viz-header .regal-viz-title span { font-size: 12px; line-height: 1.4; }
.regal-smart-card:hover { background: #121319; }
.regal-smart-card:focus-visible { outline: 2px solid #dfbb64; outline-offset: 1px; }
.regal-smart-card[data-tone="good"] { border-left-color: #8fad9d; }
.regal-smart-card[data-tone="warn"] { border-left-color: #d4a548; }
.regal-smart-head { align-items: center; display: flex; gap: 8px; }
.regal-smart-head strong { color: var(--qe-text); flex: 1; font-size: 14px; font-weight: 800; }
.regal-smart-badge { background: rgb(139 148 158 / 10%); border: 1px solid #94a3b8; border-radius: 5px; color: #94a3b8; font: 800 13px/1.3 "IBM Plex Mono", ui-monospace, monospace; padding: 4px 8px; }
.regal-smart-card[data-tone="good"] .regal-smart-badge { background: rgb(46 230 154 / 10%); border-color: #8fad9d; color: #8fad9d; }
.regal-smart-card[data-tone="warn"] .regal-smart-badge { background: rgb(212 165 72 / 12%); border-color: #d4a548; color: #d4a548; }
.qe-context-dialog-card .regal-context .regal-smart-mono { color: #a7afbc; font: 12px/1.4 "IBM Plex Mono", ui-monospace, monospace; margin: 8px 0 0; }
.qe-context-dialog-card .regal-context .regal-smart-sources { color: #a7afbc; font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
.regal-smart-detail { background: #16171d; border: 1px solid var(--qe-border); border-radius: 10px; margin-top: 12px; padding: 12px 14px; }
.regal-smart-detail-head { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.regal-smart-detail-head strong { color: #dfbb64; font-size: 15px; font-weight: 800; }
.regal-smart-detail-head span { color: #a7afbc; flex: 1; font-size: 11px; }
.regal-smart-components { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.regal-smart-components > div { background: #101117; border: 1px solid var(--qe-border); border-radius: 7px; flex: 1 1 110px; padding: 7px 10px; }
.regal-smart-components span { color: #a7afbc; display: block; font-size: 10px; }
.regal-smart-components b { color: var(--qe-text); display: block; font: 700 13px/1.3 "IBM Plex Mono", ui-monospace, monospace; }
.qe-context-dialog-card .regal-context .regal-smart-line { color: #c9d1dc; font-size: 12px; line-height: 1.5; margin: 4px 0 0; }
.regal-smart-news { margin: 4px 0 0; padding-left: 18px; }
.qe-context-dialog-card .regal-context .regal-smart-news li { color: #a7afbc; font-size: 11.5px; line-height: 1.5; }
.regal-smart-news a { color: #dfbb64; }
.regal-smart-news small { color: #6e7682; }
.regal-trade-row { grid-template-columns: 58px 1fr auto; }
.regal-trade-symbol { color: #dfbb64; font: 700 11.5px "IBM Plex Mono", ui-monospace, monospace; }
.regal-heat-column .regal-heat-name { color: #c9d1dc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regal-congress-list { background: #060608; border: 1px solid var(--qe-border); border-radius: 8px; padding: 6px; }
.regal-congress-row { align-items: center; background: transparent; border: 0; border-radius: 6px; color: var(--qe-text); cursor: pointer; display: grid; font-size: 12px; gap: 10px; grid-template-columns: 58px 58px minmax(0, 1fr) auto 118px; padding: 5px 6px; text-align: left; width: 100%; }
.regal-congress-row:hover, .regal-congress-row:focus-visible { background: #16171d; outline: none; }
.regal-congress-side { border: 1px solid #30363d; border-radius: 4px; color: #a7afbc; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; padding: 1px 5px; text-align: center; text-transform: uppercase; }
.regal-congress-row[data-side="BUY"] .regal-congress-side { border-color: rgb(46 230 154 / 50%); color: #8fad9d; }
.regal-congress-row[data-side="SELL"] .regal-congress-side { border-color: rgb(248 81 73 / 50%); color: #bf929a; }
.regal-congress-dates { color: #6e7682; font-size: 11px; white-space: nowrap; }
.regal-congress-row b { color: #c9d1dc; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
@media (max-width: 720px) { .regal-congress-row { grid-template-columns: 52px 52px minmax(0, 1fr); } .regal-congress-dates, .regal-congress-row b { grid-column: 3; text-align: left; } .regal-congress-dates { white-space: normal; } .regal-congress-row .regal-heat-name { overflow-wrap: anywhere; } }
/* Phones (audit R8, 2026-10-07): AI Capex's 508 px stage strip ran off a 301 px dialog with its last three
   stages out of reach, and the Commodities window switch (361 px) and the Margin regime strip did the same,
   while the page itself reported no overflow. Strips and switches wrap inside the dialog instead. */
@media (max-width: 720px) {
  .regal-rot-horizon { border-radius: 12px; display: flex; flex-wrap: wrap; max-width: 100%; }
  .regal-rot-horizon span, .regal-rot-horizon button { flex: 1 1 auto; text-align: center; }
  .regal-viz-header { flex-wrap: wrap; }
  .regal-viz-toggle { display: flex; flex-wrap: wrap; max-width: 100%; }
  .regal-viz-toggle button { flex: 1 1 auto; padding: 6px 10px; }
}
/* A grid cell or list row wraps its label rather than cutting it with an ellipsis on a narrow dialog
   ("$132.4B · 4 quarters to 2026-06-30" showed 129 of its 153 px); a map cell still clips by design. */
@media (max-width: 900px) {
  .regal-heat-cell .regal-heat-lbl, .regal-heat-cell .regal-heat-sub { overflow-wrap: anywhere; white-space: normal; }
  .regal-heat-column .regal-heat-name { overflow-wrap: anywhere; white-space: normal; }
}

/* Crypto and Gold & Commodities: the donor's cycle-gauge layout
   (dashboard_ui.html Bitcoin cycle view) -- gauge card beside a context card,
   then three research cards -- shared through cycle_cards.js. */
.regal-context .v33-parity-tool.regal-crypto, .regal-context .v33-parity-tool.regal-commodities { background: transparent; border: 0; box-shadow: none; padding: 0; }
.qe-context-dialog-card .regal-context :is(.regal-crypto, .regal-commodities) > .regal-viz-header { margin-top: 18px; }
.regal-gauge-row { display: grid; gap: 14px; grid-template-columns: 1.4fr 1fr; margin-bottom: 14px; }
.regal-gauge-card { background: linear-gradient(180deg, #0f172a, #0a0e1a); border: 1px solid rgb(247 147 26 / 30%); border-radius: 12px; box-sizing: border-box; padding: 18px 20px; }
.regal-gauge-context { border-color: rgb(223 187 100 / 30%); display: flex; flex-direction: column; gap: 10px; }
.regal-gauge-head { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.regal-gauge-title { color: #a7afbc; display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.regal-gauge-band { background: rgb(247 147 26 / 18%); border: 1px solid rgb(247 147 26 / 45%); border-radius: 999px; color: #d3b980; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 2px 8px; }
.regal-gauge-asof { color: #a7afbc; font-size: 11px; font-variant-numeric: tabular-nums; margin-left: auto; }
.regal-gauge-bar { border-radius: 8px; box-shadow: 0 1px 4px rgb(0 0 0 / 35%) inset; height: 32px; overflow: visible; position: relative; }
.regal-gauge-needle { background: #fff; bottom: -3px; box-shadow: 0 0 8px rgb(255 255 255 / 85%); position: absolute; top: -3px; transform: translateX(-1.5px); width: 3px; }
.regal-gauge-scale { color: #a7afbc; display: flex; font-size: 9px; justify-content: space-between; letter-spacing: .4px; margin-top: 6px; }
.regal-gauge-facts { display: flex; flex-wrap: wrap; font-size: 11px; gap: 8px 18px; margin-top: 14px; }
.regal-gauge-label { color: #a7afbc; }
.regal-gauge-facts strong, .regal-context-line strong { color: var(--qe-text); font-variant-numeric: tabular-nums; }
:is(.regal-gauge-facts, .regal-context-line) strong[data-tone="gold"] { color: #d4a548; }
:is(.regal-gauge-facts, .regal-context-line) strong[data-tone="good"] { color: #a4bdb0; }
:is(.regal-gauge-facts, .regal-context-line) strong[data-tone="bad"] { color: #c69ca3; }
:is(.regal-gauge-facts, .regal-context-line) strong[data-tone="gold-caps"] { color: #dfbb64; letter-spacing: .5px; text-transform: uppercase; }
.qe-context-dialog-card .regal-context .regal-gauge-note { border-top: 1px dashed var(--qe-border); color: #a7afbc; font-size: 10.5px; line-height: 1.55; margin: 14px 0 0; padding-top: 11px; }
.regal-gauge-note strong { color: #d3b980; }
.regal-context-lines { display: flex; flex-direction: column; gap: 8px; }
.regal-context-line { display: flex; flex-wrap: wrap; font-size: 12px; gap: 4px 14px; }
.regal-context-quiet, .regal-context-foot { color: #a7afbc; font-size: 10px; }
.regal-context-foot { margin-top: auto; }
.regal-research-cards { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 4px; }
.regal-research-card { background: linear-gradient(180deg, #101827, #0a0e1a); border: 1px solid rgb(223 187 100 / 22%); border-radius: 12px; padding: 14px 15px; }
.regal-research-card[data-edge="good"] { border-color: rgb(46 230 154 / 22%); }
.regal-research-card[data-edge="bad"] { border-color: rgb(248 81 73 / 20%); }
.regal-research-card .regal-gauge-title { font-size: 10px; font-weight: 800; margin-bottom: 8px; }
.regal-research-head { align-items: baseline; display: flex; gap: 8px; margin-bottom: 7px; }
.regal-research-head strong { color: #dfbb64; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.regal-research-head strong[data-big] { font-size: 20px; }
.regal-research-head strong[data-tone="good"] { color: #a4bdb0; }
.regal-research-head strong[data-tone="bad"] { color: #c69ca3; }
.regal-research-head span { color: #a7afbc; font-size: 11px; font-variant-numeric: tabular-nums; }
.qe-context-dialog-card .regal-context .regal-research-body { color: #a7afbc; font-size: 10.5px; line-height: 1.45; margin: 0; }
.regal-bitcoin-chart output { color: #a7afbc; display: block; font-size: 11px; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.regal-bitcoin-chart a { color: #6e7682; font-size: 10px; }
@media (max-width: 760px) { .regal-gauge-row, .regal-research-cards { grid-template-columns: 1fr; } }
.qe-context-dialog-card .regal-context .regal-bitcoin > .regal-viz-header { margin-top: 18px; }
.regal-gauge-scale { display: block; height: 14px; position: relative; }
.regal-gauge-scale > span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.regal-gauge-scale > .regal-gauge-edge { color: #6e7682; font-size: 8.5px; top: -1px; }
.regal-gauge-scale > span:not(.regal-gauge-edge) { top: 12px; }
.regal-gauge-scale { height: 26px; }
.regal-gauge-tick { background: rgb(6 6 8 / 55%); bottom: 0; position: absolute; top: 0; width: 1px; }
/* The gold chart under its own header: the chart's title and its Sources are
   the header's and the meta line's; the zoom and step pairs are segmented
   controls like the donor's view toggle. */
.regal-gold-chart { background: #0a0e1a; border: 1px solid var(--qe-border); border-radius: 10px; padding: 10px 12px; }
.regal-gold-chart .qe-commodity-chart-toolbar { align-items: center; display: flex; gap: 8px; margin-bottom: 6px; }
.qe-context-dialog-card .regal-context .regal-gold-chart .qe-commodity-chart-toolbar h4, .qe-context-dialog-card .regal-context .regal-gold-chart .qe-context-sources { display: none; }
.regal-gold-chart .qe-commodity-chart-toolbar output { color: #a7afbc; flex: 1; font-size: 11px; font-variant-numeric: tabular-nums; }
.qe-commodity-chart-segment { background: #16171d; border: 1px solid var(--qe-border); border-radius: 6px; display: inline-flex; overflow: hidden; }
.qe-context-dialog-card .regal-context .qe-commodity-chart-segment button { background: transparent; border: 0; border-radius: 0; border-right: 1px solid var(--qe-border); color: #a7afbc; cursor: pointer; font-size: 11.5px; font-weight: 600; min-width: 30px; padding: 4px 10px; }
.qe-context-dialog-card .regal-context .qe-commodity-chart-segment button:last-child { border-right: 0; }
.qe-context-dialog-card .regal-context .qe-commodity-chart-segment button:hover, .qe-context-dialog-card .regal-context .qe-commodity-chart-segment button:focus-visible { background: rgb(223 187 100 / 10%); color: var(--qe-text); outline: none; }
.qe-context-dialog-card .regal-context .regal-gold-chart p { color: #6e7682; font-size: 10.5px; margin: 6px 0 0; }
.regal-gold-chart a { color: #6e7682; font-size: 10px; }

/* US Bonds & FX: the donor's rate-path gauge with its "Reading it" card, the
   TLT chart, and the Treasury and FX tiles with their direction stripes. */
.regal-context .v33-parity-tool.regal-bonds { background: transparent; border: 0; box-shadow: none; padding: 0; }
.qe-context-dialog-card .regal-context .regal-bonds > .regal-viz-header { margin-top: 16px; }
.qe-context-dialog-card .regal-context .regal-context-text { color: #a7afbc; font-size: 11px; line-height: 1.6; margin: 0; }
.regal-stat-tile[data-edge] { border-left-width: 3px; }
.regal-stat-tile[data-edge="good"] { border-left-color: #8fad9d; }
.regal-stat-tile[data-edge="good"] > small { color: #8fad9d; }
.regal-stat-tile[data-edge="bad"] { border-left-color: #bf929a; }
.regal-stat-tile[data-edge="bad"] > small { color: #bf929a; }

/* Risk Meter: the donor's v33OpenRiskMeterPanel -- today's action in the
   level's colour, the five-step gauge with the current step raised, and the
   action ladder with YOU ARE HERE. */
.regal-context .v33-parity-tool.regal-risk { background: transparent; border: 0; box-shadow: none; padding: 0; }
.qe-context-dialog-card .regal-context .regal-risk > .regal-viz-header { margin-top: 18px; }
.regal-risk-head { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.regal-risk-chip { background: color-mix(in srgb, var(--risk) 14%, transparent); border: 1px solid var(--risk); border-radius: 12px; color: var(--risk); font-size: 12px; font-weight: 800; padding: 3px 11px; }
.regal-risk-action { display: block; font-size: 19px; font-weight: 750; line-height: 1.2; margin-bottom: 7px; }
.qe-context-dialog-card .regal-context .regal-risk-lead { color: #a7afbc; font-size: 11.5px; line-height: 1.5; margin: 0; }
.regal-risk-gauge { align-items: flex-end; display: flex; gap: 3px; margin: 26px 4px 22px; }
.regal-risk-seg { background: #1e293b; border-radius: 3px; flex: 1; height: 18px; position: relative; }
.regal-risk-seg[data-now] { box-shadow: 0 0 0 2px #ffffffcc; height: 30px; }
.regal-risk-seg b { color: var(--qe-text); font-size: 9px; font-weight: 700; left: 50%; position: absolute; top: -16px; transform: translateX(-50%); white-space: nowrap; }
.regal-risk-seg small { bottom: -15px; color: #a7afbc; font-size: 9px; left: 50%; position: absolute; transform: translateX(-50%); }
.regal-risk-ladder { list-style: none; margin: 0; padding: 0; }
.regal-risk-ladder li { border: 1px solid var(--qe-border); border-radius: 7px; display: flex; gap: 10px; margin-bottom: 5px; padding: 7px 9px; }
.regal-risk-ladder li[data-current] { background: color-mix(in srgb, var(--risk) 12%, transparent); border-color: var(--risk); }
.regal-risk-ladder li > b { color: var(--risk); font-size: 13px; font-weight: 800; min-width: 34px; text-align: center; }
.regal-risk-ladder li strong { color: var(--qe-text); display: block; font-size: 11.5px; font-weight: 700; }
.regal-risk-ladder li strong small { color: var(--risk); font-size: 9px; font-weight: 700; margin-left: 6px; }
.regal-risk-ladder li span { color: #a7afbc; display: block; font-size: 10.5px; line-height: 1.5; margin-top: 1px; }
.regal-series-chart { background: #0a0e1a; border: 1px solid var(--qe-border); border-radius: 10px; padding: 10px 12px; }
.regal-series-chart output { color: #a7afbc; display: block; font-size: 11px; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.regal-context .v33-parity-tool.regal-semivix { background: transparent; border: 0; box-shadow: none; padding: 0; }

/* The macro detail panels on the shared tool components. */
.regal-context .v33-parity-tool.regal-macro { background: transparent; border: 0; box-shadow: none; padding: 0; }
.qe-context-dialog-card .regal-context .regal-macro > .regal-viz-header { margin-top: 16px; }
.qe-context-dialog-card .regal-context .regal-macro > .regal-viz-header:first-child { margin-top: 0; }
.qe-context-dialog-card .regal-context .regal-macro > .regal-rot-hero + .regal-viz-header { margin-top: 4px; }
.qe-context-dialog-card .regal-context .regal-smart-sub { color: #a7afbc; font-size: 10px; font-weight: 700; letter-spacing: .5px; margin: 10px 0 6px; text-transform: uppercase; }
.regal-smart-detail .regal-rank-list { max-height: 240px; }

/* One shared sidebar-tool frame and a quieter chart palette. */
.qe-context-dialog-card, .qe-context-dialog-card:has(.regal-tool-geopolitical_shocks, .regal-tool-smart_money_watch, .regal-tool-bonds_fx, .regal-tool-risk_meter) { width: min(1100px,calc(100vw - 40px)) !important; max-width: 1100px !important; }
.regal-context { --qe-good:#a0bbaa; --qe-danger:#bf929a; color:#d5d9e1; gap:12px; }
.regal-context .v33-parity-tool { background:#111318; padding:10px 14px; border:1px solid #30343c; border-radius:8px; box-shadow:none; }
.regal-context :is(h4,h5,figcaption) { color:#dce0e7; font-family:inherit; line-height:1.4; letter-spacing:.02em; }
.regal-context table.regal-data-table :is(td,th) { padding:8px 10px; line-height:1.45; }
.regal-context :is(.regal-viz-grid,.regal-shocks-grid,.regal-cycle-pairs-box,.regal-stat-tiles,.qe-bond-groups) { align-items:stretch; }
.regal-context :is([data-tone=good],[data-tone=positive]) { color:#a0bbaa; }
.regal-context :is([data-tone=bad],[data-tone=negative]) { color:#bf929a; }
.regal-context svg :is(polyline,.chart-line,.qe-btc-line) { stroke-width:1.4; vector-effect:non-scaling-stroke; }

/* Rotation horizons are tool navigation, with the same plan boundary as the sidebar. */
.regal-rot-horizon button {font:inherit;text-transform:inherit;letter-spacing:inherit;color:#b6beca;background:transparent;border:0;border-radius:0;padding:5px 10px;cursor:pointer;white-space:nowrap}
.regal-rot-horizon button + button {border-left:1px solid var(--qe-border)}
.regal-rot-horizon button[data-active="true"] {background:#dfbb64;color:#241a05}
.regal-rot-horizon button:disabled {color:#727984;background:#191d24;cursor:not-allowed;opacity:.6}
.regal-rot-horizon button:focus-visible {outline:2px solid #dfbb64;outline-offset:-2px}
.qe-context-dialog-card .regal-context details.regal-tool-smallprint {color:#b6beca;padding:10px 0;border-top:1px solid #30343c;font-size:12px}
.regal-tool-smallprint > summary {color:#d6bd7b;cursor:pointer}

/* One disclosure geometry across the application: inset horizontally, compact
   vertically. The summary owns the closed row; the open body owns its inset. */
.qe-workspace :is(.regal-context,.regal-ticker,.qe-watchlist-dialog-card,.qe-settings-panel,.regal-card,[id="original-saas-primary-main-root"],[id="product-cabinet"]) details {
  padding: 0; margin: 7px 0; min-height: 0;
}
.qe-workspace :is(.regal-context,.regal-ticker,.qe-watchlist-dialog-card,.qe-settings-panel,.regal-card,[id="original-saas-primary-main-root"],[id="product-cabinet"]) details > summary {
  display: flex; align-items: center; gap: 8px; list-style: none;
  min-height: 36px; padding: 6px 12px; margin: 0; line-height: 1.4; font-size: 12px;
}
.qe-workspace :is(.regal-context,.regal-ticker,.qe-watchlist-dialog-card,.qe-settings-panel,.regal-card,[id="original-saas-primary-main-root"],[id="product-cabinet"]) details > summary::-webkit-details-marker { display: none; }
.qe-workspace :is(.regal-context,.regal-ticker,.qe-watchlist-dialog-card,.qe-settings-panel,.regal-card,[id="original-saas-primary-main-root"],[id="product-cabinet"]) details > summary::before {
  content: '+'; display: inline-grid; place-items: center; flex: 0 0 18px;
  width: 18px; height: 18px; padding: 0; border: 0; border-radius: 3px; font-size: 17px;
}
.qe-workspace :is(.regal-context,.regal-ticker,.qe-watchlist-dialog-card,.qe-settings-panel,.regal-card,[id="original-saas-primary-main-root"],[id="product-cabinet"]) details[open] { padding: 0 12px 8px; }
.qe-workspace :is(.regal-context,.regal-ticker,.qe-watchlist-dialog-card,.qe-settings-panel,.regal-card,[id="original-saas-primary-main-root"],[id="product-cabinet"]) details[open] > summary { margin: 0 -12px 5px; }
.qe-workspace :is(.regal-context,.regal-ticker,.qe-watchlist-dialog-card,.qe-settings-panel,.regal-card,[id="original-saas-primary-main-root"],[id="product-cabinet"]) details[open] > summary::before { content: '−'; }
.qe-workspace :is(.regal-context,.regal-ticker) details > p { margin: 7px 0; }
.qe-workspace #qe-context-dialog details.regal-tool-smallprint { padding: 0; margin: 8px 0; }
.qe-workspace #qe-context-dialog details.regal-tool-smallprint[open] { padding: 0 12px 8px; }
.qe-workspace #qe-context-dialog details.regal-tool-smallprint > summary { min-height: 36px; padding: 6px 12px; margin: 0; }
.qe-workspace #qe-context-dialog details.regal-tool-smallprint[open] > summary { margin: 0 -12px 5px; }
.qe-workspace #v33-macro-tiles > .regal-strip-tile { padding: 6px 10px !important; gap: 2px !important; }
@media (max-width:768px) {
  .qe-workspace :is(.regal-context,.regal-ticker,.qe-watchlist-dialog-card,.qe-settings-panel,.regal-card) details > summary,
  .qe-workspace #qe-context-dialog details.regal-tool-smallprint > summary { min-height: 44px; }
  body[data-mobile-app] .regal-risk > .regal-risk-ladder { display: none; }
  body[data-mobile-app] .regal-tool-risk_meter > .regal-tool-lead { display: none; }
  body[data-mobile-app] .regal-risk-lead { display:none; }
}
