/* Account portal backend/dashboard styles. Scoped to account/admin portal components. */
.account-global-message[hidden],
.account-live-dashboard[hidden],
.auth-visual[hidden] {
  display: none !important;
}

.account-global-message[data-type="success"],
.form-message[data-type="success"] {
  border-left-color: #18864b;
  background: #eefaf2;
  color: #155f39;
}

.account-global-message[data-type="error"],
.form-message[data-type="error"] {
  border-left-color: #b42318;
  background: #fff1f0;
  color: #8a1f16;
}

.account-live-dashboard {
  margin-top: 26px;
}

.portal-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  color: #132033;
}

.portal-card {
  background: #ffffff;
  border: 1px solid rgba(7, 26, 51, .12);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(20, 35, 60, 0.08);
  padding: 28px;
  margin-bottom: 18px;
}

.portal-card--intro {
  background: linear-gradient(135deg, #071a33, #263d63);
  color: #ffffff;
}

.portal-card--intro .eyebrow {
  color: #f4c261;
}

.portal-form,
.portal-dashboard .auth-form {
  display: grid;
  gap: 16px;
}

.portal-form label,
.portal-dashboard .auth-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.portal-form input,
.portal-form select,
.portal-form textarea,
.portal-dashboard .auth-form input,
.portal-dashboard .auth-form select,
.portal-dashboard .auth-form textarea {
  width: 100%;
  border: 1px solid rgba(7, 26, 51, .18);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  color: #132033;
  font: inherit;
}

.portal-form textarea {
  resize: vertical;
}

.portal-form button,
.button-secondary {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #071a33;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.button-secondary {
  background: #eef3fb;
  color: #071a33;
}

.portal-message {
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(7, 26, 51, .18);
  background: #ffffff;
  margin: 0 0 18px;
}

.portal-message[data-type="success"] {
  border-color: #99c9a4;
  background: #effaf1;
}

.portal-message[data-type="error"] {
  border-color: #e2a4a4;
  background: #fff0f0;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.status-panel {
  display: grid;
  gap: 4px;
  border-radius: 22px;
  padding: 18px;
  background: #eef4ff;
  border: 1px solid rgba(7, 26, 51, .08);
  margin-bottom: 22px;
}

.status-panel span,
.status-panel small {
  color: #53657c;
}

.status-panel strong {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 24px;
}

.updates-list,
.admin-user-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.update-card,
.admin-user-card,
.portal-dashboard .empty-state {
  border: 1px solid rgba(7, 26, 51, .12);
  border-radius: 18px;
  padding: 16px;
  background: #fbfcff;
}

.update-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.update-card__topline span {
  color: #850b32;
  font-weight: 900;
}

.update-card p {
  white-space: pre-wrap;
}

.admin-user-card {
  display: grid;
  gap: 4px;
}

.admin-user-card span,
.admin-user-card small,
.update-card small {
  color: #53657c;
}

@media (max-width: 760px) {
  .dashboard-header,
  .update-card__topline {
    display: grid;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
