.stage08-shell {
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 125, 255, .12), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 32rem);
  color: #102033;
}

.stage08-shell .container {
  max-width: 1180px;
}

.stage08-loading,
.stage08-empty,
.stage08-error {
  min-height: 56vh;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 1rem;
  padding: 5rem 1rem;
}

.stage08-empty-actions,
.stage08-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.stage08-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: stretch;
  padding: 2.4rem 0 1.4rem;
}

.stage08-hero h1 {
  margin: .4rem 0 .7rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.stage08-hero p {
  max-width: 760px;
  color: #516173;
  font-size: 1.08rem;
}

.stage08-hero aside,
.stage08-card {
  border: 1px solid rgba(20, 38, 61, .1);
  border-radius: 26px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 44px rgba(16, 32, 51, .08);
}

.stage08-hero aside {
  padding: 1.4rem;
  color: #31445d;
  font-weight: 700;
}

.stage08-card {
  padding: 1.25rem;
}

.stage08-card-head,
.stage08-variant-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .9rem;
}

.stage08-card h2,
.stage08-variant-card h3 {
  margin: .35rem 0 .45rem;
}

.stage08-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: .28rem .65rem;
  background: #e8f0ff;
  color: #164c9c;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.stage08-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stage08-facts,
.stage08-context-grid dl,
.stage08-status-list {
  display: grid;
  gap: .55rem;
  margin: 1rem 0;
}

.stage08-facts div,
.stage08-context-grid dl div,
.stage08-status-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .8rem;
  border-radius: 16px;
  background: #f5f7fb;
}

.stage08-facts dt,
.stage08-context-grid dt,
.stage08-status-list strong {
  color: #64748b;
  font-size: .82rem;
}

.stage08-facts dd,
.stage08-context-grid dd,
.stage08-status-list span {
  margin: 0;
  color: #102033;
  font-weight: 800;
  text-align: right;
  word-break: break-word;
}

.stage08-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 1rem;
  margin: 1rem 0;
}

.stage08-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.stage08-form-grid label {
  display: grid;
  gap: .4rem;
  font-weight: 800;
  color: #24364b;
}

.stage08-controls .input {
  width: 100%;
  min-width: 0;
}

.stage08-muted {
  color: #64748b;
  font-size: .92rem;
}

.stage08-warning {
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  padding: .85rem 1rem;
  font-weight: 800;
}

.stage08-preview-section {
  margin: 1rem 0;
}

.stage08-variants {
  display: grid;
  gap: 1rem;
}

.stage08-variant-card {
  border: 1px solid rgba(20, 38, 61, .12);
  border-radius: 24px;
  padding: 1rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.stage08-variant-card.selected {
  border-color: #2f7dff;
  box-shadow: 0 0 0 4px rgba(47, 125, 255, .12);
}

.stage08-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.stage08-preview-grid > div {
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(241,245,249,.9)),
    repeating-linear-gradient(45deg, rgba(15,23,42,.04) 0 8px, transparent 8px 16px);
  border: 1px solid rgba(15, 23, 42, .08);
  padding: .7rem;
}

.stage08-preview-grid span {
  display: block;
  margin-bottom: .45rem;
  color: #475569;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stage08-preview-grid svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
}

.stage08-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.stage08-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.stage08-table-wrap th,
.stage08-table-wrap td {
  padding: .85rem .75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.stage08-table-wrap th {
  color: #475569;
  font-size: .82rem;
}

.stage08-layer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.stage08-layer-grid > div {
  border-radius: 18px;
  background: #f8fafc;
  padding: 1rem;
}

.stage08-layer-grid h3 {
  margin: 0 0 .65rem;
  font-size: 1rem;
}

.stage08-layer-grid ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: .45rem;
}

.stage08-layer-grid li {
  display: grid;
  gap: .2rem;
  color: #475569;
  font-size: .9rem;
}

.stage08-layer-grid li strong {
  color: #102033;
}

.stage08-next {
  margin-top: 1rem;
}

.stage08-availability{display:grid;gap:4px;margin:0 0 18px;padding:16px 18px;border:1px solid #b9d4c7;border-radius:16px;background:#eef8f2;color:#00223d}
.stage08-availability.is-basic{border-color:#f2c99e;background:#fff7ec}
.stage08-availability span{color:#52667c;line-height:1.55}
.stage08-recovery-shell{min-height:72vh;padding:72px 0}
.stage08-recovery{max-width:820px!important}
.stage08-recovery-card{display:grid;justify-items:center;gap:16px;margin-top:20px;padding:46px;border:1px solid #cad9e6;border-radius:24px;background:#fff;text-align:center;box-shadow:0 18px 48px rgba(0,34,61,.08)}
.stage08-recovery-card h1{margin:0;color:#00223d;font-size:clamp(1.8rem,4vw,2.65rem);letter-spacing:-.04em}
.stage08-recovery-card>p{max-width:620px;margin:0;color:#52667c;line-height:1.7}
.stage08-recovery-icon{display:grid;width:58px;height:58px;place-items:center;border-radius:50%;background:#fff0dd;color:#8d4500;font-size:2rem;font-weight:900}
.stage08-recovery-note{display:grid;gap:4px;width:100%;padding:16px;border-radius:14px;background:#f4f7fa;text-align:left}
.stage08-recovery-note span{color:#52667c;line-height:1.55}

.stage08-recent {
  margin-top: 1rem;
  display: grid;
  gap: .75rem;
}

.stage08-recent button {
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #fff;
  padding: .85rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  text-align: left;
  cursor: pointer;
}

.stage08-recent span {
  color: #64748b;
}

@media (max-width: 900px) {
  .stage08-hero,
  .stage08-context-grid,
  .stage08-layout,
  .stage08-form-grid,
  .stage08-preview-grid,
  .stage08-layer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .stage08-shell .container {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  .stage08-hero {
    padding-top: 1.2rem;
  }

  .stage08-card,
  .stage08-variant-card,
  .stage08-hero aside {
    border-radius: 18px;
    padding: .9rem;
  }

  .stage08-card-head,
  .stage08-variant-head,
  .stage08-next-actions,
  .stage08-empty-actions,
  .stage08-recent button {
    flex-direction: column;
    align-items: stretch;
  }

  .stage08-facts div,
  .stage08-context-grid dl div,
  .stage08-status-list li {
    flex-direction: column;
    gap: .2rem;
  }

  .stage08-facts dd,
  .stage08-context-grid dd,
  .stage08-status-list span {
    text-align: left;
  }

  .stage08-preview-grid svg {
    max-height: 190px;
  }

  .stage08-recovery-shell{padding:38px 0}
  .stage08-recovery-card{padding:24px 18px}
  .stage08-recovery,
  .stage08-recovery-card,
  .stage08-recovery-card > *,
  .stage08-recovery-note{min-width:0;max-width:100%}
  .stage08-recovery-card h1,
  .stage08-recovery-card p,
  .stage08-recovery-note span{overflow-wrap:anywhere;word-break:normal}
}
