:root {
  color-scheme: light;
  --page: #f3f5f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #182235;
  --muted: #667085;
  --line: #d7dde6;
  --line-strong: #aeb8c7;
  --navy: #17365d;
  --green: #16736b;
  --red: #a64236;
  --amber: #b68425;
  --shadow: 0 14px 30px rgba(24, 34, 53, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 32px 20px;
  color: #ffffff;
  background: var(--navy);
  border-bottom: 4px solid var(--green);
}

.eyebrow {
  margin: 0 0 7px;
  color: #d9e7f7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  color: #e9eef6;
  font-size: 12px;
}

.status-strip span {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

main {
  padding: 24px 32px 40px;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.metric-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-card strong {
  color: var(--navy);
  font-size: 32px;
  line-height: 1;
}

.layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(560px, 1.1fr);
  gap: 22px;
  align-items: start;
}

.panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-head h2,
.month h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green);
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.week-list {
  display: grid;
  gap: 0;
}

.week-row {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.week-row:first-child {
  padding-top: 2px;
}

.week-row:last-child {
  border-bottom: 0;
}

.week-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.week-body h3 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.week-body p,
.week-body li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.week-body ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.week-body li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.week-body a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 115, 107, 0.35);
}

.week-body span,
.week-body em {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.week-body em {
  color: #ffffff;
  border-color: var(--green);
  background: var(--green);
}

.calendar-panel {
  display: grid;
  gap: 16px;
}

.month-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.month-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.month-nav a.active {
  color: #ffffff;
  border-color: var(--navy);
  background: var(--navy);
}

.month {
  padding-top: 2px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #eef3f8;
}

.weekday-row span {
  padding: 9px 8px;
  color: #445066;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.day-cell {
  min-height: 112px;
  padding: 8px;
  border: 1px solid var(--line);
  margin: -1px 0 0 -1px;
  background: #ffffff;
  overflow: hidden;
}

.day-cell.muted {
  background: #f6f8fb;
  color: #a2a9b4;
}

.day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  margin-bottom: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.calendar-event {
  display: block;
  margin-top: 5px;
  padding: 7px 7px 7px 8px;
  border-left: 3px solid var(--red);
  border-radius: 5px;
  color: var(--ink);
  background: #fff7f4;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.calendar-event small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .topbar,
  .layout {
    display: block;
  }

  .status-strip {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .calendar-panel {
    margin-top: 22px;
  }
}

@media (max-width: 720px) {
  .topbar,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 24px;
  }

  .summary-band {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 72px;
  }

  .week-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(38px, 1fr));
  }

  .day-cell {
    min-height: 88px;
    padding: 5px;
  }

  .calendar-event {
    font-size: 11px;
  }
}
