.guide-page {
  display: block;
  padding: 0;
}

.worker-guide-shell {
  position: relative;
  z-index: 1;
  inline-size: min(100% - 2rem, 920px);
  margin-inline: auto;
  padding-block: 2rem 5rem;
}

.guide-back-link,
.official-doc-link {
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: none;
}

.guide-back-link:hover,
.official-doc-link:hover {
  text-decoration: underline;
}

.guide-back-link:focus-visible,
.official-doc-link:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.7);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.worker-guide-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-block: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(14, 32, 57, 0.94), rgba(15, 23, 42, 0.82));
  box-shadow: 0 24px 55px rgba(2, 8, 23, 0.34);
}

.guide-shield {
  display: grid;
  place-items: center;
  inline-size: 3.4rem;
  block-size: 3.4rem;
  flex: 0 0 3.4rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 1rem;
  background: rgba(14, 165, 233, 0.12);
  font-size: 1.6rem;
}

.guide-eyebrow,
.current-worker-label {
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.worker-guide-hero h1 {
  margin-block: 0.25rem 0.5rem;
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  line-height: 1.15;
}

.worker-guide-hero p,
.guide-choice-card > div:last-child > p,
.why-one-worker p {
  color: #aebdd2;
  line-height: 1.65;
}

.current-worker-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.72);
}

.current-worker-card strong {
  display: block;
  margin-block-start: 0.2rem;
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.current-worker-status {
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.legacy-workers-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-block-end: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(251, 146, 60, 0.38);
  border-radius: 0.9rem;
  background: rgba(124, 45, 18, 0.14);
}

.legacy-workers-card h2 {
  margin-block: 0.35rem 0.25rem;
  color: #fff7ed;
  font-size: 1rem;
}

.legacy-workers-card p {
  color: #fed7aa;
  font-size: 0.8rem;
  line-height: 1.5;
}

.legacy-workers-card ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  max-inline-size: 24rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legacy-workers-card li {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(251, 146, 60, 0.38);
  border-radius: 999px;
  background: rgba(124, 45, 18, 0.24);
  color: #ffedd5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

.guide-choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-block: 1rem;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.78);
}

.guide-choice-card.recommended {
  border-color: rgba(34, 211, 238, 0.34);
}

.guide-choice-card.destructive {
  border-color: rgba(251, 146, 60, 0.38);
}

.guide-choice-number,
.step-marker {
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.guide-choice-number {
  inline-size: 2.4rem;
  block-size: 2.4rem;
  background: rgba(14, 165, 233, 0.14);
  color: #7dd3fc;
}

.destructive .guide-choice-number {
  background: rgba(249, 115, 22, 0.14);
  color: #fdba74;
}

.guide-option-badge {
  display: inline-flex;
  margin-block-end: 0.45rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  color: #67e8f9;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-option-badge.danger {
  border-color: rgba(251, 146, 60, 0.4);
  background: rgba(249, 115, 22, 0.1);
  color: #fdba74;
}

.guide-choice-card h2,
.why-one-worker h2 {
  margin-block: 0 0.45rem;
  color: #f8fafc;
  font-size: 1.15rem;
}

.data-loss-warning {
  display: flex;
  gap: 0.75rem;
  margin-block: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(248, 113, 113, 0.38);
  border-radius: 0.75rem;
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
}

.data-loss-warning p {
  line-height: 1.55;
}

.delete-steps {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.delete-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.25);
}

.step-marker {
  inline-size: 1.75rem;
  block-size: 1.75rem;
  background: rgba(56, 189, 248, 0.13);
  color: #7dd3fc;
  font-size: 0.75rem;
}

.delete-steps strong {
  color: #f8fafc;
}

.delete-steps p {
  margin-block-start: 0.2rem;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.5;
}

.delete-steps code {
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-block-start: 1rem;
}

.why-one-worker {
  margin-block-start: 1rem;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.64);
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.reason-grid > div {
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.22);
}

.reason-grid span,
.reason-grid strong {
  display: block;
}

.reason-grid span {
  margin-block-end: 0.45rem;
  font-size: 1.25rem;
}

.reason-grid strong {
  margin-block-end: 0.25rem;
  color: #e2e8f0;
  font-size: 0.86rem;
}

.reason-grid p {
  font-size: 0.78rem;
}

@media (max-width: 680px) {
  .worker-guide-hero,
  .guide-choice-card {
    grid-template-columns: 1fr;
  }

  .worker-guide-hero {
    flex-direction: column;
  }

  .current-worker-card,
  .guide-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .current-worker-status {
    white-space: normal;
  }

  .reason-grid {
    grid-template-columns: 1fr;
  }

  .legacy-workers-card {
    grid-template-columns: 1fr;
  }

  .legacy-workers-card ul {
    justify-content: flex-start;
  }

  .guide-actions .btn {
    inline-size: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow-bg {
    display: none;
  }
}
