/* Native Rust SVG and browser-native details use the original terminal's frames.
   All surface, typography, spacing, responsive grid and calculator rules remain
   supplied by the unmodified design.css source artifact. */
.cv-terminal-page{min-width:0;width:100%}
.cv-terminal-page .c-terminal-plot{overflow:hidden;isolation:isolate}
.cv-terminal-page .cv-terminal-chart-svg{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible;color:var(--color-muted)}
.cv-terminal-page .cv-terminal-chart-svg text{fill:var(--color-muted);font-family:inherit;font-size:11px;font-weight:400;font-variant-numeric:tabular-nums}
.cv-terminal-page .cv-chart-grid{stroke:var(--material-rim);stroke-width:1}
.cv-terminal-page .cv-terminal-empty{display:flex;flex:1;grid-column:1/-1;align-items:center;justify-content:center;min-height:120px;padding:16px;text-align:center;color:var(--color-muted);font-size:12px}
.cv-terminal-page .c-terminal-plot>.cv-terminal-empty{position:absolute;inset:0}
.cv-terminal-page .cv-terminal-stale{margin:0;padding:4px 8px;color:var(--color-muted);font-size:10px;line-height:1.4}
.cv-terminal-page .cv-terminal-chart-navigation{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);display:flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--material-rim);border-radius:999px;background:var(--material-surface);opacity:0;transition:opacity 120ms ease}
.cv-terminal-page .c-terminal-plot:is(:hover,:focus-within) .cv-terminal-chart-navigation{opacity:1}
.cv-terminal-page .cv-terminal-chart-navigation button{display:flex;align-items:center;justify-content:center;min-width:28px;height:26px;padding:0 7px;border:0;border-radius:999px;background:transparent;color:var(--color-text);font-size:11px}
.cv-terminal-page .cv-terminal-chart-navigation button:is(:hover,:focus-visible){background:var(--material-hover)}
.cv-terminal-page .cv-terminal-step{position:relative;min-width:0;flex:none;z-index:5}
.cv-terminal-page .cv-terminal-step>summary{display:flex;justify-content:space-between;align-items:center;gap:8px;width:auto;max-width:110px;min-height:26px;height:26px;padding:0 8px;list-style:none;font-size:10px;cursor:pointer}
.cv-terminal-page .cv-terminal-step>summary::-webkit-details-marker{display:none}
.cv-terminal-page .cv-terminal-step .c-select-menu{position:absolute;top:calc(100% + 6px);right:0;width:130px;max-height:260px;overflow:auto;padding:5px;z-index:100}
.cv-terminal-page .cv-terminal-step .c-select-option{width:100%;font-size:11px;min-height:28px}
.cv-terminal-page .cv-terminal-picker{position:fixed;z-index:100;left:50%;top:150px;transform:translateX(-50%);width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 174px)}
.cv-terminal-page .selector-showcase-coin-menu.cv-terminal-picker{height:min(540px,calc(100dvh - 174px))}
.cv-terminal-page .cv-terminal-picker[data-positioned=true]{transform:none}
.cv-terminal-page .cv-terminal-picker a.c-coin-choice{text-decoration:none}
.cv-terminal-page .cv-terminal-recorded{display:none}
/* Selection styling is owned by aria-pressed until a measured motion glider is
   installed by the shared DOM adapter; it never colors an entire track. */
.cv-terminal-page .c-chart-finance-track:not(.c-local-edge-segment)::before{display:none}
html[data-theme] .cv-terminal-page .c-chart-finance-track:not(.c-local-edge-segment)>button[aria-pressed=true]{background:var(--material-selected)!important;box-shadow:inset 0 1px 0 var(--material-top)!important}
@media(max-width:1179px){.cv-terminal-page .c-terminal-plot{min-height:260px!important}.cv-terminal-page .cv-terminal-picker{top:100px;max-height:calc(100dvh - 124px)}.cv-terminal-page .selector-showcase-coin-menu.cv-terminal-picker{height:min(540px,calc(100dvh - 124px))}}
@media(prefers-reduced-motion:reduce){.cv-terminal-page .cv-terminal-chart-navigation{transition:none}}

.cv-terminal-page .c-terminal-plot{--chart-line-long:#45d292;--chart-line-short:#f05b65;--chart-grid:rgba(255,255,255,.196);--chart-axis:#294137}
html[data-theme=light] .cv-terminal-page .c-terminal-plot{--chart-line-long:#16885c;--chart-line-short:#bd3548;--chart-grid:rgba(70,85,75,.188);--chart-axis:#bdd4c6}
.cv-terminal-page .cv-chart-grid{stroke:var(--chart-grid);stroke-dasharray:2 3;vector-effect:non-scaling-stroke}
.cv-terminal-page .cv-chart-axis-line{stroke:var(--chart-axis);vector-effect:non-scaling-stroke}
.cv-terminal-page .cv-chart-crosshair{stroke:var(--color-muted);stroke-width:1;stroke-dasharray:5 5;vector-effect:non-scaling-stroke}
.cv-terminal-page .cv-chart-axis-text{font-size:11px;dominant-baseline:auto}
.cv-terminal-page .c-book-level[data-depth-selected=true]{background:var(--material-hover)!important}
.cv-terminal-page .c-terminal-plot{touch-action:none;user-select:none}

.cv-terminal-page .cv-chart-attribution{--fill:#d1d4dc;--stroke:#131722;position:absolute;left:10px;bottom:38px;width:35px;height:19px;z-index:3}
html[data-theme=light] .cv-terminal-page .cv-chart-attribution{--fill:#131722;--stroke:#fff}
.cv-terminal-page .cv-terminal-chart-svg text{fill:#bbc7c1}
html[data-theme=light] .cv-terminal-page .cv-terminal-chart-svg text{fill:#526f63}

/* Match source button treatment, including anchors used for navigation. */
.cv-terminal-page :is(a.c-tool-button,a.c-btn,a.c-entry-fee-source){text-decoration:none!important}
.cv-terminal-page .cv-terminal-chart-svg text{font-family:"Converge UI",sans-serif;letter-spacing:0}
.cv-terminal-page .c-terminal-plot{cursor:crosshair}
.cv-terminal-page .c-terminal-plot[data-platform-dragging]{cursor:grabbing}
.cv-terminal-page .c-terminal-plot:focus-visible{outline:1px solid var(--color-muted);outline-offset:2px}
/* Keep quantities away from the card edge while depth follows actual row size. */
html[data-theme] .cv-product-shell.cv-product-shell .cv-terminal-page .c-terminal[data-refined=true] .c-book-fixed-side .c-book-level{padding-right:14px!important}
html[data-theme] .cv-product-shell.cv-product-shell .cv-terminal-page .c-terminal[data-refined=true] .c-book-volume-bar{right:10px!important;max-width:50%!important;transition:width 220ms ease-out}
@media(prefers-reduced-motion:reduce){.cv-terminal-page .c-book-volume-bar{transition:none}}

.cv-terminal-page .c-terminal-plot{--chart-candle-down:#fa757a;--chart-area-opacity:.282353}
html[data-theme=light] .cv-terminal-page .c-terminal-plot{--chart-candle-down:#bd4560;--chart-area-opacity:.141176}

.cv-terminal-page{--chart-line-long:#45d292;--chart-line-short:#f05b65;--chart-crosshair:#bbc7c1;--chart-grid-vertical:#e7eee914}
html[data-theme=light] .cv-terminal-page{--chart-line-long:#16885c;--chart-line-short:#bd3548;--chart-crosshair:#526f63;--chart-grid-vertical:#cfe0d6}
.cv-terminal-page .cv-chart-vertical-grid{stroke:var(--chart-grid-vertical)}
.cv-terminal-page .cv-chart-crosshair{stroke:var(--chart-crosshair)}
html[data-theme] .cv-product-shell.cv-product-shell .c-terminal[data-refined=true] .c-chart-finance-toolbar .c-chart-finance-track:not(.c-local-edge-segment)>button[aria-pressed=true]{background:rgba(255,255,255,.14)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)!important}
html[data-theme=light] .cv-product-shell.cv-product-shell .c-terminal[data-refined=true] .c-chart-finance-toolbar .c-chart-finance-track:not(.c-local-edge-segment)>button[aria-pressed=true]{background:rgba(19,23,26,.12)!important}

/* Only the side badge is directional; venue names and quotes use source text ink. */
html[data-theme] .cv-terminal-page :is(.focus-route-card,.cv-terminal-step .c-select-option)[data-side]{color:var(--color-text)!important}

html[data-theme] .cv-terminal-page .c-book-units button[data-side]{color:inherit!important}

/* The original focus workspace flattens the inner grid into eight columns.
   A single funding venue fills both book columns; paired terminals keep their layout. */
@media(min-width:1180px){
  .cv-product-shell .cv-terminal-page .c-terminal[data-refined=true][data-terminal-mode=single] .focus-terminal-workspace .c-terminal-book{grid-column:5/7;grid-row:2}
  .cv-product-shell .cv-terminal-page .c-terminal[data-refined=true][data-terminal-mode=single] .focus-route-card{grid-column:3/7;grid-row:1}
}
@media(max-width:1179px){
  .cv-product-shell .cv-terminal-page .c-terminal[data-refined=true][data-terminal-mode=single] .c-terminal-grid{grid-template-columns:minmax(0,1fr)}
  .cv-product-shell .cv-terminal-page .c-terminal[data-refined=true][data-terminal-mode=single] .c-terminal-grid>.c-terminal-book{grid-column:1/-1;width:100%;min-width:0}
}

.cv-product-shell .cv-terminal-page .c-terminal[data-terminal-mode=single] .c-entry-comparison :is(th,td){width:100%}
/* Futures-only pickers still use two parallel choice columns. Mixed Long
   pickers keep Spot and Futures in their own columns, as in the source UI. */
.cv-terminal-page .selector-futures-only .selector-fixed-market-heads>div{grid-column:1/-1}
.cv-terminal-page .selector-showcase-short .selector-fixed-market-heads{grid-template-columns:repeat(2,minmax(0,1fr))}
.cv-terminal-page .selector-showcase-short .selector-market-results{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1000px){
 .cv-terminal-page .selector-futures-only .selector-market-results{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cv-terminal-page .selector-futures-only .selector-market-results>.c-select-option{grid-column:auto!important;grid-row:auto!important}
 .cv-terminal-page .selector-showcase-short .selector-fixed-market-heads{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cv-terminal-page .selector-showcase-short .selector-market-results{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cv-terminal-page .selector-showcase-short .selector-market-results>.c-select-option{grid-column:auto!important;grid-row:auto!important}
 .cv-terminal-page .selector-fixed-markets:not(.selector-futures-only) .selector-market-results{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cv-terminal-page .selector-showcase-long .selector-market-results>.focus-route-option-spot{grid-column:1!important;grid-row:auto!important}
 .cv-terminal-page .selector-showcase-long .selector-market-results>.focus-route-option-long{grid-column:2!important;grid-row:auto!important}
}
/* Keep centering independent from the enter animation, which animates transform. */
.cv-terminal-page .cv-terminal-picker:not([data-positioned=true]){translate:-50% 0}
.cv-terminal-page .cv-terminal-picker[data-positioned=true]{translate:none}

html[data-theme] .cv-product-shell .cv-terminal-page .c-terminal-chart > .c-chart-finance-toolbar {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
html[data-theme] .cv-product-shell.cv-product-shell .c-terminal[data-refined=true] .c-terminal-chart .c-chart-finance-toolbar {
  flex-wrap:wrap;
  min-width:0;
}
html[data-theme] .cv-product-shell.cv-product-shell .c-terminal[data-refined=true] .c-terminal-chart .c-chart-finance-toolbar > .c-chart-finance-track {
  flex:0 1 auto;
  min-inline-size:0;
  max-inline-size:100%;
  overflow:hidden;
}
html[data-theme] .cv-product-shell.cv-product-shell .c-terminal[data-refined=true] .c-terminal-chart .c-chart-finance-toolbar > .c-chart-finance-track > button {
  flex-shrink:1;
  min-inline-size:0;
}
.cv-terminal-page.cv-terminal-page .c-terminal-chart .cv-terminal-chart-navigation {
  box-sizing:border-box;
  max-inline-size:100%;
  flex-wrap:wrap;
  justify-content:center;
  border-radius:14px;
}
html[data-theme] .cv-product-shell.cv-product-shell .cv-terminal-page .c-terminal .c-chart-finance-toolbar > .c-chart-finance-track:first-child {
  margin:0;
}


html[data-theme] .cv-product-shell .c-terminal .c-chart-finance-toolbar .c-chart-finance-track > button[aria-pressed=true] {
  background: rgba(85, 230, 162, 0.16) !important;
  color: #55E6A2 !important;
  border-color: rgba(85, 230, 162, 0.4) !important;
  box-shadow: 0 0 10px rgba(85, 230, 162, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}
html[data-theme=light] .cv-product-shell .c-terminal .c-chart-finance-toolbar .c-chart-finance-track > button[aria-pressed=true] {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #059669 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

/* Funding indicators in route cards, scanner rows and funding pairs */
.selector-top-funding {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  margin-top: 2px;
  color: var(--color-muted);
}
.selector-top-funding small[data-tone="positive"],
.c-funding-tag[data-tone="positive"] {
  color: #55E6A2;
  font-weight: 600;
}
.selector-top-funding small[data-tone="negative"],
.c-funding-tag[data-tone="negative"] {
  color: #F7525F;
  font-weight: 600;
}
.c-market-leg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.c-market-funding {
  margin-left: auto;
  font-size: 11px;
}
.c-funding-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.c-funding-tag[data-tone="positive"] {
  background: rgba(85, 230, 162, 0.12);
  color: #55E6A2;
}
.c-funding-tag[data-tone="negative"] {
  background: rgba(247, 82, 95, 0.12);
  color: #F7525F;
}
.c-funding-tag.c-funding-spot {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-muted);
}
.c-funding-leg-rate {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  margin-left: auto;
}
.c-funding-leg-rate strong {
  font-size: 12px;
  font-weight: 600;
}
.c-funding-leg-rate small {
  font-size: 10px;
  color: var(--color-muted);
}
.c-funding-table tr[data-scanner-href] {
  cursor: pointer;
  transition: background 0.12s ease;
}
.c-funding-table tr[data-scanner-href]:hover {
  background: rgba(255, 255, 255, 0.04);
}
.c-funding-rates-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.c-funding-rate-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-funding-rate-val {
  font-size: 13px;
  font-weight: 600;
  min-width: 72px;
}
.c-funding-rate-val[data-funding-tone="gain"],
.c-funding-rate-val[data-funding-tone="long"] {
  color: #55E6A2;
}
.c-funding-rate-val[data-funding-tone="loss"],
.c-funding-rate-val[data-funding-tone="short"] {
  color: #F7525F;
}
.c-funding-interval {
  font-size: 11px;
  color: var(--color-muted);
}
.c-funding-apr {
  display: block;
  font-size: 11px;
  color: #55E6A2;
  margin-top: 2px;
}
.c-funding-table .c-market-route {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.c-funding-table .c-market-leg {
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-funding-table .c-market-venue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.c-funding-table .c-funding-market {
  font-size: 11px;
  color: var(--color-muted);
}
.c-scanner-spread[data-tone="positive"] strong {
  color: #55E6A2;
}
.c-scanner-spread[data-tone="negative"] strong {
  color: #F7525F;
}
.c-scanner-turnovers {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
}
.c-scanner-turnovers > div {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.c-scanner-turnovers small {
  color: var(--color-muted);
}


/* Source quality is stable, independent of transient book/loading messages. */
.c-chart-quality {flex: none; margin: 6px 4px 0; color: var(--color-muted); font-size: 11px; line-height: 1.4;}
.c-chart-quality[hidden] {display: none;}

/* The terminal keeps its controls neutral against the active appearance. */
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true] {
  --terminal-control-glass:color-mix(in srgb,var(--color-text) 5%,transparent);
  --terminal-control-hover:color-mix(in srgb,var(--color-text) 8%,transparent);
  --terminal-control-selected:color-mix(in srgb,var(--color-text) 15%,transparent);
  --terminal-control-rim:color-mix(in srgb,var(--color-text) 19%,transparent);
  --terminal-control-highlight:color-mix(in srgb,var(--color-text) 8%,transparent);
  --terminal-control-glint:inset 0 1px 0 var(--terminal-control-highlight);
  --terminal-control-height:28px;
}

html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  .focus-coin-slot:has(> #terminal-coin-trigger) {
  padding-inline:6px;
  overflow:hidden;
  background:var(--terminal-control-glass);
  border-color:var(--terminal-control-rim);
  box-shadow:var(--terminal-control-glint);
  transition:transform 180ms cubic-bezier(.16,1,.3,1),background-color 150ms ease-out;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  .focus-coin-slot:has(> #terminal-coin-trigger) > :is(#terminal-coin-trigger,.c-terminal-pin),
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  .focus-coin-slot:has(> #terminal-coin-trigger) .c-terminal-pin > .cv-magnetic-face {
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  transform:none!important;
  translate:none!important;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  .focus-coin-slot:has(> #terminal-coin-trigger) > .c-terminal-pin {
  width:42px;
  height:42px;
  min-height:42px;
  border-radius:50%!important;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  .focus-coin-slot:has(> #terminal-coin-trigger) > .c-terminal-pin[aria-pressed=true] > .cv-magnetic-face {
  background:var(--terminal-control-selected)!important;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  .focus-coin-slot:has(> #terminal-coin-trigger[aria-expanded=true]) {
  border-color:var(--cv-interface-focus,var(--terminal-control-rim));
}
@media (hover:hover) and (pointer:fine) {
  html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
    .focus-coin-slot:has(> #terminal-coin-trigger):hover {
    background:var(--terminal-control-hover);
    transform:translateY(-2px);
  }
}
@media (prefers-reduced-motion:reduce) {
  html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
    .focus-coin-slot:has(> #terminal-coin-trigger) {
    transform:none!important;
    transition:none;
  }
}

html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  :is(.c-terminal-chart .c-chart-finance-toolbar .c-chart-finance-track,.c-book-units,.c-entry-order-types,.c-position-tab-track) {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  position:relative;
  isolation:isolate;
  gap:2px!important;
  padding:2px!important;
  min-height:calc(var(--terminal-control-height) + 6px)!important;
  height:auto!important;
  border:1px solid var(--terminal-control-rim)!important;
  border-radius:999px!important;
  background:var(--terminal-control-glass)!important;
  box-shadow:var(--terminal-control-glint)!important;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  :is(.c-chart-finance-track,.c-entry-order-types) {
  overflow:hidden;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  :is(.c-terminal-chart .c-chart-finance-toolbar .c-chart-finance-track,.c-book-units,.c-entry-order-types,.c-position-tab-track) > button {
  box-sizing:border-box;
  position:relative;
  z-index:2;
  height:var(--terminal-control-height)!important;
  min-height:var(--terminal-control-height)!important;
  max-height:var(--terminal-control-height);
  line-height:normal!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:var(--color-text)!important;
  box-shadow:none!important;
  transform:none!important;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  :is(.c-terminal-chart .c-chart-finance-toolbar .c-chart-finance-track,.c-book-units,.c-entry-order-types,.c-position-tab-track)[data-active-lens=true]::before {
  content:""!important;
  display:block;
  position:absolute;
  top:var(--active-top,2px)!important;
  left:var(--active-left,2px)!important;
  right:var(--active-right,2px)!important;
  width:auto!important;
  height:var(--active-height,var(--terminal-control-height))!important;
  border-radius:999px;
  background:var(--terminal-control-selected)!important;
  box-shadow:var(--terminal-control-glint)!important;
  transform:none!important;
  pointer-events:none;
  z-index:1;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  :is(.c-terminal-chart .c-chart-finance-toolbar .c-chart-finance-track,.c-book-units,.c-entry-order-types,.c-position-tab-track):not([data-active-lens=true]) > button:is([aria-pressed=true],[aria-selected=true]) {
  background:var(--terminal-control-selected)!important;
  box-shadow:var(--terminal-control-glint)!important;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  :is(.c-terminal-chart .c-chart-finance-toolbar .c-chart-finance-track,.c-book-units,.c-entry-order-types,.c-position-tab-track)::after {
  content:none!important;
}

html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  .cv-terminal-chart-navigation {
  gap:4px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  :is(.cv-terminal-chart-navigation > :is(button,.cv-terminal-detach),.cv-terminal-step > summary,.cv-book-step-wheel) {
  box-sizing:border-box;
  height:var(--terminal-control-height)!important;
  min-height:var(--terminal-control-height)!important;
  border:1px solid var(--terminal-control-rim)!important;
  border-radius:999px!important;
  background:var(--terminal-control-glass)!important;
  box-shadow:var(--terminal-control-glint)!important;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  :is(.cv-terminal-chart-navigation > :is(button,.cv-terminal-detach),.cv-terminal-step > summary):is(:hover,:focus-visible) {
  background:var(--terminal-control-hover)!important;
}

html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  .cv-book-step-wheel > button {
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  .cv-book-step-wheel > button:not(:disabled):hover {
  background:var(--terminal-control-hover)!important;
}
.cv-product-shell.cv-product-shell .cv-book-total {
  box-sizing:border-box;
  animation:none;
}
.cv-product-shell .cv-book-total-row {
  flex-wrap:wrap;
  column-gap:6px;
}

/* The history status belongs below the controls when their row wraps. */
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  .c-terminal-chart > .c-chart-finance-toolbar {
  order:-2;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  .c-terminal-chart > [data-live-chart-status=terminal] {
  position:static;
  order:-1;
  flex:none;
  margin:0 2px 4px;
  padding:0;
  color:var(--color-muted);
  white-space:normal;
}
html[data-theme] .cv-product-shell.cv-product-shell[data-view=terminal] .c-terminal[data-refined=true]
  .c-terminal-chart > [data-chart-history-retry] {
  order:-1;
  align-self:start;
  margin-block-end:4px;
}
