.skeleton {
  display: flex;
  justify-content: center;
  padding: var(--space-7) var(--space-5);
}

/* Center the panel vertically in the content area — scoped to this page so
   other pages keep their top alignment. `.content` is already a flex column;
   it grows to fit the panel, so this only centers when there is spare height. */
.content:has(> .skeleton) {
  justify-content: center;
}
.skeleton__panel {
  width: 100%;
  max-width: 960px;
  background: var(--surface-raised);
  border: var(--border-w-bold) solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton__head {
  padding: var(--space-6) var(--space-6) var(--space-5);
  border-bottom: var(--border-w-bold) solid var(--border);
  background: var(--secondary);
  color: var(--on-color);
}
.skeleton__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: var(--label-spacing-wide);
  margin: 0 0 12px;
}
.skeleton__title {
  font-family: var(--font-display);
  font-size: var(--fs-display-m);
  line-height: 1.05;
  margin: 0 0 10px;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
.skeleton__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.45;
  margin: 0;
  max-width: 56ch;
}
.skeleton__quota,
.skeleton__quota-reached {
  margin: var(--space-1) 0 0;
  font-weight: var(--fw-semibold);
}
.skeleton__quota-reached-icon {
  color: var(--highlight);
  margin-right: var(--space-1);
  font-size: 1.5em;
}
.skeleton__upgrade {
  font-weight: var(--fw-regular);
}
.skeleton__upgrade a {
  color: inherit;
  text-decoration: underline;
}

.skeleton__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-7);
  padding: var(--space-4) var(--space-6) var(--space-5);
}

.skeleton-question {
  padding: var(--space-4) 0;
  border-top: 2px dashed var(--hue-cream-2);
}
.skeleton-question:nth-child(1),
.skeleton-question:nth-child(2) {
  border-top: none;
}
.skeleton-question--wide {
  grid-column: 1 / -1;
}

.skeleton-question__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin: 0 0 4px;
}
.skeleton-question__num {
  font-family: var(--font-display);
  font-size: var(--fs-body-l);
  color: var(--primary);
  line-height: 1;
}
.skeleton-question__title {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-l);
}
.skeleton-question__help {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.skeleton__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  padding: 13px 14px;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--text);
  resize: vertical;
  min-height: 96px;
}
.skeleton__textarea::placeholder {
  color: var(--text-muted);
}
.skeleton__textarea:focus {
  outline: var(--border-w) solid var(--primary);
  outline-offset: 1px;
}

.skeleton__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6) var(--space-6);
  border-top: var(--border-w-bold) solid var(--border);
}
.skeleton__actions .altcha-field {
  margin-block: 0;
  margin-inline-start: auto;
}
.skeleton__hint {
  font-family: var(--font-mono);
  font-size: var(--fs-body-s);
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 720px) {
  .skeleton {
    padding: var(--space-5) var(--space-4);
  }
  .skeleton__grid {
    grid-template-columns: 1fr;
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
  .skeleton-question:nth-child(2) {
    border-top: 2px dashed var(--hue-cream-2);
  }
  /* Stack full-width like the sign-up page: altcha, then the button, then the
     hint centered underneath. */
  .skeleton__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
  .skeleton__actions .altcha-field {
    order: -1;
    margin-inline-start: 0;
  }
  .skeleton__hint {
    order: 1;
    text-align: center;
  }
}
