.performance-dashboard{margin-top:30px;border-top:1px solid var(--line);padding-top:26px;text-align:left;min-width:0}
.pd-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.pd-eyebrow{color:var(--accent);font-size:10px;letter-spacing:.16em}.pd-header h2{font-size:24px;letter-spacing:-.03em;margin:6px 0}.pd-header p,.pd-account{font-size:12px;color:var(--txt2)}.pd-account{display:grid;gap:6px;max-width:45%}.pd-account select{max-width:100%;min-height:40px;border:1px solid var(--line2);border-radius:10px;background:var(--card-bg);color:var(--txt);padding:8px 12px;font:inherit}.pd-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:16px}.pd-kpi{padding:20px 16px;border:1px solid var(--line);border-radius:14px;background:var(--card-bg);min-width:0}.pd-kpi span{display:block;font-size:11px;color:var(--txt2);margin-bottom:12px}.pd-kpi strong{font-family:'JetBrains Mono',monospace;font-size:clamp(16px,1.8vw,24px);font-weight:500;overflow-wrap:anywhere}.performance-dashboard .positive{color:var(--pos)}.performance-dashboard .negative{color:var(--neg)}.pd-panel{border:1px solid var(--line2);border-radius:20px;background:var(--card-bg);padding:20px;box-shadow:var(--card-shadow)}.pd-toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.pd-segments{display:flex;gap:4px;flex-wrap:wrap}.pd-segments button{font:inherit;font-size:11px;color:var(--txt2);border:1px solid transparent;background:transparent;padding:9px 12px;border-radius:8px;cursor:pointer;min-height:36px}.pd-segments button[aria-pressed=true]{background:var(--tag);border-color:var(--line2);color:var(--txt)}.pd-segments button:hover{color:var(--accent)}.performance-dashboard :focus-visible{outline:2px solid var(--accent);outline-offset:3px}.pd-unit{font-size:10px;color:var(--txt3);margin:20px 0 0}.pd-plot{width:100%;min-height:200px}.pd-plot svg{width:100%;height:auto;display:block;overflow:visible}.pd-plot text{fill:var(--txt2);font:11px 'JetBrains Mono',monospace}.pd-grid{stroke:var(--line);stroke-width:1}.pd-zero{stroke:var(--line2);stroke-dasharray:4 5}.pd-line{stroke:currentColor;stroke-width:2.5;fill:none;stroke-linejoin:round;vector-effect:non-scaling-stroke}.pd-cross{stroke:var(--txt3);stroke-dasharray:3 5;pointer-events:none}.pd-readout{font:11px 'JetBrains Mono',monospace;color:var(--txt2);min-height:36px;line-height:1.8;margin-top:12px}.pd-point{width:100%;accent-color:var(--accent);margin:8px 0;min-height:24px;cursor:ew-resize}.pd-note{font-size:11px;line-height:1.6;color:var(--txt3);margin:14px 0 10px}.pd-quality{display:flex;gap:14px;flex-wrap:wrap;font-size:10px;color:var(--txt2)}.pd-quality b{font-weight:500;color:var(--txt)}.pd-data{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}.pd-data summary{font-size:11px;color:var(--accent);cursor:pointer}.pd-table{max-height:260px;overflow:auto;margin-top:12px}.pd-table table{width:100%;font-size:11px;border-collapse:collapse}.pd-table th,.pd-table td{padding:10px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}.pd-table th:first-child,.pd-table td:first-child{text-align:left}.pd-empty{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:var(--txt2);font-size:13px;text-align:center}.pd-empty a{color:var(--accent)}
@media(max-width:1000px){.pd-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.pd-header{align-items:flex-start;flex-direction:column}.pd-account{max-width:100%;width:100%}.pd-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pd-kpi{padding:14px}.pd-header h2{font-size:21px}.pd-panel{padding:12px}.pd-segments button{font-size:10px;padding:8px}.pd-plot{overflow-x:auto;min-height:190px}.pd-plot svg{min-width:580px}.pd-readout{font-size:10px}.pd-quality{gap:8px}}
/* A long account name (MT5 server / login / currency) must not push the page wider than a phone screen. */
.pd-account{min-width:0}.pd-account select{width:100%;max-width:100%;min-width:0;text-overflow:ellipsis}
