/* Scoped social windows. Existing game HUD, menu and shipyard geometry is untouched. */
#socialPanel15,#socialGroup15{box-sizing:border-box;color:#e8f0f5;background:linear-gradient(150deg,#153244fa,#071724fc);border:1px solid #bca36b;border-radius:9px;font:14px/1.4 Arial,sans-serif;box-shadow:0 10px 35px #0008;color-scheme:dark}
#socialPanel15 * ,#socialGroup15 *{box-sizing:border-box}
#socialPanel15:not([open]),#socialGroup15[hidden],#socialPanel15 [hidden],#socialGroup15 [hidden]{display:none!important}
#socialPanel15[open]{position:fixed;inset:100px auto 106px 50%;transform:translateX(-50%);margin:0;width:min(720px,calc(100vw - 32px));height:auto;max-width:none;max-height:none;overflow:auto;overscroll-behavior:contain;z-index:110;padding:15px;touch-action:pan-y}
#socialPanel15 .social15-header{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #927d494a;padding:6px 0 7px;position:sticky;top:-15px;z-index:3;background:#102b3c}
#socialPanel15 h2{color:#f0d79e;font:700 20px/1.25 Georgia,serif;letter-spacing:1px;margin:0}
#socialPanel15 h3{font-size:15px;color:#e8d5a7;margin:14px 0 8px}
#socialPanel15 p{margin:7px 0}
#socialPanel15 button,#socialGroup15 button,#socialRestore15{min-height:40px;min-width:40px;padding:6px 12px;color:#eef6fc;background:linear-gradient(#24495c,#112c3d);border:1px solid #798991;border-radius:5px;font:600 13px/1.25 Arial,sans-serif;text-transform:none;touch-action:manipulation;cursor:pointer;white-space:normal}
#socialPanel15 button:disabled{opacity:.5;cursor:not-allowed}
#socialPanel15 button:hover:enabled,#socialGroup15 button:hover{border-color:#e0c68d;background:#264a5f}
#socialPanel15 button:focus-visible,#socialPanel15 input:focus-visible,#socialGroup15 button:focus-visible{outline:2px solid #6ce3eb;outline-offset:2px}
#socialPanel15 .social15-window-tools{display:flex;gap:6px;flex-shrink:0}
#socialPanel15 .minimize11{position:static!important;float:none!important;margin:0!important;min-height:40px!important;min-width:40px!important}
#socialPanel15 .social15-connection{font-size:11px;color:#9ec5d2}
#socialPanel15 .social15-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;margin:12px 0}
#socialPanel15 .social15-search label{grid-column:1/3;font-weight:600;font-size:12px}
#socialPanel15 input{min-width:0;min-height:42px;width:100%;padding:9px 11px;background:#061a28;color:#edf6fb;border:1px solid #607d8d;border-radius:5px;font:16px Arial,sans-serif}
#socialTabs15{display:flex;gap:5px;flex-wrap:wrap;border-bottom:1px solid #74858b55;padding:8px 0}
#socialTabs15 button{flex:1 1 90px}
#socialTabs15 [aria-pressed=true]{border-color:#e5c684;color:#ffdf91;background:#2a4451}
#socialPanel15 .social15-person{display:grid;grid-template-columns:minmax(120px,1fr) auto;align-items:center;gap:7px 12px;border:1px solid #72899755;border-radius:6px;background:#071a2855;padding:10px;margin:7px 0}
#socialPanel15 .social15-identity,#socialGroup15 .social15-identity{display:flex;align-items:baseline;gap:5px 10px;flex-wrap:wrap;min-width:0}
#socialPanel15 strong,#socialGroup15 strong{overflow-wrap:anywhere}
#socialPanel15 .social15-identity small,#socialGroup15 .social15-identity small{flex-basis:100%;color:#b8cbd6}
#socialPanel15 .social15-presence,#socialGroup15 .social15-presence{font-size:11px;color:#9caeb9;white-space:nowrap}
#socialPanel15 .social15-presence:before,#socialGroup15 .social15-presence:before{content:'●';margin-right:4px;color:#84939e}
#socialPanel15 .social15-presence.online:before,#socialGroup15 .social15-presence.online:before{color:#7bd58f}
#socialPanel15 .social15-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
#socialPanel15 .social15-hp{min-width:160px}
#socialPanel15 .social15-hp progress,#socialGroup15 .social15-hp progress{display:block;width:100%;height:6px;accent-color:#62cc9b;border:0;border-radius:3px;overflow:hidden;background:#0b1016}
#socialPanel15 .social15-hp small,#socialGroup15 .social15-hp small{display:block;color:#b8d1d9;font-size:11px;margin-top:2px}
#socialPanel15 .social15-person .social15-actions:last-child:nth-child(3){grid-column:1/3}
#socialPanel15 .social15-leader,#socialGroup15 .social15-leader{color:#e7c986;font-size:11px}
#socialPanel15 .social15-empty,#socialPanel15 .social15-hint{font-size:13px;color:#b7cbd5}
#socialPanel15 .social15-error,#socialGroup15 #socialGroupLink15{color:#ffc896}
#socialStatus15{min-height:19px;font-size:13px}
#socialPanel15 .social15-confirm{position:sticky;top:0;background:#213548;border:1px solid #c5a977;border-radius:6px;padding:10px;z-index:2;box-shadow:0 4px 15px #0006}
#socialGroup15{position:fixed;left:9px;top:126px;width:232px;max-height:calc(100vh - 350px);padding:6px;z-index:66;overflow:auto;overscroll-behavior:contain}
#socialGroup15>header{display:flex;gap:5px}
#socialGroup15>header button:first-child{flex:1;min-width:0;text-align:left}
#socialGroup15>header button{min-height:32px;padding:5px 8px;font-size:12px}
#socialGroup15 .social15-person{padding:6px 4px;border-top:1px solid #61788655;margin-top:5px;font-size:12px}
#socialGroup15 .social15-hp{margin-top:5px}
#socialGroupLink15:empty{display:none}
#socialGroupLink15{display:block;font-size:10px;padding:4px}
#socialRestore15{pointer-events:auto}
html[data-touch-ui=true] #socialPanel15[open]{top:calc(var(--mobile-vtop,0px) + env(safe-area-inset-top,0px) + 4px);bottom:auto;left:calc(env(safe-area-inset-left,0px) + 8px);right:calc(env(safe-area-inset-right,0px) + 8px);transform:none;width:auto;height:calc(var(--mobile-vh,100dvh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 8px);padding:10px 12px;z-index:230}
html[data-touch-ui=true] #socialPanel15 button,html[data-touch-ui=true] #socialGroup15 button{min-height:44px;min-width:44px}
html[data-touch-ui=true] #socialPanel15 .minimize11{min-height:44px!important;min-width:44px!important}
html[data-touch-ui=true] #socialPanel15 h2{font-size:17px}
html[data-touch-ui=true] #socialGroup15{left:50%;transform:translateX(-50%);top:calc(env(safe-area-inset-top,0px) + 60px);width:min(250px,calc(100vw - 180px));max-height:calc(100dvh - 140px);padding:4px}
html[data-touch-ui=true] #socialGroup15 .social15-person{padding:4px 3px;font-size:11px}
@media(max-width:650px){#socialPanel15 .social15-person{grid-template-columns:minmax(0,1fr)}#socialPanel15 .social15-actions{justify-content:flex-start}#socialPanel15 .social15-person .social15-actions:last-child:nth-child(3){grid-column:auto}#socialTabs15 button{flex:1 1 110px}#socialPanel15[open]{inset:90px 8px 100px;transform:none;width:auto}}

html[data-touch-ui=true] #socialPanel15 .social15-header{top:-10px}

/* Short touch screens retain room for members and avoid opening the soft keyboard automatically. */
html[data-touch-ui=true] #socialPanel15:not([data-tab=friends]) .social15-search,
html[data-touch-ui=true] #socialPanel15:not([data-tab=friends]) #socialSearchResults15{display:none}
@media(max-height:550px){
 html[data-touch-ui=true] #socialPanel15 .social15-connection{display:none}
 html[data-touch-ui=true] #socialPanel15 .social15-header{padding-top:2px;padding-bottom:4px}
 html[data-touch-ui=true] #socialPanel15 .social15-search{margin:5px 0;gap:0 8px}
 html[data-touch-ui=true] #socialPanel15 .social15-search label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 html[data-touch-ui=true] #socialTabs15{padding:4px 0}
 html[data-touch-ui=true] #socialStatus15{margin:3px 0;min-height:17px;font-size:12px}
 html[data-touch-ui=true] #socialPanel15 h3{margin:8px 0 6px}
 html[data-touch-ui=true] #socialPanel15 .social15-person{padding:7px;margin:5px 0}
}
#socialStatus15:empty{display:none}
@media(max-height:550px){html[data-touch-ui=true] #socialPanel15 h3{margin:6px 0 4px}}
