body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(180deg, #f5efe2 0%, #f1f5ef 100%);
  color: #1f2a1f;
}

body.pipeline-theme {
  background:
    radial-gradient(circle at top, rgba(27, 59, 111, 0.38), transparent 36%),
    linear-gradient(180deg, #08111f 0%, #0b1728 52%, #101f36 100%);
  color: #e7edf8;
}

a {
  color: #114b5f;
}

button,
.button-link {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: #114b5f;
  color: #fff;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.button-link.secondary,
.link-button {
  background: transparent;
  color: #114b5f;
  border: 1px solid #114b5f;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.site-header,
.section-heading,
.list-item,
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: #1f2a1f;
}

.pipeline-theme .brand {
  color: #f4f7fb;
}

.tagline,
.user-pill,
.card p,
label span,
dt {
  color: #4f5d4f;
}

.pipeline-theme .tagline,
.pipeline-theme .user-pill,
.pipeline-theme .card p,
.pipeline-theme label span,
.pipeline-theme dt,
.pipeline-theme .subtle,
.pipeline-theme .metric .eyebrow,
.pipeline-theme .table-card th,
.pipeline-theme .status-cluster h3 {
  color: #9fb1cb;
}

.nav a,
.link-button {
  text-decoration: none;
}

.nav .active {
  text-decoration: underline;
}

.pipeline-theme a,
.pipeline-theme .link-button,
.pipeline-theme .nav a {
  color: #9ed0ff;
}

.user-pill,
.flash,
.card,
.list-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 75, 95, 0.15);
  border-radius: 18px;
}

.pipeline-theme .user-pill,
.pipeline-theme .flash,
.pipeline-theme .card,
.pipeline-theme .list-item {
  background: rgba(10, 20, 37, 0.84);
  border: 1px solid rgba(101, 145, 205, 0.22);
  box-shadow: 0 18px 40px rgba(2, 8, 20, 0.34);
}

.user-pill,
.flash {
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}

.flash-error {
  border-color: rgba(148, 27, 12, 0.25);
  color: #7b2214;
}

.flash-success {
  border-color: rgba(32, 104, 59, 0.25);
  color: #20683b;
}

.pipeline-theme .flash-success {
  border-color: rgba(110, 231, 183, 0.25);
  color: #9ef0c8;
}

.grid.two-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(17, 75, 95, 0.08);
}

.pipeline-theme .card {
  box-shadow: 0 20px 42px rgba(2, 8, 20, 0.34);
}

.stack,
.form-grid,
.detail-grid {
  display: grid;
  gap: 1rem;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid .field-wide,
.form-grid .form-actions {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.4rem;
}

input,
textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c9d7c9;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fcfdf9;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.list {
  display: grid;
  gap: 1rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.metric {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(17, 75, 95, 0.08);
  border: 1px solid rgba(17, 75, 95, 0.1);
}

.pipeline-theme .metric {
  background: linear-gradient(180deg, rgba(24, 39, 66, 0.94), rgba(13, 26, 47, 0.96));
  border: 1px solid rgba(102, 147, 214, 0.2);
}

.metric .eyebrow,
.table-card th,
.status-cluster h3 {
  color: #4f5d4f;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.6rem;
  color: #1f2a1f;
}

.pipeline-theme .metric strong,
.pipeline-theme .status-label,
.pipeline-theme .deal-link {
  color: #f4f7fb;
}

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

.status-cluster {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 75, 95, 0.12);
}

.pipeline-theme .status-cluster {
  background: rgba(15, 28, 49, 0.72);
  border-color: rgba(102, 147, 214, 0.18);
}

.status-cluster h3 {
  margin: 0 0 0.9rem;
}

.status-list {
  display: grid;
  gap: 0.65rem;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-label {
  font-weight: 600;
}

.table-card {
  overflow-x: auto;
}

.pipeline-table {
  width: 100%;
  border-collapse: collapse;
}

.pipeline-table th,
.pipeline-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(17, 75, 95, 0.12);
  text-align: left;
  vertical-align: top;
}

.pipeline-theme .pipeline-table th,
.pipeline-theme .pipeline-table td {
  border-bottom: 1px solid rgba(102, 147, 214, 0.14);
}

.pipeline-table tbody tr:last-child td {
  border-bottom: 0;
}

.pipeline-table p {
  margin: 0.2rem 0 0;
}

.deal-link {
  font-size: 1.05rem;
  font-weight: 700;
}

.subtle {
  color: #4f5d4f;
  font-size: 0.95rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(17, 75, 95, 0.1);
  border: 1px solid rgba(17, 75, 95, 0.12);
  font-size: 0.85rem;
  color: #114b5f;
}

.pipeline-theme .pill {
  background: rgba(39, 67, 112, 0.34);
  border-color: rgba(113, 157, 219, 0.22);
  color: #c8dcfa;
}

.status-pill {
  font-weight: 700;
}

.readiness-pill {
  font-weight: 700;
}

.readiness-ready {
  background: rgba(32, 104, 59, 0.14);
  border-color: rgba(32, 104, 59, 0.24);
  color: #20683b;
}

.readiness-progress {
  background: rgba(138, 90, 0, 0.12);
  border-color: rgba(138, 90, 0, 0.2);
  color: #8a5a00;
}

.readiness-buildout {
  background: rgba(123, 34, 20, 0.1);
  border-color: rgba(123, 34, 20, 0.16);
  color: #7b2214;
}

.risk-high {
  color: #7b2214;
}

.risk-medium {
  color: #8a5a00;
}

.risk-low {
  color: #20683b;
}

.pipeline-theme .readiness-ready,
.pipeline-theme .risk-low {
  color: #86efac;
}

.pipeline-theme .readiness-progress,
.pipeline-theme .risk-medium {
  color: #f6c96d;
}

.pipeline-theme .readiness-buildout,
.pipeline-theme .risk-high,
.pipeline-theme .signal-chip {
  color: #ff9b8e;
}

.pipeline-theme .signal-chip {
  background: rgba(130, 39, 35, 0.24);
  border-color: rgba(255, 123, 114, 0.22);
}

.empty-state {
  text-align: center;
  padding: 2rem;
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.signal-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(123, 34, 20, 0.08);
  border: 1px solid rgba(123, 34, 20, 0.14);
  color: #7b2214;
  font-size: 0.82rem;
  line-height: 1.2;
}

.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

dd {
  margin: 0.35rem 0 0;
}

@media (max-width: 720px) {
  .site-header,
  .section-heading,
  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
