/* REV003 M5: BYOS wizard + execution timeline (web/byos.js). Uses the workspace tokens from style.css; 44px touch targets; no inline styles (CSP). */
.byos-wiz .wiz-step{padding:0}.byos-stepbtn{all:unset;display:inline-flex;align-items:center;gap:6px;padding:4px 10px;min-height:36px;cursor:pointer;border-radius:20px}
.byos-stepbtn:focus-visible{outline:2px solid var(--accent,#2563eb);outline-offset:2px}
.wiz-step[aria-current=step]{border-color:var(--accent,#2563eb);box-shadow:0 0 0 1px var(--accent,#2563eb)}
.byos-pane{margin:12px 0}.byos-pane h3{font-size:15px;margin:0 0 10px}.byos-pane h3:focus{outline:none}
.byos-f{display:flex;flex-direction:column;gap:4px;margin:0 0 10px;font-size:.86rem;min-width:0}.byos-f input,.byos-f textarea{min-height:40px;width:100%;box-sizing:border-box}
.byos-f textarea{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8rem;min-height:160px}
.byos-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:4px 12px}
.byos-src,.byos-acc{border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin:0 0 12px;min-width:0}.byos-src legend,.byos-acc legend{font-weight:650;font-size:.86rem;padding:0 4px}
.byos-opt{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px;font-size:.9rem}.byos-opt input{width:20px;height:20px;margin:0}
.byos-opt small{flex:1 1 100%;padding-left:28px}.byos-opt.disabled{color:var(--muted)}
.byos-nav{gap:8px;justify-content:flex-end}.byos-nav button,.byos-pane .mk-row button{min-height:44px}
.byos-out{margin-top:12px}.byos-result h4{margin:12px 0 4px;font-size:.9rem}.byos-inst{margin:6px 0}
.byos-tl{list-style:none;padding:0;margin:8px 0;border-left:2px solid var(--line)}
.byos-st{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:6px 0 6px 12px;position:relative;font-size:.84rem}
.byos-st::before{content:"";position:absolute;left:-6px;top:12px;width:10px;height:10px;border-radius:50%;background:var(--line)}
.byos-st.pass::before{background:var(--good,#0b8a74)}.byos-st.fail::before{background:var(--bad,#c0293b)}.byos-st.waiting::before,.byos-st.needs_mapping::before{background:var(--warn,#b7791f)}
.byos-st-n{font-weight:750;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.76rem;min-width:104px}.byos-st-d{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
.byos-list li,.byos-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line);min-height:44px}
.byos-act summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px;cursor:pointer;min-height:44px}.byos-act-row{list-style:none}
.byos-paper{letter-spacing:.04em}
/* M7 P6 stepper, progress, account rows, sticky footer */
.byos-steps{flex-wrap:nowrap;gap:6px}.byos-steps .wiz-step{flex:1 1 0;min-width:0;justify-content:center}.byos-steps .wiz-l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.byos-steps .wiz-step.done .wiz-n{color:var(--good,#0b8a74)}
.byos-prog{height:4px;border-radius:4px;background:var(--line);overflow:hidden;margin:2px 0 4px}.byos-prog i{display:block;height:100%;background:var(--accent,#2563eb);border-radius:4px}
.byos-prog-1{width:20%}.byos-prog-2{width:40%}.byos-prog-3{width:60%}.byos-prog-4{width:80%}.byos-prog-5{width:100%}
.byos-why{border:1px solid var(--line);border-radius:10px;padding:6px 12px;margin:0 0 10px;font-size:.88rem}.byos-why summary{min-height:32px;display:flex;align-items:center;cursor:pointer;font-weight:650;color:var(--warn,#8a5a00)}
.byos-why p{margin:4px 0 6px}
.byos-accrow{gap:4px 6px;min-height:40px}.byos-accname{font-weight:650}.byos-accmeta{color:var(--muted)}.byos-acc-st.ok{color:var(--good,#0b8a74);font-weight:650}.byos-acc-st.no{color:var(--muted)}
.byos-nav{position:sticky;bottom:0;z-index:4;background:var(--card,#fff);border-top:1px solid var(--line);padding:8px 0;margin:0 -2px}
.byos-nav button{margin:0;width:auto;min-width:96px}
@media (max-width:720px){.byos-steps .wiz-l{display:none}.byos-steps .wiz-step{padding:0;min-height:36px}.byos-stepbtn{justify-content:center;width:100%;padding:4px 0}
 .byos-nav{bottom:calc(var(--bn-h,58px) + env(safe-area-inset-bottom));justify-content:space-between}.byos-nav button{flex:1}}
@media (max-width:480px){.byos-st-n{min-width:0;flex:1 1 100%}.byos-grid{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.byos-wiz *{transition:none!important}}
/* REV003 M8 Q6: live rows greyed + inline reason; solid navy sticky bar with content padding = bar height; themed controls, whole row tappable */
.byos-intro{margin:0 0 10px}
.byos-live .byos-accrow{opacity:.62;cursor:not-allowed;flex-wrap:wrap;min-height:0;padding:4px 0}.byos-livewhy{flex:1 1 100%;padding-left:28px;color:var(--muted)}.byos-live .byos-acc-st{min-width:0}.byos-lock{width:20px;text-align:center;color:var(--muted)}
.byos-opt:not(.disabled){cursor:pointer;border-radius:10px;padding:2px 8px;margin:0 -8px}.byos-opt:not(.disabled):hover{background:var(--soft,#f1f5fb)}
.byos-opt:has(input:checked){background:color-mix(in srgb,var(--blue,var(--accent,#2563eb)) 16%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--blue,var(--accent,#2563eb)) 55%,transparent)}
.byos-wiz input[type=checkbox],.byos-wiz input[type=radio]{appearance:none;width:20px;height:20px;margin:0;flex:none;border:2px solid var(--muted);background:var(--soft,#fff);cursor:pointer;display:inline-grid;place-items:center}
.byos-wiz input[type=checkbox]{border-radius:5px}.byos-wiz input[type=radio]{border-radius:50%}
.byos-wiz input[type=checkbox]:checked{background:var(--blue,var(--accent,#2563eb));border-color:var(--blue,var(--accent,#2563eb))}
.byos-wiz input[type=checkbox]:checked::after{content:"";width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}
.byos-wiz input[type=radio]:checked{border-color:var(--blue,var(--accent,#2563eb));box-shadow:inset 0 0 0 4px var(--soft,#fff);background:var(--blue,var(--accent,#2563eb))}
.byos-wiz input:disabled{opacity:.5;cursor:not-allowed}
.byos-wiz select,.mk-page select,header.topbar select{appearance:none;background-color:var(--soft,#fff);color:var(--ink);border:1px solid var(--line);border-radius:9px;min-height:40px;padding:6px 34px 6px 10px;
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238fb0ff' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.byos-wiz select:focus-visible{outline:2px solid var(--focus,var(--accent,#2563eb));outline-offset:2px}
html[data-theme=dark] .byos-nav{background:#0b1122}.byos-nav{background:var(--hdr,var(--card,#fff));border-top:1px solid var(--line);padding:10px 12px;margin:0 -12px;box-shadow:0 -8px 20px #0004}
.byos-nav button:not(.primary){background:var(--soft,#fff);color:var(--ink);border:1px solid color-mix(in srgb,var(--ink) 35%,transparent)}
.byos-wiz .byos-pane{padding-bottom:8px}.byos-wiz{padding-bottom:0}
header.topbar select.role-sel{appearance:none;padding-right:34px;background:var(--soft,#fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238fb0ff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center}
/* M9 R5: compact page intro after step 1, legible live-row reason, sticky bar border + shadow, help text beside Next */
.byos-live .byos-accrow{opacity:1}.byos-live .byos-accname,.byos-live .byos-accmeta,.byos-live .byos-acc-st{color:var(--muted)}.byos-live .byos-livewhy{color:var(--muted);opacity:1}
.byos-help{flex:1 1 100%;order:-1;color:var(--muted);font-size:.8rem;text-align:right}.byos-help:empty{display:none}
.byos-nav{border-top:1px solid var(--line);box-shadow:0 -8px 20px #0006;flex-wrap:wrap}.byos-nav button:disabled{opacity:.55;cursor:not-allowed}
.byos-wiz{scroll-padding-bottom:140px}
@media (max-width:720px){.byos-compact .mk-sub{display:none}.byos-compact .mk-hero h1{font-size:22px;margin:2px 0}.byos-compact .mk-hero{margin-bottom:4px}
 .byos-compact .mk-hero .mk-pill{display:none}.byos-compact .byos-intro{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 6px}
 .byos-help{text-align:center}}
.bottomnav .more[aria-current]{color:var(--brand);background:var(--soft)}
/* M10 S5: wizard on phone = header row (menu, logo, pill) + wizard + sticky Back/Next only; role/theme/Quick Trade row and the bottom tab bar hide
   (Menu still opens every page); safety line wraps in its short form; live accounts = one disabled line; stepper = 5 segments with short labels */
.byos-intro-short,.byos-steps .wiz-s{display:none}
@media (max-width:720px){body.byos-wizard header.topbar #roleSel,body.byos-wizard header.topbar .hdr-right,body.byos-wizard header.topbar::after,body.has-bnav.byos-wizard #bottomNav.bottomnav{display:none!important}
 body.has-bnav.byos-wizard{padding-bottom:env(safe-area-inset-bottom)}body.byos-wizard .byos-nav{bottom:0;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
 .byos-compact .byos-intro{white-space:normal;overflow:visible;text-overflow:clip}.byos-compact .byos-intro-full{display:none}.byos-compact .byos-intro-short{display:inline}
 .byos-steps{gap:4px}.byos-steps .wiz-step,.byos-steps .wiz-step[aria-current=step]{border:0;box-shadow:none;background:none;min-height:0}
 .byos-stepbtn{flex-direction:column;gap:4px;padding:2px 0;min-height:36px}.byos-steps .wiz-n{font-size:0;width:100%;height:5px;min-width:0;border-radius:3px;background:var(--line)}
 .byos-steps .wiz-step.done .wiz-n{background:var(--good,#0b8a74)}.byos-steps .wiz-step[aria-current=step] .wiz-n{background:var(--blue,var(--accent,#2563eb))}
 .byos-steps .wiz-s{display:block;font-size:.72rem;color:var(--muted);line-height:1.2}.byos-steps .wiz-step[aria-current=step] .wiz-s{color:var(--ink);font-weight:650}
 .byos-wiz .byos-prog{display:none}}
.byos-livesum{align-items:center;gap:6px;flex-wrap:nowrap!important}.byos-livesum .byos-livewhy{flex:1 1 auto;padding:0}.byos-livemore{margin-left:auto;min-height:32px;white-space:nowrap}
@media (max-width:720px){html .byos-wiz .byos-steps .wiz-step,html[data-theme] .byos-wiz .byos-steps .wiz-step.done{border:0;box-shadow:none;background:none;border-radius:0}
 .byos-livesum{flex-wrap:wrap!important;row-gap:0}.byos-livesum .byos-accname{flex:1 1 auto}.byos-livesum .byos-livewhy{flex:1 1 100%;order:3;padding-left:26px}.byos-livesum .byos-livemore{order:2}}
@media (max-width:720px){.byos-wiz .byos-steps button.byos-stepbtn{border:0;background:none;box-shadow:none;min-height:36px}}
/* M11 U4: live row = one line + small names line; "Details" is a quiet muted text control with a 44px hit area (no fill, border or underline);
   row tint only when checked (hover tint only on hover-capable pointers); checked = filled box + accent border; disabled Next text >= 3:1 on its fill */
.byos-livesum{display:grid!important;grid-template-columns:20px minmax(0,1fr) auto;column-gap:6px;row-gap:0;align-items:center}
.byos-livesum .byos-accname{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.byos-livenames{grid-column:2/-1;font-size:.8125rem;color:var(--muted);padding:0}
.byos-wiz .byos-livemore,.byos-wiz button.byos-livemore{background:none;border:0;box-shadow:none;text-decoration:none;color:var(--muted);font:inherit;font-size:.875rem;font-weight:600;min-height:44px;min-width:44px;width:auto;margin:0;padding:0 4px;cursor:pointer}
.byos-wiz .byos-livemore::before{content:"· ";color:var(--muted)}.byos-wiz .byos-livemore[aria-expanded=true]{color:var(--ink)}
.byos-opt:not(.disabled):hover{background:none}@media(hover:hover){.byos-opt:not(.disabled):not(:has(input:checked)):hover{background:color-mix(in srgb,var(--ink) 5%,transparent)}}
.byos-opt:has(input:checked){background:color-mix(in srgb,var(--blue,var(--accent,#2563eb)) 12%,transparent);box-shadow:inset 0 0 0 1px var(--blue,var(--accent,#2563eb))}
.byos-nav button.primary:disabled{opacity:1;background:#2a3550;border-color:#2a3550;color:#a9b4cc}html[data-theme=light] .byos-nav button.primary:disabled{background:#d7deea;border-color:#d7deea;color:#4a5a72}
.byos-livesum>.byos-lock{grid-area:1/1}.byos-livesum>.byos-accname{grid-area:1/2}.byos-livesum>.byos-livemore{grid-area:1/3;order:0;margin:0}.byos-livesum>.byos-livenames{grid-area:2/2/3/4;margin-top:-10px}
/* M12 V2: live accounts = one left-aligned 44px disclosure row with a chevron (names only inside); paper rows show status only by exception;
   brighter muted text inside the wizard (every secondary text >= 4.5:1); card has 20px bottom padding + full radius; the sticky Back/Next bar sits
   outside the card (Back ghost, Next filled, 1:2 width split) and the page reserves exactly the bar height at the bottom */
.byos-wizwrap{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
.byos-wizwrap>.byos-wiz{margin:0;padding-bottom:20px;border-radius:16px}.byos-wizwrap>.byos-wiz .byos-pane{padding-bottom:0;margin-bottom:0}
html[data-theme=dark] .byos-wiz,html[data-theme=dark] .byos-wizwrap{--muted:#b4bfd2}html[data-theme=light] .byos-wiz,html[data-theme=light] .byos-wizwrap{--muted:#475a72}
.byos-wiz .byos-live{border:1px solid var(--line);border-radius:12px;margin:0 0 4px;overflow:hidden}
.byos-wiz button.byos-livesum,.byos-wiz button.byos-livesum.byos-livemore{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:44px;margin:0;padding:0 12px;
 border:0;border-radius:0;background:none;box-shadow:none;color:var(--muted);font:inherit;font-size:.9rem;font-weight:600;text-align:left;cursor:pointer}
.byos-wiz .byos-livemore::before{content:none}.byos-wiz button.byos-livesum .byos-accname{flex:0 1 auto;font-weight:600;color:var(--muted)}
.byos-wiz .byos-livesum .byos-chev{font-size:1.25rem;line-height:1;transition:transform .15s}.byos-wiz .byos-livesum[aria-expanded=true] .byos-chev{transform:rotate(90deg)}
.byos-wiz .byos-livesum[aria-expanded=true],.byos-wiz .byos-livesum[aria-expanded=true] .byos-accname{color:var(--ink)}
.byos-wiz .byos-livesum:focus-visible{outline:2px solid var(--focus,#9fb8ff);outline-offset:-2px}
.byos-livebody{border-top:1px solid var(--line);padding:4px 12px 6px}.byos-livebody .byos-accrow{min-height:36px}
.byos-wizwrap>.byos-nav{position:sticky;bottom:0;z-index:4;margin:0;display:grid;grid-template-columns:1fr 2fr;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:14px;
 background:var(--hdr,var(--card,#fff));box-shadow:0 -8px 20px #0005}
html[data-theme=dark] .byos-wizwrap>.byos-nav{background:#0b1122}
.byos-wizwrap>.byos-nav .byos-help{grid-column:1/-1;order:-1;text-align:center}.byos-wizwrap>.byos-nav>button{width:100%;min-width:0;margin:0;min-height:48px}
.byos-wizwrap>.byos-nav>#byosNext:only-child{grid-column:1/-1}
.byos-wizwrap>.byos-nav button.byos-back{background:transparent;color:var(--ink);border:1px solid color-mix(in srgb,var(--ink) 35%,transparent)}
.byos-wizwrap>.byos-nav button.primary:disabled{opacity:1;background:#2c3f6e;border-color:#2c3f6e;color:#d6def0}
html[data-theme=light] .byos-wizwrap>.byos-nav button.primary:disabled{background:#c9d3e3;border-color:#c9d3e3;color:#24324a}
body.byos-wizard main#view{padding-bottom:calc(var(--byos-bar,68px) + 16px)}
@media (max-width:720px){body.byos-wizard .byos-wizwrap>.byos-nav{bottom:0;border-radius:14px 14px 0 0;margin:0 -12px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
 body.has-bnav.byos-wizard main#view,body.byos-wizard main#view{padding-bottom:var(--byos-bar,68px)}}
/* M13 W1: Back/Next = the wizard card's own sticky footer (card gutters, top divider, no separate slab); disabled Next = primary blue at 45% with a white
   label; Back = ghost with a hairline (never heavier than Next); live accounts = a plain note + "Why not live? ›" text button (no border, no chevron row) */
.byos-wizwrap>.byos-wiz>.byos-nav{position:sticky;bottom:0;z-index:4;display:grid;grid-template-columns:1fr 2fr;gap:12px;align-items:center;margin:16px -16px -20px;padding:12px 16px 16px;
 border:0;border-top:1px solid var(--line);border-radius:0 0 16px 16px;background:var(--card,#fff);box-shadow:0 -10px 16px -12px #0007}
.byos-wizwrap>.byos-wiz>.byos-nav .byos-help{grid-column:1/-1;order:-1;text-align:center}.byos-wizwrap>.byos-wiz>.byos-nav>button{width:100%;min-width:0;margin:0;min-height:48px}
.byos-wizwrap>.byos-wiz>.byos-nav>#byosNext:only-child{grid-column:1/-1}
.byos-wizwrap>.byos-wiz>.byos-nav button.byos-back{background:transparent;color:var(--ink);border:1px solid var(--line);font-weight:600;box-shadow:none}
html .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{opacity:1;filter:none;background-image:none;background:#243e81;border-color:transparent;color:#fff;cursor:not-allowed}
html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{background:#3a8f72}
.byos-wiz .byos-live{border:0;border-radius:0;margin:4px 0 0;overflow:visible}
.byos-livenote{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;margin:0;color:var(--muted);font-size:.9rem}.byos-livenote .byos-lock{width:auto}
.byos-livenote .byos-accname{font-weight:500;color:var(--muted)}
.byos-wiz .byos-livenote button.byos-livemore{background:none;border:0;box-shadow:none;color:var(--brand,var(--accent));font:inherit;font-size:.875rem;font-weight:600;min-height:44px;width:auto;margin:0;padding:0 2px;cursor:pointer}
.byos-wiz .byos-livenote button.byos-livemore[aria-expanded=true]{color:var(--ink)}.byos-wiz .byos-livenote button.byos-livemore:focus-visible{outline:2px solid var(--focus,#9fb8ff);outline-offset:2px}
.byos-wiz .byos-livebody{border:1px solid var(--line);border-radius:12px;padding:4px 12px 6px;margin-top:2px}
@media (max-width:650px){body.byos-wizard .byos-wizwrap>.byos-wiz>.byos-nav{margin:12px -12px -20px;padding:12px 12px calc(12px + env(safe-area-inset-bottom))}}
/* M13 W2: list header carries the one state/paper summary; rows are name + source · mode · version */
.byos-listhead{gap:8px;margin-bottom:4px}.byos-listsum{letter-spacing:.02em}.byos-row .small.muted{flex:1 1 100%}
/* M14 X1: disabled Next = neutral surface (no blue, grey label, not-allowed); helper under the account group with an info icon; PAPER + state badges =
   one tinted chip component with an 8px gap; strategy rows (wizard list + overview card) = full-width links >= 56px with a trailing chevron */
html .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{background:#1b2436;border:1px solid #2a3550;color:#8a96ad;cursor:not-allowed;box-shadow:none}
html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{background:#e4e9f1;border-color:#cdd5e2;color:#5b6880}
.byos-accnote{display:flex;align-items:center;gap:6px;margin:-4px 0 12px;text-align:left;color:var(--muted)}.byos-accnote[hidden]{display:none}
.byos-accnote .byos-info{font-size:1rem;line-height:1;color:var(--brand,var(--accent,#7aa2ff))}.byos-accnote .byos-help{display:inline;flex:0 1 auto;order:0;text-align:left;font-size:.85rem;color:var(--muted)}
.byos-badges{display:inline-flex;gap:8px;align-items:center}.byos-badges .mk-chip{margin:0}
.byos-list li.byos-row{display:block;padding:0;min-height:0}
.strat-link{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t c" "m c";align-items:center;column-gap:12px;row-gap:2px;min-height:56px;box-sizing:border-box;
 padding:8px 12px;margin:0 -12px;border-radius:10px;color:var(--ink);text-decoration:none}
.strat-link:hover,.strat-link:focus-visible{background:color-mix(in srgb,var(--ink) 7%,transparent);text-decoration:none}.strat-link:focus-visible{outline:2px solid var(--focus,#9fb8ff);outline-offset:-2px}
.strat-t{grid-area:t;display:flex;align-items:center;gap:8px;min-width:0;font-weight:600;color:var(--ink)}.strat-t>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.strat-m{grid-area:m;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.strat-chev{grid-area:c;font-size:1.4rem;line-height:1;color:var(--muted)}
.ov-list li.ov-strat{display:block}.ov-list li.ov-strat .strat-link{margin:0 -8px;padding:8px}.ov-list li.ov-strat .strat-link>.ov-meta{text-align:left;max-width:none}
.byos-badges .mk-chip.muted{background:#ece7fb;color:#4b3a8f;border-color:transparent}html[data-theme=dark] .byos-badges .mk-chip.muted{background:#2c2648;color:#d2c8f7}
/* M15 Y4: one SVG line-icon set (info, lock; currentColor via mask) instead of emoji; the account helper, the live note and "Why not live? ›" share one
   text column (20px icon + 8px gap); paper account rows = whole-row tap target >= 56px with a secondary state line */
.byos-ico{display:inline-block;width:20px;height:20px;flex:none;background:currentColor;-webkit-mask:center/18px 18px no-repeat;mask:center/18px 18px no-repeat}
.byos-ico.byos-info{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E");
 mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E")}
.byos-ico.byos-lock{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
 mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E")}
.byos-accnote,.byos-wiz .byos-livenote{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:8px;row-gap:0;align-items:center;margin-left:0;padding-left:0}
.byos-accnote .byos-info{color:var(--brand,var(--accent,#7aa2ff))}.byos-livenote .byos-lock{width:20px;color:var(--muted)}
.byos-wiz .byos-livenote button.byos-livemore{grid-column:2;justify-self:start;padding:0;min-height:40px}
.byos-acc .byos-opt.byos-accrow:not(.disabled){display:flex;flex-wrap:nowrap;align-items:center;gap:12px;min-height:56px;padding:8px 10px;margin:0 -10px;box-sizing:border-box}
.byos-acctext{display:flex;flex-direction:column;min-width:0;gap:1px}.byos-acctext .byos-accname{font-weight:600}
.byos-opt .byos-acctext small.byos-accsub{font-size:.8125rem;color:var(--muted);padding:0;flex:none}.byos-accsub a{color:var(--brand,var(--accent));font-weight:600;text-decoration:none}
/* M16 Z6: visually hidden legend (the pane heading "Broker / account" is the visible title); stepper labels 12.5px; upcoming labels and disabled Next stay legible */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.byos-steps .wiz-l,.byos-steps .wiz-s{font-size:12.5px}
/* M17 Q3: hint = first full-width row of the Back/Next bar (directly above the buttons); per-account detail line under each account name */
.byos-wizwrap>.byos-wiz>.byos-nav>.byos-accnote{grid-column:1/-1;margin:0;justify-content:start}.byos-wizwrap>.byos-wiz>.byos-nav>.byos-accnote[hidden]{display:none}
.byos-wizwrap>.byos-wiz>.byos-nav>.byos-accnote .byos-help{text-align:left;order:0;color:#b4bdd0}html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav>.byos-accnote .byos-help{color:#46596b}
/* M18 T3: hint row under the account group = same grid construction as the lock row (20px icon column, text column), icon aligned to the first text line;
   the disabled Next lets taps through to the bar (byos.js scrolls to + highlights the group) */
.byos-wiz .byos-accnote,.byos-wiz .byos-livenote{align-items:start}.byos-wiz .byos-accnote{margin:8px 0 12px}
.byos-wiz .byos-accnote .byos-info,.byos-wiz .byos-livenote .byos-lock{height:20px;margin-top:0}.byos-wiz .byos-accnote .byos-help{display:block;font-size:.875rem;line-height:20px;color:#b4bdd0}
html[data-theme=light] .byos-wiz .byos-accnote .byos-help{color:#46596b}
html .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{pointer-events:none}
.byos-acc.byos-need{outline:2px solid var(--brand,var(--accent,#7aa2ff));outline-offset:6px;border-radius:8px;transition:outline-color .3s}
/* M19 W4: disabled Next = desaturated brand-blue fill (opaque equivalent of rgba(91,141,255,.28) on the card), label #c6d0e8 (>= 3:1), not a near-background box */
html .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{background:#2b4176;border:1px solid #3a5290;color:#c6d0e8}
html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{background:#c9d8fb;border-color:#a9bff2;color:#24345a}
/* M20 X3: disabled Next = neutral slate fill at 40% (no blue border), opaque label >= 3:1 (reverts the M19 W4 blue); the "Choose at least one account"
   hint is the first row of the card footer, directly above Back/Next, in an amber info tint; step 3 drops the page subtitle (paper said by the chip + live line) */
html .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{opacity:1;background:rgba(100,116,139,.4);border:1px solid rgba(100,116,139,.4);color:#cbd3e1}
html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{background:rgba(100,116,139,.4);border-color:rgba(100,116,139,.4);color:#1e293b}
.byos-wizwrap>.byos-wiz>.byos-nav>.byos-accnote{margin:0 0 4px;padding:8px 12px;border-radius:8px;background:rgba(245,185,74,.12);border:1px solid rgba(245,185,74,.35)}
.byos-wizwrap>.byos-wiz>.byos-nav>.byos-accnote .byos-info{color:#f5b94a}.byos-wizwrap>.byos-wiz>.byos-nav>.byos-accnote .byos-help{color:#f3dcae}
html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav>.byos-accnote{background:#fff4dc;border-color:#e8c27a}html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav>.byos-accnote .byos-help{color:#5c3d00}
.byos-s3 .byos-intro,.byos-s3 .mk-hero .mk-sub{display:none}
.byos-wiz .byos-livenote{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px}.byos-wiz .byos-livenote button.byos-livemore{grid-column:auto}
.byos-wiz .byos-livenote .byos-livedot{color:var(--muted)}.byos-wiz .byos-livenote button.byos-livemore::before{content:none}
.byos-s3 .byos-listsum{display:none}
.byos-wizwrap>.byos-wiz>.byos-nav>.byos-accnote .byos-help{grid-column:2;order:0}
/* M21 Y3: helper under the "Broker / account" heading: muted grey inline text on a pristine step; amber only after a tap on the disabled Next (.byos-warn) */
.byos-wiz .byos-pane>.byos-accnote{display:flex;gap:6px;margin:-4px 0 12px;padding:0;background:none;border:0}.byos-wiz .byos-pane>.byos-accnote[hidden]{display:none}
.byos-wiz .byos-pane>.byos-accnote .byos-info{color:#8a93a8}.byos-wiz .byos-pane>.byos-accnote .byos-help{color:#a3acbf}
html[data-theme=light] .byos-wiz .byos-pane>.byos-accnote .byos-help{color:#4f5d73}
.byos-wiz .byos-pane>.byos-accnote.byos-warn .byos-info{color:#f5b94a}.byos-wiz .byos-pane>.byos-accnote.byos-warn .byos-help{color:#f5b94a}
html[data-theme=light] .byos-wiz .byos-pane>.byos-accnote.byos-warn .byos-help,html[data-theme=light] .byos-wiz .byos-pane>.byos-accnote.byos-warn .byos-info{color:#8a5a00}
/* M22 Z4: "Why not live? ›" hit area >= 44px tall; the extra 4px is taken back with negative block margins so the line keeps its visual rhythm */
.byos-wiz .byos-livenote button.byos-livemore{min-height:44px;margin-block:-2px}
/* M23 Y7: step 3 reason beside the disabled Next (>= 13px, >= 4.5:1); the disabled label itself >= 4.5:1 */
.byos-wizwrap>.byos-wiz>.byos-nav:has(>.byos-nextwhy:not([hidden])){grid-template-columns:auto minmax(0,1fr) auto}.byos-wizwrap>.byos-wiz>.byos-nav>.byos-nextwhy{justify-self:end;text-align:right;font-size:13px;line-height:1.3;color:#cbd3e1}
.byos-wizwrap>.byos-wiz>.byos-nav>.byos-nextwhy[hidden]{display:none}.byos-wizwrap>.byos-wiz>.byos-nav>.byos-back{grid-column:1}.byos-wizwrap>.byos-wiz>.byos-nav>#byosNext{grid-column:3}
html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav>.byos-nextwhy{color:#334155}
html:not([data-theme=light]) .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{color:#e2e8f0}
/* M24 X6: Back = Next width; disabled Next = outlined + dimmed label (no filled block, label still >= 4.5:1); "My strategies (N)" disclosure */
.byos-wizwrap>.byos-wiz>.byos-nav,.byos-wizwrap>.byos-wiz>.byos-nav:has(>.byos-back){grid-template-columns:1fr 1fr}
html .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled,html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled,html:not([data-theme=light]) .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{background:transparent;background-image:none;border:1px solid #64748b;color:#aab4c5}
html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{color:#4b5768;border-color:#8a95a8}
.byos-wizwrap>.byos-wiz>.byos-nav>.byos-back{grid-column:1}.byos-wizwrap>.byos-wiz>.byos-nav>#byosNext{grid-column:2}
.byos-listbox>summary{cursor:pointer;list-style:none;min-height:44px}.byos-listbox>summary::-webkit-details-marker{display:none}
.byos-listbox>summary h2::before{content:"▸";display:inline-block;margin-right:8px;font-size:.8em;transition:transform .15s}.byos-listbox[open]>summary h2::before{transform:rotate(90deg)}
.byos-listbox>summary h2{margin:0}.byos-listn{color:var(--muted,#94a3b8);font-weight:500}
@media(max-width:480px){body.byos-wizard .byos-wizwrap>.byos-wiz>.byos-nav{position:fixed;left:0;right:0;bottom:0;z-index:30;margin:0;border-radius:14px 14px 0 0}}
/* M25 W1: one caret only (the global details>summary::before marker is dropped; the h2 keeps its own), one left-aligned row: caret, "My strategies", count */
.byos-listbox>summary::before,.byos-listbox>summary::after{content:none!important;display:none!important}.byos-listbox>summary::marker{content:""}
.byos-listbox>summary.mk-row.spread{justify-content:flex-start;flex-wrap:nowrap;gap:8px}.byos-listbox>summary h2{text-align:left;flex:0 1 auto}.byos-listbox>summary .byos-listsum{margin-left:auto}
/* M25 W2: enabled Next = filled primary gradient; disabled Next = muted filled slate (label >= 4.5:1), Back = quiet ghost text button; footer helper only
   while Next is disabled (13px, >= 4.5:1); <= 480px the bar is sticky inside the card again, so it sits directly under short content (no dead gap) */
html .byos-wizwrap>.byos-wiz>.byos-nav button.primary:not(:disabled){background:linear-gradient(120deg,#3d6cf0,#6a4fe0);border-color:transparent;color:#fff}
html .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled,html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled,html:not([data-theme=light]) .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{background:#273149;background-image:none;border:1px solid #273149;color:#c3cbdb}
html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav button.primary:disabled{background:#dfe4ec;border-color:#dfe4ec;color:#4b5768}
.byos-wizwrap>.byos-wiz>.byos-nav button.byos-back{background:transparent;border:1px solid transparent;color:#c3cbdb;font-weight:500;box-shadow:none}
.byos-wizwrap>.byos-wiz>.byos-nav button.byos-back:hover{background:color-mix(in srgb,var(--ink) 8%,transparent)}html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav button.byos-back{color:#334155}
.byos-wizwrap>.byos-wiz>.byos-nav>.byos-barhelp{grid-column:1/-1;order:-1;margin:0;font-size:13px;line-height:1.3;color:#cbd3e1;text-align:center}.byos-wizwrap>.byos-wiz>.byos-nav>.byos-barhelp[hidden]{display:none}
html[data-theme=light] .byos-wizwrap>.byos-wiz>.byos-nav>.byos-barhelp{color:#334155}
@media(max-width:480px){body.byos-wizard .byos-wizwrap>.byos-wiz>.byos-nav{position:sticky;left:auto;right:auto;bottom:0;margin:12px -12px -20px;border-radius:14px 14px 0 0}
 body.has-bnav.byos-wizard main#view,body.byos-wizard main#view{padding-bottom:16px}}
/* M26 B2: broker logo chip on the account rows (compact: 72x32 area, same no-upscale rule as the directory) */
.byos-accrow .bd-logo.byos-acclogo{width:72px;height:32px;padding:4px 8px;border-radius:8px}
/* M27 C6: step 1 shows its label once (stepper); the pane h3 "Source" stays for focus/screen readers but is visually hidden. Required marker + inline name error
   (only after Next). <= 480px the sticky bar sits below the card's last control: the card keeps >= 12px clear space above the bar */
#byosPane[data-step="1"]>h3{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.byos-req{text-decoration:none;color:#ff8a8a;font-weight:700}
.byos-err{display:block;margin-top:4px;font-size:13px;color:#ff9b9b}.byos-err[hidden]{display:none}html[data-theme=light] .byos-err{color:#b42318}
#byosName[aria-invalid=true]{border-color:#ff6b6b}
@media(max-width:480px){.byos-wizwrap>.byos-wiz>#byosPane{margin-bottom:0;padding-bottom:12px}}
@media(max-width:480px){#byosPane[data-step="1"] .byos-src{display:grid;grid-template-columns:1fr 1fr;column-gap:12px}#byosPane[data-step="1"] .byos-src>legend{grid-column:1/-1}
 #byosPane[data-step="1"] .byos-src .byos-opt{margin:0;padding:2px 6px;font-size:.875rem}}
/* M28 A8a: radio tiles: radio inline-left with its label in EVERY tile (no wrap of the radio, label wraps only), grid cells top-aligned */
.byos-src .byos-opt{flex-wrap:nowrap;align-items:flex-start}.byos-src .byos-opt>input{flex:none;margin-top:1px}
.byos-src .byos-opt>span{flex:1 1 auto;min-width:0;line-height:22px;overflow-wrap:anywhere}
.byos-src .byos-opt{padding-top:11px;padding-bottom:11px;box-sizing:border-box}
@media(max-width:480px){#byosPane[data-step="1"] .byos-src{align-items:start}#byosPane[data-step="1"] .byos-src .byos-opt{align-self:start;padding-top:11px;padding-bottom:11px}}
/* M28 A8b: the sticky Next footer is part of the card: no own top radius/divider/box inside the card (card radius only at the bottom), solid fade above it;
   the next card keeps clear of the footer (40px gap below the wizard card) */
.byos-wizwrap>.byos-wiz>.byos-nav,body.byos-wizard .byos-wizwrap>.byos-wiz>.byos-nav{border:0;border-top:1px solid var(--line);border-radius:0 0 16px 16px;background:var(--card,#101827);
 box-shadow:0 -18px 14px -4px var(--card,#101827)}
@media(max-width:480px){body.byos-wizard .byos-wizwrap>.byos-wiz>.byos-nav{border-radius:0 0 16px 16px}.byos-wizwrap>.byos-wiz{margin-bottom:40px}}
