/* Fleet Map + Composition. Dark, dense, colourful; builds on shell.css tokens and dist.css controls. */
.flt-wrap { padding-bottom: 80px; }
.flt-wrap h3 { font-size: 15px; font-weight: 800; color: #fff; margin: 14px 0 6px; }
.flt-cov { font-size: 14px; color: var(--sc-text-2); line-height: 1.6; background: var(--sc-panel); border: 1px solid var(--sc-line); border-left: 6px solid var(--sc-accent); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; max-width: 150ch; }
.flt-cov b { color: #fff; font-variant-numeric: tabular-nums; }
.sc-tag.warn { border-color: var(--sc-amber); color: #f4cf85; }

/* both feeds side by side, never summed */
.flt-srcs { margin-bottom: 12px; }
.flt-srcs-h { font-size: 13px; font-weight: 700; color: var(--sc-text); margin-bottom: 6px; }
.flt-srcs-h span { font-weight: 500; color: var(--sc-text-3); margin-left: 8px; }
.flt-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.flt-tile { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; color: var(--sc-text-2); font-size: 13px; background: var(--sc-panel); border: 1px solid var(--sc-line); border-left: 6px solid var(--c); border-radius: 12px; padding: 10px 14px; cursor: pointer; min-height: 44px; }
.flt-tile b { color: #fff; font-size: 15px; }
.flt-tile .n { color: #fff; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.flt-tile.on { background: #16294a; border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; }
.flt-tile:hover { background: #162540; }
.flt-scale { font-size: 13px; color: var(--sc-text-2); margin-bottom: 8px; max-width: 150ch; line-height: 1.55; }
.flt-scale b { color: #fff; }
.flt-scale[hidden] { display: none; }

/* bubbles */
#flt-viz { background: var(--sc-panel); border: 1px solid var(--sc-line); border-radius: 14px; padding: 12px 14px 10px; }
.flt-bubwrap { display: block; }
.flt-bubwrap[hidden] { display: none; }
.flt-svg { display: block; width: 100%; max-width: 1100px; margin: 0 auto; height: auto; overflow: visible; }
.flt-bub { cursor: pointer; }
.flt-bub circle { stroke: rgba(255,255,255,.55); stroke-width: 2; transition: filter .12s; }
.flt-bub:hover circle { filter: brightness(1.15); stroke: #fff; }
.flt-bub:focus { outline: none; }
.flt-bub:focus-visible circle { stroke: var(--sc-focus); stroke-width: 5; }
.flt-bub.sel circle { stroke: #fff; stroke-width: 5; }
.flt-bl { fill: #07131f; font-weight: 700; }
.flt-key { display: flex; align-items: flex-end; gap: 12px; justify-content: center; margin-top: 4px; font-size: 13px; color: var(--sc-text-2); flex-wrap: wrap; }
.flt-phone-note { display: none; font-size: 13px; color: var(--sc-text-2); margin: 0 0 8px; }
.flt-legend { margin: 10px 0 8px; border: 0; background: transparent; padding: 0; }
.flt-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }

/* ranked rows and composition */
.flt-rows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.flt-row { padding: 8px 6px 10px; border-bottom: 1px solid #1c2e4a; }
.flt-row:last-child { border-bottom: 0; }
.flt-row.pin, .flt-tbl tr.pin { background: rgba(78,205,196,.09); box-shadow: inset 4px 0 0 var(--sc-accent); }
.flt-rh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-bottom: 4px; }
.flt-rk { font-size: 12px; color: var(--sc-text-3); width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.flt-name { font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: none; border: 0; text-align: left; padding: 8px 2px; min-height: 44px; cursor: pointer; text-decoration: underline; text-decoration-color: #496779; text-underline-offset: 4px; }
.flt-name.static { text-decoration: none; cursor: default; min-height: 0; padding: 4px 2px; }
.flt-name:hover { text-decoration-color: var(--sc-accent); }
.flt-ctry { font-size: 13px; color: var(--sc-text-3); }
.flt-n { font-size: 13px; color: var(--sc-text-2); margin-left: auto; }
.flt-n b { color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
.flt-hl { font-size: 13px; color: var(--sc-text); background: var(--sc-panel-2); border: 1px solid var(--sc-line); border-radius: 6px; padding: 1px 8px; }
.flt-hl em { color: #f4cf85; font-style: normal; }
.flt-bar { height: 18px; background: #0e1b30; border-radius: 4px; overflow: hidden; }
.flt-fill { display: block; height: 100%; min-width: 3px; border-radius: 4px; }
.flt-stack { display: flex; height: 26px; border-radius: 5px; overflow: hidden; gap: 1px; background: #0a1628; }
.flt-seg { min-width: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #07131f; overflow: hidden; white-space: nowrap; }
.flt-seg.dim { opacity: .45; }
.flt-seg:focus-visible { outline: 3px solid var(--sc-focus); outline-offset: -3px; }
.flt-cnts { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--sc-text-2); margin-top: 4px; }
.flt-c { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.flt-c b { color: #fff; }
.flt-c.hl { color: #fff; font-weight: 700; }
.flt-smallnote { flex-basis: 100%; font-size: 12px; color: var(--sc-text-3); }
.flt-all { padding: 6px 6px 12px; margin-bottom: 4px; border-bottom: 2px solid var(--sc-line); }

/* selected region: bases */
.flt-inspect { margin-top: 14px; background: #0e1b30; border: 1px solid var(--sc-accent); border-radius: 14px; padding: 12px 16px 14px; }
.flt-inspect[hidden] { display: none; }
.flt-ih { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.flt-ih h2 { margin: 0; }
.flt-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 4px; font-size: 13px; color: var(--sc-text-2); }
.flt-links a.dst-x { text-decoration: none; display: inline-flex; align-items: center; color: var(--sc-accent); }
.flt-nolink { color: #f4cf85; max-width: 100ch; }
.flt-bases { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; max-height: 520px; overflow: auto; }
.flt-bases li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 8px 4px; border-bottom: 1px solid #1c2e4a; font-size: 14px; color: var(--sc-text); }
.flt-bases li > .flt-stack, .flt-bases li > .flt-bar, .flt-bases li > .flt-cnts { grid-column: 1 / -1; }
.flt-bn small { color: var(--sc-text-3); margin-left: 6px; font-size: 12px; }
.flt-bc { font-variant-numeric: tabular-nums; color: #fff; }

/* search + table */
.flt-find { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 6px 0; }
.flt-find label { display: block; width: 100%; font-size: 12px; font-weight: 600; color: var(--sc-text-2); }
.flt-find input { flex: 1 1 280px; font: inherit; font-size: 15px; color: var(--sc-text); background: var(--sc-panel-2); border: 1px solid var(--sc-line); border-radius: 8px; min-height: 44px; padding: 0 12px; }
.flt-find .dst-x { text-decoration: none; display: inline-flex; align-items: center; }
.flt-tblwrap { border: 1px solid var(--sc-line); border-radius: 12px; background: var(--sc-panel); overflow: auto; max-height: 640px; }
.flt-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.flt-tbl th, .flt-tbl td { padding: 4px 10px; border-bottom: 1px solid #1c2e4a; text-align: left; font-weight: 400; color: var(--sc-text-2); }
.flt-tbl thead th { position: sticky; top: 0; background: #0d1a30; color: var(--sc-text-3); font-size: 12px; font-weight: 600; z-index: 2; white-space: nowrap; }
.flt-tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.flt-tbl td b, .flt-tbl tfoot b { color: #fff; }
.flt-tbl tbody th { color: #fff; }
.flt-tbl tfoot th, .flt-tbl tfoot td { background: #0d1a30; color: var(--sc-text); border-top: 1px solid var(--sc-line); }
.flt-via { display: block; font-size: 12px; color: var(--sc-amber); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flt-un { margin-top: 14px; background: var(--sc-panel); border: 1px solid var(--sc-line); border-radius: 12px; padding: 0 14px 10px; }
.flt-un summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: #f4cf85; font-size: 14px; font-weight: 600; }
.flt-tip { position: fixed; z-index: 60; pointer-events: none; background: #0e1b30; border: 1px solid var(--sc-accent); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--sc-text-2); max-width: 300px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.flt-tip[hidden], #flt-main[hidden], .dst-unavail[hidden] { display: none; }
.flt-tip b { color: #fff; font-size: 15px; }
.flt-tip .big { font-size: 22px; font-weight: 800; color: #fff; margin: 2px 0; }

@media (min-width: 1000px) {
  .flt-rows.map { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (max-width: 720px) {
  .flt-wrap { padding: 14px 12px 90px; }
  .flt-wrap h1 { font-size: 24px; }
  .flt-tiles { grid-template-columns: 1fr; }
  /* the phone diagram is the ranked bars: the 1000-unit bubble canvas would shrink its labels */
  .flt-bubwrap { display: none; }
  .flt-phone-note { display: block; }
  .flt-phone-note[hidden] { display: none; }
  .flt-n { margin-left: 0; flex-basis: 100%; }
  .flt-tblwrap { max-height: none; overflow: visible; border: 0; background: transparent; }
  .flt-tbl, .flt-tbl tbody, .flt-tbl tfoot, .flt-tbl tr, .flt-tbl th, .flt-tbl td { display: block; }
  .flt-tbl thead { display: none; }
  .flt-tbl tbody tr, .flt-tbl tfoot tr { background: var(--sc-panel); border: 1px solid var(--sc-line); border-radius: 10px; margin-bottom: 8px; padding: 6px 8px; }
  .flt-tbl td[data-l] { display: inline-flex; gap: 5px; border: 0; padding: 1px 12px 1px 4px; font-size: 13px; }
  .flt-tbl td[data-l]::before { content: attr(data-l) ':'; color: var(--sc-text-3); font-size: 13px; }
  .flt-tbl tbody th, .flt-tbl tfoot th { border: 0; }
  .flt-tbl tfoot tr { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .flt-tbl tfoot td[colspan] { display: none; }
  .flt-tbl tfoot th { flex: 1 1 60%; }
  .flt-ih { flex-direction: column; }
  .flt-bases { max-height: none; }
}
