/* Contrast and user-preference guarantees shared by the public site and workroom. */
.hero h1 em,
.feature-board article > span {
  color: #b73e2c;
}

.proof-strip strong {
  color: #ffd0c7;
}

.cta .kicker {
  color: #4a1710;
}

body[data-theme="day"] .room b {
  color: #ffe5df;
}

body[data-theme="day"] .view-head .micro {
  color: var(--cobalt);
}

body[data-theme="day"] .view-head > div > p:not(.micro),
body[data-theme="day"] .muted,
body[data-theme="day"] .metric span,
body[data-theme="day"] .workflow-list small,
body[data-theme="day"] .download-card p,
body[data-theme="day"] .badge {
  color: #50627a;
}

body[data-theme="day"] .badge.warn {
  color: #744300;
}

body[data-theme="night"] {
  --rail: #6f2d26;
}

body[data-theme="night"] .app-header .quiet,
body[data-theme="night"] .passage-actions .quiet,
body[data-theme="night"] .download-card .quiet {
  color: #edf1f8;
  border-color: #71809c;
}

body[data-theme="night"] .room b {
  color: #ffd8d0;
}

body[data-theme="night"] .badge {
  color: #17233a;
  background: #d8e1f0;
}

body[data-theme="night"] .badge.good {
  background: #bfe7d6;
}

body[data-theme="night"] .badge.warn {
  background: #ffe0a6;
}

body[data-theme="night"] .badge.bad {
  background: #ffc8cb;
}

.sheet,
.sheet-grid,
.workflow-list li > span {
  min-width: 0;
}

.mono,
.source-stamp code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.passage-tools {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(145px, 1fr)) auto;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: var(--panel);
}

body[data-theme="day"] .passage-tools label > span {
  font-size: 0.72rem;
  color: #50627a;
}

.passage-filter-actions {
  display: flex;
  gap: 0.45rem;
}

.result-count {
  margin: 0 0 0.7rem;
  color: var(--app-muted);
  font-size: 0.82rem;
}

body[data-theme="day"] .result-count {
  color: #50627a;
}

@media (max-width: 1150px) and (min-width: 761px) {
  #workspace {
    padding-bottom: 220px;
  }

  .listening-rack {
    pointer-events: none;
  }

  .listening-rack button,
  .listening-rack .file-button,
  .listening-rack audio,
  .listening-rack video,
  .listening-rack input {
    pointer-events: auto;
  }
}

@media (max-width: 1500px) {
  .passage-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .passage-tools {
    grid-template-columns: 1fr;
  }

  .passage-filter-actions button {
    flex: 1;
  }

  .listening-rack #media-empty {
    display: block;
  }

  .listening-rack #media-empty p,
  .listening-rack #media-empty small,
  .listening-rack .save-state {
    display: none;
  }

  .listening-rack .file-button {
    margin-top: 0.65rem;
  }
}

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

@media (forced-colors: active) {
  button,
  .button,
  input,
  select,
  textarea,
  summary,
  .sheet,
  .segment,
  .passage-card,
  .download-card {
    border: 1px solid ButtonText;
  }

  .segment.selected,
  .room.active {
    outline: 3px solid Highlight;
    outline-offset: -3px;
  }

  .swatch,
  .topic-dot,
  .rack-head i {
    forced-color-adjust: none;
  }
}
