:root {
  color-scheme: light;
  --navy: #0b2038;
  --blue: #173d63;
  --teal: #0d8f91;
  --green: #2d7d55;
  --red: #b84b4b;
  --gray: #77818d;
  --surface: #ffffff;
  --background: #eef2f5;
  --border: #d8dee5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--background); color: var(--navy); }
.shell { width: min(100% - 24px, 760px); margin: 0 auto; padding: 24px 0 36px; }
.brand-card, .state-card, .calendar-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 12px 30px rgba(11,32,56,.08); }
.brand-card { padding: 22px; text-align: center; }
.hcc-logo { display: block; width: min(330px, 82%); height: 112px; object-fit: contain; margin: 0 auto 14px; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, #aab2bb 16%, #aab2bb 84%, transparent); }
.module-name { margin: 12px 0; font-size: clamp(1.15rem, 4.8vw, 1.75rem); font-weight: 750; letter-spacing: .02em; }
.test-badge { display: inline-block; margin-top: 15px; padding: 7px 12px; border-radius: 999px; background: #fff3cd; color: #745300; font-size: .73rem; font-weight: 800; letter-spacing: .08em; }
.state-card { margin-top: 16px; padding: 24px; border-top: 5px solid var(--teal); }
.eyebrow { margin: 0; color: var(--gray); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.next-date { margin: 10px 0 18px; font-size: clamp(2.7rem, 14vw, 5.3rem); font-weight: 850; letter-spacing: -.05em; line-height: 1; }
.status-line { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--border); }
.status-line span { color: var(--gray); font-size: .74rem; font-weight: 700; }
.status-line strong { color: var(--teal); font-size: 1.05rem; }
.environment-line { margin: 14px 0 0; color: var(--gray); font-size: .72rem; font-weight: 750; letter-spacing: .07em; }
.status-degraded { border-top-color: #c48a20; }
.status-error, .error-card { border-top-color: var(--red); }
.status-no_data { border-top-color: var(--gray); }
.calendar-card { margin-top: 16px; padding: 22px; }
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; }
.section-heading h2 { margin: 4px 0 0; font-size: 1.25rem; }
.legend { display: flex; flex-wrap: wrap; justify-content: end; gap: 10px; color: var(--gray); font-size: .62rem; font-weight: 800; }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; }
.valid-dot::before { background: var(--green); }
.overdue-dot::before { background: var(--red); }
.future-dot::before { background: #c8cdd3; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; padding: 0; margin: 18px 0 0; list-style: none; }
.day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 11px; font-weight: 800; font-size: .83rem; }
.day-valid { background: #d9eee4; color: #19583a; }
.day-overdue { background: #f5dddd; color: #8e3030; }
.day-future { background: #e9ecef; color: #68717b; }
.degraded-note { padding: 24px 0 6px; color: var(--red); }
.form-button { display: block; margin-top: 16px; padding: 17px 20px; border-radius: 14px; background: var(--navy); color: white; font-weight: 800; text-align: center; text-decoration: none; }
.form-button:hover, .form-button:focus-visible { background: var(--blue); }
footer { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; color: var(--gray); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
footer img { width: 118px; height: 30px; object-fit: contain; }
.loading-card { margin-top: 30vh; }
@media (max-width: 560px) {
  .shell { width: min(100% - 16px, 760px); padding-top: 8px; }
  .brand-card, .state-card, .calendar-card { border-radius: 16px; }
  .status-line, .section-heading { align-items: start; flex-direction: column; }
  .legend { justify-content: start; }
  .day { border-radius: 8px; }
}

