/* Personal profile: compact content, independent horizontal previews. The
   shell still owns all device insets and the fixed navigation clearance. */
#commander-table #ct-lobby .ct-profiles-page.op-own-profile{display:block;min-height:0;padding:0}
#commander-table #ct-lobby .op-profile-overview{display:flex;flex-direction:column;gap:10px;min-width:0;max-width:100%;color:#f1f2fa}
#commander-table #ct-lobby .op-profile-overview #ct-primary-summary{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:16px;min-height:118px;box-sizing:border-box;padding:12px 16px;margin:0;border-radius:20px}
#commander-table #ct-lobby .op-profile-overview #ct-primary-summary>.ct-avatar{width:72px;height:72px;border:1.5px solid #e5c84a;border-radius:50%;padding:3px;box-sizing:border-box;overflow:hidden}
#commander-table #ct-lobby .op-profile-overview .ct-avatar>img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#commander-table #ct-lobby .op-profile-overview .ct-avatar>svg{width:100%;height:100%}
#commander-table #ct-lobby .op-profile-identity{min-width:0;padding-right:18px}
#commander-table #ct-lobby .op-profile-overview #ct-primary-summary h1{font-size:26px;font-weight:700;line-height:1.12;text-align:left;margin:0!important;overflow-wrap:anywhere}
#commander-table #ct-lobby .op-profile-tag{display:block;color:#b8bed2;font-size:14px;line-height:18px;margin-top:2px}
#commander-table #ct-lobby .op-profile-overview #ct-profile-settings{position:absolute;right:2px;top:2px;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:11px;margin:0;color:#f1f2fa}
#commander-table #ct-lobby .op-profile-overview #ct-profile-settings svg{width:22px;height:22px;stroke-width:1.7}
#commander-table #ct-lobby .op-profile-clear{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:10px;color:inherit;margin:0;padding:0;min-height:44px;font:inherit;cursor:pointer}
#commander-table #ct-lobby .op-profile-overview button:focus-visible{outline:2px solid #e5c84a;outline-offset:-2px}
#commander-table #ct-lobby .op-profile-strip:focus-visible{outline:none!important}
#commander-table #ct-lobby .op-profile-preview:has(>.op-profile-strip:focus-visible)>header h2{text-decoration:underline;text-decoration-color:#e5c84a;text-underline-offset:5px;text-decoration-thickness:2px}
#commander-table #ct-lobby .op-friend-profile-page{min-width:0}
#commander-table #ct-lobby #ct-friend-profile-back{min-width:44px;min-height:44px;margin:0 0 12px}
#commander-table #ct-lobby #ct-friend-profile-back[hidden]{display:none!important}
#commander-table #ct-lobby .op-friend-profile-body{min-width:0}
#commander-table #ct-lobby .op-friend-profile-body>[hidden]{display:none!important}
#commander-table #ct-lobby .op-friend-profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
/* All ten achievement categories remain available. Only the badge is drawn
   in the banner; their names and progress are retained for assistive tools. */
#commander-table #ct-lobby .op-profile-overview .op-achievements{padding:0;margin:3px 0 0;max-width:142px;width:100%}
#commander-table #ct-lobby .op-profile-overview .op-achievements h2,#commander-table #ct-lobby .op-profile-overview .op-achievement>span:last-child{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#commander-table #ct-lobby .op-profile-overview .op-achievement-strip{gap:5px;padding:0;scrollbar-width:none;scroll-snap-type:x proximity}
#commander-table #ct-lobby .op-profile-overview .op-achievement-strip::-webkit-scrollbar{display:none}
#commander-table #ct-lobby .op-profile-overview button.op-achievement{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;gap:0;scroll-snap-align:start;background:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#commander-table #ct-lobby .op-profile-overview .op-achievement-badge{width:44px;height:44px;border:0;border-radius:8px;box-shadow:none}
#commander-table #ct-lobby .op-profile-overview .op-achievement-badge svg{width:24px;height:24px;margin-top:-9px;stroke-width:1.65}
#commander-table #ct-lobby .op-profile-overview .op-achievement-tier{font-size:9px;line-height:11px;bottom:1px}
#commander-table #ct-lobby .op-profile-traits{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
#commander-table #ct-lobby .op-profile-trait-chips{display:flex;align-items:center;gap:7px;min-width:0;overflow-x:auto;scrollbar-width:none}
#commander-table #ct-lobby .op-profile-trait{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;line-height:16px;padding:6px 9px;border:1px solid #727b9466;border-radius:22px;background:#151a2a80;box-sizing:border-box}
#commander-table #ct-lobby .op-profile-trait svg{width:17px;height:17px;stroke-width:1.65;color:#e5c84a}
#commander-table #ct-lobby .op-profile-mana{display:flex;gap:3px;align-items:center}
#commander-table #ct-lobby .op-profile-mana img{width:16px;height:16px}
#commander-table #ct-lobby .op-profile-trait-empty{color:#adb5ca;font-size:12px;line-height:1.3}
#commander-table #ct-lobby #ct-profile-preferences{display:flex;align-items:center;gap:6px;font-size:12px;flex-shrink:0;padding:0 2px}
#commander-table #ct-lobby #ct-profile-preferences svg{width:17px;height:17px;stroke-width:1.6}
#commander-table #ct-lobby .op-profile-preview{min-width:0;max-width:100%}
#commander-table #ct-lobby .op-profile-preview>header{display:flex;align-items:center;justify-content:space-between;gap:8px;height:30px;margin:0 0 4px}
#commander-table #ct-lobby .op-profile-preview h2{font-size:21px;line-height:26px;font-weight:650;text-align:left;margin:0;padding:0;min-width:0}
#commander-table #ct-lobby .op-profile-preview .op-profile-all{display:flex;align-items:center;justify-content:flex-end;gap:2px;font-size:12px;white-space:nowrap;color:#e5c84a;padding:0;flex-shrink:0}
#commander-table #ct-lobby .op-profile-all svg{width:15px;height:15px;stroke-width:1.6}
#commander-table #ct-lobby .op-profile-strip{list-style:none;display:flex;gap:10px;min-width:0;width:100%;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;padding:2px 0;margin:0;scroll-padding-inline:1px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:none}
#commander-table #ct-lobby .op-profile-strip::-webkit-scrollbar{display:none}
#commander-table #ct-lobby .op-profile-strip>li{display:flex;flex:0 0 auto;min-width:0;scroll-snap-align:start;margin:0;padding:0}
#commander-table #ct-lobby .op-profile-strip button{box-sizing:border-box;max-width:100%;font:inherit;cursor:pointer;margin:0}
#commander-table #ct-lobby .op-profile-stat{display:flex;align-items:center;gap:10px;width:148px;height:70px;min-height:70px;padding:8px 12px;border:1px solid #7883a880;border-radius:15px;color:#f1f2fa;text-align:left;background:#10172d}
#commander-table #ct-lobby .op-profile-stat>svg{flex:none;width:28px;height:28px;color:#e5c84a;stroke-width:1.7}
#commander-table #ct-lobby .op-profile-stat>span:not(.op-profile-picture){min-width:0;display:grid;gap:4px}
#commander-table #ct-lobby .op-profile-stat small{font-size:11px;line-height:14px;color:#c1c6d8}
#commander-table #ct-lobby .op-profile-stat strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:23px;line-height:26px;font-weight:650}
#commander-table #ct-lobby .op-profile-stat[data-profile-stat=commander]{width:172px;padding-left:0;overflow:hidden}
#commander-table #ct-lobby .op-profile-stat[data-profile-stat=commander] strong{font-size:17px;line-height:21px}
#commander-table #ct-lobby .op-profile-stat[data-profile-stat=commander]>svg{margin-left:12px}
#commander-table #ct-lobby .op-profile-picture{position:relative;display:grid;place-items:center;overflow:hidden;background:#0e1428;color:#b9b0cf}
#commander-table #ct-lobby .op-profile-picture>svg{width:28px;height:28px;stroke-width:1.5}
#commander-table #ct-lobby .op-profile-picture>img{position:absolute;width:100%;height:100%;inset:0;object-fit:cover}
#commander-table #ct-lobby .op-profile-picture.is-commander{order:-1;flex:none;width:64px;height:70px;align-self:center}
#commander-table #ct-lobby .op-profile-friend{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;width:60px;padding:1px!important;min-width:60px;height:72px}
#commander-table #ct-lobby .op-profile-friend .op-avatar{display:grid;place-items:center;width:48px;height:48px;min-width:48px;flex:none;overflow:hidden;border:1px solid #e5c84a99;border-radius:50%;box-sizing:border-box;background:#10172d}
#commander-table #ct-lobby .op-profile-friend .op-avatar :is(img,svg){width:100%;height:100%;object-fit:cover}
#commander-table #ct-lobby .op-profile-friend>span:last-child{flex:none;width:100%;font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#commander-table #ct-lobby .op-profile-deck{position:relative;display:flex;flex-direction:column;justify-content:flex-end;width:160px;height:84px;min-height:84px;padding:0;border:1px solid #7883a880;border-radius:14px;overflow:hidden;color:#f1f2fa;background:#10172d;text-align:left}
#commander-table #ct-lobby .op-profile-deck .is-deck{position:absolute;inset:0;width:100%;height:100%}
#commander-table #ct-lobby .op-profile-deck strong{position:relative;z-index:1;display:block;width:100%;min-width:0;box-sizing:border-box;font-size:13px;font-weight:600;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:5px 8px;background:linear-gradient(transparent,#080d21e8 32%);text-shadow:0 1px 3px #000}
#commander-table #ct-lobby .op-profile-credit{position:relative;z-index:1;display:block;width:100%;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:8px;line-height:10px;background:#080d21e8;padding:0 8px 3px;color:#c7c9d8}
#commander-table #ct-lobby .op-profile-card{position:relative;width:64px;height:90px;min-width:64px;min-height:90px;padding:0;border:0;border-radius:6px;overflow:hidden;background:#13182d;color:#eef0ff}
#commander-table #ct-lobby .op-profile-card .is-card{position:absolute;inset:0;border-radius:6px}
#commander-table #ct-lobby .op-profile-card .is-card img{object-fit:contain}
#commander-table #ct-lobby .op-profile-card-name{position:relative;display:block;font-size:10px;line-height:12px;padding:4px;background:#0a1029c9;overflow-wrap:anywhere}
#commander-table #ct-lobby .op-profile-card.is-foil::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,transparent 5%,#75e0fa55 25%,#c486ff66 42%,#ffd76f55 58%,transparent 76%);mix-blend-mode:screen}
#commander-table #ct-lobby .op-profile-foil{position:absolute;right:2px;top:2px;z-index:1;color:#ffe16d;text-shadow:0 1px 3px #000;font-size:13px}
#commander-table #ct-lobby .op-profile-empty{display:flex;align-items:center;justify-content:center;text-align:left;padding:8px 12px!important;min-height:60px;width:min(320px,calc(100vw - 32px));color:#b9bfd0;font-size:13px;border:1px dashed #7883a866!important}
.op-player-preferences{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - max(12px,env(safe-area-inset-top,0px)) - max(12px,env(safe-area-inset-bottom,0px)));overflow:auto;margin:auto;padding:24px;border-radius:22px}
.op-player-preferences h2{margin:0;font-size:25px}
.op-player-preferences-intro{font-size:14px;line-height:1.5;color:#c1c6d8}
.op-player-preferences-form{display:grid;gap:16px}
.op-player-preferences fieldset{border:0;padding:0;margin:0;min-width:0}
.op-player-preferences legend{font-weight:600;padding:0;margin-bottom:10px}
.op-player-preference-options{display:flex;flex-wrap:wrap;gap:8px}
.op-player-preference-options button{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 12px;font-size:14px;color:#eef0ff}
.op-player-preference-options img{width:24px;height:24px}
.op-player-preferences-selection{margin:0;color:#e5c84a;font-size:14px;line-height:1.4}
.op-player-preferences-status{margin:0;font-size:14px;line-height:1.4}
.op-player-preferences-status:empty{display:none}
.op-player-preferences-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.ct-profile-owned-card-preview{display:flex;justify-content:center;min-height:0}
.ct-profile-owned-card-preview:empty{display:none}
.ct-profile-owned-card-preview img{display:block;width:auto;max-width:100%;height:min(48dvh,440px);object-fit:contain;border-radius:8px}
.ct-profile-owned-card p{line-height:1.45}
@media(min-width:900px){
 #commander-table #ct-lobby .op-profile-overview{max-width:840px;margin-inline:auto;gap:18px}
 #commander-table #ct-lobby .op-profile-overview #ct-primary-summary{min-height:154px;padding:22px;grid-template-columns:100px minmax(0,1fr);gap:24px}
 #commander-table #ct-lobby .op-profile-overview #ct-primary-summary>.ct-avatar{width:100px;height:100px}
 #commander-table #ct-lobby .op-profile-overview #ct-primary-summary h1{font-size:32px}
 #commander-table #ct-lobby .op-profile-overview .op-achievements{max-width:320px}
 #commander-table #ct-lobby .op-profile-preview>header{margin-bottom:10px}
 #commander-table #ct-lobby .op-profile-stat{width:210px;height:90px}
 #commander-table #ct-lobby .op-profile-stat[data-profile-stat=commander]{width:250px}
 #commander-table #ct-lobby .op-profile-deck{width:220px;height:112px}
 #commander-table #ct-lobby .op-profile-card{width:80px;height:112px}
 #commander-table #ct-lobby .op-profile-friend{width:76px;height:88px}
 #commander-table #ct-lobby .op-profile-friend .op-avatar{width:60px;height:60px}
}
@media(max-width:600px) and (min-height:800px){
 #commander-table #ct-lobby .op-profile-overview{gap:5px}
 #commander-table #ct-lobby .op-profile-overview #ct-primary-summary{min-height:106px;padding:8px 12px;grid-template-columns:64px minmax(0,1fr);gap:14px}
 #commander-table #ct-lobby .op-profile-overview #ct-primary-summary>.ct-avatar{width:64px;height:64px}
 #commander-table #ct-lobby .op-profile-overview #ct-primary-summary h1{font-size:24px}
 #commander-table #ct-lobby .op-profile-stat{height:62px;min-height:62px}
 #commander-table #ct-lobby .op-profile-picture.is-commander{height:62px}
 #commander-table #ct-lobby .op-profile-deck{height:76px;min-height:76px}
 #commander-table #ct-lobby .op-profile-card{width:58px;min-width:58px;height:81px;min-height:81px}
}
@media(max-width:360px){
 #commander-table #ct-lobby .op-profile-overview #ct-primary-summary{grid-template-columns:58px minmax(0,1fr);padding:10px;gap:10px}
 #commander-table #ct-lobby .op-profile-overview #ct-primary-summary>.ct-avatar{width:58px;height:58px}
 #commander-table #ct-lobby .op-profile-overview #ct-primary-summary h1{font-size:21px}
 #commander-table #ct-lobby .op-profile-trait{padding:5px 7px;font-size:11px;gap:4px}
 #commander-table #ct-lobby .op-profile-trait svg{display:none}
 #commander-table #ct-lobby #ct-profile-preferences{font-size:11px;gap:4px}
}
@media(forced-colors:active){
 #commander-table #ct-lobby .op-profile-card.is-foil::after{display:none}
 #commander-table #ct-lobby .op-profile-deck strong,#commander-table #ct-lobby .op-profile-credit{background:Canvas;color:CanvasText;text-shadow:none}
 #commander-table #ct-lobby .op-profile-trait{border-color:ButtonText;background:Canvas}
}
