/* ===================== b620 (John): ATC and COMMUNITY in the new design. The real Inter; the shared b619 tokens from
   style.css (--aw-surf for panels, --aw-well for switches and fields, --aw-blue for the chosen one, --aw-btn for buttons,
   --aw-green and --aw-red); every switch a dark well with a saturated blue pill; buttons like the Briefing's OFP button and
   sinking the moment a finger lands. On a tablet or phone every control is at least 44 points to the finger (a small
   one keeps its look and gets an invisible area round it). Loaded after style.css. The DEPARTURES & ARRIVALS board keeps
   its airport-board rows; only its panel and controls change ===================== */

/* ---- the type ---- */
#view-board .atc-bar, #view-board .si-panel, #view-board .si-panel [class], #view-board .board-head, #view-board .src-bar, #view-board .src-bar [class],
#view-community, #view-community [class] { font-family: 'Inter Var', var(--ui) !important; font-synthesis: none; }
#view-community .mono, #view-community .cm-tag.mono { font-family: var(--mono) !important; }

/* ---- the panels ---- */
#view-board .si-card, #view-board .board-panel, #view-community .cm-tile, #view-community .cm-strip, #view-community .cm-ov, #view-community .cm-tablewrap {
  background: var(--aw-surf); border: 1px solid var(--aw-surf-edge); box-shadow: var(--aw-surf-sh); }
#view-board .si-card { border-radius: 16px; }
#view-community .cm-ov { background: linear-gradient(165deg, #173a66 0%, #0e2342 55%, #0a1830 100%); border-color: rgba(63, 182, 255, .42); }
#view-community .cm-tablewrap { border-radius: 16px; padding: 4px 6px; }
#view-community .cm-ov-fig { background: var(--aw-tile); border: 1px solid var(--aw-tile-edge); box-shadow: var(--aw-tile-sh); }
#view-community .cm-rank-row.lead { background: linear-gradient(90deg, rgba(63, 182, 255, .12), transparent 80%); border-radius: 10px; }

/* ---- switches: a dark well, the chosen one a saturated blue pill ---- */
#view-board .atc-pill, #view-board .si-crew-t, #view-board .si-lfmode, #view-board .rb-mode, #view-community .cm-seg, #view-community .cm-part-sw {
  background: var(--aw-well) !important; border: 1px solid var(--aw-well-edge) !important; box-shadow: var(--aw-well-sh) !important; }
#view-board .atc-th { background: var(--aw-blue); border: 1px solid var(--aw-blue-edge); box-shadow: var(--aw-blue-sh); box-sizing: border-box; }
#view-board .atc-pill button { font-weight: 700 !important; letter-spacing: 1.4px; color: #a6b8cc; }
#view-board .atc-pill button.on { color: #fff; text-shadow: 0 1px 2px rgba(0, 30, 80, .45); }
#view-board .si-crew-t { overflow: visible; padding: 2px; gap: 2px; }
#view-board .si-crew-t button, #view-board .si-lfmode button, #view-board .rb-mode button, #view-community .cm-seg button, #view-community .cm-part-sw button {
  position: relative; border-radius: 999px; color: #a6b8cc; }
#view-board .si-crew-t button.on, #view-board .si-lfmode button.on, #view-board .rb-mode button.on, #view-community .cm-seg button.on, #view-community .cm-part-sw button.on {
  color: #fff; background: var(--aw-blue); box-shadow: var(--aw-blue-sh); text-shadow: 0 1px 2px rgba(0, 30, 80, .45); }
#view-board .si-crew-t button:disabled { color: #6f8094; }

/* ---- the source and sort buttons: the OFP button, the chosen one the blue pill ---- */
#view-board #board-src .src, #view-community .cm-sort {
  background: var(--aw-btn); border: 1px solid var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); color: #d6e7f8; }
#view-board #board-src .src.on, #view-community .cm-sort.active { background: var(--aw-blue); border-color: var(--aw-blue-edge); box-shadow: var(--aw-blue-sh); color: #fff; }
#view-board .src-sel, #view-board #rb-q { background: var(--aw-well); border: 1px solid var(--aw-well-edge); box-shadow: var(--aw-well-sh); color: #e8f1fb; }

/* ---- SayIntentions: the header, the radio buttons, the reply line ---- */
#view-board .si-title { letter-spacing: 1.5px; }
#view-board .si-newf { background: var(--aw-btn); border: 1px solid var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); color: #d6e7f8; }
#view-board .si-newf:disabled { opacity: .5; box-shadow: none; }
#view-board .si-chip.warn { background: rgba(255, 179, 0, .1); }
#view-board .si-chip.on { background: rgba(46, 230, 107, .12); }
#view-board .si-tune button { position: relative; background: var(--aw-btn); border: 1px solid var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); color: #dcecff; }
#view-board .si-tune button:hover { background: var(--aw-btn-hi); color: #fff; }
#view-board .si-tune button.on, #view-board .si-tune button[aria-pressed="true"] { background: var(--aw-blue); border-color: var(--aw-blue-edge); color: #fff; }
#view-board .si-say input, #view-board .si-link-row input { background: var(--aw-well); border: 1px solid var(--aw-well-edge); box-shadow: var(--aw-well-sh); }
#view-board .si-say .btn, #view-board .si-link-row .btn { background: var(--aw-blue); border: 1px solid var(--aw-blue-edge); box-shadow: var(--aw-blue-sh); color: #fff; }
#view-board .si-say .btn:disabled, #view-board .si-link-row .btn:disabled { opacity: .5; }
#view-board .si-unlink { position: relative; color: #9fb4ca; }   /* the footer's UNLINK stays a quiet link */
/* the airport folds: the frequency rows inside their card, the long ATIS wrapping */
#view-board .si-ap > summary, #view-board .si-find > summary { min-height: 44px; }
#view-board .si-f { min-width: 0; }
#view-board .si-fn, #view-board .si-metar, #view-board .si-atis p { min-width: 0; overflow-wrap: anywhere; }
#view-board .si-chev { flex: none; }
/* on a narrow screen the fold's chevron keeps to the right of its first line, not alone on a line of its own */
@media (max-width: 640px) { #view-board .si-ap > summary, #view-board .si-find > summary { position: relative; padding-right: 30px; } #view-board .si-ap > summary .si-chev, #view-board .si-find > summary .si-chev { position: absolute; right: 2px; top: 50%; translate: 0 -50%; margin: 0; } }

/* ---- Community ---- */
#view-community .cm-title { letter-spacing: 2.5px; }
#view-community .cm-board-more { color: #8fd0ff; }
#view-community .cm-board-more:hover { color: #fff; }
#view-community .cm-al-row.cm-mine { background: linear-gradient(90deg, rgba(63, 182, 255, .14), transparent 85%); }

/* ---- the press: down the moment a finger lands, back on release ---- */
#view-board button:not(:disabled), #view-community button:not(:disabled) { transition: transform 90ms cubic-bezier(.2, .9, .3, 1.2), filter 90ms ease, background .15s ease, color .15s ease; }
#view-board button:not(:disabled):active, #view-community button:not(:disabled):active { transform: translateY(1px); scale: .97; filter: brightness(1.12); transition-duration: 40ms; }
#view-board .si-ap > summary:active, #view-board .si-find > summary:active { filter: brightness(1.15); }

/* ---- 44 points to the finger, on a touch screen ---- */
@media (pointer: coarse), (max-width: 640px) {
  #view-board .atc-pill { height: 52px !important; }
  #view-board .si-newf, #view-board .si-chip { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
  #view-board .si-crew-t button { min-height: 40px; }
  #view-board .si-crew-t button::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: 0; right: 0; }
  #view-board .si-lfmode button { min-height: 30px; min-width: 48px; }
  #view-board .si-lfmode button::after { content: ""; position: absolute; top: -8px; bottom: -8px; left: 0; right: 0; }
  #view-board .si-tune button { min-height: 32px; min-width: 52px; }
  #view-board .si-tune button::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: -2px; right: -2px; }
  #view-board .si-say input, #view-board .si-say .btn, #view-board .si-link-row input, #view-board .si-link-row .btn { height: 46px; min-height: 46px; }
  #view-board .si-say .btn, #view-board .si-link-row .btn { min-width: 84px; }
  #view-board #board-src .src { min-height: 46px; }
  #view-board .src-sel { min-height: 46px; }
  #view-board .rb-mode button { min-height: 40px; }
  #view-board .rb-mode button::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: 0; right: 0; }
  #view-board .rb-reset { min-height: 44px; }
  #view-board .si-unlink::after { content: ""; position: absolute; top: -14px; bottom: -14px; left: -4px; right: -4px; }
  #view-community .cm-seg button { min-height: 30px; min-width: 50px; }
  #view-community .cm-seg button::after { content: ""; position: absolute; top: -8px; bottom: -8px; left: 0; right: 0; }
  #view-community .cm-seg { margin-top: 12px; }
  #view-community .cm-board-more { min-height: 44px; }
  #view-community .cm-sort { min-height: 44px; }
  #view-community .cm-part-sw button { min-height: 44px; }
  #view-community button.sortable, #view-community th.sortable button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #view-board button:not(:disabled):active, #view-community button:not(:disabled):active { transform: none; scale: none; }
}

/* ===================== b624 (John): the pilots' boards. No blue wash or bar down the left of the leading row or your
   own row (the lead's gradient from b620, the old inset bar on your row); the names a normal size, in line with the rest
   of the tile; the period and FLIGHTS | RATING switches a size smaller (a 44 pt touch area kept on touch screens) */
#view-community .cm-rank-row.lead, #view-community .cm-rank-row.me, #view-community .cm-al-row.cm-mine { background: none !important; box-shadow: none !important; }
#view-community .cm-rank-name { font-size: 14.5px; font-weight: 600; letter-spacing: 0; }
#view-community .cm-rank-row.lead .cm-rank-name, #view-community .cm-b6 .cm-rank-row.lead .cm-rank-name { font-size: 16px; font-weight: 650; letter-spacing: 0; line-height: 1.2; }
#view-community .cm-rank-row.lead .cm-rank-v, #view-community .cm-b6 .cm-rank-row.lead .cm-rank-v { font-size: 14px; }
#view-community .cm-rank-row.lead .cm-rank-medal { font-size: 26px; }
#view-community .cm-seg { padding: 2px; }
#view-community .cm-seg button { font-size: 9.5px; letter-spacing: 1.2px; padding: 4px 10px; min-height: 24px; }
@media (hover: none) and (pointer: coarse), (max-width: 640px) {
  #view-community .cm-seg button { min-height: 26px; min-width: 0; }
  #view-community .cm-seg button::after { content: ""; position: absolute; top: -9px; bottom: -9px; left: 0; right: 0; }
}

/* ===================== b626 (John): ATC's three tabs, SAYINTENTIONS | VATSIM | DEPARTURES & ARRIVALS, one sliding pill;
   and the VATSIM view: this flight's controllers on the left, the network's map on the right ===================== */
#view-board .atc-pill { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(720px, 100%); }
#view-board .atc-th { width: calc((100% - 6px) / 3); transition: transform .22s cubic-bezier(.3, .8, .3, 1); will-change: transform; }
#view-board .atc-pill button { padding: 0 10px; min-width: 0; }
#view-board .atc-pill .atc-s { display: none; }
#view-board.atc-vat .si-panel, #view-board.atc-vat .board-panel { display: none !important; }
#view-board:not(.atc-vat) .vat-panel { display: none; }
.vat-panel { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 14px; }
.vat-l { min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.vat-r { position: relative; min-height: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(66, 127, 175, .45); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.vat-r .sbx-dock { min-height: 0; height: 100%; }
.vat-r .sbx-ctrl, .vat-r .sbx-max { display: none !important; }   /* VATSIM only here, and it is already as big as it goes */
.vat-top { flex: none; display: flex; align-items: baseline; gap: 12px; padding: 2px 4px 0; }
.vat-top b { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.vat-top span { font-size: 14px; font-weight: 600; color: #9fc8e8; letter-spacing: .04em; }
.vat-top em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 1.3px; color: #2ee66b; }
.vat-card { flex: none; border-radius: 14px; padding: 12px 12px 10px; background: var(--aw-surf, linear-gradient(160deg, #13294a, #091527)); border: 1px solid var(--aw-edge, rgba(90, 150, 210, .38));
  box-shadow: inset 0 1px 0 rgba(212, 234, 255, .08), 0 4px 14px rgba(0, 0, 0, .22); }
.vat-h { display: flex; align-items: baseline; gap: 10px; padding: 0 4px 8px; min-width: 0; }
.vat-h small { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; color: #8fb3d1; }
.vat-h b { font-size: 20px; font-weight: 700; color: #fff; }
.vat-h span { min-width: 0; font-size: 13px; color: #b9c9d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vat-h em { margin-left: auto; flex: none; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; padding: 3px 8px; border-radius: 999px; color: #8a9aab; border: 1px solid rgba(138, 154, 171, .35); }
.vat-h em.on { color: #2ee66b; border-color: rgba(46, 230, 107, .45); background: rgba(46, 230, 107, .08); }
.vat-g { margin-top: 6px; }
.vat-g > small { display: block; padding: 4px 6px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; color: #77cfff; }
.vat-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin: 0 0 6px; padding: 7px 12px;
  border: 1px solid rgba(83, 120, 160, .32); border-radius: 11px; background: var(--aw-btn, linear-gradient(180deg, #17406f, #0d2140)); color: inherit; font: inherit; text-align: left; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(210, 235, 255, .1), 0 2px 5px rgba(0, 0, 0, .2); transition: transform .12s cubic-bezier(.2, .9, .3, 1.2), filter .12s ease; -webkit-tap-highlight-color: transparent; }
.vat-row:active { transform: translateY(1px) scale(.985); filter: brightness(1.1); transition-duration: 45ms; }
.vat-row.open { border-color: rgba(119, 207, 255, .55); }
.vat-k { font-size: 10px; font-weight: 800; letter-spacing: 1.1px; color: #ffd36a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vat-cs { min-width: 0; display: flex; flex-direction: column; }
.vat-cs b { font-size: 14.5px; font-weight: 700; color: #fff; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vat-cs small { font-size: 12px; color: #a5b6c8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vat-rank { font-style: normal; margin-left: 6px; font-size: 10px; font-weight: 700; color: #77cfff; }
.vat-f { font: 700 16px 'IBM Plex Mono', ui-monospace, monospace; color: #2ee66b; letter-spacing: .02em; }
.vat-on { font: 600 11.5px 'IBM Plex Mono', ui-monospace, monospace; color: #8fa6ba; min-width: 52px; text-align: right; }
.vat-txt { grid-column: 1 / -1; margin-top: 4px; padding: 8px 10px; border-radius: 9px; background: rgba(5, 12, 24, .55); font-size: 12.5px; line-height: 1.45; color: #cfe0ef; white-space: normal; overflow-wrap: anywhere; }
.vat-txt.muted { color: #8a9aab; }
.vat-code { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-right: 8px; border-radius: 7px; background: #ffd36a; color: #1d1404; font-weight: 800; }
.vat-none { padding: 8px 6px 4px; font-size: 13px; color: #9aaabb; }
.vat-empty { margin: auto 0; padding: 28px 22px; border-radius: 16px; text-align: center; background: var(--aw-surf, #0f1f38); border: 1px solid rgba(90, 150, 210, .3); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.vat-empty b { font-size: 18px; color: #fff; }
.vat-empty span { font-size: 14px; line-height: 1.45; color: #a9bccd; max-width: 380px; }
.vat-up { margin-top: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 0; color: #04140a; font: 800 13px var(--ui); letter-spacing: 1.2px; background: var(--aw-green, linear-gradient(180deg, #2ee66b, #1db454)); cursor: pointer; }
@media (max-width: 900px) and (min-width: 641px) { .vat-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; } .vat-row { grid-template-columns: 70px minmax(0, 1fr) auto; } .vat-on { display: none; } }
@media (max-width: 640px) {
  #view-board .atc-pill .atc-l { display: none; } #view-board .atc-pill .atc-s { display: inline; }
  #view-board .atc-pill button { font-size: 10.5px !important; letter-spacing: .4px !important; padding: 0 4px; }
  .vat-panel { display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; gap: 12px; }
  .vat-l { flex: none; overflow: visible; }
  .vat-r { flex: none; height: 62vh; min-height: 340px; }
  .vat-row { grid-template-columns: 68px minmax(0, 1fr) auto; } .vat-on { display: none; }
}
@media (prefers-reduced-motion: reduce) { #view-board .atc-th { transition: none; } .vat-row { transition: none; } }

/* ===================== b635 (John): ATC in the new design, as My VA's Academy and Staff (b633) and the Log (b618).
   Four figures across the top of every tab; John's Air Traffic Control photo (img/d-atc.webp: any 16:9 photo, cover,
   held towards the controllers on its right, under a scrim on the left for the words) as the card at the head of
   SAYINTENTIONS and VATSIM, with the title top left, and behind the heading of DEPARTURES & ARRIVALS; the airports and
   the search as rows with a DETAILS button; every button down the moment a finger lands (.down, app.js). On a wide
   screen SAYINTENTIONS is two columns, each scrolling by itself: the photo, the radios and the airports on the left,
   the calls on the frequency and the reply on the right. Nothing changes what anything does ===================== */
#view-board .atc-tiles, #view-board .atc-tiles *, #view-board .atc-photo, #view-board .atc-photo *, #view-board .vat-panel, #view-board .vat-panel *:not(.vat-f):not(.vat-on):not(.sc-on) {
  font-family: 'Inter Var', var(--ui) !important; font-synthesis: none; }

/* ---- the four figures ---- */
#view-board .atc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; flex: 0 0 auto; margin: 0 0 12px; }
#view-board .atc-tile { display: flex; align-items: center; gap: 14px; min-width: 0; height: 66px; padding: 0 18px; box-sizing: border-box; border-radius: 14px;
  background: var(--aw-tile); border: 1px solid var(--aw-tile-edge); box-shadow: var(--aw-tile-sh); }
#view-board .atc-tile > b { flex: 0 0 auto; font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -.6px; color: #dfeffa; white-space: nowrap; font-variant-numeric: tabular-nums; }
#view-board .atc-tile > b i { font-style: normal; }
#view-board .atc-tile > b i.sm { font-size: 21px; letter-spacing: -.3px; }
#view-board .atc-tile > b i.nil { color: #5d7790; font-weight: 700; }
#view-board .atc-tile > span { min-width: 0; font-size: 13px; line-height: 16px; font-weight: 400; letter-spacing: 0; color: #a8c2d6; }
#view-board .atc-tile > span::first-letter { text-transform: uppercase; }
#view-board.atc-si .board-tiles, #view-board.atc-vat .board-tiles { display: none; }

/* ---- the photo card ---- */
#view-board .atc-photo { position: relative; isolation: isolate; overflow: hidden; flex: 0 0 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  box-sizing: border-box; min-height: 0; height: clamp(196px, 31vh, 290px); padding: 18px 20px; border-radius: 14px; border: 1px solid var(--aw-surf-edge); background: #0b1524; box-shadow: var(--aw-surf-sh); }
#view-board .atc-photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(img/d-atc.webp) 66% 42% / cover no-repeat; opacity: .94; }
#view-board .atc-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #071420f2 0%, #071420d9 30%, #07142094 54%, #07142026 80%, #07142000 100%), linear-gradient(0deg, #071420b3 0%, #07142000 46%); }
#view-board .atc-ph-top { max-width: min(100%, 440px); min-width: 0; }
#view-board .atc-ph-top small { display: block; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 1.6px; color: #9fc8e8; text-shadow: 0 1px 4px #000a; }
#view-board .atc-ph-top h2 { margin: 4px 0 0; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.5px; color: #f2f8fc; text-shadow: 0 1px 10px #0009; overflow-wrap: anywhere; }
#view-board .atc-ph-top p { margin: 6px 0 0; font-size: 13px; line-height: 19px; font-weight: 400; color: #c3d5e2; text-shadow: 0 1px 6px #0008; }
#view-board .atc-ph-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
#view-board .atc-ph-foot .si-chip, #view-board .atc-chip { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background-color: #08182abd; }
#view-board .atc-chip { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: #a9bccd; white-space: nowrap; }
#view-board .atc-chip.on { color: #2ee66b; border-color: rgba(46, 230, 107, .5); }
#view-board .atc-ph-note { font-size: 12px; line-height: 16px; color: #c3d5e2; text-shadow: 0 1px 6px #000a; min-width: 0; }

/* ---- SAYINTENTIONS: two columns ---- */
#view-board .si-panel { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
#view-board .atc-cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 14px; }
#view-board .atc-lcol, #view-board .atc-rcol { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
#view-board .atc-lcol { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; margin: 0 -6px; padding: 0 6px 8px; scrollbar-width: thin; }
#view-board .atc-lcol > *, #view-board .atc-rcol > * { flex-shrink: 0; margin: 0; }
#view-board .si-card { border-radius: 14px; padding: 14px 16px; }
#view-board .si-radio .si-crew { margin: 0 0 12px; }
#view-board .si-radio .si-local { margin: 0; padding: 12px 0 0; border-bottom: 0; border-top: 1px solid rgba(130, 200, 255, .14); }
#view-board .atc-rcol > .si-onfreq { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#view-board .si-onfreq .si-log { flex: 1 1 auto; min-height: 120px; max-height: none; }
#view-board .si-onfreq .si-say { flex: none; }
#view-board .atc-rcol > .si-foot { margin: -2px 4px 4px; }
/* the labels and the tune buttons a size up from b620 */
#view-board .si-k, #view-board .si-k2, #view-board .si-ap-l { font-size: 11px !important; letter-spacing: 1.4px; }
#view-board .si-ft, #view-board .si-tune button, #view-board .si-lfmode button { font-size: 11px !important; }
#view-board .si-tune button { border-radius: 9px; }
/* the airports and the search as rows: the name, then a DETAILS button (CLOSE while open) where the chevron was */
#view-board .si-ap > summary, #view-board .si-find > summary { flex-wrap: nowrap; min-width: 0; }
#view-board .si-ap > summary > *, #view-board .si-find > summary > * { flex-shrink: 0; }
#view-board .si-ap > summary > .si-rwy { flex-shrink: 1; min-width: 0; }
#view-board .si-ap > summary > b, #view-board .si-find > summary > b { font-size: 17px !important; font-weight: 700 !important; letter-spacing: .5px; }
#view-board .atc-det { position: relative; flex: 0 0 auto; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 86px; height: 40px; padding: 0 14px; box-sizing: border-box;
  border-radius: 10px; border: 1px solid var(--aw-btn-edge); background: var(--aw-btn); box-shadow: var(--aw-btn-sh); color: #dcebf6; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; }
#view-board .atc-det > span + span, #view-board details[open] > summary .atc-det > span:first-child { display: none; }
#view-board details[open] > summary .atc-det > span + span { display: inline; }
#view-board summary.down .atc-det { translate: 0 1px; scale: .97; filter: brightness(1.12); }

/* ---- VATSIM: the photo card over the controllers, the map beside them ---- */
#view-board .vat-panel { display: flex; flex-direction: column; gap: 0; }
#view-board .vat-cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 14px; }
#view-board .vat-l { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 0; }
#view-board .vat-l > .atc-photo { height: clamp(170px, 26vh, 240px); }
#view-board .vat-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 12px;
  margin: 0 -6px; padding: 0 6px 8px; scrollbar-width: thin; }
#view-board .vat-card { border-radius: 14px; background: var(--aw-surf); border: 1px solid var(--aw-surf-edge); box-shadow: var(--aw-surf-sh); }
#view-board .vat-h small, #view-board .vat-g > small { font-size: 11px; letter-spacing: 1.4px; }
#view-board .vat-h em { font-size: 11px; }
#view-board .vat-k { font-size: 11px; letter-spacing: 1px; }
#view-board .vat-rank { font-size: 11px; }
#view-board .vat-row { background: var(--aw-btn); border: 1px solid rgba(63, 182, 255, .3); box-shadow: var(--aw-btn-sh); }
#view-board .vat-row.down { transform: translateY(1px) scale(.985); filter: brightness(1.1); transition-duration: 45ms; }
#view-board .vat-r { border-radius: 14px; border-color: var(--aw-surf-edge); }
#view-board .vat-empty { margin: 0; flex: 0 0 auto; background: var(--aw-surf); border: 1px solid var(--aw-surf-edge); box-shadow: var(--aw-surf-sh); border-radius: 14px; }

/* ---- DEPARTURES & ARRIVALS: the photo behind the heading, the heading in the design's type ---- */
#view-board .board-panel { position: relative; isolation: isolate; border-radius: 16px; }
#view-board .atc-band { position: absolute; left: 0; right: 0; top: 0; height: 168px; z-index: -1; pointer-events: none; border-radius: inherit;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
#view-board .atc-band::before { content: ""; position: absolute; inset: 0; background: url(img/d-atc.webp) 60% 38% / cover no-repeat; opacity: .62; }
#view-board .atc-band::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 21, 39, .9), rgba(9, 21, 39, .6) 36%, rgba(9, 21, 39, .3) 66%, rgba(9, 21, 39, .7)); }
#view-board .board-head, #view-board .src-bar { position: relative; }
#view-board .board-head { align-items: center; }
#view-board #board-title { display: inline-block; font-family: 'Inter Var', var(--ui) !important; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.5px; color: #f3f8fc;
  text-transform: lowercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
#view-board #board-title::first-letter { text-transform: uppercase; }
#view-board #board-airport { font-family: 'Inter Var', var(--ui) !important; font-size: 18px; font-weight: 600; letter-spacing: .2px; color: #dfeaf4; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
#view-board .board-rwy { text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
#view-board .src-bar { border-bottom-color: rgba(130, 200, 255, .14); }
#view-board #board-src .src { font-family: 'Inter Var', var(--ui) !important; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; min-height: 44px; padding: 0 20px; }
#view-board .src-note { text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }

/* ---- the press: down the moment a finger lands (app.js adds .down on pointerdown) ---- */
#view-board button.down:not(:disabled), #view-board .src-sel.down { transform: translateY(1px); scale: .97; filter: brightness(1.12); transition-duration: 40ms; }
#view-board .si-ap > summary.down, #view-board .si-find > summary.down { filter: brightness(1.15); }
@media (prefers-reduced-motion: reduce) { #view-board button.down, #view-board summary.down .atc-det { transform: none; scale: none; translate: none; } }

/* ---- a short landscape screen: the figures and the photo a little shorter ---- */
@media (min-width: 1000px) and (orientation: landscape) and (max-height: 760px) {
  #view-board .atc-tiles { gap: 10px; margin-bottom: 10px; }
  #view-board .atc-tile { height: 56px; }
  #view-board .atc-tile > b { font-size: 24px; line-height: 30px; }
  #view-board .atc-tile > b i.sm { font-size: 18px; }
  #view-board .atc-photo { height: clamp(170px, 30vh, 230px); padding: 14px 18px; }
  #view-board .vat-l > .atc-photo { height: clamp(150px, 25vh, 200px); }
}

/* ---- narrower, or held upright: one column, the whole tab scrolling, in the order photo, radios, calls, airports ---- */
@media (max-width: 999.5px), (orientation: portrait) {
  #view-board .si-panel { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 14px; }
  #view-board .atc-cols { flex: none; display: flex; flex-direction: column; gap: 12px; }
  #view-board .atc-lcol, #view-board .atc-rcol { display: contents; }
  #view-board .si-photo { order: 1; } #view-board .si-radio { order: 2; } #view-board .atc-rcol > .si-onfreq, #view-board .atc-rcol > .si-link, #view-board .atc-rcol > .si-empty { order: 3; }
  #view-board .si-ap { order: 4; } #view-board .si-find { order: 5; } #view-board .atc-rcol > .si-foot { order: 6; }
  #view-board .si-onfreq .si-log { flex: none; max-height: 46vh; min-height: 160px; }
  #view-board .atc-photo { height: auto; min-height: 210px; }
}
/* the figures four across on a tablet held upright: the figure over its words, so a long one (SayIntentions) fits */
@media (max-width: 999.5px) and (min-width: 761px), (orientation: portrait) and (min-width: 761px) {
  #view-board .atc-tile { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; height: auto; min-height: 68px; padding: 8px 16px; }
  #view-board .atc-tile > b { font-size: 24px; line-height: 30px; }
  #view-board .atc-tile > b i.sm { font-size: 19px; }
}
@media (max-width: 900px) and (min-width: 641px) { #view-board .vat-panel { grid-template-columns: none; } #view-board .vat-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; } }
@media (max-width: 760px) {
  #view-board .atc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
  #view-board .atc-tile { height: auto; min-height: 58px; padding: 8px 14px; gap: 10px; }
  #view-board .atc-tile > b { font-size: 22px; line-height: 28px; }
  #view-board .atc-tile > b i.sm { font-size: 16px; }
  #view-board .atc-tile > span { font-size: 12px; line-height: 15px; }
}
@media (max-width: 640px) {
  #view-board .atc-photo { min-height: 200px; padding: 14px 14px; }
  #view-board .atc-photo::after { background: linear-gradient(90deg, #071420eb 0%, #071420b8 55%, #07142040 100%), linear-gradient(0deg, #071420d9 0%, #07142000 60%); }
  #view-board .atc-ph-top h2 { font-size: 21px; line-height: 26px; }
  #view-board .vat-panel { overflow-y: auto; }
  #view-board .vat-cols { flex: none; display: flex; flex-direction: column; gap: 12px; }
  #view-board .vat-l { flex: none; overflow: visible; }
  #view-board .vat-l > .atc-photo { height: auto; min-height: 180px; }
  #view-board .vat-list { flex: none; overflow: visible; margin: 0; padding: 0; }
  #view-board .board-tiles { display: none; }   /* the board's own heading says the airport and the runway */
  #view-board .atc-band { height: 130px; }
  #view-board #board-title { font-size: 24px; line-height: 30px; }
  #view-board #board-airport { font-size: 15px; }
  #view-board .si-ap > summary, #view-board .si-find > summary { padding-right: 0; }
  #view-board .atc-det { min-width: 76px; padding: 0 10px; }
  /* the runways in use on a line of their own under the airport */
  #view-board .si-ap > summary { flex-wrap: wrap; row-gap: 4px; }
  #view-board .si-ap > summary > .si-rwy { order: 5; flex-basis: 100%; }
}
