.hja-app {
  --hja-brand: #b91c1c;
  --hja-bg: #ffffff;
  --hja-border: #e5e7eb;
  --hja-text: #111827;
  max-width: 920px;
  margin: 2rem auto;
  padding: 1rem;
  color: var(--hja-text);
}

.hja-app-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--hja-border);
  border-radius: 1rem;
  background: var(--hja-bg);
}

.hja-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--hja-brand);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
}

.hja-actions,
.hja-preferences,
.hja-help,
.hja-alert-list {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--hja-border);
  border-radius: 1rem;
  background: var(--hja-bg);
}

.hja-preferences-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.hja-preferences-heading h2,
.hja-eyebrow {
  margin: 0;
}

.hja-eyebrow {
  color: var(--hja-brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hja-device-label {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.8rem;
  white-space: nowrap;
}

.hja-preference-options {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.hja-preference-option {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid var(--hja-border);
  border-radius: 0.75rem;
  background: #f9fafb;
  cursor: pointer;
}

.hja-preference-option:has(input:checked) {
  border-color: var(--hja-brand);
  background: color-mix(in srgb, var(--hja-brand) 6%, #ffffff);
}

.hja-preference-option input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--hja-brand);
}

.hja-preference-option span,
.hja-preference-option small {
  display: block;
}

.hja-preference-option small {
  margin-top: 0.2rem;
  color: #4b5563;
  line-height: 1.45;
}

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

.hja-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.hja-button.hja-danger-button {
  border-color: #b91c1c;
  color: #991b1b;
}

.hja-preference-note {
  margin-bottom: 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.hja-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hja-button {
  border: 1px solid var(--hja-border);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: #ffffff;
  cursor: pointer;
}

.hja-button.hja-primary {
  border-color: var(--hja-brand);
  background: var(--hja-brand);
  color: #ffffff;
}

.hja-status {
  font-size: 0.95rem;
}

.hja-alert-card {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 6px solid var(--hja-brand);
  border-radius: 0.75rem;
  background: #f9fafb;
}

.hja-alert-card.hja-urgent,
.hja-alert-card.hja-cancelled {
  border-left-color: #dc2626;
}

.hja-alert-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.hja-site-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.hja-site-banner a {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .hja-app-header,
  .hja-preferences-heading,
  .hja-site-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hja-site-banner {
    border-radius: 1rem;
  }
}
