/* Boards Spotter, SpotterFilters, M-Spotter and M-SpotterFilters. Rules sit under .spt, except the advanced
   panel's (.spt-adv, .spt-f), which travels into the shared sheet (.spt-sheet) on a phone. */
.spt{container:spt / inline-size;display:flex;flex-direction:column;--page-gap:20px;gap:var(--page-gap);min-width:0}
/* The gap spaces the panels, not the old sheet's .panel bottom margin. */
.spt .panel{margin:0}
@media not all and (min-width:768px) and (min-height:520px){ .spt{--page-gap:14px} }
.spt .spt-pill{position:absolute;top:12px;left:12px;z-index:1000;pointer-events:none;display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:10px;background:var(--sel-tint);
  color:var(--ink);font-size:14px;font-weight:800;white-space:nowrap}
.spt .spot-live-dot{display:inline-flex;align-items:center;gap:8px}
.spt .spot-live-dot::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--accent-line);box-shadow:0 0 0 4px var(--ring)}
.spt .spot-live-dot--checking::before{background:var(--faint);box-shadow:none}
.spt .spot-live-dot--stale::before{background:var(--neg);box-shadow:none}
.spt .spt-upd{font-weight:600;color:var(--accent-line)}
.spt .spot-live-dot:not(:empty) + .spt-upd:not(:empty)::before{content:"· "}
.spt .spt-tools{display:none;gap:8px}
.spt .spt-pause[aria-pressed="true"]{border-color:var(--accent-line);background:var(--sel-tint)}
.spt .spt-map{position:relative;height:420px;overflow:hidden;border:1px solid var(--line-soft);border-radius:16px;background:var(--map)}
.spt .spt-map-map{position:absolute;inset:0}
.spt .spt-map-upd{display:none}

.spt .spt-filters{display:flex;flex-direction:column;gap:14px;padding:16px 20px}
:is(.spt,.spt-sheet) .spt-bar{display:flex;align-items:center;gap:12px}
.spt .spt-advrow{display:flex}
.spt .spt-adv-toggle{flex:none;cursor:pointer}
:is(.spt,.spt-sheet) .spt-bar-l{flex:none;width:64px;font-size:11px;font-weight:800;letter-spacing:.2em;color:var(--muted)}
:is(.spt,.spt-sheet) .spt-bands{display:flex;flex-wrap:wrap;flex-grow:1;gap:6px;min-width:0}
:is(.spt,.spt-sheet) .spt-band{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;box-sizing:border-box;border:1px solid var(--ink);border-radius:9px;
  background:var(--panel);color:var(--ink);font-size:14px;font-weight:800;cursor:pointer}
:is(.spt,.spt-sheet) .spt-band[aria-pressed="false"]{border-style:dashed;border-color:var(--line);color:var(--muted)}
:is(.spt,.spt-sheet) .spt-band i{flex:none;width:9px;height:9px;border-radius:2px}

.spt-adv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;padding-top:16px;border-top:1px solid var(--row)}
.spt-adv[hidden]{display:none}
.spt-f{display:block;min-width:0;margin:0}
.spt-f--wide{grid-column:1/-1}
.spt-inp{text-transform:none}
.spt-chips{display:flex;flex-wrap:wrap;gap:6px}
.spt-chips .chip{cursor:pointer}
.spt-range{display:flex;align-items:center;gap:8px}
.spt-range .inp{flex:1 1 0;min-width:0}
.spt-unit{font-size:14px;color:var(--muted)}
.spt-snr{width:120px}
.spt-hint{margin:0}
dialog.app-dialog.spt-sheet .spt-adv{padding-top:0;border-top:0;gap:14px 12px}
dialog.app-dialog.spt-sheet .spt-f:nth-child(-n+2){grid-column:1/-1}
dialog.app-dialog.spt-sheet .spt-snr{width:100%}
dialog.app-dialog.spt-sheet .spt-range{gap:6px}
dialog.app-dialog.spt-sheet .spt-range .inp{padding:0 8px}
dialog.app-dialog.spt-sheet .spt-unit,dialog.app-dialog.spt-sheet .spt-hint{display:none}
dialog.app-dialog.spt-sheet .ft .btn{flex:1}

.spt .spt-table{overflow:hidden}
.spt .spt-tbl{width:100%;border-collapse:collapse;table-layout:fixed}
.spt .spt-tbl th{height:42px;padding:0;border-bottom:1px solid var(--line);text-align:left;font-size:11px;font-weight:800;letter-spacing:.16em;
  text-transform:uppercase;color:var(--muted);white-space:nowrap}
.spt .spt-tbl th:nth-child(1){width:92px}
.spt .spt-tbl th:nth-child(2){width:118px}
.spt .spt-tbl th:nth-child(3){width:96px}
.spt .spt-tbl th:nth-child(4){width:84px}
.spt .spt-tbl th:nth-child(5){width:72px}
.spt .spt-tbl th:nth-child(6){width:64px}
.spt .spt-tbl th:nth-child(7){width:56px}
.spt .spt-tbl th:nth-child(8){width:116px}
.spt .spt-tbl :is(th,td):first-child{padding-left:20px}
.spt .spt-tbl :is(th,td):last-child{padding-right:20px}
.spt .spt-tbl td{height:42px;padding:0;border-bottom:1px solid var(--row);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.spt .spt-tbl tr:last-child td{border-bottom:0}
.spt .spt-t,.spt .spt-w,.spt .spt-r{color:var(--muted)}
.spt .spt-c a{font-size:17px;font-weight:800;color:var(--ink);text-decoration:none}
.spt .spt-c a:hover{color:var(--accent-line)}
.spt .spt-fq{font-weight:600}
.spt :is(.spt-b,.spt-m){font-weight:700}
.spt .spt-b i{display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:2px}
.spt .spt-s{font-weight:800}
.spt .spt-s--neg{color:var(--neg)}
.spt .spt-s--pos{color:var(--accent-line)}
.spt .spt-d{font-weight:500}
.spt .spot-row-new td{background:var(--sel-tint)}
.spt .spt-tbl .spot-empty{height:auto;padding:28px 20px;text-align:center;white-space:normal;color:var(--muted)}

/* Nine columns need about 860px, so a narrower page shows each spot as one row: the call, frequency, band and
   SNR, then the details pushed right by the time. A phone breaks the details onto a second row. */
@container spt (max-width:859px){
  .spt .spt-tbl thead{display:none}
  .spt .spt-tbl,.spt .spt-tbl tbody{display:block}
  .spt .spt-tbl tr{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 10px;padding:11px 16px;border-bottom:1px solid var(--row)}
  .spt .spt-tbl tr:last-child{border-bottom:0}
  .spt .spt-tbl td,.spt .spt-tbl :is(th,td):first-child,.spt .spt-tbl :is(th,td):last-child{height:auto;padding:0;border:0}
  .spt .spt-tbl td{order:3;flex:0 1 auto;font-size:13px}
  .spt .spt-tbl :is(.spt-c,.spt-fq,.spt-b,.spt-s){order:1;font-size:15px}
  .spt .spt-c a{font-size:18px}
  .spt .spt-s{font-size:18px}
  .spt .spt-m{color:var(--ink);font-weight:800}
  .spt .spt-w::after{content:" wpm"}
  .spt .spt-w--none{display:none}
  .spt .spt-r::before{content:"de "}
  .spt .spt-d{min-width:0;color:var(--muted)}
  .spt .spt-t{margin-left:auto}
  .spt .spt-tbl .spot-empty{flex:1 1 100%}
  /* A row here is a flex box, so a new spot tints the row and not each of its cells. */
  .spt .spt-tbl tr.spot-row-new{background:var(--sel-tint)}
  .spt .spt-tbl .spot-row-new td{background:none}
}
@container spt (max-width:599px){
  .spt .spt-tbl tr::before{content:"";order:2;flex-basis:100%;height:0}
  .spt .spt-tools{display:flex;justify-content:space-between}
  /* The details start their own line at the left. */
  .spt .spt-t{margin-left:0}
  .spt .spt-pill{height:28px;padding:0 10px;font-size:13px}
  .spt .spt-pill .spt-upd{display:none}
  .spt .spt-map{height:285px}
  .spt .spt-map-upd{display:block;position:absolute;left:12px;bottom:10px;z-index:1000;font-size:12px;font-weight:700;color:var(--muted);pointer-events:none}
  /* Every filter, bands and modes too, is in the Filters sheet on a phone. */
  .spt .spt-filters{display:none}
}
