.code-page {
  min-height: 100vh;
}

.code-shell {
  margin: 0 auto;
  max-width: 900px;
  padding: 70px 22px 110px;
}

.code-header {
  z-index: 8;
}

.code-intro {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 128px;
  padding: 26px 0 34px;
}

.code-intro h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.12;
  margin: 0 0 14px;
}

.code-intro p:last-child {
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}

.code-intro img {
  background: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  height: 128px;
  object-fit: cover;
  width: 128px;
}

.code-status {
  background: rgba(47, 125, 106, 0.12);
  border: 1px solid rgba(47, 125, 106, 0.28);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.7;
  margin: 0 0 18px;
  min-height: 54px;
  padding: 15px 18px;
}

.code-status.error {
  background: rgba(179, 79, 66, 0.12);
  border-color: rgba(179, 79, 66, 0.32);
  color: var(--clay);
}

.code-card,
.code-result {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(17, 17, 15, 0.08);
  padding: clamp(20px, 4vw, 34px);
}

.code-form {
  display: grid;
  gap: 16px;
}

.code-form label {
  color: var(--muted);
  display: grid;
  font-weight: 900;
  gap: 8px;
}

.code-form input {
  background: #f5f3ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 52px;
  padding: 12px 14px;
}

.code-note {
  color: var(--muted);
  line-height: 1.8;
  margin: 18px 0 0;
}

.code-result {
  display: grid;
  gap: 20px;
}

.code-owner {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
}

.code-owner small,
.code-display small {
  color: var(--muted);
  font-weight: 900;
}

.code-owner strong {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
}

.code-owner span {
  color: var(--muted);
  font-weight: 800;
}

.code-display {
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 10px;
  padding: clamp(20px, 6vw, 42px);
  text-align: center;
}

.code-display small {
  color: rgba(255, 255, 255, 0.72);
}

.code-display b {
  color: var(--gold);
  font-size: clamp(2rem, 9vw, 5.8rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.secondary-form-action {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 54px;
  padding: 12px 18px;
}

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .code-shell {
    padding-inline: 18px;
  }

  .code-intro {
    grid-template-columns: 1fr;
  }

  .code-intro img {
    height: 96px;
    width: 96px;
  }
}
