.public-fleet-app {
    background: #f1f6f6;
    color: #172f39;
}

.public-fleet-app .container {
    width: min(1380px, calc(100% - 72px));
    max-width: none;
    margin: 0 auto;
}

.public-fleet-app .header {
    position: relative;
}

.public-fleet-app .header .brand {
    color: #153842;
    text-decoration: none;
}

.fleet-dashboard {
    --fleet-ink: #183640;
    --fleet-secondary: #506973;
    --fleet-line: #dbe8e8;
    --fleet-accent: #087c75;
    --fleet-live: #078161;
    --fleet-fishing: #b93245;
    padding: 36px 0 42px;
}

.fleet-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 23px;
}
.fleet-heading h1 {
    margin: 0;
    color: var(--fleet-ink);
    font-size: clamp(2rem, 4.1vw, 3.45rem);
    font-weight: 790;
    letter-spacing: -.064em;
    line-height: 1.04;
}
.fleet-heading .eyebrow {
    margin: 0 0 9px;
    color: var(--fleet-accent);
    font-weight: 720;
    font-size: .75rem;
    letter-spacing: .085em;
}
.fleet-lead {
    color: var(--fleet-secondary);
    font-size: 1rem;
    margin: 9px 0 0;
}

.fleet-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(265px, 310px);
    align-items: start;
    gap: 20px;
}
.fleet-map-panel {
    min-width: 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #123b4b;
    border: 1px solid #143c49;
    border-radius: 21px;
    box-shadow: 0 17px 44px #193f4d20;
}
.fleet-map {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 380px;
    height: clamp(410px, 64vh, 660px);
    background: linear-gradient(135deg, #174c5c, #092a40);
    cursor: grab;
    touch-action: none;
}
.fleet-map.is-dragging { cursor: grabbing; }
.fleet-map:focus-visible { outline: 3px solid #6bebdf; outline-offset: -5px; }
.fleet-canvas, .fleet-markers { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.fleet-canvas { pointer-events: none; }
.fleet-markers { pointer-events: none; }

.fleet-marker {
    --pin: #69e3bf;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 0;
    height: 0;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    pointer-events: auto;
    cursor: pointer;
}
.fleet-marker[data-status="fishing"] { --pin: #ff6d79; }
.fleet-marker[data-status="known"] { --pin: #b6c7cf; }
.fleet-marker[aria-pressed="true"],
.fleet-marker:focus-visible,
.fleet-marker:hover { z-index: 3; }
.fleet-marker-pin {
    position: absolute;
    left: -9px;
    top: -9px;
    display: block;
    width: 18px;
    height: 18px;
    border: 3px solid #e6f7f5;
    border-radius: 50%;
    background: var(--pin);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pin) 35%, transparent), 0 3px 11px #03192090;
}
.fleet-marker-label {
    position: absolute;
    top: -15px;
    left: 14px;
    max-width: 138px;
    padding: 6px 9px;
    border: 1px solid #456875;
    border-radius: 7px;
    background: #173742ee;
    color: #f5ffff;
    font: 700 .78rem/1.1 system-ui, sans-serif;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 3px 14px #071d2760;
}
.fleet-marker.align-right .fleet-marker-label { left: auto; right: 14px; }
.fleet-marker[aria-pressed="true"] .fleet-marker-label,
.fleet-marker:focus-visible .fleet-marker-label,
.fleet-marker:hover .fleet-marker-label { border-color: var(--pin); background: #09262e; }
.fleet-marker:focus-visible .fleet-marker-pin { outline: 3px solid var(--pin); outline-offset: 3px; }

.fleet-map-tools {
    display: flex;
    gap: 5px;
    align-items: center;
    position: absolute;
    z-index: 6;
    top: 15px;
    left: 15px;
    padding: 4px;
    background: #0b303eeb;
    border: 1px solid #ffffff2c;
    border-radius: 12px;
    box-shadow: 0 4px 12px #071d2790;
}
.fleet-map-tools button {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    min-height: 37px;
    border: 0;
    border-radius: 8px;
    padding: 0 12px;
    background: #274c58;
    color: #f1fcfb;
    font: 700 .84rem/1 system-ui, sans-serif;
    cursor: pointer;
}
#fleet-zoom-in, #fleet-zoom-out { padding: 0; font-size: 1.2rem; }
.fleet-map-tools button:hover:not(:disabled) { background: #396773; }
.fleet-map-tools button:disabled { opacity: .46; cursor: default; }
.fleet-map-tools button:focus-visible { outline: 2px solid #87eadc; outline-offset: -3px; }
.fleet-scale {
    position: absolute;
    right: 15px;
    bottom: 32px;
    min-width: 25px;
    color: #d1eeee;
    font: 650 .72rem/1 system-ui, sans-serif;
    text-align: center;
    white-space: nowrap;
    transform: translateY(-4px);
    pointer-events: none;
}
.fleet-scale::after {
    display: block;
    content: '';
    height: 4px;
    margin-top: 3px;
    border: 1px solid currentColor;
    border-top: 0;
}
.fleet-map-attribution {
    position: absolute;
    right: 12px;
    bottom: 8px;
    z-index: 5;
    color: #e0efef;
    font-size: .68rem;
    background: #102e3de5;
    border-radius: 5px;
    padding: 3px 6px;
}
.fleet-map-attribution a { color: inherit; text-decoration-color: #96bbc2; text-underline-offset: .12em; }
.fleet-map-attribution a:focus-visible { outline: 2px solid #87eadc; }
.fleet-map-hint, .fleet-map-empty {
    position: absolute;
    z-index: 4;
    padding: 9px 13px;
    max-width: min(75%, 345px);
    border: 1px solid #4b7582;
    border-radius: 10px;
    background: #102d3be9;
    color: #e7f5f6;
    font-size: .83rem;
    pointer-events: none;
}
.fleet-map-hint { left: 14px; bottom: 33px; }
.fleet-map-empty {
    width: max-content;
    top: 51%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.fleet-map-empty[hidden], .fleet-map-hint[hidden], .fleet-marker[hidden], .fleet-error[hidden] { display: none; }

.fleet-sidebar {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--fleet-line);
    border-radius: 18px;
    background: #fbfdfd;
    box-shadow: 0 10px 32px #2b4a5212;
}
.fleet-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 17px 15px 13px;
    border-bottom: 1px solid var(--fleet-line);
}
.fleet-summary h2 { margin: 0; color: var(--fleet-ink); font-size: 1.12rem; line-height: 1.3; letter-spacing: -.025em; }
.fleet-updated { color: var(--fleet-secondary); font-size: .76rem; margin: 4px 0 0; }
.fleet-count {
    padding: 5px 8px;
    color: #126c60;
    background: #e1f3ef;
    border-radius: 7px;
    font-size: .73rem;
    font-weight: 720;
    white-space: nowrap;
}
.fleet-boats {
    max-height: min(59vh, 584px);
    overflow: auto;
    scrollbar-color: #9ebdba #eff7f6;
    padding: 0 14px;
}
.fleet-boat-card {
    position: relative;
    padding: 14px 3px;
    border-bottom: 1px solid var(--fleet-line);
}
.fleet-boat-card:last-child { border-bottom: 0; }
.fleet-boat-card.is-selected { padding-left: 10px; border-left: 2px solid var(--fleet-accent); }
.boat-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.boat-card-head h3 { margin: 0; color: var(--fleet-ink); font-size: 1rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
.boat-company { margin: 3px 0 0; color: var(--fleet-secondary); font-size: .73rem; overflow-wrap: anywhere; }
.fleet-locate {
    display: grid;
    place-items: center;
    min-width: 35px;
    min-height: 35px;
    flex: 0 0 auto;
    border: 1px solid #d3e5e4;
    border-radius: 8px;
    background: #f3f9f8;
    color: #075c5c;
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}
.fleet-locate:hover, .fleet-locate[aria-current="location"] { background: #deefeb; border-color: #9ecdc0; }
.fleet-locate:focus-visible { outline: 2px solid var(--fleet-accent); outline-offset: 2px; }
.boat-card-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 9px;
    align-items: center;
    font-size: .77rem;
    white-space: nowrap;
    margin-top: 10px;
}
.boat-live-status { color: #506973; display: flex; align-items: center; gap: 6px; font-weight: 680; }
.boat-live-dot { height: 7px; width: 7px; border-radius: 50%; background: #728b94; }
[data-status="live"] .boat-live-status { color: var(--fleet-live); }
[data-status="live"] .boat-live-dot { background: #169371; }
[data-status="fishing"] .boat-live-status { color: var(--fleet-fishing); }
[data-status="fishing"] .boat-live-dot { background: #c24250; }
.boat-depth { color: var(--fleet-secondary); font-variant-numeric: tabular-nums; }
.boat-observed { color: var(--fleet-secondary); margin-top: 6px; font-size: .74rem; }
.fleet-loading, .fleet-error { margin: 9px 0; padding: 9px 11px; font-size: .82rem; color: var(--fleet-secondary); }
.fleet-error { margin: 9px 14px 0; border-radius: 8px; background: #faeee6; color: #824d2a; }

.fleet-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    align-items: center;
    color: var(--fleet-secondary);
    font-size: .78rem;
    margin: 0;
    padding: 12px 16px;
    list-style: none;
    border-top: 1px solid var(--fleet-line);
}
.fleet-legend li { display: inline-flex; align-items: center; gap: 6px; }
.fleet-legend li span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #168b68;
}
.fleet-legend .fleet-legend-last { background: #6c8390; }
.fleet-legend .fleet-legend-fishing { background: #c84556; }
.fleet-footnote { color: var(--fleet-secondary); margin: 12px 0 0; font-size: .76rem; }

@media (max-width: 980px) {
    .public-fleet-app .container { width: calc(100% - 42px); }
    .fleet-grid { grid-template-columns: minmax(0, 1fr) minmax(232px, 260px); gap: 14px; }
}
@media (max-width: 760px) {
    .public-fleet-app .container { width: calc(100% - 28px); }
    .fleet-dashboard { padding: 23px 0 32px; }
    .fleet-grid { grid-template-columns: minmax(0, 1fr); }
    .fleet-heading { margin-bottom: 16px; align-items: flex-start; }
    .fleet-map { min-height: 300px; height: clamp(330px, 54vh, 470px); }
    .fleet-map-panel, .fleet-sidebar { border-radius: 14px; }
    .fleet-map-tools { top: 9px; left: 9px; }
    .fleet-boats { max-height: none; }
}
@media (max-width: 390px) {
    .fleet-map { min-height: 290px; height: 48vh; }
    .fleet-map-tools button { min-width: 33px; min-height: 34px; padding: 0 8px; }
    .fleet-marker-label { max-width: 100px; }
}
