/* ATHRTY X1113 — one right-anchored, in-flow navigation system.
   Replaces X1112 centered dialog and legacy left-edge mobile drawer.
   Uses the existing shell, routes, permission-aware workspace sidebar and token source. */
.x1113-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 0px;
  align-items:stretch;width:100%;min-width:0;max-width:100%;isolation:isolate;
  transition:grid-template-columns 470ms var(--athrty-ease)}
/* Shell must not clip customer dialogs, anchored menus or elevated work surfaces. */
.x1113-layout>.shell{min-width:0;width:100%;max-width:100%;overflow:visible}
.x1113-nav-panel{min-width:0;max-width:100%;box-sizing:border-box;overflow:hidden;align-self:start;position:sticky;top:var(--header-height,72px);height:calc(100dvh - var(--header-height,72px));max-height:calc(100dvh - var(--header-height,72px));visibility:hidden;opacity:0;pointer-events:none;background:var(--athrty-ui-surface);color:var(--athrty-ui-ink);border-left:0 solid var(--athrty-ui-border);transition:opacity 250ms ease,visibility 0s linear 470ms,border-width 470ms var(--athrty-ease)}
body.x1113-nav-open .x1113-layout{grid-template-columns:minmax(0,1fr) clamp(344px,28vw,420px)}
body.x1113-nav-open .x1113-nav-panel{visibility:visible;opacity:1;pointer-events:auto;border-left-width:1px;
  transition:opacity 270ms ease,visibility 0s linear 0s,border-width 470ms var(--athrty-ease);
  overflow-x:hidden;overflow-y:auto;scrollbar-width:thin}
.x1113-nav-interior{min-width:0;display:flex;flex-direction:column;gap:0;padding:clamp(24px,3vw,42px) clamp(20px,2.5vw,38px);box-sizing:border-box}
.x1113-nav-top{display:grid;gap:18px}
.x1113-overline{color:var(--athrty-ui-accent);font-size:11px;letter-spacing:.14em;font-weight:700;line-height:1.6}
.x1113-nav-top h2{font-size:clamp(31px,3.2vw,44px);letter-spacing:-.064em;line-height:1.02;font-weight:460;max-width:13ch;margin:0;color:var(--athrty-ui-ink)}
.x1113-nav-description{font-size:14px;line-height:1.65;color:var(--athrty-ui-muted);margin:15px 0 24px;max-width:45ch}
.x1113-destinations{display:flex;flex-direction:column;border-top:1px solid var(--athrty-ui-border)}
.x1113-destination{display:grid;grid-template-columns:28px minmax(0,1fr) 20px;align-items:center;gap:12px;min-height:78px;border-bottom:1px solid var(--athrty-ui-border);padding:12px 0;color:var(--athrty-ui-ink);text-decoration:none}
.x1113-destination:hover,.x1113-destination:focus-visible,.x1113-destination[aria-current=page]{background:var(--athrty-ui-soft)}
.x1113-index{font-size:10px;color:var(--athrty-ui-accent);font-variant-numeric:tabular-nums;align-self:start;padding-top:5px}
.x1113-destination-copy{display:grid;gap:5px}
.x1113-destination-copy strong{font-size:clamp(21px,2.1vw,28px);font-weight:480;letter-spacing:-.045em;line-height:1.06}
.x1113-destination-copy small{font-size:12px;line-height:1.45;color:var(--athrty-ui-muted);letter-spacing:normal;text-transform:none}
.x1113-direction{font-size:17px;color:var(--athrty-ui-accent);align-self:center}
.x1113-navigation-foot{display:grid;gap:8px;padding:27px 0 0;margin-top:auto}
.x1113-current-context{color:var(--athrty-ui-ink);font-size:12px;overflow-wrap:anywhere;margin:0}
.x1113-rights-note{color:var(--athrty-ui-muted);font-size:10px;line-height:1.7;margin:0}
.x1113-workspace-slot:empty{display:none}
.x1113-workspace-slot{min-width:0;margin-top:20px}
body .global-header{gap:clamp(10px,1.8vw,26px)}
body .global-header .brand-group{flex-shrink:0}
body .global-header .global-actions{margin-left:auto;gap:clamp(5px,.7vw,10px);flex-shrink:0}
body .global-header .x1112-header-nav{margin-left:auto}
body .global-header #drawer-open{box-sizing:border-box;order:99;display:inline-flex!important;flex-shrink:0;align-items:center;justify-content:center;width:52px;height:52px;min-height:52px;min-width:52px;padding:0;border:1px solid var(--athrty-ui-border)!important;border-radius:13px!important;background:var(--athrty-ui-surface)!important;color:var(--athrty-ui-ink)!important;cursor:pointer;position:relative;transition:background 220ms ease,border-color 220ms ease}
body .global-header #drawer-open:hover{border-color:var(--athrty-ui-accent)!important;background:var(--athrty-ui-soft)!important}
body .global-header #drawer-open:focus-visible{outline:2px solid var(--athrty-focus);outline-offset:4px}
.x1113-icon{display:block;position:relative;width:24px;height:19px;pointer-events:none}
.x1113-icon-line{display:block;position:absolute;left:0;height:2px;width:24px;background:currentColor;
  border-radius:2px;transform-origin:50% 50%;
  transition:top 280ms var(--athrty-ease),transform 330ms var(--athrty-ease),width 280ms var(--athrty-ease),opacity 210ms ease}
.x1113-icon-line:first-child{top:5px;left:0}
.x1113-icon-line:last-child{top:13px;left:6px;width:18px}
body.x1113-nav-open .x1113-icon-line:first-child{top:9px;transform:rotate(45deg)}
body.x1113-nav-open .x1113-icon-line:last-child{top:9px;left:0;width:24px;transform:rotate(-45deg)}
/* Header position is controlled exclusively by XHEADER-32000 across all routes. */
body.x1113-nav-open .x1113-nav-panel .x1113-destinations a{animation:x1113-reveal 330ms var(--athrty-ease) both}
body.x1113-nav-open .x1113-nav-panel .x1113-destinations a:nth-child(2){animation-delay:25ms}
body.x1113-nav-open .x1113-nav-panel .x1113-destinations a:nth-child(3){animation-delay:50ms}
body.x1113-nav-open .x1113-nav-panel .x1113-destinations a:nth-child(4){animation-delay:75ms}
@keyframes x1113-reveal{from{opacity:.25;transform:translateX(10px)}to{opacity:1;transform:none}}
.x1113-nav-panel :is(a,button,select):focus-visible{outline:2px solid var(--athrty-focus);outline-offset:4px}
@media(max-width:1180px){
 .x1113-layout{display:flex!important;flex-direction:column;gap:0;transition:none}
 .x1113-layout>.shell{order:1;width:100%;overflow:visible}
 .x1113-nav-panel{order:0;position:relative;top:auto;left:auto;right:auto;height:auto;max-height:0;
   align-self:stretch;width:100%;overflow:hidden!important;min-width:0;border:0;
   border-bottom:0 solid #6a786850;transition:max-height 470ms var(--athrty-ease),opacity 300ms ease,
   visibility 0s linear 470ms,border-width 470ms var(--athrty-ease)}
 body.x1113-nav-open .x1113-nav-panel{height:auto;max-height:min(85dvh,780px);
   overflow-x:hidden!important;overflow-y:auto!important;border-left:0;border-bottom-width:1px;
   transition:max-height 470ms var(--athrty-ease),opacity 300ms ease,visibility 0s linear 0s,border-width 470ms var(--athrty-ease)}
 .x1113-nav-interior{padding:25px clamp(18px,5vw,56px)}
 .x1113-nav-top h2{font-size:clamp(28px,4vw,43px);max-width:24ch}
 .x1113-nav-description{margin:11px 0 17px}
 .x1113-destinations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
 .x1113-destination{min-height:70px}
 body.authenticated .x1113-nav-panel #workspace-drawer{position:static!important;top:auto!important;
  display:flex!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  box-sizing:border-box;border:1px solid rgba(155,177,191,.30);border-radius:16px;padding:15px;background:linear-gradient(145deg,#182832,#111F27);color:#EDF3F5}
 body.authenticated .x1113-nav-panel #workspace-drawer .drawer-heading{display:none!important}
 body.authenticated .x1113-nav-panel #workspace-drawer nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:12px}
 body.authenticated .x1113-nav-panel #workspace-drawer nav a{display:flex!important;justify-content:flex-start!important;
  min-height:44px!important;padding:11px!important}
 body.authenticated .x1113-nav-panel #workspace-drawer .nav-label{display:inline!important}
 body.authenticated .x1113-nav-panel #workspace-drawer .organization-control{display:block!important}
 body.authenticated .x1113-nav-panel #workspace-drawer #project-tools{display:block!important}
 body.authenticated .x1113-nav-panel #workspace-drawer .sidebar-foot{margin-top:12px!important;padding-top:5px}
}
@media(max-width:700px){
 body .global-header .x1112-header-nav{display:none!important}
 .x1113-nav-interior{padding:20px 18px 25px}
 .x1113-nav-top h2{font-size:clamp(27px,7vw,36px)}
 .x1113-destinations{grid-template-columns:1fr;gap:0}
 .x1113-destination{min-height:65px;padding:11px 0}
 .x1113-destination-copy strong{font-size:23px}
 .x1113-nav-description{font-size:12px}
 body .global-header #drawer-open{width:44px;height:44px;min-width:44px;min-height:44px}
 body .global-header .global-actions button.authority-icon{min-width:44px;min-height:44px;width:44px;height:44px;flex:0 0 44px}
}
@media(max-width:380px){
 body .global-header .wordmark{font-size:17px!important}
 body .global-header .global-actions{gap:4px}
 body .global-header .global-actions button.authority-icon{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;flex:0 0 44px}
 body .global-header .global-actions #xprod002-trigger{display:none!important}
 .x1113-destination-copy strong{font-size:21px}
}
/* X-OS-36000 | A single mobile navigation surface with safe-area room and
   no duplicate overlay behind the responsive drawer. No route/permission logic changes. */
@media(max-width:1180px){
 .x1113-nav-panel{
  border-bottom-color:rgba(154,176,189,.22);
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
 }
 body.x1113-nav-open .x1113-nav-panel{
  max-height:min(calc(100dvh - 72px - env(safe-area-inset-bottom,0px)),760px);
  overscroll-behavior:contain;
 }
 .x1113-nav-panel .x1113-destination{min-width:0}
 .x1113-nav-panel .x1113-destination-copy{min-width:0;overflow-wrap:anywhere}
 body.authenticated .x1113-nav-panel #workspace-drawer nav a{
  border-radius:11px!important;
  color:#E5EDF0!important;
 }
}
@media(max-width:760px){
 body.x1121-mobile-active{--x1121-bottom-nav-height:82px}
 body.x1121-mobile-active .body{
  padding-bottom:calc(var(--x1121-bottom-nav-height) + env(safe-area-inset-bottom,0px) + 24px)!important;
 }
 body.x1121-mobile-active main{scroll-padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
 .x1121-mobile-nav:not([hidden]){
  box-sizing:border-box;
  width:100%;
  max-width:100vw;
  min-height:72px;
  padding:7px 8px max(10px,env(safe-area-inset-bottom,0px));
  border-color:rgba(151,173,185,.21);
  background:rgba(13,21,26,.965);
  box-shadow:0 -6px 28px rgba(0,7,14,.20);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
 }
 .x1121-mobile-nav a{
  min-width:0;
  min-height:54px;
  gap:5px;
  border-radius:12px;
  color:#A5B4BD;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
 }
 .x1121-mobile-nav a[aria-current=page]{
  background:rgba(78,108,125,.16);
  color:#EEF3F5;
 }
 .x1121-mobile-nav .x1121-mobile-symbol{color:inherit}
 body.x1113-nav-open .x1121-mobile-nav{visibility:hidden;pointer-events:none}
 .x1113-nav-interior{padding:20px 17px 28px}
 .x1113-nav-description{color:#B3C2C9}
 .x1113-nav-panel .x1113-destination{min-height:62px}
 .x1113-nav-panel .x1113-destination-copy strong{font-size:21px}
 .x1113-nav-panel .x1113-destination-copy small{font-size:12px}
 .x1113-nav-panel :is(a,button,select):focus-visible{outline-color:#BFD0DB!important}
}
@media(max-width:360px){
 .x1121-mobile-nav:not([hidden]){padding-inline:3px;gap:0}
 .x1121-mobile-nav a{font-size:10px;padding-inline:1px}
 .x1121-mobile-nav .x1121-mobile-symbol{width:20px;height:20px}
 .x1113-nav-interior{padding-inline:14px}
}
@media(prefers-reduced-motion:reduce){
 .x1113-layout,.x1113-nav-panel,.x1113-icon-line,
 .x1113-nav-panel *,body.x1113-nav-open .x1113-nav-panel .x1113-destinations a{
  transition:none!important;animation:none!important;transform:none!important;scroll-behavior:auto!important}
}
/* X1121 — Native-feeling bottom destinations use the existing router and Network tab services.
   This is a responsive composition, not a second authenticated sidebar. */
.x1121-mobile-nav{display:none}
.x1121-mobile-nav[hidden],.x1121-mobile-nav a[hidden]{display:none!important}
@media(max-width:760px){
 body.x1121-mobile-active{--x1121-bottom-nav-height:78px}
 body.x1121-mobile-active .body{padding-bottom:calc(var(--x1121-bottom-nav-height) + env(safe-area-inset-bottom,0px))}
 .x1121-mobile-nav:not([hidden]){position:fixed;inset:auto 0 0;z-index:110;display:flex;
  align-items:stretch;justify-content:space-around;gap:3px;min-height:68px;
  padding:6px 9px max(8px,env(safe-area-inset-bottom,0px));
  border-top:1px solid var(--athrty-ui-border);background:var(--athrty-ui-surface);
  box-shadow:0 -7px 24px rgba(16,29,53,.08)}
 .x1121-mobile-nav a{flex:1;min-width:0;min-height:49px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:3px;border-radius:11px;outline-offset:2px;
  color:var(--athrty-ui-muted);text-decoration:none;font-size:11px;font-weight:600;
  transition:background-color .16s ease,color .16s ease}
 .x1121-mobile-nav a[aria-current=page]{background:var(--athrty-ui-soft);color:var(--athrty-ui-ink)}
 .x1121-mobile-nav .x1121-mobile-symbol{display:inline-grid;place-items:center;width:22px;height:22px;line-height:1}
 .x1121-mobile-nav .x1121-mobile-symbol svg{display:block;flex:none;stroke:currentColor}
 .x1121-mobile-nav :is(a:hover,a:focus-visible){background:var(--athrty-ui-soft);color:var(--athrty-ui-ink)}
 .x1121-mobile-nav a:focus-visible{outline:2px solid var(--athrty-ui-accent)}
 body.x1121-mobile-active .x930-mobile-edit{bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}
 body.x1121-mobile-active #notice{bottom:calc(96px + env(safe-area-inset-bottom,0px))!important}
}
@media(prefers-reduced-motion:reduce){.x1121-mobile-nav a{transition:none}}