.efficiency { margin: 32px 0; padding: clamp(16px,3vw,32px); border:1px solid var(--mithril-console-border, #303b50); border-radius:20px; background:linear-gradient(135deg,rgba(70,94,140,.13),rgba(20,29,46,.15)); }
.efficiency h2 { font-size:clamp(25px,3vw,38px); margin:0 0 12px; }
.efficiency p { color:var(--mithril-console-text-muted,#aab7cd); font-size:14px; line-height:1.65; }
.eff-controls { display:flex; flex-wrap:wrap; gap:16px; margin:20px 0; }
.eff-controls label { display:flex; flex-direction:column; gap:8px; font-size:13px; }
.eff-controls select { max-width:100%; }
.eff-paths { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.eff-path { padding:16px; background:rgba(110,140,190,.07); border:1px solid rgba(125,150,190,.2); border-radius:12px; font-size:13px; line-height:1.8; }
.eff-path strong { display:block; color:inherit; margin-bottom:4px; }
.eff-path span { color:var(--mithril-console-text-muted,#aab7cd); }
.eff-charts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:24px 0; }
.eff-chart { padding:16px; border:1px solid rgba(125,150,190,.2); border-radius:12px; min-width:0; }
.eff-chart h3 { font-size:15px; margin:0; }
.eff-chart .eff-axis { font:11px ui-monospace,monospace; margin:10px 0 20px; }
.eff-bar-row { margin-bottom:18px; }
.eff-bar-label { display:block; font-size:12px; margin-bottom:8px; }
.eff-track { width:100%; height:10px; border-radius:4px; background:rgba(130,150,185,.12); }
.eff-bar { height:100%; min-width:0; border-radius:4px; }
.eff-actor { background:#9daabd; }.eff-decider { background:#7eaaff; }.eff-clef { background:#7ce0d1; }
.eff-bar-row strong { display:block; margin-top:7px; font:13px ui-monospace,monospace; }
.eff-table { overflow-x:auto; }
.eff-table table { width:100%; border-collapse:collapse; font-size:12px; }
.eff-table th,.eff-table td { text-align:left; padding:12px; border-bottom:1px solid rgba(125,150,190,.18); white-space:nowrap; }
.eff-table caption { text-align:left; padding:12px 0; font-size:13px; line-height:1.6; }
.efficiency a { color:inherit; text-decoration:underline; }
.eff-flow-lane { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:12px 0 20px; }
.eff-flow-step { flex:1 1 150px; padding:12px; border:1px solid rgba(125,150,190,.25); border-radius:10px; font-size:13px; line-height:1.6; }
.eff-flow-step strong,.eff-flow-step span { display:block; }
.eff-flow-step span { color:var(--mithril-console-text-muted,#aab7cd); }
.eff-flow-arrow { flex:0 0 auto; }
.eff-allocation { display:flex; width:100%; height:14px; margin:16px 0; background:rgba(130,150,185,.12); }
.eff-segment { height:100%; }
.eff-segment-0 { background:#9daabd; }.eff-segment-1 { background:#7eaaff; }.eff-segment-2 { background:#7ce0d1; }.eff-segment-3 { background:#baa0dc; }.eff-segment-4 { background:#c4af8e; }.eff-segment-5 { background:#eff2fa; }
#eff-cost-flow h3 { font-size:18px; margin:22px 0 12px; }
#eff-cost-flow h4 { font-size:15px; margin:20px 0 10px; }
#eff-cost-flow li { font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
@media(max-width:800px) { .eff-charts { grid-template-columns:1fr; }.eff-paths { grid-template-columns:1fr; } }

.cf-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.cf-charts .eff-bar-row{min-width:0}.cf-charts span{overflow-wrap:anywhere}@media(max-width:700px){.cf-charts{grid-template-columns:1fr}}
