.manifest-vessels{border:1px solid #317594;border-radius:12px;padding:16px;margin-bottom:20px;background:#08293b}.manifest-vessels h2{margin:0 0 10px}.manifest-vessels>button{width:100%;margin:5px 0;min-height:40px}.manifest-vessels>button:nth-of-type(2){background:#076b84;border-color:#40c5e2}.manifest-vessel-list{max-height:400px;overflow:auto;margin:12px 0}.manifest-vessel-list article{padding:12px 0;border-top:1px solid #315166;line-height:1.5}.manifest-vessel-list article>strong,.manifest-vessel-list article>small{display:block}.manifest-vessel-list button{margin:8px 5px 0 0;min-height:36px}.ais-historical{color:#ffcd75}.ais-recent{color:#71e8f5}.manifest-vessels form{border-top:1px solid #315166;padding-top:12px}.manifest-vessels input{width:100%;margin:6px 0}.manifest-vessel-label{background:#072336;color:#fff;border-color:#8abac9;font-size:12px;font-weight:bold}.manifest-vessels a{color:#82dcff}@media(max-width:850px){.manifest-vessel-list{max-height:300px}.manifest-vessels{margin-top:12px}}
/* Keep the existing map entirely inside the PC viewport after the unified header. */
@media(min-width:851px){html,body{height:100%;min-height:0}body{display:flex;flex-direction:column;overflow:hidden}body>.ds-unified-header,body>header{flex:0 0 auto}body>main{flex:1 1 auto;min-height:0;height:auto}body>main>.mapwrap{min-height:0}body>main>aside{min-height:0}}
.distanceScale{background:#05243ee8;color:#fff;padding:8px 10px;border:1px solid #559ab4;border-radius:6px;font:11px Arial;pointer-events:none}.distanceScale div{border-bottom:3px solid #fff;padding-bottom:3px;margin-top:5px;white-space:nowrap}
.manifest-weather label{display:block;margin:10px 0;line-height:1.45}.manifest-weather select{width:100%;min-height:42px}.manifest-weather input[type=checkbox]{width:auto;margin-right:8px}.manifest-weather details{border:1px solid #315166;border-radius:8px;padding:10px;margin:12px 0}.manifest-weather details button{width:100%;margin:6px 0;min-height:40px}.manifest-weather summary{cursor:pointer;min-height:32px}.manifest-weather [role=status]{color:#ffdc91}.manifest-weather p{line-height:1.5;overflow-wrap:anywhere}
.vessel-popup-weather{position:sticky;top:0;z-index:1;display:flex;flex-wrap:wrap;gap:6px;padding:8px 0;background:#092b43}.vessel-popup-weather button{font:inherit;min-height:40px;padding:8px 10px;border:1px solid #54c9e4;border-radius:6px;background:#126b99;color:#fff;cursor:pointer}.vessel-popup-weather button:focus-visible{outline:3px solid #ffd780;outline-offset:2px}.weather-forecast-table{max-width:100%;max-height:420px;overflow:auto;border:1px solid #477d96;border-radius:8px}.weather-forecast-table table{border-collapse:collapse;min-width:700px;font-size:12px;color:#e6f4ff}.weather-forecast-table caption{text-align:left;padding:10px}.weather-forecast-table th{position:sticky;top:0;background:#123d52;white-space:nowrap}.weather-forecast-table th,.weather-forecast-table td{padding:8px;border-bottom:1px solid #365967;text-align:right}.weather-forecast-table th:first-child,.weather-forecast-table td:first-child{text-align:left;white-space:nowrap}.weather-forecast-table tbody tr:nth-child(even){background:#103347}
.weather-inline{margin:8px 0;padding:10px;font:13px/1.45 Arial,sans-serif}.weather-inline>h2,.weather-inline>h2+p,.weather-inline .weather-unit-selector,.weather-inline>details{display:none}.weather-inline .weather-forecast-table{max-height:300px}.weather-inline p{margin:8px 0}.weather-inline label{margin:6px 0}.ais-popup-summary{padding:8px;border:1px solid #4c7e95;border-radius:6px;color:#ffdc91;font-size:12px}.ais-popup-weather-host{max-width:100%;min-width:0}.ais-unit-popup .leaflet-popup-content{overflow-x:hidden;overscroll-behavior:contain}.weather-inline select,.weather-inline input[type=number]{box-sizing:border-box;max-width:100%}

/* REV26: drag only by the vessel title, never by controls or content. */
.ais-unit-popup .ais-popup-drag-handle{display:block;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;padding:8px 0;min-height:28px}
.ais-unit-popup .ais-popup-drag-handle.is-dragging{cursor:grabbing}
.ais-unit-popup .ais-popup-drag-handle:focus-visible{outline:2px solid #ffd780}

/* REV29 — Approved dark maritime card; geographic map remains independent. */
.ais-unit-popup .leaflet-popup-content-wrapper{background:#071d31;border:1px solid #3d768e;border-radius:16px;box-shadow:0 14px 40px #00152399}
.ais-unit-popup .leaflet-popup-content{margin:12px;overscroll-behavior:contain;overflow-x:hidden}
.rev29-vessel-card{color:#e8f7ff;font:13px/1.5 Arial,sans-serif;min-width:0}
.rev29-hero{height:138px;max-height:24vh;overflow:hidden;border-radius:10px;background:linear-gradient(135deg,#12445c,#07263d);position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#b8dce8;text-align:center}
.rev29-hero img{width:100%;height:100%;object-fit:cover;display:block}
.rev29-hero.rev29-no-photo{border:1px dashed #3c8292}
.rev29-vessel-symbol{font-size:34px;line-height:1}
.rev29-photo-credit{position:absolute;bottom:0;left:0;right:0;background:#031b2acc;padding:3px 7px;text-align:left;font-size:10px}
.ais-unit-popup .ais-popup-drag-handle.rev29-title{padding:12px 8px 9px;margin-top:4px;border-bottom:1px solid #31556c;cursor:grab;touch-action:none;user-select:none}
.rev29-title .rev29-name{display:block;font-size:18px;color:#f1faff;overflow-wrap:anywhere}
.rev29-title small{display:block;font-size:10px;color:#93b9cc}
.rev29-state{margin:10px 0;display:flex}
.rev29-state span{font-size:11px;color:#82e8ce;border:1px solid #368c78;border-radius:16px;padding:4px 10px}
.rev29-identities{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0;border-top:1px solid #27516b;border-bottom:1px solid #27516b;padding:10px 0}
.rev29-identities>div{font-size:11px;color:#a0c8d7}
.rev29-identities strong{display:block;color:#fff;font-size:15px;letter-spacing:.3px;overflow-wrap:anywhere}
.rev29-summary{display:grid;gap:4px;padding:7px 0;color:#d0e5ee;font-size:12px}
.rev29-actions{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 0 6px;background:transparent}
.rev29-actions button{min-height:44px;white-space:normal}
.rev29-details-toggle{width:100%;font-size:12px;background:#113d55;border:1px solid #377d91;margin:8px 0}
.rev29-vessel-card .ais-popup-details{font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.rev29-vessel-card .ais-popup-details>div{margin:5px 0}
.ais-unit-popup{touch-action:auto}
@media(max-width:600px){
 .rev29-hero{height:102px;max-height:18vh}
 .rev29-title .rev29-name{font-size:15px}
 .rev29-actions{grid-template-columns:1fr}
 .rev29-identities strong{font-size:13px}
}

/* Shared SAP appearance for both independent maritime cards. */
.weather-floating[hidden]{display:none}
.weather-floating{
 --card-text:#142d44;
 --card-border:#7397b6;
 --card-control:#f3f8fc;
 position:fixed;z-index:1300;display:flex;flex-direction:column;width:360px;height:609px;
 max-height:calc(100dvh - 16px);overflow:hidden;overscroll-behavior:contain;
 background:#eaf2fa;color:var(--card-text);border:1px solid var(--card-border);
 border-radius:6px;box-shadow:0 12px 32px #0009;
}
.weather-floating-bar{display:flex;flex:none;flex-wrap:nowrap;align-items:stretch;gap:0;height:auto;min-height:0;padding:0;border:0;border-bottom:1px solid var(--card-border);background:linear-gradient(#f3f9ff,#bfd6eb);color:inherit}
.weather-floating-grip{flex:1;min-width:0;cursor:grab;touch-action:none;user-select:none;padding:8px 12px;align-content:center}
.weather-floating-grip:active{cursor:grabbing}
.weather-floating-grip h2{margin:0;font-size:16px;line-height:1.25;overflow-wrap:anywhere}
.weather-floating-grip > div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.weather-floating :is(button,input:not([type=checkbox]),select){color:var(--card-text);background:var(--card-control);border:1px solid var(--card-border);border-radius:4px;padding:6px 8px}
.weather-floating button:hover:not(:disabled){background:#d4e6f6}
.weather-floating button:disabled{opacity:.55}
.weather-floating a{color:#164a76}
.weather-floating-close{flex:none;align-self:center;width:44px;height:44px;margin:3px 5px;padding:0;font-size:25px;line-height:1}
.weather-floating button.weather-floating-close{padding:0;border-radius:8px}
.weather-floating-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.weather-floating-content>.manifest-weather{margin:0;padding:10px;border:0;background:transparent}
.weather-floating-content>.manifest-weather>h2{display:none}
.weather-floating .manifest-weather details{border-color:var(--card-border);border-radius:4px;background:#f3f8fc}
.weather-floating .manifest-weather [role=status]{color:inherit}
.weather-floating .manifest-weather input[type=checkbox]{accent-color:#286797}
.weather-floating .manifest-weather :is(select,input[type=number]){font-size:16px}
.weather-floating .weather-forecast-table{max-height:none;overflow-x:auto;overscroll-behavior-x:contain;border-color:var(--card-border);border-radius:4px}
.weather-floating .weather-forecast-table table{color:inherit;background:#f3f8fc}
.weather-floating .weather-forecast-table th{background:#bfd6eb}
.weather-floating .weather-forecast-table th,.weather-floating .weather-forecast-table td{border-color:#b8cddd}
.weather-floating .weather-forecast-table tbody tr:nth-child(even){background:#e0ebf6}
.weather-floating :focus-visible{outline:2px solid #286797;outline-offset:-2px}

.weather-floating.vessel-floating{height:auto;z-index:1299}
.vessel-floating .rev02-vessel-card{padding:10px;line-height:1.35}
.rev02-vessel-card p{margin:4px 0 8px;color:inherit}
.rev02-vessel-card form{display:grid;gap:6px}
.rev02-vessel-card label{display:grid;gap:3px;margin:3px 0}
.rev02-vessel-card button{margin:3px 4px 3px 0}

/* REV05 — generic ship marker, fixed small size, status stripe retained. */
.rotazul-ship-avatar{background:transparent;border:0;cursor:pointer;line-height:0}
.rotazul-ship-avatar svg{display:block;overflow:visible;pointer-events:none}
.rotazul-ship-avatar:focus-visible{outline:2px solid #214963;outline-offset:2px;border-radius:3px}

/* Verified photography only; unavailable imagery stays explicitly labelled. */
.vessel-photo{margin:4px 0 10px;border:1px solid #7397b6;border-radius:6px;padding:6px;background:#f3f8fc;color:#142d44;min-width:0}
.vessel-photo img{display:block;width:100%;max-height:146px;object-fit:contain;border-radius:4px}
.vessel-photo img[hidden],.vessel-photo-status[hidden]{display:none}
.vessel-photo-status{display:block;padding:10px 4px;text-align:center;font-size:12px}
.vessel-photo figcaption{font-size:10px;line-height:1.4;overflow-wrap:anywhere;color:#324e68}
.vessel-photo figcaption a{color:#164a76}
.vessel-photo.compact{max-width:200px}.vessel-photo.compact img{max-height:82px}

.rotazul-vessel-cluster{display:flex;align-items:center;justify-content:center;border-radius:50%;background:#184f7e;color:white;border:2px solid #d5edff;font:bold 13px Arial;box-shadow:0 1px 5px #001b37aa;cursor:pointer}.rotazul-vessel-cluster:focus-visible{outline:3px solid #ffd780}.rotazul-cluster-list{max-height:240px;overflow:auto;display:grid;gap:6px;color:#173b59}.rotazul-cluster-list button{font:inherit;text-align:left;padding:6px;color:#173b59;background:#edf4fa;border:1px solid #b6c8da;border-radius:4px;cursor:pointer}
