/* Shared brand tokens supply both appearances. Only user-triggered motion. */
.assistant-pill{color:var(--grn)!important;border-color:var(--grnd)!important}
#lowholdAssistant{display:none;position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.6);align-items:center;justify-content:center;padding:22px}
#lowholdAssistant.open{display:flex}
.lh-dialog{width:min(600px,100%);max-height:calc(100dvh - 44px);overflow:auto;border:1px solid var(--line2);border-radius:22px;background:var(--bg);color:var(--t);padding:28px;box-shadow:0 28px 100px #0005;animation:lh-enter .22s cubic-bezier(.22,1,.36,1)}
.lh-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}
.lh-eyebrow{display:block;color:var(--grn);font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.lh-close{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;color:var(--t2);background:var(--card);font-size:22px;cursor:pointer}
.lh-progress{display:flex;gap:20px;margin-bottom:25px;color:var(--t3);font-size:12px}
.lh-progress span{display:flex;align-items:center;gap:7px}
.lh-progress i{font:inherit;display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line2);border-radius:50%}
.lh-progress .on{color:var(--t)}.lh-progress .on i{color:var(--grn);border-color:var(--grnd);background:var(--grn2)}
.lh-dialog h2{font-size:28px;letter-spacing:-.025em;line-height:1.15;margin:0 0 10px;font-weight:600;outline:none}
.lh-dialog h2:focus-visible{outline:none}
.lh-dialog>p{font-size:14px;color:var(--t2);line-height:1.6;margin:0 0 23px}
.lh-book-grid,.lh-odds-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lh-book-card,.lh-odds-card{min-width:0;background:var(--card);border:1px solid var(--line);border-radius:15px;padding:17px}
.lh-book-card .lh-eyebrow{color:var(--t3);font-size:10px}
.lh-book-logo{display:block;margin:20px 0 14px}.lh-book-logo img{width:44px;height:44px;border-radius:10px;object-fit:contain;background:white}
.lh-dialog select,.lh-dialog input{max-width:100%;width:100%;min-height:44px;padding:9px 10px;border:1px solid var(--line2);border-radius:8px;background:var(--bg);color:var(--t);font:inherit;font-size:16px}
.lh-dialog small,.lh-footnote{display:block;color:var(--t3);font-size:12px;line-height:1.5;margin-top:11px}
.lh-book-title{display:flex;align-items:center;gap:9px;font-size:14px;margin-bottom:20px}.lh-book-title img,.lh-review-row img{width:28px;height:28px;border-radius:7px;object-fit:contain;background:#fff;flex:none}
.lh-segment{display:flex;border:1px solid var(--line2);border-radius:9px;padding:3px;margin-bottom:16px;gap:3px}
.lh-segment button{flex:1;min-height:40px;border:0;border-radius:6px;background:transparent;color:var(--t3);font:inherit;font-size:12px;cursor:pointer}
.lh-segment button[aria-pressed="true"]{background:var(--grn2);color:var(--grn)}
.lh-min-label{font-size:12px;color:var(--t2)}.lh-min-label input{margin-top:6px}.lh-none{color:var(--t3);font-size:12px;line-height:1.6}
.lh-review{border:1px solid var(--line);border-radius:14px;background:var(--card);padding:0 17px}
.lh-review-row{display:flex;align-items:center;gap:12px;min-height:66px;border-bottom:1px solid var(--line);font-size:14px}.lh-review-row b{flex:1}.lh-review-row span{color:var(--t3);font-size:12px}
.lh-amount{display:flex;align-items:center;gap:7px;padding:18px 0;font-size:14px}.lh-amount span{margin-left:auto;color:var(--grn)}.lh-amount input{width:115px;font-variant-numeric:tabular-nums}
.lh-error{min-height:20px;color:var(--red);font-size:13px;margin:12px 0 7px}
.lh-actions{display:flex;gap:10px}.lh-actions button,.lh-empty button{min-height:46px;border:1px solid var(--line2);border-radius:10px;padding:10px 20px;background:var(--card);color:var(--t);font:inherit;font-size:14px;cursor:pointer}
.lh-actions .lh-next{margin-left:auto;background:var(--grn);color:#0d1114;border-color:var(--grn);font-weight:700}
.lh-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin-bottom:16px;background:var(--card);border:1px solid var(--grnd);border-radius:14px}
.lh-summary b{display:block;margin:7px 0;font-size:15px;font-weight:600;line-height:1.5}.lh-summary b span{color:var(--t3);padding:0 4px}.lh-summary small{color:var(--t3);font-size:12px}
.lh-summary-actions{display:flex;gap:6px}.lh-summary-actions button{font:inherit;font-size:12px;border:1px solid var(--line);background:var(--bg);color:var(--t2);border-radius:8px;min-height:40px;padding:8px 12px;cursor:pointer}
.swap-choices{display:inline-flex;align-items:center;gap:6px;max-width:100%}
.swap-symbol{display:flex;align-items:center;color:var(--t3);flex:none}.swap-symbol svg{width:17px;height:17px}
.swap-choice{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;min-width:44px;min-height:40px;padding:5px 7px;border:1px solid var(--line2);border-radius:9px;color:var(--t2);background:var(--card);cursor:pointer;font:600 11px var(--mono,monospace)}
.swap-choice img{display:block!important;width:24px!important;height:24px!important;min-width:24px;max-width:none;flex:0 0 24px;object-fit:contain;border-radius:5px;background:#fff;margin:0!important;opacity:1!important}
/* Feed-card backups are secondary controls; modal choices keep their larger targets. */
.pc .cell .lb .b:has(.swap-choices){margin-top:0;min-height:24px;gap:5px}
.pc .cell .swap-choices{gap:4px;flex:0 0 auto}
.pc .cell .swap-symbol svg{width:13px;height:13px}
.pc .cell .swap-choice{min-width:24px;min-height:24px;height:24px;padding:3px 5px;gap:4px;border-radius:6px;font-size:10px;line-height:1}
.pc .cell .swap-choice img{width:16px!important;height:16px!important;min-width:16px;flex-basis:16px;border-radius:3px}
.swap-choice.hedge{border-style:dashed}.swap-choice:focus-visible{outline:2px solid var(--grn);outline-offset:2px}
.legcards .lc .bkln{min-width:0}.legcards .swap-choices{flex-wrap:wrap}.legcards .swap-choice{min-height:44px}.legcards .swap-choice span{font-size:10px}
.pch .prof:has(.p):not(:has(.r)){min-width:0}
@media(hover:hover) and (pointer:fine){.swap-choice:hover{border-color:var(--grn);background:var(--grn2)}}
@keyframes lh-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){
 body.m-lowhold .sub{flex-wrap:wrap}body.m-lowhold #modttl{flex-basis:calc(100% - 40px)}body.m-lowhold .sub>.sp{display:none}body.m-lowhold .sub>.pill{min-height:40px}body.m-lowhold #pageSettingsPill{margin-left:auto}
 #lowholdAssistant{padding:12px;align-items:flex-end}.lh-dialog{padding:21px 18px;border-radius:20px;max-height:calc(100dvh - 24px)}
 .lh-top{margin-bottom:18px}.lh-progress{gap:12px;font-size:11px;margin-bottom:22px}.lh-dialog h2{font-size:26px}.lh-dialog>p{font-size:13px}
 .lh-book-grid{gap:9px}.lh-book-card{padding:13px}.lh-odds-grid{grid-template-columns:1fr}.lh-odds-card{padding:14px}.lh-book-title{margin-bottom:12px}.lh-odds-card small{font-size:11px}
 .lh-summary{padding:15px;flex-wrap:wrap}.lh-summary-actions{margin-left:auto}.lh-review-row{gap:8px;font-size:13px}.lh-review-row span{font-size:11px}
 .pc .cell .swap-choice{width:24px;min-width:24px;padding:3px}.pc .cell .swap-choice span{display:none}
 .legcards .swap-choice{padding:5px}.legcards .swap-choices{gap:4px}.legcards .swap-choice span{display:none}
}
@media(prefers-reduced-motion:reduce){.lh-dialog{animation:none}}

.prof.roi.loss .p,.prof.roi.loss .r{color:var(--red)!important}
.prof.roi.loss{border-color:color-mix(in srgb,var(--red) 30%,transparent);background:color-mix(in srgb,var(--red) 8%,var(--card))}
