:root{--allocation-0:#5865d8;--allocation-1:#168a79;--allocation-2:#c17b16;--allocation-3:#b75785;--allocation-4:#387bad;--allocation-5:#8664b5;--allocation-6:#ba5945;--allocation-7:#65882e;--allocation-8:#477e83;--allocation-9:#876749}
:root[data-theme=dark]{--allocation-0:#999fff;--allocation-1:#65cfb8;--allocation-2:#e5b964;--allocation-3:#e798b8;--allocation-4:#80bee7;--allocation-5:#baa1e7;--allocation-6:#ed9d89;--allocation-7:#b0cc77;--allocation-8:#8ec8cd;--allocation-9:#c7ab8c}
.channel-card .card-header{justify-content:flex-start;margin-bottom:8px}
.channel-card .channel-execution-controls{margin-left:0;gap:8px}
.allocation-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,36%);gap:18px;align-items:start;margin-top:10px}
.allocation-facts{min-width:0;padding-top:14px}.allocation-facts .trader-name{font-size:21px}
.allocation-facts .channel-facts{grid-template-columns:auto minmax(0,1fr);column-gap:12px;row-gap:16px;align-items:center}
.allocation-facts .channel-facts dd{margin:0;text-align:left;overflow-wrap:anywhere}.allocation-facts .ratio-value{justify-content:flex-start}
.allocation-visual{min-width:0}.allocation-chart{display:flex;width:100%;flex-direction:column;align-items:center;gap:5px;border:1px solid transparent;border-radius:12px;padding:8px;background:transparent;color:var(--text);cursor:pointer}
.allocation-chart svg{width:min(100%,168px);aspect-ratio:1}.allocation-chart path{stroke:var(--surface);stroke-width:1}
.allocation-chart strong{font-size:13px}.allocation-chart .helper{margin:0;font-size:12px;color:var(--muted)}
.allocation-chart:hover:not(:disabled){background:var(--surface-alt);border-color:var(--border)}
.allocation-chart:active:not(:disabled){background:var(--accent-soft);border-color:var(--accent)}
.allocation-chart:focus-visible,.allocation-dialog input:focus-visible,.allocation-details summary:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.allocation-chart:disabled{color:var(--muted);background:var(--surface-alt);cursor:wait}.allocation-chart:disabled svg{opacity:.65}
.allocation-legend{padding:0;margin:8px 0 18px;list-style:none;display:grid;gap:8px;font-size:12px}
.allocation-legend li{display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:6px;align-items:center}.allocation-legend i{width:9px;height:9px;border-radius:3px}
.allocation-color-0{background:var(--allocation-0)}.allocation-color-1{background:var(--allocation-1)}.allocation-color-2{background:var(--allocation-2)}.allocation-color-3{background:var(--allocation-3)}.allocation-color-4{background:var(--allocation-4)}.allocation-color-5{background:var(--allocation-5)}.allocation-color-6{background:var(--allocation-6)}.allocation-color-7{background:var(--allocation-7)}.allocation-color-8{background:var(--allocation-8)}.allocation-color-9{background:var(--allocation-9)}
.allocation-legend span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.allocation-legend strong{font-variant-numeric:tabular-nums;font-weight:500}
.allocation-details{margin:12px 0 16px;border:1px solid var(--border);border-radius:8px;color:var(--text)}
.allocation-details summary{padding:12px;font-size:12px;cursor:pointer;border-radius:8px}.allocation-details summary:hover{background:var(--surface-alt)}
.allocation-details[open]{background:var(--surface-alt)}.allocation-details section{padding:12px}.allocation-details section+section{border-top:1px solid var(--border)}.allocation-details h3{font-size:14px}.allocation-details .risk-settings{margin:8px 0 0}
.allocation-dialog{width:min(700px,calc(100vw - 32px))}.allocation-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.65fr) minmax(0,1fr);gap:14px;padding:14px 0;border-bottom:1px solid var(--border)}
#allocation-rows{max-height:min(45dvh,440px);overflow:auto;overscroll-behavior:contain;padding:3px}
.allocation-row label{margin:0;font-size:12px}.allocation-source{display:flex;flex-direction:row;align-items:center;gap:10px;overflow-wrap:anywhere}
.allocation-source input{width:17px;height:17px;flex:0 0 17px;accent-color:var(--accent)}.allocation-source small{display:block;margin-top:4px;color:var(--muted);font-weight:400}
.allocation-row:has(input[type=checkbox]:checked){background:var(--accent-soft)}.allocation-row input::placeholder{color:var(--muted);opacity:1}
.allocation-dialog input:disabled{color:var(--muted);background:var(--surface-alt);border-color:var(--border)}
.allocation-total{margin:18px 0;color:var(--green);font-variant-numeric:tabular-nums;font-size:14px;font-weight:600}.allocation-total.allocation-invalid{color:var(--red)}
.sizing-summary .sizing-method{font-size:16px}
@media(max-width:1100px) and (min-width:801px){.allocation-summary{grid-template-columns:minmax(0,1fr) 130px;gap:8px}.allocation-facts .channel-facts{grid-template-columns:1fr;row-gap:7px}.allocation-facts .channel-facts dd{margin-bottom:8px}}
@media(max-width:480px){.allocation-summary{grid-template-columns:minmax(0,1fr) 126px;gap:10px}.allocation-facts .channel-facts{grid-template-columns:1fr;row-gap:6px}.allocation-facts .channel-facts dd{margin-bottom:8px}.allocation-row{grid-template-columns:1fr 1fr;gap:12px}.allocation-source{grid-column:1/-1}.allocation-dialog{padding:18px}}
@media(max-width:480px){#allocation-rows{max-height:32dvh}}
