/* Scoped homepage layout. Module pages and their shared styles are untouched. */
.portal-home .topbar-main{gap:18px}
.portal-home .smc-topbar .brand{flex:0 0 auto}
.portal-home .smc-topbar .top-links{overflow-x:auto;scrollbar-width:thin;flex-wrap:nowrap}
.portal-home .smc-topbar .top-link{flex:none;padding:8px 9px}
.portal-home .smc-topbar .top-tools{margin-left:auto}
.portal-home .main{padding-top:14px}
html:not(.environment-view) .portal-home .dashboard{grid-template-columns:minmax(0,1fr);grid-template-areas:"vessels" "globe";grid-template-rows:auto auto;gap:14px;margin-top:0}
.portal-home .dashboard .vessel-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.portal-home .vessel-card{border-radius:12px}
.portal-home .vessel-head{padding:10px 12px 6px;align-items:center}
.portal-home .vessel-head>div:first-child{min-width:0}
.portal-home .vessel-name{font-size:17px;line-height:1.2}
.portal-home .vessel-meta{font-size:11px!important;line-height:1.35!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.portal-home .vessel-card .status-pill{padding:3px 7px}
.portal-home .vessel-card .route{margin:0 12px 7px;padding:5px 7px;font-size:11px;gap:6px;border-radius:6px}
.portal-home .vessel-card .route span{white-space:normal;overflow-wrap:anywhere;line-height:1.3}
.portal-home .vessel-card .metric-grid{gap:4px;padding:0 12px 7px}
.portal-home .vessel-card .metric{min-height:42px;padding:6px 7px;border-radius:6px}
.portal-home .vessel-card .metric label{font-size:9px;letter-spacing:.2px;line-height:1.3}
.portal-home .vessel-card .metric strong{font-size:13px;line-height:1.25;margin-top:3px;overflow-wrap:anywhere}
.portal-home .vessel-card .rob-row{padding:5px 12px;border-bottom:1px solid var(--border);display:flex;flex-wrap:wrap;gap:3px 12px}
.portal-home .vessel-card .rob-inline{font-size:10px;margin:0;gap:5px}
.portal-home .vessel-card .rob-inline strong{font-size:10px}
.portal-home .vessel-card .vessel-foot{padding:6px 12px;gap:5px;flex-wrap:nowrap}
.portal-home .vessel-card .mini-link{display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;min-width:0;min-height:27px;padding:4px 5px;font-size:11px;line-height:1.5}
.portal-home .globe-panel{height:auto;min-height:0;padding:15px;border-radius:14px}
.portal-home .globe-panel>.panel-head{gap:10px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.portal-home .globe-title{margin:0;font-size:18px!important;line-height:1.3!important;letter-spacing:.25px;display:flex;align-items:center;gap:9px}
.portal-home .globe-title i{color:var(--accent)}
.portal-home .globe-head-actions{margin-left:auto}
.portal-home .globe-workspace{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:16px;min-height:0}
.portal-home .globe-map-column{min-width:0;display:flex;flex-direction:column;position:relative}
.portal-home .globe-controls{flex:none;margin:0;gap:5px;padding:3px;border-radius:8px}
.portal-home .globe-controls .globe-toggle{min-height:34px;font-size:12px!important}
.portal-home .globe-scale{margin:9px 0 0;flex:none}
.portal-home .globe-scale-labels{font-size:10px}
.portal-home .globe-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 8px;flex:none}
.portal-home .globe-focus-controls,.portal-home .globe-zoom-controls{display:flex;gap:5px}
.portal-home .globe-focus,.portal-home .globe-zoom-controls button{min-height:32px;border:1px solid var(--border);border-radius:7px;background:var(--bg-elev);color:var(--text-secondary);font-weight:700;padding:5px 12px;cursor:pointer;transition:background .15s,border-color .15s}
.portal-home .globe-focus.active{border-color:var(--accent);color:var(--accent);background:rgba(0,196,255,.08)}
.portal-home .globe-focus[data-globe-focus="OD"]{color:var(--destiny)}
.portal-home .globe-focus[data-globe-focus="OF"]{color:var(--freedom)}
.portal-home .globe-focus[data-globe-focus="OX"]{color:var(--diamond)}
.portal-home .globe-focus:disabled{opacity:.4;cursor:default}
.portal-home .globe-zoom-controls button{width:33px;padding:5px}
.portal-home .globe-navigation button:hover:not(:disabled){border-color:var(--accent);background:rgba(0,196,255,.1)}
.portal-home .globe-navigation button:focus-visible,.portal-home .globe-stage:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.portal-home .globe-stage{height:400px;min-height:320px;flex:none;border-radius:10px;touch-action:pan-y;background:radial-gradient(ellipse at 50% 45%,rgba(14,49,68,.5),#020712 72%);box-shadow:inset 0 0 50px rgba(0,196,255,.05);isolation:isolate}
.portal-home .globe-overlay{font-size:10px;gap:6px;bottom:10px;left:10px;right:10px;flex-wrap:wrap}
.portal-home .globe-help{margin:7px 0 0;color:var(--text-secondary);font-size:11px;line-height:1.4}
.portal-home .globe-view-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.portal-home .globe-watch{min-width:0;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:10px;background:rgba(0,0,0,.12);overflow:hidden}
.portal-home .globe-watch-heading{display:flex;flex-direction:column;gap:4px;padding:12px 13px;border-bottom:1px solid var(--border);flex:none}
.portal-home .globe-watch-heading strong{font-size:14px;color:var(--text-primary)}
.portal-home .globe-watch-heading span{font-size:11px;color:var(--text-secondary)}
.portal-home .globe-hazard-strip{display:flex;flex-direction:column;gap:8px;padding:10px;margin:0;min-height:0;max-height:506px;overflow:auto;scrollbar-width:thin}
.portal-home .globe-hazard-card{flex:none;min-width:0;min-height:75px;padding:9px;gap:9px;border-radius:8px}
.portal-home .globe-hazard-copy strong{font-size:11px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.portal-home .globe-hazard-copy span{font-size:10px;line-height:1.4;margin-top:3px}
.portal-home .globe-hazard-copy small{font-size:10px!important;line-height:1.4!important;white-space:normal;color:var(--text-secondary)}
.portal-home .globe-hazard-empty{font-size:11px;line-height:1.5}
.portal-home .globe-reading-strip{margin-top:12px;gap:8px;flex:none}
.portal-home .globe-reading{padding:8px 10px;border-radius:7px}
.portal-home .globe-reading strong{font-size:11px}
.portal-home .globe-reading span{font-size:10px;margin-top:4px;color:var(--text-secondary)}
.portal-home .globe-source{font-size:9px;line-height:1.6;white-space:normal;margin-top:9px}
.portal-home .globe-legend{font-size:10px;gap:12px;margin-top:6px;flex-wrap:wrap}
.portal-home .news-strip{grid-area:news}
html.environment-view .portal-home .globe-panel{display:flex;height:100dvh!important}
html.environment-view .portal-home .globe-workspace{flex:1;min-height:0}
html.environment-view .portal-home .globe-stage{flex:1;min-height:150px;height:auto}
html.environment-view .portal-home .globe-hazard-strip{max-height:none}
@media(min-width:1600px){.portal-home .globe-stage{height:440px}.portal-home .globe-workspace{grid-template-columns:minmax(0,1fr) 310px}.portal-home .globe-hazard-strip{max-height:546px}}
@media(max-width:1320px) and (min-width:1001px){.portal-home .smc-topbar .brand-logo{width:54px;height:54px}.portal-home .smc-topbar .brand-title{font-size:18px;max-width:220px}.portal-home .smc-topbar .brand-sub{font-size:10px}.portal-home .smc-topbar .top-link{font-size:12px;padding:7px}.portal-home .topbar-main{gap:12px}.portal-home .smc-topbar .top-link span{white-space:nowrap}}
@media(max-width:1000px){.portal-home .smc-topbar .brand{min-width:0}.portal-home .topbar-main{gap:6px 12px}.portal-home .smc-topbar .top-links{overflow:visible}.portal-home .globe-workspace{grid-template-columns:minmax(0,1fr) 235px;gap:12px}.portal-home .globe-panel{padding:12px}.portal-home .vessel-head{padding:9px 9px 6px}.portal-home .vessel-name{font-size:15px}.portal-home .vessel-card .route{margin-left:9px;margin-right:9px}.portal-home .vessel-card .metric-grid{padding-left:9px;padding-right:9px}.portal-home .vessel-card .vessel-foot{padding-left:9px;padding-right:9px}.portal-home .vessel-card .mini-link{font-size:10px}}
@media(max-width:760px){.portal-home .dashboard .vessel-grid{grid-template-columns:minmax(0,1fr);gap:9px}.portal-home .vessel-card .metric-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.portal-home .vessel-card .route{grid-template-columns:1fr auto 1fr}.portal-home .vessel-head{padding:9px 12px 6px}.portal-home .vessel-name{font-size:16px}.portal-home .vessel-card .rob-row{padding:5px 12px}.portal-home .globe-workspace{grid-template-columns:minmax(0,1fr)}.portal-home .globe-stage{height:370px;min-height:0;touch-action:pan-y}.portal-home .globe-watch-heading{padding:9px 11px;flex-direction:row;justify-content:space-between;align-items:center}.portal-home .globe-hazard-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:245px}.portal-home .globe-panel .globe-status{display:inline;font-size:10px!important}.portal-home .globe-title{font-size:16px!important}.portal-home .globe-head-actions{gap:5px}.portal-home .globe-reading-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.portal-home .globe-reading{padding:7px}.portal-home .globe-reading span{font-size:9px;white-space:normal}}
@media(max-width:480px){.portal-home .main{padding:10px}.portal-home .dashboard .vessel-grid{gap:9px}.portal-home .vessel-card .metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.portal-home .vessel-card .metric{min-height:39px;padding:5px 7px}.portal-home .vessel-card .vessel-foot .mini-link{min-height:30px}.portal-home .globe-title{font-size:15px!important}.portal-home .globe-stage{height:335px}.portal-home .globe-focus{padding:5px 9px}.portal-home .globe-navigation{gap:6px}.portal-home .globe-reading-strip{grid-template-columns:minmax(0,1fr)}.portal-home .globe-reading{display:flex;justify-content:space-between;align-items:center;gap:8px}.portal-home .globe-reading span{margin-top:0}.portal-home .globe-panel>.panel-head{align-items:center;gap:8px}.portal-home .globe-head-actions{width:100%;justify-content:flex-end}.portal-home .globe-hazard-strip{grid-template-columns:minmax(0,1fr);max-height:240px}.portal-home .globe-hazard-card{min-height:68px}.portal-home .globe-status{margin-right:auto}.portal-home .globe-overlay span{font-size:8px}}
@media(max-width:600px){.portal-home .smc-topbar .top-link{min-width:0;min-height:40px;font-size:11px;line-height:1.25;gap:5px;white-space:normal}.portal-home .smc-topbar .top-link i{flex:none}.portal-home .smc-topbar .top-link span{min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:center}}
@media(max-width:1480px) and (min-width:1001px){.portal-home .smc-topbar .top-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;overflow:visible}.portal-home .smc-topbar .top-link{min-height:30px;justify-content:center;padding:5px 6px;font-size:12px}.portal-home .smc-topbar .brand-logo{width:54px;height:54px}.portal-home .smc-topbar .brand-title{font-size:18px;max-width:220px}.portal-home .topbar-main{gap:12px}}
