/* ─────────────────────────────────────────────────────────────────────────
   BIM Hub Pro
   Drafting-room interface: vellum tool panel on the left, a dark monitor
   holding the 3D model on the right. Red and amber belong to clash sets
   A and B only, so they always mean the same thing as in the 3D view.
   ───────────────────────────────────────────────────────────────────────── */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/geist-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Surfaces */
  --sheet: #E6E9E6;
  --paper: #F7F8F6;
  --ink: #14181D;
  --graphite: #59636C;
  --rule: #C6CBC8;
  --rule-soft: #D5D9D6;

  /* Accent: plotter blue, used for the one primary action and focus */
  --plotter: #2340D9;
  --plotter-deep: #1A31B0;
  --plotter-wash: #DCE2FA;

  /* Clash semantics (match the 3D theming colors) */
  --clash-a: #D13B2E;
  --clash-b: #D98E0B;
  --ok: #2F7D4F;

  /* Viewport */
  --viewer: #11151B;
  --viewer-line: rgba(255, 255, 255, 0.14);
  --viewer-ink: #E7EAEE;
  --viewer-mute: #9AA4AE;
  --viewer-accent: #9DB0FF;

  --font-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", var(--font-ui);
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --panel-w: 400px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--sheet);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--plotter);
  outline-offset: 2px;
}
.viewer-stage :focus-visible { outline-color: var(--viewer-accent); }

.ico { width: 15px; height: 15px; flex: none; }

/* ── TOP BAR ───────────────────────────────────────────────────────────── */
.topbar {
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.readout {
  display: flex;
  align-items: center;
  margin-right: auto;
  font-size: 12.5px;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}
.readout-item {
  padding: 0 14px;
  border-left: 1px solid var(--rule);
  white-space: nowrap;
}
.readout-item:first-child { border-left: 0; padding-left: 0; }
.readout-item b { color: var(--ink); font-weight: 600; }
.readout-clash.has-clashes b { color: var(--clash-a); }
.readout-clash.has-clashes::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: var(--clash-a);
  vertical-align: 0;
}

.topbar-actions { display: flex; align-items: center; gap: 4px; }

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s var(--ease);
}
.btn-quiet:hover { background: var(--plotter-wash); }

/* ── LAYOUT ────────────────────────────────────────────────────────────── */
.workspace-layout {
  display: grid;
  grid-template-columns: var(--panel-w) 1fr;
  flex: 1;
  min-height: 0;
}

.left-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--sheet);
  border-right: 1px solid var(--rule);
}

/* ── TABS ──────────────────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  flex: none;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1 0 auto;
  position: relative;
  height: 40px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s var(--ease);
}
.tab-btn::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px;
  background: var(--plotter);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease);
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--ink); font-weight: 600; }
.tab-btn.active::after { transform: scaleX(1); }

.tab-badge {
  margin-left: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}
.tab-badge.is-alert { color: var(--clash-a); font-weight: 600; }

/* ── PANES AND BLOCKS ──────────────────────────────────────────────────── */
.tab-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 20px;
  border-top: 1px solid var(--rule);
}
.tab-pane > .block:first-child { border-top: 0; }

.block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.block-head h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.block-sub { margin-top: 3px; font-size: 12px; color: var(--graphite); max-width: 52ch; }
.block-head + .block-sub { margin-top: -4px; }
.block-note { font-size: 12px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.btn-group-inline { display: flex; gap: 6px; }

/* ── DROP ZONE: registration marks at the corners ──────────────────────── */
.drop-zone {
  --mark: var(--graphite);
  position: relative;
  padding: 26px 16px 22px;
  text-align: center;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.drop-zone::before, .drop-zone::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 0 solid var(--mark);
  transition: border-color 0.15s var(--ease);
}
.drop-zone::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.drop-zone::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.drop-zone:hover, .drop-zone.dragover, .drop-zone:focus-visible {
  --mark: var(--plotter);
  background: var(--plotter-wash);
  border-color: var(--plotter);
}
.drop-ico { width: 22px; height: 22px; color: var(--plotter); margin-bottom: 8px; }
.drop-title { font-size: 13.5px; font-weight: 600; }
.drop-sub { margin-top: 3px; font-size: 12px; color: var(--graphite); }

/* ── ROWS (models, clashes, views) ─────────────────────────────────────── */
.rows { display: flex; flex-direction: column; }
.rows:empty { display: none; }

.model-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--rule-soft);
}
.rows > .model-item:first-child { border-top-color: var(--rule); }
.rows > :last-child { border-bottom: 1px solid var(--rule-soft); }
.rows > .empty-hint { border: 0 !important; }

.model-item::before {
  content: "";
  width: 8px; height: 8px;
  border: 1.5px solid var(--graphite);
  background: transparent;
}
.model-item.linked-active::before { background: var(--plotter); border-color: var(--plotter); }
.model-item.is-task::before { border-color: var(--rule); border-top-color: var(--plotter); border-radius: 50%; animation: spin 0.9s linear infinite; }
.model-item.is-plain { grid-template-columns: minmax(0, 1fr) auto; }
.model-item.is-plain::before { display: none; }
.model-item.is-error::before { background: var(--clash-a); border-color: var(--clash-a); }
@keyframes spin { to { transform: rotate(360deg); } }

.model-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.model-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-meta { font-size: 12px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.model-actions { display: flex; align-items: center; gap: 4px; }

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.btn-primary, .btn-flat, .btn-block {
  height: 34px;
  padding: 0 14px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn-primary { border: 1px solid var(--plotter); background: var(--plotter); color: #fff; }
.btn-primary:hover { background: var(--plotter-deep); border-color: var(--plotter-deep); }
.btn-flat { border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.btn-flat:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

.btn-flat-sm {
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn-flat-sm:hover { border-color: var(--plotter); color: var(--plotter); background: #fff; }

.btn-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--graphite);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.btn-icon-sm:hover { color: var(--ink); background: var(--paper); border-color: var(--rule); }
.btn-icon-sm.danger:hover { color: var(--clash-a); border-color: var(--clash-a); }

/* ── FORMS ─────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.form-group label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.label-aside { font-weight: 400; color: var(--graphite); }
.label-value { margin-left: auto; font-weight: 500; color: var(--graphite); font-variant-numeric: tabular-nums; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.key { display: inline-block; width: 8px; height: 8px; align-self: center; flex: none; }
.key-a { background: var(--clash-a); }
.key-b { background: var(--clash-b); }

.form-select, .form-input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  font-size: 13px;
  text-overflow: ellipsis;
}
.form-select {
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' fill='none' stroke='%2359636C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 12px;
}
.form-select:hover, .form-input:hover { border-color: var(--graphite); }
.form-select:focus-visible, .form-input:focus-visible { outline-offset: 0; border-color: var(--plotter); }
.form-input::placeholder { color: #8B949B; }

.range { width: 100%; accent-color: var(--plotter); }

.btn-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; margin-top: 2px; }

/* ── CLASH ROWS ────────────────────────────────────────────────────────── */
.clash-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  column-gap: 8px;
  row-gap: 4px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--rule-soft);
  background: transparent;
  text-align: left;
  transition: background 0.15s var(--ease);
}
.rows > .clash-item:first-child { border-top-color: var(--rule); }
.clash-item:hover { background: rgba(255, 255, 255, 0.55); }
.clash-id { grid-row: 1; font-family: var(--font-mono); font-size: 11.5px; color: var(--graphite); padding-top: 1px; }
.clash-item-title { grid-row: 1; grid-column: 2; font-size: 13px; font-weight: 600; }
.clash-sev { grid-row: 1; grid-column: 3; font-size: 12px; color: var(--graphite); }
.clash-sev.critical { color: var(--clash-a); font-weight: 600; }
.clash-item-sub { grid-column: 2 / 4; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--graphite); }
.clash-el { display: flex; align-items: baseline; gap: 7px; min-width: 0; white-space: nowrap; }
.clash-el .key { align-self: center; }
.clash-el strong { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 500; }

/* ── COPILOT ───────────────────────────────────────────────────────────── */
.pane-chat { overflow: hidden; }
.chat-block { flex: 1; min-height: 0; gap: 12px; }

.ai-quick-chips { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.chip-btn {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.chip-btn:hover { border-color: var(--plotter); color: var(--plotter); }

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.chat-bubble { max-width: 100%; font-size: 13px; line-height: 1.55; }
.chat-bubble.ai .bubble-body { max-width: 60ch; }
.chat-bubble.user {
  align-self: flex-end;
  max-width: 88%;
  padding: 8px 11px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px 8px 2px 8px;
}
.bubble-title { margin-bottom: 3px; font-size: 12px; font-weight: 600; color: var(--plotter); }
.bubble-body strong { font-weight: 600; }
.bubble-body code { font-family: var(--font-mono); font-size: 12px; padding: 0 3px; background: var(--rule-soft); }
.chat-bubble.pending .bubble-body { color: var(--graphite); }

.chat-input-bar {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
}
.chat-input-bar:focus-within { border-color: var(--plotter); box-shadow: 0 0 0 1px var(--plotter); }
.chat-input-bar input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 0; background: transparent; outline: none; font-size: 13px; }
.btn-send { padding: 0 16px; border: 0; border-left: 1px solid var(--rule); background: transparent; font-weight: 600; color: var(--plotter); }
.btn-send:hover { background: var(--plotter-wash); }

/* ── QUANTITIES + HEALTH ───────────────────────────────────────────────── */
.qto-bars-container { display: flex; flex-direction: column; margin-top: 2px; }
.qto-bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: calc(100% + 12px);
  margin: 0 -6px;
  padding: 8px 6px;
  border: 0;
  border-top: 1px solid var(--rule-soft);
  background: transparent;
  text-align: left;
  transition: background 0.15s var(--ease);
}
.qto-bars-container > .qto-bar-row:first-child { border-top-color: var(--rule); }
.qto-bar-row:hover { background: rgba(255, 255, 255, 0.6); }
.qto-bar-label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 500; }
.qto-bar-label span:last-child { color: var(--graphite); font-weight: 400; font-variant-numeric: tabular-nums; }
.qto-bar-track { height: 4px; background: var(--rule-soft); }
.qto-bar-fill { height: 100%; }

.health-score { display: flex; align-items: baseline; gap: 8px; }
.health-score-num { font-family: var(--font-display); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.health-score-unit { font-size: 13px; color: var(--graphite); }
.health-list { margin-top: 12px; }
.health-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule-soft); font-size: 12.5px; }
.health-list > div:first-child { border-top-color: var(--rule); }
.health-list > div:last-child { border-bottom: 1px solid var(--rule-soft); }
.health-list dt { color: var(--graphite); }
.health-list dd { font-weight: 600; font-variant-numeric: tabular-nums; }

.empty-hint { padding: 6px 0 2px; font-size: 12.5px; color: var(--graphite); max-width: 46ch; }

/* ── VIEWPORT ──────────────────────────────────────────────────────────── */
.viewer-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: var(--viewer);
  overflow: hidden;
}
.aps-viewer-canvas { position: absolute; inset: 0; }

.viewer-empty-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--viewer);
  pointer-events: none;
}
.hero-glyphs { position: absolute; left: 0; top: 0; }
.viewer-empty-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--viewer) 0%, rgba(17, 21, 27, 0.88) 24%, rgba(17, 21, 27, 0) 52%),
    linear-gradient(0deg, var(--viewer) 0%, rgba(17, 21, 27, 0) 40%);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 5vw, 56px);
  bottom: clamp(28px, 7vh, 64px);
  max-width: 440px;
  color: var(--viewer-ink);
}
.hero-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-copy p { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--viewer-mute); max-width: 42ch; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 12.5px; color: var(--viewer-mute); pointer-events: auto; }
.hero-actions .btn-primary { background: var(--viewer-ink); border-color: var(--viewer-ink); color: var(--viewer); }
.hero-actions .btn-primary:hover { background: #fff; border-color: #fff; }

.drop-veil {
  position: absolute;
  inset: 12px;
  z-index: 12;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--viewer-accent);
  background: rgba(17, 21, 27, 0.78);
  color: var(--viewer-ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  pointer-events: none;
}
.viewer-stage.drop-active .drop-veil { display: flex; }

/* HUD: docked to the top-left corner of the viewport */
.floating-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: flex;
  background: rgba(17, 21, 27, 0.88);
  border: 1px solid var(--viewer-line);
  border-radius: 4px;
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.hud-btn {
  position: relative;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid var(--viewer-line);
  background: transparent;
  color: var(--viewer-mute);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.hud-btn:first-child { border-left: 0; }
.hud-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--viewer-ink); }
.hud-btn[aria-pressed="true"] { color: var(--viewer-ink); }
.hud-btn[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 0;
  height: 2px;
  background: var(--viewer-accent);
}

/* ── TOASTS ────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 380px;
  padding: 9px 14px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12.5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  animation: toast-in 0.2s var(--ease);
}
.toast::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--viewer-accent); }
.toast.error::before { background: #FF7A6B; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .readout-item:nth-child(2) { display: none; }
  .btn-quiet { font-size: 0; gap: 0; padding: 0 8px; }
  .btn-quiet .ico { width: 17px; height: 17px; }
}

@media (max-width: 860px) {
  body { overflow: auto; height: auto; min-height: 100%; }
  .topbar { gap: 12px; }
  .readout { display: none; }
  .brand { margin-right: auto; }
  .workspace-layout { display: flex; flex-direction: column; }
  .viewer-stage { order: -1; height: 56vh; min-height: 320px; flex: none; }
  .left-panel { border-right: 0; }
  .tab-pane { overflow: visible; }
  .pane-chat { min-height: 520px; }
  .floating-hud { max-width: calc(100% - 28px); overflow-x: auto; scrollbar-width: none; }
  .viewer-empty-overlay::after {
    background: linear-gradient(0deg, var(--viewer) 0%, rgba(17, 21, 27, 0.94) 42%, rgba(17, 21, 27, 0) 78%);
  }
  .hero-copy h2 { font-size: 26px; }
  .hero-copy p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
