:root {
  color-scheme: light;
  --hb-bg: #f5f0e8;
  --hb-bg-soft: rgba(255, 255, 255, 0.84);
  --hb-surface: rgba(255, 252, 248, 0.96);
  --hb-surface-strong: #ffffff;
  --hb-line: rgba(36, 53, 61, 0.12);
  --hb-line-strong: rgba(36, 53, 61, 0.18);
  --hb-text: #1d2d35;
  --hb-text-soft: #5a6b74;
  --hb-accent: #0f766e;
  --hb-accent-strong: #115e59;
  --hb-accent-soft: rgba(15, 118, 110, 0.12);
  --hb-warm: #d97706;
  --hb-shadow: 0 18px 50px rgba(27, 44, 56, 0.1);
  --hb-radius-xl: 28px;
  --hb-radius-lg: 22px;
  --hb-radius-md: 16px;
  --hb-radius-sm: 12px;
  --hb-font: "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.16), transparent 28%),
    linear-gradient(180deg, #f9f4ed 0%, var(--hb-bg) 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--hb-text);
  font-family: var(--hb-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.hb-scroll-lock {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.hb-loading,
.hb-error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.hb-loading-card,
.hb-error-card {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-xl);
  background: var(--hb-surface);
  box-shadow: var(--hb-shadow);
  backdrop-filter: blur(16px);
}

.hb-error-card h1,
.hb-loading-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.hb-error-card p,
.hb-loading-card p {
  margin: 0;
  color: var(--hb-text-soft);
  line-height: 1.7;
}

.hb-page {
  position: relative;
  padding: 18px 14px 28px;
}

.hb-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.hb-sidebar,
.hb-main {
  display: grid;
  gap: 16px;
}

.hb-card {
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-xl);
  background: var(--hb-bg-soft);
  box-shadow: var(--hb-shadow);
  backdrop-filter: blur(18px);
}

.hb-hero {
  overflow: hidden;
  position: relative;
  padding: 60px 20px 22px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(255, 255, 255, 0.2)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 244, 0.94));
}

.hb-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.18), transparent 65%);
  pointer-events: none;
}

.hb-updated-at {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: rgba(29, 45, 53, 0.66);
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.hb-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hb-description {
  margin: 16px 0 0;
  max-width: 28rem;
  color: var(--hb-text-soft);
  line-height: 1.75;
  font-size: 1rem;
}

.hb-steps-card {
  padding: 18px 16px 16px;
}

.hb-section-head {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.hb-section-head h2 {
  margin: 0;
  font-size: 1.02rem;
}

.hb-section-head p {
  margin: 6px 0 0;
  color: var(--hb-text-soft);
  font-size: 0.92rem;
}

.hb-step-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.hb-step-list::-webkit-scrollbar {
  height: 8px;
}

.hb-step-list::-webkit-scrollbar-thumb {
  background: rgba(29, 45, 53, 0.16);
  border-radius: 999px;
}

.hb-mobile-steps-bar {
  display: none;
}

.hb-step-button {
  width: 100%;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  text-align: left;
  border: 0;
  padding: 15px;
  border-radius: var(--hb-radius-md);
  background: var(--hb-surface-strong);
  border: 1px solid transparent;
  color: inherit;
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.hb-step-button:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.22);
}

.hb-step-button.is-active {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.1), rgba(255, 255, 255, 0.98));
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.1);
}

.hb-step-number {
  display: block;
  margin: 0 0 7px;
  color: var(--hb-accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.hb-step-name {
  display: block;
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.hb-step-text-tag {
  margin-top: 10px;
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: #9a580a;
  font-size: 0.82rem;
}

.hb-step-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hb-step-marker-svg {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 8px 18px rgba(15, 118, 110, 0.12));
}

.hb-step-marker-svg text {
  fill: #1d2d35;
  font-family: "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 36px;
  font-weight: 800;
}

.hb-step-copy {
  min-width: 0;
}

.hb-step-sheet[hidden] {
  display: none;
}

.hb-step-sheet {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  align-items: end;
}

.hb-step-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 33, 0.4);
  backdrop-filter: blur(6px);
}

.hb-step-sheet-panel {
  position: relative;
  z-index: 1;
  max-height: min(78vh, 760px);
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 251, 247, 0.98);
  box-shadow: 0 -18px 44px rgba(20, 30, 38, 0.18);
}

.hb-step-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(36, 53, 61, 0.08);
}

.hb-step-sheet-kicker {
  margin: 0 0 5px;
  color: var(--hb-accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.hb-step-sheet-head h3 {
  margin: 0;
  font-size: 1.12rem;
}

.hb-step-sheet-close {
  appearance: none;
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--hb-accent-strong);
  cursor: pointer;
  font-weight: 700;
}

.hb-step-sheet-list {
  display: grid;
  gap: 10px;
  max-height: calc(min(78vh, 760px) - 86px);
  overflow: auto;
  padding: 14px 18px 24px;
}

.hb-step-sheet-item {
  width: 100%;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 0;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(36, 53, 61, 0.08);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.hb-step-sheet-item:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.18);
}

.hb-step-sheet-item.is-active {
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.14);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.98));
}

.hb-step-sheet-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hb-step-sheet-marker .hb-step-marker-svg {
  width: 58px;
  height: 58px;
}

.hb-step-sheet-copy {
  min-width: 0;
}

.hb-step-sheet-number {
  display: block;
  margin-bottom: 5px;
  color: var(--hb-accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.hb-step-sheet-title {
  display: block;
  font-size: 0.98rem;
  line-height: 1.45;
}

.hb-step-sheet-text-tag {
  margin-top: 8px;
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: #9a580a;
  font-size: 0.74rem;
}

.hb-step-sheet-text-tag.is-muted {
  background: rgba(29, 45, 53, 0.08);
  color: var(--hb-text-soft);
}

.hb-stage-card,
.hb-flow-card {
  padding: 18px;
}

.hb-stage-card.is-entering {
  animation: hb-stage-enter 220ms ease;
}

@keyframes hb-stage-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hb-stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.hb-stage-label {
  margin: 0;
  color: var(--hb-text-soft);
  font-size: 0.88rem;
}

.hb-stage-title {
  margin: 6px 0 0;
  font-size: clamp(1.36rem, 3vw, 2rem);
  line-height: 1.25;
}

.hb-stage-note {
  margin: 8px 0 0;
  color: var(--hb-text-soft);
  line-height: 1.7;
}

.hb-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hb-action-button,
.hb-nav-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.hb-action-button:hover,
.hb-nav-button:hover {
  transform: translateY(-1px);
}

.hb-action-button:disabled,
.hb-nav-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.hb-action-button {
  padding: 11px 16px;
  background: var(--hb-surface-strong);
  color: var(--hb-text);
  border: 1px solid var(--hb-line-strong);
}

.hb-action-button[data-variant="accent"],
.hb-nav-button[data-variant="accent"] {
  background: var(--hb-accent);
  color: #fff;
  border: 1px solid transparent;
}

.hb-action-button[data-variant="soft"] {
  background: var(--hb-accent-soft);
  color: var(--hb-accent-strong);
  border: 1px solid transparent;
}

.hb-media-card {
  margin-top: 18px;
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--hb-radius-xl) - 6px);
  border: 1px solid var(--hb-line);
  background:
    linear-gradient(180deg, rgba(243, 247, 246, 0.96), rgba(255, 255, 255, 0.92));
  min-height: 280px;
}

.hb-media-viewport {
  position: relative;
  padding: 10px;
}

.hb-media-button,
.hb-media-frame {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
}

.hb-media {
  width: 100%;
  min-height: 260px;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: calc(var(--hb-radius-lg) - 6px);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.9));
}

.hb-media--image {
  display: block;
  height: auto;
}

.hb-media-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  text-align: center;
  color: var(--hb-text-soft);
}

.hb-media-placeholder strong {
  display: block;
  margin-bottom: 8px;
  color: var(--hb-text);
  font-size: 1rem;
}

.hb-media-caption {
  padding: 0 14px 14px;
  color: var(--hb-text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hb-copy-card {
  margin-top: 16px;
  overflow: hidden;
  border-radius: calc(var(--hb-radius-xl) - 8px);
  border: 1px solid var(--hb-line);
  background: rgba(255, 255, 255, 0.82);
  transition:
    max-height 220ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    margin-top 220ms ease;
}

.hb-copy-card.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transform: translateY(-4px);
  pointer-events: none;
  border-width: 0;
}

.hb-copy-inner {
  padding: 18px;
}

.hb-copy-inner h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.hb-copy-inner p {
  margin: 0;
  color: var(--hb-text-soft);
  line-height: 1.8;
  white-space: pre-wrap;
}

.hb-flow-card {
  display: grid;
  gap: 14px;
}

.hb-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hb-progress-track {
  flex: 1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(29, 45, 53, 0.08);
}

.hb-progress-value {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hb-accent), var(--hb-warm));
  transition: width 220ms ease;
}

.hb-progress-text {
  min-width: 72px;
  text-align: right;
  color: var(--hb-text-soft);
  font-size: 0.92rem;
}

.hb-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hb-nav-button {
  padding: 14px 16px;
  background: var(--hb-surface-strong);
  color: var(--hb-text);
  border: 1px solid var(--hb-line-strong);
}

.hb-nav-button span {
  display: block;
}

.hb-nav-label {
  font-size: 0.82rem;
  color: var(--hb-text-soft);
}

.hb-nav-title {
  margin-top: 4px;
  font-weight: 700;
}

.hb-swipe-hint {
  margin: 0;
  color: var(--hb-text-soft);
  font-size: 0.92rem;
}

.hb-lightbox[hidden] {
  display: none;
}

.hb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 28, 33, 0.84);
  backdrop-filter: blur(8px);
}

.hb-lightbox-panel {
  width: min(1280px, 100%);
  max-height: 100%;
  display: grid;
  gap: 14px;
}

.hb-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}

.hb-lightbox-top h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.hb-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hb-lightbox-media {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: var(--hb-radius-lg);
  background: rgba(255, 255, 255, 0.08);
}

.hb-lightbox-zoom-shell {
  display: grid;
  gap: 10px;
}

.hb-lightbox-zoom-surface {
  width: 100%;
  max-height: calc(100vh - 132px);
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: var(--hb-radius-lg);
  touch-action: none;
}

.hb-lightbox-zoom-media {
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.hb-lightbox-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.5;
}

.hb-lightbox-close {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.hb-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hb-lightbox-zoom-reset {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.hb-lightbox-zoom-reset:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (min-width: 960px) {
  .hb-page {
    padding: 24px;
  }

  .hb-shell {
    grid-template-columns: 350px minmax(0, 1fr);
    align-items: start;
  }

  .hb-sidebar {
    position: sticky;
    top: 24px;
  }

  .hb-steps-card {
    padding: 18px;
  }

  .hb-step-list {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
  }

  .hb-stage-card,
  .hb-flow-card {
    padding: 22px;
  }
}

@media (max-width: 959px) {
  .hb-steps-card {
    position: sticky;
    top: 10px;
    z-index: 4;
    backdrop-filter: blur(20px);
  }
}

@media (max-width: 640px) {
  .hb-page {
    padding: 10px 10px 20px;
  }

  .hb-hero,
  .hb-steps-card,
  .hb-stage-card,
  .hb-flow-card {
    border-radius: 22px;
  }

  .hb-hero {
    padding: 52px 16px 18px;
  }

  .hb-updated-at {
    top: 12px;
    right: 12px;
  }

  .hb-title {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .hb-description {
    font-size: 0.96rem;
  }

  .hb-step-button {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .hb-step-marker-svg {
    width: 58px;
    height: 58px;
  }

  .hb-step-marker-svg text {
    font-size: 31px;
  }

  .hb-stage-head {
    flex-direction: column;
  }

  .hb-stage-actions,
  .hb-nav {
    width: 100%;
  }

  .hb-action-button,
  .hb-nav-button {
    width: 100%;
    justify-content: center;
  }

  .hb-media {
    min-height: 220px;
    max-height: 52vh;
  }

  .hb-progress {
    align-items: flex-start;
    flex-direction: column;
  }

  .hb-progress-text {
    min-width: 0;
    text-align: left;
  }

  .hb-lightbox {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.hb-page[data-layout="mobile"] {
  padding: 10px 10px calc(182px + env(safe-area-inset-bottom, 0px));
}

.hb-page[data-layout="mobile"] .hb-shell {
  width: 100%;
  gap: 12px;
}

.hb-page[data-layout="mobile"] .hb-sidebar,
.hb-page[data-layout="mobile"] .hb-main {
  gap: 12px;
}

.hb-page[data-layout="mobile"] .hb-card {
  border-radius: 22px;
}

.hb-page[data-layout="mobile"] .hb-hero {
  padding: 52px 16px 18px;
  min-height: 0;
}

.hb-page[data-layout="mobile"] .hb-updated-at {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.76);
}

.hb-page[data-layout="mobile"] .hb-title {
  font-size: clamp(1.42rem, 7vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hb-page[data-layout="mobile"] .hb-description {
  max-width: none;
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.66;
}

.hb-page[data-layout="mobile"] .hb-steps-card {
  position: sticky;
  top: 8px;
  z-index: 24;
  padding: 12px 12px 10px;
  background: rgba(255, 251, 247, 0.88);
  backdrop-filter: blur(18px);
}

.hb-page[data-layout="mobile"] .hb-section-head {
  margin-bottom: 10px;
}

.hb-page[data-layout="mobile"] .hb-section-head h2 {
  font-size: 0.96rem;
}

.hb-page[data-layout="mobile"] .hb-section-head p {
  margin-top: 4px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.hb-page[data-layout="mobile"] .hb-step-list {
  grid-auto-flow: column;
  grid-auto-columns: 104px;
  gap: 8px;
  padding-bottom: 2px;
  scroll-padding-inline: 2px;
}

.hb-page[data-layout="mobile"] .hb-step-button {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
  padding: 10px 8px 12px;
  min-height: 114px;
  border-radius: 18px;
}

.hb-page[data-layout="mobile"] .hb-step-marker-svg {
  width: 44px;
  height: 44px;
}

.hb-page[data-layout="mobile"] .hb-step-marker-svg text {
  font-size: 25px;
}

.hb-page[data-layout="mobile"] .hb-step-number {
  display: none;
}

.hb-page[data-layout="mobile"] .hb-step-name {
  display: -webkit-box;
  overflow: hidden;
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.84rem;
  line-height: 1.34;
}

.hb-page[data-layout="mobile"] .hb-step-text-tag {
  margin-top: 6px;
  font-size: 0.68rem;
}

.hb-page[data-layout="mobile"] .hb-stage-card {
  padding: 16px 14px 14px;
  border-radius: 22px;
}

.hb-page[data-layout="mobile"] .hb-stage-head {
  flex-direction: column;
  gap: 12px;
}

.hb-page[data-layout="mobile"] .hb-stage-label {
  font-size: 0.82rem;
}

.hb-page[data-layout="mobile"] .hb-stage-title {
  font-size: clamp(1.34rem, 6.8vw, 1.92rem);
  line-height: 1.22;
}

.hb-page[data-layout="mobile"] .hb-stage-note {
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.62;
}

.hb-page[data-layout="mobile"] .hb-stage-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hb-page[data-layout="mobile"] .hb-action-button {
  width: 100%;
  padding: 12px 10px;
  border-radius: 16px;
  font-weight: 700;
}

.hb-page[data-layout="mobile"] .hb-media-card {
  margin-top: 14px;
  min-height: 0;
  border-radius: 18px;
}

.hb-page[data-layout="mobile"] .hb-media-viewport {
  padding: 8px;
}

.hb-page[data-layout="mobile"] .hb-media-button,
.hb-page[data-layout="mobile"] .hb-media-frame {
  height: auto;
}

.hb-page[data-layout="mobile"] .hb-media {
  min-height: 0;
  border-radius: 16px;
}

.hb-page[data-layout="mobile"] .hb-media--image {
  width: 100%;
  max-width: 100%;
  max-height: none;
  background: transparent;
}

.hb-page[data-layout="mobile"] .hb-media--video {
  min-height: 190px;
  max-height: min(46vh, 420px);
}

.hb-page[data-layout="mobile"] .hb-media-placeholder {
  min-height: 220px;
  padding: 24px 18px;
}

.hb-page[data-layout="mobile"] .hb-media-caption {
  padding: 0 12px 12px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.hb-page[data-layout="mobile"] .hb-copy-card {
  margin-top: 14px;
  border-radius: 18px;
}

.hb-page[data-layout="mobile"] .hb-copy-inner {
  padding: 16px 14px;
}

.hb-page[data-layout="mobile"] .hb-copy-inner h3 {
  font-size: 0.95rem;
}

.hb-page[data-layout="mobile"] .hb-copy-inner p {
  font-size: 0.95rem;
  line-height: 1.72;
}

.hb-page[data-layout="mobile"] .hb-flow-card {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 252, 248, 0.92);
  box-shadow: 0 20px 44px rgba(27, 44, 56, 0.16);
  backdrop-filter: blur(22px);
}

.hb-page[data-layout="mobile"] .hb-progress {
  gap: 8px;
  align-items: center;
}

.hb-page[data-layout="mobile"] .hb-progress-track {
  height: 8px;
}

.hb-page[data-layout="mobile"] .hb-progress-text {
  min-width: 52px;
  text-align: right;
  font-size: 0.84rem;
}

.hb-page[data-layout="mobile"] .hb-nav {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hb-page[data-layout="mobile"] .hb-nav-button {
  width: 100%;
  min-height: 74px;
  padding: 12px;
  border-radius: 18px;
}

.hb-page[data-layout="mobile"] .hb-nav-label {
  font-size: 0.76rem;
}

.hb-page[data-layout="mobile"] .hb-nav-title {
  margin-top: 3px;
  font-size: 0.94rem;
  line-height: 1.3;
}

.hb-page[data-layout="mobile"] .hb-swipe-hint {
  font-size: 0.82rem;
  line-height: 1.45;
}

.hb-page[data-layout="mobile"] .hb-lightbox {
  padding: 0;
}

.hb-page[data-layout="mobile"] .hb-lightbox-top {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 10px;
  right: 10px;
  z-index: 4;
  align-items: flex-start;
}

.hb-page[data-layout="mobile"] .hb-lightbox-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hb-page[data-layout="mobile"] .hb-lightbox-panel {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
}

.hb-page[data-layout="mobile"] .hb-lightbox-top h3 {
  max-width: min(52vw, 210px);
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(18, 28, 33, 0.34);
  backdrop-filter: blur(10px);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hb-page[data-layout="mobile"] [data-role="lightbox-body"] {
  position: absolute;
  inset: 0;
}

.hb-page[data-layout="mobile"] .hb-lightbox-zoom-shell {
  position: absolute;
  inset: 0;
}

.hb-page[data-layout="mobile"] .hb-lightbox-zoom-surface {
  position: absolute;
  inset: 0;
  max-height: none;
  border-radius: 0;
}

.hb-page[data-layout="mobile"] .hb-lightbox-hint {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 28, 33, 0.3);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
}

.hb-page[data-layout="mobile"] .hb-lightbox-close {
  padding: 9px 14px;
}

.hb-page[data-layout="mobile"] .hb-lightbox-zoom-reset {
  padding: 9px 12px;
}

.hb-page[data-layout="mobile"] .hb-lightbox-media {
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 116px);
  border-radius: 14px;
}

.hb-page[data-layout="mobile"] .hb-mobile-steps-bar {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hb-page[data-layout="mobile"] .hb-mobile-steps-copy {
  min-width: 0;
}

.hb-page[data-layout="mobile"] .hb-mobile-steps-label {
  margin: 0 0 4px;
  color: var(--hb-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.hb-page[data-layout="mobile"] .hb-mobile-steps-status {
  margin: 0;
  color: var(--hb-text);
  font-size: 0.86rem;
  font-weight: 700;
}

.hb-page[data-layout="mobile"] .hb-mobile-steps-button {
  appearance: none;
  border: 0;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--hb-accent-strong);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .hb-page[data-layout="mobile"] {
    padding-bottom: calc(194px + env(safe-area-inset-bottom, 0px));
  }

  .hb-page[data-layout="mobile"] .hb-title {
    font-size: clamp(1.3rem, 7vw, 1.72rem);
  }

  .hb-page[data-layout="mobile"] .hb-stage-actions {
    grid-template-columns: 1fr;
  }

  .hb-page[data-layout="mobile"] .hb-step-list {
    grid-auto-columns: 96px;
  }

  .hb-page[data-layout="mobile"] .hb-nav {
    grid-template-columns: 1fr 1fr;
  }

  .hb-page[data-layout="mobile"] .hb-nav-button {
    min-height: 68px;
    padding: 10px;
  }

  .hb-page[data-layout="mobile"] .hb-nav-title {
    font-size: 0.88rem;
  }

  .hb-page[data-layout="mobile"] .hb-mobile-steps-bar {
    align-items: stretch;
  }

  .hb-page[data-layout="mobile"] .hb-mobile-steps-button {
    padding-inline: 12px;
  }

  .hb-page[data-layout="mobile"] .hb-step-sheet-head {
    padding: 16px 14px 12px;
  }

  .hb-page[data-layout="mobile"] .hb-step-sheet-list {
    padding: 12px 14px 22px;
  }

  .hb-page[data-layout="mobile"] .hb-step-sheet-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
}
