.state-surface {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 52px) 0;
}
.state-heading { max-width: 760px; margin-bottom: 26px; }
.state-heading h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.3vw, 5.4rem);
  font-weight: 640;
  letter-spacing: -.055em;
  line-height: .98;
}
.state-heading > p:last-child { color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }
.state-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.state-actions button, .state-actions a { text-decoration: none; }
.loading-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(22px, 4vw, 52px); align-items: stretch; }
.loading-lead, .loading-rail { border-top: 1px solid var(--ink); padding-top: 14px; }
.loading-figure { height: 430px; margin-bottom: 20px; background: var(--paper-deep); }
.loading-copy { display: grid; gap: 12px; }
.skeleton-line, .skeleton-block {
  overflow: hidden;
  background: linear-gradient(100deg, var(--paper-deep) 10%, var(--paper-light) 35%, var(--paper-deep) 60%);
  background-size: 220% 100%;
  animation: skeleton-shift 1.5s linear infinite;
}
.skeleton-line { height: 18px; }
.skeleton-line.title { width: 82%; height: 46px; }
.skeleton-line.short { width: 48%; }
.loading-rail { display: grid; gap: 15px; }
.loading-card { min-height: 150px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.loading-card .skeleton-line + .skeleton-line { margin-top: 12px; }
@keyframes skeleton-shift { to { background-position: -220% 0; } }
.recovery-layout { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(360px, 1.25fr); gap: clamp(26px, 5vw, 70px); align-items: center; }
.state-art {
  min-height: 470px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  text-align: center;
}
.state-art strong { display: block; font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem); line-height: .9; }
.state-art span { display: block; margin-top: 18px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.state-card { padding: clamp(24px, 4vw, 46px); border-top: 5px solid var(--coral); background: var(--paper-light); box-shadow: var(--shadow); }
.state-card.state-empty { border-color: var(--teal); }
.state-card.state-unavailable { border-color: var(--moss); }
.state-card h1 { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(2.7rem, 4.3vw, 4.4rem); font-weight: 640; letter-spacing: -.045em; line-height: 1.03; }
.state-card > p { color: var(--ink-soft); line-height: 1.75; }
.state-fact { margin: 18px 0; padding: 14px 16px; border-left: 4px solid var(--ink); background: var(--paper-deep); }
.state-fact span, .state-fact strong { display: block; }
.state-fact span { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.state-fact strong { margin-top: 4px; font-family: var(--serif); font-size: 1.35rem; }
.prototype-state-panel { max-width: 1180px; margin: 40px auto 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.prototype-state-panel summary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .08em; }
.prototype-state-panel summary::after { content: "+"; color: var(--coral-dark); font-family: var(--serif); font-size: 1.2rem; }
.prototype-state-panel[open] summary::after { content: "−"; }
.prototype-state-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0 0 14px; }
.prototype-state-links a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 10px; border: 1px solid var(--rule); background: var(--paper-light); color: var(--ink-soft); font-size: .75rem; font-weight: 720; text-align: center; text-decoration: none; }
.prototype-state-links a[aria-current="page"] { border-color: var(--coral); color: var(--coral-dark); }
[data-loading-state="completing"] .loading-figure, [data-loading-state="completing"] .skeleton-line { opacity: .65; }
@media (prefers-reduced-motion: reduce) {
  .skeleton-line, .skeleton-block { animation: none; background: var(--paper-deep); }
}
@media (max-width: 820px) {
  .loading-layout, .recovery-layout { grid-template-columns: 1fr; }
  .loading-figure { height: 340px; }
  .state-art { min-height: 300px; }
  .prototype-state-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .state-surface { padding-top: 18px; }
  .state-heading h1 { font-size: 3.1rem; }
  .loading-figure { height: 260px; }
  .state-card { padding: 22px 18px; }
  .state-card h1 { font-size: 2.8rem; }
  .state-actions { display: grid; grid-template-columns: 1fr; }
  .state-actions > * { width: 100%; justify-content: center; }
  .prototype-state-links { grid-template-columns: 1fr; }
}
.filter-links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
