.dq-shell {
  background: #ffffff;
  border: 2px solid #18181b;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(24, 24, 27, 0.08);
  padding: 24px;
}

.dq-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}
.dq-step-label { color: #18181b; }
.dq-pct-label { color: #d62857; }

.dq-progress-track {
  width: 100%;
  height: 12px;
  background: #f3efe8;
  border: 2px solid #18181b;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}
.dq-progress-fill {
  height: 100%;
  background: #d62857;
  transition: width 0.2s ease;
}

/* Manga speech bubble question panel */
.dq-bubble {
  position: relative;
  background: #faf8f5;
  border: 2px solid #18181b;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.dq-bubble::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -11px;
  width: 18px;
  height: 18px;
  background: #faf8f5;
  border-right: 2px solid #18181b;
  border-bottom: 2px solid #18181b;
  transform: rotate(45deg);
}
.dq-scene-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: #18181b;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.dq-question {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
  color: #18181b;
}

.dq-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.dq-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  text-align: left;
  background: #ffffff;
  color: #18181b;
  border: 2px solid #18181b;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.dq-opt:hover {
  background: #fff1f4;
  transform: translateY(-1px);
}
.dq-opt[aria-checked="true"] {
  background: #d62857;
  color: #ffffff;
}
.dq-opt-key {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3efe8;
  color: #18181b;
  border: 1.5px solid #18181b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.dq-opt[aria-checked="true"] .dq-opt-key {
  background: #18181b;
  color: #ffffff;
  border-color: #ffffff;
}

.dq-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dq-nav-hint {
  font-size: 13px;
  color: #52525b;
}

.dq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid #18181b;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.12s ease;
}
.dq-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.dq-btn-primary {
  background: var(--res-color, #d62857);
  color: #ffffff;
}
.dq-btn-primary:hover {
  filter: brightness(0.92);
  color: #ffffff;
  transform: translateY(-1px);
}
.dq-btn-outline {
  background: #ffffff;
  color: #18181b;
}
.dq-btn-outline:hover {
  background: #f3efe8;
  color: #18181b;
}
.dq-btn-ghost {
  background: #faf8f5;
  color: #18181b;
}
.dq-btn-ghost:hover:not(:disabled) {
  background: #ece7df;
}
.dq-btn-next {
  background: #18181b;
  color: #ffffff;
}
.dq-btn-next:hover {
  background: #303036;
}
.dq-btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
  background: #18181b;
  color: #ffffff;
}

/* Result View */
.dq-shared-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #faf8f5;
  border: 2px solid #18181b;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.dq-res-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 2px solid #18181b;
  border-radius: 12px;
  background-color: var(--res-color, #d62857);
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  color: #ffffff;
  margin-bottom: 20px;
}
.dq-res-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dq-res-pill {
  background: #18181b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.dq-res-match {
  background: #ffffff;
  color: var(--res-color, #d62857);
  border: 2px solid #18181b;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.dq-res-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 40px;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 6px;
}
.dq-res-sub {
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  margin: 0 0 16px;
}
.dq-res-speech {
  position: relative;
  background: #ffffff;
  color: #18181b;
  border: 2px solid #18181b;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.dq-res-speech p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.dq-res-secondary {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.dq-sec-label { opacity: 0.85; }
.dq-res-emblem-box {
  background: var(--res-tint, #fff1f4);
  border: 2px solid #18181b;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dq-res-emblem-box svg {
  width: 148px;
  height: 148px;
}

.dq-res-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.dq-status-msg {
  min-height: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--res-color, #d62857);
  margin: 0 0 16px;
}

.dq-res-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-bottom: 20px;
}
.dq-card {
  background: #faf8f5;
  border: 2px solid #18181b;
  border-radius: 12px;
  padding: 20px;
}
.dq-card-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 20px;
  margin: 0 0 14px;
}
.dq-card-note {
  font-size: 13px;
  color: #52525b;
  margin: 0 0 12px;
}
.dq-bar-row {
  display: grid;
  grid-template-columns: 98px 1fr 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}
.dq-bar-row:last-child { margin-bottom: 0; }
.dq-bar-name {
  font-weight: 700;
  color: #18181b;
  text-decoration: none;
}
.dq-bar-name:hover { text-decoration: underline; }
.dq-bar-track {
  height: 16px;
  background: #ffffff;
  border: 1.5px solid #18181b;
  border-radius: 999px;
  overflow: hidden;
}
.dq-bar-fill {
  height: 100%;
  border-radius: 999px;
}
.dq-bar-val {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dq-canvas-wrap {
  border: 2px solid #18181b;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 12px;
}
.dq-canvas-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
}
.dq-next-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.dq-scoring-box {
  background: var(--res-tint, #faf8f5);
  border: 2px solid #18181b;
  border-radius: 12px;
  padding: 20px;
}
.dq-scoring-box h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 18px;
  margin: 0 0 8px;
}
.dq-scoring-box p {
  font-size: 14px;
  color: #18181b;
  margin: 0 0 12px;
}
.dq-breakdown-details summary {
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #18181b;
}
.dq-weight-log {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 13px;
  color: #52525b;
}
.dq-weight-log li { margin-bottom: 6px; }

@media (max-width: 820px) {
  .dq-res-hero,
  .dq-res-grid {
    grid-template-columns: 1fr;
  }
  .dq-res-emblem-box svg { width: 112px; height: 112px; }
}

@media (max-width: 640px) {
  .dq-shell { padding: 16px; }
  .dq-question { font-size: 19px; }
  .dq-options { grid-template-columns: 1fr; }
  .dq-res-hero { padding: 20px; }
  .dq-res-title { font-size: 30px; }
  .dq-res-actions .dq-btn { width: 100%; }
  .dq-bar-row { grid-template-columns: 84px 1fr 40px; font-size: 13px; }
}
