:root {
  color: #17202a;
  background: #f4f6f8;
  font-family: "Segoe UI", Tahoma, sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
header, main { width: min(1180px, calc(100% - 32px)); margin: auto; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 24px;
}
.account { display: flex; align-items: center; gap: 12px; }
.account p { margin: 0; }
.account form { margin: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.25rem); }
.eyebrow {
  margin-bottom: 4px;
  color: #52606d;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.notice { margin-bottom: 20px; padding: 14px 18px; border-radius: 10px; font-weight: 700; }
.notice.success { background: #d8f3dc; color: #1b4332; }
.notice.error { background: #ffe3e3; color: #9b2226; }
.week-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 20px;
}
.week-nav h2 { margin: 0; text-align: center; }
.week-nav a { color: #315c85; font-weight: 700; text-decoration: none; }
.week-nav a:last-child { text-align: right; }
.schedule-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.day-card, .change-panel {
  background: white;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(44, 62, 80, .06);
}
.day-card { min-height: 330px; padding: 18px; }
.day-heading { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #e8edf2; padding-bottom: 14px; }
.day-heading h3 { margin-bottom: 0; }
time, .empty { color: #68737d; font-size: .88rem; }
.coverage {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #d8f3dc;
  color: #1b4332;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}
.coverage.tight { background: #fff3bf; color: #7c5c00; }
.day-card h4 { margin: 18px 0 8px; color: #52606d; font-size: .78rem; text-transform: uppercase; }
ul { margin: 0; padding: 0; list-style: none; }
li { display: flex; align-items: center; margin: 6px 0; font-size: .92rem; }
.dot { width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; }
.dot.office { background: #2b9348; }
.dot.home { background: #3a86ff; }
.change-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 40px;
  align-items: end;
  margin: 24px 0 48px;
  padding: 24px;
}
.change-panel p { margin-bottom: 0; color: #52606d; }
.change-panel form { display: flex; align-items: end; gap: 10px; }
label { display: block; font-weight: 700; }
select, button, input {
  min-height: 42px;
  border: 1px solid #bcccdc;
  border-radius: 8px;
  font: inherit;
}
select { min-width: 160px; padding: 8px 12px; background: white; }
input { width: 100%; padding: 8px 12px; background: white; }
button { padding: 8px 16px; border-color: #315c85; background: #315c85; color: white; cursor: pointer; font-weight: 800; }
button.secondary { background: white; color: #315c85; }
.link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #315c85;
}
.login-page { min-height: 100vh; display: grid; place-items: center; }
.login-shell { width: min(420px, calc(100% - 32px)); }
.login-card {
  padding: 32px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 36px rgba(44, 62, 80, .12);
}
.login-card h1 { margin-bottom: 8px; font-size: 2.25rem; }
.login-card form { display: grid; gap: 8px; margin-top: 24px; }
.login-card label:not(:first-child) { margin-top: 8px; }
.login-card button { margin-top: 12px; }
.privacy-note { margin: 20px 0 0; color: #68737d; font-size: .8rem; }

@media (max-width: 960px) {
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  header { align-items: flex-start; flex-direction: column; }
  .account { align-items: flex-start; flex-direction: column; }
  .schedule-grid { grid-template-columns: 1fr; }
  .change-panel { grid-template-columns: 1fr; }
  .change-panel form { align-items: stretch; flex-direction: column; }
}
