.link-shell {
  max-width: 420px;
  margin: 0 auto 2rem;
}

.link-lead {
  color: var(--on-variant, #5c6b66);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.link-step {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--app-border, #e2e8e4);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
}

.link-step[hidden] {
  display: none !important;
}

.link-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-align: right;
}

.link-input {
  width: 100%;
  border: 1px solid var(--app-border, #d5ddd8);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fafcfb;
}

.link-input:focus {
  outline: 2px solid var(--brand, #0f6e56);
  outline-offset: 1px;
}

.link-input-code,
.link-input-otp {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.35rem;
}

.link-input-otp {
  letter-spacing: 0.35em;
}

.link-btn {
  width: 100%;
  margin-top: 0.35rem;
}

.link-hint,
.link-help {
  font-size: 0.8rem;
  color: var(--on-variant, #5c6b66);
  line-height: 1.6;
  margin: 0.25rem 0 0;
}

.btn-text {
  background: none;
  border: none;
  color: var(--brand, #0f6e56);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.link-bale-notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.link-bale-help {
  background: #f8faf9;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.link-bale-help[hidden] {
  display: none !important;
}

.link-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

.link-error[hidden] {
  display: none !important;
}

.link-confirm-label {
  text-align: center;
  font-weight: 600;
  margin: 0;
}

.link-confirm-code {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--primary, #0f6e56);
  margin: 0.5rem 0 1rem;
}

.link-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.link-success-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary, #0f6e56);
  margin: 0 0 0.5rem;
}

.link-success-hint {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  font-weight: 600;
}
