/* Brain Club Browser — viewer + landing styles. Self-contained: system fonts, no CDN. */

:root {
  --bg: #f3ede4;
  --surface: #fbf8f3;
  --surface-2: #efe6da;
  --surface-3: #e6dccd;
  --ink: #2b241f;
  --ink-2: #6d6158;
  --ink-3: #8f8276;
  --line: #e0d5c6;
  --accent: #b4532a;
  --accent-strong: #983f1b;
  --accent-ink: #fff8f2;
  --accent-soft: #f6e2d5;
  --ok: #3b7f53;
  --ok-soft: #e1efe3;
  --warn: #a8731f;
  --warn-soft: #f5ead3;
  --danger: #a3392a;
  --danger-soft: #f6e0db;
  --stage: #1d1916;
  --stage-ink: #e9dfd4;
  --focus: #b4532a;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 10px 28px rgba(60, 40, 20, .10);
  --radius: 14px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171411;
    --surface: #211c18;
    --surface-2: #2b2520;
    --surface-3: #362f29;
    --ink: #f2e9df;
    --ink-2: #bcae9f;
    --ink-3: #978a7d;
    --line: #3a312a;
    --accent: #e08a5f;
    --accent-strong: #f0a37c;
    --accent-ink: #1d130d;
    --accent-soft: #3d281d;
    --ok: #74c28f;
    --ok-soft: #1f3226;
    --warn: #e2b25e;
    --warn-soft: #3a2f1b;
    --danger: #ef8e7c;
    --danger-soft: #3e221d;
    --stage: #0e0c0a;
    --stage-ink: #e9dfd4;
    --focus: #f0a37c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  min-width: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .005em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color .15s ease, border-color .15s ease, transform .08s ease, opacity .15s ease;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"]:disabled { opacity: .85; cursor: progress; }

.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-strong); }
.btn-accent:disabled:hover { background: var(--accent); }

.btn-quiet {
  background: transparent;
  border-color: var(--line);
}
.btn-quiet:hover { background: var(--surface-2); }

.btn-danger-quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--danger);
}
.btn-danger-quiet:hover { background: var(--danger-soft); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.95); }

.btn .ico { width: 20px; height: 20px; flex: none; }
.btn .busy-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  animation: bcb-pulse 1.1s ease-in-out infinite;
}

/* ---------- Viewer shell ---------- */

body.viewer {
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
}

.app {
  position: fixed;
  left: 0; right: 0;
  top: var(--app-top, 0px);
  height: var(--app-h, 100dvh);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(180px, 1fr) auto;
  grid-template-areas: "bar" "banner" "stage" "controls";
  /* when bar + banner + controls leave too little room the page scrolls — the live screen must never grow over the
     buttons (it did on a 390x664 phone with a long banner: the canvas covered "Return control") */
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Top bar */
.bar {
  grid-area: bar;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: calc(6px + env(safe-area-inset-top)) 12px 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.site {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.site .lock {
  width: 16px; height: 16px; flex: none;
  color: var(--ok);
}
.site .lock[data-secure="false"] { color: var(--warn); }
.host {
  font-weight: 650;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.host[data-empty="true"] { color: var(--ink-3); font-weight: 500; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 3px 9px 3px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--warn-soft);
  color: var(--warn);
}
.live .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.live[data-live="true"] { background: var(--ok-soft); color: var(--ok); }
.live[data-live="true"] .dot { animation: bcb-breathe 2.4s ease-in-out infinite; }

.lang {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  margin: -4px -6px -4px 0;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  touch-action: manipulation;
}
.lang:hover { background: var(--surface-2); color: var(--ink); }

.bar-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-size: 13px;
  color: var(--ink-2);
  min-width: 0;
}
.meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}
.meta .ico { width: 14px; height: 14px; flex: none; opacity: .8; }
.meta strong { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.meta[data-warn="true"] strong { color: var(--danger); }
.meta.purpose {
  flex: 1 1 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-3);
}
.meta.purpose span { overflow: hidden; text-overflow: ellipsis; }
.flag { font-size: 14px; line-height: 1; }

/* Banner */
.banner {
  grid-area: banner;
  margin: 10px 12px 0;
  padding: 12px 14px 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-3);
  box-shadow: var(--shadow);
  min-width: 0;
}
.banner[data-tone="need"] { background: var(--accent-soft); border-left-color: var(--accent); border-color: transparent; border-left-color: var(--accent); }
.banner[data-tone="you"] { background: var(--ok-soft); border-color: transparent; border-left-color: var(--ok); }
.banner[data-tone="wait"] { background: var(--surface); border-left-color: var(--warn); }
.banner[data-tone="ended"] { background: var(--surface-2); border-left-color: var(--ink-3); }
.banner[data-tone="calm"] { background: var(--surface); border-left-color: var(--line); box-shadow: none; }
.banner p { margin: 0; }
.banner-title { font-weight: 700; font-size: 16px; }
.banner-body { margin-top: 2px !important; color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }
.banner-detail { margin-top: 2px !important; color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.banner-goal { margin-top: 6px !important; color: var(--ink-2); font-size: 13.5px; overflow-wrap: anywhere; }
.banner-action { margin-top: 6px !important; font-size: 14px; font-weight: 600; color: var(--accent-strong); }
.banner[data-tone="you"] .banner-action { color: var(--ok); }

/* Stage: the live remote screen */
.stage {
  grid-area: stage;
  position: relative;
  margin: 10px 12px 0;
  border-radius: var(--radius);
  background: var(--stage);
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  min-height: 140px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), var(--shadow);
}
.stage.zoomed { overflow: auto; scrollbar-width: thin; }
.stage[data-control="true"] { box-shadow: inset 0 0 0 2px var(--ok), var(--shadow); }
.screen {
  position: relative;
  width: 100%;
  height: 100%;
}
.screen canvas { display: block; }

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  color: var(--stage-ink);
  background: rgba(14, 12, 10, .55);
  font-size: 14.5px;
  pointer-events: none;
}
.overlay[data-kind="ended"], .overlay[data-kind="error"] { background: rgba(14, 12, 10, .78); pointer-events: auto; }
.overlay .spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(233, 223, 212, .25);
  border-top-color: var(--stage-ink);
  animation: bcb-spin .9s linear infinite;
}
.overlay-title { font-weight: 700; font-size: 17px; margin: 0; }
.overlay-text { margin: 0; max-width: 34ch; opacity: .9; }

/* Controls */
.controls {
  grid-area: controls;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  min-width: 0;
}
.primary {
  display: flex;
  gap: 8px;
}
.primary .grow { flex: 1 1 auto; }
.primary .btn { min-height: 52px; font-size: 16.5px; }
.chip-viewonly {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}
.control-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
}

.tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-tool { min-height: 46px; padding: 0 10px; font-size: 15px; background: var(--surface-2); }
.btn-tool[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.keys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.key {
  min-height: 44px;
  min-width: 44px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.key:hover { background: var(--surface-2); }
.key:active { background: var(--surface-3); }
.key:disabled { opacity: .45; cursor: not-allowed; }
.key .sub { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-3); line-height: 1; }

.view-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.zoom {
  display: inline-flex;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.zoom button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.zoom button + button { border-left: 1px solid var(--line); }
.zoom button:hover { background: var(--surface-2); }
.zoom button:disabled { opacity: .4; cursor: default; }
.zoom button:focus-visible { outline-offset: -3px; }
.zoom .ico { width: 18px; height: 18px; vertical-align: middle; }
.pan {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
}
.pan[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
.hint {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.35;
}
.hint-pointer { display: none; }
.app.is-zoomed .hint { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hint-touch { display: none; }
  .hint-pointer { display: inline; }
}

/* Soft keyboard is up: give the screen the room */
.app.kbd-open .banner,
.app.kbd-open .bar-meta,
.app.kbd-open .view-row { display: none; }
.app.kbd-open .stage { margin-top: 6px; min-height: 96px; }
.app.kbd-open .primary .btn { min-height: 44px; }
.app.kbd-open .controls { gap: 8px; padding-top: 8px; padding-bottom: 8px; }

/* Hidden input that raises the phone keyboard */
.kbd-input {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: 0;
  opacity: 0;
  font-size: 16px; /* below 16px iOS zooms the page on focus */
  resize: none;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  pointer-events: none;
  overflow: hidden;
}

/* Toast (errors) */
.toast {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 8px 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
  font-size: 14.5px;
  animation: bcb-rise .18s ease-out;
}
.toast p { margin: 10px 0 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.toast button {
  flex: none;
  min-width: 44px; min-height: 44px;
  border: 0; border-radius: 10px;
  background: transparent; color: inherit;
  font-size: 22px; line-height: 1;
  cursor: pointer;
}

/* Fatal screen */
.fatal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg);
}
.fatal-card {
  width: 100%;
  max-width: 440px;
  padding: 26px 22px 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.fatal-card h1 { margin: 10px 0 6px; font-size: 21px; line-height: 1.25; }
.fatal-card p { margin: 0 0 18px; color: var(--ink-2); overflow-wrap: anywhere; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

/* Dialogs */
dialog.sheet {
  width: min(100% - 24px, 520px);
  max-width: 520px;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog.sheet::backdrop { background: rgba(20, 14, 10, .45); }
.sheet .sheet-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.sheet h2 { margin: 0; font-size: 19px; }
.sheet p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.sheet textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  resize: vertical;
}
.sheet .check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.sheet .check input { width: 22px; height: 22px; accent-color: var(--accent); }
.sheet .actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@media (max-width: 599px) {
  dialog.sheet {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
  }
  .sheet .sheet-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .sheet .actions .btn { flex: 1 1 0; }
}

/* ---------- Wide screens and phones in landscape: screen left, controls right ---------- */
@media (min-width: 900px), (orientation: landscape) and (max-height: 560px) {
  .app {
    grid-template-columns: minmax(0, 1fr) var(--side-w, 320px);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      "bar bar"
      "stage banner"
      "stage controls";
  }
  .bar { flex-direction: row; align-items: center; gap: 16px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .bar-row { flex: 1 1 auto; }
  .bar-meta { flex: 0 1 auto; flex-wrap: nowrap; overflow: hidden; }
  .meta.purpose { flex: 0 1 auto; max-width: 28ch; }
  .lang { margin: -6px 0; }
  .stage { margin: 12px 0 12px 12px; }
  .banner { margin: 12px 12px 0; align-self: start; }
  .controls { overflow-y: auto; align-content: start; padding-top: 12px; }
  .app.kbd-open .banner { display: block; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .app { --side-w: 280px; }
  .bar { padding-top: 4px; padding-bottom: 4px; }
  .bar-meta .purpose { display: none; }
  .banner { padding: 8px 10px 8px 12px; }
  .banner-body, .banner-goal { font-size: 13px; }
  .stage { margin: 8px 0 8px 8px; }
  .controls { gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .primary .btn { min-height: 48px; }
  .hint { display: none; }
}

/* ---------- Landing (index.html) ---------- */

body.landing { min-height: 100vh; }
.lang-radio { position: absolute; opacity: 0; pointer-events: none; }
#lang-en:checked ~ .page .l-lv,
#lang-lv:checked ~ .page .l-en { display: none; }
#lang-en:checked ~ .page label[for="lang-en"],
#lang-lv:checked ~ .page label[for="lang-lv"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
#lang-en:focus-visible ~ .page label[for="lang-en"],
#lang-lv:focus-visible ~ .page label[for="lang-lv"] { outline: 3px solid var(--focus); outline-offset: 2px; }

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 44px;
}
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-2);
}
.seg label {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-2);
  cursor: pointer;
}
.hero-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.hero p { margin: 0 0 14px; font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.hero p.lead { color: var(--ink); font-size: 18.5px; }
.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.steps .n {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}
.steps p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.steps strong { display: block; font-size: 15.5px; }
.notice {
  margin: 28px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 15px;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; color: var(--ink-2); }
.foot {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  color: var(--ink-3);
}
.foot a { color: var(--accent-strong); text-underline-offset: 3px; }

/* ---------- Motion ---------- */
@keyframes bcb-spin { to { transform: rotate(360deg); } }
@keyframes bcb-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes bcb-breathe { 0%, 100% { box-shadow: 0 0 0 0 currentColor; } 50% { box-shadow: 0 0 0 3px transparent; opacity: .7; } }
@keyframes bcb-rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* the controls always paint above the (positioned) live screen */
.controls { position: relative; z-index: 2; }
/* while this person holds control the banner keeps only what to do; the long reason was already read */
.banner[data-tone="you"] .banner-body, .banner[data-tone="you"] .banner-detail { display: none; }

/* embedded in brainclub.com (an app pane or a chat card): no fixed full-screen frame, quieter chrome */
html.embed .app { position: absolute; top: 0; height: 100%; }
html.embed .bar-meta .purpose, html.embed #lang { display: none; }
html.embed .banner { margin-top: 6px; }
