.door-guide-page { max-width: 1040px; }
.door-guide-intro { margin-bottom: 18px; }
.door-guide-intro h1 {
  max-width: 860px;
  margin-bottom: 12px;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.door-guide-intro .lede { max-width: 820px; }
.door-guide-intro .lede strong { color: var(--text); }
.door-guide-top-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.door-guide-top-actions a { text-decoration: none; }

.door-guide-flow {
  margin: 18px 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--muted);
  font-size: .79rem;
  font-weight: 850;
}
.door-guide-flow > span[aria-hidden="true"] { color: #a7aca3; }

.door-guide-section {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.door-guide-section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 19px;
}
.door-guide-step {
  min-width: 66px;
  padding: 8px 9px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--accent);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
}
.door-guide-section-head h2 { margin: 0 0 8px; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.035em; }
.door-guide-section-head p:not(.section-kicker) { margin: 0; max-width: 860px; color: var(--muted); line-height: 1.58; }
.door-guide-section-head p strong { color: var(--text); }

.door-arm-rule {
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
}
.door-arm-kicker { display: block; margin-bottom: 5px; color: var(--accent); font-size: .66rem; font-weight: 900; letter-spacing: .09em; }
.door-arm-rule strong { display: block; margin-bottom: 6px; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.door-arm-rule p { max-width: 790px; margin: 0; color: #e6e9e2; line-height: 1.55; }

.door-basic-grid, .door-summary-grid, .door-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.door-method-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f8f9f5;
}
.door-method-card.is-reverse-card { border-color: #dce887; background: #fbfde9; }
.door-method-head {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.door-method-head span { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .09em; }
.door-method-head strong { color: var(--dark); font-size: 1.4rem; }
.door-direction-chip {
  width: fit-content;
  margin: 14px auto 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef0ea;
  color: #596056;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .07em;
}
.door-direction-chip.is-reverse { background: #eef8a9; color: #56600d; }

.door-plan-svg, .door-reference-svg, .door-worker-svg { display: block; width: 100%; height: auto; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.door-plan-svg { margin-top: 4px; }
.door-svg-wall { fill: #d9dcd5; stroke: #62685f; stroke-width: 1.8; }
.door-svg-closed { stroke: #b4b9b0; stroke-width: 1.6; stroke-dasharray: 5 5; }
.door-svg-leaf { stroke: #20231f; stroke-width: 5; stroke-linecap: round; }
.door-svg-swing { fill: none; stroke: #9cab2c; stroke-width: 3; stroke-dasharray: 8 6; }
.door-svg-hinge { fill: var(--accent); stroke: #667117; stroke-width: 2; }
.door-zone-label-bg { fill: #f8f9f5; }
.door-zone-label, .door-room-label { fill: #6a7067; font-size: 12px; font-weight: 900; text-anchor: middle; letter-spacing: .09em; }
.door-you-label { fill: #8a9086; font-size: 11px; font-weight: 900; text-anchor: middle; letter-spacing: .08em; }
.door-hinge-guide { stroke: #a7ada3; stroke-width: 2; stroke-dasharray: 4 4; }
.door-hinge-label { fill: #6f756c; font-size: 10px; font-weight: 900; text-anchor: middle; letter-spacing: .06em; }

.door-worker-row {
  min-height: 170px;
  padding: 10px 18px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.door-worker-row strong { display: block; margin-bottom: 6px; color: var(--text); line-height: 1.3; }
.door-worker-row p { margin: 0; color: var(--muted); line-height: 1.5; }
.door-worker-row b { color: var(--text); }
.door-worker-svg { max-width: 145px; }
.door-worker-shadow { fill: rgba(28,33,26,.12); }
.door-worker-jamb { fill: #aeb4aa; stroke: #666d63; stroke-width: 1.2; }
.door-worker-body { fill: #1c211a; }
.door-worker-head { fill: #d7b28d; stroke: #1c211a; stroke-width: 2; }
.door-worker-hardhat { fill: #e5ff50; stroke: #1c211a; stroke-width: 2.5; }
.door-worker-hardhat-brim { stroke: #1c211a; stroke-width: 3; stroke-linecap: round; }
.door-worker-leg, .door-worker-arm { stroke: #1c211a; stroke-width: 6; stroke-linecap: round; }
.door-worker-arm.is-active { stroke: #9cab2c; stroke-width: 8; }
.door-worker-arm-tip { fill: #1c211a; }
.door-worker-arm-tip.is-active { fill: #9cab2c; }
.door-worker-shoulder-dot { fill: var(--accent); stroke: #667117; stroke-width: 2; }
.door-worker-facing-arrow { fill: #6c7369; }
.door-worker-facing-text { fill: #767c72; font-size: 8px; font-weight: 900; text-anchor: middle; letter-spacing: .05em; }

.door-reference-explain {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  background: #f8f9f5;
}
.door-reference-svg { align-self: center; padding: 4px 0; }
.door-reference-copy {
  padding: 25px;
  border-left: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.door-reference-copy span { margin-bottom: 7px; color: var(--muted); font-size: .67rem; font-weight: 900; letter-spacing: .08em; }
.door-reference-copy strong { margin-bottom: 8px; font-size: 1.22rem; line-height: 1.3; }
.door-reference-copy p { margin: 0; color: var(--muted); line-height: 1.58; }
.door-ref-tag { fill: var(--dark); }
.door-ref-tag-text { fill: var(--accent); font-size: 12px; font-weight: 900; text-anchor: middle; letter-spacing: .07em; }
.door-ref-tag-text.small { font-size: 10px; }
.door-view-line { stroke: #20231f; stroke-width: 2.5; }
.door-view-arrow { fill: #20231f; }
.door-view-label { fill: #555b52; font-size: 11px; font-weight: 900; text-anchor: middle; letter-spacing: .07em; }

.door-why-title { margin: 18px 2px 9px; color: var(--text); font-size: 1rem; line-height: 1.3; }
.door-why-grid { margin-top: 0; }
.door-why-grid > div {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.door-why-grid strong { display: block; margin-bottom: 5px; }
.door-why-grid p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .9rem; }
.door-guide-note {
  margin: 14px 0 0;
  padding: 13px 15px;
  border-left: 4px solid var(--accent);
  border-radius: 0 11px 11px 0;
  background: #f8f9f5;
  color: var(--muted);
  line-height: 1.55;
  font-size: .86rem;
}
.door-guide-note strong { color: var(--text); }

.door-reverse-rule {
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid #dce887;
  border-radius: 16px;
  background: var(--accent-soft);
}
.door-reverse-rule > span { display: block; margin-bottom: 5px; color: #6d751d; font-size: .66rem; font-weight: 900; letter-spacing: .08em; }
.door-reverse-rule > strong { display: block; font-size: clamp(.96rem, 1.5vw, 1.08rem); color: #252915; line-height: 1.4; }
@media (min-width: 761px) { .door-reverse-rule > strong { white-space: nowrap; } }
.door-reverse-rule > em { display: block; margin-top: 8px; color: #62684d; line-height: 1.55; }

.door-guide-summary {
  margin-top: 18px;
  padding: 26px;
  border-radius: 20px;
  background: var(--dark);
  color: #fff;
}
.door-guide-summary .section-kicker { color: var(--accent); }
.door-guide-summary h2 { margin: 0 0 16px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.door-summary-grid > div { padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.055); }
.door-summary-grid span { width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--dark); font-weight: 900; }
.door-summary-grid strong { display: block; margin-bottom: 6px; color: #fff; }
.door-summary-grid p { margin: 0; color: #dfe3dc; line-height: 1.5; }
.door-summary-checks { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.door-summary-checks p { margin: 0; padding: 12px 13px; border-radius: 11px; background: rgba(255,255,255,.08); color: #e5e8e1; line-height: 1.45; }
.door-summary-checks strong { color: var(--accent); }
.door-memory-line { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.door-memory-line strong { padding: 10px 8px; border-radius: 10px; background: #fff; color: var(--dark); font-size: .75rem; text-align: center; }

.door-advanced-note {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.door-advanced-note h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.door-advanced-note p:not(.section-kicker) { max-width: 800px; margin: 0; color: var(--muted); line-height: 1.55; }

.door-guide-next {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #dce887;
  border-radius: 18px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.door-guide-next h2 { margin: 0 0 6px; font-size: clamp(1.45rem, 3vw, 2rem); }
.door-guide-next p:not(.section-kicker) { margin: 0; max-width: 680px; color: var(--muted); line-height: 1.5; }
.door-next-actions { flex: 0 0 auto; display: grid; gap: 8px; }
.door-next-actions a { text-decoration: none; text-align: center; }

@media (max-width: 760px) {
  .door-guide-intro h1 { font-size: clamp(2.2rem, 11vw, 3.3rem); line-height: 1.04; }
  .door-guide-flow { display: grid; grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .door-guide-flow > span[aria-hidden="true"] { display: none; }
  .door-guide-section { padding: 17px 12px; border-radius: 16px; }
  .door-guide-section-head { grid-template-columns: 1fr; gap: 10px; }
  .door-guide-step { justify-self: start; }
  .door-basic-grid, .door-summary-grid, .door-why-grid, .door-summary-checks { grid-template-columns: 1fr; }
  .door-reference-explain { grid-template-columns: 1fr; }
  .door-reference-copy { border-left: 0; border-top: 1px solid var(--line); padding: 18px 16px; }
  .door-memory-line { grid-template-columns: repeat(2, 1fr); }
  .door-guide-summary { padding: 20px 14px; }
  .door-guide-next { align-items: stretch; flex-direction: column; padding: 20px 16px; }
  .door-next-actions { width: 100%; }
  .door-next-actions a { width: 100%; }
  .door-arm-rule { padding: 18px 16px; }
}

@media (max-width: 500px) {
  .door-worker-row { grid-template-columns: 118px minmax(0, 1fr); padding: 8px 12px 15px; gap: 6px; }
  .door-worker-svg { max-width: 118px; }
  .door-worker-row strong { font-size: .9rem; }
  .door-worker-row p { font-size: .84rem; }
  .door-memory-line { grid-template-columns: 1fr; }
  .door-plan-svg { margin-inline: auto; max-width: 460px; }
}

.door-reference-strip {
  margin: -2px 14px 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--accent);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-align: center;
}
