/* New master Live (29 Nov 2026): the styles of today's map's Live panel (layers.css, landmarks.css, airports.css), on New master's colours.
   Today's names kept (#layersFly, #lyHud, .ly-chip …); "#controls " prefixes dropped; the Live entry sits in the layers panel. */
#layersFly, #lyHud, #lyLegend, #lyToast, .lm-pop, .ap-pop, #lyLine { --text: var(--ink); --muted: #c9b998; --soft: rgba(246, 234, 210, .09); --on-accent: #1b1712; }
#layersFly.box, #lyHud.box, #lyLegend.box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(6px); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); font-family: Inter, system-ui, sans-serif; }
#layersFly button, #lyHud button { font-family: inherit; cursor: pointer; }
#lyLine { display: block; border: 0; padding: 0; list-style: none; }
#layersBtn { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 6px; width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
#layersBtn b { font-size: 13px; }
#layersBtn span { grid-column: 1; font-size: 10.5px; color: var(--muted); line-height: 1.3; }
#layersBtn i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 18px; color: var(--muted); }
#layersBtn:hover, #layersBtn.active { border-color: var(--accent); }
#layersBtn.has-on b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
#layersFly { position: absolute; left: 274px; top: 12px; z-index: 6; width: 250px; max-height: calc(100% - 24px); overflow: auto; padding: 10px; box-sizing: border-box; color: var(--text); font-size: 12px; }
#lyShut { margin-left: 8px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; }
#layersFly .ly-top #lyClear { margin-left: auto; }
/* Live button, its flyout and the clock or year bar. See layers.js. */
#layersFly.hidden { display: none !important; }
#layersFly .ly-h { margin: 10px 0 3px; font-size: 11px; color: var(--muted); }
#layersFly .ly-h:first-child { margin-top: 0; }
#layersFly .ly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
#layersFly .ly-chip { display: block; width: 100%; height: auto; min-height: 32px; padding: 5px 8px; border: 0; border-radius: 7px; background: var(--soft); color: var(--text); font-size: 12px; line-height: 1.2; text-align: left; white-space: nowrap; }
#layersFly .ly-chip.wide { grid-column: 1 / -1; }
#layersFly .ly-chip small { display: block; margin-top: 1px; font-size: 9.5px; font-weight: 400; opacity: .72; }
#layersFly .ly-chip.busy { opacity: .55; }
#layersFly .ly-chip.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
#layersFly .ly-top { display: flex; align-items: center; justify-content: space-between; min-height: 20px; }
#layersFly .ly-top b { font-size: 13px; color: var(--text); }
#layersFly .ly-h small { margin-left: 6px; font-size: 9.5px; opacity: .8; }
#layersFly [hidden] { display: none !important; }
#lyToy { margin-top: 3px; }
#layersFly label { display: flex; align-items: center; gap: 7px; padding: 3px 2px; font-size: 12px; cursor: pointer; color: var(--text); }
#layersFly label input { margin: 0; accent-color: var(--accent); }
#layersFly label small { margin-left: auto; font-size: 10px; color: var(--muted); white-space: nowrap; }
#layersFly label small.warn { color: #c98a00; font-weight: 700; }
#layersFly label.busy { opacity: .55; }
#lyNotes:empty { display: none; }
#lyNotes { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.35; color: var(--text); }
#lyNotes p { margin: 0 0 6px; }
#lyNotes p.warn { border-left: 2px solid #c98a00; padding-left: 6px; }
#lyNotes img { display: block; width: 100%; border-radius: 6px; margin-bottom: 2px; }
#lyNotes small { color: var(--muted); }
#lyNotes button { display: inline; width: auto; height: auto; padding: 0; margin: 0 8px 0 0; border: 0; background: none; color: var(--accent); font-size: 11.5px; font-weight: 700; text-decoration: underline; }
#layersFly #lyClear { display: block; width: auto; height: auto; padding: 0; border: 0; background: none; color: var(--muted); font-size: 11px; text-decoration: underline; }
#lyHud { display: none; position: absolute; left: 14px; bottom: 74px; z-index: 4; width: min(430px, calc(100vw - 28px)); padding: 6px 11px; align-items: center; gap: 9px; color: var(--text); }
#lyHud.on { display: flex; }
#lyHud button { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 10px; cursor: pointer; }
#lyHud b { font-size: 16px; font-variant-numeric: tabular-nums; min-width: 46px; }
#lyHud input { flex: 1; min-width: 40px; accent-color: var(--accent); }
#lyHud small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
#lyTip { position: absolute; z-index: 7; pointer-events: none; max-width: 240px; padding: 5px 8px; border-radius: 7px; background: rgba(12, 16, 18, .92); color: #fff; font-size: 12px; line-height: 1.3; transform: translate(12px, calc(-100% - 10px)); }
#lyTip[hidden] { display: none; }
#lyTip small { display: block; color: #b6bfbc; font-size: 10.5px; }
#lyAbout { margin-top: 9px; }
#lyAbout summary { cursor: pointer; font-size: 11px; color: var(--muted); }
#lySpeed { flex: none; display: flex; gap: 2px; }
#lySpeed[hidden] { display: none; }
#lyHud #lySpeed button { width: auto; height: 24px; padding: 0 7px; border-radius: 6px; background: var(--soft); color: var(--text); font-size: 11px; font-weight: 700; }
#lyHud #lySpeed button.on { background: var(--accent); color: var(--on-accent); }
#lyHud { width: min(520px, calc(100vw - 28px)); }

/* UAE layers look v2: legend card + chips never cut off (Gibran, 13 Nov 2026) */
#layersFly .ly-chip span { display: block; overflow: hidden; text-overflow: ellipsis; }
#lyLegend { position: fixed; left: 58px; bottom: 74px; z-index: 4; width: 214px; max-height: calc(100vh - 220px); overflow: auto; padding: 8px 11px 9px; color: var(--text); font-size: 11.5px; line-height: 1.25; }
#lyLegend[hidden] { display: none; }
#lyLegend .lg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; cursor: pointer; user-select: none; }
#lyLegend .lg-top b { font-size: 12.5px; }
#lyLegend .lg-top span { font-size: 10.5px; color: var(--muted); text-decoration: underline; }
#lyLegend.shut { width: auto; }
#lyLegend .lg-h { margin: 8px 0 3px; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
#lyLegend .lg-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
#lyLegend .lg-row i { flex: none; display: inline-block; }
#lyLegend .lg-pin { width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; }
#lyLegend .lg-area { width: 18px; height: 12px; border-radius: 3px; box-sizing: border-box; }
#lyLegend .lg-hatch { background: repeating-linear-gradient(135deg, #374151 0 2px, transparent 2px 5px); border: 2px solid #4b5563; }
#lyLegend .lg-line { width: 18px; height: 4px; border-radius: 2px; }
@media (max-width: 640px) { #lyLegend { bottom: 120px; width: 180px; } }
/* Phones (15 Nov 2026, handoff 127): Clean / Labels / Dim / Glow / Models / status fold behind one View button beside the rail */
@media (max-width: 760px) {
}
/* RTA road works card (17 Nov 2026): copied from the preview artifact, always dark like the hover card */
.rw-pop .maplibregl-popup-content { background: #11191b; color: #eef3f2; border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; padding: 12px 14px 13px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.rw-pop .maplibregl-popup-tip { border-top-color: #11191b; border-bottom-color: #11191b; }
.rw-pop .maplibregl-popup-close-button { color: #93a3a1; font-size: 18px; right: 4px; top: 4px; }
.rw-card .rw-st { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; }
.rw-card .rw-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rw-card h3 { font-size: 15px; line-height: 1.25; font-weight: 700; margin: 5px 18px 9px 0; text-wrap: balance; }
.rw-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 10px; }
.rw-card dl div { background: rgba(255, 255, 255, .05); border-radius: 7px; padding: 5px 8px; }
.rw-card dt { color: #74837f; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; }
.rw-card dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rw-card p { margin: 0 0 9px; font-size: 12px; line-height: 1.45; color: #cfd9d7; }
.rw-card p b { color: #eef3f2; }
.rw-card .rw-cm { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 9px; }
.rw-card .rw-cm span { font-size: 10.5px; border-radius: 5px; padding: 2px 6px; background: rgba(143, 211, 199, .12); color: #bfe7df; }
.rw-card .rw-src { font-size: 10.5px; color: #74837f; line-height: 1.45; }
.rw-card .rw-src a { color: #93a3a1; }

/* Live load check, 22 Nov 2026: the heads-up when many Live switches are on, and the folded legend's layer count. */
#lyBusyNote { margin: 2px 0 8px; padding: 7px 9px; border-radius: 7px; font-size: 11px; line-height: 1.35; color: var(--text); background: rgba(245, 165, 36, .14); border: 1px solid rgba(245, 165, 36, .35); }
#lyBusyNote[hidden] { display: none; }
#lyLegend .lg-top small { font-weight: 400; color: var(--muted); margin-left: 4px; }

/* Landmarks: a section at the top of the Live panel (on/off, filters, search). See landmarks.js. */
#layersFly #lmSec { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--soft); }
#layersFly #lmSec .ly-h:first-child { margin-top: 8px; }
#layersFly #lmSec .lm-mt { margin-top: 3px; }
#layersFly #lmSec .lm-q { display: block; width: 100%; box-sizing: border-box; height: 30px; margin-top: 6px; padding: 0 9px; border: 0; border-radius: 7px; background: var(--soft); color: var(--text); font: inherit; font-size: 12px; }
#layersFly #lmSec .lm-res { margin-top: 3px; }
#layersFly #lmSec .lm-res:empty { display: none; }
#layersFly #lmSec .lm-none { grid-column: 1 / -1; margin: 4px 2px; font-size: 11px; color: var(--muted); }
.lm-pop .maplibregl-popup-content { background: var(--panel); color: var(--text); padding: 10px 12px; border-radius: 10px; }
.lm-pop .maplibregl-popup-tip { display: none; }
.lm-card { display: grid; gap: 3px; font-size: 12px; }
.lm-card small { color: var(--muted); font-size: 10.5px; }
.lm-card b { font-size: 14px; }
.lm-card .lm-mut { color: var(--muted); }
.lm-card button { margin-top: 6px; height: 28px; font-size: 12px; font-weight: 600; border: 0; border-radius: 8px; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.lm-card .lm-draft { margin-top: 4px; font-size: 10.5px; color: #f59e0b; }
/* Airports section in Live and the airport card. See airports.js. */
#layersFly #apSec { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--soft); }
#layersFly #apSec .ly-h:first-child { margin-top: 8px; }
#layersFly #apSec .ap-mt { margin-top: 3px; }
#layersFly #apSec [data-ap-c] span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: 1px; }
#layersFly #apSec .ap-list:empty { display: none; }
#layersFly #apSec.ap-in-uae { margin-top: 3px; } /* inside Across the UAE: the group's heading stands for ours */
#layersFly #apSec.ap-in-uae > .ly-h { display: none; }
.ap-pop .maplibregl-popup-content { background: var(--panel); color: var(--text); padding: 11px 13px; border-radius: 10px; }
.ap-pop .maplibregl-popup-tip { display: none; }
.ap-card { display: grid; gap: 4px; font-size: 12px; line-height: 1.35; }
.ap-card > b { font-size: 15px; }
.ap-card small, .ap-card .ap-mut { color: var(--muted); font-size: 10.5px; }
.ap-card .ap-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.ap-card .ap-cats i { font-style: normal; font-size: 10px; padding: 1px 7px; border-radius: 9px; border: 1px solid var(--c); color: var(--c); }
.ap-card .ap-role { margin: 2px 0 4px; }
.ap-card .ap-row { display: grid; grid-template-columns: 74px 1fr; gap: 6px; border-top: 1px solid rgba(127,127,127,.18); padding-top: 4px; }
.ap-card .ap-row > span { color: var(--muted); font-size: 11px; }
.ap-card a { color: var(--accent); font-size: 10.5px; }
.ap-card .ap-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ap-card .ap-btns button { height: 28px; padding: 0 10px; font-size: 12px; font-weight: 600; border: 0; border-radius: 8px; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.ap-card .ap-foot { margin-top: 2px; }
/* New master placement: the clock sits above the cars note, the legend beside the panels; phones get a bottom sheet */
#lyHud { left: 50%; transform: translateX(-50%); bottom: 30px; z-index: 7; }
#lyLegend { left: auto; right: 56px; bottom: 34px; }
#lyTip { font-family: Inter, system-ui, sans-serif; }
.ly-tapc b { display: block; font-size: 13px; } .ly-tapc small { display: block; color: #93a3a1; font-size: 11px; margin-top: 2px; }
#lyToast { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 9; padding: 7px 12px; border-radius: 8px; background: var(--panel); color: var(--ink); font: 12px Inter, system-ui, sans-serif; }
#lyToast[hidden] { display: none; }
.lm-pop .maplibregl-popup-content, .ap-pop .maplibregl-popup-content { font-family: Inter, system-ui, sans-serif; }
@media (max-width: 600px) {
  #layersFly { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 52%; }
  #lyHud { left: 8px; right: 8px; bottom: 88px; width: auto; transform: none; }
  #lyHud small { display: none; }
  #lyLegend { right: 8px; bottom: auto; top: 60px; width: 170px; max-height: 40%; }
}
/* Live groups fold (30 Nov 2026, Gibran: "too big and complicated") */
#layersFly .ly-g { margin-top: 4px; }
#layersFly .ly-fold { display: flex; align-items: center; gap: 6px; width: 100%; margin: 6px 0 3px; padding: 3px 2px; border: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 700; text-align: left; }
#layersFly .ly-fold i { font-style: normal; display: inline-block; transition: transform .15s; transform: rotate(90deg); }
#layersFly .ly-g.shut .ly-fold i { transform: none; }
#layersFly .ly-g.shut .ly-gb { display: none; }
#layersFly .ly-fold .ly-n { margin-left: auto; font-style: normal; font-weight: 700; font-size: 10px; color: var(--accent); }
#layersFly .ly-fold:hover { color: var(--text); }
#lyLines { margin-top: 3px; }
