/* FollowMyBoat additions on top of the dashboard's yp.css (linked in, never patched here).
   Everything is prefixed fmb- and built on yp.css tokens, per docs/design/followmyboat/05-web.html. */

/* ===== Font Awesome brands: only the two store glyphs ===== */
@font-face { font-family: 'FmbBrands'; font-style: normal; font-weight: 400; font-display: block; src: url('../lib/fontawesome-brands/fa-brands-400.woff2') format('woff2'); }
.fa-brands { font-family: 'FmbBrands' !important; font-weight: 400 !important; font-style: normal; }
.fa-apple { --fa: "\f179"; }
.fa-google-play { --fa: "\f3ab"; }

/* Blazor moves focus to the page's h1 after navigation (FocusOnNavigate); no ring for that. */
h1:focus { outline: none; }

/* ===== Theme helpers: show one of a light/dark pair ===== */
.th-d { display: none !important; }
[data-theme="dark"] .th-l { display: none !important; }
[data-theme="dark"] .th-d { display: block !important; }

/* ===== Brand lockup ===== */
/* --h is the wordmark height, --pw the Powered-by size. The logo SVG (371.1 x 36) is cropped to its text,
   which starts at x 77.5, so Powered by lines up under the F; the mark (yp-mark.svg, 420.4 x 186) stands
   the height of both lines, painted through a mask so it takes the theme's blue. */
.fmb-brand { --h: 22px; --pw: 11px; --mk: calc(var(--h) * .9 + 3px + var(--pw)); display: flex; align-items: center; gap: calc(var(--mk) * .26); line-height: 1; flex: none; }
.fmb-brand .mk { display: block; flex: none; height: var(--mk); width: calc(var(--mk) * 2.26); background: #0272C2; -webkit-mask: url(../img/brand/yp-mark.svg) center / contain no-repeat; mask: url(../img/brand/yp-mark.svg) center / contain no-repeat; }
[data-theme="dark"] .fmb-brand .mk, .fmb-brand.on-dark .mk { background: #338BFF; }
.fmb-brand .col { display: flex; flex-direction: column; gap: 3px; }
.fmb-brand img { height: var(--h); width: calc(var(--h) * 8.156); object-fit: cover; object-position: right center; display: block; }
.fmb-brand .pw { font: 400 var(--pw) var(--font-body); color: var(--text-2); text-decoration: none; }
.fmb-brand .pw b { color: var(--accent-text); font-weight: 700; }
.fmb-brand .pw:hover { text-decoration: underline; }
.fmb-brand.on-dark .pw { color: #B0B7BB; }
.fmb-brand.on-dark .pw b { color: #338BFF; }
.fmb-brand.lg { --h: 40px; --pw: 15px; }
.fmb-brand.lg .pw { margin-top: 2px; }

/* ===== Top bar ===== */
.tabs a { white-space: nowrap; }
.fmb-guest .ask { width: 250px; }
.topbar .btn { height: 38px; flex: none; }
.fmb-narrow-only { display: none !important; }

/* ===== Dark islands (radar hero, sign-in) ===== */
.rd-dark { --danger-text: #ff8f87; --warning-text: #ffcf6e; --canvas: #1c2428; --surface: #29353b; --surface-alt: #232d32; --line: #34424a; --text: #f2f2f2; --text-2: #b0b7bb; --accent-text: #338bff; color: #f2f2f2; color-scheme: dark; }
.fmb-radar { position: absolute; inset: 0; }

/* ===== Landing ===== */
.fmb-land { flex: 1; height: 100%; overflow: auto; background: var(--canvas); }
.fmb-radarhero { position: relative; height: 600px; overflow: hidden; background: #1c2428; }
.fmb-radarhero .txt { position: absolute; left: max(56px, calc(50% - 584px)); top: 90px; width: 560px; max-width: calc(100% - 112px); z-index: 4; }
.fmb-radarhero h1 { font: 700 40px/1.1 var(--font-head); letter-spacing: -.8px; margin-top: 26px; color: #f2f2f2; }
.fmb-radarhero h1 em { font-style: normal; color: #338bff; }
.fmb-radarhero .lead { font-size: 18px; color: #b0b7bb; margin: 14px 0 24px; line-height: 1.5; }

.fmb-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 16px; max-width: 540px; box-shadow: var(--shadow-sm); }
.fmb-search > i { color: var(--text-2); }
.fmb-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--text); font: 16px var(--font-body); height: 44px; }
.fmb-search input::placeholder { color: var(--text-2); }
.fmb-search .btn { height: 44px; padding: 0 20px; font-size: 15px; flex: none; }
.fmb-search:focus-within { border-color: var(--accent); }
.fmb-search.sm { margin: 18px auto 0; }
.fmb-search.sm input, .fmb-search.sm .btn { height: 38px; }

.fmb-or { margin: 14px 0 0 4px; font-size: 15px; color: #b0b7bb; }
.fmb-or a { color: #338bff; font-weight: 600; text-decoration: none; margin: 0 2px; }
.fmb-or a:hover { text-decoration: underline; }
.fmb-or a .fa-map-location-dot { margin-right: 6px; }
.fmb-or a .fa-arrow-right { margin-left: 6px; font-size: 12px; }
.fmb-stores { display: flex; gap: 10px; margin-top: 22px; align-items: center; flex-wrap: wrap; }
.fmb-store { background: #111; color: #fff; border: 1px solid #3a4a52; border-radius: 10px; padding: 7px 16px 8px; font: 600 14px var(--font-head); display: flex; align-items: center; gap: 10px; line-height: 1.1; cursor: default; }
.fmb-store i { font-size: 22px; }
.fmb-store small { display: block; font: 400 10px var(--font-body); opacity: .8; }
.fmb-stores .note { color: var(--text-2); font-size: 13px; margin-left: 6px; }

.fmb-sec { max-width: 1280px; margin: 0 auto; padding: 0 56px 48px; }
.fmb-radarhero + .fmb-sec { padding-top: 44px; }
.fmb-sec h2 { font: 700 26px var(--font-head); letter-spacing: -.01em; margin-bottom: 6px; }
.fmb-sec > p { color: var(--text-2); font-size: 16px; margin-bottom: 20px; }
.fmb-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fmb-three .card { padding: 20px; }
.fmb-three .ring { width: 44px; height: 44px; font-size: 17px; }
.fmb-three h3 { font-size: 17px; margin: 14px 0 6px; }
.fmb-three p { color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.fmb-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fmb-cmp .card { padding: 20px 22px; }
.fmb-cmp .card.yp { border: 2px solid var(--accent); }
.fmb-cmp .card .btn { margin-top: 12px; }
.fmb-cmp h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fmb-cmp ul { margin: 0; padding: 0; }
.fmb-cmp li { list-style: none; display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.fmb-cmp li i { width: 18px; margin-top: 3px; color: var(--success); }
.fmb-cmp li.no i { color: var(--text-2); }
.fmb-ypb { display: inline-grid; place-items: center; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--accent); color: #fff; font: 700 11px var(--font-head); }
.fmb-raysec { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: center; padding: 24px 30px; }
.fmb-raysec img { width: 220px; }
.fmb-raysec h2 { margin-top: 8px; }
.fmb-raysec p { font-size: 15.5px; margin-top: 8px; max-width: 560px; }
.fmb-rayhead { display: flex; align-items: center; gap: 8px; font: 700 13px var(--font-head); color: var(--accent-text); letter-spacing: .04em; text-transform: uppercase; }
.fmb-chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.fmb-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-alt); color: var(--text); font-size: 13.5px; }
.fmb-chip:hover { border-color: var(--accent); }

/* ===== Footer ===== */
.fmb-foot { border-top: 1px solid var(--line); background: var(--surface); }
.fmb-foot .yp { display: flex; gap: 14px; align-items: center; max-width: 1168px; margin: 20px auto 0; padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-size: 14px; }
.fmb-foot .yp .mk { width: 30px; flex: none; }
.fmb-foot .yp b { font-family: var(--font-head); }
.fmb-foot .yp .btn { margin-left: auto; flex: none; }
.fmb-foot .links { display: flex; gap: 20px; max-width: 1168px; margin: 0 auto; padding: 16px 0 22px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.fmb-foot .links a { color: var(--accent-text); font-weight: 700; }
.fmb-foot .links .end { margin-left: auto; }

/* ===== Sign-in shell (radar, card on the right) ===== */
.fmb-auth { position: relative; min-height: 100%; height: 100%; overflow: auto; background: #1c2428; display: flex; flex-direction: column; }
.fmb-auth-main { position: relative; z-index: 4; flex: 1; display: flex; align-items: center; justify-content: flex-end; padding: 32px 70px; }
.fmb-auth .auth-card { width: 460px; max-width: 100%; background: rgba(41, 53, 59, .95); border: 1px solid #34424a; }
.fmb-auth-logo { display: flex; justify-content: center; margin-bottom: 22px; }
.fmb-auth-logo .fmb-brand { align-items: center; }
.fmb-auth-logo .fmb-brand { --h: 32px; }
.fmb-auth-foot { position: relative; z-index: 4; display: flex; gap: 24px; flex-wrap: wrap; padding: 14px 24px; font-size: 13px; color: #7d8a91; }
.fmb-auth-foot a { color: var(--accent-text); font-weight: 700; }
.fmb-auth .field small { display: block; font-size: 12.5px; margin-top: 4px; }
.fmb-auth .auth-row .err { flex-basis: 100%; }
.fmb-auth-done { text-align: center; }
.fmb-auth-done .ring { width: 56px; height: 56px; font-size: 22px; margin: 0 auto 14px; }
.fmb-auth-done .lead b { color: var(--text); }
.topbar span.ask { cursor: default; }
.fmb-auth-foot i { color: var(--accent-text); margin-right: 6px; }

/* ===== Placeholder / not-found card ===== */
.fmb-coming { flex: 1; display: grid; place-items: center; padding: 32px 16px; overflow: auto; }
.fmb-coming .card { max-width: 520px; padding: 32px; text-align: center; }
.fmb-coming .ring { width: 56px; height: 56px; font-size: 22px; margin: 0 auto 14px; }
.fmb-coming h1 { font: 700 24px var(--font-head); margin-bottom: 8px; }
.fmb-coming p { font-size: 15px; line-height: 1.5; margin-bottom: 18px; }

/* ===== Explore (05 Web, page 2) ===== */
.fmb-locate { width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--text); font-size: 16px; }
.fmb-locate:hover { color: var(--accent-text); }
.fmb-explore .empty .fmb-empty-acts { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }

/* The list is a panel over the map (Pages/Explore.razor): the map takes the whole width and the panel slides in from
   the left, closed by default. On a phone it's a sheet from the bottom instead (below). */
.app-main:has(> .fmb-explore) { position: relative; }
.fmb-explore { position: absolute; z-index: 20; left: 12px; top: 12px; bottom: 12px; width: 400px; max-width: calc(100% - 24px);
    border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 34px rgba(0, 0, 0, .18); overflow: hidden;
    transform: translateX(calc(-100% - 24px)); visibility: hidden;
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s .32s; }
.fmb-explore.open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.fmb-panel-close { width: 32px; height: 32px; margin-right: -6px; display: grid; place-items: center; border-radius: 8px; border: 0; background: none; color: var(--text-2); cursor: pointer; font-size: 14px; }
.fmb-panel-close:hover { background: var(--surface-alt); color: var(--text); }
.fmb-pill { left: 16px; top: 16px; display: flex; align-items: center; gap: 8px; }
.fmb-panel-open { min-height: 52px; padding: 8px 18px 8px 10px; display: flex; align-items: center; gap: 12px; cursor: pointer;
    background: var(--accent); border-color: transparent; color: #fff; text-align: left; box-shadow: 0 6px 22px rgba(2, 114, 194, .35), 0 2px 6px rgba(0, 0, 0, .15); }
.fmb-panel-open > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 15px; }
.fmb-panel-open .t { display: flex; flex-direction: column; gap: 1px; }
.fmb-panel-open b { font: 700 16px var(--font-head); line-height: 1.15; }
.fmb-panel-open small { font: 600 12.5px var(--font-head); opacity: .88; font-variant-numeric: tabular-nums; }
.fmb-panel-open:hover { filter: brightness(1.08); }
.fmb-panel-open[hidden], .fmb-panel-open[hidden] + .fmb-show-all { display: none; }
.fmb-show-all { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--text); font-size: 16px; }
.fmb-show-all[hidden] { display: none; }
.fmb-show-all:hover { color: var(--accent-text); }
.fmb-search-x { width: 26px; height: 26px; margin-right: -6px; display: grid; place-items: center; flex: none; border: 0; border-radius: 50%; background: var(--surface-alt); color: var(--text-2); cursor: pointer; font-size: 13px; }
.fmb-search-x:hover { color: var(--text); }
.fmb-search-x[hidden] { display: none; }
.ais-search input::-webkit-search-cancel-button { display: none; }   /* our × also takes you back to every boat */
@media (prefers-reduced-motion: reduce) { .fmb-explore, .fmb-explore.open { transition: none; } }
.fmb-gate { margin: 0; padding: 0; }
.fmb-gate li { list-style: none; display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; text-align: left; }
.fmb-gate li:first-child { border-top: 0; }
.fmb-gate li .t { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 13px; flex: none; }
.fmb-gate li b { display: block; font-family: var(--font-head); font-size: 14.5px; }
.fmb-gate li small { display: block; font-size: 12.5px; color: var(--text-2); }

/* ===== Map lab (development only) ===== */
.fmb-lab { width: 360px; }
.fmb-lab-body { flex: 1; min-height: 0; padding: 0 14px 14px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.fmb-lab .segp { display: flex; }
.fmb-lab .segp button { flex: 1; }
.fmb-lab-note { font-size: 12px; line-height: 1.45; }
.fmb-lab details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.fmb-lab details + details { margin-top: 6px; }
.fmb-lab summary { cursor: pointer; padding: 9px 12px; font: 700 13px var(--font-head); display: flex; align-items: center; gap: 8px; }
.fmb-lab summary small { margin-left: auto; font: 600 11px var(--font-body); color: var(--accent-text); }
.fmb-lab details[open] > summary { border-bottom: 1px solid var(--line); }
.fmb-lab-row { display: grid; grid-template-columns: 1fr auto 24px; align-items: center; gap: 8px; padding: 5px 10px; font-size: 13px; }
.fmb-lab-row.k-size, .fmb-lab-row.k-opacity { grid-template-columns: 1fr 110px 38px 24px; }
.fmb-lab-row:has(select) { grid-template-columns: 1fr auto; }
.fmb-lab-row.changed > span { font-weight: 700; color: var(--accent-text); }
.fmb-lab-row input[type=range] { width: 110px; }
.fmb-lab-row output { font: 600 11.5px var(--font-head); color: var(--text-2); text-align: right; }
.fmb-lab-row select { height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-alt); color: var(--text); }
.fmb-lab input[type=color] { width: 44px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.fmb-lab-undo { width: 24px; height: 24px; border: 0; background: none; color: var(--text-2); cursor: pointer; border-radius: 6px; font-size: 11px; visibility: hidden; }
.changed > .fmb-lab-undo { visibility: visible; }
.fmb-lab-undo:hover { background: var(--surface-alt); color: var(--text); }
.fmb-lab-ticks { display: grid; gap: 3px; padding: 2px 12px 8px; font-size: 13px; }
.fmb-lab-ticks label { display: flex; gap: 8px; align-items: center; }
.fmb-lab-findbox { margin-top: 6px; }
.fmb-lab-find { width: calc(100% - 20px); margin: 8px 10px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-alt); color: var(--text); }
.fmb-lab-findbox p { padding: 0 12px 10px; font-size: 12.5px; }
.fmb-lab-raw { display: grid; grid-template-columns: 1fr auto 24px; gap: 6px; align-items: center; padding: 4px 10px; }
.fmb-lab-raw code { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmb-lab-raw.changed code { color: var(--accent-text); font-weight: 700; }
.fmb-lab-raw input[type=number] { width: 80px; }
.fmb-lab-raw input[type=text] { width: 140px; font: 11px ui-monospace, monospace; }
.fmb-lab-raw input.bad { outline: 2px solid var(--danger); }
.fmb-lab-scatter { height: 30px; font-size: 12.5px; }
.fmb-lab-acts { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.fmb-lab-acts .btn.primary { flex: 1; }
.fmb-lab-maps { flex-direction: row; }
.fmb-lab-maps .mapwrap + .mapwrap { border-left: 2px solid var(--line); }
.fmb-lab-tag { position: absolute; top: 12px; left: 12px; z-index: 6; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 700 12px var(--font-head); }
.fmb-lab-zoom { position: absolute; top: 12px; right: 12px; z-index: 6; display: flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 600 12px var(--font-head); font-variant-numeric: tabular-nums; }
.fmb-lab-zoom b { font-size: 14px; }
.fmb-lab-zoom small { font: 600 11px var(--font-body); color: var(--text-2); }
.fmb-lab-tag.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== Bottom bar (narrow) ===== */
.fmb-mobilebar { display: none; }

@media (max-width: 1100px) {
  .fmb-guest .ask { display: none; }
}

@media (max-width: 760px) {
  .fmb-wide-only { display: none !important; }
  .fmb-narrow-only { display: inline-flex !important; }
  .topbar { gap: 8px; padding: 0 12px; }
  .topbar .tabs { display: none; }
  .topbar .btn { height: 34px; font-size: 13px; padding: 0 12px; }
  .fmb-brand { --h: 20px; --mk: calc(var(--h) * .78); gap: calc(var(--h) * .42); }
  .fmb-brand .pw { display: none; }

  .fmb-mobilebar { display: grid; grid-template-columns: repeat(4, 1fr); flex: none; height: 62px; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .fmb-mobilebar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 700 10.5px var(--font-body); color: var(--text-2); }
  .fmb-mobilebar a i { font-size: 18px; }
  .fmb-mobilebar a.on { color: var(--accent-text); }

  .fmb-radarhero { height: auto; min-height: 640px; }
  .fmb-radarhero .txt { position: relative; left: 0; top: 0; width: auto; max-width: none; padding: 330px 20px 32px; }
  .fmb-radarhero .txt::before { content: ""; position: absolute; inset: 260px 0 0; background: linear-gradient(rgba(28,36,40,0), #1c2428 70px); z-index: -1; }
  .fmb-radarhero .fmb-brand.lg { display: none; } /* the top bar already shows it */
  .fmb-radarhero h1 { font-size: 30px; margin-top: 0; }
  .fmb-radarhero .lead { font-size: 16px; }
  .fmb-search { padding-left: 12px; }
  .fmb-search .btn { padding: 0 14px; }
  .fmb-sec { padding: 0 16px 32px; }
  .fmb-radarhero + .fmb-sec { padding-top: 28px; }
  .fmb-three, .fmb-cmp { grid-template-columns: 1fr; }
  .fmb-raysec { grid-template-columns: 1fr; padding: 20px; }
  .fmb-raysec img { width: 160px; margin: 0 auto; }
  .fmb-foot .yp { margin: 16px 16px 0; flex-wrap: wrap; }
  .fmb-foot .links { padding: 16px; gap: 12px 16px; }
  .fmb-foot .links .end { margin-left: 0; }

  .fmb-auth-main { justify-content: center; padding: 24px 16px; }

  /* Explore: the list is a sheet over the bottom of the map (the app's bottom sheet, simplified). */
  .fmb-explore { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; height: 58%;
      border-width: 1px 0 0; border-radius: 16px 16px 0 0; transform: translateY(calc(100% + 12px)); }
  .fmb-explore .list-col-h { padding-top: 10px; }
  .fmb-panel-close i { transform: rotate(-90deg); }
  .fmb-stack { top: 80px; }   /* under the Search pill, which takes the top row on a phone */
  .fmb-auth-foot { justify-content: center; }
}

/* Explore list: the flag's two-letter code beside it (AU, KY), for flags that look alike. */
.fmb-cc { font: 700 10px var(--font-head); letter-spacing: .04em; color: var(--text-2); margin: 0 6px 0 -2px; vertical-align: 1px; }

/* ===== My Boats (05 Web, page 6): the dashboard's Fleet layout for followed boats (Pages/MyBoats.razor). ===== */
.fmb-boats .fleet-head { align-items: center; }
.fmb-follow-btn { height: 34px; }
.fmb-boats .fleet-tools input[hidden], .fmb-boats [hidden] { display: none; }
.fmb-boats .fmb-empty-acts, .fmb-alerts .fmb-empty-acts { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.fmb-boats .boat-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fmb-boats .boat-row .more { padding-left: 64px; }
.fmb-boats .boat-row .acts { flex-wrap: wrap; }
.fmb-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-alt); flex: none; }
.fmb-ic svg { width: 34px; height: 34px; }
.boat-row.sel .fmb-ic, .boat-row:hover .fmb-ic { background: var(--surface); }
.fmb-rowtop { display: flex; align-items: center; gap: 6px; }
.fmb-rowtop .nm { flex: 1; }
.fmb-flag { font-size: 15px; margin-right: 6px; }
.fmb-sent { font-size: 13px; color: var(--text); line-height: 1.4; margin-top: 2px; }
.fmb-age { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); margin-top: 4px; }
.sdot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.sdot.ok { background: var(--success); } .sdot.warn { background: var(--warning); } .sdot.off { background: var(--unknown, #9aa5ab); }
.boat-row.alert { background: color-mix(in srgb, var(--danger) 6%, var(--surface)); box-shadow: inset 3px 0 0 var(--danger); }
@media (max-width: 760px) {
    /* The chart on top, your boats under it. */
    .app-main:has(> .fmb-boats) { flex-direction: column-reverse; }
    .fmb-boats { width: auto; height: 58%; border-right: 0; border-top: 1px solid var(--line); }
}

/* Explore: the ping on the map while a list row is hovered (js/pages/explore.js). A HERE DomIcon puts the element's
   top-left on the boat, so the rings are centred on a zero-size box. Radar rings: white with a dark shadow so they
   read on the blue sea, round a steady brand-blue dot. */
.fmb-ping { position: relative; width: 0; height: 0; pointer-events: none; }
.fmb-ping i, .fmb-ping b, .fmb-ping::after { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.fmb-ping i { width: 120px; height: 120px; border: 5px solid #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.3), 0 0 14px 3px rgba(2,114,194,.75), inset 0 0 0 1.5px rgba(0,0,0,.25), inset 0 0 12px 2px rgba(2,114,194,.6); opacity: 0; animation: fmb-ping 1.6s cubic-bezier(.2,.6,.4,1) infinite; }
.fmb-ping i:nth-child(2) { animation-delay: .53s; }
.fmb-ping i:nth-child(3) { animation-delay: 1.06s; }
/* A steady ring that stays, so there is always something to see between pulses. */
.fmb-ping::after { content: ''; width: 34px; height: 34px; border: 4px solid #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.35), 0 0 10px 2px rgba(2,114,194,.7); }
.fmb-ping b { width: 16px; height: 16px; background: #0272c2; border: 3px solid #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.4), 0 0 14px 5px rgba(255,255,255,.6); }
@keyframes fmb-ping {
    0% { transform: translate(-50%, -50%) scale(.2); opacity: 1; }
    70% { opacity: .55; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .fmb-ping i { animation: none; opacity: .9; transform: translate(-50%, -50%) scale(.5); }
    .fmb-ping i:nth-child(n+2) { display: none; }
}

/* ===== Alerts (05 Web, page 10): the dashboard's alerts list + detail (Pages/Alerts.razor, js/pages/alerts.js). ===== */
.fmb-alerts .filters[hidden] { display: none; }
.fmb-alerts .filters .chip { cursor: pointer; font-family: inherit; }
.fmb-alerts .al { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.fmb-alerts .al:hover, .fmb-alerts .al.sel { background: var(--surface-alt); }
.fmb-alerts .al:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fmb-alert > [data-alert-detail] { max-width: 760px; }
.fmb-alert .meta-row .sm-flag { font-size: 14px; }
.fmb-alert-map { margin-top: 18px; height: 300px; position: relative; overflow: hidden; padding: 0; }
.fmb-alert-map .map { position: absolute; inset: 0; }
.fmb-alert-acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.fmb-alert-back { display: none; margin-bottom: 14px; height: 34px; }
/* Where it happened: a pin label in the alert's colour, its tip on the spot (a DomIcon puts the element's top-left
   there, so the label is moved up and left by its own size). */
.fmb-spot { position: absolute; transform: translate(-50%, calc(-100% - 8px)); display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--surface); color: var(--text); white-space: nowrap;
    font: 600 12px var(--font-head); box-shadow: 0 2px 8px rgba(0,0,0,.25); border: 2px solid var(--accent); pointer-events: none; }
.fmb-spot::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 10px; height: 10px; border-radius: 50%;
    transform: translate(-50%, 50%); background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.fmb-spot i { font-size: 11px; color: var(--accent); }
.fmb-spot.ok { border-color: var(--success); } .fmb-spot.ok::after { background: var(--success); } .fmb-spot.ok i { color: var(--success); }
.fmb-spot.warn { border-color: var(--warning); } .fmb-spot.warn::after { background: var(--warning); } .fmb-spot.warn i { color: var(--warning); }
.fmb-spot.bad { border-color: var(--danger); } .fmb-spot.bad::after { background: var(--danger); } .fmb-spot.bad i { color: var(--danger); }
@media (max-width: 760px) {
    /* One at a time on a phone: the list, or the alert you opened with a way back. */
    .fmb-alerts { width: auto; flex: 1; border-right: 0; }
    .fmb-alert { display: none; }
    .app-main.fmb-alert-open .fmb-alerts { display: none; }
    .app-main.fmb-alert-open .fmb-alert { display: block; }
    .fmb-alert-back { display: inline-flex; }
    .fmb-alert-map { height: 240px; }
}
