/* Shared map chrome: Fullscreen / immersive, Presentation mode (js/views/mapkit.js). Tokens only. */
.mk-b { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 11px; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.mk-b:hover { background: var(--bg-3); border-color: var(--ink-3); } .mk-b[aria-pressed='true'] { border-color: var(--hit); color: var(--hit); } .mk-b:focus-visible { outline: 2px solid var(--hit); outline-offset: 2px; }

/* Fullscreen: only the page remains. The shell's rail, top strip and tab bar are hidden by class, so a live re-render of the page can never drop the mode. */
html.mk-fs .rail, html.mk-fs .strip, html.mk-fs .subnav { display: none !important; }
html.mk-fs .app { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) !important; grid-template-areas: 'stage' !important; }
html.mk-fs .app .stage > .page { top: 0 !important; padding: 10px 12px 12px !important; }
html.mk-fs .net__wrap { height: calc(100vh - 150px) !important; }
html.mk-fs .net .ph, html.mk-fs .net .nm__strip { display: none; }
html.mk-fs.mk-immersive .app { position: fixed; inset: 0; z-index: 95; background: var(--bg); }
html.mk-fs .app.has-dossier { grid-template-columns: minmax(0, 1fr) !important; }

/* Presentation: the map, its camera and one quiet bar */
html.mk-present .atl-hud, html.mk-present .am-ctl, html.mk-present .am-nav, html.mk-present .am-legend, html.mk-present .am-fab, html.mk-present .am-lens, html.mk-present .atl-pop, html.mk-present .atl-found { display: none !important; }
html.mk-present .mi, html.mk-present .net__side, html.mk-present .net__lp, html.mk-present .nm, html.mk-present .nm__strip, html.mk-present .net__tools, html.mk-present .nm__tb, html.mk-present .lg { display: none !important; }
html.mk-present .atl--map .atl-body { height: calc(100vh - 150px) !important; }
html.mk-present .mn .mn-t { font-size: 14px; } html.mk-present .mn .mn-sub { font-size: 10.5px; } html.mk-present .tr-name { font-size: calc(18px * var(--z, 1)) !important; }
.mk-pbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: 14px; max-width: min(760px, calc(100vw - 24px)); padding: 10px 14px; background: color-mix(in srgb, var(--bg-2) 96%, transparent); border: 1px solid var(--line-strong); border-left: 3px solid var(--hit); }
.mk-pbar__m { min-width: 0; flex: 1; } .mk-pbar__k { margin: 0; font-size: 10px; color: var(--ink-3); } .mk-pbar__t { margin: 2px 0; font: 800 17px var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; } .mk-pbar__s { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.mk-b--x { margin-left: 4px; }
@media (max-width: 720px) { .mk-pbar { bottom: 8px; gap: 8px; padding: 8px 10px; } .mk-pbar__t { font-size: 14px; } }
html.mk-present .am-mini { display: none !important; }
/* Fullscreen Network: the canvas takes the height that is left under the toolbar */
html.mk-fs .net { display: flex; flex-direction: column; height: calc(100vh - 24px); }
html.mk-fs .net > .nm, html.mk-fs .net > .nm__tb { flex: none; }
html.mk-fs .net__stage { flex: 1 1 auto; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
html.mk-fs .net__main { display: flex; flex-direction: column; min-height: 0; } html.mk-fs .net__wrap { flex: 1 1 auto; height: auto !important; min-height: 240px; } html.mk-fs .net__side { overflow: auto; min-height: 0; }
html.mk-fs .net .lg { display: none; }
