[data-compound-tool] .pf-compound-form,[data-compound-tool] .pf-compound-summary,[data-compound-tool] .pf-compound-details{margin-block:24px;padding:22px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
[data-compound-tool] .pf-compound-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
[data-compound-tool] .pf-compound-field{display:grid;gap:7px;min-width:0;font-weight:600}
[data-compound-tool] .pf-compound-field input,[data-compound-tool] .pf-compound-field select{width:100%;min-height:46px;box-sizing:border-box;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit}
[data-compound-tool] .pf-compound-form details{margin-block:20px;border-top:1px solid var(--line);padding-top:16px}
[data-compound-tool] .pf-compound-form summary{cursor:pointer;font-weight:700}
[data-compound-tool] .pf-compound-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
[data-compound-tool] .pf-compound-actions button{min-height:44px;padding:9px 18px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:700 14px var(--font-body);cursor:pointer}
[data-compound-tool] .pf-compound-actions .pf-primary-action{background:var(--accent);border-color:var(--accent);color:#fff}
@media(hover:hover){[data-compound-tool] .pf-compound-actions .pf-primary-action:hover{background:var(--accent-hover);border-color:var(--accent-hover)}[data-compound-tool] .pf-compound-actions button:not(.pf-primary-action):hover:enabled{border-color:var(--accent);color:var(--accent)}}
[data-compound-tool] .pf-compound-actions button:disabled{opacity:.55;cursor:not-allowed}
[data-compound-tool] .pf-compound-status{min-height:1.5em;margin-top:12px;color:var(--muted)}
[data-compound-tool] .pf-compound-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
[data-compound-tool] .pf-compound-metrics>div{display:grid;gap:5px;padding:16px;border:1px solid var(--line);border-radius:8px}
[data-compound-tool] .pf-compound-metrics output{font-weight:800;font-size:clamp(18px,2.6vw,25px);overflow-wrap:anywhere}
[data-compound-tool] .pf-compound-chart{display:block;width:100%;height:auto;max-height:240px;margin-block:18px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
[data-compound-tool] .pf-compound-chart polyline{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
[data-compound-tool] .pf-compound-chart-invested{stroke:var(--muted)}
[data-compound-tool] .pf-compound-chart-final{stroke:var(--accent)}
[data-compound-tool] .pf-compound-legend{display:flex;flex-wrap:wrap;gap:16px}
[data-compound-tool] .pf-compound-legend span::before{content:"";display:inline-block;width:16px;height:3px;margin-inline-end:6px;vertical-align:middle;background:var(--muted)}
[data-compound-tool] .pf-compound-legend span:last-child::before{background:var(--accent)}
[data-compound-tool] .pf-compound-table-wrap{overflow-x:auto;max-width:100%}
[data-compound-tool] table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
[data-compound-tool] th,[data-compound-tool] td{padding:9px 12px;border-bottom:1px solid var(--line);text-align:end;white-space:nowrap}
[data-compound-tool] th:first-child,[data-compound-tool] td:first-child{text-align:start}
[data-compound-tool] .pf-compound-details>button{margin-top:16px;min-height:44px;padding:9px 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);cursor:pointer}
@media(max-width:600px){[data-compound-tool] .pf-compound-fields{grid-template-columns:1fr}[data-compound-tool] .pf-compound-form,[data-compound-tool] .pf-compound-summary,[data-compound-tool] .pf-compound-details{padding:16px}}
@media print{[data-compound-tool] .pf-compound-form,[data-compound-tool] .pf-compound-actions,[data-compound-tool] .pf-compound-details>button{display:none}[data-compound-tool] .pf-compound-details{break-before:page}}

[data-compound-tool]{--custom-select-selected-bg:var(--accent)}
[data-compound-tool] .pf-custom-select-option[hidden]{display:none}
