/* MISSION panel (web/mission.mjs): pick an area, see what imagery covers it, download it.
 * DESIGN.md panel primitive: slate panel, hairlines, sentence case, quiet buttons with one
 * primary (Download), data in Plex Mono, blue only for selection. In the console the side
 * layout docks left beside the rail like the other panels; phones get a bottom sheet.
 * Tokens: --cx-* with DESIGN.md fallbacks; body.nvg re-points them (theme.css palette).
 * Layout: [data-layout="sheet"] bottom sheet on phones, [data-layout="side"] left panel. */

body {
  --pb-panel: var(--cx-panel, #1c2127);
  --pb-raised: var(--cx-raised, #252a31);
  --pb-hover: var(--cx-hover, #2f343c);
  --pb-line: var(--cx-line, rgba(255, 255, 255, .10));
  --pb-line-hi: var(--cx-line-hi, rgba(255, 255, 255, .22));
  --pb-ink: var(--cx-ink, #f6f7f9);
  --pb-dim: var(--cx-dim, #abb3bf);
  --pb-mute: var(--cx-mute, #8f99a8);
  --pb-sel: var(--cx-select, #2d72d2);
  --pb-sel-ink: var(--cx-select-ink, #fff);
  --pb-focus: var(--cx-focus, #4c90f0);
  --pb-ok: var(--cx-ok, #32a467);
  --pb-warn: var(--cx-warn, #ec9a3c);
  --pb-bad: var(--cx-bad, #e76a6e);
  --pb-font: var(--cx-font, "Public Sans", system-ui, sans-serif);
  --pb-mono: var(--cx-mono, "IBM Plex Mono", ui-monospace, monospace);
  --pb-r: var(--cx-r, 2px);
  --pb-shadow: var(--cx-shadow, 0 6px 20px rgba(0, 0, 0, .45));
  --pb-field: rgba(0, 0, 0, .28);
}
body.nvg {
  --pb-panel: var(--cx-panel, var(--panel)); --pb-raised: var(--cx-raised, var(--panel-2)); --pb-hover: var(--cx-hover, var(--hover));
  --pb-line: var(--cx-line, var(--line)); --pb-line-hi: var(--cx-line-hi, var(--line-hi));
  --pb-ink: var(--cx-ink, var(--text)); --pb-dim: var(--cx-dim, var(--dim)); --pb-mute: var(--cx-mute, var(--mute));
  --pb-sel: var(--cx-select, var(--hi)); --pb-sel-ink: var(--cx-select-ink, var(--hi-ink)); --pb-focus: var(--cx-focus, var(--hi));
  --pb-ok: var(--cx-ok, var(--ok)); --pb-warn: var(--cx-warn, var(--warn)); --pb-bad: var(--cx-bad, var(--bad));
  --pb-field: #000; --pb-shadow: none;
}

.msn {
  position: absolute;
  z-index: 32; /* above #zoomctl (31) and the dock (30) */
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--pb-panel);
  color: var(--pb-ink);
  font: 400 13px/1.3 var(--pb-font);
  border: 0 solid var(--pb-line);
  -webkit-user-select: none;
  user-select: none;
}
.msn[hidden] { display: none; }
.msn *, .msn *::before, .msn *::after { box-sizing: border-box; }
.msn ::selection { background: rgba(45, 114, 210, .35); color: var(--pb-ink); }

/* side panel: tablet + desktop, opposite the layer sheet */
.msn[data-layout="side"] {
  top: calc(var(--bar-h, 28px) + var(--safe-t, 0px));
  bottom: calc(var(--dock-h, 44px) + var(--safe-b, 0px));
  left: var(--safe-l, 0px);
  width: min(388px, calc(100vw - 48px));
  border-right-width: 1px;
  box-shadow: 6px 0 18px rgba(0, 0, 0, .35);
}

/* bottom sheet: phones */
.msn[data-layout="sheet"] {
  left: 0;
  right: 0;
  bottom: calc(var(--dock-h, 56px) + var(--safe-b, 0px));
  max-height: min(60dvh, calc(100dvh - var(--bar-h, 28px) - var(--dock-h, 56px) - var(--safe-t, 0px) - var(--safe-b, 0px) - 32px));
  padding: 0 var(--safe-r, 0px) 0 var(--safe-l, 0px);
  border-top-width: 1px;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .45);
  animation: msn-rise 200ms cubic-bezier(.2, 0, 0, 1);
}
@keyframes msn-rise { from { transform: translateY(24px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .msn[data-layout="sheet"] { animation: none; } }
.msn[data-layout="sheet"][data-collapsed] .msn-body,
.msn[data-layout="sheet"][data-collapsed] .msn-actions { display: none; }

.msn-grip { display: none; }
.msn[data-layout="sheet"] .msn-grip {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 18px;
  cursor: pointer;
  touch-action: none;
}
.msn[data-layout="sheet"] .msn-grip::before {
  content: "";
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--pb-line-hi);
}

/* ——— header ——— */
.msn-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 14px;
  border-bottom: 1px solid var(--pb-line);
  touch-action: none;
}
.msn-title {
  flex: 1;
  margin: 0;
  font: 600 13px/1 var(--pb-font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--pb-ink);
}
.msn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11px/1 var(--pb-font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--pb-mute);
}
.msn-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.msn-link[data-state="live"] { color: var(--pb-ok); }
.msn-link[data-state="off"] { color: var(--pb-bad); }

/* ——— body ——— */
.msn-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 12px 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--pb-line-hi) transparent;
}
.msn-body::-webkit-scrollbar { width: 8px; }
.msn-body::-webkit-scrollbar-thumb { background: var(--pb-line-hi); border-radius: 4px; }
.msn-sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.msn-sec[hidden] { display: none; }
.msn-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font: 600 11px/1.2 var(--pb-font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--pb-dim);
}
.msn-h-aside { margin-left: auto; color: var(--pb-mute); }
.msn-h-aside.busy { color: var(--pb-dim); }
.msn-k {
  font: 600 11px/1 var(--pb-font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--pb-mute);
}
.msn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.msn-hint, .msn-empty { margin: 0; color: var(--pb-dim); font-size: 13px; line-height: 1.35; }
.msn-hint[hidden], .msn-empty[hidden] { display: none; }
.msn-empty.err { color: var(--pb-bad); }

/* ——— controls ——— */
.msn button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  font: 600 11px/1 var(--pb-font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--pb-dim);
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 110ms, color 110ms, box-shadow 110ms;
}
.msn button:hover:not(:disabled) { background: var(--pb-hover); color: var(--pb-ink); }
.msn button:active:not(:disabled) { background: var(--pb-hover); }
.msn button:focus-visible, .msn input:focus-visible, .msn select:focus-visible {
  outline: 2px solid var(--pb-focus);
  outline-offset: 2px;
}
.msn button[aria-pressed="true"], .msn button[aria-pressed="true"]:hover:not(:disabled) {
  color: var(--pb-sel-ink);
  background: var(--pb-sel);
}
.msn button.primary {
  color: var(--pb-sel-ink);
  background: var(--pb-sel);
}
.msn button.primary:hover:not(:disabled) { color: var(--pb-sel-ink); background: var(--pb-sel); box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .08); }
.msn button.ghost { background: transparent; border-color: transparent; }
.msn button.danger { color: var(--pb-bad); }
.msn button:disabled { opacity: .4; cursor: default; }
.msn button.msn-x { border-color: transparent; background: transparent; }
.msn-ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.msn-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.msn button.msn-x .msn-ico { width: 20px; height: 20px; }

.msn-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.msn-tools button { padding: 0 6px; }
.msn-polybar { display: flex; align-items: center; gap: 6px; }
.msn-polybar[hidden] { display: none; }
.msn-poly-n {
  flex: 1;
  font: 400 13px/1 var(--pb-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  color: var(--pb-ink);
}
.msn-read {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font: 400 13px/1.2 var(--pb-mono);
  font-variant-numeric: tabular-nums slashed-zero;
}
.msn-read[hidden] { display: none; }
.msn-v { color: var(--pb-ink); }
.msn-read .msn-v:first-child { color: var(--pb-ink); font-size: 13px; }
.msn .dim { color: var(--pb-dim); }
.msn-from {
  margin-left: auto;
  font: 600 11px/1 var(--pb-font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--pb-mute);
}

.msn-field { display: flex; align-items: center; gap: 10px; }
.msn-field .msn-k { width: 40px; flex: none; }
.msn input[type="text"], .msn select {
  min-height: 44px;
  min-width: 0;
  color: var(--pb-ink);
  background: var(--pb-field);
  border: 1px solid var(--pb-line-hi);
  border-radius: 2px;
  font: 400 13px/1 var(--pb-font);
  caret-color: var(--pb-ink);
}
.msn input[type="text"]:focus, .msn select:focus { outline: none; border-color: var(--pb-sel); }
.msn input[type="text"] {
  flex: 1;
  padding: 0 10px;
  -webkit-user-select: text;
  user-select: text;
}
.msn input::placeholder { color: var(--pb-mute); opacity: 1; }
.msn select {
  padding: 0 26px 0 10px;
  font-family: var(--pb-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--pb-dim) 50%), linear-gradient(135deg, var(--pb-dim) 50%, transparent 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
/* iOS zooms the page on focus below 16 px. */
@media (pointer: coarse) { .msn input[type="text"], .msn select { font-size: 16px; } }

.msn-zoom { display: flex; align-items: center; gap: 6px; }
.msn-zoom .msn-k { width: 40px; flex: none; margin-right: 4px; }
.msn-zoom select { flex: 1; }
.msn-zoom.is-auto select { color: var(--pb-mute); }
.msn-dash { color: var(--pb-mute); }

/* ——— estimate table ——— */
.msn-tblwrap { margin: 0 -4px; }
.msn-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.msn-tbl[hidden] { display: none; }
.msn-tbl col.c-use { width: 44px; }
.msn-tbl col.c-res { width: 54px; }
.msn-tbl col.c-size { width: 62px; }
.msn-tbl col.c-time { width: 50px; }
.msn-tbl th {
  padding: 0 4px 6px;
  text-align: right;
  font: 600 11px/1 var(--pb-font);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pb-mute);
  border-bottom: 1px solid var(--pb-line-hi);
}
.msn-tbl th:nth-child(2) { text-align: left; }
/* One <tbody> per source: main row (numbers) + full-width detail row (tags, licence, notes). */
.msn-tbl td {
  padding: 10px 4px 2px;
  vertical-align: top;
}
.msn-tbl tr.msn-detail td { padding: 0 4px 10px; border-bottom: 1px solid var(--pb-line); }
.msn-tbl td.num {
  text-align: right;
  white-space: nowrap;
  font: 400 13px/20px var(--pb-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  color: var(--pb-ink);
}
.msn-tbl tbody:not(.off) { cursor: pointer; }
.msn-tbl tbody:not(.off):hover td { background: var(--pb-hover); }
.msn-tbl tbody.off td, .msn-tbl tbody.off td.num { color: var(--pb-mute); }
.msn-tbl td.use { padding: 0; border-bottom: 1px solid var(--pb-line); }
/* The checkbox is the whole 44 px cell (gloved taps); the 22 px box is drawn by .msn-cbbox. */
.msn-cbwrap { position: relative; display: flex; align-items: flex-start; justify-content: center; padding-top: 9px; min-height: 44px; cursor: pointer; }
.msn-cb {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 44px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.msn-cb:focus-visible { outline: none; }
.msn-cbbox {
  display: grid;
  place-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--pb-line-hi);
  border-radius: 2px;
  background: var(--pb-field);
  pointer-events: none;
}
.msn-cbbox::after {
  content: "";
  width: 11px;
  height: 6px;
  border: solid var(--pb-sel-ink);
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
  opacity: 0;
}
.msn-cb:checked + .msn-cbbox { background: var(--pb-sel); border-color: var(--pb-sel); }
.msn-cb:checked + .msn-cbbox::after { opacity: 1; }
.msn-cb:disabled { cursor: default; }
.msn-cb:disabled + .msn-cbbox { opacity: .35; }
.msn-cb:focus-visible + .msn-cbbox { outline: 2px solid var(--pb-focus); outline-offset: 2px; }
.msn-src { line-height: 20px; min-width: 0; }
.msn-src-t {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-weight: 600;
  color: var(--pb-ink);
  overflow-wrap: anywhere;
}
.msn-tbl tbody.off .msn-src-t { color: var(--pb-dim); }
.msn-lic {
  margin: 6px 0 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 400 12px/1.3 var(--pb-font);
  color: var(--pb-mute);
}
.msn-z {
  display: block;
  margin: 1px 0 1px;
  font: 400 11px/1.2 var(--pb-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  color: var(--pb-mute);
  white-space: nowrap;
}
.msn-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.msn-chip {
  font: 600 11px/16px var(--pb-font);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0 5px;
  border: 1px solid var(--pb-line-hi);
  border-radius: 2px;
  color: var(--pb-dim);
  white-space: nowrap;
}
/* Tags are neutral (DESIGN.md); only the licence caution carries an intent colour, with its word. */
.msn-chip.lic-nc { color: var(--pb-warn); }
.msn-why {
  margin: 6px 0 0;
  font: 400 13px/1.3 var(--pb-font);
  color: var(--pb-dim);
  white-space: normal;
}
.msn-why.bad { color: var(--pb-warn); }
.msn-notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.msn-notes[hidden] { display: none; }
.msn-notes li { color: var(--pb-dim); font-size: 13px; line-height: 1.35; padding-left: 12px; position: relative; }
.msn-notes li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 4px; height: 4px; background: var(--pb-mute); }
.msn-total {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  font: 400 13px/1.3 var(--pb-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  color: var(--pb-ink);
}
.msn-total[hidden] { display: none; }

/* ——— actions ——— */
.msn-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px;
  padding: 10px 14px calc(10px + var(--msn-pad-b, 0px));
  border-top: 1px solid var(--pb-line);
  background: var(--pb-panel);
}
.msn-actions button { min-height: 48px; font-size: 13px; }

/* ——— downloads ——— */
.msn-jobs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.msn-jobs { gap: 0; border-top: 1px solid var(--pb-line); }
.msn-job {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--pb-line);
  border-radius: 0;
}
.msn-job-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.msn-job-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.msn-state {
  font: 600 11px/1 var(--pb-font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--pb-dim);
}
.msn-job[data-state="done"] .msn-state { color: var(--pb-ok); }
.msn-job[data-state="failed"] .msn-state { color: var(--pb-bad); }
.msn-job[data-state="cancelled"] .msn-state { color: var(--pb-mute); }
.msn-bar {
  height: 6px;
  background: var(--pb-hover);
  border: 0;
  border-radius: 1px;
  overflow: hidden;
}
.msn-bar > span {
  display: block;
  height: 100%;
  background: var(--pb-ink);
  transition: width 250ms cubic-bezier(.2, 0, 0, 1);
}
.msn-job[data-state="done"] .msn-bar > span { background: var(--pb-ok); }
.msn-job[data-state="failed"] .msn-bar > span { background: var(--pb-bad); }
.msn-job[data-state="cancelled"] .msn-bar > span { background: var(--pb-mute); }
.msn-job-meta {
  margin: 0;
  font: 400 11px/1.3 var(--pb-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  color: var(--pb-dim);
}
.msn-job-step { margin: 0; font-size: 13px; color: var(--pb-dim); line-height: 1.3; overflow-wrap: anywhere; }
.msn-job-who { margin: 0; font-size: 12px; color: var(--pb-mute); line-height: 1.3; }
.msn-job .msn-why { margin: 0; }
.msn-job-acts { display: flex; justify-content: flex-end; gap: 6px; }

/* Fine pointers get a denser panel; touch keeps 44 px targets. */
@media (pointer: fine) {
  :root:not([data-input="touch"]):not([data-input="pen"]) .msn[data-layout="side"] button,
  :root:not([data-input="touch"]):not([data-input="pen"]) .msn[data-layout="side"] input[type="text"],
  :root:not([data-input="touch"]):not([data-input="pen"]) .msn[data-layout="side"] select { min-height: 36px; }
  :root:not([data-input="touch"]):not([data-input="pen"]) .msn[data-layout="side"] .msn-actions button { min-height: 42px; }
  :root:not([data-input="touch"]):not([data-input="pen"]) .msn[data-layout="side"] .msn-cbwrap { min-height: 36px; padding-top: 9px; }
}

/* Map container while a mission tool is active. */
.maplibregl-canvas-container.msn-drawing,
.maplibregl-canvas-container.msn-drawing .maplibregl-canvas { cursor: crosshair; }

/* ——— console: the side panel docks left beside the rail, like Layers ——— */
:root.ui-console:is([data-form="desktop"], [data-form="tablet"][data-orient="landscape"]) .msn[data-layout="side"] {
  top: var(--cx-top, 48px);
  bottom: var(--cx-bot, 34px);
  left: var(--cx-left, 56px);
  width: min(var(--ad-sheet-dw, 340px), calc(100vw - 16px));
  border-width: 1px;
  border-radius: var(--pb-r);
  box-shadow: var(--pb-shadow);
}
:root.ui-console[data-orient="portrait"]:is([data-form="phone"], [data-form="tablet"]) .msn[data-layout="sheet"],
:root.ui-console[data-orient="portrait"][data-form="tablet"] .msn[data-layout="side"] {
  top: auto;
  left: var(--cx-pad, 8px);
  right: var(--cx-pad, 8px);
  width: auto;
  bottom: var(--cx-bot-edge, 0px);
  max-height: calc(100% - var(--cx-top, 64px) - var(--cx-bot-edge, 0px));
  border-width: 1px 1px 0;
  border-radius: var(--pb-r) var(--pb-r) 0 0;
}
/* Tablet portrait keeps the rail: the sheet sits beside it, like Layers (#sheet in console.css). */
:root.ui-console[data-orient="portrait"][data-form="tablet"] .msn:is([data-layout="sheet"], [data-layout="side"]) {
  left: var(--cx-left, 80px);
  right: var(--cx-right, 8px);
}
.msn-head { min-height: 40px; padding: 0 4px 0 12px; }
:root:is([data-input="touch"], [data-input="pen"]) .msn-head { min-height: 48px; padding-left: 16px; }
.msn-title { font: 600 13px/1.2 var(--pb-font); letter-spacing: 0; text-transform: none; color: var(--pb-ink); }
.msn-link { font: 400 12px/1 var(--pb-font); color: var(--pb-dim); }
.msn-link::before { width: 6px; height: 6px; }
.msn-h { font: 600 12px/1.2 var(--pb-font); color: var(--pb-dim); }
.msn-k { font: 600 12px/1 var(--pb-font); color: var(--pb-dim); }
.msn button { font: 500 13px/1 var(--pb-font); }
.msn-from { font: 400 12px/1 var(--pb-font); color: var(--pb-mute); }
.msn-state { font: 600 12px/1 var(--pb-font); }
.msn-body { padding: 12px 12px 4px; gap: 16px; }
:root:is([data-input="touch"], [data-input="pen"]) .msn-body { padding: 16px 16px 4px; }
.msn-actions { padding: 8px 12px calc(8px + var(--msn-pad-b, 0px)); }
.msn-actions button { font-size: 13px; }

/* Mission chip (#btn-mission-surv, index.html): a neutral, sentence-case control. Matches
 * adaptive.css's selector specificity (+ .ad-chip) so it wins outside the console shell;
 * console.css styles it the same way inside it. */
body[data-mode="surveillance"] #btn-mission-surv.ad-chip {
  height: 28px;
  padding: 0 12px;
  gap: 8px;
  font: 500 13px/1 var(--pb-font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--pb-ink);
  background: var(--pb-panel);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-r);
  box-shadow: var(--pb-shadow);
}
body[data-mode="surveillance"] #btn-mission-surv.ad-chip:hover { background: var(--pb-hover); }
:root[data-form]:not([data-input="mouse"]) body[data-mode="surveillance"] #btn-mission-surv.ad-chip { height: 44px; }
/* Area tools: one row of quiet buttons that wraps, labels never break mid-phrase. */
.msn-tools { display: flex; flex-wrap: wrap; gap: 2px; }
.msn-tools button { padding: 0 8px; white-space: nowrap; }
.msn-tools button .msn-ico { width: 16px; height: 16px; }
