/* Shared Star Citizen frame. Functional areas keep their existing IDs and controls. */
.sc-shell{--sc-shell-width:1520px;--sc-shell-gutter:clamp(16px,3vw,48px);--sc-shell-line:#294252;--sc-shell-blue:#78d1f0}
/* The legacy .sc-shell rule capped the main element and left it against the viewport edge. */
.sc-shell.sc-shell{width:100%;max-width:none;margin:0;padding:0}
/* Reserve the same banner and menu position on every Star Citizen page. */
html:has(.sc-shell){scrollbar-gutter:stable}
.sc-shell .sc-section-banner{position:relative;isolation:isolate;box-sizing:border-box;height:230px;overflow:hidden;border-bottom:1px solid var(--sc-shell-line);background:#091622}
.sc-shell .sc-section-image{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:70% 52%;opacity:.65}
.sc-shell .sc-section-banner::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#08131f 8%,rgba(8,19,31,.87) 34%,rgba(8,19,31,.2) 80%),linear-gradient(0deg,rgba(8,19,31,.65),transparent 65%)}
.sc-shell .sc-section-inner{box-sizing:border-box;width:min(var(--sc-shell-width),calc(100% - 2 * var(--sc-shell-gutter)));height:100%;margin:0 auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:20px 0;gap:0}
.sc-shell .sc-section-back{display:inline-flex;align-items:center;min-height:30px;color:#a0dafa;font-size:10px;line-height:1.5;letter-spacing:.08em;text-decoration:none;text-transform:uppercase}
.sc-shell .sc-section-label{margin:10px 0 8px;color:#bd9b70;font-size:10px;line-height:1.5;letter-spacing:.18em}
.sc-shell .sc-section-banner h1{margin:0;font:700 clamp(36px,4.4vw,62px)/1.1 Inter,Arial,sans-serif;letter-spacing:-.04em;color:#e5edf3}
.sc-shell .sc-section-banner h1>span{color:#17b9ec}
.sc-shell .sc-section-copy{margin:18px 0 0;color:#b9d9ee;font-size:14px;line-height:1.7;max-width:620px}
.sc-shell .sc-page-heading{margin:0 0 26px;padding:0;background:none;border:0}
.sc-shell .sc-page-heading h2{margin:0 0 12px;font:600 clamp(24px,2.2vw,30px)/1.2 Inter,Arial,sans-serif;letter-spacing:-.025em;color:#e5edf3}
.sc-shell .sc-page-heading p{margin:0;color:#a7c5d8;font-size:13px;line-height:1.8;max-width:720px}
.sc-shell .sc-section-back:focus-visible{outline:2px solid var(--sc-shell-blue);outline-offset:3px}
.sc-shell .grasp-panel:has(>.grasp-next[hidden]){grid-template-columns:minmax(0,1fr)}
@media(max-width:600px){
 .sc-shell .sc-section-banner{height:220px}
 .sc-shell .sc-section-image{object-position:65% 50%}
 .sc-shell .sc-section-copy{font-size:13px;line-height:1.6;margin-top:14px}
 .sc-shell .sc-section-label{font-size:9px}
}
.sc-shell .sc-shell-layout{display:grid;grid-template-columns:224px minmax(0,1fr);gap:28px;align-items:start;width:min(var(--sc-shell-width),calc(100% - 2 * var(--sc-shell-gutter)));max-width:none;margin:0 auto;padding:32px 0 72px}
.sc-shell .sc-shell-content{min-width:0;width:100%;max-width:none;margin:0;padding:0}
.sc-shell .sc-shell-content>.ng-container{width:100%;margin:0}
.sc-shell .sc-shell-sidebar{min-width:0;position:sticky;top:24px;align-self:start;background:#101c27;border:1px solid var(--sc-shell-line);border-radius:7px;overflow:hidden;padding:0}
.sc-shell:not([data-sc-member="true"]) .sc-shell-sidebar{display:none}
.sc-shell:not([data-sc-member="true"]) .sc-shell-layout{grid-template-columns:minmax(0,1fr)}
.sc-shell .sc-shell-label{padding:22px 20px 16px;color:#ba9d75;font-size:11px;line-height:1.5;letter-spacing:.12em;font-weight:600}
.sc-shell .sc-shell-nav{display:grid;gap:5px;padding:0 10px 16px}
.sc-shell .sc-shell-nav a{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px;border:0;border-left:2px solid transparent;border-radius:4px;color:#a7bfce;font:600 11px/1.6 Inter,Arial,sans-serif;letter-spacing:.045em;text-decoration:none;overflow-wrap:anywhere}
.sc-shell .sc-shell-nav a::before{content:'';width:5px;height:5px;flex:0 0 5px;border-radius:50%;background:#52778d}
.sc-shell .sc-shell-nav a:hover{background:#142d3e;color:#e9f6ff}
.sc-shell .sc-shell-nav a[aria-current=page]{background:#193b50;color:#eff9ff;border-left-color:var(--sc-shell-blue)}
.sc-shell .sc-shell-nav a[aria-current=page]::before{background:var(--sc-shell-blue)}
.sc-shell .sc-shell-links{display:grid;gap:4px;padding:12px 20px;border-top:1px solid var(--sc-shell-line)}
.sc-shell .sc-shell-links a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;color:#91adbf;font-size:10px;line-height:1.6;letter-spacing:.035em;text-decoration:none}
.sc-shell .sc-shell-links a>span[aria-hidden]{color:#ba9d75;font-size:15px}
.sc-shell .sc-shell-links a:hover{color:var(--sc-shell-blue)}
.sc-shell .sc-shell-sidebar a:focus-visible,.sc-shell .sc-group-tabs a:focus-visible{outline:2px solid var(--sc-shell-blue);outline-offset:-3px}
/* Every top banner uses the same left and right edges as the workspace. */
.sc-shell .sc-banner-inner,.sc-shell .forum-banner-inner,.sc-shell .sc-knowledge-hero>.sc-knowledge-container{width:min(var(--sc-shell-width),calc(100% - 2 * var(--sc-shell-gutter)));max-width:none;margin-inline:auto;padding-inline:0}
.sc-shell.academy-v2,.sc-shell.reports-page{padding-block:0 60px}
.sc-shell .av2-shell,.sc-shell .rp-shell{width:auto;max-width:none;margin:0}
.sc-shell .av2-mast,.sc-shell .rp-mast{width:min(var(--sc-shell-width),calc(100% - 2 * var(--sc-shell-gutter)));margin:28px auto 0;box-sizing:border-box}
.sc-shell .av2-record-footer,.sc-shell .rp-record-footer{width:min(var(--sc-shell-width),calc(100% - 2 * var(--sc-shell-gutter)));margin-inline:auto}
.sc-shell .community-page-top{padding:0 0 24px}
.sc-shell .community-page-top h1{margin-top:14px}
.sc-shell .community-workspace{padding:0}
.sc-shell .sc-group-tabs{width:100%;max-width:none;gap:6px;margin:0 0 24px;padding:0 0 10px;border-bottom:1px solid var(--sc-shell-line)}
.sc-shell .sc-group-tabs a{min-height:44px;padding:10px 14px;font-size:11px;letter-spacing:.035em;border-radius:4px}
.sc-shell.sc-shell :is(.ng-button,.community-button,.lo-button,.fleet-button){min-height:44px;border-radius:4px;padding:12px 16px;font-size:11px;line-height:1.6;letter-spacing:.04em;text-align:center;justify-content:center;white-space:normal;max-width:100%}
/* Academy account controls are contextual tools, below the page title. */
.sc-shell.academy-v2 .av2-identity{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 24px;padding:18px 20px;margin-bottom:24px;border:1px solid var(--sc-shell-line);border-radius:5px;background:#101c27}
.sc-shell.academy-v2 .av2-identity>.av2-kicker{grid-column:1/-1;margin:0}
.sc-shell.academy-v2 .av2-profile{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:3px 14px;text-align:left;margin:8px 0;min-width:0}
.sc-shell.academy-v2 .av2-profile img,.sc-shell.academy-v2 .av2-profile .av2-initial{width:48px;height:48px;flex:0 0 48px;font-size:20px;padding:3px;margin:0;outline-offset:2px}
.sc-shell.academy-v2 .av2-profile>img,.sc-shell.academy-v2 .av2-profile>.av2-initial{grid-row:1/span 4;grid-column:1}
.sc-shell.academy-v2 .av2-profile>h2,.sc-shell.academy-v2 .av2-profile>p{grid-column:2}
.sc-shell.academy-v2 .av2-profile h2{font-size:18px;margin:0}
.sc-shell.academy-v2 .av2-profile p{font-size:11px;margin:0}
.sc-shell.academy-v2 #academy-account-label{grid-column:1;margin:0}
.sc-shell.academy-v2 .academy-tools{grid-column:2;grid-row:2/4;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;margin:0;max-width:330px}
/* Fleet's local navigation stays above its content rather than forming a second sidebar. */
.sc-shell.fleet-manager-page .forum-layout{display:block}
.sc-shell.fleet-manager-page .forum-sidebar{position:static;width:100%;padding:0;margin:0 0 26px;border:0;background:none;box-shadow:none}
.sc-shell.fleet-manager-page .forum-side-label{display:none}
.sc-shell.fleet-manager-page .forum-sidebar-bottom{display:block;padding:14px 0 0;border:0;background:none}
.sc-shell.fleet-manager-page .fleet-privacy-symbol{display:none}
.sc-shell.fleet-manager-page .forum-sidebar-heading{display:inline;font-size:10px;line-height:1.8;color:#9ab8c9}
.sc-shell.fleet-manager-page .forum-sidebar-bottom p{display:inline;margin:0 0 0 10px;font-size:11px;line-height:1.8;color:#8ca9ba}
.sc-shell.fleet-manager-page .fleet-nav{display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;padding:0 0 10px;margin:0;border:0;border-bottom:1px solid var(--sc-shell-line);overflow:visible}
.sc-shell.fleet-manager-page .fleet-nav button,.sc-shell.fleet-manager-page .fleet-nav .fleet-loadouts-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;flex:0 1 auto;min-height:44px;margin:0;padding:10px 14px!important;border:1px solid transparent;border-radius:4px;background:transparent;color:#96b4c8;font:600 11px/1.6 Inter,Arial,sans-serif;letter-spacing:.035em;white-space:normal}
.sc-shell.fleet-manager-page .fleet-nav :is(button,.fleet-loadouts-link)::before{display:none}
.sc-shell.fleet-manager-page .fleet-nav svg{display:none}
.sc-shell.fleet-manager-page .fleet-nav button.active,.sc-shell.fleet-manager-page .fleet-nav button:hover,.sc-shell.fleet-manager-page .fleet-nav .fleet-loadouts-link:hover{background:#102c3c;border-color:#31596b;color:#7bd8f5}
.sc-shell.fleet-manager-page .forum-content{min-width:0;width:100%;padding:0}
.sc-shell.fleet-manager-page .fleet-toolbar{gap:18px;flex-wrap:wrap}
@media(max-width:1100px){
 .sc-shell .sc-shell-layout{grid-template-columns:204px minmax(0,1fr);gap:22px}
 .sc-shell .academy-grid,.sc-shell .av2-lower{grid-template-columns:minmax(0,1fr)}
 .sc-shell.academy-v2 .av2-identity{display:block}
 .sc-shell.academy-v2 .academy-tools{justify-content:flex-start;margin-top:16px;max-width:none}
}
@media(max-width:900px){
 .sc-shell .sc-shell-layout{grid-template-columns:minmax(0,1fr);gap:24px;padding-block:22px 52px}
 .sc-shell .sc-shell-sidebar{position:static;border-radius:5px}
 .sc-shell .sc-shell-label{padding:14px 16px 8px;font-size:10px}
 .sc-shell .sc-shell-nav{display:flex;flex-wrap:wrap;gap:4px;padding:0 10px 10px}
 .sc-shell .sc-shell-nav a{flex:1 1 130px;min-height:44px;padding:10px;font-size:11px;letter-spacing:.025em}
 .sc-shell .sc-shell-links{display:none}
 .sc-shell .sc-shell-content{padding:0}
}
@media(max-width:480px){
 .sc-shell .sc-shell-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 .sc-shell .sc-shell-nav a{gap:8px;font-size:10px}
 .sc-shell .sc-shell-nav a:last-child{grid-column:1/-1}
 .sc-shell .av2-mast,.sc-shell .rp-mast{margin-top:18px;font-size:9px}
 .sc-shell .sc-group-tabs a,.sc-shell.fleet-manager-page .fleet-nav button,.sc-shell.fleet-manager-page .fleet-nav .fleet-loadouts-link{font-size:10px;padding:10px!important}
}
/* Phone forms: readable fields and comfortable touch targets. */
@media(max-width:600px){
 .sc-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px;min-width:0;max-width:100%}
 .sc-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){min-height:44px}
 .sc-shell.fleet-manager-page .fleet-actions>button{min-height:44px;padding:10px 13px}
 .sc-shell.fleet-manager-page label:has(>input[type=checkbox]){display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px;line-height:1.6}
 .sc-shell.fleet-manager-page label:has(>input[type=checkbox])>input{flex:0 0 auto;width:20px;height:20px}
}
