.q25,
.q25-m {
  --q25-gold-ink: #7a5717;
  --q25-gold-soft: #d9c6a2;
  --q25-pass-soft: #eef4f0;
  --q25-danger-soft: #fdf5f5;
  --q25-mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", "Courier New", monospace;
  color: var(--ink);
  font-family: var(--font-sans);
}

.q25 {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 52px 64px 36px;
  background: var(--paper);
}

.q25 *,
.q25-m * {
  box-sizing: border-box;
}

.q25 [hidden],
.q25-m [hidden] {
  display: none !important;
}

.q25-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.q25-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);
  margin-bottom: 22px;
}

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

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

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

.q25-mark {
  flex: 0 0 auto;
  margin: 0;
  padding-bottom: 4px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.q25-body {
  flex: 1 1 auto;
  min-height: 0;
}

.q25-scene {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* checks */

.q25-checks {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.q25-check {
  min-width: 0;
  padding: 12px 18px 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.q25-check-name {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
}

.q25-check-name code {
  font-family: var(--q25-mono);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
}

.q25-check-verdict {
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 1.35;
  color: var(--muted);
}

.q25-check[data-q25-check="four"] .q25-check-verdict,
.q25-check[data-q25-check="empty"] .q25-check-verdict {
  color: var(--danger);
  font-weight: 600;
}

.q25-check.is-cut {
  background: transparent;
  border-style: dashed;
}

.q25-check.is-cut .q25-check-name,
.q25-check.is-cut .q25-check-name span,
.q25-check.is-cut .q25-check-name code {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--danger);
  text-decoration-thickness: 1px;
}

.q25-check.is-cut .q25-check-verdict {
  color: var(--muted);
  font-weight: 500;
}

.q25-check.is-key {
  background: var(--q25-danger-soft);
  border-color: var(--danger);
}

.q25-checks-note {
  flex: 0 0 auto;
  margin: -6px 0 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
}

/* scores */

.q25-scores {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 260px;
  gap: 18px;
}

.q25-score {
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.q25-score-letter {
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.q25-score-num {
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.q25-score-tag {
  font-size: 17px;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}

.q25-score.is-pass .q25-score-num,
.q25-score.is-pass .q25-score-tag {
  color: var(--pass);
}

.q25-score.is-fail {
  background: var(--q25-danger-soft);
  border-color: var(--danger);
}

.q25-score.is-fail .q25-score-num,
.q25-score.is-fail .q25-score-tag {
  color: var(--danger);
}

.q25-score.is-pending {
  background: transparent;
  border-style: dashed;
  border-color: var(--line);
}

.q25-score.is-pending .q25-score-num {
  color: var(--muted);
  font-weight: 500;
}

.q25-mean {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 22px;
  background: var(--white);
  border: 1px solid var(--q25-gold-soft);
  border-radius: 12px;
}

.q25-mean-label {
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
}

.q25-mean-num {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 600;
  color: var(--q25-gold-ink);
  font-variant-numeric: tabular-nums;
}

.q25-mean-form {
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* three destinations */

.q25-paths {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.q25-path {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.q25-path-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy);
}

.q25-path-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.q25-path-mean {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--q25-gold-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.q25-path-main {
  margin: 14px 0 0;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}

.q25-path-note {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.q25-centers {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.q25-center {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.q25-center:first-child {
  border-top: 0;
}

.q25-center-letter {
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  color: var(--navy);
}

.q25-center-expr {
  font-family: var(--q25-mono);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.q25-center-val {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.q25-center-val.is-pos {
  color: var(--pass);
}

.q25-center-val.is-neg {
  color: var(--danger);
}

.q25-path-weight .q25-path-note {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* five-item weights */

.q25-scene-weight {
  gap: 16px;
}

.q25-wchecks {
  flex: 0 0 auto;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.q25-wchecks li {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 16px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--muted);
}

.q25-wchecks li.is-current {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--ink);
}

.q25-wchecks code {
  font-family: var(--q25-mono);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
}

.q25-wchecks li.is-current .q25-ac-mark {
  color: var(--q25-gold-ink);
  font-weight: 600;
}

.q25-wgrid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 24px;
}

.q25-wpanel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.q25-whead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.q25-wtitle {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy);
}

.q25-wmean {
  flex: 0 0 auto;
  font-size: 19px;
  line-height: 1.4;
  color: var(--muted);
}

.q25-wmean b {
  font-size: 26px;
  line-height: 1;
  color: var(--q25-gold-ink);
  font-variant-numeric: tabular-nums;
}

.q25-wintro {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.q25-wrows {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.q25-wrow {
  display: grid;
  grid-template-columns: 40px 110px 128px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.q25-wrow:first-child {
  border-top: 0;
}

.q25-wrow-letter {
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  color: var(--navy);
}

.q25-wrow-reward {
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
}

.q25-wrow-eq {
  font-family: var(--q25-mono);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.q25-wrow-out {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 60px;
  border-radius: 10px;
  font-size: 32px;
  line-height: 1;
  font-weight: 600;
  color: var(--q25-gold-ink);
  font-variant-numeric: tabular-nums;
}

.q25-wrow-out.is-pending {
  background: var(--paper);
  border: 1px dashed var(--control-line);
}

.q25-wrow-out.is-zero {
  background: var(--white);
  border: 1px solid var(--gold);
}

.q25-wnote {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.q25-wside {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.q25-wcard {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.q25-wcard-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.q25-wcard-main {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
}

.q25-wcard-note {
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

/* two consequences */

.q25-scene-after {
  gap: 24px;
}

.q25-after-checks {
  flex: 0 0 auto;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.q25-after-checks li {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--muted);
}

.q25-after-checks li.is-current {
  border-color: var(--navy);
  color: var(--ink);
}

.q25-ac-name {
  font-weight: 600;
  color: var(--navy);
}

.q25-after-checks code {
  font-family: var(--q25-mono);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
}

.q25-ac-mark {
  margin-left: auto;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.q25-after-checks li.is-current .q25-ac-mark {
  color: var(--q25-gold-ink);
  font-weight: 600;
}

.q25-after-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.q25-after-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
}

.q25-after-kicker {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.q25-after-head {
  margin: 14px 0 0;
  font-size: 38px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
}

.q25-after-body {
  margin: 14px 0 0;
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
}

/* footer */

.q25-foot {
  flex: 0 0 132px;
  min-height: 0;
  padding-top: 14px;
  border-top: 2px solid var(--gold);
  overflow: hidden;
}

.q25-foot-group {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.q25-foot-note {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
}

.q25-foot-key {
  margin: 0;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
  min-height: 1.4em;
}

.q25-question {
  margin: 0;
  font-size: 30px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--navy);
}

.q25-question-sub {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
}

/* mobile */

.q25-m {
  min-width: 0;
}

.q25-m .q25-head {
  display: block;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.q25-m .q25-title {
  max-width: none;
  font-size: 27px;
  line-height: 1.4;
}

.q25-m .q25-state {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.q25-m .q25-mark {
  margin: 6px 0 0;
  padding-bottom: 0;
  font-size: 14px;
  white-space: normal;
}

.q25-m .q25-body {
  display: block;
}

.q25-m .q25-scene {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.q25-m .q25-checks {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.q25-m .q25-check {
  padding: 10px 14px 11px;
}

.q25-m .q25-check-name {
  font-size: 17px;
  gap: 8px;
}

.q25-m .q25-check-name code {
  font-size: 15px;
}

.q25-m .q25-check-verdict {
  margin-top: 4px;
  font-size: 15px;
}

.q25-m .q25-checks-note {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.6;
}

.q25-m .q25-scores {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.q25-m .q25-score {
  min-height: 72px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 14px;
}

.q25-m .q25-score-letter {
  font-size: 19px;
}

.q25-m .q25-score-num {
  font-size: 30px;
}

.q25-m .q25-score-tag {
  font-size: 13px;
}

.q25-m .q25-mean {
  padding: 10px 14px;
}

.q25-m .q25-mean-label {
  font-size: 13px;
}

.q25-m .q25-mean-num {
  font-size: 28px;
}

.q25-m .q25-mean-form {
  font-size: 13px;
}

.q25-m .q25-paths {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.q25-m .q25-path {
  padding: 14px 16px;
}

.q25-m .q25-path-title {
  font-size: 18px;
}

.q25-m .q25-path-mean {
  font-size: 15px;
}

.q25-m .q25-path-main {
  margin-top: 10px;
  font-size: 21px;
}

.q25-m .q25-path-note {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.65;
}

.q25-m .q25-center {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 0;
}

.q25-m .q25-center-letter {
  font-size: 17px;
}

.q25-m .q25-center-expr {
  font-size: 15px;
}

.q25-m .q25-center-val {
  font-size: 17px;
}

.q25-m .q25-wchecks {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.q25-m .q25-wchecks li {
  padding: 9px 14px;
  font-size: 15px;
}

.q25-m .q25-wchecks code {
  font-size: 14px;
}

.q25-m .q25-wgrid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.q25-m .q25-wpanel {
  padding: 16px;
}

.q25-m .q25-whead {
  display: block;
}

.q25-m .q25-wtitle {
  font-size: 19px;
}

.q25-m .q25-wmean {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.q25-m .q25-wmean b {
  font-size: 20px;
}

.q25-m .q25-wintro {
  font-size: 15px;
  line-height: 1.65;
}

.q25-m .q25-wrow {
  grid-template-columns: 24px 60px 64px minmax(0, 1fr);
  gap: 8px;
  padding: 12px 0;
}

.q25-m .q25-wrow-letter {
  font-size: 20px;
}

.q25-m .q25-wrow-reward {
  font-size: 15px;
}

.q25-m .q25-wrow-eq {
  font-size: 16px;
}

.q25-m .q25-wrow-out {
  min-width: 58px;
  height: 44px;
  font-size: 24px;
}

.q25-m .q25-wnote {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.q25-m .q25-wside {
  gap: 10px;
}

.q25-m .q25-wcard {
  flex: none;
  padding: 14px 16px;
}

.q25-m .q25-wcard-title {
  font-size: 15px;
}

.q25-m .q25-wcard-main {
  font-size: 20px;
}

.q25-m .q25-wcard-note {
  font-size: 15px;
  line-height: 1.6;
}

.q25-m .q25-after-checks {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.q25-m .q25-after-checks li {
  padding: 9px 14px;
  font-size: 15px;
}

.q25-m .q25-after-checks code {
  font-size: 14px;
}

.q25-m .q25-ac-mark {
  font-size: 14px;
}

.q25-m .q25-after-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.q25-m .q25-after-card {
  padding: 18px 18px 20px;
}

.q25-m .q25-after-kicker {
  font-size: 15px;
}

.q25-m .q25-after-head {
  margin-top: 10px;
  font-size: 26px;
  line-height: 1.45;
}

.q25-m .q25-after-body {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.7;
}

.q25-m .q25-foot {
  flex: none;
  height: auto;
  margin-top: 22px;
  padding-top: 14px;
  overflow: visible;
}

.q25-m .q25-foot-group {
  height: auto;
  gap: 6px;
}

.q25-m .q25-foot-key {
  font-size: 20px;
  line-height: 1.55;
}

.q25-m .q25-foot-note {
  font-size: 15px;
  line-height: 1.65;
}

.q25-m .q25-question {
  font-size: 21px;
  line-height: 1.55;
}

.q25-m .q25-question-sub {
  font-size: 15px;
  line-height: 1.65;
}

.q25-m-link {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

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

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