@font-face {
  font-family: DM Sans;
  src: url("/assets/sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url("/assets/serif.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #17243d;
  --slate: #495b72;
  --soft: #66778c;
  --paper: #f5f7fa;
  --line: #dce2e9;
  --blue: #294dc2;
  --pale: #edf1ff;
  --green: #226a52;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.13;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: clamp(2.8rem, 5vw, 4.35rem);
  letter-spacing: -0.036em;
}
h2 {
  font-size: 2.32rem;
  letter-spacing: -0.026em;
}
h3 {
  font-size: 1.12rem;
  font-weight: 650;
}
a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
summary {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #718ae8;
}
input,
textarea {
  width: 100%;
  border: 1px solid #abb8ca;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
}
input:focus,
textarea:focus {
  border-color: var(--blue);
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.32rem;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
.field {
  margin-bottom: 1.15rem;
}
.ico {
  display: inline-block;
  width: 19px;
  height: 19px;
  vertical-align: -4px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.eyebrow {
  font-size: 0.77rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}
.muted {
  color: var(--slate);
}
.small {
  font-size: 0.89rem;
}
.brand {
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 730;
  font-size: 1.38rem;
  letter-spacing: -0.055em;
  color: var(--ink);
  text-decoration: none;
}
.mark {
  display: flex;
  width: 34px;
  height: 32px;
  align-items: flex-end;
  gap: 3px;
  transform: skewY(-13deg);
  padding: 3px 4px;
}
.mark i {
  display: block;
  background: var(--blue);
  width: 7px;
  height: 27px;
}
.mark i:first-child {
  height: 16px;
}
.mark i:nth-child(2) {
  height: 22px;
}
header.mast {
  background: white;
  border-bottom: 1px solid var(--line);
}
.mastin {
  width: min(1360px, 100%);
  height: 72px;
  margin: auto;
  padding: 0 clamp(20px, 4.8vw, 72px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 75px);
}
nav.top {
  display: flex;
  align-self: stretch;
  gap: 28px;
}
nav.top a {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--slate);
  border-bottom: 3px solid transparent;
  padding-top: 3px;
  font-size: 0.93rem;
  font-weight: 600;
}
nav.top a.active {
  color: var(--blue);
  border-color: var(--blue);
}
nav.top a:hover,
.text-btn:hover {
  color: var(--blue);
}
.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 600;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e7edfc;
  color: #253f93;
  font-weight: 700;
}
.local {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--slate);
}
.local:before {
  content: "";
  background: #4f8d77;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}
main.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px clamp(20px, 4.8vw, 72px) 72px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--soft);
  font-size: 0.88rem;
  margin-bottom: 19px;
}
.crumb a {
  color: var(--slate);
  text-decoration: none;
}
.crumb span:last-child {
  color: var(--ink);
}
.crumb .ico {
  width: 13px;
  height: 13px;
}
.btn,
.btn-alt,
.text-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 650;
  border-radius: 7px;
  font-size: 0.95rem;
  line-height: 1.25;
}
.btn,
.btn-alt {
  padding: 12px 19px;
  min-height: 44px;
}
.btn {
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
}
.btn:hover {
  background: #1c3ba1;
}
.btn-alt {
  border: 1px solid #c8d1df;
  color: var(--ink);
  background: white;
}
.btn-alt:hover {
  background: var(--pale);
}
.text-btn,
.icon-btn {
  color: var(--slate);
  border: 0;
  background: transparent;
  padding: 7px 3px;
}
.icon-btn {
  padding: 9px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.wide {
  width: 100%;
}
.glance {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.9rem;
}
.glance span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero,
.login-art {
  background: #172d4a;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.hero:before,
.login-art:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("/assets/architecture.jpg") center 53% / cover no-repeat;
}
.hero:before {
  left: 32%;
  background-position: center 55%;
}
.hero:after,
.login-art:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero:after {
  background: linear-gradient(
    90deg,
    #172b47 0%,
    #172b47 25%,
    rgba(23, 43, 71, 0.94) 38%,
    rgba(23, 43, 71, 0.52) 64%,
    rgba(23, 43, 71, 0.1) 100%
  );
}
.hero {
  border-radius: 14px;
  padding: 31px clamp(24px, 3.8vw, 55px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 13px;
}
.hero h1 {
  font-size: clamp(3rem, 5.4vw, 5.1rem);
}
.hero .eyebrow,
.login-art .eyebrow {
  color: #d7e5ff;
}
.hero .glance,
.login-art .glance {
  color: #f0f3f9;
}
.hero .ico,
.login-art .ico {
  width: 16px;
  height: 16px;
}
.login-wrap {
  width: min(1230px, 100%);
  min-height: calc(100vh - 74px);
  margin: auto;
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 55px);
}
.login-panel {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  overflow: hidden;
  min-height: min(630px, 75vh);
  box-shadow: 0 12px 48px #24364e0b;
}
.login-art {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  padding: clamp(28px, 4vw, 58px);
}
.login-art:before {
  background-position: 49% 38%;
}
.login-art:after {
  background: linear-gradient(
    180deg,
    rgba(18, 37, 64, 0.04) 0%,
    rgba(22, 38, 64, 0.05) 25%,
    rgba(17, 34, 58, 0.92) 83%,
    #152942 100%
  );
}
.login-art h2 {
  color: #fff;
  font-size: clamp(3.3rem, 6.6vw, 6.15rem);
  line-height: 0.98;
  margin: 13px 0 23px;
}
.login-form {
  display: grid;
  align-content: center;
  padding: 48px clamp(28px, 4.4vw, 68px);
}
.login-form h1 {
  font-size: clamp(3.15rem, 4.5vw, 4.5rem);
  margin-bottom: 10px;
}
.login-form form {
  margin-top: 30px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 46px;
}
.password-field button {
  position: absolute;
  right: 4px;
  top: 3px;
  bottom: 3px;
}
.alert {
  font-size: 0.92rem;
  color: #91322e;
}
.alert:not(:empty) {
  border-radius: 6px;
  background: #fff1ed;
  padding: 9px 12px;
  margin: 10px 0;
}
.login-form .btn {
  margin-top: 8px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(265px, 0.85fr);
  gap: clamp(20px, 3vw, 42px);
  margin-top: 32px;
}
.stack > * + * {
  margin-top: 18px;
}
.section-title {
  display: flex;
  gap: 15px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title h2 {
  font-size: 2.38rem;
}
.card,
.week-card,
.reader,
.side-outline,
.resume-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
}
.card {
  padding: 23px;
}
.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 24px;
  margin-top: 16px;
  border-left: 4px solid var(--blue);
}
.resume-card h2 {
  font-family: var(--sans);
  font-size: 1.23rem;
  letter-spacing: -0.025em;
  font-weight: 630;
  margin: 3px 0;
}
.week-card {
  margin-bottom: 10px;
  overflow: hidden;
}
.week-card.open {
  border-color: #aabbe1;
}
.week-toggle {
  width: 100%;
  border: 0;
  background: white;
  display: flex;
  text-align: left;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  color: var(--ink);
}
.week-toggle:hover {
  background: #f8faff;
}
.wk-num {
  font: 1.45rem var(--serif);
  background: #f0f3f7;
  color: #5a6b80;
  min-width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}
.open .wk-num {
  color: #2746a4;
  background: #e8edff;
}
.wk-meta {
  font-size: 0.79rem;
  color: var(--slate);
}
.wk-name {
  font-weight: 660;
  line-height: 1.3;
  margin-top: 3px;
  font-size: 1.03rem;
}
.right {
  margin-left: auto;
}
.week-toggle .ico:last-child {
  width: 16px;
}
.lesson-link {
  padding: 10px 19px 10px 75px;
  border-top: 1px solid #edf0f5;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--slate);
  font-size: 0.94rem;
}
.lesson-link:hover,
.lesson-link.current {
  color: var(--blue);
  background: #f6f8ff;
}
.lesson-link .ico {
  width: 16px;
}
.count {
  font-size: 3.05rem;
  font-family: var(--serif);
  line-height: 1.05;
}
.progressline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 10px;
}
.progressline span:last-child {
  font-size: 0.9rem;
  color: var(--slate);
}
progress {
  display: block;
  width: 100%;
  height: 7px;
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: #e6eaf0;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #e6eaf0;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: var(--blue);
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background: var(--blue);
}
.stage-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  font-size: 0.92rem;
  color: var(--slate);
}
.card-link {
  display: block;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--ink);
}
.card-link:last-child {
  padding-bottom: 0;
}
.card-link:hover {
  color: var(--blue);
}
.card-link span {
  display: block;
}
.card h3 + .card-link {
  margin-top: 15px;
}
.card p {
  margin: 9px 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  background: var(--pale);
  color: var(--blue);
  font-size: 0.8rem;
  padding: 3px 8px;
  font-weight: 650;
}
.ok {
  color: var(--green);
}
.page-head {
  margin-bottom: 25px;
}
.page-head p {
  margin-top: 8px;
  color: var(--slate);
  max-width: 68ch;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.exam-card {
  border-top: 4px solid var(--blue);
}
.exam-card h2 {
  margin: 10px 0;
  font-size: 2.6rem;
}
.exam-card .glance {
  color: var(--slate);
  margin: 18px 0;
}
.exam-card .btn {
  margin-top: 8px;
}
.history {
  margin-top: 30px;
}
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.history-row a {
  font-weight: 600;
}
.reader-grid {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.side-outline {
  padding: 17px;
  position: sticky;
  top: 12px;
}
.side-outline a,
.side-outline summary {
  display: block;
  padding: 7px 8px;
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--slate);
  border-radius: 5px;
  line-height: 1.4;
}
.side-outline summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
}
.side-outline a {
  margin-left: 7px;
}
.side-outline .current {
  color: var(--blue);
  background: var(--pale);
}
.side-outline h3 {
  margin: 2px 6px 12px;
}
.side-outline details + details {
  border-top: 1px solid var(--line);
  padding-top: 4px;
  margin-top: 4px;
}
.reader {
  padding: clamp(23px, 4vw, 55px);
  max-width: 960px;
}
.reader h1 {
  font-size: clamp(2.6rem, 4.5vw, 4.1rem);
  margin: 9px 0 13px;
}
.reader .objective {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 65ch;
}
.reader section {
  margin-top: 28px;
}
.reader section h2 {
  font-size: 2.05rem;
  margin-bottom: 10px;
}
.reader section p + p {
  margin-top: 12px;
}
.reader section p {
  line-height: 1.75;
}
.reader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.example,
.task,
.feedback {
  border-radius: 8px;
  padding: 16px 19px;
  margin-top: 20px;
}
.example {
  background: #edf2fa;
  border-left: 3px solid #627eac;
}
.example h3,
.task h3 {
  margin-bottom: 6px;
}
.task {
  background: #f7f8fb;
  border: 1px solid var(--line);
}
.task textarea {
  margin: 11px 0 4px;
}
.choices {
  display: grid;
  gap: 8px;
  margin: 13px 0;
}
.choice {
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 1px solid #cad3df;
  padding: 11px 13px;
  border-radius: 7px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.choice:hover,
.choice.selected {
  border-color: #5b78c7;
  background: #f1f5ff;
}
.choice .letter {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid #cdd5e0;
  border-radius: 5px;
  font-weight: 650;
  font-size: 0.84rem;
}
.choice.selected .letter {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.feedback {
  background: #eaf4ef;
  color: #194e3b;
  margin: 10px 0;
}
.feedback.again {
  background: #fcf1e4;
  color: #744717;
}
.lesson-foot {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.narrow {
  max-width: 850px;
  margin: auto;
}
.exam-panel,
.profile-panel {
  padding: clamp(23px, 4vw, 44px);
}
.exam-panel h2 {
  font-family: var(--sans);
  line-height: 1.5;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  margin: 19px 0;
}
.exam-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.timer {
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  font-weight: 700;
}
.exam-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  flex-wrap: wrap;
}
.jump {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.jump a {
  display: grid;
  place-items: center;
  width: 33px;
  height: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.86rem;
}
.jump a.filled {
  background: #e5efeb;
}
.jump a.current {
  outline: 2px solid var(--blue);
}
details.review {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
details.review summary {
  cursor: pointer;
  font-weight: 600;
}
details.review p {
  margin-top: 9px;
}
.library-group {
  margin: 28px 0;
}
.library-group h2 {
  margin-bottom: 14px;
}
.terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.term {
  padding: 14px 17px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}
.term p {
  color: var(--slate);
  font-size: 0.95rem;
  margin-top: 5px;
}
.ref-row {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.ref-row:hover {
  color: var(--blue);
}
.index-block {
  text-align: left;
  margin-bottom: 8px;
  padding: 15px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.index-block summary {
  cursor: pointer;
  font-weight: 630;
}
.index-block a {
  display: block;
  margin: 6px 0;
}
.profile-panel {
  max-width: 590px;
}
.profile-panel h2 {
  margin: 24px 0 14px;
}
.profile-panel h2:first-child {
  margin-top: 0;
}
.profile-panel form {
  margin-top: 18px;
}
.profile-panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.skip {
  position: fixed;
  top: -60px;
  left: 8px;
  background: white;
  padding: 8px;
  z-index: 10;
}
.skip:focus {
  top: 8px;
}
.loading {
  padding: 12vh 10vw;
}
.toast-on {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #172b44;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 3px 16px #172b4425;
  max-width: 90vw;
}
.modal {
  color: var(--ink);
  border: 0;
  border-radius: 14px;
  max-width: min(460px, 90vw);
  padding: 28px;
  box-shadow: 0 15px 90px #14253f44;
}
.modal::backdrop {
  background: #192a4480;
}
.modal p {
  margin: 12px 0 20px;
}
.hidden,
[hidden] {
  display: none !important;
}
.subheading {
  margin-top: 26px;
  margin-bottom: 12px;
}
.statusline {
  font-size: 0.86rem;
  color: var(--slate);
  min-height: 1.4em;
}
@media (min-width: 1450px) {
  main.wrap {
    padding-top: 42px;
  }
  .hero {
    min-height: 245px;
  }
}
@media (max-width: 850px) {
  .reader-grid {
    grid-template-columns: 1fr;
  }
  .side-outline {
    position: static;
    display: none;
  }
  .reader {
    max-width: none;
  }
  .grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
    gap: 14px;
  }
  .mastin {
    gap: 26px;
  }
  nav.top {
    gap: 15px;
  }
  .login-form {
    padding: 30px;
  }
  .resume-card {
    padding: 16px;
  }
}
@media (max-width: 680px) {
  .mastin {
    height: auto;
    min-height: 61px;
    flex-wrap: wrap;
    padding: 12px 18px 0;
    gap: 4px 12px;
  }
  .mastin:has(.local) {
    padding-bottom: 12px;
  }
  .mastin .brand {
    font-size: 1.22rem;
  }
  .account {
    order: 1;
  }
  nav.top {
    order: 2;
    width: 100%;
    gap: 0;
    justify-content: space-between;
  }
  nav.top a {
    padding: 9px 4px 8px;
    font-size: 0.88rem;
  }
  .login-wrap {
    padding: 18px;
    min-height: auto;
  }
  .login-panel {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 215px;
    padding: 22px 26px;
  }
  .login-art h2 {
    font-size: 3.3rem;
    margin: 5px 0 11px;
  }
  .login-art h2 br {
    display: none;
  }
  .login-art:before {
    background-position: center 47%;
  }
  .login-form {
    padding: 26px;
  }
  .login-form h1 {
    font-size: 3rem;
  }
  .login-form form {
    margin-top: 21px;
  }
  .grid,
  .two-col,
  .terms {
    grid-template-columns: 1fr;
  }
  .grid {
    margin-top: 22px;
  }
  .grid > aside {
    margin-top: 7px;
  }
  .resume-card {
    flex-wrap: wrap;
  }
  .hero {
    min-height: 195px;
    padding: 23px;
  }
  .hero:before {
    left: 0;
  }
  .hero:after {
    background: linear-gradient(
      90deg,
      rgba(18, 38, 65, 0.95),
      rgba(22, 43, 68, 0.49)
    );
  }
  .hero h1 {
    font-size: 3.15rem;
  }
  .hero .glance {
    gap: 9px;
  }
  .section-title h2 {
    font-size: 2.05rem;
  }
  main.wrap {
    padding: 19px 15px 35px;
  }
  .crumb {
    margin-bottom: 12px;
  }
  .lesson-link {
    padding-left: 32px;
  }
  .week-toggle {
    padding: 13px;
    gap: 10px;
  }
  .reader {
    padding: 21px;
  }
  .lesson-foot .btn {
    margin-left: auto;
  }
  .exam-card h2 {
    font-size: 2.1rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn,
  .btn-alt,
  .week-toggle,
  .choice {
    transition:
      background 0.12s,
      border-color 0.12s;
  }
}
.wk-name {
  display: block;
}
.wk-meta {
  display: block;
}
@media (min-width: 681px) {
  .hero:after {
    background: linear-gradient(
      90deg,
      #172b47 0%,
      #172b47 32%,
      rgba(23, 43, 71, 0.94) 40%,
      rgba(23, 43, 71, 0.5) 65%,
      rgba(23, 43, 71, 0.1) 100%
    );
  }
}

.android-app .account { display: none; }
.android-app nav.top a, .android-app .choice, .android-app .lesson-link,
.android-app .btn, .android-app .btn-alt, .android-app .jump a,
.android-app .week-toggle, .android-app .password-field button { min-height: 48px; }
.android-app .jump a, .android-app .password-field button { min-width: 48px; }
.android-app .reader, .android-app .exam-panel { overflow-wrap: anywhere; min-width: 0; }
.android-app .exam-bar, .android-app .stage-line, .android-app .progressline { flex-wrap: wrap; gap: .4rem; }
.android-app .resume-card > div { min-width: 0; }
.android-app .lesson-foot, .android-app .actions { flex-wrap: wrap; }
.android-app .reader p, .android-app .exam-panel .choice { line-height: 1.55; }
@media (max-width: 680px) {
  .android-app .mastin { min-height: 54px; padding: 8px 18px; }
  .android-app nav.top {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 8; width: auto;
    display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 10px #172b4709;
  }
  .android-app nav.top a {
    flex-direction: column; justify-content: center; gap: 2px; min-height: 58px;
    text-align: center; padding: 5px 2px; border-bottom: 0; border-top: 3px solid transparent;
    font-size: .79rem; line-height: 1.2;
  }
  .android-app nav.top a.active { border-top-color: var(--blue); background: #f2f5fc; }
  .android-app nav.top .ico { width: 20px; height: 20px; }
  .android-app main.wrap { padding-bottom: 100px; }
  .android-app .toast-on { bottom: 78px; }
  .android-app .hero { min-height: 170px; }
  .android-app .hero h1 { font-size: clamp(2.4rem, 11vw, 3.1rem); }
  .android-app .reader { padding: clamp(16px,5vw,25px); }
  .android-app .resume-card .btn { flex: 1 1 100%; justify-content: center; }
  .android-app .exam-panel { padding: 18px; }
  .android-app .question, .android-app .week-toggle > span { min-width: 0; }
  .android-app .login-art { min-height: 130px; }
  .android-app .login-art h2 { font-size: clamp(2.15rem, 9.5vw, 3.2rem); }
}
@media (orientation: landscape) and (max-height: 550px) {
  .android-app .mastin { min-height: 48px; height: auto; }
  .android-app .hero { min-height: 135px; }
  .android-app .reader { max-width: 76ch; margin-inline: auto; }
}
.android-app .reader-top { flex-wrap: wrap; gap: .25rem .75rem; }
.android-app .reader-top .text-btn { flex: 0 0 auto; white-space: nowrap; min-height: 48px; }
.android-app .reader-top .eyebrow { flex: 1 1 10rem; }

.case-photo, .learning-figure { margin: 1.4rem 0 1.8rem; }
.case-photo img { width: 100%; height: auto; display: block; border-radius: 8px; }
.case-photo figcaption, .learning-figure figcaption { margin-top: .75rem; color: var(--slate); font-size: .94rem; }
.learning-figure { border: 1px solid var(--line); background: #f5f8fc; border-radius: 10px; padding: 1.1rem; }
.learning-figure h3 { margin-bottom: 1rem; }
.learning-figure .course-diagram { width: min(100%, 29rem); display: block; margin-inline: auto; }
.case-steps { padding: 0; margin: 0; list-style: none; display: grid; gap: .75rem; }
.case-steps li { position: relative; display: grid; grid-template-columns: minmax(7rem, 1fr) 3fr; gap: .6rem; padding: .6rem .8rem; background: white; border: 1px solid var(--line); border-radius: 6px; }
.case-steps:not(.case-matrix) li:not(:last-child)::after { content: ""; position: absolute; height: .75rem; top: 100%; left: 1.5rem; border-left: 2px solid #718bbc; }
.case-steps strong { color: #234890; }
.exam-weights { margin: .4rem 0; display: grid; gap: .35rem; }
.exam-weights > div { display: grid; grid-template-columns: minmax(8rem, 1fr) 1.2fr; align-items: center; gap: .5rem; }
.exam-weights dd { margin: 0; display: flex; align-items: center; gap: .5rem; }
.exam-weights meter { width: 100%; min-width: 0; }
.exam-weights meter::-webkit-meter-optimum-value { background: #426dba; }
.exam-weights b { min-width: 1.5rem; font-variant-numeric: tabular-nums; }
.teaching-lab { border-top: 1px solid var(--line); padding-top: 1.15rem; }
.teaching-lab .eyebrow { color: #355a79; }
.teaching-lab h2 { margin-top: .25rem; }
.lab-challenge, .week-handoff { padding: 1rem; margin-block: 1rem; border-radius: 7px; background: #eef4f1; }
.lab-challenge summary, .unit-index summary { cursor: pointer; min-height: 48px; align-content: center; color: var(--blue); font-weight: 650; }
.lab-reading { font-size: .94rem; }
.week-handoff { border-left: 3px solid #648a7c; }
@media (max-width: 520px) {
  .case-steps li { grid-template-columns: 1fr; gap: .15rem; }
  .learning-figure { padding: .85rem; }
  .exam-weights > div { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
}
.courses-link { font-size: .94rem; font-weight: 650; color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.courses-link:hover { text-decoration: underline; }
.hero.plain-hero:before { background: none; }
.android-app .courses-link { margin-left: auto; }
@media (max-width:680px) { .mastin .courses-link { margin-left: auto; } .mastin .courses-link + nav + .account { margin-left: 0; } }
.course-diagram { display: block; max-width: 100%; margin-inline: auto; }
.practice-source + .practice-source { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .75rem; }

.figure-legend summary { color: var(--blue); cursor: pointer; min-height: 48px; align-content: center; }
.figure-legend li + li { margin-top: .35rem; }

.review-entry { margin: 1.25rem 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.review-entry > div:first-child { flex: 1 1 24rem; }
.review-entry p { margin: .45rem 0; }
.review-entry .actions { margin: 0; }
.review-metrics { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; padding: 1rem 0; }
.review-metrics span { color: #536176; }
#review-options { padding: 0; margin: 1.25rem 0; border: 0; }
#review-options legend { font-weight: 600; margin-bottom: .6rem; }
.review-option { display: flex; align-items: baseline; gap: .65rem; padding: .8rem; margin-bottom: .45rem; border: 1px solid #c8d1d9; border-radius: .5rem; cursor: pointer; }
.review-option:has(input:checked) { background: #eaf3f2; border-color: #427477; }
.review-option input { width: auto; flex: none; }
.note-conflict { margin-top: .75rem; }
.note-conflict pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 18rem; overflow: auto; }
#device-drafts:not(:empty) { margin: 1rem 0; }
.appendix-link, .workbook-link { padding: 1rem 1.15rem; margin: .85rem 0; border: 1px solid #c8d1d9; border-radius: .6rem; }
.workbook-link strong, .appendix-link strong, .evidence-list small { display: block; }
.appendix-section { margin: 1rem 0; }
.appendix-sources li { margin: .45rem 0; }
.evidence-list > div { padding: .8rem 0; border-bottom: 1px solid #d5dce2; }
.evidence-list dd { margin: .2rem 0 0; }
.evidence-list small { margin-top: .2rem; color: #536176; }

.wb-controls { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.15rem 0; }
.wb-controls label { display: grid; gap: .35rem; font-weight: 600; flex: 1 1 12rem; }
.wb-controls select { width: 100%; padding: .65rem; font: inherit; border: 1px solid var(--line); border-radius: .45rem; color: var(--ink); background: white; }
.wb-unit, .wb-exercise, .wb-check, .wb-figure { margin: 1rem 0; }
.wb-unit summary small { font-weight: 400; }
.index-block .wb-row { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: baseline; gap: .5rem; border-top: 1px solid var(--line); padding: .75rem 0; }
.wb-row small, .wb-row > span { color: var(--slate); font-size: .83rem; }
.wb-reading p, .wb-exercise p, .wb-check p { max-width: 67ch; line-height: 1.65; }
.wb-exercise details { margin-top: .8rem; }
.wb-exercise summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.wb-check fieldset { border: 0; margin: 0 0 .75rem; padding: 0; }
.wb-check legend { margin-bottom: .6rem; }
.wb-figure { background: #f0f5f8; border: 1px solid var(--line); border-radius: .75rem; padding: clamp(.55rem, 3vw, 1.25rem); }
.wb-figure img { width: 100%; height: auto; max-height: 27rem; display: block; object-fit: contain; }
.wb-figure figcaption { margin-top: .75rem; color: var(--slate); }
.wb-attached { margin: 1.4rem 0; }
@media (max-width: 540px) {
  .index-block .wb-row { grid-template-columns: 2.25rem 1fr; gap: .1rem .5rem; }
  .wb-row small { grid-column: 2; }
}

.bench-page > .card { margin: 1.15rem 0; }
.bench-page .wb-controls label, .bench-page .wb-controls select { min-width: 0; max-width: 100%; }
.bench-page .index-block { margin-top: 1rem; }
.bench-form { padding-top: 1rem; }
.bench-form select { width: 100%; padding: .65rem; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: .45rem; }
.bench-form fieldset { margin: 0; padding: 0; border: 0; }
.bench-form legend { font-weight: 600; margin-bottom: .35rem; }
.bench-topic { display: flex; align-items: center; gap: .65rem; min-height: 44px; margin: 0; font-weight: 400; }
.bench-topic input { width: 1.1rem; height: 1.1rem; flex: none; }
.bench-row + .bench-row { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }

.lesson-video { border:1px solid var(--line); border-radius:12px; padding:clamp(.85rem,2vw,1.4rem); margin:1.75rem 0; background:#fff; }
.video-heading,.video-tools { display:flex; align-items:baseline; justify-content:space-between; gap:.9rem; }
.reader .video-heading h2 { margin:0 0 .75rem; }
.video-heading span,.video-tools label { color:var(--slate); font-size:.88rem; white-space:nowrap; }
.lesson-video video { display:block; width:100%; aspect-ratio:16/9; border-radius:7px; background:#182a3e; }
.video-tools { margin-top:.65rem; }
.video-tools details { flex:1; min-width:0; }
.video-tools summary { cursor:pointer; padding:.45rem 0; }
.video-tools select { color:var(--ink); background:white; border:1px solid var(--line); border-radius:.4rem; padding:.45rem; }
.video-takeaways { padding-left:1.35rem; }
.teacher-prediction { margin-top:.75rem; padding:1rem; border-left:3px solid #227168; background:#f1f5f0; border-radius:.3rem; }
.teacher-prediction h3 { margin:0; }
.prediction-choices { display:grid; gap:.5rem; }
.prediction-choices button { text-align:left; white-space:normal; }

.case-variation { margin-top:1rem; padding:1rem; border-left:3px solid #227168; background:#f1f5f0; }
.case-variation h3 { margin-top:0; }
.case-variation summary { cursor:pointer; padding:.45rem 0; }
.saved-prediction { margin-top:.75rem; }
.saved-prediction summary { cursor:pointer; padding:.45rem 0; }
