.lq-narrow {
  max-width: 680px;
}

.lq-eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  font-size: 0.8rem;
}
.lq-lead {
  font-size: 1.15rem;
  color: #48566f;
  max-width: 760px;
}
.lq-muted,
.lq-help {
  color: #64748b;
}
.lq-grid {
  display: grid;
  gap: 1rem;
}
.lq-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lq-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lq-btn-secondary {
  background: #eaf1ff;
  color: #183b77;
}

.lq-code {
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: #0f2d5c;
}

.lq-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}
.lq-option-grid label {
  display: flex;
  flex-wrap: wrap;

  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 0.8rem;
}
.lq-question-box {
  font-size: 1.25rem;
  line-height: 1.5;
}
.lq-leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.lq-leaderboard li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
}

.lq-play-card h1 {
  font-size: clamp(1.8rem, 4vw, 3.75rem);
  line-height: 1.1;
}

.lq-answer-grid button:nth-child(2) {
  background: var(--lq-answer-green, #15803d);
}
.lq-answer-grid button:nth-child(3) {
  background: var(--lq-answer-orange, #c2410c);
}
.lq-answer-grid button:nth-child(4) {
  background: var(--lq-answer-purple, #9333ea);
}
.lq-answer-grid button:disabled {
  filter: grayscale(0.65);
  opacity: 0.75;
}

.app-navbar .nav-primary-links .nav-link,
.app-navbar .nav-primary-links .nav-tutors-cta {
  font-size: 0.88rem;
  white-space: nowrap;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}
.app-navbar .nav-primary-links {
  gap: 0.18rem;
  flex-wrap: nowrap;
}
.app-navbar .nav-actions .btn {
  font-size: 0.82rem;
  white-space: nowrap;
}
@media (max-width: 991px) {
  .lq-two,
  .lq-three,
  .lq-option-grid,
  .lq-play {
    grid-template-columns: 1fr;
  }
  
  .lq-play-card {
    min-height: auto;
  }
  .lq-answer-grid {
    grid-template-columns: 1fr;
  }
  .lq-play-header {
    flex-direction: column;
  }
  .lq-shell {
    padding: 1rem;
  }
}
@media (min-width: 992px) {
  .app-navbar .nav-shell {
    max-width: 1320px;
  }
  .app-navbar .brand-text {
    font-size: 0.98rem;
  }
}
.lq-workspace-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.lq-workspace-header h1 {
  margin: 0.15rem 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}
.lq-workspace-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}
.lq-summary-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.lq-summary-card span {
  color: #64748b;
  font-size: 0.88rem;
}
.lq-summary-card strong {
  font-size: 1.35rem;
}

.lq-section-heading span {
  min-width: 2rem;
  text-align: center;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  padding: 0.2rem 0.55rem;
  font-weight: 800;
}
.lq-empty {
  margin: 0.9rem 0 0;
  color: #64748b;
}
.lq-library-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.lq-library-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem;
}
.lq-library-row p,
.lq-library-row small {
  margin: 0.3rem 0 0;
  color: #64748b;
}
.lq-row-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.lq-status {
  font-size: 0.75rem;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  color: #334155;
}

/* Phase 4: draft editor and preview */

.lq-btn-ghost {
  background: transparent;
  border: 1px solid var(--lq-border, #d7dce5);
  color: inherit;
}
.lq-span-two {
  grid-column: 1/-1;
}
.lq-alert-error {
  border-color: #b42318;
}
.lq-question-editor-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 1rem;
}
.lq-question-editor {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--lq-border, #d7dce5);
  border-radius: 14px;
}
.lq-question-order input {
  width: 70px;
}
.lq-question-body textarea {
  width: 100%;
}
.lq-publish-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lq-preview-prompt {
  font-size: 1.25rem;
  font-weight: 650;
}
.lq-preview-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.lq-choice-preview {
  padding: 1rem;
  border: 1px solid var(--lq-border, #d7dce5);
  border-radius: 12px;
  background: var(--lq-surface, #fff);
  text-align: left;
}

.lq-template-list {
  margin-top: 1.25rem;
  border-top: 1px solid var(--lq-border, #d8dee8);
  padding-top: 1rem;
}
.lq-template-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--lq-border, #d8dee8);
}
.lq-template-row span {
  display: flex;
  flex-direction: column;
}
.lq-template-row small {
  color: #667085;
}
.lq-bulk-select {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.lq-inline-form {

  margin: 0;

  display: inline-flex;
  margin-right: 0.75rem;
}
.lq-btn-danger {

  background: #b42318;
  color: #fff;
  border: 1px solid #b42318;
}

.lq-autosave-status {
  font-size: 0.82rem;
  color: var(--lq-muted, #5f6368);
  margin: 0.25rem 0 0.75rem;
}
.lq-autosave-status.is-error {
  color: #b42318;
  font-weight: 600;
}
.lq-version-list {
  display: grid;
  gap: 0.5rem;
}
.lq-template-row button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Phase 4: four-step creation wizard and authoritative Test Bank browser */
.lq-wizard-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.lq-wizard-header .lq-alert {
  max-width: 360px;
}
.lq-wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.lq-wizard-steps button {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #526176;
  padding: 0.75rem;
  border-radius: 14px;
  font-weight: 700;
}
.lq-wizard-steps button span {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #eef2f7;
  margin-right: 0.35rem;
}
.lq-wizard-steps button.is-active {
  border-color: #2563eb;
  color: #174ea6;
}
.lq-wizard-steps button.is-active span {
  background: #2563eb;
  color: #fff;
}
.lq-wizard-panel {
  display: none;
}
.lq-wizard-panel.is-active {
  display: block;
}
.lq-source-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  padding: 1rem;
  border-radius: 16px;
  margin-bottom: 1rem;
}
.lq-source-card span {
  color: #475569;
}
.lq-advanced {
  margin-top: 1rem;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 1rem;
}
.lq-advanced summary {
  font-weight: 800;
  cursor: pointer;
}
.lq-review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}
.lq-review-grid article {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.lq-review-grid span {
  font-size: 0.82rem;
  color: #64748b;
}

.lq-wizard-actions #wizardSubmit {
  display: flex;
  gap: 0.75rem;
}
.lq-wizard-actions #wizardSubmit[hidden] {
  display: none;
}

.lq-roster {
  display: grid;
  gap: 0.65rem;
}
.lq-roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--lq-border, #d8dee8);
  border-radius: 0.75rem;
}
.lq-roster-row small {
  display: block;
  margin-top: 0.2rem;
}
.lq-btn-small {
  padding: 0.45rem 0.7rem;
  font-size: 0.875rem;
}

/* Phase 7 gameplay polish */

.lq-feedback {
  margin-top: 1rem;
  font-size: 1.05rem;

  min-height: 2.5rem;
  font-weight: 600;
}

.lq-answer-grid button:not(:disabled):active {
  transform: scale(0.98);
}
.lq-reduce-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.lq-report-metrics span {
  display: block;
  color: var(--lq-muted, #5f6b7a);
}

@media (max-width: 760px) {
  .lq-wizard-header {
    flex-direction: column;
  }
  .lq-wizard-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .lq-review-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lq-wizard-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .lq-wizard-actions button,
  .lq-wizard-actions #wizardSubmit {
    width: 100%;
  }
  .lq-wizard-actions #wizardSubmit {
    flex-direction: column;
  }

  .lq-report-hero {
    display: block;
  }
  .lq-report-hero .lq-btn {
    margin-top: 1rem;
  }
  .lq-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phase 9 organization competition governance */
.lqt-organization-workspace .lqt-grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.lqt-organization-workspace .lqt-grid-form label {
  display: grid;
  gap: 0.4rem;
}
.lqt-organization-workspace .lqt-span-2 {
  grid-column: 1/-1;
}
.lqt-audit-list {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.25rem;
}
.lqt-audit-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 0.5fr) 1fr auto;
  gap: 1rem;
  align-items: start;
}
.lqt-audit-list time {
  white-space: nowrap;
  color: var(--bs-secondary-color);
}
@media (max-width: 720px) {
  .lq-question-editor {
    grid-template-columns: 1fr;
  }
  .lq-preview-choices {
    grid-template-columns: 1fr;
  }
  .lq-publish-card {
    align-items: stretch;
    flex-direction: column;
  }
  .lq-span-two {
    grid-column: auto;
  }

  .lqt-organization-workspace .lqt-grid-form {
    grid-template-columns: 1fr;
  }
  .lqt-organization-workspace .lqt-span-2 {
    grid-column: auto;
  }
  .lqt-audit-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Phase 10 localization and accessibility foundation */

.lq-shell :focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
.lq-form input,
.lq-form select,
.lq-form textarea,
.lq-btn {
  min-height: 44px;
}

.lq-card table {
  width: 100%;
}
@media (max-width: 480px) {
  .lq-actions {
    align-items: stretch;
  }
  .lq-actions .lq-btn {
    width: 100%;
    text-align: center;
  }
}

/* Phase 12 operations and release readiness */

.lq-metric-grid .lq-card {
  display: grid;
  gap: 0.35rem;
}
.lq-metric-grid strong {
  font-size: 1.5rem;
}
.lq-muted {
  color: #596579;
}
.lq-alert {
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid currentColor;
  border-radius: 0.75rem;
}

@media (max-width: 420px) {
  .lq-metric-grid {
    grid-template-columns: 1fr;
  }
}

.lq-presenter .lq-question-box {
  font-size: clamp(1.4rem, 3vw, 3rem);
  min-height: 45vh;
}
.lq-presenter .lq-leaderboard {
  font-size: clamp(1.1rem, 2vw, 2rem);
}

.lq-workspace-filters {
  display: grid;
  grid-template-columns: minmax(14rem, 2fr) repeat(3, minmax(9rem, 1fr)) auto;
  gap: 0.8rem;
  align-items: end;
  margin-bottom: 0.75rem;
}
.lq-workspace-filters label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.85rem;
}
.lq-workspace-filters input,
.lq-workspace-filters select {
  min-height: 2.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #fff;
  color: inherit;
}
.lq-workspace-result-count {
  margin: 0.35rem 0 1rem;
}
.lq-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.lq-pagination span {
  font-weight: 700;
}
@media (max-width: 1000px) {
  .lq-workspace-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lq-workspace-filters .lq-actions {
    grid-column: 1/-1;
  }
}
@media (max-width: 620px) {
  .lq-workspace-filters {
    grid-template-columns: 1fr;
  }
  .lq-workspace-filters .lq-actions {
    grid-column: auto;
  }
  .lq-pagination {
    justify-content: space-between;
  }
}

.lq-chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lq-chip {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.12);
}

.lq-settings-form .lq-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.lq-bulk-update-form {
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.lq-bulk-update-form select,
.lq-bulk-update-form input {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}
@media (max-width: 700px) {
  .lq-template-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .lq-template-row .lq-btn {
    width: 100%;
  }

  .lq-bulk-update-form {
    display: grid;
    width: 100%;
  }
  .lq-bulk-update-form > * {
    width: 100%;
  }
}

.lq-qr {
  width: 160px;
  height: 160px;
  background: #fff;
  border: 1px solid var(--lq-border, #d1d5db);
  border-radius: 0.75rem;
  padding: 0.5rem;
}
.lq-diagnostics {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--lq-border, #d1d5db);
  border-radius: 0.75rem;
}

.lq-diagnostics-list [data-status="ok"] {
  font-weight: 600;
}
.lq-diagnostics-list [data-status="warn"] {
  font-weight: 600;
}
.lq-diagnostics-list [data-status="error"] {
  font-weight: 700;
}

.lq-inline-review {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lq-inline-review input {
  min-width: 14rem;
  flex: 1;
}
@media (max-width: 640px) {
  .lq-roster-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .lq-roster-row .lq-actions {
    width: 100%;
  }
  .lq-roster-row .lq-btn {
    flex: 1;
  }

  .lq-play-header {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .lq-play-preferences {
    width: 100%;
  }
  .lq-answer-grid {
    grid-template-columns: 1fr;
  }
  .lq-play-card h1 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .lq-page-header {
    display: grid;
  }
  .lq-status-pill {
    justify-self: start;
  }
  .lq-metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lq-podium ol {
    grid-template-columns: 1fr;
  }
  .lq-podium li,
  .lq-podium li[data-rank="1"] {
    min-height: auto;
  }
}

/* MASTER_QuizTournamentUIPrompt — Phase 1 design-system consolidation */
:root {
  --lq-font:
    Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  --lq-bg: #f5f7fb;
  --lq-surface: #fff;
  --lq-surface-subtle: #f8fafc;
  --lq-text: #172033;
  --lq-muted: #667085;
  --lq-border: #dfe5ee;
  --lq-primary: #2563eb;
  --lq-primary-hover: #1d4ed8;
  --lq-danger: #b42318;
  --lq-focus: #0ea5e9;
  --lq-on-accent: #fff;
  --lq-answer-blue: #2563eb;
  --lq-answer-green: #15803d;
  --lq-answer-orange: #c2410c;
  --lq-answer-purple: #9333ea;
  --lq-radius-sm: 10px;
  --lq-radius-md: 16px;
  --lq-radius-lg: 22px;
  --lq-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --lq-shadow-md: 0 12px 30px rgba(16, 24, 40, 0.08);
  --lq-space-1: 0.25rem;
  --lq-space-2: 0.5rem;
  --lq-space-3: 0.75rem;
  --lq-space-4: 1rem;
  --lq-space-5: 1.25rem;
  --lq-space-6: 1.5rem;
  --lq-space-8: 2rem;
  --lq-control: 44px;
  --lq-content: 1180px;
}
.lq-shell,
.lq-play {
  font-family: var(--lq-font);
}
.lq-shell {

  margin: 0 auto;
  padding: 2rem 1rem 4rem;

  overflow-wrap: anywhere;

  max-width: var(--lq-content);
  background: var(--lq-bg);
  color: var(--lq-text);
}
.lq-card {
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.12);

  margin-bottom: 1rem;

  border-color: var(--lq-border);
  border-radius: var(--lq-radius-md);
  box-shadow: var(--lq-shadow-sm);
  padding: var(--lq-space-6);
}
.lq-card:hover {
  box-shadow: var(--lq-shadow-md);
}
.lq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;

  font-weight: 800;
  text-decoration: none;
  cursor: pointer;

  min-height: var(--lq-control);
  border-radius: var(--lq-radius-sm);
  padding: 0.7rem 1rem;
  transition:
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}
.lq-btn:hover {
  transform: translateY(-1px);
}
.lq-btn:focus-visible,
.lq-form input:focus-visible,
.lq-form select:focus-visible,
.lq-form textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--lq-focus) 35%, transparent);
  outline-offset: 2px;
}
.lq-btn-primary {

  color: #fff;

  background: var(--lq-primary);
}
.lq-btn-primary:hover {
  background: var(--lq-primary-hover);
}
.lq-actions {
  display: flex;

  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;

  justify-content: flex-start;
}
.lq-form label {

  flex-wrap: wrap;

  flex-direction: column;

  font-weight: 700;
  color: #1e293b;

  display: grid;
  gap: 0.375rem;

  align-items: stretch;
  justify-content: flex-start;
}
.lq-form input,
.lq-form select,
.lq-form textarea {
  border: 1px solid #cbd5e1;

  padding: 0.75rem 0.85rem;
  min-height: 44px;

  width: 100%;
  border-color: var(--lq-border);
  border-radius: var(--lq-radius-sm);
  background: var(--lq-surface);
}
.lq-section-heading {

  display: flex;

  justify-content: space-between;
  gap: 1rem;

  align-items: flex-start;
}
.lq-section-heading h2 {
  margin: 0;

  font-size: 1.125rem;
}
.lq-skip-link {

  inset-inline-start: 1rem;

  border: 2px solid currentColor;

  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 9999;
  background: #fff;
  color: #111827;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--lq-shadow-md);
}
.lq-skip-link:focus {

  top: 1rem;
}

/* Quiz Tournament site context: keep an explicit route back to the platform home. */
.lq-site-context {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  min-height: 40px;
  color: var(--lq-muted);
  font-size: 0.9rem;
}
.lq-site-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 0.55rem;
  margin-left: -0.55rem;
  border-radius: 8px;
  color: var(--lq-text);
  font-weight: 750;
  text-decoration: none;
}
.lq-site-home:hover,
.lq-site-home:focus-visible {
  background: var(--lq-surface-subtle);
  color: var(--lq-primary);
}
.lq-site-home svg,
.lq-module-home svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.lq-site-context-divider {
  color: var(--lq-muted, #667085);
}
.lq-site-context-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Phase 3 public entry */
.lq-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: var(--lq-space-5);
  align-items: stretch;
}
.lq-entry-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  background: linear-gradient(140deg, #0f2d5c 0%, #174ea6 58%, #2563eb 100%);
  color: #fff;
  border: 0;
  overflow: hidden;
  position: relative;
}
.lq-entry-hero:after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  right: -70px;
  bottom: -90px;
  background: rgba(255, 255, 255, 0.1);
}
.lq-entry-hero .lq-eyebrow,
.lq-entry-hero .lq-lead {
  color: var(--lq-on-accent, #fff);
}
.lq-shell .lq-entry-hero h1 {
  color: var(--lq-on-accent, #fff);
}
.lq-entry-hero h1 {
  max-width: 760px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.02;
  margin: 0.4rem 0 1rem;
}
.lq-entry-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lq-entry-panel .lq-code-input {
  font-size: 1.45rem;
  letter-spacing: 0.16em;
  text-align: center;
  font-weight: 800;
}
.lq-proof-grid {
  margin-top: var(--lq-space-5);
}
.lq-proof-grid .lq-card {
  margin: 0;
  box-shadow: none;
}
.lq-proof-grid h2 {
  font-size: 1.05rem;
  margin-top: 0;
}

/* Phase 5 participant join */
.lq-join-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--lq-space-5);
  align-items: start;
}
.lq-join-primary {
  position: relative;
}
.lq-join-primary h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin: 0.25rem 0 0.5rem;
}
.lq-join-fields {
  display: grid;
  gap: var(--lq-space-4);
}
.lq-join-fields input[name="JoinCode"] {
  font-size: 1.45rem;
  letter-spacing: 0.16em;
  text-align: center;
  font-weight: 800;
}
.lq-progressive-details {
  margin-top: var(--lq-space-4);
  border: 1px solid var(--lq-border);
  border-radius: var(--lq-radius-md);
  background: var(--lq-surface-subtle);
}
.lq-progressive-details summary {
  cursor: pointer;
  padding: 1rem;
  font-weight: 800;
  list-style-position: inside;
}
.lq-progressive-details[open] summary {
  border-bottom: 1px solid var(--lq-border);
}
.lq-progressive-details-body {
  padding: 1rem;
  display: grid;
  gap: var(--lq-space-4);
}
.lq-troubleshoot {
  position: sticky;
  top: 1rem;
}
.lq-troubleshoot .lq-diagnostics {
  margin: 0;
}
.lq-diagnostics-list {
  display: grid;
  gap: 0.5rem;

  padding-left: 1.15rem;
}
.lq-submit-wide {
  width: 100%;
  margin-top: var(--lq-space-4);
}

/* Phase 6 state-driven host console */
.lq-host-commandbar {
  position: sticky;
  top: 0.5rem;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}
.lq-host-identity {
  min-width: 0;
}
.lq-host-identity h1 {
  font-size: 1.25rem;
  margin: 0.15rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lq-host-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lq-host-code .lq-code {
  font-size: 1.35rem;
}
.lq-host-primary-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.lq-host-primary-actions [hidden] {
  display: none !important;
}
.lq-menu {
  position: relative;
}
.lq-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--lq-control);
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--lq-border);
  border-radius: var(--lq-radius-sm);
  font-weight: 800;
  cursor: pointer;
  background: #fff;
  list-style: none;
}
.lq-menu summary::-webkit-details-marker {
  display: none;
}
.lq-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 240px;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--lq-border);
  border-radius: var(--lq-radius-md);
  box-shadow: var(--lq-shadow-md);
  display: grid;
  gap: 0.35rem;
  z-index: 30;
}
.lq-menu-panel .lq-btn,
.lq-menu-panel a {
  width: 100%;
  justify-content: flex-start;
}
.lq-host-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
}
.lq-stage-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.lq-stage-card [data-lq-question] {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--lq-surface-subtle);
  border-radius: var(--lq-radius-md);
  padding: 2rem;
}
.lq-lobby-panel {
  margin-top: 1rem;

  min-height: 320px;
}
.lq-host-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.lq-host-secondary > .lq-card {
  margin: 0;
}
.lq-share-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lq-share-compact .lq-qr {
  width: 92px;
  height: 92px;
}
[data-livequiz-host][data-runtime-status="Lobby"] [data-lq-pause],
[data-livequiz-host][data-runtime-status="Lobby"] [data-lq-resume],
[data-livequiz-host][data-runtime-status="Lobby"] [data-lq-next],
[data-livequiz-host][data-runtime-status="Lobby"] [data-lq-answer-lock] {
  display: none;
}
[data-livequiz-host][data-runtime-status="Active"] [data-lq-start],
[data-livequiz-host][data-runtime-status="Active"] [data-lq-resume] {
  display: none;
}
[data-livequiz-host][data-runtime-status="Paused"] [data-lq-start],
[data-livequiz-host][data-runtime-status="Paused"] [data-lq-pause] {
  display: none;
}
[data-livequiz-host][data-runtime-status="Ended"]
  .lq-host-primary-actions
  button {
  display: none;
}

/* MASTER_QuizTournamentUIPrompt — Phase 2 navigation and Phase 4 authoring */
.lq-module-nav {
  position: sticky;
  top: 0.5rem;
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 1rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--lq-border);
  border-radius: var(--lq-radius-md);
  box-shadow: var(--lq-shadow-sm);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: thin;
}
.lq-module-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  color: var(--lq-muted);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.lq-module-nav a:hover {
  background: var(--lq-surface-subtle);
  color: var(--lq-text);
}
.lq-module-nav .lq-module-home {
  gap: 0.4rem;
  margin-right: 0.25rem;
  padding-right: 0.9rem;
  border-right: 1px solid var(--lq-border);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  color: var(--lq-text);
}
.lq-module-nav a.is-active {
  background: #eaf1ff;
  color: #174ea6;
}
.lq-authoring-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: 1rem;
  align-items: start;
}
.lq-authoring-form {
  min-width: 0;
}
.lq-authoring-preview {
  position: sticky;
  top: 4.5rem;
  display: grid;
  gap: 1rem;
  margin: 0;
}
.lq-authoring-preview h2 {
  margin: 0;
  font-size: 1.4rem;
}
.lq-preview-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #157347;
}
.lq-status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(21, 115, 71, 0.12);
}
.lq-preview-question {
  max-width: 900px;
  margin-inline: auto;

  min-height: 150px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid var(--lq-border);
  border-radius: var(--lq-radius-md);
  background: linear-gradient(145deg, #f8fbff, #eef4ff);
}
.lq-preview-question span {
  font-size: 3rem;
  font-weight: 850;
  line-height: 1;
}
.lq-preview-question small {
  margin-top: 0.4rem;
  color: var(--lq-muted);
  font-weight: 700;
}
.lq-preview-facts {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}
.lq-preview-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--lq-border);
  padding-bottom: 0.55rem;
}
.lq-preview-facts dt {
  color: var(--lq-muted);
}
.lq-preview-facts dd {
  margin: 0;
  font-weight: 750;
  text-align: right;
}
.lq-readiness-meter {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}
.lq-readiness-meter progress {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}
.lq-readiness-meter progress::-webkit-progress-bar {
  background: #e5e7eb;
}
.lq-readiness-meter progress::-webkit-progress-value {
  background: var(--lq-primary);
}
.lq-readiness-meter progress::-moz-progress-bar {
  background: var(--lq-primary);
}
.lq-wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;

  position: sticky;
  bottom: 0.5rem;
  z-index: 12;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--lq-border);
  border-radius: var(--lq-radius-md);
  box-shadow: var(--lq-shadow-md);
  backdrop-filter: blur(12px);
}

/* MASTER_QuizTournamentUIPrompt — Phases 7–19 consolidated completion */
.lq-play {
  min-height: 100vh;

  display: grid;

  color: #10213d;

  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  grid-template-rows: auto 6px 1fr;
  gap: 1rem;
  background:
    radial-gradient(circle at 10% 0, #dbeafe 0, transparent 34%),
    linear-gradient(160deg, #eff6ff, #fff 58%);
  padding: max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}
.lq-play-header {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  justify-content: space-between;
  gap: 1rem;
  background: #0f2d5c;
  color: #fff;

  border-radius: var(--lq-radius-md);
  box-shadow: var(--lq-shadow-md);
  padding: 0.75rem 1rem;
}
.lq-play-identity {
  display: grid;
  gap: 0.15rem;
}
.lq-play-identity span {
  font-size: 0.82rem;
  color: #dbeafe;
}
.lq-live-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}
.lq-live-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16);
}
.lq-play-preferences {

  align-items: center;

  display: flex;
  gap: 0.35rem;
}
.lq-play-preferences button {
  font: inherit;

  cursor: pointer;

  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.45rem 0.65rem;
  font-weight: 700;
}
.lq-play-progress {
  grid-column: 1/-1;
  height: 6px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
}
.lq-play-progress progress {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}
.lq-play-progress progress::-webkit-progress-bar {
  background: #dbeafe;
}
.lq-play-progress progress::-webkit-progress-value {
  background: var(--lq-primary);
}
.lq-play-progress progress::-moz-progress-bar {
  background: var(--lq-primary);
}
.lq-play-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  flex-direction: column;
  justify-content: center;

  min-height: calc(100vh - 170px);
  margin: 0;
  box-shadow: var(--lq-shadow-md);
}
.lq-question-stage {
  width: min(100%, 900px);
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 180px;
}
.lq-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;

  width: min(100%, 920px);
}
.lq-answer-grid button {

  border: 0;

  background: var(--lq-answer-blue, #2563eb);
  color: var(--lq-on-accent, #fff);
  font-size: 1.15rem;
  font-weight: 800;

  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);

  position: relative;
  overflow: hidden;
  min-height: 108px;
  border-radius: 18px;
  text-align: left;
  padding: 1rem 1.2rem 1rem 3.5rem;
  transition:
    transform 0.14s ease,
    filter 0.14s ease,
    box-shadow 0.14s ease;
}
.lq-answer-grid button:before {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}
.lq-answer-grid button:nth-child(1):before {
  content: "▲";
}
.lq-answer-grid button:nth-child(2):before {
  content: "◆";
}
.lq-answer-grid button:nth-child(3):before {
  content: "●";
}
.lq-answer-grid button:nth-child(4):before {
  content: "■";
}
.lq-answer-grid button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 32px rgba(15, 35, 80, 0.2);
}
.lq-answer-grid button:focus-visible {
  outline: 4px solid #fff;
  outline-offset: -7px;
}
.lq-feedback:not(:empty) {
  width: min(100%, 920px);
  border-radius: 14px;
  background: #f0fdf4;
  color: #166534;
  padding: 1rem;
  text-align: center;
  animation: lqFeedbackIn 0.25s ease;
}
.lq-player-standing {
  margin: 0;
  overflow: auto;
}
.lq-player-standing .lq-section-heading span {
  font-size: 1rem;
}
.lq-player-standing li:first-child {
  border-color: #f59e0b;
  background: #fffbeb;
}
.lq-player-standing li.is-me {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  background: #eff6ff;
}
@keyframes lqFeedbackIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lq-waiting-shell {
  min-height: 75vh;
  display: grid;
  place-items: center;
}
.lq-waiting-card {

  text-align: center;
  width: min(100%, 620px);
  padding: clamp(1.5rem, 5vw, 3.5rem);
}
.lq-waiting-orbit {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.25rem;
}
.lq-waiting-orbit span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lq-primary);
  transform-origin: 42px 42px;
  animation: lqOrbit 1.4s linear infinite;
}
.lq-waiting-orbit span:nth-child(2) {
  animation-delay: -0.46s;
}
.lq-waiting-orbit span:nth-child(3) {
  animation-delay: -0.92s;
}
@keyframes lqOrbit {
  from {
    transform: rotate(0) translateX(32px);
  }
  to {
    transform: rotate(360deg) translateX(32px);
  }
}
.lq-waiting-context {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--lq-surface-subtle);
}
.lq-presenter {

  max-width: none;
  min-height: 100vh;
  background: #071a33;
  color: #fff;
}
.lq-presenter-header {

  gap: 2rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f2d5c;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
.lq-presenter-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.4fr);
  gap: 1rem;
}
.lq-presenter-stage .lq-card {
  margin: 0;
}
.lq-presenter-question {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
}
.lq-presenter-question .lq-question-box {
  flex: 1;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 4rem);
}
.lq-report-hero {

  position: sticky;
  top: 4.6rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.lq-report-tabs {
  position: sticky;
  top: 12rem;
  z-index: 9;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  margin: 0 0 1rem;
  padding: 0.35rem;
  border: 1px solid var(--lq-border);
  border-radius: var(--lq-radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--lq-shadow-sm);
  backdrop-filter: blur(12px);
}
.lq-report-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--lq-muted);
  padding: 0.55rem 0.85rem;
  font-weight: 800;
  cursor: pointer;
}
.lq-report-tabs button.is-active {
  background: #eaf1ff;
  color: #174ea6;
}
.lq-report-metrics {

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.lq-report-metrics .lq-card {
  margin: 0;
}
.lq-report-metrics strong {

  display: block;
  margin-top: 0.35rem;
  font-size: 1.55rem;
}
.lq-table-wrap {

  max-height: 580px;
  overflow: auto;
  border: 1px solid var(--lq-border);
  border-radius: 12px;
}
.lq-table-wrap table {

  width: 100%;
  border-collapse: collapse;
}
.lq-table-wrap th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
}
.lq-table-wrap th,
.lq-table-wrap td {

  vertical-align: top;

  padding: 0.75rem;
  border-bottom: 1px solid var(--lq-border);
  text-align: left;
}
.lq-table-wrap tbody tr:hover {
  background: #f8fbff;
}
.lq-podium ol {

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.lq-podium li {

  min-height: 7rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--lq-border, #d8dee8);

  display: grid;
  place-items: center;
  gap: 0.4rem;
  border-radius: 18px;
  background: #eff6ff;
  padding: 1.25rem;
}
.lq-podium li[data-rank="1"] {

  min-height: 170px;
  order: 2;
  background: #fffbeb;
  border: 1px solid #f59e0b;
}
.lq-podium li[data-rank="2"] {
  min-height: 135px;
  order: 1;
}
.lq-podium li[data-rank="3"] {
  min-height: 110px;
  order: 3;
}
.lq-settings-form {

  max-width: 760px;
  display: grid;
  gap: 1rem;
}
.lq-settings-form label {

  display: grid;
  gap: 0.4rem;
}
.lq-settings-form select {
  min-height: 44px;
  border: 1px solid var(--lq-border);
  border-radius: 10px;
  padding: 0.65rem;
}
.lq-metric-grid {

  margin-bottom: 1rem;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.lq-page {
  max-width: var(--lq-content);
  margin: auto;
  padding: 2rem 1rem 4rem;
}
.lq-page-header {

  margin-bottom: 1rem;

  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.lq-status-pill {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;

  border: 1px solid currentColor;

  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 0.4rem 0.7rem;
  font-weight: 800;
}
@media (max-width: 900px) {
  .lq-workspace-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lq-workspace-header,
  .lq-library-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .lq-entry-grid,
  .lq-join-layout,
  .lq-host-overview,
  .lq-host-secondary {
    grid-template-columns: 1fr;
  }
  .lq-troubleshoot {
    position: static;
  }
  .lq-host-commandbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }
  .lq-host-primary-actions {
    width: 100%;
  }
  .lq-host-primary-actions > .lq-btn {
    flex: 1;
  }
  .lq-menu {
    margin-left: auto;
  }
  .lq-entry-hero {
    min-height: 300px;
  }

  .lq-authoring-layout {
    grid-template-columns: 1fr;
  }
  .lq-authoring-preview {
    position: static;
    order: -1;
  }
  .lq-module-nav {
    top: 0;
    border-radius: 0;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .lq-wizard-actions {
    bottom: 0;
  }

  .lq-play {
    grid-template-columns: 1fr;
    grid-template-rows: auto 6px auto auto;
  }
  .lq-play-card {
    min-height: auto;
  }
  .lq-player-standing {
    max-height: 300px;
  }
  .lq-presenter-stage {
    grid-template-columns: 1fr;
  }
  .lq-report-hero {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }
  .lq-report-tabs {
    top: 0;
  }
  .lq-report-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lq-play * {
    animation: none !important;
    transition: none !important;
  }

  .lq-shell *,
  .lq-shell *::before,
  .lq-shell *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .lq-btn {
    transition: none;
  }
  .lq-btn:hover {
    transform: none;
  }

  .lq-waiting-orbit span,
  .lq-feedback:not(:empty) {
    animation: none;
  }
  .lq-answer-grid button {
    transition: none;
  }
}

/* MASTER UI completion verification pass — runtime resilience and secondary surfaces */
.lq-runtime-message {
  min-height: 1.35rem;
  margin: 0.65rem 0 0;
  color: var(--lq-muted);
  font-weight: 650;
}
.lq-runtime-message.is-error {
  color: #b42318;
}
.lq-runtime-message.is-busy {
  color: #174ea6;
}
.lq-empty-state {
  grid-column: 1/-1;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 220px;
  text-align: center;
  border-style: dashed;
  background: var(--lq-surface-subtle);
}
.lq-empty-state > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eaf1ff;
  color: #174ea6;
  font-size: 1.4rem;
}
.lq-answer-grid button.is-selected {
  outline: 4px solid rgba(255, 255, 255, 0.9);
  outline-offset: -8px;
  filter: brightness(0.95);
}
.lq-answer-grid button.is-submitting {
  cursor: progress;
  opacity: 0.78;
}
.lq-feedback.is-correct {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}
.lq-feedback.is-incorrect {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
}
.lq-feedback.is-error {
  background: #fef2f2;
  color: #b42318;
  border: 1px solid #fca5a5;
}
.lq-play[aria-busy="true"] .lq-answer-grid {
  opacity: 0.72;
}
.lq-presenter [data-lq-runtime-message] {
  color: #dbeafe;
  text-align: center;
}
.lq-waiting-card [data-lq-runtime-message] {
  text-align: center;
}
@media (max-width: 560px) {
  .lq-workspace-summary {
    grid-template-columns: 1fr;
  }
  .lq-library-row .lq-actions,
  .lq-library-row .lq-btn {
    width: 100%;
  }

  .lq-card {
    padding: 1rem;
  }
  .lq-entry-hero h1 {
    font-size: 2.15rem;
  }
  .lq-host-primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .lq-host-primary-actions > .lq-btn {
    width: 100%;
  }
  .lq-menu {
    margin: 0;
  }
  .lq-menu summary {
    width: 100%;
  }
  .lq-menu-panel {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    top: auto;
  }
  .lq-share-compact {
    align-items: flex-start;
  }
  .lq-proof-grid {
    grid-template-columns: 1fr;
  }

  .lq-module-nav a {
    min-height: 44px;
  }
  .lq-authoring-preview {
    display: none;
  }
  .lq-wizard-steps {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .lq-wizard-steps button {
    min-width: 130px;
  }
  .lq-wizard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .lq-wizard-actions #wizardSubmit {
    grid-column: 1/-1;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .lq-wizard-actions #wizardSubmit[hidden] {
    display: none !important;
  }

  .lq-play {
    padding: 0.5rem;
  }
  .lq-play-header {
    align-items: flex-start;
  }
  .lq-live-state {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .lq-play-preferences {
    margin-left: auto;
  }
  .lq-play-preferences button {
    font-size: 0;
    width: 42px;
  }
  .lq-play-preferences button:first-child:after {
    content: "🔊";
    font-size: 1rem;
  }
  .lq-play-preferences button:last-child:after {
    content: "◌";
    font-size: 1rem;
  }
  .lq-play-card {
    padding: 0.75rem;
  }
  .lq-question-stage {
    min-height: 130px;
  }
  .lq-play-card h1 {
    font-size: clamp(1.55rem, 8vw, 2.4rem);
  }
  .lq-answer-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0.75rem;
  }
  .lq-answer-grid button {
    min-height: 72px;
    border-radius: 14px;
  }
  .lq-report-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .lq-podium ol {
    grid-template-columns: 1fr;
  }
  .lq-podium li {
    min-height: auto !important;
    order: initial !important;
  }
  .lq-page-header {
    flex-direction: column;
  }

  .lq-empty-state {
    min-height: 180px;
  }
  .lq-runtime-message {
    font-size: 0.9rem;
  }
}
@media (forced-colors: active) {
  .lq-btn,
  .lq-card,
  input,
  select,
  textarea {
    border: 1px solid CanvasText;
  }

  .lq-live-dot,
  .lq-status-dot {
    forced-color-adjust: none;
    background: CanvasText;
  }
  .lq-answer-grid button {
    border: 2px solid ButtonText;
  }

  .lq-empty-state,
  .lq-feedback.is-correct,
  .lq-feedback.is-incorrect,
  .lq-feedback.is-error {
    border: 1px solid CanvasText;
  }
  .lq-answer-grid button.is-selected {
    outline: 3px solid Highlight;
  }
}

.lq-container-narrow {
  max-width: 760px;
}
.lq-container-wide {
  max-width: 1180px;
}
.lq-container-admin {
  max-width: 1100px;
}

/* Learner-paced assignment delivery uses the canonical Live Quiz visual system. */
.lq-assignment-settings,
.lq-assignment-summary,
.lq-assignment-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}
.lq-assignment-summary,
.lq-assignment-context {
  margin-block: 1rem;
  padding: 1rem 1.25rem;
}
.lq-assignment-context {
  background: var(--lq-surface, #fff);
  border: 1px solid var(--lq-border, #d9dee8);
  border-radius: 0.9rem;
}
.lq-assignment-play .lq-live-dot {
  animation: none;
}
.lq-assignment-play .lq-player-standing {
  display: none;
}
.lq-assignment-play .lq-play-card {
  max-width: 920px;
  margin-inline: auto;
}
[data-lq-assignment-fields][hidden],
[data-lq-live-only][hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  .lq-assignment-summary,
  .lq-assignment-context {
    align-items: flex-start;
    flex-direction: column;
  }
}
