.q13,
.q13-m {
  --q13-soft: #fbf7ef;
  --q13-pass-soft: #eef5f1;
  --q13-fail-soft: #f8eef0;
  --q13-neutral-soft: #f4f7fa;
  --q13-evidence-soft: #fbf5e8;
  --q13-gold-line: #d9c6a2;
  --q13-code-border: #e4d6bd;
  --q13-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

.q13 {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.q13-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.q13-heading {
  min-width: 0;
}

.q13-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.q13-state {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.q13-scope {
  flex: 0 0 auto;
  margin: 0 0 2px;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  text-align: right;
}

.q13-rulebar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px 30px;
  margin-top: 12px;
  padding: 10px 18px;
  min-height: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.q13-rule {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.q13-rule-key {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.q13-rule-value {
  min-width: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.q13-rule-note {
  margin: 0 0 0 auto;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  text-align: right;
}

.q13-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: 344px minmax(0, 1fr);
  gap: 14px;
  padding-top: 14px;
}

.q13-candidates {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.q13-cand {
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.q13-cand.is-delivered {
  border-color: var(--q13-gold-line);
}

.q13-cand-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.q13-letter {
  flex: 0 0 auto;
  font-family: var(--q13-mono);
  font-size: 42px;
  line-height: 1;
  font-weight: 600;
  color: var(--gold);
}

.q13-cand-titles {
  min-width: 0;
}

.q13-cand-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.q13-cand-sub {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.q13-cand-method {
  margin: 0;
  padding: 8px 10px;
  min-height: 44px;
  background: var(--q13-soft);
  border: 1px solid var(--q13-code-border);
  border-radius: 8px;
  font-family: var(--q13-mono);
  font-size: 14px;
  line-height: 1.55;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.q13-cand-method code {
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
}

.q13-cand-method span {
  color: var(--muted);
}

.q13-status {
  flex: 1 1 auto;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--q13-neutral-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.q13-status-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.q13-status-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  background: #e3ebf2;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.q13-status-title {
  min-width: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.q13-status-detail {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.q13-status-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.q13-status.is-pass {
  background: var(--q13-pass-soft);
  border-color: #bcd8c9;
}

.q13-status.is-pass .q13-status-tag {
  background: var(--pass);
  color: var(--white);
}

.q13-status.is-fail {
  background: var(--q13-fail-soft);
  border-color: #e3c2c6;
}

.q13-status.is-fail .q13-status-tag {
  background: var(--danger);
  color: var(--white);
}

.q13-status.is-neutral {
  background: var(--q13-neutral-soft);
  border-color: var(--line);
}

.q13-status.is-neutral .q13-status-tag {
  background: #e3ebf2;
  color: var(--navy);
}

.q13-status.is-evidence {
  background: var(--q13-evidence-soft);
  border-color: var(--q13-gold-line);
}

.q13-status.is-evidence .q13-status-tag {
  background: #f3e6c9;
  color: #5c4210;
}

.q13-panel {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
}

.q13-checks,
.q13-delivery {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.q13-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
}

.q13-panel-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--muted);
}

.q13-check-count {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--q13-soft);
  border: 1px solid var(--q13-code-border);
  color: var(--navy);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  white-space: nowrap;
}

.q13-check-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.q13-check-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.q13-check-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.q13-check-name {
  min-width: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.q13-check-meta {
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
}

.q13-check-meta code {
  font-family: var(--q13-mono);
  font-size: 0.95em;
  font-weight: 600;
  color: var(--navy);
}

.q13-check-row.is-inactive {
  background: transparent;
  border-style: dashed;
}

.q13-check-row.is-inactive .q13-check-dot {
  background: transparent;
  border: 1.5px solid var(--line);
}

.q13-check-row.is-inactive .q13-check-name {
  color: var(--muted);
  font-weight: 500;
}

.q13-checks-note {
  margin: auto 0 0;
  padding-top: 8px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.q13-stop {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  background: #e3ebf2;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  white-space: nowrap;
}

.q13-delivery-main {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  min-height: 88px;
}

.q13-delivery-letter {
  font-family: var(--q13-mono);
  font-size: 64px;
  line-height: 1;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
}

.q13-delivery-copy {
  min-width: 0;
}

.q13-delivery-verdict {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.q13-delivery-reason {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.q13-delivery-note {
  margin: 6px 0 0;
  min-height: 42px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.q13-compare {
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.q13-compare-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.q13-compare-row strong {
  color: var(--navy);
  font-weight: 600;
}

.q13-compare-arrow {
  color: var(--gold);
  font-family: var(--q13-mono);
}

.q13-m {
  min-width: 0;
  color: var(--ink);
}

.q13-m .q13-head {
  display: block;
  padding-bottom: 16px;
}

.q13-m .q13-title {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.q13-m .q13-state {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.q13-m .q13-scope {
  margin: 8px 0 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.q13-m .q13-rulebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 14px;
}

.q13-m .q13-rule {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.q13-m .q13-rule-key {
  font-size: 13px;
}

.q13-m .q13-rule-value {
  font-size: 16px;
}

.q13-m .q13-rule-note {
  margin: 2px 0 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.q13-m .q13-candidates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.q13-m .q13-cand {
  height: auto;
  gap: 10px;
  padding: 14px;
}

.q13-m .q13-letter {
  font-size: 32px;
}

.q13-m .q13-cand-title {
  font-size: 18px;
  line-height: 1.4;
}

.q13-m .q13-cand-sub {
  font-size: 13px;
  line-height: 1.5;
}

.q13-m .q13-cand-method {
  min-height: 0;
  font-size: 13px;
  line-height: 1.65;
}

.q13-m .q13-status {
  flex: 0 0 auto;
  min-height: 190px;
  padding: 10px 12px;
}

.q13-m .q13-status-title {
  font-size: 16px;
}

.q13-m .q13-status-detail {
  font-size: 16px;
  line-height: 1.6;
}

.q13-m .q13-status-note {
  font-size: 15px;
  line-height: 1.6;
}

.q13-m .q13-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.q13-m .q13-checks,
.q13-m .q13-delivery {
  padding: 14px;
}

.q13-m .q13-check-row {
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 3px 10px;
  min-height: 58px;
  padding: 9px 12px;
}

.q13-m .q13-check-name {
  font-size: 16px;
  white-space: normal;
}

.q13-m .q13-check-meta {
  grid-column: 2;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

.q13-m .q13-checks-note {
  min-height: 72px;
  margin-top: 10px;
  padding-top: 0;
  font-size: 14px;
  line-height: 1.6;
}

.q13-m .q13-delivery-main {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  min-height: 96px;
  margin-top: 8px;
}

.q13-m .q13-delivery-letter {
  font-size: 48px;
}

.q13-m .q13-delivery-verdict {
  font-size: 20px;
}

.q13-m .q13-delivery-reason {
  font-size: 16px;
  line-height: 1.6;
}

.q13-m .q13-delivery-note {
  min-height: 72px;
  font-size: 15px;
  line-height: 1.6;
}

.q13-m .q13-compare {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.q13-m-link {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.is-instant .q13 *,
.is-instant .q13-m *,
.is-instant .q13 *::before,
.is-instant .q13-m *::before,
.is-instant .q13 *::after,
.is-instant .q13-m *::after {
  transition: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .q13 *,
  .q13-m *,
  .q13 *::before,
  .q13-m *::before,
  .q13 *::after,
  .q13-m *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Coordinator grouped fix: reserve mobile result space across the two checks. */
.q13-m .q13-delivery { min-height: 330px; }
.q13-m .q13-compare { min-height: 46px; }

/* v14 historical coding result; only this cue replaces the exercise panels. */
.q13 [hidden],.q13-m [hidden]{display:none!important}
.q13[data-q13-cue="r0"]>.q13-rulebar,.q13[data-q13-cue="r0"]>.q13-body,
.q13-m[data-q13m-cue="r0"]>.q13-rulebar,.q13-m[data-q13m-cue="r0"]>.q13-candidates,.q13-m[data-q13m-cue="r0"]>.q13-panel{display:none!important}
.q13-research{padding:24px 0;display:flex;flex-direction:column;gap:20px;min-height:0;flex:1}
.q13-research p,.q13-research h2{margin:0}
.q13-research-era{font-size:24px;color:var(--muted)}
.q13-research h2{font-size:38px;line-height:1.3;color:var(--navy);font-weight:600}
.q13-research-scores{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.q13-research-scores article{padding:22px 28px;border:1px solid var(--line);border-radius:12px;background:var(--white)}
.q13-research-scores article:first-child{background:#f7f2e5;border-color:#d9c6a2}
.q13-research-scores span{display:block;font-size:24px}
.q13-research-scores strong{display:block;font-size:76px;line-height:1.1;padding:8px 0;color:var(--navy)}
.q13-research-scores small{font-size:26px;font-weight:400}
.q13-research-scores p{font-size:23px;line-height:1.5}
.q13-research-budget{font-size:27px;line-height:1.5}
.q13-research-question{font-size:30px;line-height:1.4;font-weight:600;color:var(--navy)}
.q13-research-source{font-size:18px;line-height:1.5;color:var(--muted)}
.q13-research-source a{color:inherit}
.q13-m .q13-research{gap:16px;padding:16px 0}
.q13-m .q13-research h2{font-size:25px}.q13-m .q13-research-era,.q13-m .q13-research-budget,.q13-m .q13-research-scores p,.q13-m .q13-research-scores span{font-size:17px}
.q13-m .q13-research-scores{grid-template-columns:1fr;gap:12px}.q13-m .q13-research-scores strong{font-size:48px}.q13-m .q13-research-scores article{padding:16px}
.q13-m .q13-research-question{font-size:21px}.q13-m .q13-research-source{font-size:14px}
