:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #f4f7fb;
  background: #07111f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(
      circle at top,
      #15304a 0,
      #07111f 42%,
      #030913 100%
    );
}

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.sentinel-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding:
    max(24px, env(safe-area-inset-top))
    18px
    max(36px, env(safe-area-inset-bottom));
}

.sentinel-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 22px;
}

.sentinel-brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  background: #ffffff;
  color: #07111f;
  box-shadow: 0 14px 34px rgb(0 0 0 / 28%);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 3px;
  font-size: clamp(1.6rem, 7vw, 2.25rem);
}

h2 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.sentinel-subtitle {
  margin-bottom: 0;
  color: #a9bad0;
}

.sentinel-eyebrow {
  margin-bottom: 6px;
  color: #8ca2bb;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.sentinel-card {
  margin: 14px 0;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 20px;
  background: rgb(12 26 43 / 90%);
  box-shadow: 0 18px 40px rgb(0 0 0 / 18%);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-row p {
  margin: 5px 0 0;
  color: #a9bad0;
}

.status-orb {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgb(255 255 255 / 4%),
    0 0 24px currentColor;
}

.status-orb-neutral {
  color: #ffffff;
  background: #ffffff;
}

.status-orb-good {
  color: #ffffff;
  background: #ffffff;
}

.status-orb-warning {
  color: #f4c95d;
  background: #f4c95d;
}

.status-orb-error {
  color: #ff5f68;
  background: #ff5f68;
}

label {
  display: block;
  margin: 15px 0 7px;
  font-size: .85rem;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 13px;
  outline: none;
  color: #ffffff;
  background: #07111f;
}

input:focus {
  border-color: #9ab8d9;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.sentinel-primary,
.sentinel-secondary {
  border-radius: 13px;
  font-weight: 800;
}

.sentinel-primary {
  width: 100%;
  margin-top: 17px;
  padding: 14px 16px;
  background: #ffffff;
  color: #06101d;
}

.sentinel-secondary {
  padding: 9px 12px;
  border: 1px solid rgb(255 255 255 / 15%);
  background: transparent;
  color: #ffffff;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.sentinel-device {
  padding: 13px 0;
  border-top: 1px solid rgb(255 255 255 / 9%);
}

.sentinel-device:first-child {
  border-top: 0;
}

.device-title {
  font-weight: 800;
}

.device-meta {
  margin: 5px 0 0;
  color: #9fb1c7;
  font-size: .82rem;
}

.device-state {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sentinel-message {
  min-height: 20px;
  margin: 13px 0 0;
  color: #b9c9da;
}

.sentinel-security-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid #90a8c1;
  color: #b9c9da;
  font-size: .88rem;
}

.sentinel-security-note p {
  margin: 5px 0 0;
}

.sentinel-footer {
  margin-top: 24px;
  text-align: center;
}

.sentinel-footer a {
  color: #c8d6e5;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .sentinel-card {
    border-radius: 17px;
  }

  .card-heading {
    display: block;
  }

  .card-heading .sentinel-secondary {
    margin-top: 6px;
  }
}


/* CA-AIFW-SENTINEL-PWA-1D.5B — Live bouncing threat orb */

.status-orb-threat-white,
.status-orb-threat-yellow,
.status-orb-threat-red {
  animation: sentinel-threat-bounce 1.35s ease-in-out infinite;
  transform-origin: center bottom;
}

.status-orb-threat-white {
  background: #ffffff;
  border: 2px solid rgba(15, 23, 42, 0.20);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.18),
    0 7px 22px rgba(15, 23, 42, 0.14);
}

.status-orb-threat-yellow {
  background: #facc15;
  border: 2px solid rgba(161, 98, 7, 0.28);
  box-shadow:
    0 0 0 6px rgba(250, 204, 21, 0.16),
    0 7px 24px rgba(202, 138, 4, 0.26);
}

.status-orb-threat-red {
  background: #ef4444;
  border: 2px solid rgba(127, 29, 29, 0.28);
  box-shadow:
    0 0 0 7px rgba(239, 68, 68, 0.15),
    0 7px 27px rgba(220, 38, 38, 0.30);
}

@keyframes sentinel-threat-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  45% {
    transform: translateY(-8px) scale(1.03);
  }

  60% {
    transform: translateY(0) scale(0.98);
  }

  75% {
    transform: translateY(-3px) scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-orb-threat-white,
  .status-orb-threat-yellow,
  .status-orb-threat-red {
    animation: none;
  }
}

.threat-details {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.threat-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 6px 0;
  font-size: 0.86rem;
}

.threat-detail-row span {
  color: #64748b;
}

.threat-detail-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.under-attack-notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.09);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.under-attack-notice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.79rem;
  letter-spacing: 0.08em;
}

.under-attack-notice span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
}
