:root {
  font-family: Arial, sans-serif;
  color: #172033;
  background: #f3f6fa;
}

body {
  margin: 0;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

.card {
  width: min(100%, 420px);
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(20, 35, 60, 0.12);
  box-sizing: border-box;
}

.home-screen {
  width: 100%;
}

.home-screen[hidden] {
  display: none;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #d11f2a;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 8vw, 2.6rem);
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.app-header h1 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
}

.instruction,
.signed-in-label {
  color: #536074;
  line-height: 1.5;
}

.message {
  min-height: 1.5rem;
  color: #b42318;
  font-weight: 700;
}

.user-email {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

button {
  padding: 0.7rem 1rem;
  border: 1px solid #aab4c5;
  border-radius: 6px;
  color: #172033;
  background: #ffffff;
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: #f3f6fa;
}

.sign-out-button {
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
}

.account-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0;
  padding: 1rem;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  background: #f9fbfe;
}

.account-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #2167c7;
  font-size: 0.75rem;
}

.signed-in-label {
  margin: 0 0 0.15rem;
  font-size: 0.8125rem;
}

.home-actions {
  display: grid;
  gap: 0.75rem;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.25rem;
  border-radius: 10px;
  font-weight: 700;
}

.action-button-primary {
  border-color: #1761bf;
  color: #ffffff;
  background: #1761bf;
}

.action-button-primary:hover {
  background: #0f4e9e;
}

.action-button-secondary {
  border-color: #b9c8dc;
  color: #1957a5;
  background: #ffffff;
}

.button-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.summary-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(20, 35, 60, 0.06);
}

.summary-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.section-label {
  margin: 0 0 0.25rem;
  color: #2167c7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h2 {
  margin: 0;
  font-size: 1.125rem;
}

.calendar-icon {
  color: #2167c7;
  font-size: 1.5rem;
}

.summary-stat {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.summary-stat strong {
  color: #1761bf;
  font-size: 2.5rem;
  line-height: 1;
}

.summary-stat span {
  color: #536074;
  font-size: 0.875rem;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e4e9f2;
}

.nav-item {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  border: 0;
  border-radius: 8px;
  color: #65738a;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
}

.nav-item:hover,
.nav-item-active {
  color: #1761bf;
  background: #edf4ff;
}

.nav-item span {
  font-size: 1.25rem;
}

@media (min-width: 600px) {
  .page-shell {
    padding: 2rem;
  }

  .card {
    width: min(100%, 480px);
  }
}
