:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6fb;
  color: #071a3d;
  --navy: #071a3d;
  --navy-soft: #142d59;
  --orange: #ff9914;
  --magenta: #d50078;
  --surface: #ffffff;
  --muted: #63708a;
  --line: #dfe4ee;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 153, 20, 0.14), transparent 28rem),
    radial-gradient(circle at 92% 86%, rgba(213, 0, 120, 0.11), transparent 28rem),
    linear-gradient(145deg, #f8f9fc 0%, #eef2f9 100%);
}

.pilot-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.pilot-dot {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0.22rem rgba(255, 153, 20, 0.18);
}

.shell {
  display: grid;
  min-height: calc(100vh - 2.75rem);
  place-items: center;
  align-content: center;
  padding: 2.25rem 1rem 1.5rem;
}

.card {
  position: relative;
  width: min(100%, 46rem);
  padding: clamp(1.5rem, 5vw, 3.25rem);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(7, 26, 61, 0.09);
  border-radius: 1.65rem;
  box-shadow: 0 1.75rem 5rem rgba(7, 26, 61, 0.13);
}

.card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 0.3rem;
  background: linear-gradient(90deg, var(--orange), var(--magenta));
  content: "";
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  width: min(16rem, 58%);
  height: auto;
  object-fit: contain;
}

.microsoft-badge {
  padding: 0.48rem 0.7rem;
  border: 1px solid #cad3e2;
  border-radius: 999px;
  color: var(--navy-soft);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.title-block {
  margin-top: 2rem;
}

.eyebrow,
.label {
  margin: 0;
  color: var(--magenta);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0.55rem 0 0;
  color: var(--navy);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.intro {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.identity {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  margin-top: 1.15rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--navy);
  border-radius: 0.75rem;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 1.5rem;
  padding: 1.35rem 1.5rem;
  background: #f7f8fc;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.status-panel > div + div {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.status-panel .label {
  color: #7b8498;
}

.status,
.last-event span:last-child {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.05rem;
}

.status[data-state="checked_in"] {
  color: #087252;
}

.status[data-state="checked_out"] {
  color: #ad4c18;
}

.status[data-state="not_enabled"] {
  color: #806112;
}

.today-panel {
  margin: 0 0 1.5rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.today-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.today-heading-row h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.1rem;
}

.today-heading-row span,
.configuration-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.today-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
}

.today-grid div {
  min-width: 0;
}

.today-grid dt {
  color: #7b8498;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.today-grid dd {
  margin: 0.35rem 0 0;
  color: var(--navy);
  font-weight: 700;
}

.configuration-note {
  margin: 1rem 0 0;
  line-height: 1.45;
}

button {
  width: 100%;
  min-height: 4.25rem;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 1rem;
  background: linear-gradient(100deg, var(--orange), #ef6525 44%, var(--magenta));
  box-shadow: 0 0.8rem 2rem rgba(199, 31, 100, 0.2);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
}

button[data-action="CHECK_OUT"] {
  background: var(--navy);
  box-shadow: 0 0.75rem 1.75rem rgba(7, 26, 61, 0.2);
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 4px solid rgba(213, 0, 120, 0.22);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.message {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--muted);
  text-align: center;
}

.message.success {
  color: #0b714d;
  font-weight: 700;
}

.message.error {
  color: #a02f2f;
  font-weight: 700;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 2.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #737e94;
  font-size: 0.78rem;
}

.support-note {
  margin: 1.15rem 0 0;
  color: #738099;
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 35rem) {
  .pilot-banner {
    align-items: flex-start;
    line-height: 1.45;
  }

  .brand-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .brand-logo {
    width: min(18rem, 82%);
  }

  .status-panel {
    grid-template-columns: 1fr;
  }

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

  .status-panel > div + div {
    padding-top: 1rem;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
