
.hw { padding: var(--mlp-cc-sec-pad-y, clamp(64px, 9vh, 96px)) var(--mlp-section-gutter, clamp(20px, 4vw, 64px)); }
.hw-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(28px, 3.6vh, 40px); }
.hw-head { max-width: 760px; }
.hw-head h2 { margin: 14px 0 0; font: 700 clamp(1.9rem, 3vw, 2.75rem)/1.12 Poppins, system-ui, sans-serif; letter-spacing: -.022em; color: var(--mel-text-primary); }
.hw-head p { margin: 14px 0 0; max-width: 56ch; font: 400 clamp(1rem, .4vw + .9rem, 1.12rem)/1.62 Poppins, system-ui, sans-serif; color: var(--mel-text-secondary); }

.hw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(18px, 2.4vw, 32px); row-gap: 36px; }
.hw-step { display: flex; flex-direction: column; min-width: 0; }
/* The rail: each node draws the line on to the next column, never through text. */
.hw-rail { position: relative; height: 36px; margin-bottom: 18px; }
.hw-step:not(:last-child) .hw-rail::after { content: ""; position: absolute; top: 50%; left: 48px; right: calc(-1 * clamp(18px, 2.4vw, 32px) + 12px); height: 1px;
  background: linear-gradient(90deg, rgba(129,140,248,.7), rgba(34,211,238,.35)); }
.light .hw-step:not(:last-child) .hw-rail::after { background: linear-gradient(90deg, rgba(30,58,138,.45), rgba(14,116,144,.2)); }
.hw-node { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font: 700 12px/1 'JetBrains Mono', ui-monospace, monospace; color: #e0e7ff; background: #0b1120; border: 1.5px solid #818CF8;
  box-shadow: 0 0 0 5px rgba(129,140,248,.10), 0 0 22px rgba(129,140,248,.45); }
.light .hw-node { color: #fff; background: #1E3A8A; border-color: #1E3A8A; box-shadow: 0 0 0 5px rgba(30,58,138,.10); }
.hw-step h3 { margin: 0; font: 650 19px/1.25 Poppins, system-ui, sans-serif; letter-spacing: -.015em; color: var(--mel-text-primary); }
.hw-step-body { margin: 6px 0 18px; font: 400 14.5px/1.5 Poppins, system-ui, sans-serif; color: var(--mel-text-secondary); }

.hw-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 18px; border-radius: 20px; min-width: 0;
  border: 1px solid rgba(255,255,255,.08); background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); transition: transform .2s ease, border-color .2s ease; }
.hw-panel:hover { transform: translateY(-3px); border-color: rgba(129,140,248,.35); }
.light .hw-panel { border-color: rgba(15,23,42,.08); background: #fff; box-shadow: 0 16px 36px rgba(15,23,42,.07); }

/* 01 Store */
.hw-store-top { display: flex; align-items: center; gap: 14px; }
.hw-store-logo { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.45)) drop-shadow(0 0 14px rgba(59,130,246,.35)); }
.light .hw-store-logo { filter: drop-shadow(0 10px 12px rgba(15,23,42,.25)); }
.hw-store-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hw-store-meta strong { font: 650 18px/1.15 'Segoe UI Variable', 'Segoe UI', Poppins, system-ui, sans-serif; color: var(--mel-text-primary); }
.hw-store-meta span { font: 400 13px/1.3 'Segoe UI Variable', 'Segoe UI', Poppins, system-ui, sans-serif; color: var(--mel-text-secondary); }
.hw-store-get { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 8px; text-decoration: none;
  font: 600 14px/1 'Segoe UI Variable', 'Segoe UI', Poppins, system-ui, sans-serif; color: #fff; background: #4f5bd5; transition: background .15s ease, box-shadow .15s ease; }
.hw-store-get:hover { background: #5d68e4; box-shadow: 0 0 24px rgba(129,140,248,.5); }
.hw-store-get.is-you { box-shadow: 0 0 0 3px rgba(129,140,248,.25); }
.light .hw-store-get { background: #1E3A8A; }
.light .hw-store-get:hover { background: #24449e; box-shadow: none; }
.hw-store-more { align-self: center; font: 500 12.5px/1.3 Poppins, system-ui, sans-serif; color: var(--mel-text-tertiary); text-decoration: none; }
.hw-store-more:hover { color: var(--mel-text-secondary); text-decoration: underline; text-underline-offset: 3px; }

/* 02 Access levels */
.hw-apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hw-apps li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.hw-app-ico { display: grid; place-items: center; width: 22px; }
.hw-app-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13.5px/1.2 Poppins, system-ui, sans-serif; color: var(--mel-text-primary); }
.hw-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: rgba(0,0,0,.28); }
.light .hw-seg { background: #e2e8f0; }
.hw-seg button { padding: 5px 8px; border: 0; border-radius: 6px; cursor: pointer; background: transparent; font: 600 10.5px/1 Poppins, system-ui, sans-serif; color: var(--mel-text-tertiary); }
.hw-seg button.on { color: #fff; background: #4f5bd5; box-shadow: 0 0 12px rgba(129,140,248,.45); }
.light .hw-seg button.on { background: #1E3A8A; box-shadow: none; }
.hw-seg button:focus-visible { outline: 2px solid #818CF8; outline-offset: 1px; }
.hw-locked { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; font: 600 10.5px/1 Poppins, system-ui, sans-serif; color: var(--mel-text-tertiary); }

/* 03 Task */
.hw-prompt { margin: 0; min-height: 3.1em; font: 400 14px/1.55 Poppins, system-ui, sans-serif; color: var(--mel-text-primary); }
.hw-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: #818CF8; animation: hw-blink 1s steps(1) infinite; }
@keyframes hw-blink { 50% { opacity: 0; } }
.hw-timeline { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid rgba(148,163,184,.16); display: grid; gap: 9px; }
.hw-timeline li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.hw-timeline li.is-in { opacity: 1; transform: none; }
.hw-dot { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: #10B981; }
.hw-timeline li.is-wait .hw-dot { background: transparent; border: 1.5px solid #F59E0B; }
.hw-step-text { font: 400 13px/1.4 Poppins, system-ui, sans-serif; color: var(--mel-text-secondary); }
.hw-approve { padding: 4px 9px; border-radius: 999px; font: 600 11px/1 Poppins, system-ui, sans-serif; color: #fde68a; border: 1px solid rgba(245,158,11,.5); }
.light .hw-approve { color: #92400e; }

.hw-docs { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 Poppins, system-ui, sans-serif; color: #a5b4fc; text-decoration: none; }
.hw-docs:hover { text-decoration: underline; text-underline-offset: 3px; }
.light .hw-docs { color: #1E3A8A; }
.hw-store-get:focus-visible, .hw-store-more:focus-visible, .hw-docs:focus-visible { outline: 2px solid #818CF8; outline-offset: 3px; }

@media (max-width: 1000px) {
  .hw-steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .hw-step { position: relative; padding-left: 52px; }
  .hw-rail { position: absolute; left: 0; top: 0; bottom: -36px; height: auto; width: 36px; margin: 0; }
  .hw-step:not(:last-child) .hw-rail::after { top: 44px; bottom: 8px; left: 17.5px; right: auto; width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(129,140,248,.7), rgba(34,211,238,.3)); }
  .hw-step h3 { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-timeline li, .hw-panel, .hw-store-get { transition: none; }
  .hw-panel:hover { transform: none; }
  .hw-caret { animation: none; }
}
