:root {
  --bg: #f2f6f7;
  --surface: #ffffff;
  --surface-soft: #edf7f8;
  --text: #10212b;
  --muted: #5e717d;
  --primary: #0a7f8c;
  --primary-dark: #075e69;
  --accent: #e7a83a;
  --border: #dce8ec;
  --shadow: 0 8px 22px rgba(17, 51, 64, 0.07);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

html.is-embedded body {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.journal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 33, 43, 0.48);
}

.journal-modal[hidden] {
  display: none;
}

.journal-modal__content {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(16, 33, 43, 0.24);
}

.journal-modal__content h2 {
  margin: 0 0 8px;
}

.journal-modal__content > p:not(.eyebrow),
.journal-modal__note {
  color: var(--muted);
}

.journal-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.journal-modal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.journal-modal-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.journal-modal-form input,
.journal-modal-form select {
  width: 100%;
}

.journal-modal-form .button,
.journal-modal__note {
  grid-column: 1 / -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #22a7a6);
  box-shadow: 0 6px 14px rgba(10, 127, 140, 0.2);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.brand strong {
  font-size: 0.9rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.nav-menu a:hover,
.text-link:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section--tinted {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: var(--surface-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 34px;
  min-height: calc(86vh - 56px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 100px 0 auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(10, 127, 140, 0.18), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero__lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(10, 127, 140, 0.18);
}

.button:hover {
  background: var(--primary-dark);
}

.button--ghost {
  color: var(--primary-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button--small {
  min-height: 32px;
  padding: 0 12px;
  color: #fff !important;
}

.hero-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fcfd);
}

.hero-card__number {
  display: block;
  color: var(--primary);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}

.hero-card p,
.feature-card p,
.program-card p,
.discipline-card p,
.person-card p,
.news-card p,
.section-heading p,
.contacts p,
.form-note {
  color: var(--muted);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 22px;
}

.section-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 20px;
  align-items: end;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.program-card,
.discipline-card,
.person-card,
.news-card,
.science-panel,
.quote-card,
.login-form,
.contact-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card,
.discipline-card,
.person-card,
.news-card,
.science-panel,
.quote-card,
.login-form,
.contact-form {
  padding: 18px;
}

.tabs-shell {
  min-height: 620px;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab-button:hover,
.tab-button.is-active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 6px 14px rgba(10, 127, 140, 0.14);
}

.tab-panel {
  display: none;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.tab-panel.is-active {
  display: block;
}

.portal-layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 420px);
  gap: 20px;
  align-items: start;
}

.login-form {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #fff, #f8fcfd);
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.discipline-list {
  display: grid;
  gap: 10px;
}

.discipline-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
}

.discipline-card span {
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 800;
}

.discipline-card strong {
  color: var(--primary-dark);
}

.lead-text,
.source-note {
  color: var(--muted);
}

.station-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 14px;
}

.station-tab-button {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.teacher-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.teacher-disciplines li {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary-dark);
  background: #f4fbfc;
  font-size: 0.8rem;
  font-weight: 700;
}

.station-tab-button:hover,
.station-tab-button.is-active {
  color: var(--primary-dark);
  border-color: rgba(10, 127, 140, 0.45);
  background: #f4fbfc;
}

.station-panel {
  display: none;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fcfd);
  box-shadow: var(--shadow);
}

.station-panel.is-active {
  display: grid;
}

.station-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 1rem;
  font-weight: 800;
}

.station-panel p {
  color: var(--muted);
}

.station-panel--trainer {
  grid-template-columns: 56px minmax(0, 1fr);
}

.prescription-trainer {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.prescription-trainer__top,
.prescription-task-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.prescription-trainer h4 {
  margin: 0 0 4px;
  color: var(--primary-dark);
  font-size: 0.98rem;
}

.prescription-timer {
  display: grid;
  place-items: center;
  width: 112px;
  min-height: 64px;
  border: 1px solid rgba(10, 127, 140, 0.35);
  border-radius: 14px;
  color: var(--primary-dark);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 127, 140, 0.1);
}

.prescription-timer span {
  display: block;
  color: var(--primary-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.prescription-timer small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prescription-timer.is-running {
  border-color: #dc2626;
  background: #fff1f2;
}

.prescription-task-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prescription-task-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--primary-dark);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.prescription-task-button.is-active,
.prescription-task-button:hover {
  border-color: var(--primary);
  background: rgba(10, 127, 140, 0.1);
}

.prescription-recorder-status,
.prescription-recipe-card,
.prescription-check-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.prescription-recipe-grid {
  display: grid;
  gap: 8px;
}

.prescription-recipe-card {
  padding: 10px;
}

.prescription-recipe-card--wide {
  grid-column: 1 / -1;
}

.prescription-recipe-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prescription-recipe-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.84rem;
}

.prescription-recipe-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 18px;
  background: rgba(239, 248, 249, 0.97);
}

.prescription-overlay-close {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 1002;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 50%;
  color: #991b1b;
  background: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 51, 64, 0.16);
}

.prescription-overlay-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding-right: 54px;
  color: var(--primary-dark);
}

.prescription-overlay-header strong {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
}

.prescription-overlay-header span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

.prescription-overlay-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-height: 0;
}

.prescription-pdf-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  min-height: 0;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(17, 51, 64, 0.14);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.prescription-pdf-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}

.prescription-pdf-panel header small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.prescription-pdf-panel.is-dimmed {
  opacity: 0.12;
  pointer-events: none;
}

.prescription-pdf-panel.is-zoomed {
  position: absolute;
  inset: 0;
  z-index: 1001;
  padding: 6px;
  transform: none;
}

.prescription-pdf-panel.is-zoomed header {
  font-size: 0.76rem;
}

.prescription-pdf-viewer {
  position: relative;
  height: 100%;
  min-height: 0;
}

.prescription-pdf-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.prescription-pdf-zoom-hit {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.prescription-pdf-panel.is-zoomed .prescription-pdf-zoom-hit {
  cursor: zoom-out;
}

.informing-dialogue-overlay {
  background: #f6fbfc;
}

.informing-dialogue-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: 0;
  max-width: 980px;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(10, 127, 140, 0.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(17, 51, 64, 0.1);
}

.informing-dialogue-page header {
  display: grid;
  gap: 6px;
}

.informing-dialogue-page h4 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1rem;
}

.informing-dialogue-page p {
  margin: 0;
}

.informing-dialogue-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.informing-dialogue-question {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(10, 127, 140, 0.16);
  border-radius: 12px;
  background: rgba(10, 127, 140, 0.055);
  color: var(--text);
  font-size: 0.9rem;
}

.informing-dialogue-question span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.informing-dialogue-page footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.prescription-transcript {
  padding: 8px 10px;
  border: 1px solid rgba(10, 127, 140, 0.18);
  border-radius: 8px;
  background: rgba(10, 127, 140, 0.07);
  color: var(--text);
  font-size: 0.78rem;
}

.prescription-links {
  margin-top: 8px;
}

.prescription-recorder-status {
  display: grid;
  gap: 8px;
  width: 220px;
  padding: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.prescription-recorder-status audio {
  width: 100%;
}

.prescription-checklist {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.prescription-checklist[hidden] {
  display: none !important;
}

.prescription-checklist-list {
  display: grid;
  gap: 6px;
}

.prescription-check-item {
  display: grid;
  grid-template-columns: 22px 24px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}

.prescription-check-item span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.prescription-check-item em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.prescription-check-item.is-correct span {
  background: #16a34a;
}

.prescription-check-item.is-wrong {
  border-color: rgba(220, 38, 38, 0.3);
  background: #fff1f2;
}

.prescription-check-item.is-wrong span {
  background: #dc2626;
}

.station-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.source-note {
  margin: 22px 0 0;
  font-size: 0.92rem;
}

.program-list {
  display: grid;
  gap: 10px;
}

.program-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 18px;
}

.program-card span {
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 800;
}

.science-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
}

.quote-card p {
  font-size: 1.45rem;
  line-height: 1.35;
}

.quote-card span {
  color: rgba(255, 255, 255, 0.78);
}

.person-card {
  text-align: center;
}

.avatar {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 800;
}

.news-card time {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 800;
}

.contacts {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

.contact-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-list dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.teacher-dashboard {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

#teacher-login-screen[hidden] {
  display: none !important;
}

.teacher-dashboard[hidden] {
  display: none !important;
}

.teacher-dashboard:not([hidden]) {
  margin-top: 0;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f4fbfc);
  box-shadow: var(--shadow);
}

.dashboard-header,
.credentials-card,
.journal-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.dashboard-section-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-section-tab {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary-dark);
  background: var(--surface);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-section-tab.is-active,
.dashboard-section-tab:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.academic-context {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f4fbf7;
}

.academic-context[hidden] {
  display: none !important;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.credentials-grid span {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--primary-dark);
  background: #f4fbfc;
  font-weight: 800;
}

.credentials-grid--compact {
  grid-template-columns: 1fr;
  font-size: 0.86rem;
}

.journal-select-label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.journal-context {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(150px, 0.7fr) minmax(190px, 1fr) minmax(180px, 1.15fr);
  gap: 10px;
  align-items: end;
}

.journal-context > .button {
  width: 100%;
  min-height: 36px;
}

select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fbfdfe;
}

.journal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.journal-tab-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.journal-tab-button.is-active,
.journal-tab-button:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.journal-panel {
  display: grid;
  gap: 12px;
}

.journal-panel__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.journal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-export-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-export-controls[hidden] {
  display: none !important;
}

.plan-export-controls select,
.plan-export-controls input,
.science-table-card__controls input {
  width: auto;
  min-width: 112px;
  max-width: 132px;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.science-table-card__controls select {
  width: auto;
  min-width: 72px;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.quick-action-button {
  position: relative;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1;
}

.quick-action-button--badged small {
  position: absolute;
  right: 3px;
  bottom: 2px;
  min-width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 12px;
  text-align: center;
}

.quick-action-button[aria-label="Выгрузить в Word"] {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 900;
}

.science-tables {
  display: grid;
  gap: 14px;
}

.science-table-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fcfd;
}

.science-table-card__header {
  display: grid;
  gap: 8px;
}

.science-table-card__header h5 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.92rem;
}

.science-table-card__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.science-table-card__controls label {
  display: grid;
  gap: 3px;
  font-size: 0.76rem;
  color: var(--muted);
}

.science-table-card__controls .quick-check {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
}

.science-table-card__controls .quick-check input {
  width: auto;
  min-width: auto;
  padding: 0;
}

.science-table-card__controls .quick-check--button {
  justify-content: center;
  width: 34px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.science-table-card__controls .quick-check--button input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.science-table-card__controls .quick-check--button span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 700;
}

.science-table-card__controls .quick-check--button:has(input:checked) {
  border-color: var(--primary);
  background: rgba(10, 127, 140, 0.1);
  color: var(--primary-dark);
}

.journal-table-wrap {
  position: relative;
  overflow-x: auto;
}

.practice-journal-scroll-top {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 8;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  height: 16px;
  background: #f8fcfd;
}

.practice-journal-scroll-top[hidden] {
  display: none;
}

.practice-journal-scroll-top__track {
  height: 1px;
}

.practice-journal-scroll {
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.journal-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.journal-table th,
.journal-table td {
  border: 1px solid var(--border);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.journal-table th {
  color: var(--primary-dark);
  background: #eef6f7;
}

.journal-table td {
  min-width: 90px;
  background: #fff;
}

.hours-section {
  gap: 12px;
}

.hours-card__header h5 span,
.hours-semester-mark {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.hours-table {
  min-width: 720px;
}

.hours-table th:nth-child(1),
.hours-table td:nth-child(1) {
  width: 52px;
  min-width: 52px;
  text-align: center;
}

.hours-table th:nth-child(3),
.hours-table td:nth-child(3) {
  width: 150px;
  min-width: 130px;
  text-align: center;
}

.hours-table th:nth-child(4),
.hours-table td:nth-child(4) {
  width: 100px;
  min-width: 100px;
  text-align: center;
}

.hours-table th:nth-child(5),
.hours-table td:nth-child(5) {
  width: 270px;
  min-width: 270px;
  text-align: center;
}

.hours-table th:nth-child(6),
.hours-table td:nth-child(6) {
  width: 150px;
  min-width: 130px;
  text-align: center;
}

.hours-practice-select,
.hours-ksr-select {
  width: auto;
  min-width: 64px;
  margin-left: 6px;
  padding: 3px 6px;
  font-size: 0.76rem;
}

.hours-total-row td {
  color: var(--primary-dark);
  background: #eef6f7;
  font-weight: 900;
}

.electronic-journal {
  gap: 20px;
}

.electronic-journal-table {
  min-width: 1200px;
}

.electronic-journal-table th {
  text-align: center;
  white-space: nowrap;
}

.electronic-journal-header {
  min-width: 46px;
  min-height: 24px;
  outline: none;
  white-space: pre-line;
}

.electronic-journal-header:focus {
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--primary);
}

.electronic-journal-header--fixed {
  font-weight: 800;
}

.practice-lesson-meta {
  display: grid;
  gap: 5px;
  padding: 0 12px;
}

.lecture-lesson-meta {
  display: grid;
  gap: 5px;
  padding: 0 8px;
}

.journal-lesson-number {
  display: inline-grid;
  place-items: center;
  justify-self: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(10, 127, 140, 0.12);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.electronic-journal-header--practice-title {
  font-weight: 800;
}

.practice-lesson-meta__field {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  text-align: left;
}

.practice-lesson-meta__label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.electronic-journal-header--lesson-field {
  min-height: 20px;
  padding: 2px 5px;
  border: 1px solid rgba(10, 127, 140, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: normal;
}

.electronic-journal-header--lesson-field:empty::before {
  content: attr(data-placeholder);
  color: rgba(94, 113, 125, 0.65);
  font-weight: 600;
}

.electronic-journal-table th span,
.practice-lesson-header span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: normal;
}

.electronic-journal-table th,
.electronic-journal-table td {
  position: relative;
}

.journal-selection-check {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(10, 127, 140, 0.35);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.journal-selection-check input {
  width: 10px;
  height: 10px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.journal-selection-check:has(input:checked) {
  border-color: var(--primary);
  background: rgba(10, 127, 140, 0.14);
}

.rating-header-cell,
.rating-row-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rating-header-cell {
  justify-content: center;
  flex-direction: column;
}

.rating-row-cell {
  justify-content: flex-start;
}

.rating-bonus-input {
  width: 100%;
  min-width: 72px;
  border: 1px solid rgba(10, 127, 140, 0.35);
  border-radius: 6px;
  padding: 4px 6px;
  font: inherit;
  background: #fff;
}

.rating-selection-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border: 1px solid rgba(10, 127, 140, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  line-height: 1;
  cursor: pointer;
}

.rating-selection-check input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.rating-selection-check:has(input:checked) {
  border-color: var(--primary);
  background: rgba(10, 127, 140, 0.14);
  color: var(--primary);
}

.journal-table th.is-column-drag-source,
.journal-table th.is-column-drag-target {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.journal-table th.is-column-drag-source {
  opacity: 0.7;
}

.journal-table th.is-column-drag-target {
  background: rgba(10, 127, 140, 0.12);
}

.electronic-journal-table td {
  min-width: 70px;
  padding: 6px;
  text-align: center;
}

.electronic-journal-table td:nth-child(2) {
  min-width: 220px;
  text-align: left;
}

.electronic-journal-input {
  min-height: 24px;
  outline: none;
}

.electronic-journal-input:focus {
  box-shadow: inset 0 -2px 0 var(--primary);
}

.electronic-journal-input--name {
  text-align: left;
}

.electronic-journal-table .is-absence {
  background: #ffe4e6;
  color: #991b1b;
}

.absence-count,
.module-result,
.practice-average {
  font-weight: 700;
  color: var(--primary-dark);
}

.practice-lesson-cell {
  min-width: 230px;
}

.practice-journal-table th,
.practice-lesson-cell,
.practice-base-cell,
.practice-subheader-cell {
  position: relative;
}

.practice-journal-table thead {
  position: sticky;
  top: 16px;
  z-index: 4;
}

.practice-journal-table thead th {
  position: relative;
  z-index: 1;
}

.practice-journal-table th[data-practice-base-header="number"],
.practice-journal-table td[data-practice-base-column="number"] {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: var(--practice-number-column-width);
  background: #fff;
}

.practice-journal-table th[data-practice-base-header="number"] {
  position: sticky;
  top: 16px;
  z-index: 6;
  background: #eef6f7;
}

.practice-journal-table th[data-practice-base-header="studentName"],
.practice-journal-table td[data-practice-base-column="studentName"] {
  position: sticky;
  left: var(--practice-number-column-width);
  z-index: 3;
  box-shadow: 3px 0 5px rgba(14, 47, 54, 0.12);
  background: #fff;
}

.practice-journal-table th[data-practice-base-header="studentName"] {
  position: sticky;
  top: 16px;
  z-index: 6;
  background: #eef6f7;
}

.practice-subcells {
  display: grid;
  grid-template-columns: repeat(5, minmax(36px, 1fr));
  gap: 4px;
}

.practice-subcell-wrap {
  position: relative;
  min-height: var(--practice-row-height, 24px);
}

.practice-subcells .electronic-journal-input,
.practice-average {
  min-height: var(--practice-row-height, 24px);
  padding: 2px 4px;
  border-radius: 6px;
  background: rgba(238, 246, 247, 0.7);
  color: var(--text);
}

.practice-subcell-wrap.has-retake .practice-grade-value {
  border: 1px solid var(--primary);
  box-shadow: inset 0 0 0 1px rgba(10, 127, 140, 0.18);
}

.practice-retake-input {
  position: absolute;
  top: -6px;
  right: -5px;
  z-index: 2;
  min-width: 16px;
  min-height: 16px;
  padding: 0 3px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  outline: none;
}

.practice-retake-input:focus {
  box-shadow: 0 0 0 2px rgba(10, 127, 140, 0.18);
}

.practice-subcells .electronic-journal-input.is-absence {
  background: #ffe4e6;
  color: #991b1b;
}

.practice-subheader-row {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.electronic-journal-header--sub {
  min-width: 64px;
  padding: 2px 14px 2px 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
}

.practice-subheader-cell--empty {
  min-height: 18px;
}

.practice-subheader-cell--empty .practice-resize-handle--subcolumn {
  height: 100%;
}

.practice-subtitle-clear {
  position: absolute;
  top: -8px;
  right: 6px;
  z-index: 3;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid rgba(153, 27, 27, 0.25);
  border-radius: 50%;
  background: #fff;
  color: #991b1b;
  font-size: 0.65rem;
  line-height: 12px;
  cursor: pointer;
}

.practice-subtitle-clear:hover {
  background: #ffe4e6;
}

.practice-subtitle-restore {
  width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
  border: 1px solid rgba(10, 127, 140, 0.28);
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.65rem;
  line-height: 12px;
  cursor: pointer;
}

.practice-subtitle-restore:hover {
  background: rgba(10, 127, 140, 0.12);
}

.practice-resize-handle {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  opacity: 0;
  cursor: col-resize;
}

.practice-resize-handle--column,
.practice-resize-handle--subcolumn {
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
}

.practice-resize-handle--row {
  left: 0;
  right: 0;
  bottom: -5px;
  width: 100%;
  height: 10px;
  cursor: row-resize;
}

.practice-journal-table th:hover > .practice-resize-handle--column,
.practice-base-cell:hover > .practice-resize-handle--column,
.practice-lesson-cell:hover > .practice-resize-handle--column,
.practice-subheader-cell:hover > .practice-resize-handle--subcolumn,
.practice-base-cell:hover > .practice-resize-handle--row,
.practice-lesson-cell:hover > .practice-resize-handle--row {
  opacity: 1;
  background: rgba(10, 127, 140, 0.16);
}

.practice-column-actions .quick-action-button {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
  border-radius: 3px;
  font-size: 0.58rem;
  line-height: 1;
  box-shadow: none;
}

.practice-average-dialog {
  width: min(620px, calc(100% - 32px));
  border: 0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow-strong);
}

.practice-average-dialog::backdrop {
  background: rgba(14, 47, 54, 0.35);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.practice-column-actions {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}

.students-section,
.student-material-card {
  gap: 16px;
}

.students-table td[contenteditable="true"] {
  min-width: 160px;
}

.student-cabinet-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.student-cabinet-card,
.student-subject-toggle {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.student-cabinet-card span,
.student-subject-toggle span {
  color: var(--muted);
  font-size: 0.86rem;
}

.student-name-link {
  border: 0;
  padding: 0;
  color: var(--primary-dark);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.student-subject-card {
  gap: 10px;
}

.student-subject-documents[hidden] {
  display: none;
}

.attachment-cell--multi {
  gap: 8px;
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef6f7;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.attachment-chip__meta {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.attachment-chip button {
  border: 0;
  background: transparent;
  color: #991b1b;
  cursor: pointer;
  font-weight: 900;
}

.journal-table select {
  min-width: 220px;
  padding: 8px 10px;
}

.journal-table .single-choice-select {
  min-width: 230px;
}

.staff-cabinets-panel {
  display: grid;
  gap: 10px;
}

.staff-cabinet-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.staff-cabinet-button {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.staff-cabinet-button:hover,
.staff-cabinet-button.is-active {
  border-color: var(--primary);
  box-shadow: 0 6px 14px rgba(10, 127, 140, 0.12);
}

.staff-cabinet-button span,
.staff-cabinet-preview span {
  color: var(--muted);
  font-size: 0.86rem;
}

.staff-cabinet-button em {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.staff-cabinet-preview {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #eef6f7;
}

.specialty-picker {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.specialty-picker__selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.specialty-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #eef6f7;
  font-size: 0.78rem;
  font-weight: 800;
}

.specialty-placeholder {
  color: var(--muted);
  font-size: 0.86rem;
}

.specialty-picker__toggle {
  justify-self: start;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary-dark);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.specialty-picker__options {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfdfe;
}

.specialty-picker__options[hidden] {
  display: none !important;
}

.specialty-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  font-size: 0.82rem;
}

.specialty-option input {
  width: auto;
  margin-top: 4px;
}

.attachment-cell {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.attachment-picker {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--primary-dark);
  background: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(10, 127, 140, 0.08);
}

.attachment-picker:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.attachment-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.attachment-cell__name {
  color: var(--muted);
  font-size: 0.82rem;
}

.journal-table td:focus {
  outline: 3px solid rgba(10, 127, 140, 0.16);
  background: #f8fcfd;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fbfdfe;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(10, 127, 140, 0.16);
  border-color: var(--primary);
}

.form-note {
  margin: 0;
  font-size: 0.86rem;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--primary-dark);
  font-weight: 800;
}

.trainer-page {
  background: linear-gradient(180deg, #f6f9fb 0%, #eef6f7 52%, #f6f9fb 100%);
}

.nav-menu--static {
  display: flex;
}

.trainer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: center;
  min-height: 560px;
}

.trainer-note,
.trainer-panel,
.speech-card,
.score-card,
.checklist-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(17, 51, 64, 0.07);
}

.trainer-note,
.trainer-panel,
.speech-card,
.score-card,
.checklist-item {
  padding: 24px;
}

.trainer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.vr-shell {
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background: #dceff2;
  box-shadow: var(--shadow);
}

.vr-shell a-scene {
  width: 100%;
  height: 560px;
}

.trainer-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.speech-card {
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, #fff, #f8fcfd);
}

.transcript {
  min-height: 150px;
  padding: 16px;
  border: 1px dashed var(--primary);
  border-radius: 18px;
  color: var(--text);
  background: #f4fbfc;
}

.trainer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.score-card {
  text-align: center;
}

.score-card span {
  display: block;
  color: var(--primary);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
}

.score-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checklist-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.checklist-item__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 800;
}

.checklist-item.is-passed {
  border-color: rgba(10, 127, 140, 0.45);
  background: #f5fcfc;
}

.checklist-item.is-passed .checklist-item__mark {
  color: #fff;
  background: var(--primary);
}

.checklist-item p,
.trainer-disclaimer,
.trainer-note p,
.trainer-panel p,
.speech-card p {
  color: var(--muted);
}

.trainer-disclaimer {
  margin-top: 22px;
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu--static {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero,
  .contacts,
  .science-layout,
  .portal-layout,
  .trainer-hero,
  .trainer-layout,
  .section-heading--split {
    grid-template-columns: 1fr;
  }

  .grid--3,
  .grid--4,
  .station-tabs,
  .dashboard-section-tabs,
  .staff-cabinet-buttons,
  .credentials-grid,
  .checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prescription-task-area,
  .prescription-overlay-grid {
    grid-template-columns: 1fr;
  }

  .prescription-recorder-status {
    width: auto;
  }
}

@media (max-width: 640px) {
  .journal-modal {
    padding: 12px;
  }

  .journal-modal__content {
    padding: 24px 18px 18px;
  }

  .journal-modal-form {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .section--tinted {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand small {
    display: none;
  }

  .hero {
    gap: 28px;
    min-height: auto;
    padding-top: 58px;
  }

  .hero__actions,
  .dashboard-header,
  .journal-panel__top,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .quick-action-button {
    width: 42px;
  }

  .grid--3,
  .grid--4,
  .station-tabs,
  .dashboard-section-tabs,
  .staff-cabinet-buttons,
  .credentials-grid,
  .journal-context,
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .prescription-trainer__top {
    grid-template-columns: 1fr;
  }

  .prescription-timer {
    width: 100%;
  }

  .prescription-recipe-overlay {
    padding: 12px;
  }

  .plan-export-controls,
  .plan-export-controls select,
  .plan-export-controls input,
  .science-export-controls,
  .science-export-controls input {
    width: 100%;
  }

  .journal-actions > .quick-action-button,
  .science-table-card__controls .quick-action-button {
    width: 42px;
  }

  .vr-shell,
  .vr-shell a-scene {
    min-height: 420px;
    height: 420px;
  }

  .program-card {
    grid-template-columns: 1fr;
  }

  .tab-panel {
    padding: 22px;
  }

  .tab-button {
    width: 100%;
  }

  .discipline-card {
    grid-template-columns: 1fr;
  }

  .station-panel {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}
