/* The Boardroom (docs/boardroom/DESIGN.md §6). Colours, radii and type come from
   app.css's tokens, so dark mode follows; glass is for floating chrome only.
   Everything here is under .br-…, .boardroom-chrome or the launcher's Boardroom art. */

:root {
  --br-space: #eceeef;
  --br-good: #1e9e5a;
  --br-warn: #b7791f;
  --br-bad: #d4351c;
  --br-hi: color-mix(in srgb, var(--blue) 10%, transparent);
  --br-panel-w: 440px;
  --br-stage-h: calc(100dvh - 84px - 24px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --br-space: #1a1c1f;
    --br-warn: #e5a542;
    --br-bad: #ff6b57;
  }
}

:root[data-theme='dark'] {
  --br-space: #1a1c1f;
  --br-warn: #e5a542;
  --br-bad: #ff6b57;
}

/* ---------------------------------------------------------------- top bar */

.br-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, color-mix(in srgb, var(--bg) 80%, transparent));
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  color: var(--ink);
  transition: background 0.2s var(--ease), box-shadow 0.4s var(--ease-std);
}

.br-search:hover {
  background: var(--glass-hover);
}

.br-search:focus-within {
  background: var(--glass);
  box-shadow: var(--shadow-pill);
}

.br-search__icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
}

.br-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  outline: none;
}

.br-search__input::placeholder {
  color: color-mix(in srgb, var(--ink) 60%, transparent);
}

.br-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.br-search__kbd {
  flex: 0 0 auto;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--faint);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
}

.br-search:focus-within .br-search__kbd {
  display: none;
}

.br-search__open {
  display: none;
}

.br-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(60vh, 460px);
  padding: 6px;
  overflow-y: auto;
  border-radius: 24px;
  background: var(--glass-menu);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow-pill), 0 18px 50px rgba(0, 0, 0, 0.12);
}

.br-search__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.br-search__row svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.br-search__row:hover,
.br-search__row.is-active {
  background: var(--soft-2);
}

.br-search__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.br-search__text strong {
  overflow: hidden;
  font-weight: 510;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.br-search__text span,
.br-search__none {
  color: var(--muted);
  font-size: 13px;
}

.br-search__none {
  padding: 14px;
}

/* With a meeting open there are five pills: the search steps into the row (as the platform's
   top bar does below 1200 px) rather than sit over them. */
@media (max-width: 1500px) and (min-width: 901px) {
  html[data-app='boardroom'] .topbar:has(.boardroom-chrome.nav .nav__link:nth-child(5)) .topbar__center {
    position: static;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 340px;
    margin: 0 auto;
    transform: none;
  }
}

@media (max-width: 1200px) {
  .boardroom-chrome.nav .nav__link {
    padding: 0 12px;
  }
}

/* The workspace slot: the open meeting. */
.br-ws__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  height: 52px;
  padding: 0 16px 0 18px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

.br-ws__button::-webkit-details-marker {
  display: none;
}

.br-ws__button svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.br-ws__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.br-ws .menu__panel {
  min-width: 280px;
}

.br-ws .menu__list a.is-current {
  font-weight: 560;
}

/* ------------------------------------------------------------------- the app */

/* app.css resets h1–h3 and p; the Boardroom's lists, small headings and quotes start from zero too. */
.br-app :is(h4, ul, ol, dl, dd, blockquote, figure) {
  margin: 0;
}

.br-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

html[data-app='boardroom'] .main {
  padding-bottom: 24px;
}

.br-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1080px;
  margin: 8px auto 40px;
}

.br-page__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}

.br-page__head--row {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.br-page__title {
  font-size: 32px;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}

.br-page__lede {
  max-width: 68ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

.br-page__next {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.br-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
}

.br-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 560;
  line-height: 1.25;
}

.br-card__title svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.br-card__lede {
  max-width: 72ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.br-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.br-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 560;
}

.br-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.br-prose {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.br-prose--empty {
  color: var(--faint);
}

.br-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
  list-style: disc;
}

.br-list--numbered {
  list-style: decimal;
}

.br-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.br-link:hover {
  text-decoration: underline;
}

.br-link svg {
  width: 14px;
  height: 14px;
}

.br-textarea {
  width: 100%;
  min-height: 72px;
  padding: 14px 18px;
  border: 1px solid var(--line-input);
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}

.br-textarea:focus,
.br-select:focus {
  border-color: var(--line-strong);
}

.br-textarea::placeholder {
  color: var(--faint);
}

.br-textarea:disabled {
  opacity: 0.6;
}

.br-select {
  height: 40px;
  padding: 0 34px 0 16px;
  border: 1px solid var(--line-input);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.br-input--sm {
  height: 40px;
  font-size: 14px;
}

.br-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}

.br-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.br-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--soft-1);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}

.br-callout p {
  flex: 1 1 260px;
}

.br-callout--busy {
  justify-content: flex-start;
}

.br-callout--error {
  border-color: color-mix(in srgb, var(--br-bad) 30%, transparent);
  background: color-mix(in srgb, var(--br-bad) 6%, transparent);
}

.br-error,
.br-limitation {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--soft-1);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.br-error {
  color: var(--br-bad);
}

.br-error svg,
.br-limitation svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.br-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
}

.br-disclaimer svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.br-saved {
  min-width: 80px;
  color: var(--faint);
  font-size: 13px;
  text-align: right;
}

.br-spinner {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid var(--soft-3);
  border-top-color: var(--blue);
  border-radius: 999px;
  animation: br-spin 0.9s linear infinite;
}

.br-spinner--sm {
  width: 14px;
  height: 14px;
}

@keyframes br-spin {
  to {
    transform: rotate(360deg);
  }
}

.br-progress {
  --p: 0;
  position: relative;
  display: block;
  width: 100%;
  max-width: 320px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-2);
}

.br-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--blue);
  transform: scaleX(var(--p));
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.br-progress--big {
  max-width: none;
  height: 8px;
}

.br-skel {
  display: block;
  border-radius: 20px;
  background: var(--soft-2);
  animation: br-pulse 1.4s ease-in-out infinite;
}

.br-skel--card {
  height: 170px;
}

@keyframes br-pulse {
  50% {
    opacity: 0.55;
  }
}

/* ---------------------------------------------------------------- the room */

.br-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--br-panel-w);
  gap: 16px;
  height: var(--br-stage-h);
  min-height: 520px;
}

.br-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--br-space);
}

.br-stage.is-list {
  background: var(--bg);
}

.br-stage__scene,
.br-stage__scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.br-scene__canvas {
  display: block;
  touch-action: none;
  outline: none;
}

.br-stage__list {
  position: absolute;
  inset: 0;
  padding: 76px 20px 20px;
  overflow-y: auto;
}

.br-stage__tools {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.br-stage__tools > * {
  pointer-events: auto;
}

.br-stage__view {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow-pill);
}

.br-glass-btn {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow-pill);
}

.br-glass-btn:hover {
  background: var(--glass-hover);
}

.br-glass-btn.is-on {
  background: var(--blue);
  color: #fff;
}

.br-glass-btn svg,
.br-panel .btn svg,
.br-q .btn svg,
.br-card .btn svg,
.br-page .btn svg {
  width: 16px;
  height: 16px;
}

.br-stage__hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  max-width: calc(100% - 28px);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.br-stage__hint:empty {
  display: none;
}

/* Name cards, placed over each person's head. */
.br-cards {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* A name card over a person's head: their photo, their name and (after an analysis) their questions. */
.br-card-tag {
  --x: -999px;
  --y: -999px;
  --z: 0;
  position: absolute;
  left: 0;
  top: 0;
  z-index: var(--z);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 170px;
  height: 30px;
  padding: 0 9px 0 3px;
  border: 0;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-pill), 0 2px 8px rgba(0, 0, 0, 0.08);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(calc(var(--x) - 50%), calc(var(--y) - 100% - 2px));
  transition: background 0.15s var(--ease-std), box-shadow 0.15s var(--ease-std);
}

.br-card-tag:hover,
.br-card-tag:focus-visible {
  background: var(--bg);
  box-shadow: 0 0 0 2px var(--blue), 0 4px 14px rgba(0, 0, 0, 0.12);
  outline: none;
}

.br-card-tag.is-selected {
  background: var(--blue);
  color: #fff;
}

.br-card-tag.is-away {
  opacity: 0.5;
}

.br-card-tag__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.br-card-tag__n {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--soft-3);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.br-card-tag__n.is-high {
  background: var(--blue);
  color: #fff;
}

.br-card-tag.is-selected .br-card-tag__n {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* The side: an executive's dossier or the overview. */
.br-side {
  min-width: 0;
  min-height: 0;
}

.br-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
}

.br-panel--intro {
  gap: 14px;
  padding: 24px;
  overflow-y: auto;
}

.br-panel__head,
.br-panel__tabs {
  flex: 0 0 auto;
}

.br-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 12px 24px;
}

.br-panel__who {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.br-panel__kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.br-panel__name {
  font-size: 24px;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}

.br-panel__title {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.br-panel__prov {
  margin-top: 4px;
}

.br-panel__tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.br-panel__close {
  width: 40px;
  height: 40px;
  background: var(--soft-2);
}

.br-panel__close:hover {
  background: var(--soft-3);
}

.br-panel__close svg {
  width: 18px;
  height: 18px;
}

.br-panel__tabs {
  align-self: flex-start;
  margin: 0 24px 8px;
}

.br-panel__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 8px 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.br-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.br-panel__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* Preparation steps. */
.br-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  list-style: none;
}

.br-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
}

.br-step:last-child {
  border-bottom: 0;
}

.br-step__mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
}

.br-step.is-done .br-step__mark,
.br-run__step.is-done .br-step__mark {
  border-color: var(--br-good);
  background: var(--br-good);
  color: #fff;
}

.br-step__mark svg {
  width: 13px;
  height: 13px;
}

.br-step__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.br-step__text strong {
  font-size: 15px;
  font-weight: 560;
}

.br-step__text span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.br-recent {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.br-recent__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.br-recent__row:hover {
  background: var(--soft-1);
}

.br-recent__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.br-overview-spots {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.br-spot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--soft-1);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
}

.br-spot:hover {
  background: var(--soft-2);
}

.br-spot span {
  color: var(--muted);
}

/* Portraits: the official photo cropped round to the face, or initials. */
.br-portrait {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--soft-2);
  object-fit: cover;
  object-position: 50% 18%;
}

.br-portrait.is-initials {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.br-portrait--xs {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.br-portrait--sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.br-portrait--lg {
  width: 72px;
  height: 72px;
  font-size: 20px;
}

/* In the dossier tab the photo shows whole, as the organisation published it. */
.br-portrait--xl {
  width: 132px;
  height: auto;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.br-field__photo {
  display: flex;
}

.br-panel__id {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.br-panel__photo {
  flex: 0 0 auto;
  margin: 0;
}

.br-turn__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* The 2D list. */
.br-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.br-person {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

.br-person.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.br-person.is-away {
  opacity: 0.55;
}

.br-person__seat {
  padding: 0 4px;
  color: var(--faint);
  font-size: 12px;
}

.br-person__open {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.br-person__open:hover {
  background: var(--soft-1);
}


.br-person__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.br-person__name {
  font-weight: 560;
}

.br-person__title {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.br-person__count {
  flex: 0 0 auto;
}

.br-person__side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}

.br-person__side:empty {
  display: none;
}

.br-person__attend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.br-person__attend input {
  accent-color: var(--blue);
}

.br-person__move {
  display: inline-flex;
  gap: 4px;
}

.br-person__move .icon-btn {
  width: 34px;
  height: 34px;
  background: var(--soft-2);
}

.br-person__move .icon-btn:disabled {
  opacity: 0.35;
}

.br-person__move svg {
  width: 16px;
  height: 16px;
}

.br-person__move .is-up {
  transform: rotate(90deg);
}

.br-person__move .is-down {
  transform: rotate(-90deg);
}

/* ---------------------------------------------------------------- fields */

.br-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
}

.br-legend__label {
  color: var(--muted);
}

.br-prov-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.br-prov {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.br-prov--public {
  background: color-mix(in srgb, var(--br-good) 14%, transparent);
  color: color-mix(in srgb, var(--br-good) 85%, var(--ink));
}

.br-prov--brief {
  background: var(--soft-2);
  color: var(--muted);
}

.br-prov--user {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: color-mix(in srgb, var(--blue) 80%, var(--ink));
}

.br-prov__source {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.br-prov__source:hover {
  color: var(--blue);
}

.br-prov__source svg {
  width: 12px;
  height: 12px;
}

.br-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.br-org__sections .br-field {
  padding: 18px 4px;
}

.br-field__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.br-field__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

.br-field__edit {
  margin-left: auto;
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.br-field__edit svg {
  width: 14px;
  height: 14px;
}

.br-field__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.br-field__hint {
  color: var(--faint);
  font-size: 13px;
  line-height: 1.45;
}

.br-field__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.br-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.br-table th,
.br-table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.br-table th {
  font-weight: 400;
  color: var(--muted);
}

.br-table td {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.br-history-wrap {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.br-history {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0 0;
  list-style: none;
}

.br-history li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}

.br-history__v {
  font-weight: 560;
  font-size: 14px;
}

.br-history li .btn,
.br-history li .badge {
  margin-left: auto;
}

.br-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: var(--soft-1);
}

.br-note__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.br-note__head .br-meta {
  margin-right: auto;
}

.br-note__remove {
  width: 32px;
  height: 32px;
}

.br-note__remove svg {
  width: 16px;
  height: 16px;
}

.br-note-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.br-note-form .br-select {
  align-self: flex-start;
}

/* ------------------------------------------------------------- questions */

.br-q {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg);
}

.br-q--top {
  border-color: color-mix(in srgb, var(--blue) 35%, transparent);
  background: linear-gradient(to bottom, var(--br-hi), transparent 140px), var(--bg);
}

.br-q__kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.br-q__kicker svg {
  width: 15px;
  height: 15px;
}

.br-q__exec {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 560;
  cursor: pointer;
}

.br-q__exec:hover {
  color: var(--blue);
}

.br-q__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.br-q__question {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--line-strong);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
}

.br-q--top .br-q__question {
  border-left-color: var(--blue);
  font-size: 18px;
}

.br-q__block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.br-q__label,
.br-q__text,
.br-q__block p {
  margin: 0;
}

.br-q__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.br-q__aside {
  color: var(--faint);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.br-q__text {
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.br-q__block--prepare {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--soft-1);
}

.br-q__block--answer .br-q__text {
  white-space: pre-line;
}

.br-q__more {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.br-q__more[open] > :not(summary) {
  margin-top: 10px;
}

.br-q__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}

.br-q__toggle::-webkit-details-marker {
  display: none;
}

.br-q__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

details[open] > .br-q__toggle svg {
  transform: rotate(180deg);
}

.br-q__evidence {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.br-q__evidence li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 14px;
  line-height: 1.5;
}

.br-q__quote {
  color: var(--ink);
  font-style: italic;
}

.br-q__note {
  color: var(--muted);
}

.br-q__related {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  list-style: none;
}

.br-q__checks {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.45;
}

.br-q__checks svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.br-q__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.br-slide-ref {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}

.br-slide-ref:hover {
  background: var(--soft-2);
}

.br-slide-ref.is-static {
  border-style: dashed;
  color: var(--muted);
  cursor: default;
}

.br-slide-ref.is-static:hover {
  background: transparent;
}

.br-priority {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}

.br-priority--high {
  background: color-mix(in srgb, var(--br-bad) 14%, transparent);
  color: color-mix(in srgb, var(--br-bad) 85%, var(--ink));
}

.br-priority--medium {
  background: color-mix(in srgb, var(--br-warn) 16%, transparent);
  color: color-mix(in srgb, var(--br-warn) 80%, var(--ink));
}

.br-priority--low {
  background: var(--soft-2);
  color: var(--muted);
}

.br-scores {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.br-scores__row {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.br-scores__row dt {
  color: var(--muted);
}

.br-scores__row dd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.br-scores__bar {
  --v: 0;
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-2);
}

.br-scores__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--ink) 60%, transparent);
  transform: scaleX(var(--v));
  transform-origin: left;
}

.br-scores__n {
  min-width: 28px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.br-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.br-mark {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s var(--ease-std), color 0.15s var(--ease-std), border-color 0.15s;
}

.br-mark:hover {
  background: var(--soft-2);
  color: var(--ink);
}

.br-mark.is-on {
  border-color: transparent;
  color: #fff;
}

.br-mark--new.is-on {
  background: var(--blue);
}

.br-mark--anticipated.is-on {
  background: color-mix(in srgb, var(--ink) 55%, transparent);
}

.br-mark--prepare.is-on {
  background: var(--br-warn);
}

.br-mark--weak.is-on {
  background: var(--br-bad);
}

.br-hypothesis {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: var(--soft-1);
}

.br-hypothesis__note {
  color: var(--faint);
  font-size: 13px;
}

.br-reactions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.br-reaction .br-q__label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--faint);
}

.br-reaction--good .br-q__label::before {
  background: var(--br-good);
}

.br-reaction--unclear .br-q__label::before {
  background: var(--br-warn);
}

.br-reaction--bad .br-q__label::before {
  background: var(--br-bad);
}

/* -------------------------------------------------------------- meetings */

.br-meetings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.br-meeting {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.24s var(--ease), border-color 0.2s var(--ease), box-shadow 0.24s var(--ease);
}

@media (hover: hover) {
  .br-meeting:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-tile);
  }
}

.br-meeting__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.br-meeting__delete {
  width: 36px;
  height: 36px;
  color: var(--muted);
}

.br-meeting__delete:hover {
  background: var(--soft-2);
  color: var(--danger);
}

.br-meeting__delete svg {
  width: 17px;
  height: 17px;
}

.br-meeting__name {
  font-size: 19px;
  font-weight: 560;
  line-height: 1.25;
  text-wrap: balance;
}

.br-meeting__steps {
  display: flex;
  gap: 5px;
}

.br-meeting__dot {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: var(--soft-3);
}

.br-meeting__dot.is-on {
  background: var(--br-good);
}

.br-meeting__status {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  font-size: 14px;
}

.br-empty {
  padding: 48px 0;
}

/* ----------------------------------------------------------------- brief */

.br-brief__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.br-brief__field.is-wide {
  grid-column: span 3;
}

.br-brief__grid .br-brief__field:nth-child(n + 4).is-wide {
  grid-column: auto;
}

@media (min-width: 900px) {
  .br-brief__grid .br-brief__field.is-wide {
    grid-column: span 1;
  }

  .br-brief__grid .br-brief__field:last-child {
    grid-column: span 3;
  }
}

.br-audience {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4px 16px;
}

.br-audience__row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 8px 6px;
  border-radius: 12px;
  cursor: pointer;
}

.br-audience__row:hover {
  background: var(--soft-1);
}

.br-audience__row input {
  grid-row: span 2;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.br-audience__name {
  font-weight: 500;
}

.br-audience__row .badge {
  justify-self: start;
  grid-column: 2;
  margin-top: 4px;
}

.br-baseline__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  transition: opacity 0.2s;
}

.br-baseline__fields.is-off {
  opacity: 0.45;
}

/* ------------------------------------------------------------------ deck */

.br-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 24px;
  background: var(--soft-1);
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.br-drop.is-compact {
  flex-direction: row;
  justify-content: flex-start;
  gap: 16px;
  padding: 16px 20px;
  text-align: left;
}

.br-drop.is-compact .br-drop__copy {
  flex: 1 1 auto;
}

.br-drop.is-compact .br-drop__title {
  font-size: 15px;
}

.br-drop__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.br-drop.is-over {
  border-color: var(--blue);
  background: var(--br-hi);
}

.br-drop__icon {
  width: 30px;
  height: 30px;
  color: var(--muted);
}

.br-drop__title {
  font-size: 17px;
  font-weight: 560;
}

.br-analyse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
}

.br-analyse > p {
  grid-column: 1 / -1;
}

.br-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.br-thumb {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: zoom-in;
}

.br-thumb__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft-1);
}

.br-thumb__canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.br-thumb:hover .br-thumb__img {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-tile);
}

.br-thumb__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}

.br-thumb__n {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.br-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--br-warn) 15%, transparent);
  color: color-mix(in srgb, var(--br-warn) 85%, var(--ink));
  font-size: 11px;
  font-weight: 560;
  white-space: nowrap;
}

.br-flag svg {
  width: 12px;
  height: 12px;
}

.br-flag--soft {
  background: var(--soft-2);
  color: var(--muted);
}

.br-slide-big {
  display: grid;
  place-items: center;
  min-height: 300px;
}

.br-slide-big__canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-tile);
}

/* -------------------------------------------------------------- analysis */

.br-progress-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.br-run {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  list-style: none;
}

.br-run__step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--faint);
  font-size: 15px;
}

.br-run__step.is-now {
  color: var(--ink);
  font-weight: 500;
}

.br-run__step.is-done {
  color: var(--muted);
}

.br-run__step.is-now .br-step__mark {
  border-color: var(--blue);
  border-top-color: transparent;
  animation: br-spin 0.9s linear infinite;
}

.br-spots__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.br-spot-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft-1);
}

.br-spot-card.is-high {
  border-color: color-mix(in srgb, var(--br-bad) 25%, transparent);
}

.br-spot-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.br-spot-card__title {
  font-size: 16px;
  font-weight: 560;
  line-height: 1.35;
}

.br-spot-card__why {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.br-spot-card__qs .br-list {
  margin-top: 8px;
  font-size: 14px;
}

.br-measures__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.br-measure {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: var(--soft-1);
}

.br-measure__n {
  font-size: 28px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.br-measure__label {
  font-size: 14px;
  font-weight: 560;
}

.br-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.br-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.br-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}

.br-review__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.br-review__item.is-wide {
  grid-column: 1 / -1;
}

.br-review__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.br-details > summary {
  font-size: 18px;
  color: var(--ink);
}

.br-reading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.br-reading__slide {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}

.br-reading__slide p {
  flex: 1 0 100%;
}

.br-reading__slide.is-unreadable {
  background: color-mix(in srgb, var(--br-warn) 6%, transparent);
}

/* ------------------------------------------------------------- rehearsal */

.br-app.is-rehearse .br-rehearse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--br-panel-w);
  gap: 16px;
  height: var(--br-stage-h);
  min-height: 520px;
}

.br-rehearse > .br-page,
.br-rehearse > p {
  grid-column: 1 / -1;
}

.br-app.is-rehearse .br-rehearse:has(> .br-page) {
  display: block;
  height: auto;
}

.br-slidebar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.br-slidebar .icon-btn {
  width: 40px;
  height: 40px;
}

.br-slidebar .icon-btn:disabled {
  opacity: 0.4;
}

.br-slidebar .icon-btn svg {
  width: 18px;
  height: 18px;
}

.br-slidebar__n {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.br-slidebar:empty {
  display: none;
}

.br-dialogue {
  gap: 14px;
  padding: 20px;
  overflow-y: auto;
}

.br-dialogue__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.br-turn {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.br-turn.is-live {
  border-color: color-mix(in srgb, var(--blue) 30%, transparent);
}

.br-turn__who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.br-turn__answer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--soft-1);
}

.br-turn__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.br-assess {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.br-assess__verdict {
  font-size: 16px;
  font-weight: 600;
}

.br-assess.is-strong .br-assess__verdict {
  color: var(--br-good);
}

.br-assess.is-partial .br-assess__verdict {
  color: var(--br-warn);
}

.br-assess.is-weak .br-assess__verdict {
  color: var(--br-bad);
}

.br-assess__criteria {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.br-assess__criteria li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 10px;
  align-items: baseline;
  font-size: 14px;
}

.br-assess__criteria li .br-meta {
  grid-column: 2;
}

.br-assess__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--faint);
}

.br-assess__criteria .is-yes .br-assess__dot {
  background: var(--br-good);
}

.br-assess__criteria .is-partly .br-assess__dot {
  background: var(--br-warn);
}

.br-assess__criteria .is-no .br-assess__dot {
  background: var(--br-bad);
}

.br-assess__resolved {
  font-size: 14px;
  font-weight: 500;
}

.br-followup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--br-hi);
  font-size: 14px;
  line-height: 1.5;
}

.br-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.br-pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.br-pick__row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.br-pick__row:hover {
  background: var(--soft-1);
}

.br-pick__row input {
  margin-top: 3px;
  accent-color: var(--blue);
}

.br-pick__row.is-asked {
  color: var(--muted);
}

.br-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
}

.br-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.br-mode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.24s var(--ease), border-color 0.2s, box-shadow 0.24s var(--ease);
}

.br-mode:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-tile);
}

.br-mode svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.br-mode strong {
  font-size: 18px;
  font-weight: 560;
}

.br-mode span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.br-report {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.br-report__gaps {
  border-color: color-mix(in srgb, var(--blue) 30%, transparent);
  background: linear-gradient(to bottom, var(--br-hi), transparent 160px), var(--bg);
}

.br-report__gaps .br-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.br-report__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.br-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ----------------------------------------------------------- new meeting */

.br-setup {
  max-width: 860px;
}

.br-stepper {
  display: flex;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.br-stepper__step button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 6px;
  border: 0;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.br-stepper__n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
}

.br-stepper__n svg {
  width: 14px;
  height: 14px;
}

.br-stepper__step.is-current button {
  background: var(--blue);
  color: #fff;
}

.br-stepper__step.is-current .br-stepper__n {
  color: var(--blue);
}

.br-stepper__step.is-done .br-stepper__n {
  background: var(--br-good);
  color: #fff;
}

.br-setup__card {
  gap: 16px;
  padding: 28px;
}

.br-setup__q {
  font-size: 22px;
  font-weight: 560;
  line-height: 1.25;
}

.br-setup__hint {
  margin-top: -8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.br-setup__context {
  min-height: 240px;
  font-size: 16px;
}

.br-setup__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.br-setup__nav .btn svg {
  width: 16px;
  height: 16px;
}

.br-setup__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.br-setup__row .br-setup__hint {
  margin-top: 6px;
}

.br-setup__drop {
  padding: 56px 24px;
}

.br-pickpeople {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 10px;
}

.br-pickperson {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.br-pickperson:hover {
  background: var(--soft-1);
}

.br-pickperson.is-on {
  border-color: var(--blue);
  background: var(--br-hi);
}

.br-pickperson input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.br-pickperson:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.br-pickperson__name {
  font-size: 14px;
  font-weight: 560;
  line-height: 1.3;
}

.br-pickperson__title {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.br-pickperson__tick {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  color: transparent;
}

.br-pickperson.is-on .br-pickperson__tick {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.br-pickperson__tick svg {
  width: 12px;
  height: 12px;
}

/* ------------------------------------------------------------ the intro */

.br-intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.br-intro__steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.br-intro__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.br-intro__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--br-hi);
  color: var(--blue);
}

.br-intro__icon svg {
  width: 20px;
  height: 20px;
}

.br-intro__words {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15px;
  line-height: 1.45;
}

.br-intro__words span {
  color: var(--muted);
}

.br-intro__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--soft-1);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.br-intro__note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
}

/* ---------------------------------------------------------------- phones */

@media (max-width: 1100px) {
  :root {
    --br-panel-w: 380px;
  }

  .br-brief__grid,
  .br-baseline__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .br-brief__grid .br-brief__field:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 1280px) {
  .br-ws__label,
  .br-ws__chev {
    display: none;
  }

  .br-ws__button {
    width: 52px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .br-room,
  .br-app.is-rehearse .br-rehearse {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .br-stage {
    height: min(68dvh, 560px);
    min-height: 380px;
  }

  .br-panel {
    height: auto;
    max-height: none;
  }

  .br-panel__body {
    overflow: visible;
  }

  .br-review,
  .br-report__grid,
  .br-measures__grid,
  .br-modes,
  .br-brief__grid,
  .br-baseline__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .br-brief__grid .br-brief__field:last-child,
  .br-brief__field.is-wide {
    grid-column: auto;
  }

  .br-page__head--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .br-page__title {
    font-size: 26px;
  }

  .br-analyse {
    grid-template-columns: minmax(0, 1fr);
  }

  .br-ws__label {
    display: none;
  }

  .br-ws__button {
    width: 52px;
    padding: 0;
    justify-content: center;
  }

  .br-ws__chev {
    display: none;
  }
}

@media (max-width: 760px) {
  .br-search {
    width: 52px;
    padding: 0;
    background: transparent;
  }

  .br-search:not(.is-expanded) > :not(.br-search__open) {
    display: none;
  }

  .br-search:not(.is-expanded) > .br-search__open {
    display: inline-flex;
  }

  .br-search.is-expanded {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: var(--z-menu);
    width: auto;
    padding: 0 8px 0 18px;
    background: var(--glass);
    box-shadow: var(--shadow-pill);
  }

  .br-search.is-expanded .br-search__open,
  .br-search.is-expanded .br-search__kbd {
    display: none;
  }

  .boardroom-chrome.nav {
    display: none;
  }

  .br-stage__tools .btn {
    padding: 0 12px;
  }

  .br-stage__hint {
    display: none;
  }

  .br-card {
    padding: 18px;
  }

  .br-scores__row {
    grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  }

  .br-pickpeople {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .br-stepper__step button {
    padding-right: 12px;
    font-size: 13px;
  }

  .br-card-tag__name {
    display: none;
  }

  .br-card-tag {
    padding-right: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .br-spinner,
  .br-skel,
  .br-run__step.is-now .br-step__mark {
    animation: none;
  }

  .br-meeting:hover,
  .br-mode:hover {
    transform: none;
  }
}
