.s2b-flagmast{color:#133b49}.s2b-flagmast h2,.s2b-flagmast h3{font-size:1.15rem;margin:0 0 10px}.s2b-mast-note{color:#59717a;font-size:13px;margin:0 0 16px}.s2b-mast-pole{position:relative;border-left:3px solid #647b80;margin:12px 4px 18px 6px;padding:0 0 0 17px}.s2b-mast-pole:before{content:'';position:absolute;top:-4px;left:-6px;width:9px;height:9px;border-radius:50%;background:#dab54c}.s2b-mast-partner{display:flex;gap:12px;align-items:center;min-height:64px;padding:8px 0;color:#133b49;text-decoration:none}.s2b-mast-partner:hover strong{text-decoration:underline}.s2b-mast-partner strong,.s2b-mast-partner small{display:block;overflow-wrap:anywhere}.s2b-mast-partner small{font-size:12px;color:#59717a}.s2b-digital-flag{width:70px;height:42px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;clip-path:polygon(0 0,100% 0,86% 50%,100% 100%,0 100%);background:#eff5f4;color:#24665e;border:1px solid #cbded9;padding:5px 12px 5px 6px;font-weight:700}.s2b-digital-flag img{max-width:100%;max-height:100%;object-fit:contain}.s2b-flagmast-compact{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:0!important;border-radius:5px!important;background:transparent!important;padding:3px!important;cursor:pointer}.s2b-flagmast-compact .s2b-digital-flag{width:42px;height:29px;padding:3px 7px 3px 4px;font-size:11px}.s2b-mast-map-badge.leaflet-tooltip{padding:0;background:#fff;border:1px solid #cbded9;border-radius:6px;box-shadow:0 2px 8px #123b4920;pointer-events:auto;white-space:normal}.s2b-mast-map-badge:before{display:none}.s2b-mast-ship{display:flex;align-items:center;gap:12px;border-bottom:1px solid #d7e3e2;padding-bottom:12px;margin-bottom:16px}.s2b-mast-ship>div{display:grid;gap:3px;min-width:0}.s2b-mast-ship strong{font-size:15px}.s2b-mast-ship span,.s2b-mast-ship small{font-size:12px;white-space:normal}.s2b-mast-photo{width:95px;min-width:95px;margin:0;position:relative;line-height:1}.s2b-mast-photo>img:first-child{width:95px;height:65px;object-fit:cover;border-radius:7px}.s2b-mast-photo .s2b-mast-watermark{position:absolute;bottom:16px;right:3px;width:28px;height:auto;max-height:24px;object-fit:contain}.s2b-mast-photo figcaption{font-size:9px;line-height:1.3;margin-top:3px;white-space:normal;color:#59717a}.s2b-mast-hover{position:fixed;z-index:10050;border:1px solid #cbded9;border-radius:12px;background:#fff;color:#133b49;padding:16px;box-shadow:0 8px 30px #123b4933;max-height:calc(100dvh - 16px);overflow:auto;font-family:inherit}.s2b-mast-hover h3{font-size:16px;margin:0 0 5px}.s2b-mast-dialog{width:min(440px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #cbded9;border-radius:14px;padding:22px;background:#fff;color:#133b49;margin:auto;box-shadow:0 12px 44px #123b4933}.s2b-mast-dialog::backdrop{background:#113b4977;backdrop-filter:blur(3px)}.s2b-mast-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.s2b-mast-dialog h2{font-size:21px;margin:0}.s2b-mast-dialog>header>button{width:44px;height:44px;border:1px solid #cbded9;border-radius:8px;background:#eff5f4;color:#133b49;font-size:24px}.ais-vessel-hover-content .s2b-mast-ship{max-width:340px}.ais-vessel-hover-content .s2b-mast-pole{max-width:300px}.ais-vessel-hover-tooltip{max-width:380px!important;white-space:normal!important}.s2b-mast-tab-empty{color:#59717a;padding:12px}.v4-controls>.s2b-flagmast-compact{margin-left:2px}
@media(max-width:480px){.s2b-mast-dialog{padding:16px}.s2b-mast-dialog .s2b-mast-ship{align-items:flex-start}.s2b-mast-photo{width:75px;min-width:75px}.s2b-mast-photo>img:first-child{width:75px;height:58px}}

.v4-tabs>button.v4-tab.s2b-mast-tab{flex:0 0 92px!important;min-width:92px!important;width:92px!important;white-space:nowrap}

.v4-data-heading:has(.s2b-mast-invite-link){flex-wrap:wrap;gap:6px}.v4-data-heading .s2b-mast-invite-link{margin:0 0 0 auto;padding:6px 8px;min-height:32px;display:inline-flex;align-items:center;font-size:12px;line-height:1.3;text-decoration:underline;max-width:100%;white-space:normal}.s2b-mast-actions{margin-top:14px}

.s2b-mast-entry{min-width:0;max-width:100%}.s2b-mast-fleet-link{display:block;margin:3px 0 7px 36px;font-size:12px;color:#164f48;overflow-wrap:anywhere}.s2b-mast-fleet-link:focus-visible{outline:2px solid #164f48;outline-offset:2px}

/* Company identity is a plain logo, separate from the existing flags. Maps only. */
.s2b-company-logo-link{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:9px;color:#133b49;text-decoration:none;min-width:0;background:#fff;border:1px solid #d7e3e2;border-radius:7px}
.s2b-company-logo-link img{display:block;width:32px;height:32px;object-fit:contain;flex:none}
.s2b-company-logo-link:focus-visible{outline:3px solid #b99947;outline-offset:2px}
.v4-controls>a.s2b-company-logo-compact{flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:1px!important;margin:0!important;box-shadow:none}
.v4-controls>a.s2b-company-logo-compact img{width:30px;height:30px}
.s2b-mast-company-band{margin:0 0 9px;min-width:0}
.s2b-company-logo-profile{justify-content:flex-start;width:100%;padding:6px 8px;min-height:46px}
.s2b-company-logo-profile img{width:54px;height:36px}
.s2b-company-logo-profile>span{min-width:0;display:grid;gap:2px}
.s2b-company-logo-profile strong,.s2b-company-logo-profile small{overflow-wrap:anywhere;white-space:normal}
.s2b-company-logo-profile strong{font-size:13px}.s2b-company-logo-profile small{font-size:11px;color:#59717a}
.ais-base-map .v4-B>.s2b-flagmast{padding:0 12px;max-height:160px;overflow:auto;overscroll-behavior:contain}
.ais-base-map .v4-tab-content .s2b-flagmast{padding-top:10px}
@media(max-width:600px){.ais-base-map .v4-A .v4-row-body{grid-template-columns:minmax(0,1fr) auto}.ais-base-map .v4-A .v4-controls{flex-wrap:wrap;justify-content:flex-end;max-width:110px}.ais-base-map .v4-A .v4-heading{min-width:0}.ais-base-map .v4-A .v4-heading h3{overflow-wrap:anywhere}}
.ais-base-desktop .v4-controls>a.s2b-company-logo-compact{flex-basis:29px!important;width:29px!important;min-width:29px!important;height:29px!important;min-height:29px!important;padding:1px!important}.ais-base-desktop .v4-controls>a.s2b-company-logo-compact img{width:25px;height:25px}
.ais-explorer.ais-base-map.ais-base-desktop .leaflet-tooltip.ais-vessel-hover-tooltip:has(.s2b-mast-entry){pointer-events:auto;max-height:min(65vh,420px);overflow:auto;overscroll-behavior:contain}
.ais-base-map .v4-A:has(.s2b-company-logo-compact) .v4-row-arrow{min-width:0;max-width:100%;justify-self:stretch;text-align:center}

/* Fleet flags remain distinct from the three promotion / owner-choice positions. */
.s2b-mast-entry[data-flag-kind="fleet"]{border-top:1px solid #d9e5e3;padding-top:8px;margin-top:6px}
.s2b-mast-kind{font-weight:600;color:#20665c}
.s2b-company-logo-group{display:flex;flex-wrap:wrap;gap:3px;max-width:72px;min-width:0}
.s2b-company-logo-group .s2b-company-logo-compact{width:34px;height:34px;padding:1px;flex:none}
.s2b-company-logo-group .s2b-company-logo-compact img{width:30px;height:30px}
.ais-explorer.ais-base-map .v4-identity:has(.s2b-flagmast-compact){flex-wrap:wrap}
.ais-explorer.ais-base-map .v4-identity>.v4-controls{max-width:100%;flex-wrap:wrap}
.ais-explorer.ais-base-map.ais-base-desktop .base-desktop-detail .v4-controls>.s2b-flagmast-compact{min-width:32px!important;width:32px!important;min-height:32px!important;padding:1px!important}
.ais-explorer.ais-base-map.ais-base-desktop .base-desktop-detail .s2b-flagmast-compact .s2b-digital-flag{width:30px;height:23px;padding:3px 6px 3px 3px}
.s2b-company-logo-group{flex:0 0 71px;width:71px}
body .ais-explorer.ais-base-map .v4-controls>.s2b-company-logo-group{display:grid!important;grid-template-columns:repeat(2,34px);grid-auto-rows:34px;gap:3px!important;flex:0 0 71px!important;width:71px!important;min-width:71px!important;max-width:71px!important;align-items:center;justify-content:start!important}
body .ais-explorer.ais-base-map .v4-controls>.s2b-company-logo-group{height:auto!important;min-height:34px!important;max-height:none!important;padding:0!important;border:0!important;background:none!important}
body.s2b-base .ais-explorer.ais-base-map.ais-base-desktop .base-desktop-vessel-row .v4-A .v4-controls>.s2b-company-logo-group{display:grid!important;grid-template-columns:repeat(2,34px);grid-auto-rows:34px;gap:3px!important;flex:0 0 71px!important;width:71px!important;min-width:71px!important;max-width:71px!important;height:auto!important;min-height:34px!important;max-height:none!important;padding:0!important;border:0!important;background:none!important;justify-content:start!important}
body.s2b-base .ais-explorer.ais-base-map.ais-base-desktop .base-desktop-vessel-row .v4-A .v4-controls:has(.s2b-company-logo-group){height:auto!important;min-height:34px!important}
