/* The preview lane's mark (D237, client/src/channel.ts). Loaded by every page;
   inert unless channel.ts sets data-channel="preview" on <html>, so production
   renders exactly as before. */

.channel-mark {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 4px;
  background: #f0a020;
  color: #1a1206;
  font: 700 10px/15px system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  cursor: help;
}

/* A stripe along the top edge: on every screen, over nothing, taking no click. */
html[data-channel="preview"] body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: #f0a020;
  z-index: 2147483647;
  pointer-events: none;
}

/* THE VIEWER'S BAR HAS NO ROOM TO SPARE (measured: at 1366 px the project name
   already gets 6 px, in production). So there the mark TAKES THE BRAND'S PLACE
   rather than sitting beside it -- the brand's text is collapsed to nothing and
   the mark, narrower than "AerTwin", stands in for it. The bar is no wider in
   preview than in production. Pages with room keep both. */
html[data-channel="preview"] #toolbar #brand {
  font-size: 0;
  letter-spacing: 0;
}
html[data-channel="preview"] #toolbar #brand .channel-mark {
  margin-left: 0;
}
