/* The same authenticated Live app renders Sandbox; only this context picker is unique.
   Accessible inputs and one-screen selection on phones; no nested application viewport. */
.mf-sb-context{
 display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
 margin:0 0 16px;padding:10px 14px;border:1px solid #d8e5ec;border-radius:12px;
 background:linear-gradient(110deg,#fff,#f5f9fc);color:#214a63;font-size:12px;
 box-shadow:0 4px 18px rgba(9,32,52,.035)
}
.mf-sb-context>span{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mf-sb-context>span strong{font-weight:800;color:#17486d}
.mf-sb-context>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.mf-sb-context .btn{padding:8px 11px;min-height:35px;font-size:11px}

.mf-sb-wizard{
 --sb-navy:#0b253b;--sb-blue:#1a557b;--sb-gold:#c7a474;--sb-muted:#6d8396;
 position:fixed;inset:0;z-index:9999;min-height:100dvh;
 overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
 display:grid;place-items:center;padding:clamp(16px,2.4vh,36px);
 background:radial-gradient(ellipse at 5% 4%,#31506b 0,transparent 34%),
 radial-gradient(ellipse at 94% 98%,#375065 0,transparent 34%),#081c2e;
 color:var(--sb-navy);box-sizing:border-box
}
.mf-sb-wizard *, .mf-sb-wizard *::before, .mf-sb-wizard *::after{box-sizing:border-box}
.mf-sb-wizard-card{
 width:min(1170px,100%);min-width:0;overflow:hidden;
 border:1px solid #d5dfe7;border-radius:24px;background:#f6f9fb;
 box-shadow:0 35px 100px rgba(1,12,23,.38),0 0 0 1px rgba(255,255,255,.1);
 margin:auto
}
.mf-sb-hero{
 background:linear-gradient(120deg,#0b273f,#123951 62%,#17394d);
 padding:23px 29px 21px;color:#f7fafc;position:relative
}
.mf-sb-hero:before{content:"";position:absolute;right:-45px;top:-130px;width:380px;height:300px;
 border-radius:50%;background:radial-gradient(circle,#d9b47b17,transparent 69%);pointer-events:none}
.mf-sb-brand{display:flex;align-items:center;gap:10px;font-size:13px;letter-spacing:.15em;
 font-weight:850;color:#f6f8fc;line-height:1.15}
.mf-sb-brand small{display:block;font-size:8px;letter-spacing:.17em;color:#9db6c8;margin-top:5px}
.mf-sb-monogram{display:grid;place-items:center;position:relative;width:39px;height:39px;
 border:1px solid #b4a184;border-radius:11px;font-size:22px;letter-spacing:-.07em;font-weight:900;color:#f4dfc0}
.mf-sb-monogram span{font-size:12px;position:absolute;right:3px;top:2px}
.mf-sb-eyebrow{display:flex;align-items:center;gap:7px;color:#dec49b;font-size:9px;
 letter-spacing:.2em;font-weight:850;margin-top:18px}
.mf-sb-glow-dot{width:7px;height:7px;border-radius:50%;background:#cda96e;
 box-shadow:0 0 0 3px #cda96e24}
.mf-sb-hero h2{font-size:clamp(26px,3vw,38px);line-height:1.15;letter-spacing:-.042em;
 font-weight:800;margin:7px 0 5px;color:#fff}
.mf-sb-hero p{font-size:13px;line-height:1.4;color:#b9c9d5;max-width:650px;margin:0}
.mf-sb-layout{display:grid;grid-template-columns:minmax(0,.74fr) minmax(0,1.18fr) minmax(0,1.18fr);
 gap:12px;padding:16px}
.mf-sb-section{min-width:0;display:flex;flex-direction:column;gap:12px;
 border:1px solid #e0e9ef;border-radius:16px;padding:16px;background:#fff}
.mf-sb-section-head{display:flex;align-items:center;gap:10px;min-width:0;padding-bottom:11px;border-bottom:1px solid #edf1f5}
.mf-sb-section-head .mf-sb-section-num{display:grid;place-items:center;width:29px;height:29px;flex-shrink:0;
 border-radius:9px;background:#edf4f8;color:#3c6a87;font-size:10px;font-weight:900;letter-spacing:.04em}
.mf-sb-section-head>div{min-width:0;flex:1}
.mf-sb-section-head h3{margin:0;font-size:14px;letter-spacing:-.02em;line-height:1.2;color:#17384d;font-weight:850}
.mf-sb-section-head p{margin:4px 0 0;color:#73889a;font-size:10px}
.mf-sb-section-head>.mf-sb-icon{width:19px;height:19px;color:#b08a58;flex:none}
.mf-sb-crew-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.mf-sb-crew{
 min-width:0;min-height:93px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
 background:#f6f9fb;border:1px solid #dce6ed;border-radius:13px;color:#23445a;
 cursor:pointer;transition:border .18s,background .18s,box-shadow .18s;font-family:inherit
}
.mf-sb-crew span{font-size:10px;color:#8295a4;font-weight:650}
.mf-sb-crew strong{font-size:35px;font-weight:850;letter-spacing:-.06em;line-height:1.1}
.mf-sb-crew:hover{background:#eaf2f7;border-color:#8fb0c6}
.mf-sb-crew.active,.mf-sb-crew[aria-pressed="true"]{
 background:linear-gradient(145deg,#173d58,#1e577b);border-color:#bfa078;color:#fff;
 box-shadow:0 4px 10px rgba(14,55,82,.16),inset 0 2px #c4a775
}
.mf-sb-crew.active span{color:#bad1e0}
.mf-sb-desktop-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
 align-content:start;max-height:min(365px,41vh);overflow:auto;scrollbar-width:thin;scrollbar-color:#b9cbd7 transparent;
 padding:1px}
.mf-sb-option{display:flex;align-items:center;gap:9px;min-width:0;min-height:62px;
 background:#f7fafc;border:1px solid #e2eaf0;border-radius:10px;padding:8px;
 color:#28465b;text-align:left;cursor:pointer;font:inherit}
.mf-sb-option:hover{background:#edf5fa;border-color:#a3c0d2}
.mf-sb-option.active{background:#e9f1f6;border-color:#568aad;box-shadow:inset 0 0 0 1px #8fb4cc}
.mf-sb-option-symbol{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;
 border:1px solid #dbe8f0;border-radius:9px;background:#fff;color:#30688e}
.mf-sb-option.active .mf-sb-option-symbol{background:#1a5177;border-color:#1a5177;color:#f9f0e0}
.mf-sb-option-symbol .mf-sb-icon{width:19px;height:19px}
.mf-sb-option-copy{min-width:0;flex:1}
.mf-sb-option-copy strong{display:block;font-size:11px;font-weight:800;line-height:1.35;color:#153a55}
.mf-sb-option-copy small{display:block;font-size:9px;line-height:1.3;color:#7990a1;margin-top:3px;
 white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.mf-sb-option-check{display:grid;place-items:center;color:#1b6c9b;flex:none}
.mf-sb-option-check .mf-sb-icon{width:13px;height:13px;stroke-width:2.8}
.mf-sb-mobile-picker{display:none}
.mf-sb-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;
 border-top:1px solid #dfe9ee;padding:15px 20px;background:#fff}
.mf-sb-selection-summary{display:flex;align-items:center;gap:10px;min-width:0;color:#183c56}
.mf-sb-summary-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;
 border:1px solid #e3e9ee;background:#f4f7f8;border-radius:11px;color:#6a8ba0}
.mf-sb-summary-icon .mf-sb-icon{width:19px;height:19px}
.mf-sb-selection-summary>span:last-child{min-width:0}
.mf-sb-selection-summary strong{display:block;font-size:12px;font-weight:800;line-height:1.35}
.mf-sb-selection-summary strong>span{color:#b2bfc7;padding:0 3px}
.mf-sb-selection-summary small{display:block;font-size:10px;line-height:1.35;color:#7b8e9d;margin-top:2px}
.mf-sb-footer-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}
.mf-sb-cancel,.mf-sb-enter{font:inherit;font-size:12px;font-weight:800;min-height:42px;
 border-radius:10px;cursor:pointer;padding:9px 15px}
.mf-sb-cancel{color:#476578;background:transparent;border:1px solid #dbe4eb}
.mf-sb-enter{display:inline-flex;align-items:center;gap:9px;background:#163d59;border:1px solid #163d59;
 color:#fff;box-shadow:0 3px 12px rgba(11,42,66,.15)}
.mf-sb-enter .mf-sb-icon{width:16px;height:16px;color:#dfc08f}
.mf-sb-enter:disabled{opacity:.55;cursor:wait}
.mf-sb-cancel:hover{background:#eef4f8}
.mf-sb-enter:hover:not(:disabled){background:#20577e}
.mf-sb-wizard :is(button,select):focus-visible{outline:3px solid #b48b51;outline-offset:3px}
body.mf-sandbox-choosing{overflow:hidden}
body.mf-sandbox-choosing #app .mobile-nav,
body.mf-sandbox-choosing #mf-mobile-nav-v2{display:none!important}
@media(max-width:850px){
 .mf-sb-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .mf-sb-section-crew{grid-column:1/-1}
 .mf-sb-crew-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .mf-sb-crew{min-height:76px}
 .mf-sb-desktop-choices{max-height:28vh}
}
@media(max-width:640px){
 .mf-sb-wizard{padding:calc(8px + env(safe-area-inset-top)) 10px calc(8px + env(safe-area-inset-bottom));align-items:center}
 .mf-sb-wizard-card{border-radius:19px}
 .mf-sb-hero{padding:16px 18px 14px}
 .mf-sb-brand{font-size:12px}
 .mf-sb-monogram{width:33px;height:33px;font-size:19px;border-radius:9px}
 .mf-sb-brand small{font-size:7px}
 .mf-sb-eyebrow{margin-top:11px;font-size:8px}
 .mf-sb-hero h2{font-size:25px;margin:5px 0}
 .mf-sb-hero p{font-size:11px;line-height:1.35}
 .mf-sb-layout{grid-template-columns:1fr;gap:8px;padding:10px}
 .mf-sb-section{grid-column:auto;gap:8px;padding:10px 12px;border-radius:12px}
 .mf-sb-section-head{padding:0;border:0;gap:8px}
 .mf-sb-section-head .mf-sb-section-num{width:23px;height:23px;border-radius:7px;font-size:9px}
 .mf-sb-section-head h3{font-size:12px}
 .mf-sb-section-head p{display:none}
 .mf-sb-section-head>.mf-sb-icon{width:17px;height:17px}
 .mf-sb-crew-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 .mf-sb-crew{min-height:50px;border-radius:9px;flex-direction:row;gap:5px}
 .mf-sb-crew span{font-size:8px}
 .mf-sb-crew strong{font-size:22px}
 .mf-sb-desktop-choices{display:none}
 .mf-sb-mobile-picker{display:block}
 .mf-sb-select-wrap{display:flex;align-items:center;position:relative;min-height:44px;
  background:#f5f9fc;border:1px solid #dce8ef;border-radius:9px;color:#17415d}
 .mf-sb-select-wrap:focus-within{border-color:#c1a072;box-shadow:0 0 0 2px #c1a07233}
 .mf-sb-native-icon{display:grid;place-items:center;flex:0 0 39px;color:#2c698e}
 .mf-sb-native-icon .mf-sb-icon{width:19px;height:19px}
 .mf-sb-select-wrap select{appearance:none;-webkit-appearance:none;border:0!important;outline:0!important;
  background:transparent!important;color:#183b53!important;box-shadow:none!important;min-width:0;width:100%;
  min-height:42px;padding:0 24px 0 0!important;font-size:16px!important;font-weight:800;font-family:inherit}
 .mf-sb-select-wrap select:disabled{opacity:.55}
 .mf-sb-chevron{position:absolute;right:11px;pointer-events:none;color:#64869d;font-size:21px}
 .mf-sb-selected-detail{font-size:10px;line-height:1.25;color:#738b9e;margin:5px 0 0 2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mf-sb-footer{display:grid;gap:9px;padding:10px 12px 12px}
 .mf-sb-summary-icon{width:29px;height:29px;flex-basis:29px;border-radius:8px}
 .mf-sb-summary-icon .mf-sb-icon{width:17px;height:17px}
 .mf-sb-selection-summary strong{font-size:11px}
 .mf-sb-selection-summary small{font-size:9px}
 .mf-sb-footer-actions{width:100%;gap:8px}
 .mf-sb-cancel{flex:0 0 auto}
 .mf-sb-enter{flex:1;justify-content:center}
 .mf-sb-cancel,.mf-sb-enter{min-height:42px;padding:8px 12px;font-size:12px}
 .mf-sb-context{margin:0 0 11px;padding:8px 10px}
 .mf-sb-context>div{width:100%}
 .mf-sb-context .btn{flex:1 1 auto}
}
@media(max-width:640px) and (max-height:700px){
 .mf-sb-wizard{align-items:start}
 .mf-sb-hero{padding:11px 15px}
 .mf-sb-hero h2{font-size:22px}
 .mf-sb-hero p{font-size:10px}
 .mf-sb-layout{gap:6px;padding:7px}
 .mf-sb-section{gap:5px;padding:7px 10px}
 .mf-sb-crew{min-height:42px}
 .mf-sb-select-wrap,.mf-sb-select-wrap select{min-height:39px}
 .mf-sb-footer{padding:8px 10px}
}
html[data-mf-theme="dark"] .mf-sb-context{background:#17334c;border-color:#34536b;color:#dce9f5}
html[data-mf-theme="dark"] .mf-sb-context strong{color:#f0cc96}
@media(prefers-reduced-motion:reduce){.mf-sb-wizard *{transition:none!important}}
