.q14,
.q14-m {
  --q14-soft: #fbf7ef;
  --q14-gold-ink: #7a5717;
  --q14-connector: #647a91;
  --q14-paused: #eef1f5;
  --q14-paused-ink: #52647b;
  --q14-paused-line: #8a9aaa;
}

.q14 {
  position: absolute;
  inset: 0;
  color: var(--ink);
}

.q14-head {
  position: absolute;
  left: 64px;
  top: 64px;
  width: 660px;
}

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

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

.q14-scope {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.q14-lines {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.q14-line {
  fill: none;
  stroke: var(--q14-connector);
  stroke-width: 2.5;
  stroke-linecap: square;
  stroke-linejoin: round;
}

.q14-line.is-retained {
  stroke: var(--gold);
}

.q14-line.is-paused {
  stroke: var(--q14-paused-line);
}

.q14-board-note {
  position: absolute;
  left: 430px;
  top: 198px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.q14-board-note.is-partial {
  color: var(--navy);
  font-weight: 600;
}

.q14-node {
  position: absolute;
}

.q14-pos-r {
  left: 100px;
  top: 410px;
  width: 180px;
  height: 90px;
}

.q14-pos-s1 {
  left: 430px;
  top: 240px;
  width: 220px;
  height: 90px;
}

.q14-pos-s2 {
  left: 430px;
  top: 410px;
  width: 220px;
  height: 90px;
}

.q14-pos-s3 {
  left: 430px;
  top: 580px;
  width: 220px;
  height: 90px;
}

.q14-node-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.q14-node-r .q14-node-box {
  border: 2px solid var(--navy);
}

.q14-node-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.q14-node-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  background: #e3ebf2;
  color: var(--navy);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.q14-node-r .q14-node-tag {
  background: var(--navy);
  color: var(--white);
}

.q14-score {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

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

.q14-score-label {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.q14-node-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.q14-node-r .q14-node-title {
  font-size: 22px;
  line-height: 1.35;
}

.q14-node-note {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.q14-node.is-retained .q14-node-box {
  border-color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.q14-node.is-retained .q14-node-note {
  color: var(--q14-gold-ink);
  font-weight: 600;
}

.q14-node.is-paused .q14-node-box {
  background: var(--q14-paused);
  border-color: var(--line);
}

.q14-node.is-paused .q14-node-tag {
  background: #e2e7ee;
  color: var(--q14-paused-ink);
}

.q14-node.is-paused .q14-node-title,
.q14-node.is-paused .q14-node-note,
.q14-node.is-paused .q14-score-value {
  color: var(--q14-paused-ink);
}

.q14-panel {
  position: absolute;
  left: 1240px;
  top: 220px;
  width: 296px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.q14-panel-block + .q14-panel-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.q14-panel-label {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.q14-rule {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.q14-question {
  margin: 14px 0 8px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

.q14-retained {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: 10px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.q14-retained.is-filled {
  background: var(--q14-soft);
  border-color: var(--gold);
  border-style: solid;
}

.q14-retained-note {
  margin: 6px 0 0;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.q14-conclusion {
  position: absolute;
  left: 64px;
  top: 792px;
  width: 680px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.q14-conclusion-label {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.q14-conclusion-text {
  min-width: 0;
  font-size: 25px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}

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

.q14-m .q14-head {
  position: static;
  width: auto;
}

.q14-m .q14-title {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.4;
}

.q14-m .q14-state {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.q14-m .q14-scope {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.q14-m .q14-board-note {
  position: static;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.q14-m-tree {
  margin-top: 12px;
}

.q14-m .q14-node {
  position: static;
  width: auto;
  height: auto;
}

.q14-m .q14-node-box {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
}

.q14-m .q14-node-r .q14-node-box {
  min-height: 80px;
}

.q14-m .q14-node-title {
  font-size: 19px;
  line-height: 1.4;
}

.q14-m .q14-node-r .q14-node-title {
  font-size: 21px;
}

.q14-m .q14-score-value {
  font-size: 22px;
}

.q14-m .q14-node-note {
  font-size: 13px;
  line-height: 1.5;
}

.q14-m-branches {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.q14-m .q14-m-branch {
  position: relative;
  padding-left: 26px;
}

.q14-m-branch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  border-top: 1.5px solid var(--q14-connector);
}

.q14-m-branch:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: -12px;
  bottom: 0;
  width: 0;
  border-left: 1.5px solid var(--q14-connector);
}

.q14-m-branch:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  top: -12px;
  height: calc(50% + 12px);
  width: 0;
  border-left: 1.5px solid var(--q14-connector);
}

.q14-m-branch.is-retained::before,
.q14-m-branch.is-retained::after {
  border-color: var(--gold);
}

.q14-m-branch.is-paused::before,
.q14-m-branch.is-paused::after {
  border-color: var(--q14-paused-line);
}

.q14-m .q14-panel {
  position: static;
  width: auto;
  margin-top: 20px;
  padding: 16px;
}

.q14-m .q14-rule {
  font-size: 18px;
  line-height: 1.6;
}

.q14-m .q14-question {
  font-size: 17px;
}

.q14-m .q14-retained {
  min-height: 56px;
  font-size: 22px;
}

.q14-m .q14-conclusion {
  position: static;
  width: auto;
  margin-top: 18px;
  display: block;
}

.q14-m .q14-conclusion-label {
  display: block;
  margin-bottom: 4px;
}

.q14-m .q14-conclusion-text {
  display: block;
  font-size: 20px;
  line-height: 1.6;
}

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

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

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