/* Brand reference: /brand-guide.html. Shared across every signed-in page. */
#helmNavigation{box-sizing:border-box;width:272px;flex:0 0 272px;background:var(--brand-navy);color:#edf7ff;font:14px/1.5 var(--brand-font);padding:20px 20px 14px;position:relative;min-height:100dvh;height:auto;overflow:visible;border-right:1px solid #294452;border-radius:0;z-index:30}
/* Desktop navigation stays stationary beside the independently scrolling content. */
#helmNavigation *{box-sizing:border-box}
#helmNavigation .hn-brand{display:block;padding:0 4px 16px}
#helmNavigation .hn-brand img{width:218px;max-width:100%;height:auto}
#helmNavigation .hn-body{display:flex;flex-direction:column;min-height:0}
#helmNavigation .hn-vessel{border:1px solid #345162;border-radius:12px;padding:12px;margin-bottom:12px;background:#122e40}
#helmNavigation label,#helmNavigation .hn-label{display:block;color:#a3bece;font-size:10px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;margin:0 0 8px}
#helmNavigation select{width:100%;color:white;background:#122e40;border:0;border-radius:4px;padding:4px 0;font:600 18px var(--brand-font);min-height:36px}
#helmNavigation .hn-vessel p{margin:9px 0 2px;font-size:12px;color:#c2d5e0}
#helmNavigation small{font-size:11px;color:#a3bece}
#helmNavigation nav a,#helmNavigation summary{display:block;padding:7px 12px;margin:2px 0;border-radius:7px;color:#d3e3ed;text-decoration:none;font-size:13px;cursor:pointer}
#helmNavigation summary{list-style:none;font-weight:600}
#helmNavigation summary::-webkit-details-marker{display:none}
#helmNavigation summary:after{content:'›';float:right;color:var(--brand-sky)}
#helmNavigation details[open]>summary:after{content:'⌄'}
#helmNavigation nav a:hover,#helmNavigation summary:hover{background:#17394d}
#helmNavigation nav a[aria-current=page]{background:#174c6b;color:#fff;box-shadow:inset 3px 0 var(--brand-sky)}
#helmNavigation .hn-pages{margin:0 0 8px 12px;padding-left:8px;border-left:1px solid #345162}
#helmNavigation .hn-pages a{font-size:12px;padding:6px 11px}
#helmNavigation .hn-label{margin:12px 12px 6px}
#helmNavigation .hn-empty{font-size:12px;color:#a3bece;padding:0 12px}
#helmNavigation .hn-bottom{margin-top:auto;padding-top:18px}
#helmNavigation .hn-account{border-top:1px solid #345162;margin-top:10px;padding:10px 10px 0}
#helmNavigation .hn-account span{display:block;overflow-wrap:anywhere;font-size:11px;color:#a3bece}
#helmNavigation button{font:inherit;cursor:pointer}
#helmNavigation .hn-account button{background:none;border:0;color:#d3e3ed;padding:8px 0;margin-right:15px;font-size:12px}
#helmNavigation .hn-motto{color:#a3bece;font-size:10px;padding:0 10px}
#helmNavigation .hn-toggle{display:none}
#helmNavigation :focus-visible{outline:2px solid var(--brand-sky);outline-offset:3px}
#workspace .layout{display:grid;grid-template-columns:272px minmax(0,1fr);min-height:100dvh}
#workspace .content{padding:40px clamp(20px,4vw,64px);min-width:0}
body.unified-monitor{padding:0}
.unified-monitor .shell{gap:0;align-items:flex-start;flex-direction:row}
.unified-monitor .shell>.rail{display:none!important}
.unified-monitor .shell>.content{min-width:0;flex:1;padding:24px}
@media(max-width:900px){
 #workspace .layout{display:block}
 #helmNavigation{position:relative;top:auto;width:100%;min-height:0;height:auto;padding:16px 20px;overflow:visible}
 #helmNavigation .hn-header{display:flex;align-items:center;gap:14px}
 #helmNavigation .hn-brand{padding:0;width:176px;min-width:0}
 #helmNavigation .hn-brand .hn-wordmark{display:block}
 #helmNavigation .hn-brand .hn-mark{display:none}
 #helmNavigation .hn-toggle{display:grid;place-items:center;position:static;flex:0 0 44px;width:44px;height:44px;background:#ffffff08;border:1px solid #ffffff20;color:white;border-radius:12px;padding:10px}
 #helmNavigation .hn-toggle svg{width:22px;height:22px}
 #helmNavigation .hn-toggle:hover{background:#ffffff14}
 #helmNavigation .hn-body{display:none;padding-top:24px}
 #helmNavigation:has(.hn-toggle[aria-expanded=true]) .hn-body{display:flex}
 #helmNavigation .hn-bottom{padding-top:12px}
 #workspace .content{padding:24px 16px}
 .unified-monitor .shell{display:block}
 .unified-monitor .shell>.content{padding:16px;width:100%}
}

#helmNavigation .pill{margin-top:12px;font-size:11px;max-width:100%;flex-wrap:wrap}
#helmNavigation .pill-meta{font-size:10px}
.gated #helmNavigation{display:none}

#helmNavigation{align-self:stretch}
#helmNavigation .hn-vessel small{display:block}
@media(min-width:901px) and (max-height:800px){
 #helmNavigation{padding-top:16px}
 #helmNavigation .hn-brand{padding-bottom:10px}
 #helmNavigation .hn-vessel{padding:10px;margin-bottom:8px}
 #helmNavigation nav a,#helmNavigation summary{padding-top:5px;padding-bottom:5px}
 #helmNavigation .hn-label{margin-top:8px}
 #helmNavigation .hn-bottom{padding-top:12px}
 #helmNavigation .hn-motto{display:none}
}

/* The application shell stays in the viewport; only its content pane scrolls. */
body:has(#workspace:not([hidden])),body.unified-monitor:not(.gated){overflow:hidden}
#workspace .layout,.unified-monitor .shell{height:100dvh;min-height:0;overflow:hidden}
#workspace .content,.unified-monitor .shell>.content{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain}
#helmNavigation{height:100dvh;min-height:0;flex-shrink:0}
@media(max-width:900px){
 #workspace .layout,.unified-monitor .shell{display:flex;flex-direction:column;align-items:stretch}
 #helmNavigation{height:auto;flex:0 0 auto}
 #workspace .content,.unified-monitor .shell>.content{height:auto;flex:1 1 0}
 /* The mobile menu is a disclosure, separate from the stationary desktop rail. */
 #helmNavigation .hn-body{max-height:65dvh;overflow:auto}
}

/* Luminous navy surfaces: quiet highlights, clear hierarchy, no metallic badges. */
#helmNavigation{background:radial-gradient(ellipse at 0 0,#153c51 0,transparent 48%),var(--brand-navy)}
#helmNavigation .hn-vessel{padding:14px;border:1px solid #78caff29;border-radius:16px;background:linear-gradient(130deg,#78caff0e,#78caff03);box-shadow:inset 0 1px 0 #ffffff08;margin-bottom:14px}
#helmNavigation .hn-vessel-heading{display:flex;align-items:center;gap:10px}
#helmNavigation .hn-vessel-icon{width:36px;height:40px;flex:0 0 36px;display:grid;place-items:center;background:#78caff0c;border:1px solid #78caff22;border-radius:11px;color:var(--brand-sky)}
#helmNavigation .hn-vessel-icon svg{width:23px;height:23px}
#helmNavigation .hn-vessel-choice{min-width:0;flex:1}
#helmNavigation .hn-vessel label{font-size:9px;letter-spacing:.16em;color:#8faec1;margin:0 0 3px}
#helmNavigation .hn-vessel select{font-size:18px;font-weight:600;letter-spacing:-.03em;min-height:28px;padding:0 18px 0 0;background:transparent;text-overflow:ellipsis;cursor:pointer}
#helmNavigation .hn-vessel select option{background:var(--brand-navy);color:#edf7ff}
#helmNavigation .hn-vessel small{font-size:11px;line-height:1.5}
#helmNavigation .hn-vessel-spec{margin-top:11px;color:#b1c9d7}
#helmNavigation .hn-client{color:#8faec1;margin-top:2px}
#helmNavigation #statusPill{display:flex;align-items:center;gap:7px;width:auto;min-height:0;margin:12px 0 0;padding:10px 0 0;border:0;border-top:1px solid #78caff1c;border-radius:0;background:none;box-shadow:none;color:#b1c9d7;cursor:pointer;white-space:normal;font-size:11px;letter-spacing:0}
#helmNavigation #statusPill .pill-label{color:#d7e8f2;font-weight:500}
#helmNavigation #statusPill .pill-meta{font-size:10px;color:#8faec1;margin-left:auto;padding:0}
#helmNavigation .hn-profile{position:relative;border:0;margin:12px 0 0;padding:0}
#helmNavigation .hn-profile>summary{display:flex;align-items:center;gap:10px;padding:10px!important;margin:0;border:1px solid #78caff1a;border-radius:13px;background:#78caff07;list-style:none}
#helmNavigation .hn-profile>summary:after{content:none}
#helmNavigation .hn-profile>summary:hover,#helmNavigation .hn-profile[open]>summary{background:#78caff11;border-color:#78caff45}
#helmNavigation .hn-profile .hn-avatar{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:11px;background:linear-gradient(140deg,#2b789d,#183e57);box-shadow:inset 0 1px 0 #bfe8ff42,0 0 18px #086fa620;color:#e6f6ff;font-size:11px;font-weight:600;letter-spacing:.03em}
#helmNavigation .hn-profile .hn-identity{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
#helmNavigation .hn-identity b{font-size:12px;color:#e3f0f7;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#helmNavigation .hn-identity small{font-size:10px;color:#8faec1}
#helmNavigation .hn-profile-chevron{color:#8faec1;font-size:14px}
#helmNavigation .hn-profile-panel{position:absolute;bottom:calc(100% + 8px);left:0;right:0;padding:14px;border:1px solid #78caff38;border-radius:14px;background:#102c3e;box-shadow:0 14px 35px #0006,inset 0 1px 0 #ffffff0a;z-index:50}
#helmNavigation .hn-profile-label{margin:0;font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#8faec1}
#helmNavigation .hn-profile-email{margin:6px 0 12px;font-size:11px;overflow-wrap:anywhere;color:#dfedf5}
#helmNavigation .hn-profile-panel button{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;padding:10px;margin:0;border-radius:7px;font-size:12px}
#helmNavigation .hn-profile-panel button:hover{background:#78caff14}
#helmNavigation .hn-profile-panel button span{font-size:15px;color:var(--brand-sky)}
@media(min-width:901px){
 #helmNavigation{display:flex;flex-direction:column}
 #helmNavigation .hn-body{flex:1}
 #helmNavigation .hn-bottom{padding-top:12px}
}
@media(min-width:901px) and (max-height:800px){
 #helmNavigation .hn-vessel{padding:12px;margin-bottom:8px}
 #helmNavigation .hn-profile>summary{padding:8px!important}
 #helmNavigation .hn-vessel-spec{margin-top:7px}
 #helmNavigation #statusPill{margin-top:8px;padding-top:8px}
}
#helmNavigation .hn-profile[open]>summary:after{content:none}
#helmNavigation #statusPill:before,#helmNavigation #statusPill:after{display:none}

/* Product icons and a persistent, keyboard-accessible desktop icon rail. */
#helmNavigation .hn-icon{width:20px;height:20px;flex:0 0 20px;color:var(--brand-sky)}
#helmNavigation .hn-product>summary,#helmNavigation .hn-management-link{display:flex;align-items:center;gap:10px}
#helmNavigation .hn-product>summary:after{margin-left:auto}
#helmNavigation .hn-product-label{flex:1}
#helmNavigation .hn-mark,#helmNavigation .hn-vessel-shortcut{display:none}
#helmNavigation .hn-collapse{display:none;background:#78caff0c;border:1px solid #78caff29;color:#d3e3ed;border-radius:8px;padding:6px;align-items:center;justify-content:center}
@media(min-width:901px){
 #helmNavigation .hn-brand{padding-right:32px}
 #helmNavigation .hn-collapse{display:flex;position:absolute;top:24px;right:15px}
 #helmNavigation.hn-collapsed{width:80px;flex-basis:80px;padding:20px 12px 14px}
 #workspace .layout:has(#helmNavigation.hn-collapsed){grid-template-columns:80px minmax(0,1fr)}
 #helmNavigation.hn-collapsed .hn-brand{padding:0 6px 12px}
 #helmNavigation.hn-collapsed .hn-wordmark{display:none}
 #helmNavigation.hn-collapsed .hn-mark{display:block;width:44px}
 #helmNavigation.hn-collapsed .hn-collapse{position:static;align-self:center;margin-bottom:14px}
 #helmNavigation.hn-collapsed .hn-collapse svg{transform:rotate(180deg)}
 #helmNavigation.hn-collapsed .hn-vessel-shortcut{display:flex;justify-content:center;align-items:center;min-height:44px;background:#78caff0c;border:1px solid #78caff29;border-radius:11px;margin-bottom:14px}
 #helmNavigation.hn-collapsed .hn-vessel,#helmNavigation.hn-collapsed .hn-pages,
 #helmNavigation.hn-collapsed .hn-product-label,#helmNavigation.hn-collapsed .hn-link-label,
 #helmNavigation.hn-collapsed .hn-identity,#helmNavigation.hn-collapsed .hn-profile-chevron,
 #helmNavigation.hn-collapsed .hn-motto,#helmNavigation.hn-collapsed .hn-empty{display:none}
 #helmNavigation.hn-collapsed .hn-product>summary,#helmNavigation.hn-collapsed .hn-management-link{justify-content:center;min-height:44px;padding:10px}
 #helmNavigation.hn-collapsed .hn-product>summary:after{content:none}
 #helmNavigation.hn-collapsed .hn-profile>summary{justify-content:center;padding:8px!important}
 #helmNavigation.hn-collapsed .hn-profile-panel{left:64px;right:auto;bottom:0;width:240px}
}
#helmNavigation.hn-collapsed .hn-product>summary[data-active=true]{background:#174c6b;box-shadow:inset 3px 0 var(--brand-sky)}

/* The desktop toggle straddles the navigation/content boundary. */
@media(min-width:901px){
 #helmNavigation .hn-brand{padding-right:4px}
 #helmNavigation .hn-collapse,#helmNavigation.hn-collapsed .hn-collapse{position:absolute;top:32px;right:-17px;width:34px;height:34px;margin:0;padding:6px;border-radius:50%;background:#17394d;border:1px solid #6095b0;box-shadow:0 3px 10px #0003;z-index:60}
 #helmNavigation .hn-collapse:hover{background:#22536e}
}
#helmNavigation .hn-appearance{display:flex;gap:4px;margin:8px 0 10px;padding:3px;background:#071e2c;border-radius:8px}
#helmNavigation .hn-appearance button{display:block;width:auto;flex:1;padding:7px 4px;font-size:11px;text-align:center;min-height:32px}
#helmNavigation .hn-appearance button[aria-checked=true]{background:#245b7b;color:white;box-shadow:inset 0 0 0 1px #78caff55}

/* Align the edge control to the actual logo row, not a fixed page offset. */
@media(min-width:901px){
 #helmNavigation .hn-header{position:relative;display:flex;align-items:center;margin-bottom:16px;flex-shrink:0}
 #helmNavigation .hn-header .hn-brand{padding:0 4px;width:100%}
 #helmNavigation .hn-header .hn-wordmark{display:block}
 #helmNavigation .hn-header .hn-mark{display:none}
 #helmNavigation .hn-header .hn-collapse{top:50%;right:-37px;transform:translateY(-50%)}
 #helmNavigation.hn-collapsed .hn-header .hn-brand{padding:0 6px}
 #helmNavigation.hn-collapsed .hn-header .hn-wordmark{display:none}
 #helmNavigation.hn-collapsed .hn-header .hn-mark{display:block}
 #helmNavigation.hn-collapsed .hn-header .hn-collapse{right:-29px}
}
@media(min-width:901px) and (max-height:800px){
 #helmNavigation .hn-header{margin-bottom:10px}
}
