:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: #f2f2f7;
  color: #111114;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  background: radial-gradient(circle at 50% -20%, #fff 0, #e8e8ed 46%, #d8d8df 100%);
}

main {
  width: min(34rem, 100%);
  background: rgb(255 255 255/96%);
  border: 1px solid rgb(60 60 67/12%);
  border-radius: 1.35rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 1rem 3rem rgb(0 0 0/10%);
  backdrop-filter: blur(20px);
}

body.wide {
  display: block;
}

body.wide main {
  width: min(58rem, 100%);
  margin: 0 auto;
}

body.landing main {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.mark {
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  object-fit: cover;
}

.eyebrow {
  color: #007aff;
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: .7rem 0 .35rem;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.1;
}

h2 {
  margin: .35rem 0;
  line-height: 1.2;
}

p {
  color: #6e6e73;
  line-height: 1.55;
}

a {
  color: #007aff;
}

.notice, .error {
  padding: 1rem;
  border-radius: .8rem;
  margin: 1.25rem 0;
}

.notice {
  background: #ecfdf5;
  color: #065f46;
}

.error {
  background: #fef2f2;
  color: #991b1b;
}

form {
  display: grid;
  gap: .7rem;
  margin-top: 1.25rem;
}

label {
  font-weight: 650;
  margin-top: .35rem;
}

input, textarea {
  width: 100%;
  min-height: 44px;
  padding: .85rem;
  border: 1px solid #a9bac0;
  border-radius: .65rem;
  font: inherit;
  font-size: 16px;
}

input:focus, textarea:focus {
  outline: 3px solid rgb(0 122 255/22%);
  border-color: #007aff;
}

button, .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: .6rem;
  padding: .75rem 1rem;
  margin-top: .65rem;
  background: #155e75;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
}

button:focus-visible, .button:focus-visible {
  outline: 3px solid rgb(21 94 117/28%);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 3px solid rgb(0 122 255/28%);
  outline-offset: 2px;
}

.secondary {
  background: #52666d;
}

.danger {
  background: #b42318;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

nav form {
  margin: 0;
}

.card {
  margin: 1rem 0;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .4rem 1.5rem rgb(0 0 0/6%);
  border: 1px solid rgb(60 60 67/12%);
}

.card h2 {
  color: #111114;
}

.actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: end;
}

.actions form {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.actions label {
  min-width: 15rem;
}

.muted {
  color: #64777d;
}

.home-link {
  margin: 1.25rem 0 0;
  text-align: center;
}

.home-link a {
  font-weight: 700;
  text-decoration: none;
}

.home-link a:hover {
  text-decoration: underline;
}

.home-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .35rem;
  margin-top: 1.35rem;
}

.home-actions .button {
  margin-top: .35rem;
}

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

.landing-page {
  display: grid;
  gap: 1.25rem;
}

.landing-hero {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgb(60 60 67/12%);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 .4rem 1.5rem rgb(0 0 0/6%);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-lockup h1 {
  margin: .25rem 0 0;
}

.home-mark {
  width: 4rem;
  height: 4rem;
  flex: none;
}

.lead {
  max-width: 42rem;
  margin: 1.15rem 0 0;
  font-size: 1.05rem;
}

.hero-button {
  margin-top: 1.15rem;
}

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

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  border: 1px solid rgb(60 60 67/12%);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 .4rem 1.5rem rgb(0 0 0/6%);
}

.login-card h2 {
  margin: 0 0 .35rem;
  font-size: 1.25rem;
}

.login-card p {
  margin: 0;
}

.login-card .button {
  width: 100%;
  margin-top: 1.25rem;
}

.copyright {
  text-align: center;
  color: #6e6e73;
  font-size: .8rem;
  line-height: 1.4;
  padding: .25rem .5rem;
}

.policy-document {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgb(60 60 67/12%);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 .4rem 1.5rem rgb(0 0 0/6%);
}

.policy-document h2 {
  margin-top: 2.2rem;
}

.policy-document h3 {
  margin: 1.5rem 0 .35rem;
}

.policy-document li {
  margin: .35rem 0;
  color: #52666d;
  line-height: 1.55;
}

.policy-document blockquote {
  margin: 1rem 0;
  padding: 1rem;
  border-left: .3rem solid #155e75;
  border-radius: .4rem;
  background: #eef7fa;
  color: #52666d;
  line-height: 1.55;
}

.policy-document hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgb(60 60 67/12%);
}

.policy-document code {
  padding: .1rem .3rem;
  border-radius: .3rem;
  background: #f2f2f7;
}

.class-choices {
  display: grid;
  gap: .7rem;
  margin-top: 1.25rem;
}

.class-choices form {
  margin: 0;
}

.class-choices button {
  width: 100%;
  margin: 0;
  flex-direction: column;
  gap: .2rem;
}

.class-choices button small {
  font-weight: 500;
  opacity: .85;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.menu-card {
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  padding: 1.2rem;
  border: 1px solid rgb(60 60 67/12%);
  border-radius: 1.1rem;
  background: #fff;
  color: #111114;
  text-decoration: none;
  box-shadow: 0 .4rem 1.5rem rgb(0 0 0/6%);
  transition: transform .15s, box-shadow .15s;
}

.menu-card:not(.disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 .7rem 1.8rem rgb(0 0 0/9%);
}

.menu-card span {
  font-size: 1.8rem;
}

.menu-card strong {
  font-size: 1.05rem;
}

.menu-card small, .list-row small, .activation-link small {
  display: block;
  color: #6e6e73;
  line-height: 1.4;
}

.menu-card.disabled {
  background: #f2f2f7;
  color: #6e6e73;
}

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin: 0 0 .65rem;
  padding: .6rem .85rem;
  border-radius: .65rem;
  background: #fff;
  color: #155e75;
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 .2rem .8rem rgb(21 94 117/10%);
  touch-action: manipulation;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgb(60 60 67/12%);
}

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

.status-pill {
  flex: none;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: #f2f2f7;
  color: #3a3a3c;
  font-size: .78rem;
  font-weight: 650;
}

.activation-link {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1rem;
  background: #eef7ff;
  border: 1px solid rgb(0 122 255/20%);
}

.activation-link input {
  margin: .55rem 0;
  background: #fff;
  font-size: 16px;
}

.checks {
  display: grid;
  gap: .45rem;
  margin-top: .5rem;
}

.checks label {
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 0;
  padding: .35rem 0;
  font-weight: 500;
  line-height: 1.4;
}

.checks input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin: .15rem 0 0;
  flex: none;
}

.management-card h2 {
  margin: 0;
}

.management-card small {
  display: block;
  margin-top: .3rem;
  color: #6e6e73;
  line-height: 1.4;
}

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

.management-actions {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.management-actions form {
  margin: 0;
}

.management-actions button {
  margin-top: 0;
}

@media(max-width:620px) {
  body, body.wide {
    padding: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
  }

  main, body.wide main {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .actions, .actions form, nav {
    align-items: stretch;
    flex-direction: column;
  }

  .actions label {
    min-width: 0;
  }

  .actions button, .actions .button, nav button, nav .button {
    width: 100%;
  }

  .time-grid, .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    min-height: 7.5rem;
  }

  .list-row {
    align-items: flex-start;
    flex-direction: column;
    gap: .55rem;
  }

  .status-pill {
    max-width: 100%;
    white-space: normal;
  }

  .card {
    padding: 1rem;
  }

}

@media(max-width:620px) {
  .management-head, .management-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .management-actions form, .management-actions button {
    width: 100%;
  }

}

@media(max-width:720px) {
  .login-options {
    grid-template-columns: 1fr;
  }

}

@media(max-width:420px) {
  .brand-lockup {
    align-items: flex-start;
  }

  .home-mark {
    width: 3.5rem;
    height: 3.5rem;
  }

  .landing-hero, .login-card {
    padding: 1.15rem;
  }

}

@media(max-width:620px) {
  body.landing main {
    padding: 0;
    border-radius: 0;
  }

}
