/* Practice mode: the strip across a practice business's screens. Plum with stripes,
   unlike any record colour (canary quotes, pink invoices, carbon blue), so it can't be
   mistaken for the real business. The app has no dark theme; these read on both. */

:root {
  --practice: #5b2a86;
  --practice-dark: #44196a;
  --practice-ink: #ffffff;
  --practice-line: rgb(255 255 255 / 0.6);
  --practice-hover: rgb(255 255 255 / 0.16);
}

.practice-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 8px 22px;
  background: repeating-linear-gradient(-45deg, var(--practice) 0 16px, var(--practice-dark) 16px 32px);
  color: var(--practice-ink);
}

.practice-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.practice-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.practice-banner-form {
  display: flex;
  margin: 0;
}

.practice-banner-actions .btn {
  border-color: var(--practice-line);
  background: transparent;
  color: var(--practice-ink);
}

.practice-banner-actions .btn:hover {
  background: var(--practice-hover);
  text-decoration: none;
}

.practice-banner .btn:focus-visible {
  outline-color: var(--practice-ink);
}

/* The dialog is inside the banner but shows over the page, in the usual colours. */
.practice-banner .modal {
  color: var(--ink);
}

.practice-dialog-foot form {
  display: flex;
  margin: 0;
}

/* The end of the tour: "You're done" above the question. */
.practice-finish-done {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ok-wash);
  color: var(--ok);
  font-weight: 600;
}

.practice-finish-dialog h3 {
  margin: 0;
  font-size: 17px;
}

@media (max-width: 640px) {
  .practice-banner {
    padding: 8px 16px;
  }

  .practice-banner-actions {
    width: 100%;
  }

  .practice-banner-actions > * {
    flex: 1 1 auto;
  }

  .practice-banner-form .btn {
    width: 100%;
  }
}

@media print {
  .practice-banner {
    display: none !important;
  }
}
