/* Isolated product workspace. No shared TR7 stylesheet is changed or loaded. */
.cx-app { --cx-bg:#050706; --cx-surface:#080d0b; --cx-border:#293b32; --cx-text:#f1f3f2; --cx-muted:#a7b7ae; --cx-mint:#62dfbd; --cx-coral:#e57979; --cx-blue:#94afc2; --cx-amber:#d8bd82; color-scheme:dark; margin:0; color:var(--cx-text); background:var(--cx-bg); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:13px; line-height:1.45; -webkit-font-smoothing:antialiased; }
.cx-app *, .cx-app *::before, .cx-app *::after { box-sizing:border-box; }
.cx-app h1,.cx-app h2,.cx-app h3,.cx-app h4,.cx-app p,.cx-app dl,.cx-app dd,.cx-app figure { margin:0; }
.cx-app button,.cx-app input,.cx-app select { font:inherit; color:inherit; }
.cx-app button { cursor:pointer; }
.cx-app button:disabled { opacity:.45; cursor:not-allowed; }
.cx-app [hidden] { display:none!important; }
.cx-app :focus-visible { outline:2px solid var(--cx-mint); outline-offset:3px; }
.cx-app input,.cx-app select { min-width:0; max-width:100%; border:1px solid var(--cx-border); border-radius:3px; background:#050907; padding:5px 7px; height:31px; font-variant-numeric:tabular-nums; }
.cx-app input:focus,.cx-app select:focus { border-color:var(--cx-mint); }
.cx-app input[aria-invalid="true"] { border-color:var(--cx-coral); }
.cx-app input[type="checkbox"] { accent-color:var(--cx-mint); height:15px; width:15px; }
.cx-app input[type="range"] { accent-color:var(--cx-mint); }
.cx-app a { color:inherit; text-decoration:none; }
.cx-header { height:49px; padding:0 16px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--cx-border); gap:20px; }
.cx-brand { display:flex; align-items:center; gap:8px; padding:0; background:none; border:0; font-size:14px; font-weight:600; letter-spacing:.1px; }
.cx-brand img { display:block; flex-shrink:0; }
.cx-brand small { color:var(--cx-muted); font-size:10px; font-weight:500; letter-spacing:1px; }
.cx-header nav { display:flex; align-items:stretch; height:100%; gap:24px; }
.cx-header nav button { border:0; border-bottom:2px solid transparent; padding:0 3px; background:none; color:var(--cx-muted); font-size:12px; }
.cx-header nav button:hover { color:var(--cx-text); }
.cx-header nav button[aria-current="page"] { color:var(--cx-mint); border-bottom-color:var(--cx-mint); }
.cx-environment { color:var(--cx-mint); font-size:10px; letter-spacing:.9px; white-space:nowrap; }
.cx-environment small { margin-left:7px; color:var(--cx-muted); letter-spacing:0; }
.cx-main { max-width:2000px; margin:0 auto; padding:12px 14px 14px; height:calc(100dvh - 49px); min-height:0; display:flex; flex-direction:column; }
.cx-product-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:0 2px 11px; }
.cx-kicker { color:var(--cx-muted); font-size:9px; letter-spacing:1.3px; margin-bottom:3px!important; }
.cx-product-heading h1 { font-size:23px; line-height:1.2; font-weight:500; letter-spacing:-.6px; }
.cx-product-heading h1 span { color:var(--cx-muted); }
.cx-product-heading p:last-child { color:var(--cx-muted); font-size:12px; margin-top:5px; }
.cx-product-id { display:flex; gap:0; font-variant-numeric:tabular-nums; border:1px solid var(--cx-border); border-radius:3px; flex-shrink:0; }
.cx-product-id span { padding:7px 10px; font-size:11px; }
.cx-product-id span+span { border-left:1px solid var(--cx-border); color:var(--cx-muted); }
.cx-toolbar { display:flex; gap:12px; align-items:flex-end; border-top:1px solid var(--cx-border); padding:10px 2px 7px; flex-wrap:wrap; }
.cx-toolbar label { display:flex; flex-direction:column; color:var(--cx-muted); font-size:10.5px; gap:3px; }
.cx-preset-control { width:160px; }
.cx-preset-control select { width:100%; font-size:12px; color:var(--cx-text); }
.cx-date-controls { display:flex; gap:7px; align-items:flex-end; }
.cx-date-controls input { width:143px; color:var(--cx-text); font-size:12px; }
.cx-date-controls>span { line-height:31px; color:var(--cx-muted); }
.cx-capital-control { width:142px; }
.cx-capital-control input { color:var(--cx-text); font-size:12px; }
.cx-toolbar-actions { margin-left:auto; display:flex; gap:7px; flex-wrap:wrap; }
.cx-button { border:1px solid var(--cx-border); background:transparent; border-radius:3px; padding:6px 10px; min-height:31px; font-size:12px; font-weight:500; white-space:nowrap; }
.cx-button:hover { border-color:#587866; background:#0c1611; }
.cx-button.cx-primary { background:var(--cx-mint); border-color:var(--cx-mint); color:#062015; font-weight:600; }
.cx-button.cx-primary:hover { background:#81e8cb; }
.cx-text-button { background:none; border:0; color:var(--cx-muted)!important; padding:4px 2px; font-size:11px!important; white-space:nowrap; }
.cx-text-button:hover { color:var(--cx-mint)!important; }
.cx-context-line { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--cx-muted); font-size:10.5px; padding:3px 2px 9px; }
#configuration-status { color:var(--cx-text); }
#configuration-status[data-modified="true"] { color:var(--cx-amber); }
.cx-workspace { display:grid; grid-template-columns:minmax(252px,22fr) minmax(0,52fr) minmax(306px,26fr); gap:10px; min-height:0; flex:1; }
.cx-panel { min-width:0; min-height:0; background:var(--cx-surface); border:1px solid var(--cx-border); border-radius:4px; }
.cx-panel-heading { display:flex; align-items:center; justify-content:space-between; padding:9px 10px; border-bottom:1px solid var(--cx-border); flex-shrink:0; }
.cx-panel h2 { font-size:13px; font-weight:600; }
.cx-parameters { display:flex; flex-direction:column; }
.cx-panel-scroll { flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; }
.cx-parameter-group { border-bottom:1px solid var(--cx-border); }
.cx-parameter-group summary { list-style:none; padding:8px 10px; font-size:12px; font-weight:500; cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
.cx-parameter-group summary::-webkit-details-marker { display:none; }
.cx-parameter-group summary::after { content:"⌄"; color:var(--cx-muted); font-size:13px; }
.cx-parameter-group:not([open]) summary::after { content:"›"; }
.cx-parameter-fields { padding:0 9px 8px; display:grid; gap:4px; }
.cx-parameter-row { display:grid; grid-template-columns:minmax(0,1fr) 86px; align-items:center; gap:6px; }
.cx-param-label { font-size:12px; color:var(--cx-muted); line-height:1.4; display:flex; align-items:center; gap:4px; min-width:0; }
.cx-parameter-row input,.cx-parameter-row select { width:100%; height:29px; font-size:12px; padding:4px 6px; }
.cx-param-help { display:inline-grid; place-items:center; border:0; width:24px; height:24px; padding:0; background:none; color:var(--cx-muted); font-size:10px!important; font-weight:600; flex-shrink:0; }
.cx-param-help:hover { color:var(--cx-mint); border-color:var(--cx-mint); }
.cx-param-description,.cx-param-error { grid-column:1/-1; font-size:10.5px; color:var(--cx-muted); padding:3px 0 5px; }
.cx-param-error { color:var(--cx-coral); }
.cx-parameter-row[data-disabled="true"] label { color:#7f9085; }
.cx-switch { width:100%; height:29px; display:flex; align-items:center; justify-content:space-between; border:1px solid var(--cx-border); border-radius:3px; background:#050907; font-size:11px; padding:0 7px; }
.cx-switch::after { content:""; height:12px; width:21px; background:#33433a; border-radius:8px; box-shadow:inset -9px 0 #889a8e; }
.cx-switch[aria-checked="true"]::after { background:#184d3c; box-shadow:inset 9px 0 var(--cx-mint); }
.cx-panel-foot { flex-shrink:0; padding:7px 9px; display:flex; justify-content:space-between; align-items:center; gap:6px; font-size:9.5px; color:var(--cx-muted); }
.cx-results { display:flex; flex-direction:column; }
.cx-result-heading { display:flex; justify-content:space-between; align-items:center; padding:8px 10px; gap:10px; font-variant-numeric:tabular-nums; }
.cx-result-heading span { font-size:9px; color:var(--cx-muted); white-space:nowrap; }
#run-identity { white-space:normal; min-width:0; max-width:100%; overflow-wrap:anywhere; text-align:right; }
#configuration-status { min-width:0; overflow-wrap:anywhere; }
#parameter-version { min-width:0; overflow-wrap:anywhere; }
.cx-tabs { display:flex; flex-shrink:0; gap:0; border-top:1px solid var(--cx-border); border-bottom:1px solid var(--cx-border); overflow-x:auto; scrollbar-width:thin; }
.cx-tabs button { padding:10px 12px 8px; font-size:12px; border:0; border-bottom:2px solid transparent; color:var(--cx-muted); background:transparent; white-space:nowrap; }
.cx-tabs button:hover { color:var(--cx-text); }
.cx-tabs button[aria-selected="true"] { color:var(--cx-mint); border-bottom-color:var(--cx-mint); background:#0a1711; }
.cx-playback-bar { padding:7px 10px; display:flex; gap:8px; justify-content:space-between; align-items:center; border-bottom:1px solid var(--cx-border); }
.cx-playback-bar>div:first-child { flex:1; min-width:70px; }
.cx-playback-bar #playback-status { color:var(--cx-muted); font-size:10.5px; }
.cx-playback-bar progress { display:block; appearance:none; width:100%; height:2px; background:#21362a; border:0; margin-top:5px; border-radius:0; accent-color:var(--cx-mint); }
.cx-playback-bar progress::-webkit-progress-bar { background:#21362a; }
.cx-playback-bar progress::-webkit-progress-value { background:var(--cx-mint); }
.cx-playback-bar progress::-moz-progress-bar { background:var(--cx-mint); }
.cx-playback-actions { display:flex; align-items:center; gap:9px; }
.cx-playback-actions label { display:flex; gap:4px; align-items:center; color:var(--cx-muted); font-size:10px; }
.cx-playback-actions select { height:25px; padding:2px 3px; width:45px; font-size:11px; }
.cx-results-scroll { min-height:0; flex:1; overflow:auto; }
.cx-tab-panel { padding:10px; }
.cx-stale { padding:7px 10px; background:#16150d; border-bottom:1px solid #49442c; color:var(--cx-amber); font-size:10.5px; }
.cx-capital-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; margin-top:10px; }
.cx-capital-metrics article { border:1px solid var(--cx-border); border-radius:3px; padding:8px 7px; min-width:0; }
.cx-capital-metrics span { color:var(--cx-muted); display:block; font-size:10px; }
.cx-capital-metrics strong { display:block; margin-top:4px; font-size:16px; font-weight:500; font-variant-numeric:tabular-nums; letter-spacing:-.4px; overflow-wrap:anywhere; }
.cx-positive { color:var(--cx-mint)!important; }
.cx-negative { color:var(--cx-coral)!important; }
.cx-capital-overview { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.cx-capital-overview>section { border:1px solid var(--cx-border); border-radius:3px; min-width:0; padding:0 8px 4px; }
.cx-subheading { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:6px 0; }
.cx-subheading h3 { font-size:12px; font-weight:600; }
.cx-subheading>span { color:var(--cx-muted); font-size:10px; }
.cx-capital-overview dl>div { display:flex; justify-content:space-between; align-items:center; border-top:1px solid #1b2a22; padding:5px 0; gap:8px; font-size:10.5px; }
.cx-capital-overview dt { color:var(--cx-muted); }
.cx-capital-overview dd { font-variant-numeric:tabular-nums; white-space:nowrap; }
.cx-trade-preview { display:grid; grid-template-columns:1fr auto; padding:5px 0; border-top:1px solid #1b2a22; font-size:10.5px; gap:5px; }
.cx-trade-preview button { text-align:left; padding:0; border:0; background:none; color:var(--cx-muted); font-size:10.5px; }
.cx-trade-preview button:hover { color:var(--cx-mint); }
.cx-trade-preview strong { font-weight:500; font-variant-numeric:tabular-nums; white-space:nowrap; }
.cx-data-note { color:var(--cx-muted); font-size:10.5px; line-height:1.55; margin-top:8px!important; }
.cx-result-footer { padding:6px 10px; display:flex; justify-content:space-between; gap:8px; border-top:1px solid var(--cx-border); color:var(--cx-muted); font-size:9.5px; flex-shrink:0; }
.cx-table-scroll { overflow:auto; max-width:100%; scrollbar-width:thin; }
.cx-app table { width:100%; border-collapse:collapse; font-size:11px; font-variant-numeric:tabular-nums; }
.cx-app th { color:var(--cx-muted); font-weight:500; text-align:left; background:#080d0b; position:sticky; top:0; z-index:1; }
.cx-app th,.cx-app td { padding:7px 8px; border-bottom:1px solid #1e3026; vertical-align:top; }
.cx-app td { white-space:nowrap; }
.cx-app th button { color:inherit; font-size:inherit; border:0; background:none; padding:0; white-space:nowrap; }
.cx-app th button:hover { color:var(--cx-mint); }
.cx-statistics-table td:first-child { white-space:normal; color:var(--cx-muted); }
.cx-statistics-table td:last-child { text-align:right; }
.cx-app tbody tr:hover { background:#0c1711; }
.cx-history-table { min-width:1140px; }
.cx-log-table { min-width:570px; }
.cx-log-table td:last-child { white-space:normal; min-width:250px; }
.cx-history-filters { display:grid; grid-template-columns:1.25fr 1fr 1fr; gap:6px; margin:6px 0 9px; }
.cx-history-filters label { display:flex; flex-direction:column; gap:3px; font-size:10px; color:var(--cx-muted); }
.cx-history-filters input,.cx-history-filters select { width:100%; font-size:11px; }
.cx-history-filters label:nth-child(4),.cx-history-filters label:nth-child(5) { grid-column:auto; }
.cx-history-table .cx-operation-link { color:var(--cx-mint); font-size:11px; background:none; border:0; padding:0; }
.cx-pagination { display:flex; align-items:center; gap:8px; justify-content:flex-end; padding:9px 0; font-size:10.5px; color:var(--cx-muted); flex-wrap:wrap; }
.cx-pagination>span:first-child { margin-right:auto; }
.cx-pagination label { display:flex; align-items:center; gap:4px; }
.cx-pagination select { height:25px; padding:2px 3px; font-size:11px; }
.cx-empty { text-align:center!important; white-space:normal!important; padding:22px 10px!important; color:var(--cx-muted); font-size:12px; }
.cx-license { overflow:auto; overscroll-behavior:contain; }
.cx-workspace-tabs { display:none; }
.cx-inline-error { color:var(--cx-coral); font-size:11px; padding:6px 0; }
.cx-toast { position:fixed; z-index:100; right:18px; bottom:18px; display:flex; align-items:center; gap:10px; padding:10px 14px; border:1px solid #496b59; border-radius:4px; background:#0b1711; color:var(--cx-text); max-width:min(460px,calc(100vw - 32px)); font-size:12px; box-shadow:0 4px 20px #0005; }
.cx-toast button { min-width:24px; min-height:24px; }
.cx-dialog { width:min(630px,calc(100% - 28px)); max-height:88dvh; padding:0; background:var(--cx-surface); color:var(--cx-text); border:1px solid #466052; border-radius:5px; }
.cx-dialog::backdrop { background:#000b; }
.cx-dialog-heading { padding:14px 16px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--cx-border); gap:12px; }
.cx-dialog-heading h2 { font-size:16px; font-weight:500; }
.cx-dialog-content { padding:15px 16px; overflow:auto; max-height:64dvh; font-size:12px; }
.cx-dialog-content p+p { margin-top:9px; }
.cx-dialog-content p,.cx-dialog-content strong,.cx-dialog-content code,.cx-dialog-content li { overflow-wrap:anywhere; }
.cx-dialog-content label { display:block; color:var(--cx-muted); margin-bottom:5px; }
.cx-dialog-content input { width:100%; }
.cx-dialog-content dl>div { display:grid; grid-template-columns:minmax(120px,1fr) minmax(0,1.5fr); gap:12px; padding:7px 0; border-bottom:1px solid var(--cx-border); }
.cx-dialog-content dt { color:var(--cx-muted); }
.cx-dialog-content dd { overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.cx-dialog-content ul { padding-left:17px; margin:10px 0; }
.cx-dialog-content li+li { margin-top:5px; }
.cx-dialog-actions { padding:12px 16px; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; border-top:1px solid var(--cx-border); }
.cx-dialog #dialog-error { padding:0 16px 10px; }
.cx-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.cx-skip { position:fixed; top:8px; left:8px; z-index:110; transform:translateY(-160%); background:var(--cx-mint); color:#052116!important; padding:8px 12px; }
.cx-skip:focus { transform:translateY(0); }
.cx-noscript { position:fixed; inset:20% 10%; padding:20px; color:#fff; background:#121b15; border:1px solid #62dfbd; z-index:200; }
.cx-app ::-webkit-scrollbar { width:4px; height:4px; }
.cx-app ::-webkit-scrollbar-track { background:transparent; }
.cx-app ::-webkit-scrollbar-thumb { background:#405d4d; border-radius:4px; }
.cx-app ::-webkit-scrollbar-thumb:hover { background:#698674; }
@media (min-width:1180px) and (max-width:1399px) { .cx-workspace { grid-template-columns:246px minmax(0,1fr) 298px; gap:8px; } .cx-toolbar { gap:8px; } .cx-toolbar-actions { gap:5px; } .cx-toolbar-actions .cx-button { padding:6px 8px; } .cx-capital-metrics strong { font-size:14px; } .cx-tabs button { padding-left:10px; padding-right:10px; } .cx-main { min-height:0; } }
@media (max-width:1179px) { .cx-main { height:auto; min-height:calc(100dvh - 49px); padding:12px; } .cx-product-heading h1 { font-size:21px; } .cx-toolbar-actions { margin-left:0; } .cx-context-line { align-items:flex-start; } .cx-workspace-tabs { display:flex; margin:4px 0 9px; gap:0; border:1px solid var(--cx-border); border-radius:4px; background:var(--cx-surface); } .cx-workspace-tabs button { flex:1; background:transparent; border:0; border-bottom:2px solid transparent; font-size:12px; padding:9px 6px; color:var(--cx-muted); } .cx-workspace-tabs button[aria-pressed="true"] { color:var(--cx-mint); border-bottom-color:var(--cx-mint); } .cx-workspace { display:block; } .cx-workspace>[id] { display:none; } .cx-workspace[data-workspace-panel="results"]>#results-panel,.cx-workspace[data-workspace-panel="parameters"]>#parameters-panel,.cx-workspace[data-workspace-panel="license"]>#license-panel { display:flex; } .cx-workspace[data-workspace-panel="license"]>#license-panel { display:block; } .cx-panel { min-height:560px; max-height:none; } .cx-parameters .cx-panel-scroll { max-height:70dvh; } .cx-parameter-row { grid-template-columns:minmax(0,1fr) 160px; } .cx-results-scroll { min-height:450px; max-height:none; } .cx-result-heading span { font-size:10px; } .cx-license { max-height:none; } }
@media (max-width:639px) { .cx-header { height:auto; min-height:80px; padding:9px 12px 0; flex-wrap:wrap; gap:5px; } .cx-brand { order:1; } .cx-brand small { font-size:9px; } .cx-environment { order:2; } .cx-header nav { order:3; width:100%; height:35px; gap:0; justify-content:space-between; } .cx-header nav button { flex:1; font-size:12px; } .cx-main { padding:10px 8px; } .cx-product-heading { align-items:flex-start; flex-direction:column; gap:8px; } .cx-product-heading h1 { font-size:20px; letter-spacing:-.45px; } .cx-product-heading h1 span { display:block; font-size:17px; margin-top:3px; } .cx-product-heading p:last-child { font-size:11.5px; } .cx-product-id span { font-size:10px; padding:4px 9px; } .cx-toolbar { display:grid; grid-template-columns:1fr 1fr; gap:8px; } .cx-preset-control,.cx-capital-control { width:auto; } .cx-date-controls { grid-column:1/-1; grid-row:2; display:grid; grid-template-columns:1fr 12px 1fr; } .cx-date-controls input { width:100%; font-size:14px; height:35px; } .cx-preset-control select,.cx-capital-control input { font-size:14px; height:35px; } .cx-toolbar-actions { grid-column:1/-1; display:grid; grid-template-columns:1.3fr 1fr; gap:6px; } .cx-toolbar-actions .cx-button { font-size:11px; min-height:35px; padding:6px; } .cx-toolbar-actions #save-configuration { grid-column:1/-1; } .cx-context-line { flex-direction:column; gap:3px; font-size:10px; } .cx-workspace-tabs { position:sticky; top:0; z-index:5; } .cx-workspace-tabs button { min-height:39px; font-size:11px; } .cx-tabs button { font-size:11px; padding:10px; } .cx-result-heading { flex-wrap:wrap; } .cx-result-heading span { font-size:9px; } .cx-tab-panel { padding:8px; } .cx-playback-bar { flex-wrap:wrap; } .cx-playback-bar>div:first-child { width:100%; flex-basis:100%; } .cx-playback-actions { width:100%; justify-content:space-between; } .cx-playback-actions button { min-height:30px; } .cx-playback-actions select { height:30px; width:53px; font-size:13px; } .cx-capital-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .cx-capital-metrics strong { font-size:17px; } .cx-capital-overview { grid-template-columns:1fr; } .cx-capital-overview dl>div,.cx-trade-preview,.cx-trade-preview button { font-size:11.5px; } .cx-parameter-row { grid-template-columns:minmax(0,1fr) 100px; } .cx-parameter-row input,.cx-parameter-row select { font-size:16px; height:33px; } .cx-parameter-row>label { font-size:12px; } .cx-parameter-group summary { font-size:13px; padding:10px; } .cx-parameter-fields { gap:7px; } .cx-switch { height:33px; } .cx-param-help { width:28px; height:28px; font-size:10px!important; } .cx-history-filters { grid-template-columns:1fr 1fr; } .cx-history-filters label:first-child { grid-column:1/-1; } .cx-history-filters input,.cx-history-filters select { font-size:14px; height:34px; } .cx-result-footer { flex-wrap:wrap; } .cx-app table { font-size:12px; } .cx-dialog-content dl>div { grid-template-columns:1fr; gap:3px; } .cx-dialog { max-height:91dvh; } .cx-toast { bottom:10px; right:10px; } }
@media (prefers-reduced-motion:reduce) { .cx-app * { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }

html[data-ace-embedded] .cx-header,html[data-ace-embedded] .cx-product-heading,html[data-ace-embedded] [data-project-switcher],html[data-ace-embedded] .project-switcher-host{display:none}
html[data-ace-embedded] .cx-main{padding:12px;min-height:100dvh}
html[data-ace-embedded] .cx-context-line{font-size:10px}
