/* LumeQuant product shell ---------------------------------------------------
   Charts and LumeQuant are separate saved workspaces. They share renderers,
   editors, and tested strategy artifacts only through explicit handoffs. */
body.product-quant {
  --lq-accent:#42dfc5;
  --lq-accent-soft:rgba(66,223,197,.12);
  --lq-panel:#0d1014;
  --lq-panel-2:#090b0e;
  --lq-line:rgba(255,255,255,.09);
  --lq-muted:#858c98;
}

/* Attached-strategy settings follow the chart convention: a compact modal
   over the workspace. Code remains a separate editor action on the study
   legend, so routine settings never replace the chart or AI workspace. */
body.product-quant #strategy-editor.python-settings-focus:not(.collapsed) {
  display:flex!important;position:fixed!important;z-index:140!important;inset:52px auto auto 50%!important;
  transform:translateX(-50%)!important;box-sizing:border-box;
  width:min(470px,calc(100vw - 32px))!important;height:min(720px,calc(100dvh - 68px))!important;
  max-height:calc(100dvh - 68px);overflow:hidden;border:1px solid rgba(255,255,255,.14);border-radius:12px;
  background:#121214;box-shadow:0 0 0 100vmax rgba(0,0,0,.62),0 24px 70px rgba(0,0,0,.72);
}
body.product-quant #strategy-editor-resize:has(+ #strategy-editor.python-settings-focus) {display:none!important;}
body.product-quant #strategy-editor.python-settings-focus #se-head {
  display:flex!important;flex:0 0 46px;min-height:46px;padding:7px 12px;border-bottom:1px solid rgba(255,255,255,.09);background:#151517;
}
body.product-quant #strategy-editor.python-settings-focus #se-title {display:block!important;font-size:12px;color:#ededf0;}
body.product-quant #strategy-editor.python-settings-focus #se-title::after {display:none;}
body.product-quant #strategy-editor.python-settings-focus #se-collapse {margin-left:auto;}
body.product-quant #strategy-editor.python-settings-focus #se-body {min-height:0;overflow:auto;padding:10px 15px 18px;}
body.product-quant #strategy-editor.python-settings-focus .se-settings-tabs {
  position:sticky;z-index:2;top:-10px;margin:-10px 0 16px;padding:10px 0 0;border:0;border-bottom:4px solid #424244;border-radius:0;background:#121214;
}
body.product-quant #strategy-editor.python-settings-focus .se-settings-tab {
  min-height:34px;padding:6px 13px;border:0;border-radius:0;background:transparent;color:#aaaab0;font-size:12px;
}
body.product-quant #strategy-editor.python-settings-focus .se-settings-tab[data-python-section="code"] {display:none!important;}
body.product-quant #strategy-editor.python-settings-focus .se-settings-tab[aria-selected="true"] {
  color:#f3f3f4;background:transparent;box-shadow:inset 0 -3px #e6e6e7;
}
body.product-quant #strategy-editor.python-settings-focus #py-properties-section {margin:0;padding:0;border:0;}
body.product-quant #strategy-editor.python-settings-focus #py-properties-section>.se-group-title,
body.product-quant #strategy-editor.python-settings-focus #py-properties-section>p.se-help {display:none;}
body.product-quant #strategy-editor.python-settings-focus .python-property-overview {
  margin:0 0 15px;padding:0;border:0;border-radius:0;background:transparent;
}
body.product-quant #strategy-editor.python-settings-focus .python-property-overview h4,
body.product-quant #strategy-editor.python-settings-focus .python-property-heading {
  margin:0 0 9px;padding:0;border:0;color:#85858b;font-size:9px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
}
body.product-quant #strategy-editor.python-settings-focus .python-property-heading {margin-top:17px;}
body.product-quant #strategy-editor.python-settings-focus .tv-property-row {
  display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:10px;min-height:42px;margin:0;
  color:#b8b8bd;font-size:11px;
}
body.product-quant #strategy-editor.python-settings-focus .tv-property-control {
  display:grid;grid-template-columns:minmax(0,1fr) 126px;gap:8px;min-width:0;
}
body.product-quant #strategy-editor.python-settings-focus .tv-property-control.single {grid-template-columns:minmax(0,1fr);}
body.product-quant #strategy-editor.python-settings-focus .python-property-overview>div {
  grid-template-columns:150px minmax(0,1fr) auto;min-height:42px;gap:10px;border:0;
}
body.product-quant #strategy-editor.python-settings-focus .python-property-overview>div+div {margin:0;padding:0;border:0;}
body.product-quant #strategy-editor.python-settings-focus .python-property-overview p {display:none;}
body.product-quant #strategy-editor.python-settings-focus .python-property-overview button {min-height:30px;background:#202024;}
body.product-quant #strategy-editor.python-settings-focus #py-properties-section>.se-field,
body.product-quant #strategy-editor.python-settings-focus #py-signal-costs>.se-field {
  display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:10px;margin:0 0 10px;
}
body.product-quant #strategy-editor.python-settings-focus #py-properties-section .se-label {font-size:11px;color:#b8b8bd;}
body.product-quant #strategy-editor.python-settings-focus #py-properties-section :is(input,select) {min-height:34px;height:34px;}
body.product-quant #strategy-editor.python-settings-focus #py-properties-section .se-help {display:none;}
body.product-quant #strategy-editor.python-settings-focus #py-properties-section [hidden] {display:none!important;}
body.product-quant #strategy-editor.python-settings-focus #py-signal-costs {display:block;}
body.product-quant #strategy-editor.python-settings-focus #py-inputs-section>.python-testing-heading:not(.python-strategy-rules-heading),
body.product-quant #strategy-editor.python-settings-focus #py-inputs-section>.strategy-period-presets,
body.product-quant #strategy-editor.python-settings-focus #py-inputs-section>.python-history-field,
body.product-quant #strategy-editor.python-settings-focus #py-inputs-section>#py-advanced-params,
body.product-quant #strategy-editor.python-settings-focus #py-inputs-section>#py-advanced-execution,
body.product-quant #strategy-editor.python-settings-focus #py-inputs-section>#py-technical-details {display:none!important;}
body.product-quant #strategy-editor.python-settings-focus .python-fill-contract-details {margin:0 0 15px;background:transparent;}
body.product-quant #strategy-editor.python-settings-focus #py-advanced-execution,
body.product-quant #strategy-editor.python-settings-focus #py-technical-details {margin-top:14px;}
@media(max-width:560px){
  body.product-quant #strategy-editor.python-settings-focus:not(.collapsed){inset:8px!important;transform:none!important;width:auto!important;height:auto!important;max-height:none;}
  body.product-quant #strategy-editor.python-settings-focus .python-property-overview>div,
  body.product-quant #strategy-editor.python-settings-focus #py-properties-section>.se-field,
  body.product-quant #strategy-editor.python-settings-focus #py-signal-costs>.se-field,
  body.product-quant #strategy-editor.python-settings-focus .tv-property-row {grid-template-columns:115px minmax(0,1fr);}
  body.product-quant #strategy-editor.python-settings-focus .tv-property-control {grid-template-columns:minmax(0,1fr) 110px;}
}

body.product-quant #topbar {
  display:grid;grid-template-columns:max-content max-content minmax(280px,1fr) max-content;align-items:center;
  height:46px;min-height:46px;padding:0 12px;gap:12px;flex-wrap:nowrap;
}
body.product-quant #brand {grid-column:1;min-width:136px;}
body.product-quant #workspace-product-switcher {grid-column:2;}
body.product-quant #workspace-mode-tabs {
  display:grid;position:static;grid-column:3;grid-template-columns:repeat(3,minmax(90px,1fr));justify-self:center;
  width:min(350px,100%);height:34px;min-height:34px;margin:0;gap:8px;padding:0;transform:none;
  border:0;border-radius:0;overflow:visible;background:transparent;box-shadow:none;
}
body.product-quant #workspace-mode-tabs button {
  display:flex!important;position:relative;align-items:center;justify-content:center;height:34px;min-height:34px;
  padding:0 12px;border:0;border-radius:4px;
  color:#858d99;background:transparent;font-size:10.5px;font-weight:680;
}
body.product-quant #workspace-mode-tabs button[hidden] {display:none!important;}
body.product-quant #workspace-mode-tabs button[aria-selected="true"] {
  z-index:1;color:#f1f4f5;background:rgba(255,255,255,.035);box-shadow:inset 0 -2px var(--lq-accent);
}
body.product-quant #workspace-mode-tabs button[aria-selected="true"]::after {
  display:none;
}
body.product-quant #workspace-mode-tabs button:hover {color:#dce1e5;background:rgba(255,255,255,.035);}
#lq-mode-tabs-row {display:none;}
body.product-quant #workspace-controls {grid-column:4;margin-left:0;}
body.product-quant #topbar-actions {display:none!important;}
body.product-quant #workspace-product-switcher:not(details) #workspace-product-quant[aria-pressed="true"] {
  background:#f1f1f2;color:#101114;box-shadow:inset 0 0 0 1px rgba(255,255,255,.62),0 3px 12px rgba(0,0,0,.24);
}

/* Workspace anatomy: one trusted chart, a docked baseline tester, and a
   permanent strategy-aware assistant. The general Charts creation controls
   intentionally do not carry into this separate product. */
body.product-quant.workspace-chart-mode #workspace>#main {order:1;}
body.product-quant.workspace-chart-mode #workspace>#chat-panel {
  display:flex!important;order:2;flex:0 0 clamp(330px,26vw,390px);
  width:clamp(330px,26vw,390px)!important;min-width:330px!important;max-width:390px;
  border-left:1px solid var(--lq-line);background:linear-gradient(180deg,#0c0f13,#080a0d);
  box-shadow:none;
}
body.product-quant.workspace-chart-mode #workspace>#assistant-resize,
body.product-quant.workspace-chart-mode #workspace>#chat-panel-collapse,
body.product-quant.workspace-chart-mode #workspace>#market-rail {display:none!important;}
body.product-quant.workspace-chart-mode #workspace {position:relative;}
body.product-quant.workspace-chart-mode #workspace>#strategy-editor:not(.collapsed) {
  display:flex!important;position:absolute;z-index:120;inset:0 clamp(330px,26vw,390px) 0 0;
  width:auto!important;max-width:none;border:0;border-right:1px solid var(--lq-line);
  background:#0b0e12;box-shadow:18px 0 46px rgba(0,0,0,.34);
}
body.product-quant.workspace-chart-mode #workspace>#strategy-editor-resize {display:none!important;}
/* LumeQuant opens a language editor directly. The old choose-a-path strip and
   nested creation launcher belong to the legacy research workbench and must
   never interrupt this chart-first workflow. */
body.product-quant.workspace-chart-mode #strategy-editor #se-create-paths,
body.product-quant.workspace-chart-mode #strategy-editor #se-advanced-start,
body.product-quant.workspace-chart-mode #strategy-editor #se-family-note,
body.product-quant.workspace-chart-mode #strategy-editor #se-empty-start,
body.product-quant.workspace-chart-mode #strategy-editor #se-example,
body.product-quant.workspace-chart-mode #strategy-editor #se-footer-note {display:none!important;}
body.product-quant.workspace-chart-mode #strategy-editor #se-body {padding-top:0;}
body.product-quant.workspace-chart-mode #chat-panel-head {
  min-height:46px;flex-basis:46px;padding:5px 8px;border-bottom:1px solid var(--lq-line);background:#0b0e12;
}
body.product-quant.workspace-chart-mode #chat-panel-title {
  display:flex;height:34px;flex:1;align-items:center;gap:3px;padding:3px;border-radius:8px;background:rgba(255,255,255,.035);
}
body.product-quant.workspace-chart-mode #chat-current-tab {
  display:flex;align-items:center;justify-content:center;color:#f2f4f6;background:rgba(255,255,255,.085);box-shadow:0 1px 2px rgba(0,0,0,.28);font-size:10.5px;font-weight:650;pointer-events:auto;
}
body.product-quant.workspace-chart-mode #chat-current-tab::before {content:"✧";width:auto;height:auto;margin-right:5px;background:none;filter:none;color:var(--lq-accent);font-size:10px;}
body.product-quant.workspace-chart-mode #chat-history-tab {display:flex!important;align-items:center;justify-content:center;color:#8d949e;font-size:10.5px;font-weight:600;}
body.product-quant.workspace-chart-mode #chat-history-tab.active {color:#f2f4f6;background:rgba(255,255,255,.085);}
body.product-quant.workspace-chart-mode #chat-new {display:grid!important;width:30px;height:30px;place-items:center;color:#969da7;}
body.product-quant.workspace-chart-mode #chat-new:hover {background:rgba(255,255,255,.055);color:#fff;}
body.product-quant.workspace-chart-mode #chat-panel-close,
body.product-quant.workspace-chart-mode #chat-suggestions,
body.product-quant.workspace-chart-mode #assistant-code-language-hint,
body.product-quant.workspace-chart-mode #chat-tool-menu,
body.product-quant.workspace-chart-mode #assistant-code-language,
body.product-quant.workspace-chart-mode #chat-compose-hint,
body.product-quant.workspace-chart-mode #research-job-check {display:none!important;}
body.product-quant.workspace-chart-mode #lq-ai-context-bar {
  display:flex!important;align-items:center;gap:7px;flex:none;margin:12px 14px 8px;padding:8px 10px;
  overflow:hidden;border:1px solid rgba(66,223,197,.16);border-radius:7px;
  background:rgba(66,223,197,.055);color:#aeb6c1;font-size:10px;white-space:nowrap;
}
body.product-quant.workspace-chart-mode #lq-ai-context-bar strong {overflow:hidden;color:#dfe5e8;text-overflow:ellipsis;}
body.product-quant.workspace-chart-mode #lq-ai-context-icon {color:var(--lq-accent);}
body.product-quant.workspace-chart-mode #chat-empty-state {
  flex:0 0 auto;min-height:0;margin:0;padding:20px 18px 10px;align-items:flex-start;justify-content:flex-start;text-align:left;
}
body.product-quant.workspace-chart-mode #chat-empty-state .chat-welcome-title {display:flex;align-items:center;gap:11px;width:100%;}
body.product-quant.workspace-chart-mode #chat-empty-state .chat-welcome-title img {width:34px;height:34px;padding:7px;border:1px solid rgba(66,223,197,.2);border-radius:9px;background:rgba(66,223,197,.07);filter:brightness(0) saturate(100%) invert(84%) sepia(28%) saturate(1047%) hue-rotate(112deg) brightness(95%);}
body.product-quant.workspace-chart-mode #chat-empty-state .chat-welcome-title h2 {display:flex;flex-wrap:wrap;gap:4px;margin:0;color:#a8b0b9;font-size:16px;font-weight:560;letter-spacing:-.02em;}
body.product-quant.workspace-chart-mode #chat-empty-state .chat-welcome-title strong {color:#f2f5f6;font-weight:760;}
body.product-quant.workspace-chart-mode #chat-empty-state>p {
  max-width:none;margin:13px 0 0;color:#959da7;font-size:11px;line-height:1.55;text-align:left;
}
body.product-quant.workspace-chart-mode #lq-ai-workspace-actions {
  display:none!important;
}
body.product-quant.workspace-chart-mode #lq-ai-workspace-actions button {
  display:grid;grid-template-columns:22px minmax(0,1fr) 10px;align-items:start;gap:7px;width:100%;min-height:66px;margin:0;padding:10px 9px;
  border:1px solid var(--lq-line);border-radius:8px;background:linear-gradient(145deg,#0e1318,#0a0e12);color:#d8dce1;text-align:left;
}
body.product-quant.workspace-chart-mode #lq-ai-workspace-actions button:hover {border-color:rgba(66,223,197,.34);background:linear-gradient(145deg,rgba(66,223,197,.09),rgba(66,223,197,.035));transform:translateY(-1px);}
body.product-quant.workspace-chart-mode .lq-ai-action-icon {display:grid;width:22px;height:22px;place-items:center;border-radius:6px;background:rgba(66,223,197,.08);color:var(--lq-accent);font-size:11px;}
body.product-quant.workspace-chart-mode .lq-ai-action-copy {display:grid;gap:4px;min-width:0;color:inherit;}
body.product-quant.workspace-chart-mode .lq-ai-action-copy strong {color:#e5e9ec;font-size:10px;font-weight:690;line-height:1.2;white-space:normal;}
body.product-quant.workspace-chart-mode .lq-ai-action-copy small {color:#78818d;font-size:8.5px;line-height:1.3;}
body.product-quant.workspace-chart-mode .lq-ai-action-arrow {align-self:center;color:var(--lq-accent);font-size:11px;}
body.product-quant.workspace-chart-mode #chat-messages {order:3;padding:8px 14px;}
body.product-quant.workspace-chart-mode #busy-indicator {order:5;}
body.product-quant.workspace-chart-mode #chat-conversation-view #chat-composer {order:6;margin:auto 14px 0!important;padding:0 0 8px;border:0;background:transparent;box-shadow:none;}
body.product-quant.workspace-chart-mode #chat-input-row {
  min-height:96px;border:1px solid rgba(255,255,255,.12);border-radius:15px;
  background:linear-gradient(145deg,rgba(27,28,32,.96),rgba(18,20,23,.98));
  box-shadow:0 16px 38px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.025);
}
body.product-quant.workspace-chart-mode #chat-input {min-height:54px;font-size:11.5px;}
body.product-quant.workspace-chart-mode #assistant-model-menu {display:block!important;}
body.product-quant.workspace-chart-mode #assistant-model-menu>summary {border-color:rgba(255,255,255,.1);background:rgba(255,255,255,.035);}
body.product-quant.workspace-chart-mode #chat-plan-footer {margin-top:0;padding-top:5px;}
body.product-quant.workspace-chart-mode #chat-empty-actions {display:flex!important;order:5;padding-top:13px;}
body.product-quant.workspace-chart-mode #chat-empty-mode-menu [data-lume-mode="chart"],
body.product-quant.workspace-chart-mode #chat-empty-mode-menu [data-lume-mode="screenshot"],
body.product-quant.workspace-chart-mode #chat-empty-mode-menu [data-lume-mode="brainstorm"] {display:none!important;}
body.product-quant.workspace-chart-mode #chat-empty-mode {width:230px;}

/* Quant conversation: follow Vela's calm, chronological chat model. Once a
   turn exists, the home shortcuts leave the conversation and one compact
   work card owns all loading/progress feedback. */
body.product-quant.workspace-chart-mode #chat-conversation-view {background:#0b0d10;}
body.product-quant.workspace-chart-mode #chat-panel.has-conversation #chat-empty-state,
body.product-quant.workspace-chart-mode #chat-panel.has-conversation #lq-ai-workspace-actions,
body.product-quant.workspace-chart-mode #chat-panel.has-conversation #chat-empty-actions {display:none!important;}
body.product-quant.workspace-chart-mode #chat-panel.has-conversation #chat-messages {
  order:2;display:flex!important;min-height:0;flex:1 1 auto;gap:18px;padding:18px 16px 24px!important;
  overflow-y:auto;scrollbar-gutter:stable;scroll-behavior:smooth;
}
body.product-quant.workspace-chart-mode #chat-panel.has-conversation .chat-msg {
  position:relative;margin:0;line-height:1.55;
}
body.product-quant.workspace-chart-mode #chat-panel.has-conversation .chat-msg.user {
  align-self:flex-end;width:auto;max-width:82%;padding:10px 13px!important;border:0!important;
  border-radius:17px 17px 5px 17px!important;background:#1b1e23!important;color:#f0f2f4;
  box-shadow:inset 0 1px rgba(255,255,255,.025);font-size:11px;
}
body.product-quant.workspace-chart-mode #chat-panel.has-conversation .chat-msg.assistant {
  align-self:stretch;width:100%;max-width:none;padding:0 1px 0 2px;border:0;background:transparent;
  color:#dde1e5;font-size:11.5px;box-shadow:none;
}
body.product-quant.workspace-chart-mode #chat-panel.has-conversation .chat-msg.assistant::before {
  content:"LumeQuant AI";display:block;margin:0 0 8px;color:#8e96a0;font-size:9.5px;font-weight:690;
  letter-spacing:.01em;text-transform:none;
}
body.product-quant.workspace-chart-mode #chat-panel.has-conversation .chat-msg-meta {
  margin-top:7px;color:#626a75;font-size:8px;
}
body.product-quant.workspace-chart-mode #chat-panel.has-conversation .chat-msg.is-new {
  animation:lq-answer-in .32s cubic-bezier(.2,.75,.2,1) both;
}
body.product-quant.workspace-chart-mode #chat-panel.has-conversation #chat-messages>
  :is(.python-variant-card,.ai-draft):has(~ .chat-msg.user) {display:none!important;}
@keyframes lq-answer-in {from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}

body.product-quant.workspace-chart-mode .chat-work-card {
  position:relative;display:flex;min-height:158px;flex:0 0 auto;flex-direction:column;overflow:hidden;
  border:1px solid rgba(255,255,255,.11);border-radius:11px;background:#101317;
  box-shadow:0 12px 28px rgba(0,0,0,.18);color:#b8bec7;
  animation:lq-work-in .22s ease-out both;
}
@keyframes lq-work-in {from{opacity:0;transform:translateY(5px) scale(.992)}to{opacity:1;transform:none}}
body.product-quant.workspace-chart-mode .chat-work-head,
body.product-quant.workspace-chart-mode .chat-work-footer {
  display:flex;min-height:37px;align-items:center;gap:9px;padding:0 11px;border-color:rgba(255,255,255,.08);
}
body.product-quant.workspace-chart-mode .chat-work-head {border-bottom:1px solid rgba(255,255,255,.08);}
body.product-quant.workspace-chart-mode .chat-work-identity {color:#d5d9de;font-size:9.5px;font-weight:650;}
body.product-quant.workspace-chart-mode .chat-work-count {margin-left:auto;color:#838b96;font-size:9px;}
body.product-quant.workspace-chart-mode .chat-work-steps {
  position:relative;z-index:2;display:flex;max-height:96px;margin:0;padding:10px 12px 8px;flex-direction:column;
  gap:5px;overflow:auto;list-style:none;background:linear-gradient(180deg,rgba(16,19,23,.90),rgba(16,19,23,.70));
}
body.product-quant.workspace-chart-mode .chat-work-steps:empty::before {
  content:"Preparing chart and strategy context";padding-left:28px;color:#8e959f;font-size:9.5px;
  animation:lq-stage-pulse 1.45s ease-in-out infinite;
}
body.product-quant.workspace-chart-mode .chat-work-steps li {display:grid;grid-template-columns:24px 1fr;gap:6px;align-items:start;}
body.product-quant.workspace-chart-mode .chat-work-steps li span {color:#666e79;font-size:8.5px;text-align:right;}
body.product-quant.workspace-chart-mode .chat-work-steps li strong {color:#b7bdc5;font-size:9.5px;font-weight:560;line-height:1.35;}
body.product-quant.workspace-chart-mode .chat-work-steps li:last-child strong {color:#eef0f2;font-weight:680;}
body.product-quant.workspace-chart-mode .chat-work-steps li:last-child strong::after {
  content:"";display:inline-block;width:1px;height:12px;margin-left:5px;vertical-align:-2px;background:#4ee0ca;
  animation:lq-caret .8s steps(1,end) infinite;
}
body.product-quant.workspace-chart-mode .chat-work-canvas {
  position:absolute;right:10px;bottom:40px;left:10px;overflow:hidden;color:rgba(178,184,193,.18);
  font:650 9px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;text-align:center;white-space:nowrap;
  mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);
}
body.product-quant.workspace-chart-mode .chat-work-footer {z-index:3;margin-top:auto;border-top:1px solid rgba(255,255,255,.08);background:#101317;}
body.product-quant.workspace-chart-mode .chat-work-state {display:flex;align-items:center;gap:6px;color:#61d8ca;font-size:9.5px;}
body.product-quant.workspace-chart-mode .chat-work-state i {width:9px;height:9px;border-radius:50%;background:#40dfd0;box-shadow:0 0 0 3px rgba(64,223,208,.10),0 0 12px rgba(64,223,208,.55);animation:lq-stage-pulse 1.35s ease-in-out infinite;}
body.product-quant.workspace-chart-mode .chat-work-elapsed {margin-left:auto;color:#8c939d;font-size:9px;}
body.product-quant.workspace-chart-mode .chat-work-stop {width:auto;margin:0;padding:4px 7px;border:0;border-radius:5px;background:rgba(255,255,255,.04);color:#939aa4;font-size:8.5px;}
body.product-quant.workspace-chart-mode .chat-work-stop:hover {background:rgba(255,255,255,.08);color:#fff;}
body.product-quant.workspace-chart-mode .chat-work-card.complete {min-height:36px;border-color:transparent;background:transparent;box-shadow:none;}
body.product-quant.workspace-chart-mode .chat-work-card.complete .chat-work-head {min-height:30px;padding:0;border:0;}
body.product-quant.workspace-chart-mode .chat-work-card.complete :is(.chat-work-steps,.chat-work-canvas,.chat-work-code,.chat-work-footer) {display:none;}
body.product-quant.workspace-chart-mode .chat-work-card.complete .chat-work-identity {color:#787f89;font-size:9px;font-weight:560;}
body.product-quant.workspace-chart-mode .chat-work-card.failed {border-color:rgba(239,101,111,.22);}
body.product-quant.workspace-chart-mode .chat-work-card.failed .chat-work-state {color:#ef7a83;}
body.product-quant.workspace-chart-mode .chat-work-card.failed .chat-work-state i {background:#ef6d77;box-shadow:none;animation:none;}
@keyframes lq-stage-pulse {0%,100%{opacity:.48}50%{opacity:1}}
@keyframes lq-caret {0%,48%{opacity:1}49%,100%{opacity:0}}

body.product-quant.workspace-chart-mode #chat-panel.has-conversation #chat-composer {
  order:6;flex:0 0 auto;margin:0!important;padding:8px 14px 8px!important;border-top:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(11,13,16,.2),#0b0d10 24%);box-shadow:0 -18px 30px rgba(0,0,0,.20);
}
body.product-quant.workspace-chart-mode #chat-panel.has-conversation #chat-input-row {min-height:82px;border-radius:14px;background:#171a1f;}
body.product-quant.workspace-chart-mode #chat-panel.has-conversation #chat-input {min-height:42px;}
body.product-quant.workspace-chart-mode #research-job-status[data-state="queued"],
body.product-quant.workspace-chart-mode #research-job-status[data-state="running"],
body.product-quant.workspace-chart-mode #research-job-status[data-state="completed"] {display:none!important;}
body.product-quant.workspace-chart-mode #research-job-details:not([hidden]) {margin:4px 0 0;opacity:.72;}

/* LumeQuant intentionally fixes the evidence surface to a single observed
   candlestick chart. Alternative layouts and synthetic display styles remain
   available in Charts, where they do not affect research assumptions. */
body.product-quant #chart-layout-btn,
body.product-quant #chart-layout-popover,
body.product-quant #chart-style-btn,
body.product-quant #chart-style-popover,
body.product-quant #ai-toggle {display:none!important;}
/* LumeQuant's product navigation owns optimization, while paper execution
   belongs to LumeCharts. Keep both concerns out of the Quant chart toolbar. */
body.product-quant :is(#lq-toolbar-optimize,#paper-trade-toggle,#paper-chart-widget,#tools-btn,#tools-popover) {display:none!important;}
body:not(.product-quant) :is(#lq-toolbar-strategy,#lq-toolbar-optimize) {display:none!important;}
body.product-quant #lq-toolbar-strategy {
  display:block!important;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body.product-quant #lq-toolbar-strategy[hidden] {display:none!important;}
body.product-quant #chart-appearance-dialog label:has([data-chart-appearance="price_style"]),
body.product-quant #chart-appearance-dialog [data-price-style-note] {display:none!important;}

/* A strategy in LumeQuant is always a visible Pine/Python script attachment.
   Keep its language, editor, settings, and remove controls discoverable rather
   than hiding them until hover like the denser multi-tool Charts legend. */
body.product-quant #chart-tools-bar .study-chip.is-strategy>.study-language {display:inline-flex!important;}
body.product-quant #chart-tools-bar .study-chip.is-strategy>button {
  width:23px!important;min-width:23px!important;padding:0!important;
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;overflow:visible!important;
}
body.product-quant #chart-tools-bar .study-chip.is-strategy {min-height:29px!important;height:29px!important;padding-right:4px!important;background:rgba(9,12,15,.88)!important;border-color:rgba(255,255,255,.06)!important;}
body.product-quant #chart-tools-bar .study-chip.is-strategy>strong {font-weight:650!important;}

/* LumeQuant uses the existing right chart rail as its permanent tool shelf. */
body.product-quant #workspace>#rail {display:none!important;}
body:not(.product-quant) .lq-rail-action {display:none!important;}
body.product-quant #market-rail :is(#market-rail-capture,#market-rail-watchlist,#market-rail-alerts,#market-rail-reports,#market-rail-objects) {display:none!important;}
body.product-quant #market-rail .lq-rail-action {display:flex!important;}
body.product-quant #market-rail {
  display:flex!important;border-left-color:var(--lq-line);background:linear-gradient(180deg,#0d1014,#090b0e);
}
body.product-quant #market-rail .lq-rail-action[aria-pressed="true"] {
  color:#ecfffb;background:var(--lq-accent-soft);box-shadow:inset 2px 0 var(--lq-accent);
}
body.product-quant #workspace>#market-rail {display:none!important;}

/* Workspace remains chart-first. */
body.product-quant.workspace-chart-mode #chart-tabs-bar {display:none;}
body.product-quant.workspace-chart-mode #chart-container {
  height:clamp(260px,36dvh,380px)!important;min-height:260px;
}
body.product-quant.workspace-chart-mode #main {--chart-stage-height:clamp(260px,36dvh,380px)!important;overflow:hidden;}
body.product-quant.workspace-chart-mode #chart-layout-grid {height:clamp(260px,36dvh,380px)!important;}
body.product-quant.workspace-chart-mode #chart-range-controls {display:none!important;}
body.product-quant.workspace-chart-mode #results-collapse-bar {
  display:none!important;
}

#lumequant-workspace-tester {display:none;}
body.product-quant.workspace-chart-mode #lumequant-workspace-tester {
  display:flex;position:relative;flex-direction:column;flex:1 1 0;min-height:270px;
  margin:8px 10px 10px;border:1px solid var(--lq-line);border-radius:9px;background:linear-gradient(160deg,#0d1116,#080a0d);overflow:hidden;
}
.lq-tester-head {display:flex;align-items:center;gap:18px;min-height:46px;padding:0 14px;border-bottom:1px solid var(--lq-line);}
.lq-tester-head h2 {margin:0;color:#eff2f4;font-size:12px;letter-spacing:.02em;}
.lq-tester-head nav {display:flex;align-self:stretch;gap:3px;}
.lq-tester-head nav button {position:relative;width:auto;margin:0;padding:0 12px;border:0;background:transparent;color:#878e99;font-size:9.5px;}
.lq-tester-head nav button.active {color:#edf0f3;}
.lq-tester-head nav button.active::after {content:"";position:absolute;right:6px;bottom:0;left:6px;height:2px;background:var(--lq-accent);}
.lq-tester-head>#lq-open-analysis {width:auto;margin-left:auto;padding:6px 9px;font-size:9.5px;}
.lq-tester-body {display:grid;grid-template-rows:auto minmax(96px,1fr);gap:8px;flex:1;min-height:0;padding:9px 11px;}
.lq-baseline-metrics {display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:7px;}
.lq-baseline-metrics article {display:flex;flex-direction:column;gap:5px;min-width:0;min-height:80px;padding:10px 11px;border:1px solid var(--lq-line);border-radius:7px;background:#0a0d11;}
.lq-baseline-metrics span {color:#8d95a0;font-size:9px;}.lq-baseline-metrics strong {overflow:hidden;color:#e9ecef;font-size:clamp(15px,1.25vw,19px);line-height:1.12;text-overflow:ellipsis;white-space:nowrap;}
.lq-baseline-metrics strong.positive {color:#42dfc5}.lq-baseline-metrics strong.negative {color:#ff6572}
.lq-baseline-metrics small {margin-top:auto;overflow:hidden;color:#69717d;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap;}
.lq-baseline-detail {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(210px,.75fr);gap:7px;min-height:0;}
.lq-baseline-detail>article {min-width:0;border:1px solid var(--lq-line);border-radius:6px;background:#090c10;overflow:hidden;}
.lq-baseline-detail article>header {display:flex;align-items:center;gap:14px;min-height:30px;padding:0 9px;border-bottom:1px solid rgba(255,255,255,.055);font-size:9px;}
.lq-baseline-detail article>header span {color:#78818c;}.lq-equity-preview {position:relative;display:flex;min-height:0;flex-direction:column;}
#lq-equity-chart {display:grid;grid-template-rows:minmax(80px,1fr) auto;flex:1;min-height:0;padding:6px 9px 7px;}
#lq-equity-chart[hidden] {display:none;}
#lq-equity-chart svg {display:block;width:100%;height:100%;min-height:80px;overflow:visible;}
.lq-equity-grid {stroke:rgba(255,255,255,.055);stroke-width:1;vector-effect:non-scaling-stroke;}
.lq-equity-zero {stroke:rgba(130,143,156,.42);stroke-width:1;stroke-dasharray:4 4;vector-effect:non-scaling-stroke;}
.lq-equity-area {opacity:.78;}
.lq-equity-line {fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;}
.lq-equity-line.positive {stroke:#42dfc5;filter:drop-shadow(0 0 2px rgba(66,223,197,.2));}
.lq-equity-line.negative {stroke:#ff6572;filter:drop-shadow(0 0 2px rgba(255,101,114,.18));}
.lq-equity-readout {display:flex;justify-content:space-between;gap:12px;padding-top:4px;color:#707986;font-size:8.5px;}
.lq-equity-readout strong {color:#aeb6c0;font-size:8.5px;font-weight:600;}
#lq-baseline-empty {display:grid;flex:1;margin:0;padding:14px;place-content:center;color:#89929d;font-size:9px;line-height:1.5;text-align:center;}
#lq-baseline-empty[hidden] {display:none;}
.lq-recent-trades {display:flex;min-height:0;flex-direction:column;}
#lq-trades-list {min-height:0;overflow:auto;padding:2px 8px 7px;}
#lq-trades-list[hidden] {display:none;}
.lq-trade-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 9px;width:100%;padding:7px 2px;border:0;border-bottom:1px solid rgba(255,255,255,.05);border-radius:0;background:transparent;color:inherit;font:inherit;font-size:8.5px;text-align:left;cursor:pointer;}
.lq-trade-row:hover,.lq-trade-row:focus-visible {background:rgba(77,226,200,.055);outline:none;box-shadow:inset 2px 0 #42dfc5;}
.lq-trade-row:last-child {border-bottom:0;}
.lq-trade-row strong {overflow:hidden;color:#d5dae0;font-size:9px;text-overflow:ellipsis;white-space:nowrap;}
.lq-trade-row time {color:#727b87;white-space:nowrap;}
.lq-trade-row small {overflow:hidden;color:#727b87;text-overflow:ellipsis;white-space:nowrap;}
.lq-trade-pnl {grid-row:1/3;grid-column:2;align-self:center;font-size:9px;font-weight:700;}
.lq-trade-pnl.positive {color:#42dfc5;}.lq-trade-pnl.negative {color:#ff6572;}
.lq-trades-empty {display:grid;flex:1;min-height:70px;place-content:center;text-align:center;}
.lq-trades-empty[hidden] {display:none;}
.lq-trades-empty span {font-size:10px;}.lq-trades-empty small {margin-top:4px;color:#6e7681;font-size:8.5px;}
#lumequant-workspace-tester>footer {display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;padding:5px 10px;border-top:1px solid var(--lq-line);}
#lumequant-workspace-tester>footer>span {color:#9ba3ae;font-size:9px;font-weight:650;}
#lumequant-workspace-tester>footer>div {display:flex;gap:6px;}
#lumequant-workspace-tester>footer button {width:auto;min-height:29px;margin:0;padding:5px 9px;font-size:9px;}
#lq-optimize-baseline {color:#06110e;border-color:#63e7d0;background:linear-gradient(180deg,#4fe2c9,#26cdb2);font-weight:760;}
.lq-backtest-setup {
  position:absolute;z-index:12;right:8px;bottom:42px;width:min(320px,calc(100% - 16px));max-height:calc(100% - 52px);
  overflow:auto;border:1px solid rgba(255,255,255,.14);border-radius:9px;background:#101419;box-shadow:0 16px 48px rgba(0,0,0,.62);
}
.lq-backtest-setup[hidden] {display:none!important;}
.lq-backtest-setup>header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--lq-line);}
.lq-backtest-setup>header>div {display:grid;gap:2px}.lq-backtest-setup>header strong {font-size:11px}.lq-backtest-setup>header span {color:#808995;font-size:8.5px}
.lq-backtest-setup>header button {width:28px;min-height:28px;margin:0;padding:0}
#lq-backtest-setup-controls {display:grid;grid-template-columns:1fr;gap:8px;padding:7px;}
#lq-backtest-setup-controls>.python-testing-heading,#lq-backtest-setup-controls>.strategy-period-presets {grid-column:1/-1;}
#lq-backtest-setup-controls .python-testing-heading {display:none;}
#lq-backtest-setup-controls .strategy-period-presets {display:grid;gap:1px;padding:2px;border:0;border-radius:6px;background:#0b0e12;}
#lq-backtest-setup-controls .strategy-period-presets button {display:flex;align-items:center;justify-content:space-between;width:100%;min-height:31px;margin:0;padding:5px 8px;border:0;background:transparent;color:#c2c8cf;font-size:9.5px;text-align:left}
#lq-backtest-setup-controls .strategy-period-presets button:hover,#lq-backtest-setup-controls .strategy-period-presets button[aria-pressed="true"] {background:#1a2027;color:#fff}
#lq-backtest-setup-controls .strategy-period-presets button[aria-pressed="true"]::before {content:"✓";margin-right:7px;color:var(--lq-accent)}
#lq-backtest-setup-controls .strategy-period-presets small {margin-left:auto;color:#7d8691;font-size:8px}
#lq-backtest-setup-controls>.python-history-field {display:grid;gap:5px;margin:0;color:#aeb5bd;font-size:9px}
#lq-backtest-setup-controls>.python-history-field:has(#py-history-max-bars) {display:none}
#lq-backtest-setup-controls:not(:has([data-python-history-preset="custom"][aria-pressed="true"]))>.python-history-field:has(input[type="date"]) {display:none}
#lq-backtest-setup-controls>.python-history-field .se-help {color:#6f7883;font-size:8px;line-height:1.35}
#lq-backtest-setup-controls :is(input,select) {min-height:32px}
.lq-period-options {display:grid;gap:2px;}
.lq-period-options button {min-height:32px;padding:5px 8px;border:0;border-radius:6px;background:transparent;color:#c2c8cf;font-size:9.5px;text-align:left;}
.lq-period-options button:hover,.lq-period-options button:focus-visible {background:#1a2027;color:#fff;}
.lq-period-custom {display:grid;grid-template-columns:1fr 1fr auto;gap:7px;padding-top:8px;border-top:1px solid var(--lq-line);}
.lq-period-custom input {min-width:0;}
#lq-testing-period {display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap}
#lq-testing-period>span {color:inherit!important;font-size:inherit!important;font-weight:inherit!important}

/* Optimization command centre. */
body.product-quant.workspace-optimize-mode #main {overflow:hidden;background:#080a0d;}
body.product-quant.workspace-optimize-mode #main>*:not(#lumequant-optimize-view):not(#startup-error) {display:none!important;}
body.product-quant.workspace-optimize-mode #lumequant-optimize-view[hidden] {display:none!important;}
#lumequant-optimize-view {
  display:flex;flex-direction:column;height:100%;min-height:0;color:#e6e9ed;background:#080a0d;
}
#lumequant-optimize-view[hidden] {display:none!important;}
.lq-optimize-command {
  display:grid;grid-template-columns:minmax(210px,1.15fr) minmax(170px,.82fr) minmax(235px,1fr) minmax(160px,.72fr) auto auto;
  align-items:stretch;gap:0;min-height:72px;border-bottom:1px solid var(--lq-line);background:#0b0e12;
}
.lq-optimize-command>* {min-width:0;padding:10px 12px;border-right:1px solid var(--lq-line);}
.lq-optimize-command>button {align-self:center;width:auto;min-width:max-content;height:36px;margin:0 10px;padding:0 14px;border-right:0;}
.lq-optimize-command>#lq-start-optimization {color:#07110f;border-color:#67ead4;background:linear-gradient(180deg,#54e5cd,#25cbb0);font-weight:780;}
.lq-strategy-identity {display:flex;align-items:center;gap:10px;}
.lq-file-icon {display:grid;width:30px;height:30px;place-items:center;border:1px solid var(--lq-line);border-radius:6px;color:#dfe4e9;font:700 10px/1 ui-monospace,monospace;}
.lq-strategy-identity div {display:grid;gap:3px;min-width:0;}
.lq-strategy-identity strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;}
.lq-strategy-identity small {overflow:hidden;color:var(--lq-muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap;}
.lq-optimize-command label,.lq-command-field {display:grid;align-content:center;gap:6px;}
.lq-optimize-command label>span,.lq-command-field>span {color:#737b87;font-size:9px;font-weight:730;letter-spacing:.03em;}
.lq-optimize-command select {width:100%;height:31px;margin:0;padding:5px 8px;border-color:var(--lq-line);background:#0d1116;color:#e6e9ed;font-size:10.5px;}
.lq-command-field>strong {overflow:hidden;color:#d8dce1;font-size:10.5px;text-overflow:ellipsis;white-space:nowrap;}
.lq-constraint-list {display:flex;gap:5px;}
.lq-constraint-list button {width:auto;min-height:29px;margin:0;padding:5px 8px;border:1px solid rgba(66,223,197,.18);background:rgba(66,223,197,.055);color:#c6eee7;font-size:9.5px;white-space:nowrap;}
.lq-constraint-list button[aria-pressed="false"] {border-color:var(--lq-line);background:#0b0e12;color:#737c87;text-decoration:line-through;}
.lq-advanced-setup {position:relative;align-self:center;margin:0 10px;}
.lq-advanced-setup>summary {min-width:76px;padding:9px 11px;border:1px solid var(--lq-line);border-radius:6px;background:#10141a;color:#b9c0c8;font-size:9.5px;font-weight:680;text-align:center;list-style:none;cursor:pointer;}
.lq-advanced-setup>summary::-webkit-details-marker {display:none;}.lq-advanced-setup>summary::after {content:"⌄";margin-left:7px;color:#6f7884;}
.lq-advanced-setup[open]>summary {border-color:rgba(66,223,197,.28);color:#e9f8f5;background:rgba(66,223,197,.06);}
.lq-advanced-menu {position:absolute;z-index:30;top:42px;right:0;display:grid;gap:10px;width:260px;padding:13px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:#11151b;box-shadow:0 18px 48px rgba(0,0,0,.5);}
.lq-advanced-menu label {display:grid!important;gap:6px!important;padding:0!important;border:0!important;}.lq-advanced-menu label>span {color:#8b949f!important;font-size:9px!important;}.lq-advanced-menu select {height:34px!important;}
.lq-advanced-menu button {width:100%;min-height:32px;margin:0;padding:7px 9px;font-size:9.5px;}.lq-advanced-menu p {margin:0;color:#78818c;font-size:8.5px;line-height:1.5;}
.lq-guidance-bar {display:flex;align-items:center;gap:8px;min-height:34px;padding:0 12px;border-bottom:1px solid var(--lq-line);background:linear-gradient(90deg,rgba(66,223,197,.07),rgba(66,223,197,.018) 58%,transparent);font-size:9px;}
.lq-guidance-bar>span {color:var(--lq-accent);font-size:12px}.lq-guidance-bar strong {color:#dbe4e4;white-space:nowrap}.lq-guidance-bar p {min-width:0;margin:0;color:#86919b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lq-guidance-bar button {width:auto;min-height:24px;margin:0 0 0 auto;padding:4px 8px;border:0;background:transparent;color:#9ce9dd;font-size:8.5px;white-space:nowrap;}
.lq-optimize-layout {display:grid;grid-template-columns:245px minmax(520px,1fr) minmax(290px,340px);gap:8px;flex:1;min-height:0;padding:8px;overflow:hidden;}
.lq-panel {min-width:0;border:1px solid var(--lq-line);border-radius:7px;background:linear-gradient(145deg,#0f1217,#090b0f);overflow:hidden;}
.lq-panel>header {display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:8px 11px;border-bottom:1px solid var(--lq-line);}
.lq-panel h2 {margin:0;color:#eef0f3;font-size:12px;font-weight:740;}
.lq-panel>header button {width:auto;margin:0;padding:2px 6px;border:0;background:transparent;color:#8a929e;}
.lq-panel>header select {width:auto;min-height:29px;margin:0;padding:4px 7px;background:#0c1015;color:#d8dce1;font-size:9.5px;}
.lq-parameters {display:flex;flex-direction:column;}
#lq-parameter-list {display:grid;}
#lq-parameter-list label {display:grid;gap:8px;padding:13px 12px;border-bottom:1px solid rgba(255,255,255,.055);}
#lq-parameter-list label>span {display:flex;align-items:center;justify-content:space-between;gap:8px;}
#lq-parameter-list strong {font-size:11px;}
#lq-parameter-list output {min-width:48px;padding:5px 7px;border:1px solid var(--lq-line);border-radius:5px;background:#11161c;color:#e9ecef;text-align:right;font-size:10px;}
#lq-parameter-list small {color:#9299a4;font-size:9px;}
#lq-parameter-list input[type="range"] {width:100%;height:3px;margin:2px 0;accent-color:var(--lq-accent);}
.lq-parameter-empty {display:grid;justify-items:start;gap:7px;padding:15px 12px;}
.lq-parameter-empty strong {font-size:11px;}.lq-parameter-empty p {margin:0;color:#7f8792;font-size:9.5px;line-height:1.45;}
.lq-parameter-empty button {
  width:auto;margin:2px 0 0;padding:7px 10px;border:1px solid rgba(255,255,255,.13);
  background:#12171d;color:#e2e7ea;font-size:9.5px;box-shadow:none;
}
.lq-parameter-empty button:hover {border-color:rgba(66,223,197,.34);background:rgba(66,223,197,.07);color:#f3fffd;}
.lq-parameter-category {display:grid;gap:5px;padding:12px;border-bottom:1px solid rgba(255,255,255,.055);}
.lq-parameter-category span {display:flex;justify-content:space-between;gap:8px;font-size:10px;}.lq-parameter-category em {color:#9ba2ad;font-style:normal;}
.lq-ai-note {display:flex;gap:9px;margin:auto 10px 10px;padding:11px;border:1px solid rgba(66,223,197,.14);border-radius:6px;background:rgba(66,223,197,.045);}
.lq-ai-note>span {color:var(--lq-accent);}
.lq-ai-note strong {font-size:10.5px;}.lq-ai-note p {margin:5px 0 0;color:#9ba2ac;font-size:9.5px;line-height:1.45;}
.lq-optimize-main {display:grid;grid-template-rows:minmax(260px,1.05fr) minmax(210px,.95fr);gap:8px;min-height:0;}
.lq-map-panel,.lq-comparison-panel {display:flex;flex-direction:column;min-height:0;}
.lq-map-panel>header>div {display:flex;align-items:center;gap:10px;}.lq-map-panel>header span,.lq-comparison-panel>header span {color:#7f8792;font-size:9.5px;}
.lq-map-panel>header>div:last-child {margin-left:auto;}.lq-map-panel>header label {display:flex;align-items:center;gap:5px;color:#777f8b;font-size:9px;}
.lq-map-empty {display:grid;flex:1;min-height:0;place-content:center;justify-items:center;padding:28px;text-align:center;}
.lq-map-empty>span {font-size:30px;color:#4a5663;}.lq-map-empty strong {margin-top:10px;font-size:13px;}.lq-map-empty p {max-width:460px;margin:7px 0 14px;color:#818994;font-size:10px;line-height:1.5;}
.lq-map-empty button {
  width:auto;margin:0;padding:8px 14px;border:1px solid #65e8d2;
  background:linear-gradient(180deg,#51e3cb,#27cdb2);color:#06110e;font-weight:760;box-shadow:0 8px 22px rgba(39,205,178,.16);
}
.lq-map-empty button:hover {background:linear-gradient(180deg,#68ead5,#31d6ba);}
.lq-map-empty button:disabled,.lq-parameter-empty button:disabled {opacity:.45;cursor:not-allowed;box-shadow:none;}
.lq-heatmap {display:grid;grid-template-columns:repeat(22,1fr);gap:1px;flex:1;min-height:0;padding:14px;background:#07090c;}
.lq-heatmap i {min-width:0;border-radius:1px;background:rgba(66,223,197,var(--heat,.08));}
.lq-comparison-empty {display:grid;grid-template-rows:minmax(110px,1fr) auto;flex:1;min-height:0;padding:10px 14px 11px;}
.lq-comparison-empty svg {width:100%;height:100%;min-height:100px;overflow:visible;}
.lq-comparison-empty path {fill:none;stroke-width:2;vector-effect:non-scaling-stroke;}.lq-comparison-empty .baseline {stroke:#66707d;}.lq-comparison-empty .candidate {stroke:var(--lq-accent);opacity:.5;stroke-dasharray:5 4;}
.lq-comparison-empty p {margin:2px 0 0;color:#7f8792;font-size:9.5px;text-align:center;}
.lq-optimize-side {display:grid;grid-template-rows:minmax(260px,1fr) auto;gap:8px;min-height:0;}
.lq-candidates {display:flex;flex-direction:column;}.lq-candidates-empty {display:grid;flex:1;place-content:center;padding:24px;text-align:center;}.lq-candidates-empty strong {font-size:12px;}.lq-candidates-empty p {max-width:240px;margin:7px 0;color:#7f8792;font-size:9.5px;line-height:1.5;}
.lq-candidates-empty.has-results {display:flex;flex-direction:column;justify-content:flex-start;gap:6px;padding:9px;text-align:left;overflow:auto;}
.lq-candidates-empty.has-results article {display:grid;gap:4px;padding:9px;border:1px solid #242b32;border-radius:7px;background:#0b0f13;}
.lq-candidates-empty.has-results article strong {font-size:9.5px;}.lq-candidates-empty.has-results article small {color:#8d96a2;font-size:8.5px;line-height:1.4;}
.lq-recommendation-summary {display:grid;place-content:center;justify-items:center;gap:9px;min-height:150px;padding:20px;text-align:center;}
.lq-recommendation-summary strong {font-size:15px;}.lq-recommendation-summary p {max-width:520px;margin:0;color:#8d96a2;font-size:10px;line-height:1.5;}
.lq-recommendation-summary button {min-height:32px;padding:0 14px;border:1px solid #42dfc5;border-radius:7px;background:#42dfc5;color:#04110f;font-weight:800;}
.lq-insight p {margin:0;padding:12px;color:#a4aab3;font-size:10px;line-height:1.55;}
.lq-compute {display:flex;align-items:center;gap:28px;min-height:38px;padding:0 14px;border-top:1px solid var(--lq-line);background:#0a0d10;color:#858c97;font-size:9.5px;}
.lq-compute button {width:auto;margin:0;padding:2px 8px;border:0;background:transparent;color:#e3e6ea;font-size:10px;}.lq-compute strong {margin-left:4px;color:#d9dde2;}

/* Analysis uses the real strategy report and reads as the third workflow tab. */
body.product-quant.workspace-tester-mode #result-tabs {display:flex!important;}
body.product-quant.workspace-tester-mode #result-tab-performance {order:1;}
body.product-quant.workspace-tester-mode #result-tab-trade-analysis {order:2;}
body.product-quant.workspace-tester-mode #result-tab-trades {order:3;}
body.product-quant.workspace-tester-mode #result-tab-evidence {order:4;}
body.product-quant.workspace-tester-mode #result-tab-validation {order:5;}
body.product-quant.workspace-tester-mode #results-panel:not([hidden]) {border-radius:0;background:#090b0e;}
body.product-quant.workspace-tester-mode #results-header {border-bottom-color:var(--lq-line);background:#0b0e12;}
body.product-quant.workspace-tester-mode #result-tabs .tab-btn[aria-selected="true"] {box-shadow:inset 0 -2px var(--lq-accent);}
#lq-analysis-empty-features {display:none;}
body.product-quant.workspace-tester-mode #main {position:relative;overflow:hidden;}
body.product-quant.workspace-tester-mode #results-panel {
  position:absolute!important;inset:0;z-index:8;min-height:100%;max-height:none!important;margin:0!important;padding:0!important;
  overflow:auto!important;background:radial-gradient(700px 360px at 50% 35%,rgba(66,223,197,.045),transparent 70%),#080a0d;
}
body.product-quant.workspace-tester-mode #results-empty-state:not([hidden]) {
  position:fixed!important;top:52%;left:50%;z-index:12;display:flex!important;align-items:center;justify-content:center;align-content:center;
  flex-wrap:wrap;gap:10px;width:min(790px,calc(100% - 40px));height:max-content;margin:0;padding:34px;transform:translate(-50%,-50%);
  border:1px solid var(--lq-line);border-radius:10px;background:linear-gradient(145deg,#101419,#090c10);box-shadow:0 22px 70px rgba(0,0,0,.28);text-align:center;
}
body.product-quant.workspace-tester-mode #results-empty-state>strong {flex:0 0 100%;color:#f0f3f4;font-size:20px;letter-spacing:-.025em;}
body.product-quant.workspace-tester-mode #results-empty-state>p {flex:0 0 100%;max-width:610px;margin:0 auto 10px;color:#8d96a1;font-size:11px;line-height:1.6;}
body.product-quant.workspace-tester-mode #lq-analysis-empty-features {
  display:grid!important;flex:0 0 100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:6px 0 15px;
}
#lq-analysis-empty-features article {display:grid;justify-items:start;gap:5px;padding:14px;border:1px solid rgba(255,255,255,.075);border-radius:7px;background:#0a0e12;text-align:left;}
#lq-analysis-empty-features article>span {color:var(--lq-accent);font-size:16px;}
#lq-analysis-empty-features article>strong {color:#e3e7ea;font-size:11px;}
#lq-analysis-empty-features article>small {color:#747d88;font-size:9px;line-height:1.45;}
body.product-quant.workspace-tester-mode #results-empty-state>button {width:auto;min-width:150px;margin:0;padding:9px 14px;font-size:10px;}
body.product-quant.workspace-tester-mode #results-empty-ai {border:1px solid rgba(255,255,255,.13);background:#12171d;color:#e2e7ea;}
body.product-quant.workspace-tester-mode #results-empty-action {border:1px solid #65e8d2;background:linear-gradient(180deg,#51e3cb,#27cdb2);color:#06110e;font-weight:760;}

/* A LumeQuant project can be judged before a baseline exists. The analysis
   shell stays visible and labels every data-dependent surface honestly. */
#lq-analysis-preview {display:none;}
body.product-quant.workspace-tester-mode #results-panel.lq-analysis-previewing> :is(#strategy-tester-journey,#backtest-job-activity,#backtest-job-history,#results-empty-state,#results-header,#stale-banner,#result-tabs,#result-evidence-tabs,.tab-content) {display:none!important;}
body.product-quant.workspace-tester-mode #lq-analysis-preview:not([hidden]) {
  display:block;box-sizing:border-box;min-height:100%;padding:18px 20px 26px;color:#d9dee2;background:radial-gradient(760px 360px at 26% -5%,rgba(66,223,197,.06),transparent 70%),#080a0d;
}
.lq-analysis-preview-header {display:flex;align-items:center;justify-content:space-between;gap:24px;padding:2px 0 16px;border-bottom:1px solid var(--lq-line);}
.lq-analysis-preview-header>div:first-child {display:grid;gap:4px;}.lq-analysis-preview-header small,.lq-analysis-section-heading small,.lq-analysis-card>small {color:var(--lq-accent);font-size:8px;font-weight:780;letter-spacing:.11em;}
.lq-analysis-preview-header h2 {margin:0;color:#f2f4f5;font-size:20px;letter-spacing:-.025em;}.lq-analysis-preview-header p {margin:0;color:#808995;font-size:9.5px;}
.lq-analysis-preview-header>div:last-child {display:flex;align-items:center;gap:7px;}.lq-analysis-preview-header>div:last-child>span {padding:6px 9px;border:1px solid rgba(255,190,85,.18);border-radius:999px;background:rgba(255,190,85,.055);color:#ddb56d;font-size:8.5px;font-weight:680;}
.lq-analysis-preview-header button {width:auto;min-height:30px;margin:0;padding:6px 10px;border:1px solid rgba(255,255,255,.11);border-radius:6px;background:#11161c;color:#dfe4e7;font-size:9px;}
#lq-analysis-preview-workspace {border-color:rgba(66,223,197,.34);background:var(--lq-accent-soft);color:#cffff7;}
.lq-analysis-preview-tabs {display:flex;gap:24px;height:42px;align-items:flex-end;border-bottom:1px solid var(--lq-line);}
.lq-analysis-preview-tabs button {position:relative;width:auto;height:42px;margin:0;padding:0 2px;border:0;background:transparent;color:#7f8792;font-size:9.5px;font-weight:680;}
.lq-analysis-preview-tabs button.active {color:#eef2f3;}.lq-analysis-preview-tabs button.active::after {content:"";position:absolute;right:0;bottom:-1px;left:0;height:2px;background:var(--lq-accent);}
.lq-analysis-preview-pane {padding-top:14px;}.lq-analysis-preview-pane[hidden] {display:none!important;}
.lq-analysis-verdict {display:grid;grid-template-columns:auto minmax(260px,1fr) auto;gap:12px;align-items:center;min-height:72px;margin-bottom:8px;padding:11px 13px;border:1px solid rgba(66,223,197,.14);border-radius:8px;background:linear-gradient(100deg,rgba(66,223,197,.07),#0b0f13 45%);}
.lq-verdict-icon {display:grid;width:34px;height:34px;place-items:center;border:1px solid rgba(255,190,85,.3);border-radius:50%;background:rgba(255,190,85,.06);color:#e3b86d;font-size:20px}.lq-analysis-verdict>div {display:grid;gap:3px}.lq-analysis-verdict small {color:var(--lq-accent);font-size:7.5px;font-weight:780;letter-spacing:.11em}.lq-analysis-verdict strong {color:#eef2f3;font-size:13px}.lq-analysis-verdict p {margin:0;color:#7e8893;font-size:8.5px;line-height:1.4}
.lq-analysis-verdict ol {display:flex;gap:4px;margin:0;padding:0;list-style:none;counter-reset:verdict-step}.lq-analysis-verdict li {display:flex;align-items:center;gap:5px;padding:6px 7px;border:1px solid var(--lq-line);border-radius:5px;color:#6f7883;font-size:7.5px;white-space:nowrap}.lq-analysis-verdict li::before {counter-increment:verdict-step;content:counter(verdict-step);display:grid;width:15px;height:15px;place-items:center;border:1px solid rgba(255,255,255,.11);border-radius:50%;font-size:7px}.lq-analysis-verdict li.current {border-color:rgba(66,223,197,.24);background:var(--lq-accent-soft);color:#c7f4ed}.lq-analysis-verdict li.current::before {border-color:rgba(66,223,197,.4);color:var(--lq-accent)}
.lq-analysis-metrics {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:8px;}.lq-analysis-metrics.compact {grid-template-columns:repeat(4,minmax(0,1fr));}
.lq-analysis-metrics article {display:grid;gap:5px;min-height:68px;padding:11px 12px;border:1px solid var(--lq-line);border-radius:7px;background:#0c1014;}.lq-analysis-metrics small {color:#89919b;font-size:8.5px;}.lq-analysis-metrics strong {color:#e5e9eb;font-size:18px;font-weight:720;}.lq-analysis-metrics span {color:#646d78;font-size:8px;}
.lq-analysis-card {box-sizing:border-box;border:1px solid var(--lq-line);border-radius:8px;background:linear-gradient(145deg,#0d1116,#090c10);}
.lq-analysis-overview-grid {display:grid;grid-template-columns:minmax(0,1.8fr) minmax(230px,.65fr);gap:8px;min-height:280px;}
.lq-analysis-card>header {display:flex;align-items:center;justify-content:space-between;min-height:47px;padding:0 13px;border-bottom:1px solid var(--lq-line);}.lq-analysis-card h3 {margin:3px 0 0;color:#e7eaec;font-size:11.5px;}.lq-analysis-card>header>span {color:#737d88;font-size:8.5px;}
.lq-analysis-chart-placeholder {position:relative;height:230px;padding:9px 12px;overflow:hidden;}.lq-analysis-chart-placeholder svg {width:100%;height:100%;}.lq-analysis-chart-placeholder path {fill:none;vector-effect:non-scaling-stroke}.lq-analysis-chart-placeholder .grid {stroke:rgba(255,255,255,.045);stroke-width:1}.lq-analysis-chart-placeholder .benchmark {stroke:#626b78;stroke-width:1.5}.lq-analysis-chart-placeholder .strategy {stroke:var(--lq-accent);stroke-width:2;opacity:.72}
.lq-analysis-chart-placeholder>div {position:absolute;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none;}.lq-analysis-chart-placeholder>div strong {color:#d9dfe2;font-size:11px;}.lq-analysis-chart-placeholder>div span {max-width:310px;margin-top:5px;color:#77818d;font-size:8.5px;}
.lq-analysis-readiness ol {display:grid;gap:0;margin:0;padding:7px 13px 12px;list-style:none;}.lq-analysis-readiness li {display:grid;grid-template-columns:25px 1fr;gap:9px;align-items:center;padding:12px 2px;border-bottom:1px solid rgba(255,255,255,.055);}.lq-analysis-readiness li:last-child {border-bottom:0}.lq-analysis-readiness li>span {display:grid;width:23px;height:23px;place-items:center;border:1px solid rgba(255,255,255,.1);border-radius:50%;color:#727b87;font-size:8px}.lq-analysis-readiness li.current>span,.lq-analysis-readiness li.complete>span {border-color:rgba(66,223,197,.42);background:var(--lq-accent-soft);color:var(--lq-accent)}.lq-analysis-readiness li.complete>span::before {content:'✓';font-size:10px}.lq-analysis-readiness li.complete>span {font-size:0}.lq-analysis-readiness li div {display:grid;gap:3px}.lq-analysis-readiness li strong {color:#dce1e4;font-size:9px}.lq-analysis-readiness li small {color:#707985;font-size:8px;line-height:1.35}
.lq-analysis-diagnostic-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}.lq-analysis-diagnostic-grid article {position:relative;min-height:105px;padding:13px 14px}.lq-analysis-diagnostic-grid article>span {position:absolute;top:12px;right:13px;color:var(--lq-accent);font-size:14px}.lq-analysis-diagnostic-grid article h3 {margin:7px 0 5px}.lq-analysis-diagnostic-grid article p {max-width:90%;margin:0;color:#737d88;font-size:8.5px;line-height:1.45}
.lq-analysis-section-heading {display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:13px}.lq-analysis-section-heading h3 {margin:4px 0 0;color:#eef1f2;font-size:16px}.lq-analysis-section-heading p {margin:0;color:#7f8893;font-size:9px}
.lq-analysis-two-charts {display:grid;grid-template-columns:1fr 1fr;gap:9px}.lq-analysis-two-charts>section {padding:13px}.lq-analysis-two-charts h3 {margin:0 0 10px}.lq-analysis-blank-chart {display:grid;height:260px;place-items:center;border:1px dashed rgba(66,223,197,.15);border-radius:6px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 51px,rgba(255,255,255,.035) 52px);color:#66717c;font-size:9px}.lq-analysis-blank-chart.danger {border-color:rgba(255,89,110,.14);background:repeating-linear-gradient(to bottom,rgba(255,67,92,.018) 0,rgba(255,67,92,.018) 51px,rgba(255,255,255,.035) 52px)}
.lq-analysis-table-card {min-height:420px;overflow:hidden}.lq-analysis-table-head {display:grid;grid-template-columns:1.25fr .6fr repeat(4,1fr) 1.2fr;padding:10px 14px;border-bottom:1px solid var(--lq-line);color:#7c8590;font-size:8px}.lq-analysis-table-empty {display:grid;height:350px;place-content:center;text-align:center}.lq-analysis-table-empty strong {color:#d6dcdf;font-size:11px}.lq-analysis-table-empty span {margin-top:6px;color:#737c87;font-size:8.5px}
.lq-analysis-validation-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.lq-analysis-validation-grid article {display:grid;min-height:210px;padding:17px}.lq-analysis-validation-grid article>span {color:var(--lq-accent);font-size:9px;font-weight:760}.lq-analysis-validation-grid article h3 {margin:28px 0 8px;font-size:14px}.lq-analysis-validation-grid article p {margin:0;color:#7d8691;font-size:9px;line-height:1.55}.lq-analysis-validation-grid article em {align-self:end;color:#626d78;font-size:8.5px;font-style:normal}

@media(max-width:900px) {
  .lq-analysis-preview-header {align-items:flex-start;flex-direction:column;}.lq-analysis-verdict {grid-template-columns:auto 1fr}.lq-analysis-verdict ol {grid-column:1/-1;flex-wrap:wrap}.lq-analysis-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}.lq-analysis-overview-grid,.lq-analysis-two-charts {grid-template-columns:1fr}.lq-analysis-diagnostic-grid,.lq-analysis-validation-grid {grid-template-columns:1fr}.lq-analysis-preview-tabs {gap:14px;overflow:auto;}
}

@media(max-width:1180px) {
  body.product-quant #topbar {grid-template-columns:max-content max-content minmax(240px,1fr) max-content;gap:8px;padding-inline:10px;}
  body.product-quant #workspace-mode-tabs {width:min(310px,100%);grid-template-columns:repeat(3,minmax(78px,1fr));gap:3px;}
  body.product-quant #workspace-status {display:none;}
  .lq-optimize-command {grid-template-columns:minmax(190px,1fr) repeat(2,minmax(145px,.75fr)) auto auto;}
  .lq-optimize-command>.lq-command-field:nth-of-type(2) {display:none;}
  .lq-optimize-layout {grid-template-columns:220px minmax(440px,1fr) 280px;}
}
@media(max-width:900px) {
  body.product-quant #topbar {grid-template-columns:max-content 1fr max-content;grid-template-rows:38px 36px;height:74px;min-height:74px;align-items:center;}
  body.product-quant #brand {grid-column:1;grid-row:1;}
  body.product-quant #workspace-product-switcher {grid-column:2;grid-row:1;justify-self:start;}
  body.product-quant #workspace-controls {grid-column:3;grid-row:1;}
  body.product-quant #workspace-mode-tabs {grid-column:1/-1;grid-row:2;width:100%;max-width:none;margin:0;}
  .lq-optimize-command {grid-template-columns:minmax(180px,1fr) minmax(150px,.8fr) auto;}
  .lq-optimize-command>.lq-command-field,.lq-advanced-setup {display:none;}
  .lq-optimize-layout {grid-template-columns:210px minmax(430px,1fr);overflow:auto;}
  .lq-optimize-side {display:none;}
}
[data-theme="light"] body.product-quant {--lq-panel:#fff;--lq-panel-2:#f4f4f5;--lq-line:rgba(10,10,12,.12);--lq-muted:#6e7077;}
[data-theme="light"] #lumequant-optimize-view,[data-theme="light"] body.product-quant.workspace-optimize-mode #main {background:#f5f5f6;color:#18181b;}
[data-theme="light"] .lq-optimize-command,[data-theme="light"] .lq-panel,[data-theme="light"] .lq-compute {background:#fff;color:#18181b;}

/* LumeQuant optimization lab and strategy intelligence workspace */
#lumequant-optimize-view {--lab-line:rgba(148,163,184,.15);--lab-panel:#0c1117;--lab-panel-2:#101720;min-height:calc(100vh - 46px);padding:0 16px 12px;background:radial-gradient(circle at 52% 28%,rgba(38,213,190,.055),transparent 34%),#070b0f;color:#e7edef;overflow:auto}
.lq-lab-header {display:flex;min-height:76px;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--lab-line)}
.lq-lab-header small,.lq-analysis-command small,.lq-panel header small {color:#40d8c0;font-size:9px;font-weight:800;letter-spacing:.14em}.lq-lab-header h1 {margin:4px 0 2px;font-size:18px}.lq-lab-header p {margin:0;color:#81909d;font-size:10px}
.lq-lab-context {display:flex;align-items:center;gap:8px}.lq-lab-context span {padding:7px 10px;border:1px solid var(--lab-line);border-radius:5px;background:rgba(255,255,255,.018);color:#9aa7b2;font-size:9px}.lq-lab-context #lq-run-progress {color:#d5dddf}
.lq-optimization-workspace {display:grid;grid-template-columns:300px minmax(430px,1fr) 270px;gap:10px;padding:12px 0}.lq-panel {border-color:var(--lab-line);background:linear-gradient(155deg,rgba(16,23,32,.98),rgba(9,14,19,.98));box-shadow:0 14px 42px rgba(0,0,0,.13)}
.lq-opt-config {display:flex;min-height:650px;flex-direction:column;padding:14px}.lq-opt-config>header,.lq-live-search>header,.lq-telemetry-card>header,.lq-event-card>header,.lq-best-candidate>header,.lq-candidates>header,.lq-analysis-card>header {display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:0;border:0;background:none}.lq-opt-config h2,.lq-live-search h2,.lq-telemetry-card h2,.lq-event-card h2,.lq-best-candidate h2,.lq-candidates h2 {margin:4px 0 0;font-size:12px}.lq-status-dot {width:7px;height:7px;margin-top:7px;border-radius:50%;background:#40d8c0;box-shadow:0 0 14px #40d8c0}
.lq-opt-basics,.lq-parameter-navigator {display:contents}
.lq-field {display:grid;gap:6px;margin-top:13px}.lq-field[hidden] {display:none!important}.lq-field>span,.lq-config-heading>div>span {color:#a9b4bc;font-size:9px;font-weight:700}.lq-field select,.lq-field input {height:34px;padding:0 10px;border:1px solid var(--lab-line);border-radius:5px;background:#080d12;color:#dce4e7;font-size:9px}.lq-field>small {color:#64727d;font-size:7px}.lq-config-heading {display:flex;align-items:end;justify-content:space-between;gap:8px;margin:18px 0 6px;padding-top:15px;border-top:1px solid var(--lab-line)}.lq-config-heading>div {display:grid;gap:3px}.lq-config-heading small {color:#687681;font-size:8px}.lq-config-heading button {display:flex;height:25px;align-items:center;gap:5px;padding:0 7px;border-color:var(--lab-line);background:#0a1016;color:#8f9ca5;font-size:8px}.lq-config-heading button b {font-weight:600}
.lq-parameter-search {display:block;margin-bottom:7px}.lq-parameter-search input {width:100%;height:32px;padding:0 10px;border:1px solid var(--lab-line);border-radius:6px;background:#080d12;color:#dce4e7;font-size:9px}.lq-parameter-search input:focus {border-color:rgba(64,216,192,.5);outline:none;box-shadow:0 0 0 2px rgba(64,216,192,.08)}
.lq-parameter-tools {display:flex;min-width:0;align-items:center;gap:5px;margin-bottom:8px}.lq-parameter-tools>span {min-width:0;margin-right:auto;color:#40d8c0;font-size:8px;white-space:normal}.lq-parameter-tools button {height:24px;flex:0 0 auto;padding:0 7px;border-color:var(--lab-line);background:#0a1016;color:#96a2ab;font-size:7.5px;white-space:nowrap}
.lq-opt-config #lq-parameter-list {display:grid;gap:7px;max-height:330px;padding:0 3px 0 0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#33414d transparent}
.lq-parameter-group {min-width:0;border:1px solid rgba(148,163,184,.11);border-radius:6px;background:#090e14;overflow:hidden}.lq-parameter-group[hidden] {display:none}.lq-parameter-group>summary {display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px;min-height:32px;padding:0 9px;color:#8f9ca6;list-style:none;cursor:pointer}.lq-parameter-group>summary::-webkit-details-marker {display:none}.lq-parameter-group>summary strong {min-width:0;overflow:hidden;font-size:8px;font-weight:700;letter-spacing:.06em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.lq-parameter-group>summary span {display:grid;min-width:19px;height:19px;place-items:center;border-radius:999px;background:rgba(148,163,184,.09);color:#7d8993;font-size:7px}.lq-parameter-group>summary:after {content:'›';grid-column:3;grid-row:1;color:#697680;font-size:13px;transform:rotate(0deg);transition:transform .15s}.lq-parameter-group[open]>summary:after {transform:rotate(90deg)}.lq-parameter-group[open]>summary {border-bottom:1px solid rgba(148,163,184,.09);color:#b4bec5}.lq-parameter-group-rows {display:grid}
.lq-parameter-card {display:grid;min-width:0;gap:5px;padding:9px 10px;border-bottom:1px solid rgba(148,163,184,.075);background:transparent;transition:background .15s}.lq-parameter-card:last-child {border-bottom:0}.lq-parameter-card.is-selected {background:linear-gradient(90deg,rgba(64,216,192,.075),rgba(64,216,192,.015) 72%)}.lq-parameter-card>div {display:grid;min-width:0;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px}.lq-parameter-card>div>input {width:14px;height:14px;margin:0;accent-color:#40d8c0}.lq-parameter-card.is-fixed>div>input {opacity:.28}.lq-parameter-card>div>span {display:grid;min-width:0;gap:2px}.lq-parameter-card>div strong {overflow:hidden;color:#c7d0d5;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.lq-parameter-card>div small,.lq-parameter-card>small {color:#65727c;font-size:7px}.lq-parameter-card.is-selected>div small {color:#77b9ae}.lq-parameter-card.is-fixed>div small {color:#77838c}.lq-parameter-card>div output {min-width:38px;max-width:72px;padding:3px 6px;border:1px solid rgba(148,163,184,.12);border-radius:4px;overflow:hidden;background:#11171e;color:#e8edef;text-align:right;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.lq-parameter-range-label {padding-left:22px}.lq-parameter-card>input[type=range] {width:calc(100% - 22px);height:3px;margin:2px 0 1px 22px;accent-color:#40d8c0}.lq-parameter-card:not(.is-selected)>input[type=range],.lq-parameter-card:not(.is-selected)>.lq-parameter-choices {display:none}.lq-parameter-card>input[type=range]:disabled {opacity:.24}.lq-parameter-category {display:none}
.lq-candidate-budget {display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:8px}.lq-candidate-budget span {color:#b5c0c6;font-size:8px}.lq-candidate-budget small {color:#596771;font-size:7px;text-align:right}.lq-opt-actions {display:grid;grid-template-columns:1fr auto;gap:6px;margin-top:auto;padding-top:12px}.lq-opt-actions button {min-height:36px}
body.lq-parameters-open {overflow:hidden}.lq-optimization-workspace.parameters-expanded .lq-opt-config {position:fixed;z-index:1200;inset:52px 14px 14px;display:grid;grid-template-columns:250px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:14px;min-height:0;padding:16px;border:1px solid rgba(148,163,184,.24);background:radial-gradient(circle at 68% 18%,rgba(64,216,192,.055),transparent 34%),#090e13;box-shadow:0 28px 90px rgba(0,0,0,.72)}.lq-optimization-workspace.parameters-expanded .lq-opt-config>header {grid-column:1/-1;padding:0 110px 12px 0;border-bottom:1px solid var(--lab-line)}.lq-optimization-workspace.parameters-expanded .lq-opt-basics {display:block;grid-column:1;grid-row:2;min-width:0;padding:2px 14px 0 0;border-right:1px solid var(--lab-line)}.lq-optimization-workspace.parameters-expanded .lq-parameter-navigator {display:grid;grid-column:2;grid-row:2;grid-template-rows:auto auto auto minmax(0,1fr) auto;min-width:0;min-height:0}.lq-optimization-workspace.parameters-expanded .lq-config-heading {margin:0 0 9px;padding:0;border:0}.lq-optimization-workspace.parameters-expanded .lq-config-heading>div>span {font-size:12px}.lq-optimization-workspace.parameters-expanded .lq-config-heading small {font-size:8px}.lq-optimization-workspace.parameters-expanded #lq-expand-parameters {position:fixed;z-index:1202;top:65px;right:30px;display:inline-flex;width:auto;min-width:88px;height:34px;align-items:center;justify-content:center;gap:6px;padding:0 14px;border:1px solid rgba(255,255,255,.18);border-radius:7px;background:#171b20;color:#f1f3f5;font-size:10px;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.35)}.lq-optimization-workspace.parameters-expanded #lq-expand-parameters:hover {border-color:rgba(64,216,192,.42);background:#20272d;color:#fff}.lq-optimization-workspace.parameters-expanded .lq-parameter-search input {height:38px;font-size:10px}.lq-optimization-workspace.parameters-expanded .lq-opt-config #lq-parameter-list {display:block;max-height:none;min-height:0;padding:0 5px 0 0;overflow-x:hidden;overflow-y:auto}.lq-optimization-workspace.parameters-expanded .lq-parameter-group {width:100%;margin:0 0 9px;overflow:visible}.lq-optimization-workspace.parameters-expanded .lq-parameter-group>summary {position:sticky;z-index:4;top:0;min-height:38px;border:1px solid rgba(148,163,184,.10);background:#0c1218}.lq-optimization-workspace.parameters-expanded .lq-parameter-group-rows {grid-template-columns:repeat(auto-fit,minmax(360px,1fr))}.lq-optimization-workspace.parameters-expanded .lq-parameter-card {padding:11px 12px;border-right:1px solid rgba(148,163,184,.075)}.lq-optimization-workspace.parameters-expanded .lq-parameter-card>div output {max-width:160px}.lq-optimization-workspace.parameters-expanded .lq-opt-actions {grid-column:1/-1;grid-row:3;margin:0;padding-top:12px;border-top:1px solid var(--lab-line)}
.lq-opt-live {display:grid;align-content:start;gap:10px}.lq-live-search {min-height:430px;padding:14px}.lq-live-search>header>span {padding:5px 8px;border:1px solid rgba(64,216,192,.18);border-radius:999px;color:#7d8c97;font-size:8px}.lq-live-search.running>header>span {color:#40d8c0}.lq-live-stage {position:relative;display:grid;height:310px;place-items:center;margin-top:12px;border:1px solid rgba(64,216,192,.08);border-radius:7px;background:radial-gradient(circle at center,rgba(64,216,192,.07),transparent 28%),linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);background-size:auto,34px 34px,34px 34px;overflow:hidden}
.lq-candidate-map {position:absolute;inset:0}.lq-search-orbit {position:absolute;inset:50% auto auto 50%;width:220px;height:220px;transform:translate(-50%,-50%);border:1px solid rgba(64,216,192,.12);border-radius:50%}.lq-search-orbit:before,.lq-search-orbit:after {content:'';position:absolute;border:1px solid rgba(64,216,192,.08);border-radius:50%}.lq-search-orbit:before {inset:30px}.lq-search-orbit:after {inset:65px}.lq-search-orbit i {position:absolute;width:4px;height:4px;border-radius:50%;background:#40d8c0;opacity:.25}.lq-search-orbit i:nth-child(1){left:21px;top:61px}.lq-search-orbit i:nth-child(2){right:36px;top:33px}.lq-search-orbit i:nth-child(3){right:18px;bottom:65px}.lq-live-search.running .lq-search-orbit {animation:lq-orbit 9s linear infinite}.lq-live-search.running .lq-search-orbit i {opacity:1;box-shadow:0 0 12px #40d8c0}@keyframes lq-orbit {to{transform:translate(-50%,-50%) rotate(360deg)}}
.lq-progress-orb {position:relative;z-index:2;display:grid;width:102px;height:102px;place-content:center;border:1px solid rgba(64,216,192,.32);border-radius:50%;background:rgba(7,12,16,.92);box-shadow:inset 0 0 32px rgba(64,216,192,.08),0 0 44px rgba(64,216,192,.07);text-align:center}.lq-progress-orb strong {color:#f1f7f7;font-size:25px;font-variant-numeric:tabular-nums}.lq-progress-orb span {color:#6f7d87;font-size:8px}.lq-live-copy {position:absolute;z-index:3;right:0;bottom:17px;left:0;text-align:center}.lq-live-copy strong {display:block;color:#dbe4e6;font-size:10px}.lq-live-copy p {margin:4px auto 8px;max-width:340px;color:#6f7e89;font-size:8px}.lq-live-copy button {height:29px;font-size:8px}.lq-live-search.running .lq-live-copy {display:none}
#lq-heatmap:not([hidden]) {position:absolute;inset:0;display:block}.lq-candidate-point {position:absolute;width:7px;height:7px;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:hsl(calc(165deg + var(--rank)*45deg) 70% 52%);box-shadow:0 0 calc(5px + var(--rank)*7px) currentColor;transform:translate(-50%,-50%);animation:lq-point-in .28s ease-out both}@keyframes lq-point-in {from{opacity:0;transform:translate(-50%,-50%) scale(0)}to{opacity:.92;transform:translate(-50%,-50%) scale(1)}}
.lq-live-stats {display:grid;grid-template-columns:repeat(5,1fr);margin-top:10px;border-top:1px solid var(--lab-line)}.lq-live-stats span {display:grid;gap:3px;padding:10px 8px;border-right:1px solid var(--lab-line);color:#687681;font-size:8px}.lq-live-stats span:last-child {border:0}.lq-live-stats strong {color:#cbd4d8;font-size:10px;font-variant-numeric:tabular-nums}
.lq-telemetry-grid {display:grid;grid-template-columns:1.3fr .7fr;gap:10px}.lq-telemetry-card,.lq-event-card {min-height:205px;padding:13px}.lq-telemetry-card header>span {color:#788792;font-size:8px}.lq-telemetry-chart {display:grid;height:145px;margin-top:8px;place-items:center;border-top:1px solid var(--lab-line);color:#5f6d77;font-size:8px}.lq-telemetry-chart svg,.lq-intelligence-chart svg,.lq-analysis-expanded-chart svg {width:100%;height:100%;overflow:visible}.lq-chart-grid {stroke:rgba(255,255,255,.05);stroke-width:1}.lq-chart-line {fill:none;stroke:#40d8c0;stroke-width:2;vector-effect:non-scaling-stroke}.lq-chart-area {fill:url(#lq-analysis-fill);opacity:.28}.lq-chart-zero {stroke:rgba(255,255,255,.12);stroke-dasharray:3 3}
.lq-event-card ol {display:grid;gap:0;max-height:150px;margin:9px 0 0;padding:0;overflow:auto;list-style:none}.lq-event-card li {display:grid;grid-template-columns:46px 1fr;gap:8px;padding:7px 0;border-top:1px solid rgba(255,255,255,.045);color:#aeb8be;font-size:8px}.lq-event-card time {color:#53616b;font-variant-numeric:tabular-nums}
.lq-optimize-side {display:grid;align-content:start;gap:10px}.lq-best-candidate,.lq-candidates {padding:13px}.lq-best-candidate header>span {color:#40d8c0;font-size:12px;font-weight:800}.lq-best-candidate #lq-best-metrics {display:grid;grid-template-columns:1fr 1fr;margin-top:12px;border:1px solid var(--lab-line);border-radius:5px}.lq-best-candidate #lq-best-metrics span {display:grid;gap:4px;padding:9px;color:#65737e;font-size:8px;border-right:1px solid var(--lab-line);border-bottom:1px solid var(--lab-line)}.lq-best-candidate #lq-best-metrics span:nth-child(2n){border-right:0}.lq-best-candidate #lq-best-metrics span:nth-last-child(-n+2){border-bottom:0}.lq-best-candidate #lq-best-metrics strong {color:#dbe3e6;font-size:11px}.lq-best-candidate .lq-comparison-empty {min-height:78px;padding:12px 0 0}.lq-best-candidate .lq-comparison-empty button {width:100%;margin-top:9px}.lq-candidates {min-height:330px}.lq-candidates header>span {color:#65737d;font-size:8px}.lq-candidates-empty {margin-top:10px}.lq-candidates-empty.has-results {display:grid;gap:5px}.lq-candidates-empty article {display:grid;gap:3px;padding:9px;border:1px solid var(--lab-line);border-radius:5px;background:#090e13}.lq-candidates-empty article strong {color:#d3dbde;font-size:8.5px}.lq-candidates-empty article small {color:#77858f;font-size:7.5px;line-height:1.4}.lq-compute {justify-content:flex-end;gap:24px;padding:8px 12px;border:1px solid var(--lab-line);border-radius:5px;background:#0a0f14}.lq-compute>span {display:flex;gap:5px;color:#5f6d77;font-size:8px}.lq-compute strong {color:#aeb9bf}

body.product-quant.workspace-tester-mode #results-panel.lq-analysis-previewing {padding:0;background:#070b0f;overflow:auto}.lq-analysis-command {position:sticky;z-index:4;top:0;display:grid;grid-template-columns:minmax(200px,.7fr) 1fr auto;align-items:center;gap:18px;padding:13px 18px;border-bottom:1px solid var(--lab-line,rgba(148,163,184,.15));background:rgba(7,11,15,.96);backdrop-filter:blur(12px)}.lq-analysis-command h2 {margin:3px 0 1px;font-size:18px}.lq-analysis-command p {margin:0;color:#74828d;font-size:8.5px}.lq-analysis-actions {display:flex;align-items:center;gap:6px}.lq-analysis-actions>span {padding:6px 8px;border:1px solid rgba(64,216,192,.18);border-radius:999px;color:#84a49f;font-size:8px}.lq-analysis-actions button {height:30px;font-size:8px}
.lq-analysis-preview-tabs {align-self:stretch;justify-content:center;padding:0;border:0}.lq-analysis-preview-tabs button {padding:0 13px}.lq-analysis-preview-pane {max-width:none;padding:14px 18px 22px}.lq-intelligence-hero {display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:15px;padding:13px 15px;border:1px solid rgba(64,216,192,.16);border-radius:7px;background:linear-gradient(110deg,rgba(64,216,192,.065),rgba(14,20,28,.7) 45%,rgba(123,96,220,.055))}.lq-evidence-gauge {display:grid;width:68px;height:68px;place-content:center;border:1px solid rgba(64,216,192,.34);border-radius:50%;background:radial-gradient(circle,rgba(64,216,192,.1),transparent 65%);text-align:center}.lq-evidence-gauge strong {font-size:16px}.lq-evidence-gauge span {color:#71808a;font-size:7px;line-height:1.2;text-transform:uppercase}.lq-verdict-copy small {color:#40d8c0;font-size:8px;font-weight:800;letter-spacing:.12em}.lq-verdict-copy h3 {margin:4px 0 3px;font-size:17px}.lq-verdict-copy p {margin:0;color:#82909a;font-size:9px}.lq-verdict-flags {display:flex;gap:5px}.lq-verdict-flags span {padding:6px 8px;border:1px solid var(--lab-line,rgba(148,163,184,.15));border-radius:999px;color:#86939c;font-size:8px}.lq-verdict-flags span.complete {border-color:rgba(64,216,192,.24);color:#40d8c0}
.lq-analysis-metrics {grid-template-columns:repeat(5,1fr);gap:7px;margin:9px 0}.lq-analysis-metrics article {min-height:67px;padding:10px 12px;background:linear-gradient(155deg,#101720,#0a0f14)}.lq-analysis-metrics article strong {margin:5px 0 2px;font-size:15px}.lq-analysis-metrics article span {font-size:7.5px}.lq-analysis-primary-grid {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,.55fr);gap:8px}.lq-analysis-primary-grid>.lq-analysis-card {min-height:280px}.lq-analysis-card {border-color:var(--lab-line,rgba(148,163,184,.15));background:linear-gradient(155deg,#101720,#090e13)}.lq-analysis-card>header {padding:12px 13px;border-bottom:1px solid var(--lab-line,rgba(148,163,184,.15))}.lq-analysis-card header h3 {margin:4px 0 0;font-size:11px}.lq-analysis-card>header>span {color:#6e7c87;font-size:8px}.lq-intelligence-chart {display:grid;height:222px;padding:10px 13px;place-items:center;color:#5e6d78;font-size:8px}.lq-driver-card ol {display:grid;gap:0;margin:0;padding:6px 13px 10px;list-style:none}.lq-driver-card li {display:grid;grid-template-columns:25px 1fr;gap:8px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.045)}.lq-driver-card li:last-child {border:0}.lq-driver-card li>span {color:#40d8c0;font-size:8px}.lq-driver-card p {margin:0;color:#9aa6ad;font-size:8.5px;line-height:1.45}
.lq-analysis-secondary-grid {display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px}.lq-analysis-secondary-grid>.lq-analysis-card {min-height:195px}.lq-trade-distribution,.lq-risk-map,.lq-robustness-map {display:flex;height:137px;align-items:flex-end;justify-content:center;gap:3px;padding:12px;color:#5f6d77;font-size:8px}.lq-trade-bar {min-width:5px;max-width:14px;flex:1;border-radius:2px 2px 0 0;background:#40d8c0}.lq-trade-bar.loss {background:#ff6178}.lq-risk-map svg,.lq-robustness-map svg {width:100%;height:100%}.lq-drawdown-area {fill:rgba(255,97,120,.22);stroke:#ff6178;stroke-width:1.4;vector-effect:non-scaling-stroke}.lq-robust-cell {fill:rgba(64,216,192,var(--strength));stroke:rgba(255,255,255,.07)}#lq-analysis-failures {display:grid;gap:7px;margin:0;padding:12px 22px;color:#95a2aa;font-size:8px;line-height:1.4}#lq-analysis-failures li::marker {color:#ffbd62}
.lq-next-action {display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin-top:8px;padding:12px 14px;border:1px solid rgba(64,216,192,.18);border-radius:7px;background:rgba(64,216,192,.035)}.lq-next-action>span {color:#40d8c0;font-size:18px}.lq-next-action small {color:#40d8c0;font-size:7px;font-weight:800;letter-spacing:.12em}.lq-next-action strong {display:block;margin:2px 0;color:#dce5e7;font-size:10px}.lq-next-action p {margin:0;color:#74828c;font-size:8px}.lq-next-action button {height:30px;font-size:8px}.lq-analysis-expanded-chart {display:grid;height:430px;place-items:center;padding:14px;color:#697781;font-size:9px}.lq-analysis-table-head {grid-template-columns:1.2fr .7fr 1fr 1fr 1fr}.lq-analysis-table-row {display:grid;grid-template-columns:1.2fr .7fr 1fr 1fr 1fr;padding:9px 14px;border-bottom:1px solid rgba(255,255,255,.045);color:#9ca8af;font-size:8px}.lq-analysis-table-row .positive {color:#40d8c0}.lq-analysis-table-row .negative {color:#ff6178}
@media(max-width:1180px){.lq-optimization-workspace{grid-template-columns:220px minmax(420px,1fr)}.lq-optimize-side{grid-column:1/-1;grid-template-columns:1fr 1fr}.lq-analysis-secondary-grid{grid-template-columns:1fr 1fr}.lq-analysis-command{grid-template-columns:1fr auto}.lq-analysis-command .lq-analysis-preview-tabs{grid-row:2;grid-column:1/-1}}
@media(max-width:780px){.lq-optimization-workspace{grid-template-columns:1fr}.lq-opt-config{min-height:auto}.lq-optimize-side,.lq-telemetry-grid,.lq-analysis-primary-grid,.lq-analysis-secondary-grid{grid-template-columns:1fr}.lq-analysis-command{position:static;grid-template-columns:1fr}.lq-analysis-actions{justify-content:flex-start}.lq-intelligence-hero{grid-template-columns:auto 1fr}.lq-verdict-flags{grid-column:1/-1}.lq-analysis-metrics{grid-template-columns:1fr 1fr}.lq-analysis-preview-pane{padding:10px}.lq-live-stats{grid-template-columns:1fr 1fr}}
body.product-quant.workspace-tester-mode #lq-analysis-preview:not([hidden]) {padding:0;background:radial-gradient(circle at 22% 0,rgba(64,216,192,.045),transparent 28%),#070b0f}
#lq-start-optimization,#lq-map-start,#lq-analysis-next-action,.lq-best-candidate .lq-comparison-empty button {border-color:#54e5cc;background:linear-gradient(180deg,#50dfc7,#25c9ae);color:#06120f;font-weight:800;box-shadow:0 5px 18px rgba(37,201,174,.12)}
#lq-start-optimization:hover,#lq-map-start:hover,#lq-analysis-next-action:hover,.lq-best-candidate .lq-comparison-empty button:hover {background:linear-gradient(180deg,#68ead5,#31d4b8);color:#06120f}
#lq-start-optimization:disabled,#lq-map-start:disabled {opacity:.46;color:#14332d}
.lq-parameter-tools>span {min-width:0;white-space:normal}.lq-parameter-tools button {width:auto!important;flex:0 0 auto;white-space:nowrap}
.lq-parameter-choices {display:flex!important;min-width:0;flex-wrap:wrap;grid-template-columns:none!important;gap:4px!important;margin-left:22px}.lq-parameter-choices span {max-width:92px;padding:3px 5px;border:1px solid rgba(148,163,184,.1);border-radius:999px;overflow:hidden;color:#74828d;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.lq-parameter-card.is-selected .lq-parameter-choices span {border-color:rgba(64,216,192,.17);color:#9acbc3}
.lq-candidate-point.rejected {border-color:rgba(148,163,184,.28);background:#596773;box-shadow:0 0 6px rgba(148,163,184,.22);opacity:.58}.lq-candidate-point.qualified {border-color:rgba(255,255,255,.45)}
[data-theme="light"] .lq-panel h2,[data-theme="light"] .lq-strategy-identity strong {color:#18181b;}

/* Ranked results inherit centered empty-state alignment unless explicitly reset. */
.lq-candidates-empty.has-results {
  align-content:start;
  justify-content:stretch;
  place-content:start stretch;
  overflow-y:auto;
  overflow-anchor:none;
}

/* Evidence-first optimizer motion and analytical telemetry. */
.lq-live-stage {isolation:isolate}
.lq-live-stage:after {content:'';position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 50% 45%,rgba(64,216,192,.09),transparent 36%);opacity:0;transition:opacity .3s}
.lq-live-search.running .lq-live-stage:after {opacity:1;animation:lq-stage-breathe 2.8s ease-in-out infinite}
.lq-candidate-map {--lq-progress:0}
.lq-candidate-map:after {content:'';position:absolute;inset:-45%;background:conic-gradient(from -45deg,transparent 0 79%,rgba(64,216,192,.16) 88%,transparent 94%);opacity:0;pointer-events:none}
.lq-live-search.running .lq-candidate-map:after {opacity:1;animation:lq-scan 3.2s linear infinite}
.lq-progress-orb {border:0;background:conic-gradient(#40d8c0 calc(var(--lq-progress)*1turn),rgba(64,216,192,.12) 0);box-shadow:0 0 44px rgba(64,216,192,.09);transition:background .35s ease}
.lq-progress-orb:before {content:'';position:absolute;inset:2px;border-radius:inherit;background:radial-gradient(circle at 42% 35%,#101b20,#070c10 72%);box-shadow:inset 0 0 32px rgba(64,216,192,.08)}
.lq-progress-orb>* {position:relative}
.lq-live-search.running .lq-live-copy {display:block}
.lq-live-copy.is-progress button {display:none}
.lq-live-copy.is-progress strong {color:#8ce7d8}
.lq-live-copy.is-progress p {max-width:360px;color:#82949d}
.lq-candidate-point.processing {width:6px;height:6px;border-color:rgba(142,231,216,.55);background:#6e9f9a;box-shadow:0 0 12px rgba(64,216,192,.42);animation:lq-point-in .28s calc(var(--point-index)*18ms) ease-out both,lq-point-pulse 2.2s calc(var(--point-index)*90ms) ease-in-out infinite}
.lq-live-search:not(.running) .lq-candidate-point.processing {animation:none;opacity:.55}
@keyframes lq-scan {to{transform:rotate(360deg)}}
@keyframes lq-stage-breathe {50%{opacity:.45}}
@keyframes lq-point-pulse {50%{opacity:.45;box-shadow:0 0 4px rgba(64,216,192,.18)}}

.lq-telemetry-chart {position:relative;overflow:hidden}
.lq-telemetry-chart>svg {position:absolute;inset:0}
.lq-chart-line {stroke-dasharray:1;stroke-dashoffset:0;animation:lq-chart-draw .85s cubic-bezier(.2,.7,.2,1) both}
.lq-chart-area {animation:lq-area-in .65s ease-out both}
.lq-chart-zero {stroke:rgba(255,255,255,.14)}
.lq-chart-endpoint circle:first-child {fill:rgba(64,216,192,.12);stroke:#40d8c0;stroke-width:1;animation:lq-endpoint-pulse 2s ease-out infinite}
.lq-chart-endpoint circle:last-child {fill:#b7fff4}
.lq-telemetry-summary {position:absolute;z-index:2;right:8px;bottom:5px;left:8px;display:flex;justify-content:flex-end;gap:5px;pointer-events:none}
.lq-telemetry-summary span {display:grid;min-width:52px;gap:1px;padding:4px 6px;border:1px solid rgba(148,163,184,.12);border-radius:4px;background:rgba(5,10,14,.76);backdrop-filter:blur(6px)}
.lq-telemetry-summary small {color:#596973;font-size:6px;text-transform:uppercase}
.lq-telemetry-summary strong {color:#b8c7cc;font-size:7.5px;font-variant-numeric:tabular-nums}
@keyframes lq-chart-draw {from{stroke-dashoffset:1}}
@keyframes lq-area-in {from{opacity:0}}
@keyframes lq-endpoint-pulse {to{r:13;opacity:0}}

.lq-trade-distribution {position:relative;align-items:center;gap:4px}
.lq-trade-distribution:before {content:'';position:absolute;right:10px;left:10px;top:50%;height:1px;background:linear-gradient(90deg,transparent,rgba(148,163,184,.22),transparent)}
.lq-trade-bar {position:relative;z-index:1;border-radius:2px;background:linear-gradient(180deg,#85f1df,#2ac7ad);box-shadow:0 0 9px rgba(64,216,192,.18);transform:translateY(-50%) scaleY(1);transform-origin:50% 100%;animation:lq-bar-rise .5s calc(var(--bar-index)*35ms) cubic-bezier(.2,.8,.2,1) both}
.lq-trade-bar.loss {background:linear-gradient(180deg,#ff8798,#e94560);box-shadow:0 0 9px rgba(255,97,120,.16);transform:translateY(50%) scaleY(1);transform-origin:50% 0}
.lq-trade-bar:hover,.lq-trade-bar:focus-visible {filter:brightness(1.25);outline:none}
@keyframes lq-bar-rise {from{opacity:0;transform:translateY(0) scaleY(0)}}

@media (prefers-reduced-motion:reduce){.lq-live-search.running .lq-search-orbit,.lq-live-search.running .lq-candidate-map:after,.lq-live-search.running .lq-live-stage:after,.lq-candidate-point,.lq-chart-line,.lq-chart-area,.lq-chart-endpoint circle:first-child,.lq-trade-bar {animation:none!important;transition:none!important}}

/* Analysis command bar: one compact hierarchy shared with the LumeQuant shell. */
body.product-quant.workspace-tester-mode .lq-analysis-command {
  grid-template-columns:minmax(190px,.72fr) minmax(390px,1.2fr) auto;min-height:66px;gap:16px;padding:9px 14px;
  border:1px solid rgba(255,255,255,.075);border-radius:15px;background:linear-gradient(112deg,rgba(14,19,25,.97),rgba(9,12,17,.98) 58%,rgba(20,14,29,.96));
  box-shadow:0 12px 34px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.025);backdrop-filter:blur(18px);
}
.lq-analysis-identity {display:flex;min-width:0;align-items:center;gap:10px}.lq-analysis-mark {display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border:1px solid rgba(64,216,192,.2);border-radius:10px;background:radial-gradient(circle at 32% 20%,rgba(64,216,192,.2),rgba(123,96,220,.1) 62%,transparent);color:#75ead8;font-size:20px;box-shadow:inset 0 0 20px rgba(64,216,192,.04)}
.lq-analysis-identity>div {min-width:0}.lq-analysis-command .lq-analysis-identity h2 {margin:0;color:#f1f4f5;font-size:15px;line-height:1.15;letter-spacing:-.015em}.lq-analysis-command .lq-analysis-identity p {max-width:190px;margin:4px 0 0;overflow:hidden;color:#788590;font-size:8px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
body.product-quant.workspace-tester-mode .lq-analysis-command .lq-analysis-preview-tabs {align-self:center;justify-self:center;width:max-content;height:40px;align-items:center;gap:3px;padding:3px;border:1px solid rgba(255,255,255,.075);border-radius:12px;background:rgba(5,8,12,.56);box-shadow:inset 0 1px rgba(255,255,255,.018)}
body.product-quant.workspace-tester-mode .lq-analysis-command .lq-analysis-preview-tabs button {height:32px;padding:0 13px;border:1px solid transparent;border-radius:9px;color:#727d88;font-size:8.5px;font-weight:650;transition:color .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}
body.product-quant.workspace-tester-mode .lq-analysis-command .lq-analysis-preview-tabs button:hover {color:#c3ccd1;background:rgba(255,255,255,.035)}
body.product-quant.workspace-tester-mode .lq-analysis-command .lq-analysis-preview-tabs button.active {border-color:rgba(103,226,213,.27);background:linear-gradient(125deg,rgba(64,216,192,.13),rgba(123,96,220,.16));color:#f3f7f7;box-shadow:0 0 22px rgba(64,216,192,.08),inset 0 1px rgba(255,255,255,.05);transform:translateY(-1px)}
body.product-quant.workspace-tester-mode .lq-analysis-command .lq-analysis-preview-tabs button.active::after {display:none}
.lq-analysis-command .lq-analysis-actions {justify-content:flex-end;gap:5px}.lq-analysis-command .lq-analysis-actions>span {display:flex;min-height:30px;align-items:center;gap:6px;padding:0 9px;border-color:rgba(64,216,192,.14);border-radius:9px;background:rgba(64,216,192,.035);color:#93aaa6;font-size:7.5px;white-space:nowrap}.lq-analysis-command .lq-analysis-actions>span::before {content:"";width:5px;height:5px;border-radius:50%;background:#55dbc6;box-shadow:0 0 10px rgba(85,219,198,.72)}
.lq-analysis-command .lq-analysis-actions button {display:inline-flex;width:auto;min-width:0;height:32px;align-items:center;justify-content:center;gap:5px;margin:0;padding:0 10px;border:1px solid rgba(255,255,255,.085);border-radius:9px;background:rgba(255,255,255,.025);color:#aeb8bf;font-size:8px;white-space:nowrap;transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}.lq-analysis-command .lq-analysis-actions button:hover {border-color:rgba(103,226,213,.22);background:rgba(64,216,192,.055);color:#e3eeec;box-shadow:0 0 20px rgba(64,216,192,.06)}
.lq-analysis-command #lq-analysis-preview-workspace {border-color:rgba(103,226,213,.2);background:linear-gradient(125deg,rgba(64,216,192,.11),rgba(123,96,220,.09));color:#cff8f1}.lq-analysis-command #lq-analysis-preview-workspace:hover {border-color:rgba(103,226,213,.42);box-shadow:0 0 24px rgba(64,216,192,.09)}
@media(max-width:1180px){body.product-quant.workspace-tester-mode .lq-analysis-command {grid-template-columns:1fr auto}.lq-analysis-command .lq-analysis-preview-tabs {grid-row:2;grid-column:1/-1;justify-self:stretch!important;width:auto!important}.lq-analysis-command .lq-analysis-preview-tabs button {flex:1}}
@media(max-width:720px){body.product-quant.workspace-tester-mode .lq-analysis-command {position:static;grid-template-columns:1fr;padding:10px}.lq-analysis-command .lq-analysis-actions {justify-content:flex-start;flex-wrap:wrap}.lq-analysis-command .lq-analysis-preview-tabs {grid-row:auto;overflow:auto}.lq-analysis-command .lq-analysis-preview-tabs button {flex:0 0 auto}}
.lq-candidates-empty article[data-evidence="strong"] {border-color:#237f73;background:linear-gradient(135deg,rgba(22,211,183,.08),#090e13 58%)}
.lq-candidates-empty article[data-evidence="validated"] {border-color:#365f70}
.lq-candidates-empty article[data-evidence="fragile"],.lq-candidates-empty article[data-evidence="failed_oos"] {border-color:#74434b}
.lq-candidates-empty article[data-evidence="validation_only"],.lq-candidates-empty article[data-evidence="insufficient"] {border-color:#514664}
.lq-candidates-empty.has-results article small {overflow-wrap:anywhere}

/* Analysis 2.0 — decision-first reports. The classic surface remains available
   with ?analysisSurface=classic while this presentation is refined. */
body.product-quant.workspace-tester-mode #results-panel.lq-analysis-previewing {background:#101113}
body.product-quant.workspace-tester-mode #lq-analysis-preview.lq-analysis-modern:not([hidden]) {display:block;min-height:100%;padding:10px;background:#101113;color:#d8dcdf}
.lq-analysis-modern .lq-analysis-command {position:sticky;top:0;z-index:8}
.lq-analysis-modern .lq-analysis-preview-pane {padding:16px 4px 26px}
.lq-analysis-question {display:grid;grid-template-columns:4px minmax(0,1fr) auto;column-gap:14px;align-items:center;margin:2px 4px 14px;padding:0 4px}
.lq-analysis-question:before {content:"";grid-row:1/4;width:4px;height:36px;border-radius:4px;background:#43ddc5;box-shadow:0 0 18px rgba(67,221,197,.25)}
.lq-analysis-question>span {grid-column:2;color:#43ddc5;font-size:7px;font-weight:850;letter-spacing:.16em}
.lq-analysis-question h3 {grid-column:2;margin:2px 0 0;color:#f1f3f4;font-size:19px;line-height:1.12;letter-spacing:-.025em}
.lq-analysis-question p {grid-column:3;grid-row:1/3;max-width:380px;margin:0;color:#707981;font-size:8px;line-height:1.45;text-align:right}
.lq-analysis-modern .lq-analysis-card {border:1px solid #292d31;border-radius:10px;background:#16181b;box-shadow:none;overflow:hidden}
.lq-analysis-modern .lq-analysis-card>header {min-height:48px;padding:0 14px;border-bottom:1px solid #2a2e32;background:#181a1d}
.lq-analysis-modern .lq-analysis-card>header small {color:#69737b;font-size:7px;letter-spacing:.13em}
.lq-analysis-modern .lq-analysis-card>header h3 {margin-top:4px;color:#eef0f1;font-size:11px}
.lq-analysis-modern .lq-analysis-card>header>span {color:#68727a;font-size:7.5px}
.lq-overview-scoreband {display:grid;grid-template-columns:230px minmax(0,1fr);margin-bottom:9px;border:1px solid #2b2f34;border-radius:10px;background:#16181b;overflow:hidden}
.lq-strategy-grade {display:grid;align-content:center;gap:7px;padding:14px 18px;border-right:1px solid #30343a;background:linear-gradient(125deg,rgba(123,96,220,.09),rgba(64,216,192,.025))}
.lq-strategy-grade>small {color:#9c7ce9;font-size:7px;font-weight:850;letter-spacing:.15em}
.lq-strategy-grade>div {display:flex;align-items:baseline;gap:5px}.lq-strategy-grade strong {color:#a981ff;font-size:30px;line-height:1;font-variant-numeric:tabular-nums}.lq-strategy-grade span {color:#747d85;font-size:14px}.lq-strategy-grade em {margin-left:auto;padding:5px 8px;border:1px solid #3b4546;border-radius:999px;color:#9ba4aa;font-size:7.5px;font-style:normal}
.lq-strategy-grade em.positive {border-color:rgba(69,226,164,.34);background:rgba(69,226,164,.08);color:#79e8bd}.lq-strategy-grade em.caution {border-color:rgba(232,187,101,.32);background:rgba(232,187,101,.07);color:#dab975}
.lq-analysis-modern .lq-analysis-metrics {display:grid;margin:0;gap:0}.lq-overview-scoreband .lq-analysis-metrics {grid-template-columns:repeat(5,minmax(0,1fr))}
.lq-analysis-modern .lq-analysis-metrics article {min-height:72px;padding:13px 14px;border:0;border-right:1px solid #2d3135;border-radius:0;background:transparent}.lq-analysis-modern .lq-analysis-metrics article:last-child {border-right:0}
.lq-analysis-modern .lq-analysis-metrics small {color:#899199;font-size:8px}.lq-analysis-modern .lq-analysis-metrics strong {margin-top:7px;color:#edf0f1;font-size:17px;font-variant-numeric:tabular-nums}.lq-analysis-modern .lq-analysis-metrics strong.positive {color:#45e2a4}.lq-analysis-modern .lq-analysis-metrics strong.negative {color:#ff697c}.lq-analysis-modern .lq-analysis-metrics span {color:#5f6870;font-size:7px}
.lq-analysis-modern .lq-six-metrics {grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:9px;border:1px solid #2b2f34;border-radius:10px;background:#16181b;overflow:hidden}.lq-analysis-modern .lq-five-metrics {grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:9px;border:1px solid #2b2f34;border-radius:10px;background:#16181b;overflow:hidden}
.lq-analysis-modern .lq-analysis-primary-grid {grid-template-columns:minmax(0,1.7fr) minmax(255px,.55fr);gap:9px}.lq-overview-primary>.lq-analysis-card {min-height:326px}
.lq-analysis-modern .lq-intelligence-chart {height:274px;padding:13px 15px;background:radial-gradient(ellipse at 72% 18%,rgba(13,183,159,.055),transparent 40%),radial-gradient(ellipse at 32% 82%,rgba(240,68,94,.045),transparent 42%)}
.lq-analysis-modern .lq-analysis-expanded-chart {height:315px;padding:12px 14px;background:radial-gradient(ellipse at 72% 18%,rgba(13,183,159,.055),transparent 40%),radial-gradient(ellipse at 32% 82%,rgba(240,68,94,.045),transparent 42%)}.lq-analysis-modern .lq-analysis-expanded-chart svg,.lq-analysis-modern .lq-intelligence-chart svg {overflow:visible}
.lq-evidence-card dl,.lq-return-quality dl,.lq-trade-behavior dl {display:grid;margin:0;padding:7px 14px}.lq-evidence-card dl>div,.lq-return-quality dl>div,.lq-trade-behavior dl>div {display:flex;min-height:43px;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #2a2e32}.lq-evidence-card dt,.lq-return-quality dt,.lq-trade-behavior dt {color:#a4abb0;font-size:8.5px}.lq-evidence-card dd,.lq-return-quality dd,.lq-trade-behavior dd {margin:0;color:#879199;font-size:8px;font-weight:750;text-align:right}.lq-evidence-card dd.positive,.lq-return-quality dd.positive,.lq-trade-behavior dd.positive {color:#45e2a4}.lq-evidence-card dd.negative,.lq-return-quality dd.negative,.lq-trade-behavior dd.negative {color:#ff697c}
.lq-evidence-verdict {margin:8px 13px 13px;padding:10px 11px;border:1px solid #353a3f;border-radius:7px;background:#101215;color:#89939a;font-size:8px;line-height:1.45}.lq-evidence-verdict.positive {border-color:rgba(69,226,164,.34);background:rgba(69,226,164,.045);color:#bcebd6}.lq-evidence-verdict.caution {border-color:rgba(255,190,85,.28);background:rgba(255,190,85,.035);color:#d9bd89}
.lq-overview-lower {display:grid;grid-template-columns:1fr 1fr minmax(260px,.78fr);gap:9px;margin-top:9px}.lq-overview-lower>.lq-analysis-card {min-height:185px}.lq-analysis-modern .lq-risk-map {height:136px;padding:10px 13px}.lq-period-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;align-content:center;min-height:125px;padding:12px}.lq-period-grid>span {grid-column:1/-1;color:#68727a;font-size:8px;text-align:center}.lq-period-cell {display:grid;min-height:48px;place-content:center;gap:4px;border:1px solid #2e3438;border-radius:6px;background:rgba(255,255,255,.018);text-align:center}.lq-period-cell small {color:#737d84;font-size:6.5px}.lq-period-cell strong {font-size:9px;font-variant-numeric:tabular-nums}.lq-period-cell.positive {border-color:rgba(69,226,164,.2);background:rgba(69,226,164,var(--heat,.05));color:#7aebbd}.lq-period-cell.negative {border-color:rgba(255,105,124,.18);background:rgba(255,105,124,var(--heat,.05));color:#ff8b9a}
.lq-grade-breakdown {display:grid;gap:7px;align-content:center;min-height:136px;padding:11px 13px}.lq-grade-breakdown>span {color:#68727a;font-size:8px;text-align:center}.lq-grade-breakdown>div {display:grid;grid-template-columns:94px minmax(0,1fr) 34px;align-items:center;gap:7px}.lq-grade-breakdown div>span {color:#8d989f;font-size:7px}.lq-grade-breakdown div>div {height:6px;overflow:hidden;border-radius:999px;background:#282f34}.lq-grade-breakdown i {display:block;height:100%;border-radius:inherit;background:#d4a94f}.lq-grade-breakdown i.positive {background:#0db79f}.lq-grade-breakdown i.negative {background:#f0445e}.lq-grade-breakdown strong {color:#b6c0c5;font-size:7px;text-align:right;font-variant-numeric:tabular-nums}
.lq-analysis-modern .lq-next-action {grid-template-columns:auto 1fr;align-content:center;margin:0;padding:14px;border-color:#2b2f34;background:#16181b}.lq-analysis-modern .lq-next-action>span {align-self:start}.lq-analysis-modern .lq-next-action button {grid-column:1/-1;width:100%;margin-top:9px;border-color:#326e65;background:#153e38;color:#baf4e9}.lq-analysis-modern .lq-next-action p {min-height:28px}
.lq-performance-grid {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(245px,.55fr);gap:9px}.lq-performance-equity {min-height:418px}.lq-performance-drawdown {height:74px;margin:0 14px 12px;border-top:1px solid #2d3236}.lq-performance-drawdown svg {width:100%;height:100%}.lq-return-quality {min-height:418px}.lq-return-quality dl>div {min-height:57px}
.lq-analysis-triptych {display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;margin-top:9px}.lq-analysis-triptych>.lq-analysis-card {min-height:220px}.lq-analysis-triptych>.lq-analysis-card>header>span {max-width:150px;color:#68737b;font-size:6.5px;text-align:right}.lq-analysis-triptych .lq-period-grid {grid-template-columns:repeat(3,1fr);min-height:154px}.lq-mini-analysis-chart {display:grid;height:154px;padding:12px;place-items:center;color:#68727a;font-size:8px}.lq-mini-analysis-chart svg {width:100%;height:100%;overflow:visible}.lq-month-comparison {display:grid;min-height:154px;padding:12px;align-content:center;gap:10px}.lq-month-comparison-empty {color:#68727a;font-size:8px;text-align:center}.lq-month-comparison-values {display:grid;grid-template-columns:1fr 1fr;gap:7px}.lq-month-comparison-values article {display:grid;gap:4px;padding:10px;border:1px solid #2d353a;border-radius:7px;background:rgba(255,255,255,.018)}.lq-month-comparison-values article small {color:#68737b;font-size:6px;letter-spacing:.08em;text-transform:uppercase}.lq-month-comparison-values article span {color:#98a2a8;font-size:7px}.lq-month-comparison-values article strong {font-size:15px;font-variant-numeric:tabular-nums}.lq-month-comparison-values article strong.positive {color:#45e2a4}.lq-month-comparison-values article strong.negative {color:#ff697c}.lq-month-comparison-verdict {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid #364047;border-radius:7px;background:#0f1417}.lq-month-comparison-verdict strong {font-size:9px}.lq-month-comparison-verdict span {color:#8c979d;font-size:7px}.lq-month-comparison-verdict.positive {border-color:rgba(69,226,164,.28)}.lq-month-comparison-verdict.positive strong {color:#45e2a4}.lq-month-comparison-verdict.negative {border-color:rgba(255,105,124,.25)}.lq-month-comparison-verdict.negative strong {color:#ff697c}
.lq-contribution-bars {display:grid;height:154px;grid-template-columns:repeat(8,minmax(30px,1fr));align-items:stretch;gap:4px;padding:10px 12px 8px}.lq-contribution-item {display:grid;min-width:0;grid-template-rows:18px 102px 13px;text-align:center}.lq-contribution-item>strong {overflow:hidden;color:#61e5b6;font-size:6.5px;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}.lq-contribution-item.loss>strong {color:#ff7b8c}.lq-contribution-item>div {position:relative}.lq-contribution-item>div:after {content:"";position:absolute;right:0;top:50%;left:0;border-top:1px dashed #384148}.lq-contribution-item i {position:absolute;right:23%;bottom:50%;left:23%;height:var(--bar);border-radius:3px 3px 0 0;background:linear-gradient(180deg,#5aefb8,#259b75)}.lq-contribution-item.loss i {top:50%;bottom:auto;border-radius:0 0 3px 3px;background:linear-gradient(180deg,#ff7d8e,#b74052)}.lq-contribution-item>small {overflow:hidden;color:#69747b;font-size:6px;text-overflow:ellipsis;white-space:nowrap}.lq-contribution-item:last-child>small {color:#c5cdd1;font-weight:800}
.lq-trades-summary-grid {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(245px,.55fr);gap:9px;margin-bottom:9px}.lq-trades-summary-grid>.lq-analysis-card {min-height:240px}.lq-trade-histogram {display:grid;height:190px;grid-template-columns:repeat(5,minmax(54px,1fr));align-items:stretch;gap:9px;padding:15px 22px 12px}.lq-trade-histogram>span {grid-column:1/-1;align-self:center;color:#68727a;font-size:8px;text-align:center}.lq-outcome-bin {display:grid;min-width:0;grid-template-rows:18px 128px 18px;text-align:center}.lq-outcome-bin>strong {color:#c4cdd1;font-size:7.5px;font-variant-numeric:tabular-nums}.lq-outcome-bin>div {position:relative;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #3a444b}.lq-outcome-bin i {display:block;width:58%;min-height:2px;border-radius:4px 4px 0 0;background:linear-gradient(180deg,#35dbc1,#087c6c);box-shadow:0 0 10px rgba(13,183,159,.12)}.lq-outcome-bin.loss i {background:linear-gradient(180deg,#ff6c82,#a52f43);box-shadow:0 0 10px rgba(240,68,94,.12)}.lq-outcome-bin.mixed i {background:linear-gradient(180deg,#a98bce,#66567d)}.lq-outcome-bin>small {overflow:hidden;padding-top:5px;color:#78858d;font-size:6.5px;text-overflow:ellipsis;white-space:nowrap}.lq-trade-behavior dl>div {min-height:32px}.lq-analysis-modern .lq-analysis-table-card {min-height:320px}.lq-analysis-modern .lq-analysis-table-head,.lq-analysis-modern .lq-analysis-table-row {grid-template-columns:1.15fr .6fr 1fr 1fr .8fr}.lq-analysis-modern .lq-analysis-table-head {background:#111316}.lq-analysis-modern .lq-analysis-table-row {min-height:39px;align-items:center;font-size:8px}.lq-analysis-modern .lq-analysis-table-empty {height:240px}
.lq-robustness-top {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:9px}.lq-robustness-top>.lq-analysis-card {min-height:300px}.lq-validation-windows {display:grid;gap:8px;padding:16px}.lq-validation-window {display:grid;grid-template-columns:54px minmax(0,1fr) 58px;align-items:center;gap:9px}.lq-validation-window>span {color:#7e8990;font-size:7.5px}.lq-validation-window>div {display:flex;height:25px;overflow:hidden;border:1px solid #30363a;border-radius:5px;background:#20252a}.lq-validation-window i {display:grid;place-content:center;background:#454d55;color:#c3c9cd;font-size:6.5px;font-style:normal}.lq-validation-window i:last-child {background:#23684f;color:#8aebbd}.lq-validation-window.negative i:last-child {background:#70323b;color:#ffabb5}.lq-validation-window strong {font-size:9px;text-align:right}.lq-validation-window strong.positive {color:#45e2a4}.lq-validation-window strong.negative {color:#ff697c}.lq-holdout-chart {display:grid;height:247px;padding:13px;place-items:center;color:#69747b;font-size:8px}.lq-holdout-chart svg {width:100%;height:100%}.lq-robustness-bottom {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:9px;margin-top:9px}.lq-robustness-bottom>.lq-analysis-card {min-height:245px}.lq-analysis-modern .lq-robustness-map {height:194px;padding:12px}.lq-analysis-modern .lq-robustness-map svg {width:100%;height:100%}.lq-evidence-checklist {display:grid;gap:0;margin:0;padding:9px 14px;list-style:none}.lq-evidence-checklist li {position:relative;min-height:38px;padding:11px 4px 10px 26px;border-bottom:1px solid #2b2f33;color:#9ea6ab;font-size:8px;line-height:1.35}.lq-evidence-checklist li:before {content:"—";position:absolute;left:3px;color:#6c767d}.lq-evidence-checklist li.pass:before {content:"✓";color:#45e2a4}.lq-evidence-checklist li.caution:before {content:"!";color:#ffbe55}.lq-evidence-checklist li.fail:before {content:"×";color:#ff697c}
.lq-risk-top {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(255px,.55fr);gap:9px}.lq-risk-top>.lq-analysis-card {min-height:365px}.lq-risk-bars {display:grid;gap:13px;padding:18px 14px}.lq-risk-bar {display:grid;grid-template-columns:125px minmax(0,1fr) 36px;align-items:center;gap:8px}.lq-risk-bar>span {color:#929ba1;font-size:7.5px}.lq-risk-bar>div {height:8px;border-radius:999px;background:#292f34;overflow:hidden}.lq-risk-bar i {display:block;height:100%;border-radius:inherit;background:#ff697c}.lq-risk-bar strong {color:#d6dade;font-size:8px;text-align:right}.lq-stress-list {display:grid;padding:10px 14px}.lq-stress-item {display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;min-height:34px;border-bottom:1px solid #292e32}.lq-stress-item span {color:#959da3;font-size:8px}.lq-stress-item strong {padding:4px 6px;border:1px solid #3c4247;border-radius:999px;color:#828c93;font-size:6.5px}.lq-stress-item strong.caution {border-color:#6d5732;color:#e4bd73}.lq-risk-bottom .lq-evidence-checklist {padding-top:7px}.lq-risk-bottom .lq-evidence-checklist li {min-height:31px;padding-top:8px;padding-bottom:7px}
.lq-chart-axis-label {fill:#69747d;font-size:7px;font-variant-numeric:tabular-nums}.lq-chart-guide {stroke:rgba(154,169,179,.11);stroke-width:1;stroke-dasharray:3 4;vector-effect:non-scaling-stroke}.lq-chart-guide-vertical {stroke:rgba(154,169,179,.065)}
.lq-analysis-modern .lq-chart-zero {stroke:rgba(185,199,207,.34);stroke-width:1;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}.lq-chart-baseline-label {fill:#8e9aa2;font-size:6.5px;font-weight:800;letter-spacing:.08em}
.lq-analysis-modern .lq-chart-area {opacity:1;stroke:none}.lq-analysis-modern .lq-chart-line {fill:none;stroke-width:1.75;stroke-dasharray:none;stroke-dashoffset:0;filter:drop-shadow(0 0 3px rgba(69,226,164,.2));animation:lq-analysis-line-in .35s ease-out both;vector-effect:non-scaling-stroke}.lq-analysis-modern .lq-drawdown-area {stroke:none;opacity:1}.lq-drawdown-line {fill:none;stroke:#ff697c;stroke-width:1.55;filter:drop-shadow(0 0 2px rgba(255,105,124,.18));animation:lq-analysis-line-in .35s ease-out both;vector-effect:non-scaling-stroke}@keyframes lq-analysis-line-in {from{opacity:0}to{opacity:1}}
.lq-analysis-modern .lq-chart-endpoint circle:first-child {fill:#0d1416;stroke:#45e2a4;stroke-width:1.3;animation:none;vector-effect:non-scaling-stroke}.lq-analysis-modern .lq-chart-endpoint circle:last-child {fill:#baffef}.lq-analysis-modern .lq-chart-endpoint.negative circle:first-child {stroke:#ff697c}.lq-analysis-modern .lq-chart-endpoint.negative circle:last-child {fill:#ffd0d6}
.lq-chart-last-label rect {fill:#11171a;stroke:#3f6d64;stroke-width:1;vector-effect:non-scaling-stroke}.lq-chart-last-label text {fill:#7cedc5;font-size:8px;font-weight:800;font-variant-numeric:tabular-nums}.lq-chart-last-label.negative rect {stroke:#71414a}.lq-chart-last-label.negative text {fill:#ff8292}
.lq-chart-hit {fill:transparent;pointer-events:all;cursor:crosshair}.lq-chart-cursor {opacity:0;pointer-events:none;transition:opacity .12s ease}.lq-chart-cursor.visible {opacity:1}.lq-chart-cursor>line {stroke:rgba(205,219,225,.42);stroke-width:1;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}.lq-chart-cursor>circle {fill:#eefdfa;stroke:#268f79;stroke-width:2;vector-effect:non-scaling-stroke}.lq-chart-cursor-label rect {fill:rgba(16,21,25,.96);stroke:#46545d;stroke-width:1;vector-effect:non-scaling-stroke}.lq-chart-cursor-label text {fill:#85919a;font-size:7px}.lq-chart-cursor-label text.value {fill:#e6eeee;font-size:9px;font-weight:800;font-variant-numeric:tabular-nums}.lq-analysis-modern svg[tabindex="0"]:focus {outline:none}.lq-analysis-modern svg[tabindex="0"]:focus .lq-chart-hit {stroke:rgba(69,226,164,.24);stroke-width:1;vector-effect:non-scaling-stroke}
.lq-holdout-chart {background:linear-gradient(180deg,#0e1216,#0b0f13)}
.lq-chart-positive {fill:rgba(69,226,164,.18);stroke:#45e2a4;stroke-width:1.6}.lq-chart-negative {fill:rgba(255,105,124,.18);stroke:#ff697c;stroke-width:1.5}.lq-chart-benchmark {fill:none;stroke:#747e87;stroke-width:1;stroke-dasharray:4 3}.lq-chart-label-bg {fill:#171a1d;stroke:#3c4449;stroke-width:1}
@media(max-width:1180px){.lq-analysis-question {grid-template-columns:4px 1fr}.lq-analysis-question p {display:none}.lq-overview-scoreband {grid-template-columns:190px minmax(0,1fr)}.lq-overview-scoreband .lq-analysis-metrics,.lq-analysis-modern .lq-six-metrics {grid-template-columns:repeat(3,1fr)}.lq-analysis-modern .lq-five-metrics {grid-template-columns:repeat(3,1fr)}.lq-analysis-modern .lq-analysis-metrics article:nth-child(3) {border-right:0}.lq-overview-lower,.lq-analysis-triptych {grid-template-columns:1fr 1fr}.lq-overview-lower>.lq-next-action,.lq-analysis-triptych>:last-child {grid-column:1/-1}}
@media(max-width:820px){body.product-quant.workspace-tester-mode #lq-analysis-preview.lq-analysis-modern:not([hidden]) {padding:6px}.lq-analysis-modern .lq-analysis-preview-pane {padding:12px 0 20px}.lq-overview-scoreband,.lq-analysis-modern .lq-analysis-primary-grid,.lq-performance-grid,.lq-trades-summary-grid,.lq-robustness-top,.lq-robustness-bottom,.lq-risk-top {grid-template-columns:1fr}.lq-strategy-grade {border-right:0;border-bottom:1px solid #30343a}.lq-overview-lower,.lq-analysis-triptych {grid-template-columns:1fr}.lq-overview-lower>.lq-next-action,.lq-analysis-triptych>:last-child {grid-column:auto}.lq-analysis-modern .lq-six-metrics,.lq-analysis-modern .lq-five-metrics,.lq-overview-scoreband .lq-analysis-metrics {grid-template-columns:repeat(2,1fr)}.lq-analysis-modern .lq-analysis-metrics article {border-bottom:1px solid #2d3135}.lq-analysis-modern .lq-analysis-metrics article:nth-child(odd) {border-right:1px solid #2d3135}.lq-analysis-modern .lq-analysis-metrics article:nth-child(even) {border-right:0}.lq-analysis-question h3 {font-size:16px}}
