body {
  background: #f8fafc;
}

.page-shell {
  position: relative;
}

.hero-panel,
.panel,
.metric-card {
  position: relative;
}

.hero-panel,
.panel,
.metric-card,
.mini-panel,
.simple-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.hero-panel {
  border-radius: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.35rem 0.7rem;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-card {
  border-radius: 20px;
  padding: 1.2rem;
}

.metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.metric-value {
  margin-top: 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  color: #0f172a;
}

.metric-sub {
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.5;
}

.panel {
  border-radius: 24px;
  padding: 1.5rem;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.panel-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.panel-title {
  margin-top: 0.35rem;
  font-family: "Inter", sans-serif;
  font-size: 1.08rem;
  line-height: 1.4;
  color: #0f172a;
}

.meta-chip {
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.45rem 0.8rem;
  color: #475569;
  font-size: 0.72rem;
  white-space: nowrap;
}

.mini-panel {
  border-radius: 18px;
  padding: 1rem;
}

.simple-card {
  border-radius: 18px;
  padding: 1rem;
}

.simple-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.simple-value {
  margin-top: 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
}

.simple-detail {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.5;
}

.field {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 0.72rem 0.85rem;
  color: #0f172a;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.flatpickr-input[readonly] {
  background: #ffffff;
  cursor: pointer;
}

.flatpickr-alt-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 0.72rem 0.85rem;
  color: #0f172a;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.flatpickr-alt-input:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.table-head {
  padding: 0.82rem 1rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.table-cell {
  padding: 0.85rem 1rem;
  white-space: nowrap;
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.5;
}

.signal-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.signal-low {
  background: #ecfdf5;
  color: #166534;
}

.signal-high {
  background: #fef2f2;
  color: #991b1b;
}

.signal-neutral {
  background: #f8fafc;
  color: #475569;
}

@media (max-width: 768px) {
  .panel,
  .metric-card,
  .hero-panel {
    padding: 1.1rem;
  }

  .metric-value {
    font-size: 1.2rem;
  }
}
