:root {
  color-scheme: light;
  --ink: #0c2625;
  --muted: #465557;
  --line: #ccd6d4;
  --surface: #fff;
  --page: #f4f6f4;
  --rail: #103b3d;
  --moss: #4f663e;
  --moss-dark: #3c5030;
  --sage: #dfe7d6;
  --radius: 10px;
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.5; }
a { color: #224f47; text-underline-offset: .18em; }
button, input, textarea { font: inherit; }
h1, h2, h3 { line-height: 1.13; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.15rem, 4.1vw, 3.5rem); letter-spacing: -.053em; font-weight: 780; }
h2 { font-size: clamp(1.35rem, 2.4vw, 2.2rem); letter-spacing: -.04em; font-weight: 750; }
h3 { font-size: 1.16rem; letter-spacing: -.015em; }
p { margin: .5rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #198475; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1; top: 8px; left: 8px; padding: 8px 12px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: clamp(215px, 18.8vw, 280px) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column;
  background: var(--rail); color: #f4f8f5; padding: 28px 14px 19px;
}
.brand { display: block; color: inherit; text-decoration: none; padding: 3px 16px; }
.brand span { display: block; font-size: .79rem; font-weight: 570; letter-spacing: .1em; text-transform: uppercase; }
.brand strong { display: block; margin-top: .27em; font-size: clamp(1.9rem, 2.86vw, 2.6rem); letter-spacing: -.055em; line-height: 1.13; }
.sidebar nav { margin-top: 40px; display: grid; gap: 3px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 17px; min-height: 52px; padding: 11px 19px;
  color: inherit; text-decoration: none; border-radius: 8px; font-weight: 570; font-size: 1.12rem;
}
.sidebar nav a[aria-current], .sidebar nav a:hover { background: #365953; }
.sidebar svg { width: 24px; height: 24px; flex: none; }
.sidebar :focus-visible { outline-color: #c5dca8; }
.operator { margin-top: auto; padding: 14px 15px 0; border-top: 1px solid #527472; font-size: .87rem; }
.operator a { color: #f4f8f5; font-weight: 660; }
.operator button { padding: 0; min-height: 36px; background: none; color: #e0eee5; font-size: .84rem; font-weight: 500; text-decoration: underline; }
main#content { width: 100%; max-width: 1500px; padding: clamp(34px, 4.65vw, 70px) clamp(24px, 2.5vw, 40px) 72px; }
main#content:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading > div:first-child > p { max-width: 66ch; font-size: clamp(1rem, 1.65vw, 1.36rem); }
.page-heading > div:first-child > .subtle { font-size: .93rem; }
.dashboard-heading { padding-inline: 13px 0; margin-bottom: 34px; }
.dashboard-heading > .button { margin-top: 12px; flex: none; }
button, .button, summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px;
  color: white; background: var(--moss); font-weight: 650; text-decoration: none;
  line-height: 1.3; font-size: .95rem; cursor: pointer;
}
.dashboard-heading > .button { padding: 12px 19px; font-size: clamp(.94rem, 1.4vw, 1.16rem); min-height: 51px; }
button:hover, .button:hover, summary:hover { background: var(--moss-dark); }
.secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.secondary:hover { background: #eaf0e7; }
.feature {
  position: relative; isolation: isolate; overflow: hidden; min-height: 153px; margin-bottom: 37px;
  padding: 34px clamp(20px, 3.1vw, 44px); border-radius: var(--radius); background: var(--sage);
  display: flex; flex-direction: column; justify-content: center;
}
.feature::before {
  content: ""; position: absolute; inset: 0 0 0 auto; z-index: -1; width: 50%;
  background: url("/static/contours.jpg") center right / cover no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 37%);
}
.feature h2 { font-size: clamp(1.4rem, 2.65vw, 2.25rem); }
.feature p { color: #254840; font-size: clamp(.95rem, 1.55vw, 1.25rem); }
.catalogue > h2 { margin-bottom: 21px; }
.search {
  min-height: 49px; display: flex; align-items: center; gap: 6px;
  border: 1px solid #9facad; border-radius: var(--radius); margin-bottom: 22px; background: var(--surface);
}
.search button { width: 47px; padding: 0; min-height: 45px; flex: none; background: transparent; color: var(--muted); }
.search button:hover { background: #edf1ec; }
.search svg { width: 23px; height: 23px; }
.search input { min-width: 0; padding: 10px 8px 10px 0; margin: 0; background: none; border: 0; font-size: 1.03rem; }
.search a { margin-right: 15px; font-size: .9rem; }
.catalogue-table { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
table { border-collapse: collapse; width: 100%; table-layout: fixed; text-align: left; }
thead { background: #f8f9f8; color: #424f52; }
th, td { padding: 14px 22px; border-bottom: 1px solid #dbe3e0; overflow-wrap: anywhere; }
thead th { font-size: .98rem; font-weight: 600; }
thead th:first-child { width: 55%; }
tbody th { font-size: clamp(.99rem, 1.55vw, 1.24rem); font-weight: 600; }
tbody a { color: var(--ink); text-decoration: none; }
tbody a:hover { text-decoration: underline; }
tbody tr:hover { background: #f6f9f5; }
tbody tr:last-child > * { border-bottom: 0; }
td { color: #244640; }
.chevron { width: 10px; height: 10px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); flex: none; }
td .chevron { float: right; margin: 7px 3px 0 0; }
.mobile-label { display: none; }
.back { display: inline-block; max-width: 100%; margin-bottom: 23px; font-size: .95rem; overflow-wrap: anywhere; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.empty p { margin: 0; }
.subtle { color: var(--muted); font-size: .87rem; }
.actions, .section-heading, .module-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.actions { margin-top: 20px; }
.heading-actions { flex: 0 0 auto; justify-content: end; margin-top: 2px; }
.section-heading { justify-content: space-between; margin-bottom: 17px; }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.tabs a { padding: 9px 3px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; font-weight: 620; }
.tabs a[aria-current] { color: var(--ink); border-color: var(--moss); }
.tabs span { font-size: .82rem; color: var(--muted); margin-left: 4px; }
.record-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.record { padding: 20px 23px; border-bottom: 1px solid var(--line); }
.record:last-child { border-bottom: 0; }
.record-main, .course-lesson { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 16px; }
.course-lesson .chevron { align-self: center; margin-right: 5px; }
.module-number { display: grid; place-items: center; min-width: 33px; height: 33px; padding: 0 7px; border-radius: 7px; background: #edf2e9; font-weight: 720; color: #395435; }
.record-edit { margin-left: 10px; font-weight: 620; font-size: .9rem; }
.source-record { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.module-tools { margin-top: 13px; padding-left: 49px; align-items: baseline; font-size: .9rem; }
.generate { flex-basis: 100%; }
.generate summary { width: fit-content; list-style: none; color: var(--moss-dark); background: #edf2e9; border-color: #cedbc9; }
.generate summary::-webkit-details-marker { display: none; }
.generate summary:hover { background: #e3ecde; }
.generate form { margin-top: 10px; max-width: 640px; }
.status { display: inline-block; margin-top: 9px; font-size: .83rem; font-weight: 660; color: #31594e; }
.status[data-state="failed"] { color: #87382e; }
.edit-form { max-width: 720px; }
label { display: block; margin: 14px 0 5px; color: var(--ink); font-size: .94rem; font-weight: 650; }
input:not([type="radio"], [type="checkbox"], [type="hidden"]), textarea {
  display: block; width: 100%; padding: 10px 11px; color: var(--ink); background: #fff;
  border: 1px solid #aab9b5; border-radius: 7px; font-size: .98rem;
}
.search input[type="search"] { border: 0; background: none; }
textarea { resize: vertical; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; padding: 3px 13px 12px; }
legend { padding: 0 6px; font-weight: 700; }
.choice { display: flex; gap: 9px; align-items: baseline; font-weight: 500; margin: 11px 0 0; }
.choice input { accent-color: var(--moss); flex: none; }
.form-error { padding: 10px 13px; border-radius: 7px; background: #f7e9e5; color: #87382e; margin: 0 0 16px; }
.intro { margin-bottom: 26px; }
.intro h1 { max-width: 900px; }
.intro p { max-width: 65ch; }
.grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.overview, .assessment { margin-top: 22px; }
.scene { padding: 14px 0; border-bottom: 1px solid var(--line); }
.scene:last-child { border-bottom: 0; padding-bottom: 0; }
.player, .assessment { max-width: 940px; }
video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #121a1c; }
.downloads { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.feedback:empty { display: none; }
.signin { display: grid; align-items: center; justify-items: center; min-height: 100vh; padding: 24px; }
.signin-card { width: min(100%, 430px); padding: 32px; }
.signin-card h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin: 16px 0 24px; }
.signin-card img { max-width: 100%; height: auto; }
@media (max-width: 900px) {
  .heading-actions { flex: 0 1 auto; }
  .feature::before { width: 55%; opacity: .85; }
}
@media (max-width: 700px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 14px 16px 10px; display: grid; grid-template-columns: 1fr auto; }
  .brand { padding: 0; }
  .brand span { font-size: .65rem; }
  .brand strong { font-size: 1.78rem; }
  .sidebar nav { grid-column: 1 / -1; display: flex; margin-top: 12px; gap: 6px; }
  .sidebar nav a { min-height: 43px; padding: 9px 10px; gap: 7px; font-size: .91rem; }
  .sidebar svg { width: 18px; height: 18px; }
  .operator { grid-column: 2; grid-row: 1; border: 0; padding: 0; text-align: right; }
  .operator button { min-height: 28px; }
  main#content { padding: 27px 16px 52px; }
  .dashboard-heading { padding-inline: 0; }
  .page-heading { margin-bottom: 22px; flex-wrap: wrap; }
  .heading-actions { justify-content: start; }
  .dashboard-heading > .button { margin: 0; min-height: 44px; }
  .feature { min-height: 132px; padding: 21px 19px; margin-bottom: 28px; }
  .feature::before { width: 70%; opacity: .55; }
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 17px; }
  .record { padding: 15px; }
  .record-main, .course-lesson { gap: 10px; }
  .module-tools { padding-left: 0; }
  th, td { padding: 11px 9px; }
  thead th:first-child { width: 56%; }
  thead th { font-size: .77rem; }
  td .chevron { display: none; }
}
