/* Enhansys Analysis tab (UI v2): an interactive dashboard the proposal
   engineer reads while the study develops. Docked in the centre like the
   report preview; the side panels stay usable. Ported from
   design/ui-lab/prototype/dashboard.css. */
[data-design=proposed] .dash { position: fixed; top: var(--workspace-top); left: var(--left-size); right: var(--right-size); bottom: 0; display: none; overflow: auto; background: var(--panel); z-index: 10; }
[data-design=proposed] .dash.show { display: block; }
[data-design=proposed] .dash-visible .conversation, [data-design=proposed] .dash-visible .composer-shell, [data-design=proposed] .dash-visible .awaiting-banner, [data-design=proposed] .dash-visible #uikLoader { visibility: hidden; }
.dash-inner { max-width: 1080px; margin: 0 auto; padding: 26px 28px 60px; display: grid; gap: 18px; animation: uik-fade-up .25s var(--ease-out-strong); }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.dash-head h2 { font-size: 22px; font-weight: 550; letter-spacing: -.5px; margin: 4px 0 4px; }
.dash-sub { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; max-width: 640px; }
.dash-pipe { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.dash-pipe button { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px 4px 5px; cursor: pointer; color: var(--text-2); }
.dash-pipe button:hover { background: var(--panel-2); }
.dash-pipe .n { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-family: var(--font-mono); background: var(--panel-2); color: var(--text-muted); box-sizing: border-box; }
.dash-pipe .done .n { background: var(--ok-tint); color: var(--ok); }
.dash-pipe .running .n { border: 2px solid var(--border); border-top-color: var(--pink); background: transparent; color: transparent; animation: uik-spin .8s linear infinite; }
.dash-pipe .arrow { color: var(--text-faint); font-size: 11px; padding: 0 2px; }
.dash-sec { background: var(--bg); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 18px 20px; display: grid; gap: 14px; scroll-margin-top: 12px; }
.dash-sec header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dash-sec h3 { font-size: 15px; font-weight: 550; margin: 0; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; }
.dash-sec h3 .uik-tag { font-size: 8.5px; }
.dash-sec header p { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.dash-sec.locked { opacity: .8; }
.dash-locked { display: flex; align-items: center; gap: 10px; padding: 18px; border: 1px dashed var(--border); border-radius: var(--radius-card); font-size: 13px; color: var(--text-muted); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.dash-grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.dash-kpi { background: var(--panel); border-radius: var(--radius-card); padding: 12px 14px; min-width: 0; }
.dash-kpi small { display: block; font-size: 11px; color: var(--text-muted); letter-spacing: .3px; }
.dash-kpi b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 20px; letter-spacing: -.5px; margin-top: 4px; overflow-wrap: anywhere; }
.dash-kpi span { font-size: 11.5px; color: var(--text-muted); }
.dash-kpi em { display: block; font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
/* best case (ideal control) beside the expected headline: dashed outline only */
.uik-chart .bar.c-alt { fill: none; stroke: var(--text-muted); stroke-width: 1.2; stroke-dasharray: 3 2; opacity: 1; }
.uik-chart .line.c-alt { stroke: var(--text-muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.uik-legend i.c-alt { border-top: 2px dashed var(--text-muted); }
.uik-legend i.box.c-alt { border: 1.2px dashed var(--text-muted); background: transparent; }
.dash-chart { background: var(--panel); border-radius: var(--radius-card); padding: 12px 14px; min-width: 0; }
.dash-chart h4 { font-size: 13px; font-weight: 550; margin: 0 0 2px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dash-zoom-btn { font: inherit; font-size: 12px; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); cursor: pointer; flex: 0 0 auto; }
.dash-zoom-btn:hover { color: var(--text); background: var(--panel-2); }
.dash-chart > p { font-size: 11.5px; color: var(--text-muted); margin: 0 0 10px; line-height: 1.5; }
.dash-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.dash-step { background: var(--panel); border-radius: var(--radius-card); padding: 12px; display: grid; gap: 6px; font-size: 11.5px; align-content: start; }
.dash-step .k { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); }
.dash-step b { font-weight: 550; font-size: 12px; }
.dash-step .io { display: grid; gap: 3px; color: var(--text-muted); line-height: 1.5; }
.dash-step .io b { font-weight: 500; color: var(--text-2); font-size: 11.5px; }
.dash-flow { display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr; gap: 8px; align-items: start; }
.dash-col { display: grid; gap: 6px; }
.dash-col h5 { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-faint); margin: 0 0 2px; font-weight: 500; }
.dash-node { text-align: left; font: inherit; font-size: 12.5px; background: var(--panel); border: 1px solid transparent; border-radius: var(--radius-control); padding: 9px 10px; cursor: pointer; display: grid; gap: 4px; color: var(--text); }
.dash-node:hover { border-color: var(--border); }
.dash-node.active { border-color: var(--text); background: var(--bg); }
.dash-node .t { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-width: 0; }
.dash-node .t b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-node small { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); }
.dash-arrow { display: grid; place-items: center; color: var(--text-faint); padding-top: 30px; font-size: 12px; }
.dash-detail { background: var(--panel); border-radius: var(--radius-card); padding: 12px 14px; font-size: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; animation: uik-fade-up .2s var(--ease-out-strong); }
.dash-detail h6 { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-faint); margin: 0 0 4px; font-weight: 500; }
.dash-detail p { margin: 0; line-height: 1.6; color: var(--text-2); }
.dash-ask { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; }
.dash-ask .uik-eyebrow { margin-right: 4px; }
.dash-ask button { font: inherit; font-size: 12.5px; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.dash-ask button:hover { background: var(--panel); border-color: var(--text-faint); }
.dash-note { font-size: 11.5px; color: var(--text-faint); }
.dash-text { font-size: 13px; line-height: 1.75; color: var(--text-2); margin: 0; }
.dash-sec .uik-tasks { max-width: 420px; }
@media (max-width: 980px) { [data-design=proposed] .dash { left: 0; right: 0; } .dash-inner { padding: 18px 16px 50px; } .dash-flow { grid-template-columns: 1fr; } .dash-arrow { display: none; } }

.dash-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dash-table th { text-align: left; font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); font-weight: 500; padding: 4px 8px 6px 0; border-bottom: 1px solid var(--border); }
.dash-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: top; }
.dash-table td:nth-child(2) { color: var(--text-muted); font-size: 12px; }
.dash-table td:last-child, .dash-table th:last-child { text-align: right; font-family: var(--font-mono); padding-right: 0; white-space: nowrap; }
.dash-table tr.tot td { font-weight: 550; color: var(--text); border-bottom: 0; }

/* composition line, compact step chain, expandable nodes, zoom dialog */
.dash-compose { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--text-muted); }
.dash-compose .uik-tag { font-size: 9.5px; }
.dash-chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dash-chain button { font: inherit; font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid transparent; border-radius: var(--radius-control); padding: 7px 11px 7px 8px; cursor: pointer; color: var(--text); }
.dash-chain button:hover { border-color: var(--border); }
.dash-chain button.active { border-color: var(--text); background: var(--bg); }
.dash-chain button .n { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }
.dash-chain .arrow { color: var(--text-faint); }
.dash-chain-detail { font-size: 12.5px; color: var(--text-2); line-height: 1.6; padding: 8px 12px; background: var(--panel); border-radius: var(--radius-control); }
.dash-chain-detail b { font-weight: 500; }
.dash-node .more { display: none; font-size: 12px; color: var(--text-2); line-height: 1.55; padding-top: 6px; border-top: 1px solid var(--border); margin-top: 2px; }
.dash-node.active .more { display: grid; gap: 4px; }
.dash-node .more b { font-weight: 500; color: var(--text-muted); }
.dash-zoom { width: min(960px, calc(100% - 32px)); border: 0; border-radius: var(--radius-window); padding: 0; background: var(--bg); color: var(--text); box-shadow: 0 20px 100px rgba(0, 0, 0, .3); }
.dash-zoom::backdrop { background: rgba(23, 33, 40, .4); backdrop-filter: blur(3px); }
.dash-zoom header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px 8px; }
.dash-zoom h3 { font-size: 16px; font-weight: 550; margin: 0 0 4px; }
.dash-zoom header p { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.dash-zoom header button { border: 0; background: none; color: var(--text); font-size: 22px; cursor: pointer; }
.dash-zoom .body { padding: 6px 22px 22px; }
.dash-grid.stage { grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); }
.uik-legend i.pt { width: 9px; height: 9px; border: 2px solid var(--text); border-radius: 50%; background: var(--bg); }
@media (max-width: 980px) { .dash-grid.stage { grid-template-columns: 1fr; } }

.dash-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-kpis.two { grid-template-columns: repeat(2, minmax(120px, 1fr)); align-content: start; }
.dash-chart.wide { grid-column: 1 / -1; }
.dash-pipe button small { font-size: 10px; color: var(--text-faint); }
.dash-compose .sep { color: var(--text-faint); }
