:root {
  color-scheme: dark;
  --dqm-bg: #000;
  --dqm-cyan: #8defff;
  --dqm-purple: #b062ff;
  --dqm-white: #fff;
  --dqm-text: rgba(255, 255, 255, 0.82);
  --dqm-muted: rgba(255, 255, 255, 0.56);
  --dqm-faint: rgba(255, 255, 255, 0.1);
  --dqm-panel: rgba(5, 7, 10, 0.9);
  --dqm-danger: #ff7d98;
  --dqm-success: #91f4c8;
  --dqm-radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  scroll-behavior: smooth;
  background: var(--dqm-bg);
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(141, 239, 255, 0.09), transparent 31rem),
    radial-gradient(circle at 92% 16%, rgba(176, 98, 255, 0.1), transparent 34rem),
    linear-gradient(180deg, #000 0%, #020204 100%);
  color: var(--dqm-text);
  font-family: Archivo, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[contenteditable="true"]:focus-visible {
  outline: 2px solid var(--dqm-white);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.dqm-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: calc(var(--inflict-header-offset, 90px) + 24px);
  padding-bottom: 90px;
}

.dqm-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dqm-utility-bar {
  display: flex;
  min-height: 48px;
  margin-bottom: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dqm-utility-bar__title {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dqm-utility-bar__controls {
  display: flex;
  align-items: center;
}

.dqm-utility-bar__controls {
  justify-content: flex-end;
  gap: 8px;
}

.dqm-account-control {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  color: var(--dqm-muted);
  font-size: 0.76rem;
}

.dqm-account-control__trigger {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 5px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--dqm-cyan);
  cursor: pointer;
}

.dqm-account-control__trigger:disabled {
  cursor: wait;
  opacity: 0.72;
}

.dqm-account-control__avatar {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(141, 239, 255, 0.78);
  border-radius: 7px;
  background: radial-gradient(circle at 35% 25%, rgba(141, 239, 255, 0.15), rgba(0, 0, 0, 0.6) 65%);
  color: var(--dqm-cyan);
  font-weight: 820;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.dqm-account-control.is-active .dqm-account-control__avatar {
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: var(--dqm-cyan);
  color: #000;
}

.dqm-account-control__avatar-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.dqm-account-control__trigger:hover .dqm-account-control__avatar,
.dqm-account-control__trigger:focus-visible .dqm-account-control__avatar,
.dqm-account-control.is-menu-open .dqm-account-control__avatar {
  border-color: #c8f7ff;
  box-shadow: 0 0 15px rgba(141, 239, 255, 0.48);
}

.dqm-account-control__avatar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.dqm-account-control__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 4px;
  display: grid;
  width: min(260px, calc(100vw - 24px));
  padding: 14px;
  gap: 9px;
  border: 1px solid rgba(141, 239, 255, 0.34);
  border-radius: 10px;
  background: #050608;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(141, 239, 255, 0.08);
  color: var(--dqm-text);
}

.dqm-account-control__menu-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dqm-account-control__menu-action {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: #0a0d11;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 720;
  text-align: left;
}

.dqm-account-control__menu-action:hover,
.dqm-account-control__menu-action:focus-visible {
  border-color: rgba(141, 239, 255, 0.7);
}

.dqm-account-control__menu-action.is-primary {
  border-color: var(--dqm-cyan);
  background: var(--dqm-cyan);
  color: #000;
}

.dqm-account-control__identity {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.dqm-account-control__name {
  max-width: 225px;
  overflow: hidden;
  color: var(--dqm-white);
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dqm-account-control__email {
  max-width: 225px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dqm-hero {
  position: relative;
  display: grid;
  padding: clamp(22px, 3.2vw, 38px);
  overflow: hidden;
  grid-template-columns: minmax(0, 1.15fr) minmax(430px, 0.85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  border: 1px solid rgba(141, 239, 255, 0.24);
  border-radius: var(--dqm-radius);
  background:
    linear-gradient(135deg, rgba(141, 239, 255, 0.07), transparent 48%),
    var(--dqm-panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.dqm-hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dqm-purple));
  box-shadow: 0 0 18px rgba(176, 98, 255, 0.8);
  content: "";
}

.dqm-hero__copy {
  max-width: 650px;
}

.dqm-hero__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dqm-intro-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(141, 239, 255, 0.26);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--dqm-cyan);
  cursor: pointer;
}

.dqm-intro-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.dqm-intro-toggle.is-collapsed svg {
  transform: rotate(180deg);
}

.dqm-intro-toggle:hover {
  border-color: var(--dqm-white);
  color: var(--dqm-white);
}

.dqm-eyebrow,
.dqm-kicker,
.dqm-summary span,
.dqm-field-label,
.dqm-metric span,
.dqm-table th,
.dqm-progress__label {
  margin: 0;
  color: rgba(141, 239, 255, 0.74);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.dqm-hero h1 {
  max-width: 650px;
  margin: 7px 0 4px;
  color: var(--dqm-white);
  font-size: clamp(2rem, 4.3vw, 3.8rem);
  font-weight: 830;
  letter-spacing: -0.057em;
  line-height: 0.96;
}

.dqm-lede {
  max-width: 650px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.93rem, 1.5vw, 1.05rem);
  line-height: 1.55;
}

.dqm-hero__status {
  display: inline-flex;
  min-height: 34px;
  margin-top: 26px;
  padding: 7px 11px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--dqm-muted);
  font-size: 0.76rem;
}

.dqm-status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dqm-cyan);
  box-shadow: 0 0 12px rgba(141, 239, 255, 0.75);
}

.dqm-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.dqm-summary article {
  min-height: 0;
  padding: 13px 15px;
  border: 1px solid var(--dqm-faint);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.34);
}

.dqm-summary h2 {
  margin: 5px 0 2px;
  color: var(--dqm-white);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.dqm-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  line-height: 1.45;
}

.dqm-page--player .dqm-hero {
  padding-top: clamp(26px, 4vw, 42px);
  padding-bottom: clamp(26px, 4vw, 42px);
}

.dqm-page--player .dqm-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.8rem);
}

.dqm-page--player .dqm-lede {
  max-width: 760px;
  margin-top: 18px;
  font-size: 1rem;
}

.dqm-page--player .dqm-summary {
  display: none;
}

.dqm-workspace {
  min-width: 0;
  min-height: 340px;
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--dqm-faint);
}

.dqm-loading {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--dqm-muted);
}

.dqm-loading p {
  margin: 0;
}

.dqm-loading__mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(141, 239, 255, 0.2);
  border-top-color: var(--dqm-cyan);
  border-radius: 50%;
  animation: dqm-spin 850ms linear infinite;
}

@keyframes dqm-spin {
  to { transform: rotate(360deg); }
}

.dqm-view {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

[data-app-view],
.dqm-view > *,
.dqm-product-nav,
.dqm-campaign-main,
.dqm-panel {
  min-width: 0;
}

.dqm-view-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.dqm-view-header h2,
.dqm-panel h2,
.dqm-question-card h3,
.dqm-player-card h2 {
  color: var(--dqm-white);
}

.dqm-view-header h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 790;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.dqm-view-header p:last-child {
  max-width: 690px;
  margin: 9px 0 0;
  color: var(--dqm-muted);
}

.dqm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.dqm-button,
.dqm-icon-button,
.dqm-tool-button {
  border: 1px solid rgba(141, 239, 255, 0.34);
  background: rgba(0, 0, 0, 0.4);
  color: var(--dqm-white);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.dqm-button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 720;
  text-decoration: none;
  scroll-margin-top: calc(var(--inflict-header-offset, 90px) + 18px);
  scroll-margin-bottom: 64px;
}

.dqm-button:hover,
.dqm-icon-button:hover,
.dqm-tool-button:hover {
  border-color: var(--dqm-white);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.dqm-button--primary {
  border-color: var(--dqm-cyan);
  background: var(--dqm-cyan);
  color: #000;
}

.dqm-button--primary:hover {
  background: var(--dqm-white);
  color: #000;
}

.dqm-button--danger {
  border-color: rgba(255, 125, 152, 0.5);
  color: var(--dqm-danger);
}

.dqm-button--small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.72rem;
}

.dqm-button[disabled],
.dqm-icon-button[disabled],
.dqm-tool-button[disabled] {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.dqm-panel,
.dqm-question-card,
.dqm-player-card,
.dqm-empty,
.dqm-login-card {
  border: 1px solid var(--dqm-faint);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(141, 239, 255, 0.025), transparent 46%),
    rgba(5, 7, 10, 0.82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
}

.dqm-panel {
  padding: clamp(22px, 4vw, 34px);
}

.dqm-panel h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}

.dqm-panel > p {
  max-width: 760px;
  margin-top: 0;
  color: var(--dqm-muted);
}

.dqm-login-card,
.dqm-empty {
  display: grid;
  min-height: 280px;
  padding: clamp(28px, 6vw, 58px);
  place-items: start;
  align-content: center;
}

.dqm-login-card__mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(141, 239, 255, 0.3);
  border-radius: 14px;
  background: rgba(141, 239, 255, 0.06);
  color: var(--dqm-cyan);
  font-size: 1.55rem;
}

.dqm-login-card h2,
.dqm-empty h3 {
  margin: 0;
  color: var(--dqm-white);
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  letter-spacing: -0.04em;
}

.dqm-login-card p,
.dqm-empty p {
  max-width: 690px;
  margin: 12px 0 24px;
  color: var(--dqm-muted);
}

.dqm-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.dqm-join-card form,
.dqm-campaign-share form,
.dqm-reassignment-form {
  display: grid;
  width: min(520px, 100%);
  gap: 12px;
}

.dqm-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dqm-questionnaire {
  position: relative;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--dqm-faint);
  border-radius: 13px;
  background: rgba(5, 7, 10, 0.78);
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.dqm-questionnaire::after {
  position: absolute;
  right: -22px;
  bottom: -45px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(176, 98, 255, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(176, 98, 255, 0.08);
  content: "";
}

.dqm-questionnaire:hover {
  border-color: rgba(141, 239, 255, 0.38);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

.dqm-questionnaire__button {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dqm-questionnaire__button:focus-visible {
  border-radius: 10px;
  outline-offset: -5px;
}

.dqm-questionnaire h3 {
  margin: 16px 0 8px;
  color: var(--dqm-white);
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.dqm-questionnaire p {
  margin: 0;
  color: var(--dqm-muted);
  font-size: 0.84rem;
}

.dqm-chip-row,
.dqm-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dqm-chip {
  display: inline-flex;
  min-height: 25px;
  padding: 4px 8px;
  align-items: center;
  border: 1px solid rgba(141, 239, 255, 0.2);
  border-radius: 999px;
  background: rgba(141, 239, 255, 0.04);
  color: rgba(141, 239, 255, 0.82);
  font-size: 0.66rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dqm-chip--purple {
  border-color: rgba(176, 98, 255, 0.28);
  background: rgba(176, 98, 255, 0.05);
  color: #d7afff;
}

.dqm-chip--danger {
  border-color: rgba(255, 125, 152, 0.3);
  background: rgba(255, 125, 152, 0.05);
  color: var(--dqm-danger);
}

.dqm-form {
  display: grid;
  gap: 24px;
}

.dqm-field {
  display: grid;
  gap: 8px;
}

.dqm-field input,
.dqm-field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--dqm-white);
}

.dqm-field select {
  background-color: #07090d;
}

.dqm-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.dqm-field-help {
  margin: 0;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.75rem;
}

.dqm-composer-list {
  display: grid;
  gap: 12px;
}

.dqm-question-card {
  padding: 20px;
}

.dqm-question-card__header {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dqm-question-card h3 {
  margin: 0;
  font-size: 1rem;
}

.dqm-question-card__actions {
  display: flex;
  gap: 6px;
}

.dqm-icon-button {
  display: inline-grid;
  width: 35px;
  height: 35px;
  padding: 0;
  place-items: center;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  font-size: 0.86rem;
}

.dqm-editor-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.42);
}

.dqm-editor-toolbar {
  display: flex;
  padding: 7px;
  flex-wrap: wrap;
  gap: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.dqm-tool-button {
  min-width: 34px;
  min-height: 32px;
  padding: 4px 8px;
  border-color: transparent;
  border-radius: 6px;
  font-size: 0.76rem;
}

.dqm-tool-button strong,
.dqm-tool-button em,
.dqm-tool-button u {
  color: inherit;
}

.dqm-editor {
  min-height: 132px;
  max-height: 420px;
  padding: 15px;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.62;
  word-break: break-word;
  scroll-margin-top: calc(var(--inflict-header-offset, 90px) + 18px);
  scroll-margin-bottom: 64px;
}

.dqm-editor[data-editor-kind="answer"] {
  min-height: 160px;
}

.dqm-editor:empty::before {
  color: rgba(255, 255, 255, 0.34);
  content: attr(data-placeholder);
  pointer-events: none;
}

.dqm-editor p,
.dqm-rich-text p {
  margin: 0 0 0.75em;
}

.dqm-editor p:last-child,
.dqm-rich-text p:last-child {
  margin-bottom: 0;
}

.dqm-editor blockquote,
.dqm-rich-text blockquote {
  margin: 1em 0;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--dqm-purple);
  color: rgba(255, 255, 255, 0.68);
}

.dqm-editor ul,
.dqm-editor ol,
.dqm-rich-text ul,
.dqm-rich-text ol {
  padding-left: 1.4rem;
}

.dqm-editor-meta {
  display: flex;
  margin-top: 7px;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.7rem;
}

.dqm-form-footer {
  display: flex;
  padding-top: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--dqm-faint);
}

.dqm-form-footer p {
  margin: 0;
  color: var(--dqm-muted);
  font-size: 0.78rem;
}

.dqm-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.dqm-question-list,
.dqm-share-list,
.dqm-answer-list {
  display: grid;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  gap: 9px;
}

.dqm-question-list li,
.dqm-share-item,
.dqm-answer-item {
  padding: 16px;
  border: 1px solid var(--dqm-faint);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
}

.dqm-question-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
}

.dqm-question-number {
  color: var(--dqm-cyan);
  font-size: 0.7rem;
  font-weight: 760;
}

.dqm-share-form {
  display: grid;
  margin-top: 20px;
  gap: 10px;
}

.dqm-generated-link {
  display: grid;
  margin: 20px 0;
  padding: 17px;
  gap: 10px;
  border: 1px solid rgba(145, 244, 200, 0.35);
  border-left: 3px solid var(--dqm-success);
  border-radius: 3px 10px 10px 3px;
  background: rgba(145, 244, 200, 0.055);
}

.dqm-generated-link > p {
  margin: 0;
  color: var(--dqm-muted);
  font-size: 0.75rem;
}

.dqm-generated-link > .dqm-kicker {
  color: var(--dqm-success);
}

.dqm-link-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.dqm-link-row input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.48);
  color: var(--dqm-white);
  font: 0.74rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.dqm-share-item__top,
.dqm-answer-item__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dqm-share-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dqm-share-item__controls .dqm-table-button {
  color: var(--dqm-danger);
}

.dqm-share-item strong,
.dqm-answer-item strong {
  color: var(--dqm-white);
  font-size: 0.84rem;
  word-break: break-word;
}

.dqm-share-item p,
.dqm-answer-item p {
  margin: 6px 0 0;
  color: var(--dqm-muted);
  font-size: 0.75rem;
}

.dqm-response-group {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--dqm-faint);
}

.dqm-response-group h3 {
  margin: 0;
  color: var(--dqm-white);
}

.dqm-player-shell {
  max-width: 900px;
  margin: 0 auto;
}

.dqm-progress {
  display: grid;
  margin-bottom: 16px;
  gap: 9px;
}

.dqm-progress__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.dqm-progress__count {
  color: var(--dqm-muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.dqm-progress__track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.dqm-progress__bar {
  width: var(--dqm-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dqm-cyan), var(--dqm-purple));
  box-shadow: 0 0 14px rgba(141, 239, 255, 0.38);
  transition: width 280ms ease;
}

.dqm-player-card {
  position: relative;
  padding: clamp(25px, 5vw, 54px);
  overflow: hidden;
}

.dqm-player-card::before {
  position: absolute;
  top: 0;
  left: clamp(25px, 5vw, 54px);
  width: 90px;
  height: 1px;
  background: var(--dqm-cyan);
  box-shadow: 0 0 18px rgba(141, 239, 255, 0.7);
  content: "";
}

.dqm-player-card h2 {
  margin: 8px 0 22px;
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.dqm-player-question {
  margin: 0 0 30px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--dqm-faint);
  border-bottom: 1px solid var(--dqm-faint);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.08rem, 2.3vw, 1.35rem);
}

.dqm-player-submit {
  display: flex;
  margin-top: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dqm-player-submit p {
  margin: 0;
  color: var(--dqm-muted);
  font-size: 0.75rem;
}

.dqm-complete {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.dqm-complete__mark {
  display: grid;
  width: 74px;
  height: 74px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(145, 244, 200, 0.35);
  border-radius: 50%;
  background: rgba(145, 244, 200, 0.06);
  box-shadow: 0 0 38px rgba(145, 244, 200, 0.08);
  color: var(--dqm-success);
  font-size: 1.7rem;
}

.dqm-complete h2 {
  margin: 0;
}

.dqm-complete p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--dqm-muted);
}

.dqm-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dqm-metric {
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--dqm-faint);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.3);
}

.dqm-metric strong,
.dqm-metric b {
  display: block;
  margin-top: 12px;
  color: var(--dqm-white);
  font-size: 1.8rem;
  font-variant-numeric: tabular-nums;
}

.dqm-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(141, 239, 255, 0.16);
  border-radius: 11px;
  background: rgba(4, 7, 10, 0.72);
}

.dqm-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.dqm-table th,
.dqm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  vertical-align: top;
}

.dqm-table th {
  background: rgba(141, 239, 255, 0.05);
}

.dqm-table td {
  color: var(--dqm-muted);
}

.dqm-table td:first-child {
  color: var(--dqm-white);
  font-weight: 680;
}

.dqm-table td small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.35;
}

.dqm-status-stack {
  display: grid;
  justify-items: start;
  gap: 2px;
}

.dqm-status-badge {
  display: inline-flex;
  min-height: 25px;
  padding: 3px 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dqm-status-badge.is-complete {
  border-color: rgba(145, 244, 200, 0.34);
  background: rgba(145, 244, 200, 0.06);
  color: var(--dqm-success);
}

.dqm-status-badge.is-progress,
.dqm-status-badge.is-ready {
  border-color: rgba(141, 239, 255, 0.34);
  background: rgba(141, 239, 255, 0.06);
  color: var(--dqm-cyan);
}

.dqm-status-badge.is-warning {
  border-color: rgba(255, 125, 152, 0.34);
  background: rgba(255, 125, 152, 0.05);
  color: var(--dqm-danger);
}

.dqm-status-badge.is-waiting {
  border-color: rgba(176, 98, 255, 0.3);
  color: #d7afff;
}

.dqm-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dqm-table tr:last-child td {
  border-bottom: 0;
}

.dqm-table-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dqm-cyan);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(141, 239, 255, 0.35);
  text-underline-offset: 3px;
}

.dqm-table-button--danger {
  color: var(--dqm-danger);
  text-decoration-color: rgba(255, 125, 152, 0.35);
}

.dqm-callout,
.dqm-error {
  padding: 17px 19px;
  border: 1px solid rgba(141, 239, 255, 0.28);
  border-left: 3px solid var(--dqm-cyan);
  border-radius: 3px 10px 10px 3px;
  background: rgba(141, 239, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.dqm-danger-zone {
  border-color: rgba(255, 125, 152, 0.34);
  background: rgba(255, 125, 152, 0.035);
}

.dqm-error {
  border-color: rgba(255, 125, 152, 0.4);
  border-left-color: var(--dqm-danger);
  background: rgba(255, 125, 152, 0.045);
}

.dqm-callout p,
.dqm-error p {
  margin: 0;
}

.dqm-toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: grid;
  width: min(380px, calc(100% - 36px));
  gap: 8px;
  pointer-events: none;
}

.dqm-toast {
  padding: 13px 15px;
  border: 1px solid rgba(141, 239, 255, 0.32);
  border-radius: 9px;
  background: rgba(4, 7, 10, 0.96);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  pointer-events: auto;
}

.dqm-toast--error {
  border-color: rgba(255, 125, 152, 0.5);
}

.dqm-product-nav {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  gap: 4px;
}

.dqm-product-nav__item {
  position: relative;
  min-height: 44px;
  padding: 9px 15px;
  border: 0;
  background: transparent;
  color: var(--dqm-muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 720;
  white-space: nowrap;
}

.dqm-product-nav__item::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  background: transparent;
  content: "";
}

.dqm-product-nav__item:hover,
.dqm-product-nav__item.is-active {
  color: var(--dqm-white);
}

.dqm-product-nav__item.is-active::after {
  background: var(--dqm-cyan);
  box-shadow: 0 0 12px rgba(141, 239, 255, 0.6);
}

.dqm-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dqm-muted);
  font-size: 0.76rem;
}

.dqm-breadcrumbs button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dqm-cyan);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(141, 239, 255, 0.3);
  text-underline-offset: 3px;
}

.dqm-campaign-grid,
.dqm-character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dqm-campaign-card,
.dqm-character-card,
.dqm-player-library-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dqm-faint);
  border-radius: 14px;
  background: rgba(5, 7, 10, 0.84);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.dqm-campaign-card:hover,
.dqm-character-card:hover,
.dqm-player-library-card:hover {
  border-color: rgba(141, 239, 255, 0.38);
  box-shadow: 0 23px 65px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

.dqm-card-hitbox {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dqm-card-hitbox:focus-visible {
  border-radius: 12px;
  outline-offset: -5px;
}

.dqm-card-art {
  display: grid;
  height: 102px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(141, 239, 255, 0.13), rgba(176, 98, 255, 0.13)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.025) 14px 15px);
  color: rgba(255, 255, 255, 0.18);
  font-size: 3rem;
  font-weight: 820;
}

.dqm-card-body,
.dqm-character-card__body {
  padding: 20px;
}

.dqm-card-body h3,
.dqm-character-card h3,
.dqm-player-library-card h3 {
  margin: 13px 0 6px;
  color: var(--dqm-white);
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.dqm-card-summary,
.dqm-character-card__body > p,
.dqm-player-library-card > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--dqm-muted);
  font-size: 0.8rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.dqm-card-meta {
  margin: 13px 0 0 !important;
  color: rgba(255, 255, 255, 0.42) !important;
  font-size: 0.7rem !important;
}

.dqm-character-card {
  display: grid;
  min-height: 260px;
  grid-template-columns: 78px minmax(0, 1fr);
}

.dqm-character-card__portrait {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(141, 239, 255, 0.09), rgba(176, 98, 255, 0.08));
  color: rgba(255, 255, 255, 0.2);
  font-size: 2.2rem;
  font-weight: 820;
}

.dqm-character-card.is-claimed {
  border-color: rgba(176, 98, 255, 0.25);
}

.dqm-character-card .dqm-inline-actions,
.dqm-character-card .dqm-character-claim {
  position: relative;
  z-index: 3;
}

.dqm-character-card .dqm-character-claim {
  width: 100%;
  margin-top: 18px;
}

.dqm-chip--live {
  border-color: rgba(145, 244, 200, 0.32);
  background: rgba(145, 244, 200, 0.06);
  color: var(--dqm-success);
}

.dqm-chip--draft {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
}

.dqm-player-library-card {
  min-height: 230px;
  padding: 24px;
}

.dqm-player-library-card .dqm-chip-row {
  margin-top: 20px;
}

.dqm-pagination {
  display: flex;
  padding-top: 10px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--dqm-muted);
  font-size: 0.75rem;
}

.dqm-library-tools {
  display: flex;
  padding: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--dqm-faint);
  border-radius: 12px;
  background: rgba(5, 7, 10, 0.72);
}

.dqm-library-tools .dqm-field {
  min-width: 180px;
  gap: 5px;
}

.dqm-library-tools__search {
  flex: 1 1 320px;
}

.dqm-library-tools .dqm-button {
  min-height: 48px;
}

.dqm-form-view form,
.dqm-form-grid,
.dqm-rich-field {
  display: grid;
  gap: 22px;
}

.dqm-form-view form > .dqm-field,
.dqm-form-view form > .dqm-rich-field,
.dqm-form-grid {
  width: min(900px, 100%);
}

.dqm-field label,
.dqm-rich-field > label {
  color: rgba(141, 239, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dqm-rich-field {
  gap: 8px;
}

.dqm-rich-field [data-editor-kind="notes"] {
  min-height: 230px;
}

.dqm-composer-heading,
.dqm-section-heading,
.dqm-campaign-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.dqm-composer-heading h2,
.dqm-section-heading h2,
.dqm-campaign-banner h2,
.dqm-player-campaign__hero h2,
.dqm-player-identity h2 {
  margin: 5px 0 4px;
  color: var(--dqm-white);
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.dqm-composer-heading p:last-child,
.dqm-section-heading p:last-child {
  margin: 7px 0 0;
  color: var(--dqm-muted);
}

.dqm-question-list {
  margin-top: 0;
}

.dqm-inline-actions,
.dqm-stack-actions,
.dqm-copy-row,
.dqm-assignment-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dqm-inline-actions {
  margin-top: 17px;
  flex-wrap: wrap;
}

.dqm-stack-actions {
  align-items: stretch;
  flex-direction: column;
}

.dqm-campaign-banner {
  padding: clamp(24px, 4vw, 38px);
  align-items: flex-start;
  border: 1px solid rgba(141, 239, 255, 0.2);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(141, 239, 255, 0.06), rgba(176, 98, 255, 0.035));
}

.dqm-campaign-banner > div:first-child {
  max-width: 760px;
}

.dqm-campaign-description {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.dqm-campaign-main,
.dqm-response-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 16px;
}

.dqm-host-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dqm-compact-tool {
  position: relative;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid rgba(141, 239, 255, 0.2);
  border-radius: 12px;
  background: rgba(5, 7, 10, 0.8);
}

.dqm-compact-tool > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dqm-compact-tool h2 {
  margin: 3px 0 0;
  color: var(--dqm-white);
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.dqm-compact-tool .dqm-compact-form {
  display: grid;
  width: 100%;
  margin-top: 14px;
  grid-template-columns: minmax(190px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.dqm-compact-form .dqm-inline-actions {
  margin-top: 0;
}

.dqm-help-popover {
  position: relative;
  flex: 0 0 auto;
}

.dqm-help-popover summary {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(176, 98, 255, 0.45);
  border-radius: 50%;
  background: rgba(176, 98, 255, 0.08);
  color: #d7afff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  list-style: none;
}

.dqm-help-popover summary::-webkit-details-marker {
  display: none;
}

.dqm-help-popover summary:hover,
.dqm-help-popover summary:focus-visible {
  border-color: var(--dqm-white);
  color: var(--dqm-white);
}

.dqm-help-popover p {
  position: absolute;
  z-index: 8;
  top: 34px;
  right: 0;
  width: min(310px, calc(100vw - 56px));
  margin: 0;
  padding: 13px 14px;
  border: 1px solid rgba(176, 98, 255, 0.4);
  border-radius: 9px;
  background: #090b10;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.58);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  line-height: 1.55;
}

.dqm-character-grid--campaign {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.dqm-note-panel .dqm-rich-text {
  max-height: 520px;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.72);
}

.dqm-muted {
  color: var(--dqm-muted) !important;
}

.dqm-empty--compact {
  min-height: 180px;
  padding: 28px;
}

.dqm-generated-link {
  margin: 0;
}

.dqm-generated-link p {
  margin: 3px 0 0;
  color: var(--dqm-muted);
  font-size: 0.75rem;
}

.dqm-copy-row input {
  min-width: 0;
  flex: 1;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--dqm-white);
  font: 0.7rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.dqm-assignment-form select {
  min-width: 150px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: #07090d;
  color: var(--dqm-white);
}

.dqm-response-card {
  padding: 20px;
  border: 1px solid rgba(176, 98, 255, 0.2);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.25);
}

.dqm-response-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dqm-response-card h3 {
  margin: 4px 0 0;
  color: var(--dqm-white);
}

.dqm-answer-list li {
  padding: 18px 0;
  border-top: 1px solid var(--dqm-faint);
}

.dqm-answer-label {
  margin: 0 0 6px;
  color: var(--dqm-cyan);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dqm-answer-value {
  margin-top: 12px;
  padding: 15px;
  border-left: 2px solid var(--dqm-purple);
  background: rgba(176, 98, 255, 0.045);
}

.dqm-answer-value.is-empty {
  border-left-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.025);
  color: var(--dqm-muted);
  font-style: italic;
}

.dqm-question-preview {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: preview;
  gap: 9px;
}

.dqm-question-preview li {
  position: relative;
  padding: 17px 17px 17px 50px;
  border: 1px solid var(--dqm-faint);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.24);
  counter-increment: preview;
}

.dqm-question-preview li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--dqm-cyan);
  content: counter(preview, decimal-leading-zero);
  font-size: 0.68rem;
  font-weight: 760;
}

.dqm-player-campaign__hero,
.dqm-player-identity {
  padding: clamp(25px, 5vw, 44px);
  border: 1px solid rgba(141, 239, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(141, 239, 255, 0.06), rgba(176, 98, 255, 0.04));
}

.dqm-player-campaign__hero .dqm-rich-text,
.dqm-player-identity .dqm-rich-text {
  max-width: 780px;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.72);
}

.dqm-player-identity {
  margin-bottom: 18px;
}

.dqm-save-state {
  margin-top: 8px;
  color: rgba(145, 244, 200, 0.68);
  font-size: 0.72rem;
}

.dqm-campaign-share {
  border-color: rgba(176, 98, 255, 0.28);
  background: linear-gradient(145deg, rgba(176, 98, 255, 0.055), rgba(5, 7, 10, 0.84));
}

.dqm-campaign-share .dqm-copy-row {
  margin: 18px 0 8px;
}

.dqm-print-sheet {
  display: none;
}

@media (max-width: 900px) {
  .dqm-hero {
    grid-template-columns: 1fr;
  }

  .dqm-summary,
  .dqm-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dqm-campaign-grid,
  .dqm-character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dqm-host-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .dqm-summary article:last-child {
    grid-column: 1 / -1;
  }

  .dqm-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .dqm-card-grid,
  .dqm-campaign-grid,
  .dqm-character-grid,
  .dqm-character-grid--campaign {
    grid-template-columns: 1fr;
  }

  .dqm-view-header,
  .dqm-form-footer,
  .dqm-player-submit,
  .dqm-campaign-banner,
  .dqm-composer-heading,
  .dqm-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dqm-actions,
  .dqm-form-footer .dqm-button,
  .dqm-player-submit .dqm-button {
    width: 100%;
  }

  .dqm-actions .dqm-button {
    flex: 1;
  }

  .dqm-link-row {
    align-items: stretch;
    flex-direction: column;
  }

  .dqm-compact-tool .dqm-compact-form {
    grid-template-columns: 1fr;
  }

  .dqm-copy-row {
    align-items: stretch;
    flex-direction: column;
  }

  .dqm-library-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .dqm-library-tools .dqm-field,
  .dqm-library-tools .dqm-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .dqm-page {
    width: min(100% - 24px, 1180px);
    padding-top: calc(var(--inflict-header-offset, 74px) + 24px);
    padding-bottom: 58px;
  }

  .dqm-hero {
    padding: 28px 20px;
    border-radius: 13px;
  }

  .dqm-utility-bar {
    align-items: flex-start;
  }

  .dqm-utility-bar__title {
    display: none;
  }

  .dqm-utility-bar__controls {
    width: 100%;
  }

  .dqm-account-control {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .dqm-account-control__trigger {
    width: 40px;
    height: 40px;
    padding: 4px;
  }

  .dqm-account-control__avatar {
    width: 32px;
    height: 32px;
  }

  .dqm-hero__bar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .dqm-intro-toggle {
    align-self: flex-start;
  }

  .dqm-summary,
  .dqm-metrics {
    grid-template-columns: 1fr;
  }

  .dqm-summary article,
  .dqm-summary article:last-child {
    min-height: 0;
    grid-column: auto;
  }

  .dqm-question-card,
  .dqm-panel {
    padding: 18px;
  }

  .dqm-question-card__header {
    align-items: flex-start;
  }

  .dqm-question-card__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .dqm-player-card {
    padding: 26px 19px;
  }

  .dqm-player-card::before {
    left: 19px;
  }

  .dqm-character-card {
    min-height: 230px;
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .dqm-progress__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (max-width: 380px) {
  .dqm-account-control,
  .dqm-account-control__trigger {
    width: 36px;
    height: 36px;
  }

  .dqm-account-control {
    flex-basis: 36px;
  }

  .dqm-account-control__avatar {
    width: 28px;
    height: 28px;
  }
}

@media print {
  @page {
    margin: 0.65in;
  }

  body {
    background: #fff !important;
    color: #111 !important;
    font-family: Georgia, "Times New Roman", serif;
  }

  body > :not(.dqm-print-sheet) {
    display: none !important;
  }

  .dqm-print-sheet {
    display: block !important;
    color: #111;
    font-size: 11pt;
    line-height: 1.45;
  }

  .dqm-print-sheet header {
    padding-bottom: 18pt;
    border-bottom: 2px solid #111;
  }

  .dqm-print-sheet header > p:first-child {
    margin: 0;
    font: 700 9pt/1.2 Arial, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .dqm-print-sheet h1 {
    margin: 5pt 0 8pt;
    font-size: 25pt;
    line-height: 1.1;
  }

  .dqm-print-sheet ol {
    margin: 20pt 0 0;
    padding-left: 24pt;
  }

  .dqm-print-sheet li {
    margin-bottom: 20pt;
    break-inside: avoid;
  }

  .dqm-print-prompt {
    font-weight: 700;
  }

  .dqm-print-answer {
    min-height: 34pt;
    margin-top: 8pt;
    padding: 8pt 10pt;
    border-left: 3px solid #555;
    background: #f4f4f4;
  }

  .dqm-print-answer--blank {
    border: 1px solid #aaa;
    background: transparent;
    color: #666;
    font-style: italic;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dqm-loading__mark {
    animation: none;
    border-color: var(--dqm-cyan);
  }

  .dqm-button,
  .dqm-icon-button,
  .dqm-tool-button,
  .dqm-questionnaire,
  .dqm-progress__bar {
    transition: none;
  }
}
