/* Native controls and graphics for the same archived spot session. */
.market-terminal .instrument-head {background:linear-gradient(115deg,#141418,#080809 72%)}
.market-terminal .instrument-views {background:#090a0b}
.market-terminal .instrument-theatre {background:#030304}
/* Replace the poster atomically: a crossfade ghosts the full chart over the opening ticker rows. */
.market-terminal .instrument-theatre .film {transition:none}
.desk-tabs {display:flex;align-items:stretch;border-block:1px solid #ffffff16;padding:0 3.7% 0 5%;background:#0d0d10}
.market-terminal .desk-tabs .switch {padding:0;border:0;background:none}
.market-terminal .desk-tour {display:grid;place-items:center;align-self:center;margin-left:auto;padding:7px;border:0;background:transparent;color:#d1c5df;cursor:pointer}
.desk-tour svg {display:block;width:22px;height:22px;overflow:visible}
.desk-tour circle,.desk-tour path {fill:none;stroke:currentColor;stroke-width:1.4}
.desk-tour .tour-track {stroke:#514b59}
.desk-tour .tour-elapsed {stroke:#c9a8fb;stroke-dasharray:100;stroke-dashoffset:var(--tour-offset,100);transform-origin:center;transform:rotate(-90deg)}
.desk-tour .tour-start {fill:currentColor;stroke:none;display:none}
.desk-tour[aria-pressed=false] .tour-start {display:block}
.desk-tour[aria-pressed=false] :is(.tour-stop,.tour-elapsed) {display:none}
.desk-chart-head,.ai-head,.ai-foot {display:flex;align-items:center;justify-content:space-between;gap:8px}
.desk-chart-head {margin:0 0 8px;color:#c3bcca;font:530 11px/1.1 var(--font)}
.desk-chart-head i,.ai-foot i {display:inline-block;margin:0 6px 2px;background:#776a83;width:3px;height:3px;border-radius:50%}
.market-terminal .desk-chart-play {display:inline-flex;gap:7px;align-items:center;min-height:28px;background:#202023;border:1px solid #403a46;border-radius:18px;color:#e1d7eb;padding:3px 9px;font:500 10px/1 var(--font);cursor:pointer;font-variant-numeric:tabular-nums}
.desk-chart-play b {color:#cfb2f2}
.desk-price-trail {stroke:#bba5d34a;fill:none;stroke-width:1.15;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.instrument-plot .bar.ahead {opacity:.18}
.instrument-plot .bar {transition:opacity .42s ease}
.instrument-plot .bar.current rect {stroke:#eee5fa;stroke-width:1}
.market-terminal .instrument-inspect {margin-top:9px;padding-top:9px}
.market-terminal .instrument-views > [data-panel=ai] {align-self:stretch;display:grid;align-items:center}
/* Adapted from production UserMessage, LoadingBreadcrumb and
   AssistantNewDataCard: quiet glass, 20px message radius and fine data borders. */
.ai-desk {--ai-fg:#f1f3f4;--ai-muted:#9a9da4;--ai-edge:rgba(218,220,224,.1);max-width:740px;width:100%;margin:0 auto;color:var(--ai-fg);font:400 13px/1.5 var(--font);container-type:inline-size}
.ai-head {padding-bottom:12px;border-bottom:1px solid var(--ai-edge)}
.ai-brand {display:inline-flex;align-items:center;gap:9px;font-weight:560;letter-spacing:-.02em}
.ai-brand img {display:block;position:static;width:15px;height:18px}
.ai-mode {color:#bcb4c9;font-size:10px;border:1px solid #ffffff18;padding:4px 9px;border-radius:20px;background:#ffffff03}
.ai-prompts {display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:13px 0 15px}
.market-terminal .ai-prompts button {position:relative;border:0;color:#96929e;border-radius:0;background:none;padding:2px 0 6px;font:450 11px/1.3 var(--font);cursor:pointer}
.market-terminal .ai-prompts button:after {content:'';position:absolute;bottom:0;left:0;width:100%;height:1px;background:#ccb9e3;transform:scaleX(0);transition:transform .25s ease;transform-origin:left}
.market-terminal .ai-prompts button[aria-pressed=true] {color:var(--ai-fg);background:none;border:0}
.market-terminal .ai-prompts button[aria-pressed=true]:after {transform:scaleX(1)}
.ai-user-message {display:flex;align-items:center;gap:12px;max-width:88%;width:fit-content;margin:0 0 20px auto;padding:10px 14px;border-radius:18px 18px 5px 18px;border:1px solid #dadce017;background:linear-gradient(120deg,#ffffff08,#ffffff03);font-size:clamp(12px,1.05vw,15px);line-height:1.5;letter-spacing:-.01em}
.ai-user-message svg {position:static;display:block;flex:0 0 20px;width:20px;height:20px;padding:2px;stroke:#a9a0b6;stroke-width:1.5;border:1px solid #ffffff14;border-radius:50%}
.ai-answer {position:relative;background:none;border:0;border-radius:0;padding:0}
.ai-provenance {display:flex;align-items:center;gap:8px;min-height:20px}
.ai-response-mark {display:grid;place-items:center;width:17px;height:19px;flex-shrink:0}
.ai-response-mark img {display:block;position:static;width:13px;height:16px;object-fit:contain}
.ai-phase {color:#c1b6ce;font-size:11px;line-height:1.4}
.ai-kicker {color:#838089;font-size:9px;margin-left:auto;text-align:right}
.market-terminal .ai-answer p {color:var(--ai-fg);margin:11px 0 16px;font:400 clamp(13px,1.1vw,16px)/1.6 var(--font);letter-spacing:-.012em;max-width:65ch;min-height:3.2em}
.ai-data-card {background:linear-gradient(120deg,#ffffff06,transparent);border:1px solid var(--ai-edge);border-radius:16px;overflow:hidden}
.ai-data-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px 0;color:#88858f;font-size:10px}
.ai-data-heading b {color:var(--ai-fg);font-size:12px;font-weight:550}
.ai-data-heading>span:last-child {font-size:9px;font-variant-numeric:tabular-nums}
.ai-data-body {display:grid;grid-template-columns:1fr 1.1fr;gap:20px;align-items:center;padding:14px}
.ai-readout {display:grid;grid-template-columns:1fr;gap:12px;padding:0;border:0}
.ai-readout small,.ai-readout strong {display:block;font-variant-numeric:tabular-nums}
.ai-readout small {color:var(--ai-muted);font-size:9px;line-height:1.4}
.ai-readout strong {font:500 clamp(15px,1.45vw,21px)/1.3 var(--font);letter-spacing:-.02em;color:var(--ai-fg);margin-top:2px}
.ai-chart-wrap {min-width:0;align-self:center}
.ai-curve {height:76px;max-width:100%;margin:0;overflow:visible}
.ai-curve svg {display:block;position:static;width:100%;height:100%}
.ai-curve path {vector-effect:non-scaling-stroke}
.ac-grid {stroke:#ffffff12;stroke-width:.6}
.ac-area {fill:#c2a3ef08;stroke:none}
.ac-path {stroke:#bba5d3;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.ac-tick {stroke:#e0c8f8;stroke-width:.9}
.ac-guide {stroke:#c7b7d94a;stroke-width:.65;stroke-dasharray:2 3}
.ai-curve circle {fill:#eee5f6;stroke:#141218;stroke-width:.5;vector-effect:non-scaling-stroke}
.ac-low {display:none}
.ai-desk[data-question=range] .ac-low {display:block}
.ai-desk[data-question=range] .ac-close {display:none}
.ai-chart-times {display:flex;justify-content:space-between;gap:5px;margin-top:7px;color:#76727e;font-size:8px;font-variant-numeric:tabular-nums}
.ai-data-footer {position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-top:1px solid var(--ai-edge);padding:9px 14px;font-size:10px}
.ai-evidence {min-width:0;color:#9e98a7}
.ai-evidence summary {display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;min-height:26px}
.ai-evidence summary::-webkit-details-marker {display:none}
.ai-evidence summary>span {transition:transform .2s ease}
.ai-evidence[open] summary>span {transform:rotate(180deg)}
.ai-evidence>div {position:absolute;left:8px;right:8px;bottom:calc(100% + 5px);padding:13px 15px;background:#16141a;border:1px solid #49404e;border-radius:12px;box-shadow:0 6px 24px #0009;color:#c5becd;font-size:11px;line-height:1.6;z-index:2}
.market-terminal .ai-data-footer button {display:flex;align-items:center;gap:8px;min-height:26px;padding:0;border:0;background:none;color:#d4bdec;font:500 10px/1.4 var(--font);white-space:nowrap;cursor:pointer}
.ai-data-footer button:hover {color:white}
.ai-foot {margin-top:12px;gap:12px;font-size:9px;color:#827e89}
.ai-foot a {color:#bfa5db;text-align:right;font-weight:500;font-size:11px}
@container(max-width:360px) {
 .ai-data-body {grid-template-columns:1fr;gap:15px}
 .ai-readout {grid-template-columns:1fr 1fr;gap:10px}
 .ai-curve {height:67px}
 .ai-provenance {flex-wrap:wrap;row-gap:2px}
 .ai-kicker {flex-basis:100%;margin-left:25px;text-align:left}
 .ai-data-footer {gap:8px;padding:8px 11px}
 .ai-data-footer button,.ai-evidence {font-size:9px}
 .ai-user-message {max-width:100%;font-size:12px;padding:9px 12px}
 .ai-foot {align-items:flex-start}
 .ai-foot>span {max-width:42%}
}
[data-ai-line] .ai-word {display:inline-block;opacity:1}
.hub-calm :is(.desk-tour,.desk-chart-play),html:not(.js) :is(.desk-tour,.desk-chart-play) {display:none}
@media(max-width:680px){
  .desk-tabs {padding-inline:4% 2%}
  .market-terminal .desk-tabs .switch {gap:clamp(8px,2.4vw,16px)}
  .market-terminal .desk-tabs .switch button {font-size:clamp(10px,2.75vw,12px)}
  .market-terminal .desk-tour {padding:5px}
  .desk-tour svg {width:18px;height:18px}
  .ai-foot a {max-width:53%}
}
@media(prefers-reduced-motion:reduce){.instrument-plot .bar{transition:none}}
.desk-sr {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
[data-ai-line] .ai-word {transition:color .25s ease;color:#f1ecf4}
[data-ai-line] .ai-muted {color:#817689}
.hub-calm [data-ai-line] .ai-word {transition:none;color:inherit}
@media(prefers-reduced-motion:reduce){[data-ai-line] .ai-word{transition:none;color:inherit}}
@media(prefers-reduced-motion:no-preference) {
 .market-awake [data-panel=ai]:not([hidden]) .ac-path {animation:ai-ink 1.8s cubic-bezier(.25,.6,.3,1) both}
 .market-awake .ai-desk:not([data-phase=done]) .ai-response-mark {animation:ai-brand-pulse 2.4s ease-in-out infinite}
}
@keyframes ai-ink {from {clip-path:inset(-8px 100% -8px -8px)}to {clip-path:inset(-8px)}}
@keyframes ai-brand-pulse {0%,100%{filter:brightness(.85)}50%{filter:brightness(1.15)}}
.hub-calm .ai-response-mark {animation:none!important}
