/* Layout only. Color, type, and chamfer components come from the pinned PRN UI specimen. */

body { max-width: none; padding: 0; }
main { max-width: 760px; margin: 0 auto; padding: 32px 16px; }
h2 { margin: 0 0 12px; font-size: 1.15rem; }
p { margin: 8px 0 16px; }
a { color: var(--cyan); }
a.btn { color: inherit; text-decoration: none; }
a.btn[aria-disabled="true"] { pointer-events: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
small, .muted { color: var(--text-muted); }
small { display: block; margin: 8px 0; }
.subtitle { margin-bottom: 16px; }

.card::after { content: none; }
.card.card--accent-left { --accent: var(--border); }
.card.card--accent-left.accent-orange,
.card.card--accent-left[aria-current="step"] { --accent: var(--orange); }
.callout { margin: 16px 0; }

.steps { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 16px; padding: 0; list-style: none; font-family: var(--font-mono); }
.steps a { display: inline-block; padding: 8px 0; }
.theme-field { max-width: 280px; margin: 12px 0 16px; }
.btn-row .field { flex: 1 1 12rem; }
.text-field .field-control { align-items: stretch; }
textarea.field-input { min-height: 150px; resize: vertical; }
.metric-grid.resources { grid-template-columns: 1fr 1fr; margin: 12px 0 16px; }

progress { display: block; width: 100%; height: 18px; margin: 12px 0; accent-color: var(--orange); }
#status, #download-status, #offline-state, #next-step, #speech-stage { min-height: 1.5em; }
#audio-cache-info { min-height: 3em; }
details { margin-top: 16px; }
summary { cursor: pointer; }
[hidden] { display: none !important; }

.pipeline, .sentence-progress { margin: 8px 0; padding-left: 1.4em; }
.sentence-progress { max-height: 240px; overflow: auto; }
.sentence-progress li { margin: 8px 0; }
.sentence-progress small { display: block; }
.sentence-progress [aria-current="step"] { color: var(--orange); }

.license-table { overflow-x: auto; }
.license-table table { width: 100%; border-collapse: collapse; }
.license-table th, .license-table td { border-bottom: 1px solid var(--border); padding: 6px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#source { overflow-wrap: anywhere; }

@media (max-width: 520px) {
  main { padding: 24px 14px; }
  .metric-grid.resources { grid-template-columns: 1fr; }
}
