/* Compact fleet sidebar and category tabs for the portal homepage. */
/* Access indicators: labels and hover text carry the same three meanings. */
.portal-home #moduleCatalog .module-card[data-shortcut-access="vessel"]{--module-access-color:#8b5cf6}
.portal-home #moduleCatalog .module-card[data-shortcut-access="office"]{--module-access-color:#159e72}
.portal-home #moduleCatalog .module-card[data-shortcut-access="admin"]{--module-access-color:#e44762}
html.smc-desktop-icons body.portal-home:not(.portal-edit-mode) #moduleCatalog .module-card[data-shortcut-access]::after{content:"\f00c";display:grid;place-items:center;width:14px;height:14px;top:5px;right:6px;color:#fff;font:900 9px/1 "Font Awesome 6 Free";background:var(--module-access-color)!important;box-shadow:0 0 0 1px #07102044}
.portal-home .shortcut-access-key-vessel{--module-access-color:#8b5cf6}
.portal-home .shortcut-access-key-office{--module-access-color:#159e72}
.portal-home .shortcut-access-key-admin{--module-access-color:#e44762}
.portal-home .shortcut-access-key::before{content:"\f00c";display:inline-grid;place-items:center;width:14px;height:14px;flex:none;color:#fff;font:900 9px/1 "Font Awesome 6 Free";background:var(--module-access-color);border-radius:50%}
html:not(.environment-view) .portal-home .dashboard{grid-template-areas:"vessels";grid-template-rows:auto}
.portal-home .portal-workspace{display:grid;grid-template-columns:330px minmax(0,1fr);grid-template-areas:"globe modules";gap:14px;align-items:start;margin-top:14px;min-width:0}
.portal-home .portal-globe-sidebar{grid-area:globe;display:block;min-width:0;position:sticky;top:calc(var(--portal-header-height) + 12px)}
.portal-home #moduleCatalog{grid-area:modules;display:grid;gap:9px;min-width:0;margin:0}
.portal-home .module-command-toolbar{grid-template-columns:minmax(0,1fr) minmax(180px,260px);gap:10px;padding:11px 12px;margin:0}
.portal-home .module-command-title h1{font-size:20px!important;line-height:1.2!important;margin:0 0 4px}
.portal-home .module-command-title span{font-size:11px;line-height:1.4}
.portal-home .module-search-wrap{width:100%;min-width:0}
.portal-home .module-search{min-width:0;font-size:12px!important}
.portal-home .module-quick-area{grid-template-columns:minmax(0,1fr);gap:5px;margin:0}
.portal-home .module-quick-panel{display:flex;gap:10px;align-items:flex-start;padding:7px 9px;border-radius:8px;min-width:0}
.portal-home .module-quick-head{margin:3px 0 0;min-width:76px;flex:none;font-size:11px}
.portal-home .module-quick-head>span{white-space:nowrap}
.portal-home .module-quick-links{min-width:0;flex:1;flex-wrap:wrap;gap:4px;max-height:74px;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--border-active) transparent}
.portal-home .module-quick-links::-webkit-scrollbar{width:4px;height:4px}
.portal-home .module-quick-links::-webkit-scrollbar-thumb{background:var(--border-active);border-radius:4px}
.portal-home .module-quick-link{min-width:0;max-width:100%;padding:3px 7px;gap:5px;border-radius:6px;font-size:11px}
.portal-home .module-quick-link span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-home .module-quick-empty{font-size:11px;line-height:1.4;padding:3px 0}
.portal-home .module-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;min-width:0}
.portal-home .module-tab{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:42px;padding:7px 5px;border:1px solid var(--border);border-radius:8px;background:var(--bg-card);color:var(--text-secondary);font-size:12px!important;font-weight:700;cursor:pointer}
.portal-home .module-tab[hidden]{display:none}
.portal-home .module-tab>span:first-of-type{min-width:0;overflow-wrap:anywhere;line-height:1.3}
.portal-home .module-tab i{flex:none;color:var(--accent);font-size:12px}
.portal-home .module-tab-count{flex:none;font:600 10px JetBrains Mono,monospace;color:var(--text-secondary)}
.portal-home .module-tab.active{border-color:var(--accent);color:var(--accent);background:rgba(0,196,255,.08)}
.portal-home .module-tab:hover{background:rgba(0,196,255,.08)}
.portal-home .module-tab:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.portal-home .module-search-status{color:var(--text-secondary);font-size:11px;line-height:1.4}
.portal-home .module-search-status:empty{display:none}
.portal-home .module-groups{gap:0}
.portal-home .module-group{border-radius:10px;min-width:0}
.portal-home .module-group[hidden]{display:none!important}
.portal-home .module-group-heading{display:none;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--border)}
.portal-home .access-legend{padding:6px 9px;gap:5px 13px;margin:0;border-radius:7px}
.portal-home .access-legend .shortcut-access-key{font-size:10px}
.portal-home .portal-edit-bar{margin:0;padding:7px 9px;gap:8px;border-radius:8px}
.portal-home .portal-edit-copy strong{font-size:10px}
.portal-home:not(.portal-edit-mode) .portal-edit-copy span{display:none}
.portal-home .portal-edit-actions{gap:5px;flex:none}
.portal-home .portal-edit-btn{min-height:29px;font-size:11px!important;padding:5px 8px}
.portal-home.portal-edit-mode .module-tab{display:none}
.portal-home.portal-edit-mode .module-group-heading{display:flex}
.portal-home.portal-edit-mode .module-groups{gap:10px}
.portal-home .portal-globe-sidebar .globe-panel{padding:11px;border-radius:12px}
.portal-home .portal-globe-sidebar .panel-head{display:grid;grid-template-columns:minmax(0,1fr) 26px 26px;gap:7px;margin-bottom:9px}
.portal-home .portal-globe-sidebar .globe-title{font-size:16px!important;grid-column:1;grid-row:1}
.portal-home .portal-globe-sidebar .globe-head-actions{display:contents}
.portal-home .portal-globe-sidebar #fleetGlobeStatus{display:inline;grid-column:1/-1;grid-row:2;justify-self:start;font-size:10px!important}
.portal-home .portal-globe-sidebar #fleetGlobeMotionBtn{grid-column:2;grid-row:1}
.portal-home .portal-globe-sidebar #openEnvironmentWindowBtn{grid-column:3;grid-row:1}
.portal-home .portal-globe-sidebar .globe-workspace{display:block}
.portal-home .portal-globe-sidebar .globe-controls{gap:3px}
.portal-home .portal-globe-sidebar .globe-toggle{min-height:30px;padding:4px;font-size:11px!important;gap:5px}
.portal-home .portal-globe-sidebar .globe-scale{margin-top:7px}
.portal-home .portal-globe-sidebar .globe-scale-labels{font-size:9px}
.portal-home .portal-globe-sidebar .globe-navigation{gap:6px;margin:8px 0}
.portal-home .portal-globe-sidebar .globe-focus{padding:4px 8px;min-height:28px;font-size:11px!important}
.portal-home .portal-globe-sidebar .globe-zoom-controls button{width:27px;min-height:28px;padding:4px;font-size:11px!important}
.portal-home .portal-globe-sidebar .globe-stage{height:280px;min-height:280px}
.portal-home .portal-globe-sidebar .globe-overlay{left:6px;right:6px;bottom:7px;gap:3px;flex-direction:column;align-items:flex-start}
.portal-home .portal-globe-sidebar .globe-overlay span{font-size:8px}
.portal-home .portal-globe-sidebar .globe-help{font-size:10px;line-height:1.4;margin-top:6px}
.portal-home .portal-globe-sidebar .globe-watch{display:block;margin-top:9px;border-radius:8px}
.portal-home .portal-globe-sidebar .globe-watch-heading{display:flex;flex-direction:row;align-items:center;gap:6px;padding:8px;cursor:pointer;list-style:none;border-bottom:0}
.portal-home .globe-watch-heading::-webkit-details-marker{display:none}
.portal-home .portal-globe-sidebar .globe-watch-heading strong{font-size:11px}
.portal-home .portal-globe-sidebar .globe-watch-heading span{font-size:9px;margin-left:auto}
.portal-home .globe-watch-heading>i{font-size:10px;color:var(--text-secondary)}
.portal-home .globe-watch[open] .globe-watch-heading>i{transform:rotate(180deg)}
.portal-home .globe-watch:not([open])>#fleetGlobeHazards{display:none}
.portal-home .portal-globe-sidebar .globe-hazard-strip{display:flex;max-height:230px;padding:7px;gap:6px}
.portal-home .portal-globe-sidebar .globe-hazard-card{min-height:65px;padding:7px}
.portal-home .portal-globe-sidebar .globe-reading-strip{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:8px;gap:5px}
.portal-home .portal-globe-sidebar .globe-reading{display:block;padding:6px;min-width:0}
.portal-home .portal-globe-sidebar .globe-reading strong{font-size:10px}
.portal-home .portal-globe-sidebar .globe-reading span{font-size:9px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;margin-top:4px}
.portal-home .globe-details{margin-top:8px;border-top:1px solid var(--border);padding-top:6px}
.portal-home .globe-details>summary{font-size:10px;color:var(--text-secondary);cursor:pointer}
.portal-home .globe-details .globe-source{margin-top:7px}
html.environment-view .portal-home .main>.dashboard{display:none!important}
html.environment-view .portal-home .portal-workspace{display:block!important;margin:0;height:100dvh}
html.environment-view .portal-home #moduleCatalog{display:none!important}
html.environment-view .portal-home .portal-globe-sidebar{position:static;height:100dvh}
html.environment-view .portal-home .portal-globe-sidebar .panel-head{display:flex}
html.environment-view .portal-home .portal-globe-sidebar .globe-head-actions{display:flex}
html.environment-view .portal-home .portal-globe-sidebar .globe-workspace{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:14px}
html.environment-view .portal-home .portal-globe-sidebar .globe-stage{height:auto;min-height:160px}
html.environment-view .portal-home .portal-globe-sidebar .globe-hazard-strip{max-height:none}
html.environment-view .portal-home .portal-globe-sidebar .globe-watch{margin-top:0;overflow:auto}
html.environment-view .portal-home .portal-globe-sidebar .globe-title{font-size:18px!important}
@media(min-width:1700px){.portal-home .portal-workspace{grid-template-columns:360px minmax(0,1fr)}.portal-home .portal-globe-sidebar .globe-stage{height:300px}}
@media(max-width:1100px) and (min-width:901px){.portal-home .portal-workspace{grid-template-columns:305px minmax(0,1fr);gap:12px}.portal-home .module-command-toolbar{grid-template-columns:minmax(0,1fr)}.portal-home .module-tab{flex-wrap:wrap;gap:3px;font-size:11px!important}.portal-home .module-tab>span:first-of-type{flex-basis:100%;order:3}}
@media(max-width:900px){.portal-home .portal-workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:"modules" "globe";gap:12px}.portal-home .portal-globe-sidebar{position:static;max-width:100%}.portal-home .module-command-toolbar{grid-template-columns:minmax(0,1fr) minmax(180px,260px)}.portal-home .portal-globe-sidebar .globe-stage{height:280px}.portal-home .portal-globe-sidebar .globe-toggle,.portal-home .portal-globe-sidebar .globe-focus,.portal-home .portal-globe-sidebar .globe-zoom-controls button{min-height:36px}.portal-home .portal-globe-sidebar .globe-zoom-controls button{width:33px}}
@media(max-width:560px){.portal-home .module-command-toolbar{grid-template-columns:minmax(0,1fr)}.portal-home .module-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.portal-home .module-tab{font-size:11px!important;min-height:40px;gap:4px}.portal-home .module-quick-head{min-width:63px;font-size:10px}.portal-home .module-quick-panel{gap:6px}.portal-home .portal-edit-copy strong{font-size:9px}.portal-home .portal-edit-btn{font-size:10px!important;padding:5px 6px}.portal-home .portal-globe-sidebar .globe-zoom-controls button{width:27px}.portal-home .portal-globe-sidebar .globe-focus{padding:4px 7px}}
