/* Customer portal */
.portal-shell {
  min-height: calc(100vh - 8rem);
  padding: 2.5rem 0 4rem;
}

.portal-card {
  max-width: 28rem;
  margin: 0 auto;
  background: var(--pantry-white);
  border: 1px solid var(--pantry-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.portal-card.wide {
  max-width: 52rem;
}

.portal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--pantry-cream);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
}

.portal-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--pantry-body);
  cursor: pointer;
}

.portal-tabs button.is-active {
  background: var(--pantry-forest);
  color: #fff;
}

.portal-alert {
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.portal-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.portal-alert.ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.portal-alert.warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.portal-status-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}

.portal-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pantry-muted);
  margin-bottom: 0.25rem;
}

.portal-value {
  font-weight: 700;
  color: var(--pantry-forest);
  font-size: 1rem;
}

.portal-value.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
}

.portal-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
}

.portal-badge.ok {
  background: #d1fae5;
  color: #065f46;
}

.portal-badge.warn {
  background: #ffedd5;
  color: #9a3412;
}

.portal-renew {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pantry-leaf);
}

.portal-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--pantry-body);
}

.portal-section-title {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  color: var(--pantry-forest);
}

.portal-section-lead {
  font-size: 0.9rem;
  color: var(--pantry-muted);
  margin: 0 0 1rem;
}

.portal-dl-list {
  display: grid;
  gap: 0.75rem;
}

.portal-dl-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--pantry-border);
  border-radius: var(--radius-md);
  background: var(--pantry-cream-soft);
}

.portal-dl-item.is-disabled {
  opacity: 0.72;
}

.portal-dl-title {
  font-weight: 700;
  color: var(--pantry-forest);
}

.portal-dl-desc {
  font-size: 0.875rem;
  color: var(--pantry-body);
  margin-top: 0.2rem;
}

.portal-dl-reason {
  font-size: 0.8rem;
  color: #9a3412;
  margin-top: 0.35rem;
  font-weight: 600;
}

.portal-dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.portal-api-hint {
  font-size: 0.8rem;
  color: var(--pantry-muted);
  text-align: center;
  margin-top: 1.25rem;
}
