:root { color-scheme: light dark; }
body { margin: 0; font-family: Arial, sans-serif; background: #0f172a; color: #e2e8f0; }
.page { padding: 1rem; }
h1 { margin: 0; }
.meta { margin: 0.25rem 0 1rem; color: #93c5fd; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { border-bottom: 1px solid #334155; padding: 0.5rem; text-align: left; vertical-align: top; }
tr.blocked { background: rgba(127, 29, 29, 0.35); }
tr.zero-review { outline: 2px solid #f59e0b; }
.badge { display: inline-block; border-radius: 999px; padding: 0.12rem 0.5rem; font-size: 0.75rem; }
.badge.ready { background: #14532d; color: #bbf7d0; }
.badge.blocked { background: #7f1d1d; color: #fecaca; }
.small-list { margin: 0; padding-left: 1rem; }
.small-list li { margin-bottom: 0.2rem; }
a { color: #93c5fd; }

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}
table {
  min-width: 900px;
}
caption {
  padding: 0.5rem 0;
  text-align: left;
  color: #cbd5e1;
  font-size: 0.8rem;
}
a:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
  border-radius: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 720px) {
  .page { padding: 0.75rem; }
}

.factory-lifecycle-section { margin: 1.25rem 0 2rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.eyebrow { margin: 0 0 .3rem; color: #38bdf8; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { margin: 0; font-size: 1.35rem; }
.section-copy { margin: .4rem 0 0; max-width: 72rem; color: #94a3b8; }
.factory-lifecycle-grid { display: grid; gap: 1rem; }
.lifecycle-card { border: 1px solid #334155; border-radius: 16px; padding: 1rem; background: rgba(15,23,42,.72); box-shadow: 0 14px 40px rgba(2,6,23,.2); }
.lifecycle-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: .9rem; }
.lifecycle-card-head h3 { margin: .2rem 0; font-size: 1.05rem; }
.lifecycle-card-head p { margin: 0; color: #94a3b8; font-size: .86rem; }
.lifecycle-standard { color: #38bdf8; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project-state { border: 1px solid #475569; border-radius: 999px; padding: .22rem .55rem; font-size: .68rem; font-weight: 800; }
.phase-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7,minmax(140px,1fr)); gap: .55rem; overflow-x: auto; }
.phase-step { min-width: 140px; border: 1px solid #334155; border-radius: 12px; padding: .65rem; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "idx copy" "state state"; gap: .45rem .55rem; background: rgba(2,6,23,.55); }
.phase-step.active { border-color: #38bdf8; box-shadow: inset 0 0 0 1px rgba(56,189,248,.35); }
.phase-step.not-evidenced { border-style: dashed; opacity: .8; }
.phase-step.pending { opacity: .65; }

.phase-index { grid-area: idx; width: 1.65rem; height: 1.65rem; border-radius: 50%; display: grid; place-items: center; background: #1e293b; font-size: .75rem; font-weight: 800; }
.phase-copy { grid-area: copy; min-width: 0; }
.phase-copy strong { display: block; font-size: .78rem; line-height: 1.2; }
.phase-copy span { display: block; margin-top: .18rem; color: #38bdf8; font-size: .62rem; font-weight: 800; }
.phase-copy small { display: block; margin-top: .35rem; color: #94a3b8; font-size: .65rem; line-height: 1.3; }
.phase-state { grid-area: state; justify-self: start; border-radius: 999px; padding: .12rem .42rem; background: #1e293b; color: #cbd5e1; font-size: .58rem; font-weight: 800; letter-spacing: .04em; }
.phase-step.active .phase-state { background: #0c4a6e; color: #bae6fd; }
.lifecycle-empty { padding: 1rem; border: 1px dashed #475569; border-radius: 12px; color: #94a3b8; }
@media (max-width: 720px) {
  .lifecycle-card-head { flex-direction: column; }
  .phase-track { grid-template-columns: repeat(7,78vw); }
}
