/* UI Shell (portal) */
.shell{background:var(--cds-brand);height:48px;display:flex;align-items:center;color:#fff;padding:0 var(--sp-5)}
.shell .brand{font-family:var(--mono);font-size:13px;letter-spacing:.06em;color:#fff;text-decoration:none;margin-right:var(--sp-7)}
.shell .brand b{color:var(--cds-attention);font-weight:500}
.shell nav{display:flex;height:100%}
.shell nav a{display:flex;align-items:center;padding:0 var(--sp-5);color:#d6dfe9;text-decoration:none;
  font-size:var(--type-body);border-bottom:3px solid transparent;border-top:3px solid transparent}
.shell nav a.on{color:#fff;border-bottom-color:var(--cds-attention)}
.shell nav a:hover{background:var(--cds-interactive-hover);color:#fff}
.shell .end{margin-left:auto;display:flex;align-items:center;gap:var(--sp-5);font-size:var(--type-label)}
.shell .end a{color:#d6dfe9;text-decoration:none}
.shell .end a:hover{color:#fff}
.shell .who{color:#d6dfe9;max-width:28ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:520px){.shell .who{display:none}}

footer{border-top:1px solid var(--cds-border-subtle);background:var(--cds-layer)}
footer .wrap{display:flex;justify-content:space-between;padding:18px var(--sp-6);font-size:var(--type-label);color:var(--cds-text-helper)}

.shell-rules{color:#d6dfe9;font-size:var(--type-label);white-space:nowrap}
.shell-tool{min-height:30px;background:none;border:1px solid #52657f;border-radius:4px;color:#d6dfe9;font-size:var(--type-label);padding:0 10px;cursor:pointer}
.shell-tool.mono{font-family:var(--mono)}.shell-tool:hover{background:var(--cds-interactive-hover);color:#fff}
.shell-client-label{font-size:var(--type-label);letter-spacing:.1em;color:#9fb0c4}
.shell-end-public{gap:20px}.shell-end-public a:first-child{font-size:14px}.shell-end-public a:last-child{font-size:12px;color:var(--cds-attention)}
.footer-brand{letter-spacing:.06em}.footer-brand__slash{color:var(--cds-attention)}
.main--fullbleed{padding:0}
.footer-link{color:var(--cds-text-helper)}


/* UI-8 navigation reflow and keyboard polish. */
.shell nav a[aria-current="page"]{font-weight:600}
.shell-tool[aria-pressed="true"]{background:#fff;color:var(--cds-brand);border-color:#fff}
@media(max-width:900px){.shell-rules{display:none}.shell .brand{margin-right:var(--sp-4)}.shell nav a{padding-inline:12px}.shell .end{gap:10px}}
@media(max-width:640px){.shell{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}.shell .brand{flex:0 0 auto}.shell nav{flex:0 0 auto}.shell .end{flex:0 0 auto}.shell .end>a:not(.public-shell__cta){white-space:nowrap}}

/* ============ v19.7.5 compact responsive shell ============ */
.shell{position:relative;flex:0 0 auto;isolation:isolate}
.shell-primary-nav{min-width:0}
.shell-primary-actions{min-width:0}
.shell-menu{display:none;margin-left:auto;position:relative;color:#fff}
.shell-menu>summary{display:inline-flex;align-items:center;justify-content:center;min-width:72px;min-height:40px;padding:0 12px;border:1px solid #52657f;border-radius:var(--ui-control-radius);list-style:none;color:#fff;font-weight:600;cursor:pointer;user-select:none}
.shell-menu>summary::-webkit-details-marker{display:none}
.shell-menu>summary::after{content:'▾';margin-left:8px;font-size:11px}
.shell-menu[open]>summary{background:#fff;color:var(--cds-brand);border-color:#fff}
.shell-menu[open]>summary::after{content:'▴'}
.shell-menu__panel{position:absolute;right:0;top:calc(100% + 8px);z-index:120;width:min(320px,calc(100vw - 24px));padding:8px;border:1px solid var(--cds-border-subtle);border-radius:var(--ui-panel-radius);background:var(--cds-layer);color:var(--cds-text-primary);box-shadow:0 14px 38px rgba(16,32,58,.22)}
.shell-menu__panel nav{display:grid;height:auto}
.shell-menu__panel nav a,.shell-menu__signout,.shell-menu__tools button,.shell-menu__actions a{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 12px;border:0;border-radius:var(--ui-control-radius);background:transparent;color:var(--cds-text-primary);font:500 var(--type-body)/1.25 var(--sans);text-decoration:none;text-align:left}
.shell-menu__panel nav a:hover,.shell-menu__signout:hover,.shell-menu__tools button:hover,.shell-menu__actions a:hover{background:var(--cds-field);color:var(--cds-text-primary)}
.shell-menu__tools{display:grid;padding-top:8px;margin-top:8px;border-top:1px solid var(--cds-border-subtle)}
.shell-menu__tools button{width:100%;cursor:pointer}
.shell-menu__meta,.shell-menu__identity{padding:10px 12px;margin-top:8px;border-top:1px solid var(--cds-border-subtle);font-size:var(--type-label);color:var(--cds-text-secondary);overflow-wrap:anywhere}
.shell-menu__identity strong{display:block;margin-top:3px;color:var(--cds-text-primary)}
.shell-menu__signout{margin-top:4px;color:var(--cds-support-error)}
.shell-menu__actions{display:grid;gap:4px;padding-top:8px;margin-top:8px;border-top:1px solid var(--cds-border-subtle)}
.shell-menu__actions .shell-menu__primary{background:var(--cds-interactive);color:#fff}
.shell-menu__actions .shell-menu__primary:hover{background:var(--cds-interactive-hover);color:#fff}
@media(max-width:720px){
  .shell{height:56px;padding-inline:16px;overflow:visible}
  .shell .brand{margin-right:12px;white-space:nowrap}
  .shell>.shell-primary-nav,.shell>.shell-primary-actions{display:none}
  .shell-menu{display:block}
}
@media(max-width:360px){.shell .brand{font-size:12px;letter-spacing:.035em}.shell-menu>summary{min-width:64px;padding-inline:10px}}
