:root {
  font-family: "Avenir Next", system-ui, sans-serif;
  color: #193b32;
  background: #f7f6ee;
  font-synthesis: none;
  --green: #153e35;
  --muted: #5b6c65;
  --line: #dce2d5;
  --gold: #e8bd62;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #a67522;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 30;
  padding: 12px;
  background: white;
}
.skip:focus {
  top: 12px;
}
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 5vw;
  border-bottom: 1px solid var(--line);
  background: #fffef8;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font:
    700 23px Georgia,
    serif;
}
.brand small {
  display: block;
  font: 700 9px system-ui;
  letter-spacing: 2px;
  margin-top: 5px;
  color: var(--muted);
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--gold);
  border-radius: 14px;
  width: 47px;
  height: 47px;
  font-size: 18px;
}
.header-note {
  font:
    italic 16px Georgia,
    serif;
  color: var(--muted);
}
h1,
h2,
h3,
h4 {
  font-family: Georgia, serif;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(38px, 4.8vw, 67px);
  line-height: 1.06;
  margin: 18px 0 24px;
}
h2 {
  font-size: 32px;
  margin: 8px 0 14px;
}
h3 {
  font-size: 23px;
  margin: 6px 0 12px;
}
p {
  line-height: 1.65;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  color: #637b58;
  margin: 0;
}
.login-layout {
  max-width: 1260px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8vw;
  margin: auto;
  padding: 62px 6vw;
}
.welcome > p:not(.eyebrow) {
  font-size: 17px;
  max-width: 500px;
  color: var(--muted);
}
.welcome-steps {
  list-style: none;
  padding: 15px 0 0;
  display: grid;
  gap: 23px;
}
.welcome-steps li {
  display: flex;
  gap: 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.welcome-steps b {
  color: #8b681e;
  font-family: Georgia, serif;
}
.welcome-steps strong {
  display: block;
  color: var(--green);
  font-size: 16px;
}
.login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 14px 45px #193b3208;
}
.login-card > p {
  font-size: 14px;
  color: var(--muted);
}
form {
  display: grid;
  gap: 20px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}
label small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #bbc9bd;
  background: #fffefa;
  color: var(--green);
  border-radius: 9px;
  padding: 12px;
  min-height: 46px;
}
textarea {
  resize: vertical;
}
.button {
  border: 1px solid #c7d1c1;
  background: #fffefa;
  color: var(--green);
  border-radius: 9px;
  padding: 12px 19px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  min-height: 45px;
}
.button:hover {
  background: #eef2e7;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.button.primary:hover {
  background: #235749;
}
.button.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green);
}
.text-button {
  background: none;
  border: 0;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 12px 0;
  font-size: 14px;
}
.login-card > .text-button {
  display: block;
  margin: 10px auto 0;
}
.help-line {
  text-align: center;
  font-size: 12px !important;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
#notice {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 15px 5vw;
  background: #e3edda;
  border-bottom: 1px solid #b4c6a5;
  line-height: 1.5;
}
#notice.error {
  background: #ffede5;
  color: #8c301f;
  border-color: #e3b09a;
}
.preview-banner {
  background: #f3e6b8;
  padding: 12px 5vw;
  font-size: 12px;
  line-height: 1.5;
}
.preview-banner button {
  background: transparent;
  border: 1px solid #9b8750;
  margin-left: 16px;
  border-radius: 5px;
  padding: 5px 8px;
  color: var(--green);
}
.workspace-shell {
  max-width: 1560px;
  margin: auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}
aside {
  padding: 35px 24px;
  border-right: 1px solid var(--line);
  min-height: calc(100vh - 94px);
}
aside h2 {
  font-size: 23px;
  margin-top: 14px;
  overflow-wrap: anywhere;
}
#roleName {
  font-size: 12px;
  color: var(--muted);
}
nav {
  display: grid;
  gap: 7px;
  margin-top: 30px;
}
nav button {
  padding: 13px;
  border: 0;
  background: none;
  color: #55685e;
  text-align: left;
  border-radius: 8px;
  font-size: 14px;
}
nav button.active {
  background: #e3eadb;
  color: var(--green);
  font-weight: 750;
}
.school-owned {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 12px;
  color: var(--muted);
}
.school-owned strong {
  color: var(--green);
}
main#content {
  padding: 36px clamp(22px, 4vw, 55px) 70px;
  outline: none;
  min-width: 0;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.hero {
  background: var(--green);
  color: #fffced;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.hero h2 {
  font-size: 33px;
  max-width: 500px;
}
.hero p {
  color: #c8d7c8;
  margin-bottom: 0;
  max-width: 580px;
  font-size: 14px;
}
.hero .eyebrow {
  color: #e5bf6d;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 23px 0 30px;
}
.stat,
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffef9;
  padding: 22px;
}
.stat b {
  font:
    700 31px Georgia,
    serif;
  display: block;
  margin-bottom: 9px;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card p {
  font-size: 14px;
  color: var(--muted);
}
.card .tag {
  margin-bottom: 12px;
}
.tag {
  display: inline-block;
  border-radius: 5px;
  background: #e8eedd;
  color: #43613a;
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 750;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 16px;
  gap: 15px;
}
.hint {
  border-left: 3px solid #d4ac52;
  padding: 9px 16px;
  background: #f2eddc;
  color: #5e614a;
  font-size: 13px;
  line-height: 1.65;
  margin: 22px 0;
}
.empty {
  border: 1px dashed #bac9b5;
  border-radius: 15px;
  padding: 34px;
  background: #fffefa;
}
.empty p {
  color: var(--muted);
  max-width: 620px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.form-card {
  max-width: 780px;
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.steps-nav {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0 0 28px;
}
.steps-nav li {
  color: var(--muted);
  font-size: 13px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.steps-nav .current {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.step-card {
  background: #f5f5e9;
  padding: 20px;
  border-radius: 12px;
  display: grid;
  gap: 13px;
}
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step-top h3 {
  margin: 0;
  font-size: 19px;
}
.step-top button {
  font-size: 12px;
  color: #8a3f30;
}
.student-sheet {
  background: white;
  border: 1px solid var(--line);
  border-top: 5px solid #d5ac52;
  border-radius: 12px;
  padding: 30px;
}
.student-sheet > h2 {
  font-size: 34px;
}
.student-sheet ol {
  padding-left: 24px;
}
.student-sheet li {
  padding: 8px 0;
}
.student-sheet li p {
  white-space: pre-wrap;
}
.student-sheet .materials {
  white-space: pre-wrap;
}
.teacher-notes {
  white-space: pre-wrap;
  font-size: 13px;
  color: var(--muted);
}
.member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  overflow-wrap: anywhere;
}
.member strong,
.member small {
  display: block;
}
.member small {
  color: var(--muted);
  margin-top: 7px;
  font-size: 12px;
}
.member button {
  font-size: 12px;
  min-width: 80px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.plan-grid p {
  margin: 5px 0 0;
}
.error-summary {
  color: #8c301f;
}
.full {
  grid-column: 1/-1;
}
.session-note {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .workspace-shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  aside {
    padding: 28px 18px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .login-layout {
    gap: 5vw;
    padding: 40px 5vw;
  }
  .login-card {
    padding: 25px;
  }
}
@media (max-width: 700px) {
  .header-note {
    display: none;
  }
  .brand-bar {
    padding: 17px 20px;
  }
  .brand {
    font-size: 20px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }
  .welcome h1 {
    font-size: 42px;
  }
  .welcome-steps {
    display: none;
  }
  .workspace-shell {
    display: block;
  }
  aside {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
  }
  aside h2 {
    margin: 7px 0;
    font-size: 22px;
  }
  aside > .eyebrow,
  .school-owned {
    display: none;
  }
  #roleName {
    margin: 0;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 17px;
  }
  nav button {
    padding: 10px;
    font-size: 12px;
  }
  aside > [data-action="logout"] {
    position: absolute;
    top: 105px;
    right: 20px;
    font-size: 12px;
  }
  body:has(#demoBanner:not([hidden])) aside > [data-action="logout"] {
    position: static;
    padding-bottom: 0;
  }
  main#content {
    padding: 26px 20px 45px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-head h2 {
    font-size: 29px;
  }
  .hero {
    padding: 23px;
  }
  .hero h2 {
    font-size: 29px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 15px 11px;
  }
  .stat b {
    font-size: 26px;
  }
  .stat span {
    font-size: 11px;
  }
  .form-card {
    padding: 20px;
  }
  .form-columns,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .steps-nav {
    gap: 5px;
  }
  .steps-nav li {
    font-size: 11px;
    padding: 8px;
  }
  .member {
    flex-wrap: wrap;
  }
  .student-sheet {
    padding: 20px;
  }
  .student-sheet h2 {
    font-size: 28px;
  }
  .preview-banner button {
    margin: 7px 0 0;
    display: block;
  }
}
@media print {
  .brand-bar,
  aside,
  #notice,
  .preview-banner,
  .page-head,
  .steps-nav,
  .actions,
  .hint,
  .teacher-notes,
  form > *:not(.student-sheet) {
    display: none !important;
  }
  .workspace-shell {
    display: block;
  }
  main#content {
    padding: 0;
  }
  .form-card,
  .student-sheet {
    border: 0;
    padding: 0;
    max-width: none;
  }
  body {
    background: white;
  }
  .student-sheet {
    display: block !important;
  }
}

.hero .button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green);
}
