.course-shell {
  --ink: #1b2826;
  --muted: #4d615c;
  --green: #155a48;
  --border: #cdded8;
  margin: 0;
  color: var(--ink);
  background: #f1f7f4;
  font: 1rem/1.55 "Segoe UI", system-ui, sans-serif;
}
.course-shell *, .course-shell *::before, .course-shell *::after { box-sizing: border-box; }
.course-shell a { color: inherit; }
.course-shell h1, .course-shell h2 { line-height: 1.13; margin: 0; }
.course-shell p { margin: 0; }
.course-shell .wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.course-shell .top { background: #fff; border-bottom: 1px solid var(--border); }
.course-shell .top-inner, .course-shell .top nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; }
.course-shell .top-inner { justify-content: space-between; padding-block: .75rem; }
.course-shell .brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 750; text-decoration: none; }
.course-shell .brand b { border-radius: .7rem; padding: .42rem .65rem; background: #163f36; color: white; letter-spacing: -.06em; }
.course-shell .brand span { color: #e8c26e; }
.course-shell .top nav a { text-decoration: none; font-weight: 650; padding-block: .35rem; }
.course-shell .top nav a:hover, .course-shell .quiet:hover { text-decoration: underline; }
.course-shell .entry { min-height: min(46rem, 83vh); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.75rem, 5vw, 5rem); align-items: center; padding-block: 3rem; }
.course-shell .entry-intro { padding: clamp(1.7rem, 6vw, 4.25rem); background: #164a3e; color: #fff; border-radius: 1.5rem; }
.course-shell .entry h1 { font-size: clamp(4rem, 8.4vw, 8rem); line-height: .91; letter-spacing: -.085em; margin-block: 1.4rem; }
.course-shell .entry h1 span { color: #f2cb75; }
.course-shell .eyebrow { font-size: .9rem; font-weight: 720; letter-spacing: .035em; }
.course-shell .entry-intro .eyebrow { color: #f2d599; }
.course-shell .intro-copy { color: #e3f1eb; max-width: 28ch; font-size: 1.08rem; }
.course-shell .paper { background: #fff; padding: clamp(1.25rem, 4vw, 2.2rem); border: 1px solid var(--border); border-radius: 1.2rem; }
.course-shell .paper > p { margin-block: .7rem 1rem; color: var(--muted); }
.course-shell .fields { display: grid; gap: 1rem; margin-top: 1.3rem; }
.course-shell .fields label { display: grid; gap: .4rem; font-weight: 650; }
.course-shell input:not([type=hidden]) { width: 100%; min-width: 0; font: inherit; color: var(--ink); min-height: 3rem; border: 1px solid #8ea99e; border-radius: .65rem; padding: .6rem .75rem; }
.course-shell button, .course-shell .secondary { min-height: 2.75rem; border: 0; border-radius: .65rem; padding: .55rem .9rem; font: inherit; font-weight: 650; cursor: pointer; }
.course-shell .primary { background: var(--green); color: white; }
.course-shell .primary:hover { background: #104638; }
.course-shell .secondary { background: #e0eee8; color: #15483a; }
.course-shell .quiet { background: transparent; color: #164d3e; }
.course-shell :focus-visible, .course-return a:focus-visible { outline: 3px solid #b65b23; outline-offset: 3px; }
.course-shell .notice { background: #e6f2eb; padding: .75rem 1rem; border-radius: .55rem; }
.course-shell .notice.error { margin-block: 1rem; color: #6a201b; background: #fff0ed; }
.course-shell .catalog, .course-shell .manage { padding-block: 2rem 4rem; }
.course-shell .banner { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; margin-bottom: 1.25rem; border-radius: 1.4rem; overflow: hidden; background: #164a3e; color: white; }
.course-shell .banner > div { padding: clamp(1.35rem, 4vw, 3rem); }
.course-shell .banner h1, .course-shell .manage h1 { font-size: clamp(2rem, 4.5vw, 3.7rem); letter-spacing: -.045em; }
.course-shell .banner h1 { margin-block: .55rem; }
.course-shell .banner .eyebrow { color: #f3d89f; }
.course-shell .banner img { width: 100%; height: 100%; max-height: 18rem; object-fit: cover; object-position: center 42%; }
.course-shell .modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.course-shell .module { display: flex; flex-direction: column; gap: .8rem; background: white; border: 1px solid var(--border); border-radius: 1rem; padding: 1.1rem; text-decoration: none; }
.course-shell .module:hover { border-color: var(--green); background: #f9fdfb; }
.course-shell .module-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem .5rem; color: var(--muted); font-size: .88rem; }
.course-shell .module h2 { font-size: 1.3rem; }
.course-shell .module-open { margin-top: auto; color: var(--green); text-decoration: underline; text-underline-offset: .2em; font-weight: 680; }
.course-shell .manage-grid { display: grid; grid-template-columns: minmax(14rem, .8fr) 1.6fr; gap: 1rem; align-items: start; margin-top: 1.15rem; }
.course-shell .muted { color: var(--muted); }
.course-shell .field-help { font-size: .9rem; }
.course-shell .student-list { list-style: none; margin: 0; padding: 0; }
.course-shell .student { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; padding-block: .75rem; overflow-wrap: anywhere; }
.course-shell .student + .student { border-top: 1px solid var(--border); }
.course-shell .student-actions form { display: flex; flex-wrap: wrap; gap: .4rem; }
.course-shell .credential { margin-top: 1rem; }
.course-shell .credential label { font-weight: 650; }
.course-shell .credential textarea { display: block; margin: .45rem 0 .8rem; width: 100%; padding: .75rem; border: 1px solid #8ea99e; border-radius: .65rem; background: #f1f7f4; color: var(--ink); font: inherit; resize: vertical; }
.course-shell .credential-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.course-return { max-width: 62rem; margin: 1.4rem auto 2rem; padding: 0 1rem; text-align: center; }
.course-return a { display: inline-block; padding: .7rem 1.2rem; border-radius: .7rem; background: #164a3e; color: white; text-decoration: none; font: 650 1rem/1.4 system-ui, sans-serif; }
@media (max-width: 60rem) {
  .course-shell .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .course-shell .entry, .course-shell .manage-grid { grid-template-columns: 1fr; }
  .course-shell .entry { gap: 1rem; padding-block: 1rem 2.5rem; }
  .course-shell .entry h1 { font-size: clamp(3.75rem, 15vw, 6.5rem); }
  .course-shell .banner { grid-template-columns: 1fr; }
  .course-shell .banner img { max-height: 10rem; }
}
@media (max-width: 25rem) {
  .course-shell .wrap { width: calc(100% - 1.5rem); }
  .course-shell .modules { grid-template-columns: 1fr; }
}
