/* Builder-only application of the shared public brand. Loaded after its
   legacy inline rules. State colors, control behavior and workspace structure stay native. */
body.page-bot_new h1,body.page-bot_new h2,body.page-bot_new h3{font-family:var(--sans);letter-spacing:-.025em}
.topbar-brand-text{font-family:var(--sans);font-weight:600;letter-spacing:-.5px}
.cct-title{font-size:15px;font-weight:600;letter-spacing:-.3px}
.cct-edit-btn,.mobile-bot-bar-edit{color:#fff;border-color:var(--accent);background:var(--accent);font-weight:500}
.cct-edit-btn:hover:not(:disabled),.mobile-bot-bar-edit:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}
.chat-col-close{color:var(--text)}
.btn-accent,.btn-primary{box-shadow:none}
.bot-session-row-wrap.is-current{background:var(--surface2);box-shadow:inset 2px 0 var(--text)}
.strategy-flow-section,.builder-flow-host,.builder-grid>.builder-chart-col{background:var(--bg)}
.strategy-flow-head{padding:20px 22px}
.strategy-flow-title{font-size:14px;font-weight:600}
.strategy-flow-subtitle{font-size:12px;line-height:1.5;margin-top:4px;max-width:42ch}
.strategy-flow-status{font-size:11px}
#drawflowHost .drawflow .drawflow-node:is(.lab-trigger,.lab-market,.lab-action,.lab-qualification,.lab-logic,.lab-branch){background:var(--surface);border-color:var(--border-strong);color:var(--text);box-shadow:0 3px 12px #08090a08;border-radius:12px}
/* Keep the editor selection visible above node state shadows. */
#drawflowHost .drawflow .drawflow-node.lab-selected{outline:2px solid var(--accent);outline-offset:2px}
#drawflowHost .drawflow .drawflow-node.lab-market{border-style:solid}
#drawflowHost .drawflow .drawflow-node.lab-action{border-left-color:var(--green)}
#drawflowHost.is-live .drawflow .drawflow-node.lab-trigger,
#drawflowHost.is-live .drawflow .drawflow-node.lab-trigger[data-cd-state="live"]{background:var(--surface);border-color:var(--green);animation:none;box-shadow:0 3px 12px #08090a08}
#drawflowHost .drawflow .drawflow-node.lab-trigger[data-cd-state="upcoming"]{background:var(--surface);border-color:var(--border);box-shadow:0 3px 12px #08090a08}
#drawflowHost .drawflow .drawflow-node.lab-trigger[data-cd-state="done"]{background:var(--surface2);border-color:var(--border);box-shadow:none}
#drawflowHost .lab-header{border-color:var(--border);padding:10px 14px 8px}
#drawflowHost .lab-body{padding:12px 14px}
#drawflowHost .drawflow-node .lab-label{color:var(--text);font-family:var(--sans);font-weight:600;letter-spacing:-.2px}
#drawflowHost .lab-essence,#drawflowHost .lab-setting .v,#drawflowHost .lab-order-legs{color:var(--text-secondary)}
#drawflowHost .lab-badge{background:var(--surface2);color:var(--text-secondary)}
#drawflowHost .drawflow-node .input,#drawflowHost .drawflow-node .output{background:var(--surface);border-color:var(--border-strong)}
.lab-editor-header,.lab-editor-footer,.bot-market-panel,.bot-live-strip{background:var(--surface)}
.decision-workspace{padding:22px 22px 18px}
.dw-heading h2{font-size:18px;font-weight:600;line-height:1.3}
.dw-heading p{font-size:12px;line-height:1.5;margin:6px 0 20px;max-width:40ch}
.dw-mode{color:var(--text-secondary);background:var(--surface2);border-color:var(--border);font-size:10px;border-radius:6px}
.dw-toolbar{font-size:11px;padding-bottom:12px}
.dw-toolbar button,.dw-older,.dw-retry{font-size:11px;border-radius:7px;padding:7px 10px}
.dw-history{border:1px solid var(--border);border-radius:8px;max-height:176px}
.dw-run{padding:11px 12px;grid-template-columns:84px minmax(0,1fr) auto;font-size:11px;gap:10px}
.dw-run[aria-pressed=true]{background:var(--surface2)}
.dw-run time{font-size:10px}
.dw-inspector{padding-top:24px}
.dw-outcome{align-items:center}
.dw-outcome h3{font-size:20px;font-weight:500;letter-spacing:-.5px}
.dw-outcome time{font-size:10px}
.dw-reason{font-size:13px;line-height:1.6;margin:8px 0 10px}
.dw-record-label{font-size:10px;line-height:1.5;margin-bottom:20px}
.dw-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 24px}
.dw-facts div{padding-top:12px}
.dw-facts dt{font-size:11px;margin-bottom:5px}
.dw-facts dd{font-size:13px;font-weight:500;line-height:1.4;letter-spacing:0}
.dw-facts [data-fact-type="price"] dd{font-size:30px;font-weight:500;letter-spacing:-1px;line-height:1.2}
.dw-facts [data-fact-type="reference"]{grid-column:1/-1}
.dw-facts [data-fact-type="reference"] dd{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}
.dw-chart{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:14px;margin-bottom:22px}
.dw-chart-title{font-size:11px;line-height:1.6}
.dw-chart-note,.dw-chart-readout,.dw-chart-legend{font-size:10px}
.dw-chart svg{height:160px}
.dw-steps-label{font-size:12px;margin-bottom:16px}
.dw-step{padding-bottom:18px}
.dw-step-head,.dw-step p{font-size:12px}
.dw-step-head span:last-child,.dw-footnote{font-size:10px}
.dw-step details{font-size:11px}
.arm-dialog h2{font-size:20px;font-weight:500;letter-spacing:-.5px}
:is(button,a,textarea):focus-visible{outline:2px solid var(--brand-focus);outline-offset:3px}
@media(max-width:700px){
 .decision-workspace{padding:20px 16px}
 .strategy-flow-head{padding:18px 16px}
 .dw-run{grid-template-columns:78px minmax(0,1fr);padding:10px;gap:4px 8px}
 .dw-run time{grid-column:2}
 .dw-facts{gap:10px}
 .dw-facts [data-fact-type="price"] dd{font-size:28px}
 .dw-facts dt{font-size:10px}
 .dw-toolbar button,.dw-older,.dw-retry{min-height:36px}
}
@media(max-width:700px){
 .mobile-bot-bar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}
 .mobile-bot-bar-title{grid-column:1/-1;-webkit-line-clamp:1;font-size:13px}
 .mobile-bot-bar-edit{justify-self:start}
}
