/* Live flight tracker - Wet Boys look (gold on black). No inline styles: the page runs under a strict CSP. */
@font-face { font-family: "Russo One"; src: url("../fonts/russo-one-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Saira; font-weight: 400; src: url("../fonts/saira-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Saira; font-weight: 600; src: url("../fonts/saira-latin-600-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Saira; font-weight: 700; src: url("../fonts/saira-latin-700-normal.woff2") format("woff2"); font-display: swap; }
:root { --bg: #08090c; --panel: #0e1116; --panel2: #12161d; --line: #232a35; --ink: #e8ecf2; --ink2: #9aa3b2; --ink3: #687183;
        --gold: #d9b45a; --blue: #4da3ff; --red: #ff5c5c; --neu: #f5b83d; --good: #3ddc84; --sea: #0a0c10; --land: #161a21; --border: #2a313c; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 14px/1.4 Saira, system-ui, sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; }
#trk { display: flex; flex-direction: column; height: 100vh; }
.th { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.tb { display: flex; align-items: center; gap: 12px; }
.em { width: 36px; height: 36px; border: 1.5px solid var(--gold); border-radius: 50%; color: var(--gold); display: flex; align-items: center; justify-content: center; }
.em svg { width: 20px; height: 20px; }
.tt { font: 22px/1 "Russo One", sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.tt b { color: var(--gold); font-weight: 400; }
.ts { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink3); margin-top: 4px; }
.tr { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--line); padding: 4px 10px; color: var(--ink2); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink3); }
.pill.live { color: var(--good); border-color: #1d5a3b; } .pill.live i { background: var(--good); box-shadow: 0 0 8px var(--good); }
.pill.warn { color: var(--neu); border-color: #6b5320; } .pill.warn i { background: var(--neu); }
.clock { font: 600 13px ui-monospace, Consolas, monospace; color: var(--ink2); }
.btn { border: 1px solid var(--gold); color: var(--gold); background: none; padding: 6px 12px; font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: var(--gold); color: #000; }
.tm { flex: 1; display: grid; grid-template-columns: 270px 1fr 290px; min-height: 0; }
.pl, .pr { background: var(--panel); overflow-y: auto; display: flex; flex-direction: column; }
.pl { border-right: 1px solid var(--line); } .pr { border-left: 1px solid var(--line); }
section { padding: 14px 16px; border-bottom: 1px solid var(--line); }
section.grow { flex: 1; display: flex; flex-direction: column; min-height: 200px; }
h2 { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 8px; }
h2::before { content: ""; width: 18px; height: 1.5px; background: var(--gold); }
h2 span { color: var(--ink3); letter-spacing: .1em; margin-left: auto; }
.cnt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cnt div { border: 1px solid var(--line); border-top: 2px solid var(--gold); background: var(--panel2); text-align: center; padding: 8px 4px; }
.cnt b { display: block; font: 24px "Russo One", sans-serif; }
.cnt span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.cnt .bl b { color: var(--blue); } .cnt .rd b { color: var(--red); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.seg button { background: var(--panel2); border: 1px solid var(--line); padding: 4px 9px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.seg button.on { border-color: var(--gold); color: var(--ink); background: #1a1810; }
#q { width: 100%; background: var(--panel2); border: 1px solid var(--line); color: var(--ink); padding: 7px 10px; font: inherit; font-size: 13px; margin-bottom: 8px; }
#list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
#list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; padding: 6px 4px; border-bottom: 1px solid #191e26; cursor: pointer; }
#list li:hover, #list li.sel { background: #171b22; }
#list li i { width: 8px; height: 8px; border-radius: 50%; }
#list li b { font-weight: 600; font-size: 13px; display: block; } #list li small { color: var(--ink3); font-size: 11px; }
#list li .alt { font: 11px ui-monospace, monospace; color: var(--ink2); text-align: right; }
#list li.empty { display: block; color: var(--ink3); text-align: center; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; cursor: default; }
.s2 { background: var(--blue); } .s1 { background: var(--red); } .s0 { background: var(--neu); }
.mapwrap { position: relative; min-height: 300px; }
#map { position: absolute; inset: 0; background: var(--sea); }
.leaflet-container { background: var(--sea); font: 12px Saira, sans-serif; }
.mtools { position: absolute; top: 12px; right: 12px; z-index: 500; display: flex; flex-direction: column; gap: 6px; }
.tool { width: 46px; height: 34px; background: rgba(14, 17, 22, .92); border: 1px solid var(--line); color: var(--ink2); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.tool.on { border-color: var(--gold); color: var(--gold); }
.legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; background: rgba(14, 17, 22, .92); border: 1px solid var(--line); padding: 6px 10px; font-size: 11px; display: flex; gap: 12px; flex-wrap: wrap; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.legend .lb::before { background: var(--blue); } .legend .lr::before { background: var(--red); } .legend .ln::before { background: var(--neu); } .legend .lk::before { display: none; }
.overlay { position: absolute; inset: 0; z-index: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; padding: 20px; }
.overlay.hide { display: none; }
.overlay h3, .overlay p { background: rgba(8, 9, 12, .9); margin: 0; padding: 10px 26px; border: 1px solid var(--line); }
.overlay h3 { font: 20px "Russo One", sans-serif; text-transform: uppercase; letter-spacing: .08em; border-bottom: 0; }
.overlay p { color: var(--ink2); max-width: 420px; border-top: 0; }
.sel.empty { color: var(--ink3); border: 1px dashed var(--line); padding: 18px; text-align: center; font-size: 13px; }
.sel .nm { font: 18px "Russo One", sans-serif; } .sel .ty { color: var(--ink2); margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; font-size: 13px; }
.kv dt { color: var(--ink3); padding: 6px 0; border-bottom: 1px solid #191e26; }
.kv dd { margin: 0; text-align: right; padding: 6px 0; border-bottom: 1px solid #191e26; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.kv dd.good { color: var(--good); } .kv dd.warn { color: var(--neu); }
.about { color: var(--ink2); font-size: 13px; margin: 0; }
.tf { display: flex; justify-content: space-between; padding: 6px 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); border-top: 1px solid var(--line); background: var(--panel); }
/* map marks */
.ac { width: 26px; height: 26px; }
.ac svg { width: 26px; height: 26px; overflow: visible; }
.ac svg path { stroke: #000; stroke-width: 1; }
.ac.s2 path { fill: var(--blue); } .ac.s1 path { fill: var(--red); } .ac.s0 path { fill: var(--neu); }
.ac.s2, .ac.s1, .ac.s0 { background: none; }
.ac.pick svg { filter: drop-shadow(0 0 6px var(--gold)); }
.leaflet-tooltip.lbl { background: rgba(8, 9, 12, .78); border: 0; color: var(--ink); box-shadow: none; padding: 1px 5px; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.leaflet-tooltip.lbl::before { display: none; }
.leaflet-tooltip.lbl.s2 { color: #a9d0ff; } .leaflet-tooltip.lbl.s1 { color: #ffb0b0; }
.leaflet-tooltip.base { background: none; border: 0; box-shadow: none; color: var(--ink3); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 0 4px; }
.leaflet-tooltip.base::before { display: none; }
.leaflet-control-zoom a { background: var(--panel) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: rgba(8, 9, 12, .7) !important; color: var(--ink3) !important; }
.leaflet-control-attribution a { color: var(--ink2) !important; }
@media (max-width: 1000px) {
  #trk { height: auto; min-height: 100vh; }
  .tm { grid-template-columns: 1fr; }
  .mapwrap { height: 62vh; order: -1; }
  .pl, .pr { border: 0; border-top: 1px solid var(--line); overflow: visible; }
  section.grow { min-height: 0; } #list { max-height: 50vh; }
  .tt { font-size: 18px; }
}
.afd i { display: block; width: 10px; height: 10px; border: 2px solid var(--ink3); background: rgba(8, 9, 12, .6); }
.afd.s2 i { border-color: var(--blue); } .afd.s1 i { border-color: var(--red); } .afd.s0 i { border-color: var(--neu); }
.fxpop .leaflet-popup-content-wrapper, .fxpop .leaflet-popup-tip { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 0; }
.fxmenu { display: flex; flex-direction: column; gap: 4px; min-width: 170px; }
.fxh { font: 11px ui-monospace, monospace; color: var(--ink3); margin-bottom: 4px; }
.fxb { background: var(--panel2); border: 1px solid var(--line); color: var(--ink); text-align: left; padding: 5px 8px; font-size: 12px; }
.fxb:hover { border-color: var(--gold); }

/* the status pill as an on/off switch (accounts that may change the server's settings) */
.pill.sw { background: none; cursor: pointer; padding: 4px 10px 4px 6px; }
.pill.sw:hover { border-color: var(--gold); } .pill.sw:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pill.sw[disabled] { opacity: .6; cursor: progress; }
.swt { position: relative; width: 30px; height: 16px; border-radius: 8px; background: #2a313c; border: 1px solid var(--border); transition: background .15s; flex: none; }
.swk { position: absolute; top: 1px; left: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink2); transition: left .15s, background .15s; }
.pill.sw[aria-checked="true"] .swt { background: #1d5a3b; border-color: var(--good); }
.pill.sw[aria-checked="true"] .swk { left: 15px; background: var(--good); }
