/* Shared typography and accessibility; approved dark/staff themes stay intact. */
body.bv-role-ui,
body.bv-role-ui .profile-face,
body.bv-role-ui [data-bv-browser-auth] .bv-auth-code {
  font-family: var(--bv-font);
  font-synthesis: none;
}
body.bv-role-ui [data-bv-browser-auth] .bv-auth-code {
  font-variant-numeric: tabular-nums;
}
body.bv-role-ui :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--mint, #b5d6bd);
  outline-offset: 3px;
}
body.bv-role-ui [data-bv-browser-auth] :is(a, button, input):focus-visible {
  outline-color: var(--bv-action);
}
body.bv-role-ui :is(.login, [data-bv-browser-auth]) {
  overflow-wrap: anywhere;
}
body.bv-role-ui [data-bv-browser-auth] .bv-auth-button {
  min-height: 48px;
}
/* Minimum readable metadata. These are labels, not role-card geometry. */
body.bv-role-ui :is(
  .test-banner span, .hero .eyebrow, .section-head small, .badge,
  .timer-line small, .task-timing, .inline-note small, .footnote,
  .metric > span, .row-text small, .two-col small, .item-line small,
  .blockers p, .bottom-nav button span, .role-options small,
  .photo-placeholder, .board-filters > button > span,
  .house-tile > .tile-status, .house-tile > small, .board-shortcut small,
  .room-facts small, .evidence-thumb span, .photo-cell figcaption,
  .shift-strip small, .forecast-lines small, .forecast-item .metrics small,
  .staff-badge, .staff-measured, .staff-warning, .staff-card-note,
  .shift-strip, .shift-strip strong, .shift-strip button, .subactions button,
  .link-button, .row-right
) { font-size: var(--bv-size-meta); }
body.bv-role-ui .app-shell:not(.staff-visual) .wordmark b,
body.bv-role-ui .login .wordmark b { font-size: var(--bv-size-meta); }
@media (max-width: 650px) {
  body.bv-role-ui :is(.shift-strip, .shift-strip strong, .shift-strip button,
    .subactions button, .link-button, .test-action, .header-person, .row-right) {
    font-size: var(--bv-size-meta);
  }
  /* Repeated card-title links keep their approved geometry. The primary
     card action and thumbnail already provide separate large targets. */
  body.bv-role-ui :is(.btn, .icon-button, .location-select, .link-button, .wordmark,
    .staff-shift-info, .staff-break, .shift-strip button, .subactions button,
    .bottom-nav button, .test-action) { min-height: 48px; }
  body.bv-role-ui :is(.app-header > .icon-button) { min-width: 48px; }
  body.bv-role-ui .staff-visual .staff-dashboard :is(.btn, .link-button) { min-height: 48px; }
  body.bv-role-ui :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),
    select, textarea) { font-size: var(--bv-size-input); }
}
@media (max-width: 370px) {
  body.bv-role-ui .staff-tub-metrics > span { font-size: var(--bv-size-meta); }
}
#bv-startup {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: var(--bg, #0b1510);
  color: var(--text, #e3ecdf);
  font: 16px/1.5 var(--bv-font);
}
#bv-startup h1 { font-size: 24px; margin: 0; }
#bv-startup-status { margin: 0; }
#bv-startup-retry {
  min-height: 48px;
  padding: 12px;
  background: var(--mint, #c1d9c2);
  color: var(--bg, #163324);
  border: 0;
  border-radius: var(--bv-radius);
  font: inherit;
}
.bv-install :is(.bv-page-main, .bv-page-header) { max-width: 720px; }
.bv-install-intro { margin: 0 0 24px; }
.bv-install section {
  margin: 16px 0;
  padding: 20px;
  background: var(--bv-surface);
  border: 1px solid var(--bv-line);
  border-radius: var(--bv-radius);
}
.bv-install section h2 { margin: 0 0 12px; }
.bv-install section p + p { margin-top: 12px; }
.bv-install ol { padding-left: 24px; }
.bv-install li { margin: 12px 0; }
.bv-install .note { color: var(--bv-muted); font-size: 14px; }
.bv-install-actions { display: grid; gap: 12px; margin-top: 24px; }
.bv-install [data-install-status]:empty { display: none; }
@media (max-width: 430px) {
  .bv-install section { padding: 16px; }
}
