/* Trader Space → Member profile modal (profile.js). Dark glass, same family as the Trader Space. v1 */
.mp-overlay{--mp-bg:#031426;--mp-card:rgba(5,30,55,.78);--mp-surf:rgba(9,43,75,.72);--mp-blue:#087BFF;--mp-cyan:#00BFFF;--mp-lb:#8ECFFF;--mp-tx:#F4F8FF;--mp-mu:#91A9C2;--mp-bd:rgba(0,153,255,.40);--mp-gold:#F5BD42;
  position:fixed;inset:0;z-index:4800;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(1,8,18,.74);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:mpFade .2s ease-out both;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--mp-tx);}
.mp-overlay.closing{opacity:0;transition:opacity .16s ease-in;}
body.mp-open{overflow:hidden;}
@keyframes mpFade{from{opacity:0}to{opacity:1}}
@keyframes mpPop{from{opacity:0;transform:translateY(8px) scale(.975)}to{opacity:1;transform:none}}
@keyframes mpSwap{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.mp-box{container:mp / inline-size;position:relative;display:flex;flex-direction:column;width:min(760px,100%);max-height:min(86vh,720px);overflow:hidden;border-radius:20px;padding:0;outline:none;
  background:linear-gradient(135deg,rgba(14,52,90,.9) 0%,rgba(5,28,52,.86) 34%,rgba(3,20,38,.9) 100%),var(--mp-bg);
  -webkit-backdrop-filter:blur(20px) saturate(1.2);backdrop-filter:blur(20px) saturate(1.2);
  border:1px solid var(--mp-bd);box-shadow:0 28px 80px rgba(0,0,0,.6),0 0 0 1px rgba(8,123,255,.10),0 0 46px rgba(8,123,255,.14),inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 60px rgba(8,123,255,.05);
  animation:mpPop .26s cubic-bezier(.22,1,.36,1) both;isolation:isolate;}
.mp-view{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 26px 24px;scrollbar-width:thin;scrollbar-color:rgba(0,153,255,.35) transparent;}
.mp-box::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;background:radial-gradient(520px 260px at 0% 0%,rgba(80,170,255,.16),transparent 70%),radial-gradient(420px 220px at 100% 100%,rgba(0,191,255,.07),transparent 70%);}
.mp-box::after{content:"";position:absolute;left:0;right:0;bottom:0;height:200px;border-radius:0 0 20px 20px;pointer-events:none;z-index:-1;opacity:.13;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 160' preserveAspectRatio='xMidYMax slice'%3E%3Cg opacity='.9'%3E%3Cline x1='40' y1='76' x2='40' y2='134' stroke='%23087BFF' stroke-width='1.4'/%3E%3Crect x='35' y='90' width='10' height='30' rx='1.5' fill='%23087BFF' fill-opacity='.45' stroke='%23087BFF' stroke-width='1.2'/%3E%3Cline x1='62' y1='96' x2='62' y2='134' stroke='%2300BFFF' stroke-width='1.4'/%3E%3Crect x='57' y='110' width='10' height='10' rx='1.5' fill='%2300BFFF' fill-opacity='.45' stroke='%2300BFFF' stroke-width='1.2'/%3E%3Cline x1='84' y1='62' x2='84' y2='115' stroke='%2300BFFF' stroke-width='1.4'/%3E%3Crect x='79' y='76' width='10' height='25' rx='1.5' fill='%2300BFFF' fill-opacity='.45' stroke='%2300BFFF' stroke-width='1.2'/%3E%3Cline x1='106' y1='46' x2='106' y2='114' stroke='%23087BFF' stroke-width='1.4'/%3E%3Crect x='101' y='60' width='10' height='40' rx='1.5' fill='%23087BFF' fill-opacity='.45' stroke='%23087BFF' stroke-width='1.2'/%3E%3Cline x1='128' y1='76' x2='128' y2='134' stroke='%2300BFFF' stroke-width='1.4'/%3E%3Crect x='123' y='90' width='10' height='30' rx='1.5' fill='%2300BFFF' fill-opacity='.45' stroke='%2300BFFF' stroke-width='1.2'/%3E%3Cline x1='150' y1='102' x2='150' y2='142' stroke='%2300BFFF' stroke-width='1.4'/%3E%3Crect x='145' y='116' width='10' height='12' rx='1.5' fill='%2300BFFF' fill-opacity='.45' stroke='%2300BFFF' stroke-width='1.2'/%3E%3Cline x1='172' y1='66' x2='172' y2='122' stroke='%23087BFF' stroke-width='1.4'/%3E%3Crect x='167' y='80' width='10' height='28' rx='1.5' fill='%23087BFF' fill-opacity='.45' stroke='%23087BFF' stroke-width='1.2'/%3E%3Cline x1='194' y1='40' x2='194' y2='108' stroke='%2300BFFF' stroke-width='1.4'/%3E%3Crect x='189' y='54' width='10' height='40' rx='1.5' fill='%2300BFFF' fill-opacity='.45' stroke='%2300BFFF' stroke-width='1.2'/%3E%3Cline x1='216' y1='56' x2='216' y2='114' stroke='%2300BFFF' stroke-width='1.4'/%3E%3Crect x='211' y='70' width='10' height='30' rx='1.5' fill='%2300BFFF' fill-opacity='.45' stroke='%2300BFFF' stroke-width='1.2'/%3E%3Cline x1='238' y1='86' x2='238' y2='132' stroke='%23087BFF' stroke-width='1.4'/%3E%3Crect x='233' y='100' width='10' height='18' rx='1.5' fill='%23087BFF' fill-opacity='.45' stroke='%23087BFF' stroke-width='1.2'/%3E%3Cline x1='260' y1='50' x2='260' y2='112' stroke='%2300BFFF' stroke-width='1.4'/%3E%3Crect x='255' y='64' width='10' height='34' rx='1.5' fill='%2300BFFF' fill-opacity='.45' stroke='%2300BFFF' stroke-width='1.2'/%3E%3Cline x1='282' y1='70' x2='282' y2='122' stroke='%2300BFFF' stroke-width='1.4'/%3E%3Crect x='277' y='84' width='10' height='24' rx='1.5' fill='%2300BFFF' fill-opacity='.45' stroke='%2300BFFF' stroke-width='1.2'/%3E%3Cline x1='304' y1='36' x2='304' y2='108' stroke='%23087BFF' stroke-width='1.4'/%3E%3Crect x='299' y='50' width='10' height='44' rx='1.5' fill='%23087BFF' fill-opacity='.45' stroke='%23087BFF' stroke-width='1.2'/%3E%3Cline x1='326' y1='64' x2='326' y2='118' stroke='%2300BFFF' stroke-width='1.4'/%3E%3Crect x='321' y='78' width='10' height='26' rx='1.5' fill='%2300BFFF' fill-opacity='.45' stroke='%2300BFFF' stroke-width='1.2'/%3E%3Cline x1='348' y1='90' x2='348' y2='132' stroke='%2300BFFF' stroke-width='1.4'/%3E%3Crect x='343' y='104' width='10' height='14' rx='1.5' fill='%2300BFFF' fill-opacity='.45' stroke='%2300BFFF' stroke-width='1.2'/%3E%3Cline x1='370' y1='58' x2='370' y2='118' stroke='%23087BFF' stroke-width='1.4'/%3E%3Crect x='365' y='72' width='10' height='32' rx='1.5' fill='%23087BFF' fill-opacity='.45' stroke='%23087BFF' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E") center bottom/100% 100% no-repeat;-webkit-mask-image:linear-gradient(to top,#000 20%,transparent);mask-image:linear-gradient(to top,#000 20%,transparent);}
.mp-x{position:absolute;top:12px;right:12px;z-index:3;width:36px;height:36px;display:flex;align-items:center;justify-content:center;padding:0;border-radius:12px;cursor:pointer;color:#fff;background:rgba(3,20,38,.55);border:1px solid rgba(0,191,255,.55);transition:box-shadow .18s,background .18s,transform .18s;}
.mp-x:hover,.mp-x:focus-visible{background:rgba(8,123,255,.22);box-shadow:0 0 16px rgba(0,191,255,.38);outline:none;}
.mp-x:active{transform:scale(.94);}
.mp-view.swap{animation:mpSwap .22s ease-out both;}
.mp-pback{position:absolute;top:12px;left:12px;z-index:3;}
button.mp-stat:focus-visible,.mp-btn:focus-visible,.mp-back:focus-visible,.mp-link:focus-visible,.mp-opt:focus-visible,.mp-pav:focus-visible{outline:2px solid var(--mp-cyan);outline-offset:2px;}

/* header */
.mp-head{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:2px;}
.mp-av{display:inline-flex;align-items:center;justify-content:center;flex:none;width:104px;height:104px;border-radius:50%;overflow:hidden;color:#fff;font-weight:800;font-size:38px;letter-spacing:.02em;background:#0b2340;
  border:2px solid rgba(255,255,255,.14);box-shadow:0 0 0 2px rgba(0,191,255,.28),0 0 26px rgba(8,123,255,.38),0 8px 22px rgba(0,0,0,.4);}
.mp-av img{width:100%;height:100%;object-fit:cover;display:block;}
.mp-av.ini{background:radial-gradient(circle at 30% 24%,#FFE08A 0%,#F5BD42 48%,#C98A12 100%);text-shadow:0 2px 6px rgba(120,70,0,.4);}
.mp-av.sm{width:40px;height:40px;font-size:15px;border-width:1.5px;box-shadow:0 0 0 1px rgba(0,191,255,.22);}
.mp-name{margin:12px 0 0;font-size:25px;line-height:1.15;font-weight:700;letter-spacing:-.01em;overflow-wrap:anywhere;max-width:100%;}
.mp-pref{margin-top:3px;font-size:14.5px;color:var(--mp-lb);font-weight:500;overflow-wrap:anywhere;}

/* statistics */
.mp-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:16px 0 0;border-radius:14px;overflow:hidden;background:rgba(5,30,55,.55);border:1px solid var(--mp-bd);box-shadow:inset 0 1px 0 rgba(255,255,255,.05);}
.mp-stat{display:flex;align-items:center;justify-content:center;gap:10px;padding:11px 10px;cursor:pointer;color:inherit;font:inherit;background:transparent;border:0;border-left:1px solid rgba(0,153,255,.26);transition:background .18s;}
.mp-stat:first-child{border-left:0;}
.mp-stat:hover{background:rgba(8,123,255,.12);}
.mp-sico{display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:50%;color:var(--mp-cyan);background:rgba(8,123,255,.16);border:1px solid rgba(0,191,255,.35);}
.mp-sv{display:flex;flex-direction:column;align-items:flex-start;text-align:left;line-height:1.2;min-width:0;}
.mp-sv b{font-size:20px;font-weight:800;color:var(--mp-tx);}
.mp-sv span{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--mp-cyan);font-weight:500;}
.mp-stat:hover .mp-sv span svg{transform:translateX(3px);}
.mp-sv span svg{transition:transform .18s;}

/* follow / edit */
.mp-act{display:flex;justify-content:center;margin:14px 0 2px;}
.mp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 28px;border-radius:999px;cursor:pointer;font:600 14.5px/1 inherit;font-family:inherit;color:#fff;border:1px solid transparent;transition:background .2s,border-color .2s,box-shadow .2s,transform .12s,opacity .2s;}
.mp-btn:active{transform:scale(.97);}
.mp-btn:disabled{opacity:.6;cursor:default;}
.mp-btn.primary,.mp-btn.follow{min-width:200px;background:linear-gradient(180deg,#1A93FF,#087BFF 55%,#0662CC);border-color:#38D2FF;box-shadow:0 0 0 1px rgba(0,191,255,.2),0 6px 22px rgba(8,123,255,.4),0 0 20px rgba(0,191,255,.22),inset 0 1px 0 rgba(255,255,255,.25);}
.mp-btn.primary:hover,.mp-btn.follow:hover{box-shadow:0 0 0 1px rgba(0,191,255,.3),0 8px 26px rgba(8,123,255,.5),0 0 26px rgba(0,191,255,.32),inset 0 1px 0 rgba(255,255,255,.3);}
.mp-btn.follow.on{background:rgba(5,30,55,.7);border-color:var(--mp-bd);box-shadow:none;}
.mp-btn.follow.on:hover{border-color:rgba(240,68,85,.6);background:rgba(240,68,85,.12);}
.mp-btn.ghost{background:rgba(9,43,75,.6);border-color:var(--mp-bd);height:38px;padding:0 20px;font-size:13.5px;}
.mp-btn.ghost:hover{background:rgba(8,123,255,.2);}
.mp-btn.mini{height:30px;padding:0 14px;font-size:12.5px;min-width:0;}
.mp-btn.mini.follow{min-width:88px;}
.mp-btn .t-on,.mp-btn.on .t-off{display:none;}
.mp-btn.on .t-on{display:inline-flex;}
.mp-btn .t-off{display:inline-flex;align-items:center;gap:8px;}
.mp-btn .l-un{display:none;}
.mp-btn.on:hover .l-on{display:none;}.mp-btn.on:hover .l-un{display:inline;}
.mp-btn.busy{pointer-events:none;}

.mp-nudge{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 0;padding:9px 14px;border-radius:12px;font-size:13px;color:var(--mp-lb);background:rgba(8,123,255,.12);border:1px dashed rgba(0,191,255,.42);}
.mp-nudge button{flex:none;cursor:pointer;padding:7px 14px;border-radius:999px;font:600 13px inherit;font-family:inherit;color:#fff;background:rgba(8,123,255,.4);border:1px solid rgba(0,191,255,.5);}
.mp-nudge button:hover{background:rgba(8,123,255,.6);}

/* details */
.mp-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;}
.mp-card{display:flex;gap:12px;align-items:flex-start;padding:11px 14px;border-radius:13px;min-width:0;background:var(--mp-card);border:1px solid rgba(0,153,255,.30);box-shadow:inset 0 1px 0 rgba(255,255,255,.05);transition:border-color .2s,box-shadow .2s;}
.mp-card:hover{border-color:rgba(0,191,255,.62);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 18px rgba(8,123,255,.2);}
.mp-card.wide{grid-column:1/-1;}
.mp-grid.no-pref .mp-card.about{grid-column:1/-1;}
.mp-ico{display:flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;border-radius:11px;color:var(--mp-cyan);background:rgba(8,123,255,.16);border:1px solid rgba(0,191,255,.3);}
.mp-card.phil{background:linear-gradient(135deg,rgba(8,123,255,.2),rgba(5,30,55,.8) 60%);border-color:rgba(0,191,255,.5);}
.mp-card.phil .mp-ico{color:#fff;background:rgba(8,123,255,.4);border-color:rgba(0,191,255,.6);box-shadow:0 0 16px rgba(0,191,255,.3);}
.mp-cb{min-width:0;flex:1;}
.mp-cb h3{margin:0 0 2px;font-size:12.5px;font-weight:600;color:var(--mp-lb);}
.mp-val{margin:0;font-size:15px;font-weight:500;color:var(--mp-tx);overflow-wrap:anywhere;display:flex;align-items:center;gap:10px;}
.mp-flag{font-size:17px;line-height:1;}
.mp-text{margin:0;font-size:14px;line-height:1.5;color:var(--mp-tx);overflow-wrap:anywhere;}
.mp-none{margin:0;font-size:13.5px;color:var(--mp-mu);font-style:italic;}
.mp-chips{display:flex;flex-wrap:wrap;gap:7px;}
.mp-chip{padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:600;color:var(--mp-tx);background:rgba(8,123,255,.2);border:1px solid rgba(0,191,255,.38);letter-spacing:.02em;}
.mp-link{padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:inherit;cursor:pointer;text-align:left;overflow-wrap:anywhere;}
.mp-link:hover{color:var(--mp-cyan);text-decoration:underline;text-underline-offset:3px;}

/* sub views: followers / following / posts / edit */
.mp-sub{display:flex;align-items:center;gap:10px;margin:0 46px 14px 0;min-height:38px;}
.mp-sub h2{margin:0;font-size:20px;font-weight:700;}
.mp-sub h2 small{font-size:15px;font-weight:500;color:var(--mp-cyan);}
.mp-back{display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;padding:0;border-radius:12px;cursor:pointer;color:#fff;background:rgba(9,43,75,.7);border:1px solid var(--mp-bd);transition:background .18s,box-shadow .18s;}
.mp-back:hover{background:rgba(8,123,255,.28);box-shadow:0 0 14px rgba(0,191,255,.3);}
.mp-search{position:relative;margin-bottom:12px;}
.mp-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--mp-mu);pointer-events:none;}
.mp-search input,.mp-form input,.mp-form textarea,.mp-combo input{width:100%;box-sizing:border-box;color:var(--mp-tx);font:500 14px/1.4 inherit;font-family:inherit;border-radius:10px;background:rgba(3,20,38,.7);border:1px solid rgba(0,153,255,.34);transition:border-color .18s,box-shadow .18s;}
.mp-search input{height:40px;padding:0 16px 0 42px;}
.mp-form input,.mp-combo input{height:40px;padding:0 14px;}
.mp-form select{width:100%;box-sizing:border-box;height:40px;padding:0 12px;color:var(--mp-tx);font:500 14px/1.4 inherit;font-family:inherit;border-radius:10px;background:rgba(3,20,38,.7);border:1px solid rgba(0,153,255,.34);}
.mp-form select:focus{outline:none;border-color:var(--mp-cyan);box-shadow:0 0 0 3px rgba(0,191,255,.18);}
.mp-form select option{background:#071b30;color:#eaf4ff;}
.mp-form textarea{padding:10px 12px;resize:vertical;min-height:76px;}
.mp-search input:focus,.mp-form input:focus,.mp-form textarea:focus,.mp-combo input:focus{outline:none;border-color:var(--mp-cyan);box-shadow:0 0 0 3px rgba(0,191,255,.18);}
.mp-form ::placeholder,.mp-search ::placeholder{color:#5F7894;}
.mp-people{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;}
.mp-prow{display:flex;align-items:center;gap:12px;padding:7px 12px;border-radius:12px;background:var(--mp-card);border:1px solid rgba(0,153,255,.24);transition:border-color .18s,background .18s;}
.mp-prow:hover{border-color:rgba(0,191,255,.5);background:rgba(9,43,75,.7);}
.mp-pav{padding:0;border:0;background:none;cursor:pointer;border-radius:50%;flex:none;}
.mp-pn{flex:1;min-width:0;display:flex;flex-direction:column;}
.mp-pn .mp-link{font-size:14.5px;font-weight:600;color:var(--mp-tx);}
.mp-pn small{font-size:12px;color:var(--mp-lb);}
.mp-you{font-size:12.5px;color:var(--mp-mu);padding:4px 10px;border-radius:999px;border:1px solid rgba(0,153,255,.3);}
.mp-empty,.mp-empty-card{list-style:none;padding:34px 16px;text-align:center;color:var(--mp-mu);font-size:15px;}
.mp-empty-card p{margin:0;}
.mp-more{display:flex;justify-content:center;padding:14px 0 2px;}
.mp-state{text-align:center;padding:30px 12px;}
.mp-state p{margin:0 0 14px;color:#FF9AA6;font-size:15px;}
.mp-sentinel{width:1px;height:1px;}
.mp-prow.skel i,.mp-prow.skel b,.mp-skel i,.mp-skel b,.mp-pskel i,.mp-pskel b{display:block;border-radius:10px;background:linear-gradient(90deg,rgba(9,43,75,.6),rgba(14,60,100,.75),rgba(9,43,75,.6));background-size:200% 100%;animation:mpShim 1.3s linear infinite;}
.mp-prow.skel i{width:40px;height:40px;border-radius:50%;}.mp-prow.skel b{height:14px;width:42%;}
.mp-skel{display:flex;flex-direction:column;align-items:center;gap:12px;padding-top:6px;}
.mp-skel .a{width:104px;height:104px;border-radius:50%;}.mp-skel .b{width:240px;height:28px;}.mp-skel .c{width:100%;height:84px;border-radius:18px;margin-top:8px;}.mp-skel .d{width:240px;height:50px;border-radius:999px;}
.mp-skel>div{display:grid;grid-template-columns:1fr 1fr;gap:14px;width:100%;margin-top:8px;}.mp-skel .e{height:90px;border-radius:16px;}
.mp-pskel{padding:16px;border-radius:16px;background:var(--mp-card);border:1px solid rgba(0,153,255,.24);margin-bottom:12px;}.mp-pskel i{width:44%;height:16px;margin-bottom:12px;}.mp-pskel b{height:12px;margin-top:8px;}
@keyframes mpShim{from{background-position:200% 0}to{background-position:-200% 0}}
.mp-posts .nf-card{margin:0 0 14px;}
.mp-posts .nfp-ro .nfp-actions{justify-content:center;}
.mp-posts .nfp-img{cursor:default;}

/* edit form */
.mp-form{display:flex;flex-direction:column;gap:13px;}
.mp-field{position:relative;min-width:0;}
.mp-field>label{display:block;margin-bottom:5px;font-size:13px;font-weight:600;color:var(--mp-lb);}
.mp-field>label em{font-style:normal;font-weight:500;color:var(--mp-mu);margin-left:6px;}
.mp-count{position:absolute;right:2px;bottom:-17px;font-size:12px;color:var(--mp-mu);}
.mp-field:has(.mp-count){margin-bottom:6px;}
.mp-two{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.mp-ferr{margin:0;padding:11px 14px;border-radius:12px;font-size:14px;color:#FFB3BC;background:rgba(240,68,85,.14);border:1px solid rgba(240,68,85,.5);}
.mp-combo{position:relative;}
.mp-combo input{padding-right:62px;}
.mp-cx{position:absolute;right:34px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:0;border-radius:50%;cursor:pointer;color:var(--mp-mu);background:rgba(255,255,255,.08);}
.mp-cx:hover{color:#fff;background:rgba(255,255,255,.18);}
.mp-cv{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--mp-mu);pointer-events:none;display:flex;}
.mp-list{position:absolute;z-index:6;left:0;right:0;top:calc(100% + 6px);max-height:240px;overflow-y:auto;margin:0;padding:6px;list-style:none;border-radius:14px;background:linear-gradient(180deg,#0b2340,#071b30);border:1px solid var(--mp-bd);box-shadow:0 18px 44px rgba(0,0,0,.6);}
.mp-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 11px;border-radius:8px;font-size:13.5px;cursor:pointer;color:var(--mp-tx);}
.mp-list li small{font-size:12px;color:var(--mp-mu);}
.mp-list li.hi,.mp-list li:hover{background:rgba(8,123,255,.3);}
.mp-list li.none{color:var(--mp-mu);cursor:default;}.mp-list li.none:hover{background:none;}
.mp-pairs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.mp-opt{display:inline-flex;align-items:center;gap:6px;height:31px;padding:0 13px;border-radius:999px;cursor:pointer;font:600 12.5px inherit;font-family:inherit;color:var(--mp-lb);background:rgba(3,20,38,.65);border:1px solid rgba(0,153,255,.34);transition:background .16s,border-color .16s,color .16s;}
.mp-opt:hover{border-color:var(--mp-cyan);}
.mp-opt.on{color:#fff;background:rgba(8,123,255,.4);border-color:var(--mp-cyan);}
.mp-opt.other{border-style:dashed;}
.mp-addp{display:inline-flex;gap:8px;align-items:center;}
.mp-addp input{width:140px;height:31px;padding:0 12px;text-transform:uppercase;}
.mp-bar{display:flex;justify-content:flex-end;gap:12px;margin-top:6px;padding-top:16px;border-top:1px solid rgba(0,153,255,.22);}
.mp-bar .mp-btn{height:40px;}
.mp-bar .primary{min-width:150px;}

/* tablet / phone — the layout follows the modal's own width */
@container mp (max-width:560px){
  .mp-grid,.mp-two{grid-template-columns:1fr;}
  .mp-card.wide,.mp-grid.no-pref .mp-card.about{grid-column:auto;}
  .mp-av{width:92px;height:92px;font-size:34px;}
  .mp-name{font-size:22px;margin-top:10px;}.mp-pref{font-size:14px;}
  .mp-stat{flex-direction:column;gap:6px;padding:14px 4px;}
  .mp-sico{width:30px;height:30px;}.mp-sico svg{width:16px;height:16px;}
  .mp-sv{align-items:center;text-align:center;}.mp-sv b{font-size:18px;}.mp-sv span{font-size:12px;gap:3px;}.mp-sv span svg{display:none;}
  .mp-act .mp-btn{width:100%;min-width:0;}
  .mp-btn.mini.follow{width:auto;min-width:92px;flex:none;}
  .mp-nudge{flex-direction:column;align-items:flex-start;}
  .mp-sub h2{font-size:18px;}
  .mp-bar{flex-direction:column-reverse;}.mp-bar .mp-btn{width:100%;}
  .mp-prow{padding:9px 10px;gap:10px;}
  .mp-ico{width:36px;height:36px;border-radius:10px;}.mp-card{padding:10px 12px;gap:11px;}
}
@media (max-width:640px){
  .mp-overlay{padding:8px;align-items:center;}
  .mp-box{max-height:92vh;border-radius:20px;}
  .mp-view{padding:22px 16px 22px;}
  .mp-pback{top:10px;left:10px;}
  .mp-x{top:10px;right:10px;}
  .mp-sub{margin-right:50px;}
}
@media (prefers-reduced-motion:reduce){
  .mp-overlay,.mp-box,.mp-view.swap{animation:none;}
  .mp-btn,.mp-card,.mp-stat,.mp-x,.mp-sv span svg,.mp-prow{transition:none;}
  .mp-prow.skel i,.mp-prow.skel b,.mp-skel i,.mp-skel b,.mp-pskel i,.mp-pskel b{animation:none;}
}
@media (prefers-reduced-transparency:reduce){.mp-box{-webkit-backdrop-filter:none;backdrop-filter:none;background:#071b30;}}

.mp-chk{display:flex;gap:8px;align-items:center;margin-top:8px;font-size:12.5px;color:#b9c8e6;cursor:pointer}.mp-chk input{accent-color:#ffc247}
