/* embed.css — the mini map inside /trips (?embed=…, core/embed.js, onboard/embed-view.js).
   Only the map, the plane and a stats strip; everything else is hidden. */
html.embed { --bar-h: 0px; --topbar-h: 0px; }
html.embed .topbar, html.embed #controls, html.embed #map-toolbar, html.embed #onboard, html.embed #trip-alert,
html.embed #alt-legend, html.embed #stats, html.embed #dep-picker, html.embed #notam-panel, html.embed #wx-bar,
html.embed #meet, html.embed #acct-pop, html.embed .leaflet-control-zoom { display: none !important; }
html.embed .leaflet-control-attribution { font-size: 9px; }

.embed-strip {
  position: fixed; z-index: 1040; left: 8px; right: 8px; bottom: 8px; box-sizing: border-box;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px;
}
.es-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.es-top b { font-size: 14px; }
.es-top .dim { color: var(--muted); }
.es-state { margin-left: auto; color: var(--accent); font-weight: 700; }
.es-bar { height: 4px; border-radius: 2px; background: rgba(150, 175, 210, 0.2); overflow: hidden; }
.es-bar i { display: block; height: 100%; background: var(--accent); }
.es-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.es-grid div { display: flex; flex-direction: column; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-grid span { font-size: 10.5px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.es-next { width: 100%; text-align: left; font: inherit; color: var(--text); border: 0; cursor: pointer; display: flex; gap: 6px; align-items: baseline; padding: 6px 8px; border-radius: 8px; background: rgba(196, 167, 255, 0.12); line-height: 1.4; }
.es-next .dim { color: var(--muted); font-size: 11.5px; }
.ns-eye { color: #C4A7FF; }
.es-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.es-acts button { padding: 6px 10px; font-size: 12px; }
@media (max-width: 380px) { .es-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* On board panel (the full map): the next sight on your side, for trip flights (trips/today.js) */
.ob-next { display: flex; gap: 8px; align-items: baseline; margin: 10px 0 2px; padding: 8px 10px; border-radius: 10px; background: rgba(196, 167, 255, 0.12); border: 1px solid rgba(196, 167, 255, 0.35); font-size: 13px; line-height: 1.45; }
.ob-next[hidden] { display: none; }
.ob-next .dim { color: var(--muted); }

.es-next:hover { background: rgba(196, 167, 255, 0.2); }
.es-next-row { display: flex; gap: 6px; align-items: stretch; }
.es-next-row .es-next { flex: 1; }
.es-pin { flex: none; width: 34px; padding: 0; font-size: 17px; border-radius: 8px; background: rgba(255, 210, 94, 0.12); color: #ffd25e; border: 1px solid rgba(255, 210, 94, 0.4); }
.sight-focus { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.sight-focus span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ffd25e; color: #0c1626; font-size: 13px; box-shadow: 0 0 0 4px rgba(255, 210, 94, 0.3); }
.sight-focus b { font: 700 11.5px/1.3 var(--font); color: #0c1626; background: #ffd25e; border-radius: 5px; padding: 1px 6px; }
.es-plane { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text); margin-top: -2px; }
.es-age { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.es-age.old { color: #FFB05C; }
/* On board: the next sight, then the "Speak sights" switch (offline/speak.js) */
#ob-next { flex-direction: column; align-items: stretch; }
#ob-next .ns-line { display: flex; gap: 8px; align-items: baseline; }
.ob-next .spk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ob-next .spk-opts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ob-next .spk button, .ob-next .spk select { font: inherit; font-size: 12px; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--edge); background: none; color: var(--text); cursor: pointer; }
.ob-next .spk button[aria-pressed="true"] { border-color: var(--accent); background: rgba(124, 199, 255, 0.16); font-weight: 700; }
.ob-next .spk label { color: var(--muted); font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
#ob-next .ns-bump { color: var(--warn); font-weight: 600; }
