/* Staff area. Form vocabulary follows EmpireVault's UI conventions. */
.staff {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
  margin: 0;
  color: #261b23;
  background: #fff;
}

.staff-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #ddd;
}

.staff-header h1 {
  margin: 0;
  font-size: 1.25rem;
}

.staff-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.staff-user form {
  margin: 0;
}

.staff-main {
  max-width: 32rem;
  padding: 1.5rem;
}

.staff-notice {
  color: #1a5c2e;
}

.staff-button {
  padding: 0.5rem 1rem;
  border: 1px solid #261b23;
  border-radius: 4px;
  background: #261b23;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.form-input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #888;
  border-radius: 4px;
  font: inherit;
}

.form-actions {
  margin-top: 1.5rem;
}

.form-errors {
  padding: 0.75rem;
  border: 1px solid #d30001;
  border-radius: 4px;
  color: #d30001;
}

@media (prefers-color-scheme: dark) {
  .staff { color: #e0e0e0; background: #101010; }
  .staff-header { border-bottom-color: #2c2c2c; }
  .staff-button { border-color: #e0e0e0; background: #e0e0e0; color: #101010; }
  .form-input { border-color: #666; background: #1b1b1b; color: inherit; }
  .form-errors { border-color: #ff6161; color: #ff6161; }
  .staff-notice { color: #7fd69a; }
}

/* Read by a screen reader, not shown. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lot-countdown {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* "Connection lost": words, a border and a background, not colour alone. */
.live-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid #7a4b00;
  background: #fff4d6;
  color: #3d2600;
  font-weight: 700;
}

.live-notice[hidden] {
  display: none;
}

/* How the operator's colours look together (settings page). */
.brand-sample {
  max-width: 24rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #ddd;
  border-bottom: 4px solid var(--brand-accent);
  color: var(--brand-text);
  background: var(--brand-background);
}

.brand-sample-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: var(--brand-accent-text);
  background: var(--brand-accent);
  font-weight: 600;
}

/* Said on every page of a demonstration operator. Black on yellow: fixed, so
   no operator's colours can make it faint. */
.demonstration-line {
  margin: 0;
  padding: 0.4rem 1rem;
  color: #000;
  background: #ffd84d;
  font-weight: 700;
  text-align: center;
}
