.stage06-shell {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 45%, #f8fafc 100%);
  color: var(--text-strong, #102033);
  padding-bottom: 72px;
}

.stage06-loading,
.stage06-empty {
  min-height: 420px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.stage06-empty {
  max-width: 760px;
}

.stage06-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
  padding: 44px 0 28px;
}

.stage06-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.stage06-hero p,
.stage06-hero aside {
  color: var(--text-muted, #516074);
  font-size: 1.02rem;
  line-height: 1.7;
}

.stage06-hero aside,
.stage06-card {
  border: 1px solid rgba(15, 60, 102, 0.11);
  border-radius: 28px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 20px 60px rgba(15, 60, 102, 0.08);
}

.stage06-hero aside {
  padding: 24px;
}

.stage06-context-grid,
.stage06-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.stage06-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stage06-card,
.stage06-panels article {
  padding: 24px;
}

.stage06-card h2,
.stage06-panels h3 {
  margin: 8px 0 14px;
}

.stage06-badge,
.stage06-source {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e8f4ff;
  color: #075985;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.stage06-card dl,
.stage06-evidence dl,
.stage06-panels dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.stage06-card dl div,
.stage06-evidence dl div,
.stage06-panels dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.stage06-card dt,
.stage06-evidence dt,
.stage06-panels dt {
  color: #64748b;
  font-size: 0.86rem;
}

.stage06-card dd,
.stage06-evidence dd,
.stage06-panels dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.stage06-input-card {
  margin: 22px 0;
}

.stage06-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stage06-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}

.stage06-form .input {
  width: 100%;
  min-width: 0;
}

.stage06-optional {
  margin-top: 16px;
  border: 1px solid rgba(15, 60, 102, 0.1);
  border-radius: 20px;
  padding: 16px;
  background: #fbfdff;
}

.stage06-optional summary {
  cursor: pointer;
  font-weight: 850;
}

.stage06-optional p,
.stage06-form-note,
.stage06-action-state,
.stage06-evidence p {
  color: #64748b;
  line-height: 1.7;
}

.stage06-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0;
}

.stage06-result-empty,
.stage06-error {
  border-radius: 22px;
  padding: 18px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.stage06-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.stage06-summary div,
.stage06-panels article {
  border: 1px solid rgba(15, 60, 102, 0.1);
  border-radius: 22px;
  background: #fff;
  padding: 18px;
}

.stage06-summary span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.stage06-summary strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2vw, 1.45rem);
}

.stage06-evidence {
  border-radius: 24px;
  padding: 20px;
  background: #eef6ff;
  border: 1px solid #cbe6ff;
}

.stage06-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid rgba(15, 60, 102, 0.1);
  border-radius: 22px;
  background: #fff;
}

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

.stage06-table-wrap th,
.stage06-table-wrap td {
  padding: 13px 14px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
}

.stage06-table-wrap th {
  color: #475569;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stage06-table-wrap tr.is-open td {
  background: #fffaf0;
}

.stage06-scenario-list,
.stage06-recent {
  display: grid;
  gap: 10px;
}

.stage06-scenario-list button,
.stage06-recent button {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fbff;
  padding: 13px;
  cursor: pointer;
}

.stage06-scenario-list button:hover,
.stage06-recent button:hover {
  border-color: #60a5fa;
  background: #eff6ff;
}

.stage06-checklist {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.stage06-checklist li {
  border-left: 4px solid #93c5fd;
  padding-left: 10px;
}

.stage06-checklist span {
  display: inline-block;
  color: #075985;
  font-size: 0.76rem;
  font-weight: 850;
}

.stage06-checklist strong,
.stage06-checklist p {
  display: block;
  margin: 2px 0;
}

.stage06-checklist p {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.stage06-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 8px;
}

.stage06-recent {
  margin-top: 24px;
}

.stage06-intake-card {
  margin-top: 22px;
  border: 1px solid #bfdbfe;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.stage06-intake-form,
.stage06-intake-receipt {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
}

.stage06-intake-form-head h4,
.stage06-intake-receipt h4 {
  margin: 6px 0 2px;
  color: #0f172a;
}

.stage06-intake-form-head p,
.stage06-intake-note,
.stage06-intake-confirm,
.stage06-intake-receipt dd {
  color: #475569;
  line-height: 1.55;
}

.stage06-intake-summary,
.stage06-intake-receipt dl {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.stage06-intake-summary div,
.stage06-intake-receipt dl div {
  display: grid;
  gap: 4px;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
}

.stage06-intake-summary dt,
.stage06-intake-receipt dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stage06-intake-summary dd,
.stage06-intake-receipt dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.stage06-intake-note {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.stage06-intake-note textarea {
  min-height: 92px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px;
  font: inherit;
  color: #0f172a;
  background: #ffffff;
}

.stage06-intake-confirm {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #eff6ff;
  padding: 12px;
}

@media (max-width: 900px) {
  .stage06-hero,
  .stage06-context-grid,
  .stage06-panels {
    grid-template-columns: 1fr;
  }

  .stage06-form-grid,
  .stage06-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .stage06-shell {
    padding-bottom: 48px;
  }

  .stage06-hero {
    padding-top: 28px;
  }

  .stage06-card,
  .stage06-panels article,
  .stage06-hero aside {
    border-radius: 20px;
    padding: 18px;
  }

  .stage06-form-grid,
  .stage06-summary,
  .stage06-card dl div,
  .stage06-evidence dl div,
  .stage06-panels dl div {
    grid-template-columns: 1fr;
  }

  .stage06-table-wrap table {
    min-width: 620px;
  }

  .stage06-next-actions .button,
  .stage06-form .button,
  .stage06-intake-form .button {
    width: 100%;
    justify-content: center;
  }

  .stage06-intake-summary,
  .stage06-intake-receipt dl {
    grid-template-columns: 1fr;
  }
}
