.fd-entry {display:inline-block;width:auto;text-align:center;color:var(--ui-accent);margin-top:12px;margin-bottom:0;min-height:36px}
#fd-efficiency {box-sizing:border-box;width:calc(100% - 40px);max-width:1040px;max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid var(--ui-accent);border-radius:0;background:var(--ui-panel);color:#ddd;overflow:auto}
#fd-efficiency::backdrop {background:rgba(0,0,0,.75)}
.fd-dialog-head {display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;padding:16px 20px;background:var(--ui-panel);z-index:2;border-bottom:1px solid #555}
.fd-dialog-head h2 {margin:0;font-size:calc(20px + var(--ui-font-size-offset,0px))}
#fd-efficiency-close {min-height:40px}
.fd-dialog-body {padding:0 20px 24px;font-size:calc(14px + var(--ui-font-size-offset,0px))}
.fd-dialog-body p {line-height:1.6;overflow-wrap:anywhere}
#fd-selection {font-size:calc(15px + var(--ui-font-size-offset,0px));color:var(--ui-accent)}
.fd-graph {width:100%;height:320px;touch-action:pan-y}
.fd-graph svg {width:100%;height:100%;overflow:visible}
.fd-grid {stroke:#45494d;stroke-width:1}
.fd-axis {fill:#ccc;font-size:calc(12px + var(--ui-font-size-offset,0px))}
.fd-curve {fill:none;stroke:var(--ui-accent);stroke-width:2}
.fd-spend {outline:none}
.fd-spend line {stroke:#fff1a6;stroke-width:2;stroke-dasharray:4 3}
.fd-spend circle {fill:#fff1a6;stroke:#17191c;stroke-width:4;paint-order:stroke;filter:drop-shadow(0 0 2px #fff)}
.fd-spend rect {fill:#fff1a6;stroke:#17191c;stroke-width:2}
.fd-spend text {fill:#17191c;font-size:calc(12px + var(--ui-font-size-offset,0px));font-weight:700}
.fd-spend:focus circle {stroke:#fff;stroke-width:5}
.fd-axis-label {text-align:center;font-size:calc(13px + var(--ui-font-size-offset,0px));margin:0}
.fd-y-label {font-size:calc(13px + var(--ui-font-size-offset,0px));margin-bottom:0}
#fd-spend-summary {font-weight:700;color:#fff1a6}
.fd-milestone-table {width:100%;border-collapse:collapse;font-size:calc(13px + var(--ui-font-size-offset,0px))}
.fd-milestone-table th,.fd-milestone-table td {padding:10px 6px;border-bottom:1px solid #484848;text-align:right;overflow-wrap:anywhere}
.fd-milestone-table th:first-child {text-align:left}
.fd-table-caption {font-size:calc(15px + var(--ui-font-size-offset,0px));color:#ddd;margin:24px 0 12px}
.fd-disclaimer {font-size:calc(12px + var(--ui-font-size-offset,0px));color:#bfbfbf}
@media(max-width:600px) {
 #fd-efficiency {width:calc(100% - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:0}
 .fd-dialog-head {padding:12px}
 .fd-dialog-body {padding:0 12px 16px}
 .fd-milestone-table {font-size:calc(13px + var(--ui-font-size-offset,0px))}
 .fd-milestone-table th,.fd-milestone-table td {padding:9px 4px}
}

.fd-tick {stroke:#aaa;stroke-width:1}

.fd-slowdown {margin:24px 0;padding:18px 0;border-top:1px solid #484848;border-bottom:1px solid #484848}
.fd-slowdown h3 {font-size:calc(15px + var(--ui-font-size-offset,0px));margin:0 0 12px;color:#a9d9e8}
.fd-slowdown strong {color:#a9d9e8}
.fd-slowdown-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}
.fd-slowdown-metrics[hidden] {display:none}
.fd-slowdown-metrics div {border-left:2px solid #a9d9e8;padding-left:12px;min-width:0}
.fd-slowdown-metrics dt {font-size:calc(12px + var(--ui-font-size-offset,0px));line-height:1.5;color:#ccc}
.fd-slowdown-metrics dd {margin:8px 0 0;font-size:calc(18px + var(--ui-font-size-offset,0px));font-weight:700;color:#a9d9e8;overflow-wrap:anywhere}
.fd-dialog-body .fine {font-size:calc(12px + var(--ui-font-size-offset,0px));line-height:1.55;color:#bbb}
@media(max-width:600px) {.fd-slowdown-metrics {grid-template-columns:1fr;gap:18px}}

.fd-bend line {stroke:#a9d9e8;stroke-width:1.5;stroke-dasharray:7 4}
.fd-bend text {fill:#a9d9e8;font-size:calc(12px + var(--ui-font-size-offset,0px));stroke:#17191c;stroke-width:4;paint-order:stroke}

.priority-controls {justify-content:space-between}
.priority-controls .fd-entry {margin:0;flex:none}
