:root {
  --steam-aqua: #8ddfd2;
  --steam-aqua-deep: #197d72;
  --steam-aqua-soft: #e7f8f5;
  --steam-danger: #b84232;
  --steam-danger-soft: #fff0eb;
}

.header-actions button.hamburger-btn {
  flex: 0 0 42px;
  min-height: 42px;
  padding: 0;
}

.guide-hero--steam::after {
  right: -110px;
  bottom: -250px;
  width: 670px;
  opacity: 0.78;
  background:
    radial-gradient(circle, transparent 0 11%, rgba(141, 223, 210, 0.25) 11.3% 12.2%, transparent 12.5% 22%, rgba(253, 246, 227, 0.08) 22.3% 23.2%, transparent 23.5% 36%, rgba(255, 140, 0, 0.14) 36.3% 37%, transparent 37.3%);
}

.steam-console h2 {
  margin-bottom: 17px;
}

.steam-metrics {
  display: grid;
  gap: 9px;
  margin: 0;
}

.steam-metrics > div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 13px 14px;
  background: rgba(253, 246, 227, 0.055);
  border: 1px solid rgba(253, 246, 227, 0.08);
  border-radius: 14px;
}

.steam-metrics dt {
  color: var(--brand-orange-light);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: var(--font-weight-black);
  line-height: 1;
  letter-spacing: -0.04em;
}

.steam-metrics dt small {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.steam-metrics dd {
  margin: 0;
  color: rgba(253, 246, 227, 0.66);
  font-size: var(--font-size-xs);
  line-height: 1.45;
}

.heat-status {
  margin: 16px 0 0;
  padding-top: 16px;
  color: rgba(253, 246, 227, 0.65);
  border-top: 1px solid rgba(253, 246, 227, 0.11);
  font-size: var(--font-size-xs);
  line-height: 1.55;
}

.heat-status span {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  background: var(--brand-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.13), 0 0 12px rgba(255, 140, 0, 0.6);
}

.heat-status strong {
  color: var(--brand-cream);
}

.route-note {
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(0, 1.45fr);
  gap: 18px 34px;
  align-items: end;
  margin-top: 28px;
  padding: 24px 28px;
  color: var(--guide-ink);
  background: var(--steam-aqua-soft);
  border: 1px solid rgba(25, 125, 114, 0.18);
  border-radius: 22px;
  box-shadow: var(--shadow-xs);
}

.route-note .section-label {
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  color: var(--steam-aqua-deep);
}

.route-note h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  letter-spacing: -0.025em;
}

.route-note > p:last-child {
  margin: 0;
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.guide-grid--steam-start {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.72fr);
}

.steam-visual-card {
  overflow: hidden;
  margin: 0;
  padding: 12px;
  background: var(--guide-paper);
  border: 1px solid rgba(34, 40, 41, 0.1);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.steam-guide-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 17px;
}

.steam-placeholder {
  position: relative;
  display: grid;
  min-height: 485px;
  overflow: hidden;
  padding: 28px;
  place-items: center;
  background:
    linear-gradient(rgba(253, 246, 227, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253, 246, 227, 0.045) 1px, transparent 1px),
    linear-gradient(150deg, #222829, #394447);
  background-size: 24px 24px, 24px 24px, auto;
  border-radius: 17px;
}

.photo-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  padding: 7px 10px;
  color: rgba(253, 246, 227, 0.72);
  background: rgba(14, 17, 18, 0.62);
  border: 1px dashed rgba(253, 246, 227, 0.28);
  border-radius: var(--radius-full);
  font-size: 0.66rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steam-placeholder > strong {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: rgba(253, 246, 227, 0.26);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.06em;
}

.steam-device {
  position: relative;
  width: 230px;
  height: 255px;
  transform: translateY(15px);
}

.steam-device__body {
  position: absolute;
  right: 15px;
  bottom: 7px;
  width: 184px;
  height: 186px;
  background: linear-gradient(145deg, #fef8e8 0%, #d9d4c8 68%, #aca9a1 100%);
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 54% 45% 30% 38% / 52% 50% 38% 45%;
  box-shadow: inset -22px -20px 34px rgba(34, 40, 41, 0.18), 0 30px 42px rgba(0, 0, 0, 0.25);
}

.steam-device__handle {
  position: absolute;
  right: 23px;
  bottom: 58px;
  z-index: 2;
  width: 82px;
  height: 105px;
  border: 16px solid #575f61;
  border-left-width: 12px;
  border-radius: 52% 42% 45% 50%;
  transform: rotate(5deg);
}

.steam-device__trigger {
  position: absolute;
  right: 75px;
  bottom: 107px;
  z-index: 3;
  width: 11px;
  height: 49px;
  background: var(--brand-orange);
  border-radius: 8px;
  transform: rotate(-7deg);
}

.steam-device__cap {
  position: absolute;
  top: 33px;
  left: 91px;
  z-index: 4;
  width: 56px;
  height: 45px;
  background: #454e50;
  border: 3px solid #727c7f;
  border-radius: 15px 15px 8px 8px;
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, 0.08);
}

.steam-device__nozzle {
  position: absolute;
  top: 82px;
  left: 0;
  z-index: 1;
  width: 96px;
  height: 28px;
  background: linear-gradient(#e7e2d8, #aaa79f);
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px 4px 4px 12px;
  transform: rotate(-4deg);
}

.steam-device__nozzle::before {
  position: absolute;
  top: 4px;
  left: -30px;
  width: 33px;
  height: 14px;
  content: '';
  background: #697275;
  border-radius: 7px 2px 2px 7px;
}

.steam-lines {
  position: absolute;
  top: 163px;
  left: 7px;
  display: grid;
  gap: 14px;
  width: 76px;
}

.steam-lines i {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--steam-aqua));
  border-radius: 2px;
  transform-origin: right;
  animation: steamDrift 2.2s ease-in-out infinite;
}

.steam-lines i:nth-child(2) {
  width: 84%;
  animation-delay: -0.7s;
}

.steam-lines i:nth-child(3) {
  width: 62%;
  animation-delay: -1.4s;
}

@keyframes steamDrift {
  0%, 100% { opacity: 0.28; transform: translateX(5px) scaleX(0.8); }
  50% { opacity: 0.9; transform: translateX(-6px) scaleX(1); }
}

.steam-visual-card figcaption {
  padding: 13px 7px 3px;
  color: var(--color-neutral-600);
  font-size: var(--font-size-xs);
  line-height: 1.55;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.attachment-card {
  min-height: 205px;
  padding: 22px;
  background: var(--guide-paper);
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  box-shadow: var(--shadow-xs);
}

.attachment-card__index {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--guide-ink);
  background: var(--steam-aqua-soft);
  border: 1px solid rgba(25, 125, 114, 0.17);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: var(--font-weight-bold);
}

.attachment-card h3 {
  margin: 0 0 8px;
  color: var(--guide-ink);
  font-size: var(--font-size-lg);
}

.attachment-card p {
  margin: 0;
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
  line-height: 1.65;
}

.attachment-card--warning {
  background: var(--steam-danger-soft);
  border-color: rgba(184, 66, 50, 0.2);
}

.attachment-card--warning .attachment-card__index {
  color: var(--steam-danger);
  background: #fff;
  border-color: rgba(184, 66, 50, 0.25);
}

.coupling-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}

.coupling-guide article,
.storage-card {
  padding: 26px;
  background: var(--guide-paper);
  border: 1px solid var(--guide-line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.coupling-guide article:last-child {
  color: var(--brand-cream);
  background: var(--guide-ink);
  border-color: var(--guide-ink);
}

.coupling-guide h3,
.storage-card h3 {
  margin: 0 0 10px;
  color: var(--guide-ink);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.coupling-guide p {
  margin: 0;
  color: var(--color-neutral-600);
  line-height: 1.68;
}

.coupling-guide article:last-child h3 {
  color: var(--brand-cream);
}

.coupling-guide article:last-child p {
  color: rgba(253, 246, 227, 0.68);
}

.coupling-guide article:last-child .mode-panel__tag {
  background: var(--brand-orange);
}

.surface-note {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--steam-aqua-soft);
  border-left: 6px solid var(--steam-aqua-deep);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.surface-note strong {
  color: var(--guide-ink);
  font-size: var(--font-size-lg);
}

.surface-note p {
  margin: 7px 0 0;
  color: var(--color-neutral-600);
  line-height: 1.65;
}

.lock-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lock-sequence article {
  position: relative;
  overflow: hidden;
  min-height: 215px;
  padding: 27px;
  color: var(--brand-cream);
  background: var(--guide-ink);
  border-radius: 23px;
}

.lock-sequence article:not(:last-child)::after {
  position: absolute;
  right: -13px;
  bottom: -35px;
  color: rgba(253, 246, 227, 0.055);
  content: '→';
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: var(--font-weight-black);
  line-height: 1;
}

.lock-sequence article > span {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  place-items: center;
  color: var(--guide-ink);
  background: var(--brand-orange);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

.lock-sequence h3 {
  margin: 0 0 8px;
  color: var(--brand-cream);
  font-size: var(--font-size-xl);
}

.lock-sequence p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(253, 246, 227, 0.66);
  line-height: 1.65;
}

.ambiguity-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 17px;
  max-width: 970px;
  margin-top: 24px;
  padding: 24px;
  background: var(--steam-danger-soft);
  border: 1px solid rgba(184, 66, 50, 0.22);
  border-radius: 20px;
}

.ambiguity-note__mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: #fff;
  background: var(--steam-danger);
  border-radius: 50%;
  font-weight: var(--font-weight-black);
}

.ambiguity-note strong {
  color: var(--steam-danger);
  font-size: var(--font-size-lg);
}

.ambiguity-note p {
  margin: 8px 0 0;
  color: var(--color-neutral-700);
  line-height: 1.7;
}

.pressure-route {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 48px;
  padding: 10px;
  color: var(--brand-cream);
  background: var(--guide-ink);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.pressure-route div {
  position: relative;
  min-width: 0;
  padding: 19px 16px;
}

.pressure-route div:not(:last-child)::after {
  position: absolute;
  top: 19px;
  right: 0;
  bottom: 19px;
  width: 1px;
  content: '';
  background: rgba(253, 246, 227, 0.13);
}

.pressure-route span {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-orange-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
}

.pressure-route strong {
  color: var(--brand-cream);
  font-size: var(--font-size-sm);
  line-height: 1.35;
}

.guide-grid--pressure {
  grid-template-columns: minmax(0, 1.05fr) minmax(290px, 0.65fr);
}

.pressure-warning {
  position: sticky;
  top: 170px;
  overflow: hidden;
  padding: 30px;
  color: var(--brand-cream);
  background: linear-gradient(155deg, #852f25, var(--steam-danger));
  border-radius: 25px;
  box-shadow: 0 20px 44px rgba(104, 30, 22, 0.22);
}

.pressure-warning__eyebrow {
  display: block;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.68rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pressure-warning > strong {
  display: block;
  max-width: 330px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.pressure-warning p {
  position: relative;
  z-index: 1;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.68;
}

.pressure-warning__seal {
  display: grid;
  width: 132px;
  height: 132px;
  margin: 30px 0 0 auto;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.045);
}

.pressure-warning__seal span {
  width: 51px;
  height: 48px;
  border: 8px solid var(--brand-orange-light);
  border-top: 0;
  border-radius: 8px;
}

.pressure-warning__seal span::before {
  display: block;
  width: 31px;
  height: 29px;
  margin: -25px auto 0;
  content: '';
  border: 7px solid var(--brand-orange-light);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.finish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: start;
}

.storage-card {
  background: var(--steam-aqua-soft);
  border-color: rgba(25, 125, 114, 0.17);
}

.storage-card .check-list {
  margin-top: 21px;
}

.storage-card .check-list li::before {
  content: '×';
  background: var(--steam-danger);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.safety-grid article {
  padding: 24px;
  background: var(--guide-paper);
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  box-shadow: var(--shadow-xs);
}

.safety-grid article > span {
  display: grid;
  width: 49px;
  height: 49px;
  margin-bottom: 20px;
  place-items: center;
  color: var(--guide-ink);
  background: var(--brand-orange);
  border-radius: 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: var(--font-weight-black);
}

.safety-grid h3 {
  margin: 0 0 8px;
  color: var(--guide-ink);
  font-size: var(--font-size-lg);
}

.safety-grid p {
  margin: 0;
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
  line-height: 1.65;
}

.voltage-note {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 26px 28px;
  color: var(--brand-cream);
  background: var(--guide-ink);
  border-radius: 22px;
}

.voltage-note__label {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-orange-light);
  font-size: 0.68rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.voltage-note strong {
  color: var(--brand-cream);
  font-size: var(--font-size-xl);
}

.voltage-note p {
  margin: 0;
  color: rgba(253, 246, 227, 0.68);
  line-height: 1.68;
}

.voltage-note p strong {
  color: var(--brand-cream);
  font-size: inherit;
}

.reference-table--steam [role='row'] {
  grid-template-columns: minmax(130px, 0.55fr) minmax(290px, 1.45fr) minmax(145px, 0.62fr);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 28px 0 0;
  background: rgba(253, 246, 227, 0.13);
  border: 1px solid rgba(253, 246, 227, 0.13);
  border-radius: 15px;
}

.spec-list div {
  padding: 16px;
  background: rgba(14, 17, 18, 0.42);
}

.spec-list dt {
  color: rgba(253, 246, 227, 0.52);
  font-size: var(--font-size-xs);
}

.spec-list dd {
  margin: 4px 0 0;
  color: var(--brand-cream);
  font-weight: var(--font-weight-bold);
}

@media (max-width: 1040px) {
  .attachment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .guide-grid--steam-start,
  .guide-grid--pressure,
  .finish-layout {
    grid-template-columns: 1fr;
  }

  .steam-visual-card {
    width: min(100%, 540px);
    justify-self: center;
  }

  .pressure-warning {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .route-note,
  .voltage-note {
    grid-template-columns: 1fr;
  }

  .route-note .section-label {
    grid-row: auto;
  }

  .lock-sequence {
    grid-template-columns: 1fr;
  }

  .lock-sequence article {
    min-height: auto;
  }

  .pressure-route {
    grid-template-columns: 1fr;
  }

  .pressure-route div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 13px 14px;
  }

  .pressure-route div:not(:last-child)::after {
    top: auto;
    right: 14px;
    bottom: 0;
    left: 14px;
    width: auto;
    height: 1px;
  }

  .pressure-route span {
    margin: 0;
  }

  .spec-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .steam-metrics > div {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .attachment-grid,
  .coupling-guide,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .attachment-card {
    min-height: auto;
  }

  .steam-placeholder {
    min-height: 390px;
  }

  .steam-device {
    transform: translateY(20px) scale(0.85);
  }

  .ambiguity-note {
    grid-template-columns: 1fr;
  }

  .reference-table--steam [role='row'] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .spec-list {
    grid-template-columns: 1fr;
  }

  .steam-placeholder {
    min-height: 340px;
    padding: 18px;
  }

  .steam-device {
    transform: translateY(24px) scale(0.72);
  }

  .photo-badge {
    top: 14px;
    left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steam-lines i {
    animation: none;
  }
}

@media print {
  .steam-lines {
    display: none;
  }

  .steam-placeholder,
  .pressure-warning,
  .lock-sequence article,
  .voltage-note {
    color: #111;
    background: #fff;
    border: 1px solid #999;
    box-shadow: none;
  }

  .steam-device,
  .pressure-warning__seal {
    display: none;
  }

  .lock-sequence h3,
  .lock-sequence p,
  .pressure-warning > strong,
  .pressure-warning p,
  .voltage-note strong,
  .voltage-note p {
    color: #111;
  }
}
