.manifest-shell {
  max-width: 1120px;
}

.manifest-page .top-nav {
  margin-bottom: 2rem;
}

.manifest-hero {
  max-width: 860px;
  margin: 0 auto;
}

.manifest-formula {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(16, 185, 129, 0.12);
  color: rgba(248, 250, 252, 0.95);
  font-size: clamp(1.06rem, 0.8vw + 0.92rem, 1.36rem);
  font-weight: 800;
  line-height: 1.45;
}

.manifest-path,
.manifest-daily,
.manifest-modes,
.manifest-grounding {
  display: grid;
  gap: 1.6rem;
}

.manifest-step-grid,
.manifest-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.manifest-step-grid .app-card__icon {
  font-weight: 800;
  font-size: 1.2rem;
}

.manifest-card,
.manifest-mode,
.manifest-grounding {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.66);
  box-shadow: 0 24px 60px rgba(4, 9, 20, 0.34);
}

.manifest-card {
  display: grid;
  gap: 1.1rem;
  padding: 1.2rem;
}

.manifest-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.manifest-fields label {
  display: grid;
  gap: 0.45rem;
  color: var(--color-text);
  font-weight: 800;
}

.manifest-fields textarea {
  min-height: 8rem;
  resize: vertical;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.82);
  color: var(--color-text);
  font: inherit;
  line-height: 1.45;
  padding: 0.85rem;
}

.manifest-fields textarea:focus {
  border-color: rgba(52, 211, 153, 0.68);
  outline: 2px solid rgba(52, 211, 153, 0.18);
}

.manifest-fields textarea::placeholder {
  color: rgba(203, 213, 225, 0.55);
}

.manifest-actions,
.manifest-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.manifest-actions .cta {
  border: 0;
  cursor: pointer;
}

.manifest-status {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

.manifest-mode {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1.2rem;
}

.manifest-mode h3 {
  margin: 0;
  font-size: 1.08rem;
}

.manifest-mode p,
.manifest-grounding p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.manifest-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

.manifest-links a:hover {
  background: rgba(52, 211, 153, 0.14);
  color: var(--color-text);
}

.manifest-routing.info-panels {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.manifest-grounding {
  padding: 1.35rem;
}

@media (max-width: 640px) {
  .manifest-formula,
  .manifest-card,
  .manifest-mode,
  .manifest-grounding {
    padding: 1rem;
  }
}
