:root {
  --ink: #172033;
  --muted: #697386;
  --subtle: #8a94a6;
  --line: #e2e7ef;
  --line-strong: #cdd5e1;
  --canvas: #f3f6fa;
  --panel: #ffffff;
  --panel-alt: #f8fafc;
  --navy: #0b1930;
  --navy-2: #122746;
  --teal: #12a594;
  --teal-dark: #087e73;
  --teal-soft: #e7f8f5;
  --blue: #2f6feb;
  --blue-soft: #eaf2ff;
  --amber: #c87908;
  --amber-soft: #fff6df;
  --danger: #bb3d4a;
  --danger-soft: #fff0f2;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .12);
  --radius: 14px;
  --sidebar-width: 290px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
[contenteditable="true"]:focus-visible {
  outline: 3px solid rgba(47, 111, 235, .25);
  outline-offset: 2px;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(26, 181, 162, .18), transparent 25%),
    linear-gradient(100deg, #081427, #102440 68%, #0c1a31);
  box-shadow: 0 4px 20px rgba(8, 20, 39, .22);
}

.brand-block {
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--teal);
}

.brand-mark svg {
  width: 42px;
  height: 42px;
  fill: rgba(18, 165, 148, .14);
  stroke-width: 1.6;
}

.brand-mark .brand-mark-line {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 2px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.brand-block .eyebrow {
  color: #70d5c9;
}

.brand-block h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.015em;
}

.menu-bar {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 3px;
}

.menu {
  position: relative;
}

.menu-trigger {
  height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: #d8e3f1;
  background: transparent;
  cursor: pointer;
}

.menu-trigger:hover,
.menu-trigger[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}

.menu-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 4px);
  left: 0;
  width: 230px;
  display: none;
  padding: 7px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.menu.open .menu-panel {
  display: block;
}

.menu-panel button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.menu-panel button:hover:not(:disabled) {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.menu-panel button:disabled {
  color: var(--subtle);
  cursor: not-allowed;
}

.menu-separator {
  height: 1px;
  margin: 5px 3px;
  background: var(--line);
}

.settings-menu {
  width: 245px;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--panel-alt);
}

.menu-toggle input {
  width: 34px;
  height: 19px;
  accent-color: var(--teal);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.save-state {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b9c8da;
  font-size: 12px;
}

.save-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63d7a5;
  box-shadow: 0 0 0 4px rgba(99, 215, 165, .08);
}

.save-state.saving .save-dot {
  background: #f4bd63;
}

.profile-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #2475d0);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.workspace {
  min-height: 100vh;
  padding-top: var(--header-height);
}

.sidebar {
  position: fixed;
  z-index: 20;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 20px 17px 16px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.course-card {
  padding: 16px;
  border: 1px solid #d9eee9;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(18, 165, 148, .1), rgba(47, 111, 235, .04)),
    #f8fffd;
}

.course-card-topline {
  display: flex;
  justify-content: space-between;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.course-card h2 {
  margin: 7px 0 12px;
  font-size: 15px;
  line-height: 1.3;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce5eb;
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #47c4b6);
  transition: width .25s ease;
}

.course-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.student-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 3px 17px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.student-avatar {
  width: 35px;
  height: 35px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 11px;
  font-weight: 800;
}

.student-summary div {
  min-width: 0;
}

.student-summary strong,
.student-summary span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-summary strong {
  font-size: 12px;
}

.student-summary div > span {
  color: var(--muted);
  font-size: 10px;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sidebar-heading button {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.sidebar-heading button:hover {
  background: var(--panel-alt);
}

.sidebar-heading svg {
  width: 16px;
}

.stage-navigation {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.stage-group {
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
}

.stage-group.open {
  border-color: var(--line);
  background: var(--panel-alt);
}

.stage-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.stage-group.open .stage-button {
  padding: 10px;
}

.stage-index {
  width: 27px;
  height: 27px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.stage-group.active .stage-index {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.stage-copy {
  min-width: 0;
  flex: 1;
}

.stage-copy strong,
.stage-copy span {
  display: block;
}

.stage-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-copy span {
  color: var(--muted);
  font-size: 9px;
}

.stage-chevron {
  width: 14px;
  color: var(--subtle);
  transition: transform .2s ease;
}

.stage-group.open .stage-chevron {
  transform: rotate(180deg);
}

.element-list {
  display: none;
  padding: 0 7px 7px;
}

.stage-group.open .element-list {
  display: block;
}

.element-nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.element-nav-button:hover {
  color: var(--ink);
  background: #fff;
}

.element-nav-button.active {
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-weight: 700;
}

.element-nav-number {
  min-width: 24px;
  font-size: 10px;
  font-weight: 800;
}

.element-nav-title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.element-complete {
  width: 16px;
  height: 16px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
}

.element-nav-button.completed .element-complete {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.element-complete svg {
  width: 11px;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 5px 0;
  color: var(--subtle);
  font-size: 9px;
}

.secure-icon svg {
  width: 17px;
}

.main-content {
  min-width: 0;
  margin-left: var(--sidebar-width);
  padding: 25px 30px 20px;
}

.element-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: 1450px;
  margin: 0 auto 19px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.breadcrumb svg {
  width: 11px;
}

.element-title-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.element-number {
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 14px;
  font-weight: 900;
}

.element-title-row h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 27px);
  letter-spacing: -.025em;
  line-height: 1.15;
}

.element-title-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.status-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px 9px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.status-button:hover {
  color: var(--teal-dark);
  border-color: #9dd8d1;
}

.status-check {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.status-check svg {
  width: 14px;
  color: transparent;
}

.status-button.complete {
  color: var(--teal-dark);
  border-color: #b7e7e1;
  background: var(--teal-soft);
}

.status-button.complete .status-check {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.status-button.complete .status-check svg {
  color: #fff;
}

.content-grid {
  max-width: 1450px;
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(450px, 1.45fr);
  gap: 18px;
  margin: 0 auto;
}

.activity-column,
.editor-column {
  min-width: 0;
}

.activity-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.activity-panel {
  padding: 19px;
}

.panel-heading,
.editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.panel-heading h3,
.editor-header h3,
.guidance-panel h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -.01em;
}

.activity-type {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #28569a;
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.activity-type.written {
  color: #855107;
  background: var(--amber-soft);
}

.activity-brief {
  margin: 13px 0 15px;
  color: #49566a;
  font-size: 12px;
}

.task-steps {
  display: grid;
  gap: 8px;
}

.task-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--panel-alt);
}

.task-step span {
  width: 22px;
  height: 22px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 10px;
  font-weight: 900;
}

.task-step p {
  margin: 2px 0 0;
  color: #445064;
  font-size: 11px;
}

.evidence-requirements {
  margin-top: 15px;
  padding: 12px 13px;
  border: 1px solid #e2eee9;
  border-radius: 10px;
  background: #fbfefd;
}

.evidence-requirements h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.evidence-requirements h4 svg {
  width: 16px;
}

.evidence-requirements ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: #4b596b;
  font-size: 10px;
}

.primary-button,
.secondary-button,
.export-button,
.text-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.primary-button,
.export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 9px 14px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #07877b);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(18, 165, 148, .18);
}

.primary-button:hover,
.export-button:hover {
  background: linear-gradient(135deg, #16b7a4, #08796f);
}

.primary-button svg,
.export-button svg,
.secondary-button svg {
  width: 17px;
}

.lab-button {
  width: 100%;
  margin-top: 14px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 35px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #4b586b;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.secondary-button:hover {
  color: var(--teal-dark);
  border-color: #9cd8d0;
  background: var(--teal-soft);
}

.guidance-panel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border-color: #eadfb9;
  background: linear-gradient(135deg, #fffdf8, #fffbec);
}

.guidance-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--amber);
  background: var(--amber-soft);
}

.guidance-icon svg {
  width: 21px;
}

.guidance-panel .section-kicker {
  color: var(--amber);
}

.guidance-panel p:not(.section-kicker) {
  margin: 7px 0 8px;
  color: #665d48;
  font-size: 10px;
}

.text-button {
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.text-button:hover {
  text-decoration: underline;
}

.editor-panel {
  min-height: 633px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-header {
  padding: 17px 18px 13px;
}

.editor-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.editor-meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #bac3d1;
  vertical-align: middle;
}

.editor-toolbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel-alt);
}

.editor-toolbar button,
.color-tool {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.editor-toolbar button:hover,
.color-tool:hover {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.editor-toolbar button svg {
  width: 17px;
}

.editor-toolbar select {
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #4e5a6b;
  background: #fff;
  font-size: 10px;
}

#fontFamily {
  width: 92px;
}

#fontSize {
  width: 52px;
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  margin: 0 3px;
  background: var(--line-strong);
}

.color-tool {
  position: relative;
  font-weight: 800;
}

.color-tool::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 4px;
  left: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--selected-color, #172033);
}

.highlight-tool {
  border-radius: 6px;
  background: #fff1a8;
}

.color-tool input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.evidence-editor {
  min-height: 500px;
  flex: 1;
  overflow: auto;
  padding: 24px 27px 42px;
  background:
    linear-gradient(90deg, transparent 0, transparent 97%, rgba(226, 231, 239, .3) 97%),
    #fff;
  font-family: Arial, sans-serif;
  font-size: 12pt;
  line-height: 1.6;
}

.evidence-editor:empty::before {
  content: attr(data-placeholder);
  color: #a0a9b8;
  pointer-events: none;
}

.evidence-editor h2 {
  margin: 1.2em 0 .45em;
  color: #0d5f58;
  font-size: 1.35em;
}

.evidence-editor h3 {
  margin: 1em 0 .35em;
  color: #213653;
  font-size: 1.15em;
}

.evidence-editor p {
  margin: .55em 0;
}

.evidence-editor blockquote,
.evidence-note {
  margin: 1em 0;
  padding: 10px 13px;
  border-left: 4px solid var(--teal);
  background: #f0faf8;
}

.evidence-editor img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 14px auto 6px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
}

.evidence-editor figcaption,
.screenshot-caption {
  display: block;
  margin-bottom: 13px;
  color: #667085;
  font-size: 9pt;
  text-align: center;
}

.editor-footer {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-top: 1px solid var(--line);
  background: var(--panel-alt);
}

.autosave-message {
  margin-left: auto;
  color: var(--subtle);
  font-size: 9px;
}

.element-footer {
  max-width: 1450px;
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 18px auto 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.navigation-button {
  min-width: 150px;
}

#previousButton {
  justify-self: start;
}

#nextButton,
#finalExportButton {
  justify-self: end;
}

.footer-position {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.position-dots {
  display: flex;
  gap: 4px;
}

.position-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ced6e1;
}

.position-dots i.active {
  width: 14px;
  border-radius: 3px;
  background: var(--teal);
}

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

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 13, 25, .67);
  backdrop-filter: blur(4px);
}

.modal {
  width: min(1120px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .32);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 19px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
}

.icon-button:hover {
  background: var(--panel-alt);
}

.icon-button svg {
  width: 18px;
}

.lab-body {
  min-height: 510px;
  display: grid;
  grid-template-columns: 255px 1fr;
}

.lab-guide {
  padding: 18px;
  background: #f6f8fb;
  border-right: 1px solid var(--line);
}

.lab-objective span {
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lab-objective p {
  margin: 7px 0 17px;
  font-size: 11px;
  font-weight: 700;
}

.lab-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lab-step;
}

.lab-steps li {
  position: relative;
  min-height: 38px;
  padding: 2px 0 0 36px;
  color: var(--muted);
  counter-increment: lab-step;
  font-size: 10px;
}

.lab-steps li::before {
  content: counter(lab-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-weight: 900;
}

.lab-steps li.current {
  color: var(--ink);
  font-weight: 700;
}

.lab-steps li.current::before {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 111, 235, .1);
}

.lab-steps li.done {
  color: var(--teal-dark);
}

.lab-steps li.done::before {
  content: "\2713";
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.lab-hint {
  margin-top: 18px;
  padding: 11px;
  border: 1px solid #f0dfad;
  border-radius: 9px;
  color: #6d5a2a;
  background: var(--amber-soft);
  font-size: 9px;
}

.lab-hint p {
  margin: 4px 0 0;
}

.simulator-frame {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #e9eef4;
}

.simulator-topbar {
  height: 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 13px;
  color: #dbe6f2;
  background: #111b2a;
  border-radius: 10px 10px 0 0;
  font-size: 10px;
}

.window-controls {
  display: flex;
  gap: 6px;
}

.window-controls i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e96767;
}

.window-controls i:nth-child(2) {
  background: #e5b84e;
}

.window-controls i:nth-child(3) {
  background: #4fc879;
}

.simulation-badge {
  justify-self: end;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 5px;
  color: #8aa2bb;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}

.simulator-screen {
  min-height: 380px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px;
  color: #dce7f3;
  background:
    radial-gradient(circle at 90% 5%, rgba(18, 165, 148, .12), transparent 25%),
    #07111f;
}

.simulator-frame.windows .simulator-screen {
  background:
    linear-gradient(135deg, rgba(22, 119, 202, .28), transparent 55%),
    #0d3154;
}

.simulator-frame.kali .simulator-screen {
  background:
    radial-gradient(circle at 85% 0, rgba(49, 132, 220, .22), transparent 35%),
    #101928;
}

.desktop-summary {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.simulator-frame.windows .desktop-summary {
  display: grid;
}

.desktop-tile {
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
}

.desktop-tile span,
.desktop-tile strong {
  display: block;
}

.desktop-tile span {
  color: #b7d3ea;
  font-size: 8px;
  text-transform: uppercase;
}

.desktop-tile strong {
  margin-top: 6px;
  font-size: 10px;
}

.terminal {
  min-height: 250px;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: rgba(0, 0, 0, .56);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
}

.terminal-output {
  flex: 1;
  overflow: auto;
  white-space: pre-wrap;
}

.terminal-line {
  margin-bottom: 4px;
}

.terminal-line.command {
  color: #7ee2d5;
}

.terminal-line.success {
  color: #8be5ad;
}

.terminal-line.warning {
  color: #f3c86c;
}

.terminal-line.error {
  color: #f18b95;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #7ee2d5;
}

.terminal-input-row input {
  min-width: 0;
  flex: 1;
  border: 0;
  color: #fff;
  background: transparent;
  outline: none;
  font: inherit;
}

.quick-actions {
  padding: 10px 11px;
  border-radius: 0 0 10px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
}

.quick-actions > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.quick-actions div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.quick-actions button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #3e4a5d;
  background: var(--panel-alt);
  font-family: Consolas, monospace;
  font-size: 8px;
  cursor: pointer;
}

.quick-actions button:hover {
  color: var(--teal-dark);
  border-color: #9cd8d0;
  background: var(--teal-soft);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}

.lab-progress {
  width: 190px;
  margin-right: auto;
}

.lab-progress strong {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
}

.small-modal {
  position: relative;
  width: min(460px, 94vw);
}

.form-stack {
  display: grid;
  gap: 13px;
  padding: 20px;
}

.form-stack label {
  display: grid;
  gap: 5px;
  color: #435065;
  font-size: 10px;
  font-weight: 800;
}

.form-stack input {
  height: 41px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.about-modal {
  padding: 34px;
  text-align: center;
}

.floating-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.about-shield {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 18px;
  color: var(--teal);
  background: var(--teal-soft);
}

.about-shield svg {
  width: 48px;
  fill: rgba(18, 165, 148, .08);
}

.about-shield path + path {
  fill: none;
  stroke-width: 2.5;
}

.about-modal h2 {
  margin: 0;
  font-size: 24px;
}

.about-statement {
  margin: 12px auto 7px;
  color: #465368;
}

.about-version {
  margin: 0 0 22px;
  color: var(--subtle);
  font-size: 10px;
}

.specification-copy {
  padding: 18px 20px 8px;
  color: #465368;
  font-size: 11px;
}

.specification-copy + .primary-button {
  margin: 4px 20px 20px;
}

.download-copy {
  padding: 20px;
}

.download-copy p {
  margin: 0 0 14px;
  color: #465368;
  font-size: 11px;
}

.download-copy .download-hosting-note {
  padding: 10px 12px;
  border: 1px solid #efddb0;
  border-radius: 8px;
  color: #75540f;
  background: var(--amber-soft);
  font-size: 10px;
}

.download-link {
  width: 100%;
  text-decoration: none;
}

.toast-region {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 260px;
  max-width: 380px;
  padding: 11px 13px;
  border: 1px solid #cfe9e5;
  border-radius: 9px;
  color: #185b55;
  background: #f2fffc;
  box-shadow: var(--shadow-md);
  font-size: 11px;
  animation: toast-in .22s ease both;
}

.toast.warning {
  color: #7a520c;
  border-color: #efddb0;
  background: #fffaf0;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

body.large-editor .evidence-editor {
  font-size: 14pt;
}

body.dark-theme {
  --ink: #e8edf5;
  --muted: #a3afc0;
  --subtle: #8290a4;
  --line: #26354a;
  --line-strong: #3a4a61;
  --canvas: #0c1524;
  --panel: #121f31;
  --panel-alt: #17263a;
  --teal-soft: #113c3a;
  --blue-soft: #182e52;
  --amber-soft: #3a2e16;
  background: var(--canvas);
}

body.dark-theme .sidebar,
body.dark-theme .course-card,
body.dark-theme .form-stack input,
body.dark-theme .editor-toolbar select,
body.dark-theme .quick-actions,
body.dark-theme .secondary-button {
  background: var(--panel);
  color: var(--ink);
}

body.dark-theme .course-card {
  border-color: #24544e;
}

body.dark-theme .stage-group.open,
body.dark-theme .task-step,
body.dark-theme .editor-toolbar,
body.dark-theme .editor-footer,
body.dark-theme .lab-guide {
  background: var(--panel-alt);
}

body.dark-theme .element-nav-button:hover {
  background: #1d2d43;
}

body.dark-theme .evidence-editor {
  color: #172033;
  background: #fff;
}

body.dark-theme .guidance-panel {
  background: #282318;
}

body.dark-theme .evidence-requirements {
  background: #122820;
}

@media (max-width: 1120px) {
  :root {
    --sidebar-width: 245px;
  }

  .brand-block {
    min-width: 220px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .editor-panel {
    min-height: 650px;
  }

  .activity-column {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    align-items: start;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 116px;
    --sidebar-width: 0px;
  }

  .app-header {
    height: var(--header-height);
    align-content: center;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding: 12px 16px;
  }

  .brand-block {
    min-width: auto;
  }

  .menu-bar {
    order: 3;
    width: 100%;
    height: 35px;
  }

  .menu-trigger {
    height: 32px;
  }

  .save-state {
    display: none;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 20px 18px;
  }

  .activity-column {
    display: flex;
  }

  .lab-body {
    grid-template-columns: 1fr;
  }

  .lab-guide {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .modal-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .brand-block .eyebrow {
    display: none;
  }

  .brand-block h1 {
    font-size: 15px;
  }

  .brand-mark,
  .brand-mark svg {
    width: 34px;
    height: 34px;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-trigger {
    padding: 0 8px;
    font-size: 12px;
  }

  .element-header {
    align-items: flex-start;
  }

  .status-button {
    padding-right: 8px;
  }

  #statusText {
    display: none;
  }

  .element-title-row h2 {
    font-size: 19px;
  }

  .editor-toolbar {
    max-height: 86px;
    overflow: auto;
  }

  .editor-footer {
    flex-wrap: wrap;
  }

  .autosave-message {
    width: 100%;
    margin-left: 0;
  }

  .element-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-position {
    display: none;
  }

  .navigation-button {
    min-width: 0;
  }

  .lab-steps {
    grid-template-columns: 1fr;
  }

  .desktop-summary {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 8px;
  }

  .modal-footer .lab-progress {
    width: 100%;
  }
}

@media print {
  .app-header,
  .sidebar,
  .activity-column,
  .element-header,
  .editor-toolbar,
  .editor-footer,
  .element-footer {
    display: none !important;
  }

  .main-content {
    margin: 0;
    padding: 0;
  }

  .content-grid {
    display: block;
  }

  .editor-panel {
    border: 0;
    box-shadow: none;
  }

  .editor-header {
    display: block;
  }

  .evidence-editor {
    min-height: 0;
    overflow: visible;
    padding: 0;
  }
}
