/* mentra.ci.computer/app/ only — chrome around the hosted demo of the companion UI.
   scripts/inject-crosslinks.mjs links this file into the built /app/ page; the bridge
   itself serves public/index.html without it. It is loaded after styles.css, which
   supplies the tokens used here (--surface-2, --text-dim, --accent, --line, ...). */

/* Keep the demo bar and footer inside one viewport: the app is a full-height shell, so
   hand its height to a flex column instead of letting 100dvh + the bars overflow. */
body { display: flex; flex-direction: column; min-height: 100dvh; height: auto; }
.app, .screen { flex: 1 0 auto; min-height: 0; }

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 14px;
  padding: 4px var(--pad) 4px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
}
.demo-bar__msg { margin: 0; padding: 4px 0; }
.demo-bar__msg strong {
  margin-right: 6px;
  color: var(--accent);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-foot {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 6px var(--pad) calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
}
.demo-foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
.demo-foot__note { margin: 2px 0 4px; }
.demo-foot__ga { margin: 0 0 4px; }

.demo-bar a,
.demo-foot a {
  display: inline-block;
  padding: 4px 0;
  color: var(--accent-soft);
  font-weight: 500;
  text-underline-offset: 2px;
}
.demo-foot__cta { font-weight: 700; }
.demo-bar a:hover,
.demo-foot a:hover { color: #ffffff; }
.demo-bar a:focus-visible,
.demo-foot a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
