.broker-dialog{box-sizing:border-box;width:min(860px,calc(100vw - 24px));max-height:90dvh;overflow:auto;background:var(--panel,#111827);color:var(--text,#e5e7eb);border:1px solid var(--line,#374151);border-radius:16px;padding:24px;box-shadow:0 24px 80px #0008;color-scheme:dark}
.broker-dialog::backdrop{background:#020617b3;backdrop-filter:blur(3px)}
.broker-dialog h3{margin:0 0 20px}.broker-dialog p{line-height:1.5;overflow-wrap:anywhere}
.broker-dialog label{display:block;margin:16px 0}.broker-dialog label input,.broker-dialog label select{margin-top:6px;width:100%;box-sizing:border-box}
.broker-dialog label input[type=checkbox]{width:auto;margin:0 8px 0 0;vertical-align:middle}
.broker-dialog .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.broker-dialog .actions button{margin:0}
.broker-dialog .error{color:#fca5a5}.broker-dialog .allocation{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:14px;border:1px solid var(--line,#374151);border-radius:10px;margin:12px 0}
.broker-dialog .allocation label{flex:1 1 160px;margin:0}.broker-dialog .allocation button{margin:0}
.broker-stock-grid .compare-write-price-grid{display:grid;grid-template-columns:repeat(3,minmax(84px,1fr));gap:10px}
.broker-stock-grid .compare-write-price-grid label{margin:0;color:var(--muted,#94a3b8);font-size:12px}
.broker-stock-grid input{box-sizing:border-box;width:100%;min-width:0;margin-top:6px}
.broker-stock-grid .broker-action-row{margin:12px 0 0;gap:10px}
.broker-stock-grid td{vertical-align:top}.broker-stock-grid td:first-child{min-width:230px}.broker-stock-grid td:last-child{min-width:315px}
.broker-stock-grid .broker-stock-quantity{display:flex;align-items:center;gap:10px;margin-bottom:16px}.broker-stock-quantity input{width:82px;margin:0}
.broker-stock-grid .broker-row-status{max-width:360px;white-space:normal;overflow-wrap:anywhere;margin-top:12px;line-height:1.4}
.broker-inventory-view label:has(> [data-show-archived]){display:flex;align-items:center;justify-content:flex-start;gap:8px;width:fit-content;min-height:32px;margin:12px 0;cursor:pointer}
.broker-inventory-view input[data-show-archived]{display:block;flex:0 0 18px;width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:#2563eb}
@media(max-width:600px){.broker-dialog{padding:18px}.broker-dialog .actions>button{flex:1 1 140px}.broker-stock-grid .compare-write-price-grid{gap:8px}}
