.q39,
.q39-m {
  --q39-gold-ink: #7a5717;
  --q39-gold-soft: #fbf3e2;
  --q39-gold-line: #e4d2ae;
  --q39-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  font-family: var(--font-sans);
}

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

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

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

.q39-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);
}

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

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

.q39-sub {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}

.q39-head-meta {
  flex: 0 0 auto;
  padding-bottom: 2px;
  text-align: right;
}

.q39-state {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.q39-tag {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--q39-gold-ink);
  white-space: nowrap;
}

.q39-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 0 12px;
}

.q39-panel {
  height: 100%;
  min-height: 0;
}

.q39-panel[hidden] {
  display: none !important;
}

.q39-b0 {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 52px;
  align-items: center;
}

.q39-proposals {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.q39-checkband {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.q39-checkband-k {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.q39-checkband-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.q39-checkband-list li {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  white-space: nowrap;
}

.q39-checkband-pass {
  margin: 0 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--pass);
  white-space: nowrap;
}

.q39-check {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.q39-check circle {
  fill: none;
  stroke: var(--pass);
  stroke-width: 1.6;
}

.q39-check path {
  fill: none;
  stroke: var(--pass);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.q39-proposal {
  min-width: 0;
  padding: 16px 20px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.q39-proposal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.q39-letter {
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--paper);
  font-size: 23px;
  line-height: 1;
  font-weight: 600;
  color: var(--navy);
}

.q39-proposal-titles {
  min-width: 0;
}

.q39-proposal-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy);
}

.q39-proposal-sub {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.q39-code {
  margin: 12px 0 0;
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #f2f6fa;
  color: var(--navy);
  font-family: var(--q39-mono);
  font-size: 18px;
  line-height: 1.5;
  white-space: pre;
  scrollbar-color: var(--line) transparent;
}

.q39-code-line {
  display: block;
}

.q39-pass {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--pass);
}

.q39-proposal-note {
  margin: 3px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.q39-b0-side {
  min-width: 0;
}

.q39-commission {
  border-top: 2px solid var(--gold);
  padding-top: 14px;
}

.q39-commission-k {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--q39-gold-ink);
}

.q39-commission-v {
  margin: 4px 0 0;
  font-size: 29px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy);
}

.q39-commission-note {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.q39-options {
  margin-top: 22px;
}

.q39-options-k {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.q39-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.q39-option:last-child {
  border-bottom: 1px solid var(--line);
}

.q39-option-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
  color: var(--navy);
}

.q39-option-text {
  min-width: 0;
}

.q39-option-t {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy);
}

.q39-option-s {
  margin: 3px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.q39-b0-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
}

.q39-foot {
  flex: 0 0 auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  padding-top: 12px;
  border-top: 2px solid var(--gold);
}

.q39-question {
  margin: 0;
  font-size: 32px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.q39-b1 {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 52px;
  align-items: center;
}

.q39-delivery {
  min-width: 0;
  padding: 20px 24px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.q39-delivery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.q39-delivery-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy);
}

.q39-delivery-sub {
  margin: 3px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.q39-delivery-tag {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--q39-gold-soft);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--q39-gold-ink);
  white-space: nowrap;
}

.q39-delivery-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.q39-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.q39-row-k {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.q39-row-v {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--navy);
}

.q39-row-note {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.q39-diff-old,
.q39-diff-new {
  font-family: var(--q39-mono);
  font-size: 19px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.q39-diff-old {
  color: var(--muted);
}

.q39-diff-new {
  font-weight: 600;
  color: var(--pass);
}

.q39-diff-arrow {
  font-size: 19px;
  line-height: 1;
  color: var(--gold);
}

.q39-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--paper);
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
  color: var(--navy);
}

.q39-row-unknown .q39-row-v {
  color: var(--muted);
}

.q39-row-unknown .q39-row-v span {
  border-bottom: 1px dashed var(--line);
}

.q39-delivery-note {
  margin: 14px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.q39-delivery-note strong {
  color: var(--navy);
  font-weight: 600;
}

.q39-note-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--q39-gold-line);
  border-radius: 50%;
  background: var(--q39-gold-soft);
  color: var(--q39-gold-ink);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}

.q39-stop {
  min-width: 0;
  border-top: 2px solid var(--gold);
  padding-top: 16px;
}

.q39-stop-h {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy);
}

.q39-stop-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.q39-stop-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  color: var(--navy);
}

.q39-stop-t {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
}

.q39-stop-s {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.q39-stop-warn {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--q39-gold-line);
  border-radius: 10px;
  background: var(--q39-gold-soft);
  font-size: 17px;
  line-height: 1.6;
  color: #6d4d10;
}

.q39-stop-warn strong {
  color: var(--navy);
  font-weight: 600;
}

.q39-stop-next {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.q39-bridge {
  margin: 0;
  font-size: 25px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--navy);
}

@keyframes q39-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.q39 [data-q39-reveal].q39-in {
  animation: q39-rise 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.q39.q39-m {
  position: static;
  inset: auto;
  display: block;
  height: auto;
  padding: 0;
  background: transparent;
}

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

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

.q39-m .q39-title {
  font-size: 28px;
  line-height: 1.38;
}

.q39-m .q39-sub {
  font-size: 16px;
  line-height: 1.6;
}

.q39-m .q39-head-meta {
  margin-top: 10px;
  text-align: left;
}

.q39-m .q39-state {
  font-size: 15px;
  line-height: 1.6;
  white-space: normal;
}

.q39-m .q39-tag {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}

.q39-m .q39-body {
  padding: 0;
}

.q39-m .q39-panel {
  height: auto;
}

.q39-m .q39-b0 {
  display: block;
  height: auto;
}

.q39-m .q39-proposals {
  gap: 12px;
}

.q39-m .q39-checkband {
  gap: 8px 10px;
}

.q39-m .q39-checkband-k {
  font-size: 14px;
}

.q39-m .q39-checkband-list li {
  padding: 2px 8px;
  font-size: 13px;
}

.q39-m .q39-checkband-pass {
  margin-left: 0;
  font-size: 14px;
}

.q39-m .q39-proposal {
  padding: 15px 16px 14px;
}

.q39-m .q39-proposal-head {
  gap: 12px;
}

.q39-m .q39-letter {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
  font-size: 19px;
}

.q39-m .q39-proposal-title {
  font-size: 20px;
}

.q39-m .q39-proposal-sub {
  font-size: 15px;
}

.q39-m .q39-code {
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.55;
}

.q39-m .q39-pass {
  font-size: 16px;
}

.q39-m .q39-proposal-note {
  font-size: 14px;
}

.q39-m .q39-b0-side {
  margin-top: 26px;
}

.q39-m .q39-commission-v {
  font-size: 26px;
}

.q39-m .q39-commission-note,
.q39-m .q39-option-s {
  font-size: 15px;
}

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

.q39-m .q39-option-num {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.q39-m .q39-option-t {
  font-size: 20px;
}

.q39-m .q39-b0-note {
  font-size: 16px;
}

.q39-m .q39-b1 {
  display: block;
  height: auto;
}

.q39-m .q39-delivery {
  padding: 16px;
}

.q39-m .q39-delivery-title {
  font-size: 23px;
}

.q39-m .q39-delivery-sub {
  font-size: 15px;
}

.q39-m .q39-delivery-tag {
  padding: 3px 8px;
  font-size: 13px;
}

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

.q39-m .q39-row-k {
  font-size: 15px;
}

.q39-m .q39-row-v {
  gap: 4px 8px;
  font-size: 17px;
  line-height: 1.55;
}

.q39-m .q39-row-note {
  font-size: 13px;
}

.q39-m .q39-diff-old,
.q39-m .q39-diff-new {
  font-size: 15px;
}

.q39-m .q39-diff-arrow {
  font-size: 16px;
}

.q39-m .q39-pick {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

.q39-m .q39-delivery-note {
  font-size: 15px;
  line-height: 1.7;
}

.q39-m .q39-stop {
  margin-top: 28px;
  padding-top: 14px;
}

.q39-m .q39-stop-h {
  font-size: 23px;
}

.q39-m .q39-stop-item {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
}

.q39-m .q39-stop-num {
  width: 30px;
  height: 30px;
  font-size: 15px;
}

.q39-m .q39-stop-t {
  font-size: 18px;
}

.q39-m .q39-stop-s {
  font-size: 15px;
  line-height: 1.7;
}

.q39-m .q39-stop-warn {
  font-size: 16px;
  line-height: 1.7;
}

.q39-m .q39-stop-next {
  font-size: 15px;
  line-height: 1.75;
}

.q39-m .q39-foot {
  display: block;
  min-height: 0;
  margin-top: 24px;
  padding-top: 14px;
}

.q39-m .q39-question {
  font-size: 23px;
  line-height: 1.55;
}

.q39-m .q39-bridge {
  font-size: 20px;
  line-height: 1.6;
}

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

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

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