:root {
  --bg: #101214;
  --surface: #171a1d;
  --raised: #1d2125;
  --border: #2a2e32;
  --text: #edf0ed;
  --muted: #9ba4a8;
  --accent: #b3e8be;
  --radius: 10px;
  --space: 24px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button {
  color: inherit;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  font-weight: 600;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 17px;
  font-weight: 550;
}
p {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  border-right: 1px solid var(--border);
  background: #141719;
  display: flex;
  flex-direction: column;
  padding: 30px 19px 12px;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 0 8px 33px;
}
.brand img {
  width: 34px;
  height: 38px;
  object-fit: contain;
  filter: grayscale(1);
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #9ba4a8;
  margin-top: 1px;
}
.workspace-label {
  color: #7d878c;
  font-size: 10px;
  letter-spacing: 1.4px;
  margin: 20px 13px 10px;
  font-weight: 600;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 13px;
  border-radius: 6px;
  color: #9ea6aa;
  margin: 3px 0;
  font-size: 16px;
}
nav a span {
  font-size: 13px;
}
nav a.active {
  color: var(--accent);
  background: rgba(179, 232, 190, 0.07);
  box-shadow: inset 2px 0 0 var(--accent);
}
nav a:hover {
  background: #23282c;
  color: #fff;
}
nav a small,
.nav-count {
  margin-left: auto;
  font-size: 10px !important;
}
.nav-count {
  background: #36443a;
  border-radius: 4px;
  padding: 0 6px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 22px;
}
.academy-note {
  border: 1px solid var(--border);
  padding: 15px 12px;
  border-radius: 8px;
  font-size: 11px;
  color: #cbd3cd;
}
.academy-note p {
  font-size: 11px;
  margin: 9px 0 0 14px;
  line-height: 1.8;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 3px;
  font-size: 12px;
}
.account small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.account > span:last-child {
  margin-left: auto;
}
.avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #596650;
  border-radius: 50%;
  background: #343d30;
  color: #d9e9c9;
  font-size: 13px;
  flex-shrink: 0;
}
.avatar.small {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.app {
  margin-left: 244px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 0 36px;
}
.crumb {
  font-size: 12px;
  color: #c4cccf;
}
.crumb span {
  margin: 0 14px;
  color: #576068;
}
.search-trigger {
  margin-left: auto;
  border: 1px solid var(--border);
  background: #1a1d20;
  border-radius: 6px;
  color: #929da4;
  padding: 7px 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  min-width: 235px;
}
.search-trigger > span {
  font-size: 20px;
  line-height: 1;
}
kbd {
  font-family: inherit;
  font-size: 10px;
  color: #9da5aa;
  border: 1px solid #394046;
  border-radius: 4px;
  padding: 0 4px;
  margin-left: auto;
}
.top-help {
  font-size: 11px;
  color: #b9c3ba;
}
main {
  max-width: 1520px;
  margin: auto;
  padding: 36px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 650;
  margin-bottom: 12px;
}
.welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.welcome p {
  margin-top: 10px;
  font-size: 13px;
}
.date-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 3px;
}
.grid {
  display: grid;
  gap: 18px;
}
.stats {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 29px;
  gap: 14px;
}
.stat {
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--surface);
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.stat-value {
  font-size: 27px;
  font-weight: 550;
  line-height: 1.4;
  margin-top: 7px;
  letter-spacing: -0.8px;
}
.stat-value small {
  font-size: 10px;
  color: #8f9c92;
  margin-left: 8px;
  letter-spacing: 0;
  font-weight: 400;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 15px;
}
.section-title a {
  font-size: 11px;
  color: var(--muted);
}
.section-title a:hover {
  color: var(--accent);
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  gap: 24px;
}
.continue-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #24362a, #1b2520 70%);
  border: 1px solid #415543;
  border-radius: var(--radius);
  padding: 25px;
  min-height: 246px;
  display: flex;
  gap: 20px;
}
.continue-copy {
  position: relative;
  z-index: 1;
  max-width: 70%;
}
.continue-card h2 {
  font-size: 25px;
  margin: 15px 0 8px;
}
.continue-card p {
  max-width: 380px;
  font-size: 12px;
  color: #aebcb0;
}
.tag {
  display: inline-flex;
  padding: 3px 8px;
  border: 1px solid var(--border);
  background: var(--raised);
  color: var(--muted);
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.5px;
  gap: 6px;
  align-items: center;
}
.continue-bottom {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #152519;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.button:hover {
  filter: brightness(1.07);
}
.button.secondary {
  color: #d3dcd7;
  background: #20262a;
  border-color: #39423e;
}
.button.ghost {
  color: #aeb9b1;
  background: transparent;
  border-color: var(--border);
}
.continue-bottom small {
  font-size: 10px;
  color: #abb8ad;
}
.terminal-art {
  position: absolute;
  right: 26px;
  top: 44px;
  width: 167px;
  height: 154px;
  transform: rotate(-7deg);
  border: 1px solid #526b52;
  border-radius: 9px;
  background: #15221a;
  box-shadow:
    12px 15px 0 -3px #263c2b,
    13px 16px 0 -3px #446147;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b3dcae;
  font: 56px monospace;
  opacity: 0.8;
}
.terminal-art:before {
  content: "● ● ●";
  position: absolute;
  top: 10px;
  left: 12px;
  letter-spacing: 3px;
  color: #536b52;
  font-size: 7px;
}
.progress {
  height: 4px;
  border-radius: 3px;
  background: #303832;
  overflow: hidden;
}
.progress > span {
  height: 100%;
  background: var(--accent);
  display: block;
}
.progress-line {
  display: flex;
  justify-content: space-between;
  color: #98a69d;
  font-size: 10px;
  margin-bottom: 7px;
}
.continue-progress {
  margin-top: 20px;
  max-width: 410px;
}
.track-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 19px;
  display: flex;
  flex-direction: column;
  min-height: 236px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.track-card:hover {
  border-color: #607766;
  transform: translateY(-2px);
}
.track-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}
.track-icon {
  width: 41px;
  height: 41px;
  background: #26312d;
  color: var(--accent);
  border: 1px solid #3d5145;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 17px;
  font-weight: 600;
}
.track-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.track-card p {
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.track-meta {
  font-size: 10px;
  color: #929d99;
  margin-top: auto;
  margin-bottom: 15px;
}
.track-card .tag {
  font-size: 8px;
  color: #aeb8b2;
  background: #212a25;
  border-color: #334139;
}
.card {
  padding: 21px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
}
.side-card {
  margin-bottom: 17px;
}
.side-card h3 {
  font-size: 13px;
}
.side-card p {
  font-size: 11px;
  line-height: 1.7;
}
.journey-ring {
  width: 130px;
  height: 130px;
  border: 9px solid #2b3330;
  border-top-color: #708c71;
  border-radius: 50%;
  margin: 24px auto 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.journey-ring strong {
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -1px;
}
.journey-ring small {
  font-size: 9px;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.legend {
  font-size: 10px;
  color: var(--muted);
  margin: 10px 0;
}
.legend b {
  color: #d0d9d0;
  font-weight: 450;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}
.achievement {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 17px;
}
.achievement-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #544b33;
  background: #302b20;
  color: #dbc188;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.achievement strong {
  font-size: 11px;
  font-weight: 500;
}
.achievement small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.daily {
  background: linear-gradient(125deg, #282632, #1b1c23);
  border-color: #403a50;
}
.daily .eyebrow {
  color: #c0addb;
  font-size: 9px;
}
.daily h3 {
  font-size: 16px;
  margin: 12px 0 7px;
}
.daily a {
  display: block;
  font-size: 11px;
  color: #d0bbeb;
  margin-top: 17px;
}
.recent-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid var(--border);
}
.recent-row p {
  font-size: 11px;
}
.recent-row strong {
  font-size: 12px;
  font-weight: 500;
}
.recent-row > a:last-child {
  margin-left: auto;
  color: #b9c7bd;
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.pill {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  padding: 7px 12px;
  font-size: 11px;
  color: #aab4ad;
}
.pill.active {
  background: #2c3c2e;
  color: var(--accent);
  border-color: #577052;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.full-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.empty {
  padding: 26px;
  text-align: center;
  border: 1px dashed #3c4740;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}
.academy-empty {
  padding: clamp(40px, 7vw, 90px) 24px;
  font-size: 14px;
}
.academy-empty-icon {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 48px;
}
.academy-empty h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
}
.academy-empty p { margin: 0 0 24px; }
.roadmap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 25px;
}
.module {
  margin-bottom: 20px;
}
.module-head {
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.module-number {
  color: #6e8e73;
  font:
    24px ui-monospace,
    monospace;
}
.module-head p {
  font-size: 11px;
  margin-top: 4px;
}
.lesson-row {
  display: flex;
  gap: 15px;
  padding: 17px 20px;
  border-top: 1px solid var(--border);
  align-items: center;
}
.lesson-row:hover {
  background: #202723;
}
.lesson-row.locked {
  opacity: 0.55;
}
.lesson-row strong {
  font-size: 12px;
  font-weight: 500;
}
.lesson-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.lesson-row .end {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
}
.roadmap .card {
  padding: 0;
  overflow: hidden;
}
.roadmap .info {
  padding: 23px;
  height: max-content;
}
.info p {
  margin: 12px 0;
  font-size: 12px;
}
.notice {
  border-left: 3px solid #6f8f72;
  padding: 12px 15px;
  background: #1e2a21;
  font-size: 12px;
  color: #b4c7b7;
  margin: 18px 0;
}
.lesson-layout {
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr) 190px;
  gap: 27px;
}
.lesson-toc {
  position: sticky;
  top: 20px;
  height: max-content;
}
.lesson-toc > a {
  display: block;
  padding: 10px 9px;
  font-size: 11px;
  color: #a7b1ab;
  border-left: 1px solid #35413a;
}
.lesson-toc > a.active {
  color: var(--accent);
  background: #213025;
  border-color: var(--accent);
}
.lesson-toc h3 {
  font-size: 12px;
  margin-bottom: 18px;
}
.lesson-content h1 {
  font-size: 32px;
}
.lesson-content h2 {
  margin: 29px 0 12px;
}
.lesson-content p {
  line-height: 1.9;
  font-size: 13px;
}
.lesson-content pre {
  padding: 20px;
  background: #0e1214;
  border: 1px solid #303b36;
  border-radius: 8px;
  overflow: auto;
  color: #b6d3c0;
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    monospace;
  margin: 15px 0;
}
.lesson-content .card p {
  font-size: 12px;
}
.lesson-content .button {
  margin-top: 16px;
}
.lesson-panel {
  font-size: 12px;
}
.lesson-panel .card {
  padding: 17px;
  position: sticky;
  top: 20px;
}
.lesson-panel h3 {
  font-size: 12px;
  margin-bottom: 12px;
}
.lesson-panel li {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0;
}
.lesson-panel ul {
  padding-left: 17px;
}
.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.register-diagram {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin: 18px 0;
}
.register-cell {
  border: 1px solid #3c4a40;
  border-radius: 5px;
  background: #1c2820;
  padding: 9px 11px;
  display: flex;
  justify-content: space-between;
  font:
    11px ui-monospace,
    monospace;
}
.register-cell span {
  color: #a9b7ac;
}
.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.flow-diagram span {
  border: 1px solid #425847;
  padding: 14px;
  background: #1b2920;
  border-radius: 7px;
  font: 12px monospace;
}
.lab-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
}
.lab-instructions {
  padding: 22px;
}
.lab-instructions h2 {
  margin: 10px 0 14px;
}
.lab-instructions p {
  font-size: 12px;
}
.lab-instructions details {
  border-top: 1px solid var(--border);
  padding: 15px 0;
  font-size: 12px;
}
.lab-instructions details p {
  margin-top: 12px;
}
.lab-instructions summary {
  cursor: pointer;
  color: #cbd8ce;
}
.lab-instructions .tag {
  margin-bottom: 15px;
}
.lab-workspace {
  border: 1px solid #3b4540;
  background: #111619;
  border-radius: 9px;
  overflow: hidden;
  min-width: 0;
}
.lab-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #20272b;
  padding: 12px 16px;
  border-bottom: 1px solid #36413b;
  font-size: 11px;
  gap: 8px;
  flex-wrap: wrap;
}
.lab-bar .status-dot {
  background: #c4d0ba;
}
.terminal-output {
  font:
    12px/1.8 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 22px;
  height: 340px;
  overflow: auto;
  color: #ccdcd0;
  margin: 0;
}
.terminal-prompt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  background: #17201a;
  border-top: 1px solid #2a3930;
  font: 11px monospace;
  color: var(--accent);
}
.terminal-prompt input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  color: #edf4ee;
  outline: none;
  padding: 6px;
}
.lab-toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px;
  border-top: 1px solid var(--border);
}
.lab-toolbar .button {
  padding: 8px 13px;
  font-size: 11px;
}
.lab-output {
  border-top: 1px solid var(--border);
  padding: 18px;
  min-height: 120px;
  font: 12px/1.8 monospace;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 340px;
}
.code-wrap {
  display: flex;
  height: 300px;
  overflow: hidden;
}
.line-numbers {
  width: 44px;
  flex-shrink: 0;
  padding: 18px 8px;
  text-align: right;
  color: #61716b;
  font: 12px/1.8 monospace;
  background: #101719;
  overflow: hidden;
  white-space: pre;
}
.code-editor {
  display: block;
  background: #11191d;
  color: #c0dfcb;
  width: 100%;
  resize: vertical;
  border: 0;
  padding: 18px 14px;
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    monospace;
  tab-size: 4;
  white-space: pre;
  min-height: 250px;
}
.field {
  width: 100%;
  padding: 12px;
  background: #12191b;
  border: 1px solid #424e46;
  color: var(--text);
  border-radius: 6px;
  margin: 10px 0;
}
.lab-answer {
  padding: 24px;
}
.lab-answer p {
  font-size: 12px;
  margin-bottom: 10px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  margin: 10px 0;
}
th,
td {
  padding: 9px 12px;
  text-align: left;
  border: 1px solid #35423b;
}
th {
  color: #b9d6bf;
  background: #213027;
}
details.schema {
  margin: 16px 0;
}
.lab-mode {
  color: #bbc9b4;
}
.lab-status {
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 24px 0;
}
.profile-hero .avatar {
  width: 76px;
  height: 76px;
  font-size: 30px;
}
.profile-hero p {
  font-size: 12px;
  margin-top: 6px;
}
.achievement-grid {
  grid-template-columns: repeat(3, 1fr);
}
.achievement-grid .card.locked {
  opacity: 0.6;
}
.icon-button {
  background: transparent;
  border: 0;
  font-size: 18px;
  padding: 5px;
  color: #b7c4bb;
}
.mobile-menu {
  display: none;
}
footer {
  border-top: 1px solid var(--border);
  margin: 10px 36px 0;
  padding: 20px 0;
  color: #7d8981;
  font-size: 10px;
}
footer > span {
  margin: 0 8px;
}
.footer-right {
  float: right;
}
.skip {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  background: var(--accent);
  color: #142019;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
dialog {
  width: 600px;
  max-width: calc(100vw - 30px);
  border: 1px solid #465a4a;
  border-radius: 12px;
  background: #191f1b;
  color: var(--text);
  padding: 0;
  box-shadow: 0 30px 120px #0008;
}
dialog::backdrop {
  background: #050908bb;
  backdrop-filter: blur(5px);
}
.search-head {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid var(--border);
}
.search-head input {
  background: transparent;
  color: #e7f1e7;
  border: 0;
  outline: none;
  width: 100%;
  padding: 8px;
}
#search-results {
  max-height: 380px;
  overflow: auto;
  padding: 10px;
}
#search-results a {
  display: block;
  padding: 12px;
  border-radius: 5px;
}
#search-results a:hover {
  background: #2b3c30;
}
#search-results small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.search-foot {
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  font-size: 10px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 440px;
  background: #293d2d;
  border: 1px solid #647f64;
  border-radius: 8px;
  padding: 15px 22px;
  font-size: 12px;
  z-index: 100;
  display: none;
  box-shadow: 0 5px 25px #0005;
}
#toast.visible {
  display: block;
}
.admin-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 25px;
}
.admin-grid label {
  display: block;
  margin-top: 13px;
}
.admin-grid textarea {
  min-height: 100px;
}
.full {
  width: 100%;
}
.lab-workspace:fullscreen {
  overflow: auto;
  background: #111619;
  padding: 30px;
}
.lab-workspace:fullscreen .terminal-output {
  height: 65vh;
}
@media (min-width: 1600px) {
  main {
    padding: 45px 50px;
  }
  .continue-card {
    min-height: 268px;
  }
  .track-card {
    min-height: 260px;
  }
  .dashboard-columns {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 216px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .app {
    margin-left: 216px;
  }
  main {
    padding: 27px;
  }
  .topbar {
    padding: 0 27px;
  }
  .dashboard-columns {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 18px;
  }
  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .track-grid .track-card:last-child {
    display: none;
  }
  .terminal-art {
    right: 10px;
    width: 125px;
    height: 128px;
    top: 57px;
    opacity: 0.45;
  }
  .continue-copy {
    max-width: 85%;
  }
  .lesson-layout {
    grid-template-columns: 155px minmax(0, 1fr);
  }
  .lesson-panel {
    display: none;
  }
  .top-help {
    display: none;
  }
  .lab-layout {
    grid-template-columns: 235px minmax(0, 1fr);
  }
}
@media (max-width: 1000px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .dashboard-side {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .dashboard-side .side-card {
    margin: 0;
  }
  .journey-ring {
    width: 100px;
    height: 100px;
    margin: 15px auto;
  }
  .full-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .date-label {
    display: none;
  }
  .roadmap {
    grid-template-columns: 1fr;
  }
  .roadmap .info {
    grid-row: 1;
  }
  .lab-layout {
    grid-template-columns: 1fr;
  }
  .stats .stat {
    padding: 14px;
  }
  .stat-value small {
    display: block;
    margin: 0;
  }
  .lab-instructions {
    padding: 18px;
  }
  .lab-instructions details {
    padding: 10px 0;
  }
  .search-trigger {
    min-width: 200px;
  }
  .achievement-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    width: 244px;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax #0008;
  }
  .app {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
    gap: 12px;
  }
  .search-trigger {
    min-width: 0;
    width: 35px;
    height: 33px;
    font-size: 0;
    border: 0;
    padding: 4px;
  }
  .search-trigger kbd {
    display: none;
  }
  .crumb {
    font-size: 11px;
  }
  .crumb span {
    margin: 0 8px;
  }
  main {
    padding: 24px 18px;
  }
  h1 {
    font-size: 28px;
  }
  .welcome {
    margin-bottom: 23px;
  }
  .welcome p {
    font-size: 12px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-value small {
    display: inline;
    margin-left: 5px;
  }
  .dashboard-side {
    grid-template-columns: 1fr;
  }
  .dashboard-side .side-card:first-child {
    display: none;
  }
  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .track-card {
    padding: 14px;
    min-height: 235px;
  }
  .continue-card {
    padding: 22px;
  }
  .continue-card h2 {
    font-size: 23px;
  }
  .continue-copy {
    max-width: 100%;
  }
  .terminal-art {
    opacity: 0.16;
    right: 20px;
  }
  .continue-bottom {
    gap: 13px;
  }
  .continue-bottom small {
    font-size: 9px;
  }
  .full-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .lesson-toc {
    position: static;
    display: flex;
    overflow: auto;
    gap: 8px;
    max-width: 100%;
    padding-bottom: 9px;
  }
  .lesson-toc h3 {
    display: none;
  }
  .lesson-toc > a {
    white-space: nowrap;
    border: 1px solid #344138;
    border-radius: 4px;
  }
  .lesson-content h1 {
    font-size: 29px;
  }
  .achievement-grid {
    grid-template-columns: 1fr;
  }
  .footer-right {
    display: none;
  }
  footer {
    margin: 10px 18px 0;
  }
  .lab-bar {
    font-size: 10px;
  }
  .terminal-output {
    height: 290px;
    padding: 15px;
  }
  .terminal-prompt {
    flex-wrap: wrap;
    padding: 10px;
  }
  .terminal-prompt input {
    width: 100%;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  #toast {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
  .profile-hero .avatar {
    width: 56px;
    height: 56px;
  }
  .profile-hero h1 {
    font-size: 23px;
  }
}
@media (max-width: 390px) {
  .full-grid,
  .track-grid {
    grid-template-columns: 1fr;
  }
  .track-card {
    min-height: 210px;
  }
  .continue-bottom {
    align-items: start;
    flex-direction: column;
  }
  .stat-value small {
    display: block;
    margin: 0;
  }
  .register-diagram {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.cm-host {
  width: 100%;
  min-width: 0;
}
.cm-editor .cm-scroller {
  line-height: 1.8;
}
.cm-editor {
  background: #11191d !important;
}
.cm-editor .cm-activeLine {
  background: #1e2b28 !important;
}
/* cybersecurity Clup native theme: shared colors and proportions with /challenges. */
:root {
  --bg: hsl(222 47% 6%);
  --surface: hsl(222 47% 8%);
  --raised: hsl(222 47% 10%);
  --border: hsl(217 33% 17%);
  --text: hsl(210 40% 98%);
  --muted: hsl(215 20% 55%);
  --accent: hsl(var(--neon, 155 100% 50%));
  --radius: 8px;
}
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(hsl(var(--neon, 155 100% 50%) / 0.06) 1px, transparent 1px),
    linear-gradient(
      90deg,
      hsl(var(--neon, 155 100% 50%) / 0.06) 1px,
      transparent 1px
    );
  background-size: 34px 34px;
  color: var(--text);
}
.site-header {
  background: hsl(222 47% 6%/0.97);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-nav {
  max-width: 1280px;
  min-height: 61px;
  margin: auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-brand {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-icon {
  width: 36px;
  height: 36px;
  border: 1px solid hsl(var(--neon) / 0.3);
  border-radius: 8px;
}
.site-brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 3px;
}
.site-nav nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  margin: 0;
  border-radius: 8px;
  color: var(--muted);
}
.site-nav nav a:hover,
.site-nav nav a.active {
  color: var(--accent);
  background: hsl(var(--neon) / 0.1);
}
.site-auth {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.site-auth .button {
  padding: 9px 16px;
}
.app {
  margin: 0;
}
.learning-nav {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.learning-nav nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.learning-nav nav a {
  font-size: 12px;
  padding: 4px 0;
  margin: 0;
  border-radius: 0;
}
.learning-nav nav a.active {
  background: transparent;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}
.search-trigger {
  background: var(--surface);
  border-color: var(--border);
  font-size: 12px;
  min-width: 215px;
}
.crumb {
  max-width: 1280px;
  margin: auto;
  padding: 18px 16px 0;
  color: var(--muted);
  font-size: 11px;
}
.crumb:empty {
  display: none;
}
main {
  max-width: 1280px;
  padding: 28px 16px 40px;
}
.eyebrow {
  color: var(--accent);
  font:
    12px ui-monospace,
    monospace;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.welcome p {
  font-size: 14px;
}
.card,
.track-card,
.stat {
  background:
    radial-gradient(
      120% 120% at 10% 0%,
      hsl(var(--neon) / 0.045),
      transparent 48%
    ),
    var(--surface);
  border-color: var(--border);
  box-shadow: none;
}
.button {
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-size: 13px;
}
.button.secondary,
.button.ghost {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--border);
}
.button:hover {
  box-shadow: 0 0 20px hsl(var(--neon) / 0.1);
}
.track-icon {
  color: var(--accent);
  background: hsl(var(--neon) / 0.08);
  border: 1px solid hsl(var(--neon) / 0.25);
  border-radius: 8px;
}
.tag,
.pill.active {
  background: hsl(var(--neon) / 0.08);
  border-color: hsl(var(--neon) / 0.3);
  color: var(--accent);
}
.pill,
.track-card .tag {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
}
.pill.active {
  color: var(--accent);
  border-color: hsl(var(--neon) / 0.3);
}
.track-card:hover {
  transform: none;
  border-color: hsl(var(--neon) / 0.4);
  box-shadow: 0 0 20px hsl(var(--neon) / 0.08);
}
.track-card {
  min-height: 220px;
}
.full-grid {
  gap: 16px;
}
.track-card p {
  font-size: 13px;
}
.track-card h3 {
  font-size: 17px;
  font-weight: 600;
}
.track-meta {
  font-size: 11px;
}
.progress {
  background: var(--border);
}
.continue-card {
  background:
    radial-gradient(ellipse at top left, hsl(var(--neon) / 0.12), transparent),
    var(--surface);
  border-color: hsl(var(--neon) / 0.25);
}
.terminal-art {
  display: none;
}
.continue-copy {
  max-width: 100%;
}
.continue-card p,
.continue-bottom small {
  color: var(--muted);
}
.notice {
  border-color: hsl(var(--neon) / 0.4);
  background: hsl(var(--neon) / 0.05);
  color: #a3b8c8;
}
.daily {
  background: var(--surface);
  border-color: var(--border);
}
.daily .eyebrow,
.daily a {
  color: var(--accent);
}
.stat-value small {
  color: var(--muted);
}
.roadmap .info {
  position: sticky;
  top: 88px;
}
.module-number {
  color: var(--accent);
}
.module-row {
  display: grid;
  grid-template-columns: 45px 1fr 150px 28px;
  gap: 15px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  margin-bottom: 12px;
}
.module-row:hover {
  border-color: hsl(var(--neon) / 0.4);
  background: hsl(var(--neon) / 0.045);
}
.module-row h2 {
  font-size: 17px;
  margin-bottom: 4px;
}
.module-row p {
  font-size: 12px;
}
.module-row .progress-line {
  font-size: 11px;
}
.module-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 26px;
}
.module-outline {
  position: sticky;
  top: 90px;
  height: max-content;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.module-outline h3 {
  font-size: 13px;
  padding: 17px;
  border-bottom: 1px solid var(--border);
}
.outline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  font-size: 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
}
.outline-item.current {
  background: hsl(var(--neon) / 0.07);
  border-color: var(--accent);
  color: var(--text);
}
.outline-item:hover {
  color: var(--accent);
}
.outline-item small {
  margin-left: auto;
  color: var(--accent);
}
.outline-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 18px 16px 5px;
}
.module-body {
  min-width: 0;
}
.module-intro {
  margin-bottom: 23px;
}
.module-intro h1 {
  font-size: 30px;
}
.module-intro p {
  font-size: 14px;
  line-height: 1.85;
  max-width: 780px;
  margin-top: 12px;
}
.module-resources {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px 0;
  font-size: 13px;
}
.module-resources summary {
  cursor: pointer;
  color: var(--accent);
}
.module-resources pre {
  white-space: pre-wrap;
  color: #c3d6e5;
  margin: 15px 0;
  font: 12px/1.8 monospace;
}
.module-resources p {
  margin: 12px 0;
}
.challenge-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 12px 0;
  overflow: hidden;
  scroll-margin-top: 85px;
}
.challenge-block[open] {
  border-color: hsl(var(--neon) / 0.35);
}
.challenge-block > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.challenge-block > summary::-webkit-details-marker {
  display: none;
}
.challenge-block > summary strong {
  font-size: 15px;
  font-weight: 600;
}
.challenge-block > summary .challenge-meta {
  margin-left: auto;
  color: var(--muted);
  font: 11px monospace;
}
.challenge-index {
  font: 12px monospace;
  color: var(--accent);
  border: 1px solid hsl(var(--neon) / 0.25);
  background: hsl(var(--neon) / 0.05);
  border-radius: 5px;
  min-width: 29px;
  text-align: center;
  padding: 5px;
}
.challenge-body {
  padding: 0 20px 20px;
}
.challenge-body > p {
  font-size: 14px;
  line-height: 1.85;
  margin: 8px 0 18px;
}
.challenge-explanation {
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 6px;
  margin: 18px 0;
  font-size: 13px;
}
.challenge-explanation summary {
  cursor: pointer;
  color: var(--accent);
}
.challenge-explanation p {
  line-height: 1.8;
  margin: 13px 0;
}
.challenge-explanation pre {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: 12px/1.8 monospace;
  white-space: pre-wrap;
  color: #c6dce5;
  background: var(--surface);
}
.challenge-launch {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 0;
}
.challenge-launch .runtime-info {
  color: var(--muted);
  font: 11px monospace;
  margin-left: auto;
}
.embedded-workspace {
  width: 100%;
  height: 610px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}
body.embed {
  background: var(--bg);
}
body.embed .site-header,
body.embed .learning-nav,
body.embed > .app > .crumb,
body.embed footer {
  display: none;
}
body.embed main {
  max-width: none;
  padding: 0;
}
body.embed main > .welcome,
body.embed .lab-instructions {
  display: none;
}
body.embed .lab-layout {
  display: block;
}
body.embed .lab-workspace {
  border: 0;
  border-radius: 0;
}
body.embed .lab-toolbar > a {
  display: none;
}
body.embed .terminal-output {
  height: 345px;
}
.lab-workspace,
.code-editor,
.terminal-output {
  background: #070d14;
}
.lab-bar {
  background: #0e1726;
  border-color: var(--border);
}
.lab-toolbar {
  background: var(--surface);
}
.lab-mode {
  color: var(--accent);
}
.terminal-prompt {
  background: #0b1520;
  border-color: var(--border);
}
.terminal-output {
  color: #d5e3ed;
}
.lab-output {
  color: #ccdbe7;
}
.register-cell {
  background: var(--surface);
  border-color: var(--border);
}
.lab-status {
  color: var(--muted);
}
.lesson-row:hover {
  background: hsl(var(--neon) / 0.04);
}
footer {
  max-width: 1248px;
  margin: auto;
  border-color: var(--border);
}
.achievement-icon {
  background: hsl(var(--neon) / 0.08);
  color: var(--accent);
  border-color: hsl(var(--neon) / 0.3);
}
#toast {
  background: #0d2021;
  border-color: hsl(var(--neon) / 0.3);
}
dialog {
  background: var(--surface);
  border-color: var(--border);
}
.search-head input {
  color: var(--text);
}
#search-results a:hover {
  background: hsl(var(--neon) / 0.07);
}
.flow-diagram span {
  background: var(--surface);
  border-color: var(--border);
}
.module-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 12px;
}
.module-section-title span {
  font: 11px monospace;
  color: var(--muted);
}
@media (max-width: 1050px) {
  .site-nav {
    gap: 10px;
  }
  .site-nav nav a {
    padding: 8px;
    font-size: 12px;
  }
  .site-auth {
    gap: 10px;
    font-size: 12px;
  }
  .learning-nav nav {
    gap: 12px;
  }
  .module-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .site-nav nav {
    display: none;
  }
  .site-nav nav.open {
    display: flex;
    position: absolute;
    top: 61px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    transform: none;
  }
  .site-nav .mobile-menu {
    display: block;
  }
  .site-auth {
    margin-left: auto;
  }
  .learning-nav {
    padding: 12px 16px;
    gap: 8px;
  }
  .learning-nav nav {
    gap: 12px;
  }
  .learning-nav nav a {
    font-size: 11px;
  }
  .search-trigger {
    min-width: 28px;
    width: 28px;
    font-size: 19px;
  }
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }
  .module-layout {
    grid-template-columns: 1fr;
  }
  .module-outline {
    position: static;
    display: flex;
    overflow: auto;
  }
  .module-outline h3,
  .outline-label {
    display: none;
  }
  .outline-item {
    white-space: nowrap;
    padding: 10px 14px;
  }
  .module-row {
    grid-template-columns: 30px 1fr 25px;
    padding: 17px;
    gap: 13px;
  }
  .module-row > .module-completion {
    display: none;
  }
  .challenge-block > summary {
    padding: 14px 13px;
    gap: 9px;
  }
  .challenge-block > summary strong {
    font-size: 13px;
  }
  .challenge-block > summary .challenge-meta {
    font-size: 9px;
  }
  .challenge-body {
    padding: 0 13px 15px;
  }
  .embedded-workspace {
    height: 630px;
  }
  .module-intro h1 {
    font-size: 26px;
  }
  .challenge-launch .runtime-info {
    margin-left: 0;
    width: 100%;
  }
  .learning-nav {
    align-items: start;
  }
  .roadmap .info {
    position: static;
  }
}
.real-terminal {
  height: 355px;
  padding: 12px 15px;
  background: #070d14;
}
.real-terminal .xterm {
  height: 100%;
}
.runtime-limits {
  margin-left: auto;
  color: var(--muted);
  font: 10px monospace;
}
.check-result {
  background: var(--bg);
  padding: 13px 17px;
  border-top: 1px solid var(--border);
  white-space: pre-wrap;
  color: #b8cadd;
  font: 12px/1.8 monospace;
  overflow-wrap: anywhere;
}
.check-result button {
  padding: 4px 10px;
  margin-left: 15px;
  font-size: 11px;
}
.flag-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.flag-form label {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.flag-form input {
  margin: 0;
  background: var(--bg);
  font: 12px monospace;
  border-color: var(--border);
}
.flag-form .button {
  white-space: nowrap;
}
.real-workspace:fullscreen .real-terminal {
  height: calc(100vh - 250px);
}
.real-workspace:fullscreen {
  padding: 0;
}
.site-nav nav a {
  font-weight: 500;
}
.site-brand .brand-icon {
  mask-size: 26px;
  -webkit-mask-size: 26px;
}
.search-trigger {
  font-weight: 400;
  justify-content: initial;
}
.search-trigger span {
  font-size: 12px;
}
.search-trigger kbd {
  font-weight: 400;
}
@media (max-width: 760px) {
  .flag-form {
    flex-wrap: wrap;
    gap: 8px;
  }
  .flag-form input {
    flex: 1;
    min-width: 130px;
  }
  .real-terminal {
    height: 330px;
  }
  .runtime-limits {
    width: 100%;
    margin: 0;
  }
  .lab-toolbar .button {
    font-size: 10px;
  }
  .flag-form .button {
    font-size: 11px;
  }
  .flag-form label {
    font-size: 11px;
  }
}

/* ───────────────────────── Redesigned lesson pages (academy/lesson.php) ───────────────────────── */
.lesson-layout--routed {
  display: grid;
  grid-template-columns: 250px minmax(0, 850px) 230px;
  gap: 36px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.lesson-sidebar {
  position: sticky;
  top: 20px;
}
.course-tree {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 14px;
}
.course-tree-title {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 12px;
  padding: 0 4px;
}
.course-tree-module {
  margin-bottom: 14px;
}
.course-tree-module-title {
  display: block;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 4px 8px;
  font-weight: 600;
}
.course-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.course-tree-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  color: #c3ccc6;
  line-height: 1.4;
}
.course-tree-item:hover {
  background: var(--raised);
  color: #fff;
}
.course-tree-item .course-tree-icon {
  flex: 0 0 auto;
  width: 14px;
  text-align: center;
  font-size: 11px;
  margin-top: 1px;
  color: var(--muted);
}
.course-tree-item--done .course-tree-icon {
  color: var(--accent);
}
.course-tree-item--current {
  background: rgba(179, 232, 190, 0.07);
  box-shadow: inset 2px 0 0 var(--accent);
  color: #fff;
  font-weight: 600;
}
.course-tree-item--current .course-tree-icon {
  color: var(--accent);
}
.course-tree-item--locked {
  color: #5d6560;
  cursor: not-allowed;
}
.course-tree-item--locked:hover {
  background: transparent;
  color: #5d6560;
}
.course-tree-back {
  display: block;
  margin-top: 14px;
  padding: 6px 4px 0;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.course-tree-back:hover {
  color: var(--accent);
}

.lesson-article {
  max-width: 850px;
}
.lesson-article > .eyebrow {
  margin-bottom: 8px;
}
.lesson-article > h1 {
  font-size: 32px;
  margin-bottom: 26px;
}

.edu-block {
  margin: 26px 0;
  padding-top: 2px;
}
.edu-eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 8px;
}
.edu-concept h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
.edu-concept p,
.edu-mental-model p {
  font-size: 14px;
  line-height: 1.85;
  color: #c7d0ca;
  margin: 0 0 12px;
}
.edu-concept p:last-child,
.edu-mental-model p:last-child {
  margin-bottom: 0;
}

.edu-mental-model {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.edu-mental-model h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.edu-diagram-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}
.edu-diagram-box {
  border: 1px solid var(--border);
  background: var(--raised);
  padding: 12px 16px;
  border-radius: 8px;
  font:
    12.5px/1.4 ui-monospace,
    "JetBrains Mono",
    monospace;
  color: #dce6df;
}
.edu-diagram-arrow {
  color: var(--accent);
  font-size: 15px;
}
.edu-diagram-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.edu-analogy h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
.edu-analogy-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.edu-analogy-row {
  display: grid;
  grid-template-columns: 130px repeat(auto-fit, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
.edu-analogy-row:first-child {
  border-top: none;
}
.edu-analogy-row > span {
  padding: 11px 14px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
}
.edu-analogy-head {
  background: var(--raised);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.edu-analogy-label {
  color: var(--muted);
  font-size: 11.5px;
}
.edu-analogy-row code {
  font:
    12px ui-monospace,
    monospace;
  color: #cfe3d5;
  background: transparent;
}

.edu-code-walkthrough h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
.edu-walk-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.edu-walk-step {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 12px 14px;
}
.edu-walk-step code {
  font:
    12.5px/1.5 ui-monospace,
    "JetBrains Mono",
    monospace;
  color: var(--accent);
  white-space: pre-wrap;
  word-break: break-word;
}
.edu-walk-step p {
  margin: 0;
  font-size: 12.5px;
  color: #c7d0ca;
  line-height: 1.6;
}
.edu-walk-final {
  margin-top: 14px;
  padding: 18px;
  background: #0e1214;
  border: 1px solid #303b36;
  border-radius: 8px;
  overflow: auto;
  color: #b6d3c0;
  font:
    12.5px/1.8 ui-monospace,
    "JetBrains Mono",
    monospace;
}

.edu-callout {
  border-left: 3px solid var(--border);
  padding: 13px 16px;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
}
.edu-callout-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 650;
  margin-bottom: 6px;
}
.edu-callout p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #c7d0ca;
}
.edu-callout--info {
  border-left-color: #5f8fd6;
}
.edu-callout--info .edu-callout-label {
  color: #8fb4ec;
}
.edu-callout--warning {
  border-left-color: #c9a24c;
}
.edu-callout--warning .edu-callout-label {
  color: #e0be6f;
}
.edu-callout--mistake {
  border-left-color: #c66161;
}
.edu-callout--mistake .edu-callout-label {
  color: #e08a8a;
}

.edu-knowledge-check {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.edu-kc-question {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text);
}
.edu-kc-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edu-kc-option {
  text-align: left;
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  cursor: pointer;
}
.edu-kc-option:hover:not(:disabled) {
  border-color: #4a5850;
}
.edu-kc-option.is-correct {
  border-color: var(--accent);
  background: rgba(179, 232, 190, 0.1);
  color: var(--accent);
}
.edu-kc-option.is-incorrect {
  border-color: #c66161;
  background: rgba(198, 97, 97, 0.1);
  color: #e08a8a;
}
.edu-kc-feedback {
  margin: 12px 0 0;
  font-size: 12.5px;
  padding: 10px 12px;
  border-radius: 6px;
}
.edu-kc-feedback.is-correct {
  background: rgba(179, 232, 190, 0.08);
  color: var(--accent);
}
.edu-kc-feedback.is-incorrect {
  background: rgba(198, 97, 97, 0.08);
  color: #e08a8a;
}

.edu-lab-objective {
  border: 1px solid var(--accent);
  background: rgba(179, 232, 190, 0.05);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.edu-lab-objective h3 {
  font-size: 18px;
  margin-bottom: 14px;
}
.edu-lab-objective ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #c7d0ca;
  font-size: 13px;
  line-height: 1.9;
}
.edu-lab-success {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 18px;
}

.edu-practice {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  margin-top: 40px;
}
.edu-practice h3 {
  font-size: 16px;
  margin: 6px 0 14px;
}
.edu-practice-form {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.edu-practice-form .field {
  margin: 0;
  flex: 1;
}
.edu-practice-feedback {
  font-size: 12.5px;
  margin-top: 12px;
  min-height: 1.4em;
}
.edu-practice-feedback.is-correct {
  color: var(--accent);
}
.edu-practice-feedback.is-incorrect {
  color: #e08a8a;
}
.edu-practice-next {
  margin-top: 16px;
}

.lesson-progress-rail {
  position: sticky;
  top: 20px;
  font-size: 12px;
}
.lesson-progress-title {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 12px;
}
.lesson-progress-rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}
.lesson-progress-rail li {
  padding: 0 0 0 14px;
  margin-bottom: 14px;
  position: relative;
}
.lesson-progress-rail li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
}
.lesson-progress-rail li a {
  color: var(--muted);
  font-size: 11.5px;
}
.lesson-progress-rail li.is-active::before {
  background: var(--accent);
}
.lesson-progress-rail li.is-active a {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 1080px) {
  .lesson-layout--routed {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
  }
  .lesson-progress-rail {
    display: none;
  }
}
@media (max-width: 760px) {
  .lesson-layout--routed {
    display: block;
  }
  .lesson-sidebar {
    position: static;
    margin-bottom: 22px;
  }
  .course-tree {
    max-height: 280px;
    overflow: auto;
  }
  .edu-walk-step {
    grid-template-columns: 1fr;
  }
  .edu-analogy-row {
    grid-template-columns: 100px repeat(auto-fit, minmax(0, 1fr));
  }
  .edu-practice-form {
    flex-direction: column;
  }
}

/* ───────────────────────── Inline code terms in prose (pwn.college-style highlighting) ───────────────────────── */
.edu-concept p code,
.edu-mental-model p code,
.edu-callout p code,
.edu-lab-objective li code,
.edu-lab-objective p code,
.edu-kc-question code,
.edu-kc-option code,
.edu-walk-step p code,
.edu-diagram-caption code,
.edu-concept h2 code,
.edu-mental-model h3 code {
  font:
    12px ui-monospace,
    "JetBrains Mono",
    monospace;
  color: #8fb4ec;
  background: rgba(143, 180, 236, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ───────────────────────── Real-challenge card (pwn.college style Start → workspace) ───────────────────────── */
.edu-challenge-card {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #171f1a, var(--surface) 60%);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 40px;
}
.edu-challenge-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.edu-challenge-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(179, 232, 190, 0.1);
  border: 1px solid #3d5145;
  border-radius: 7px;
  color: var(--accent);
  font-size: 12px;
}
.edu-challenge-head h3 {
  font-size: 18px;
  flex: 1;
}
.edu-challenge-status {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}
.edu-challenge-status--done {
  color: var(--accent);
  border-color: #3d5145;
  background: rgba(179, 232, 190, 0.08);
}
.edu-challenge-mission {
  font-size: 13.5px;
  line-height: 1.85;
  color: #c7d0ca;
  margin: 0 0 6px;
}
.edu-challenge-card details {
  border-top: none;
  padding: 8px 0 0;
  font-size: 12px;
}
.edu-challenge-card summary {
  color: var(--muted);
  cursor: pointer;
}
.edu-challenge-card details p {
  margin-top: 8px;
  color: #b7c0ba;
}
.edu-challenge-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.edu-challenge-meta {
  font-size: 11px;
  color: var(--muted);
}

.lesson-nav-next {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Learning-path card for paths with their own pages (e.g. Linux Fundamentals). */
.path-card { padding: 0; overflow: hidden; font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", system-ui, sans-serif; }
.path-card-term {
  direction: ltr; text-align: left; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #070b11; color: #d5dde8; border-bottom: 1px solid var(--border); padding: 12px 16px; white-space: nowrap; overflow: hidden;
}
.path-card-term .u { color: #7ee787; font-weight: 600; }
.path-card-term .p { color: #79c0ff; font-weight: 600; }
.path-card-term .c { display: inline-block; width: 7px; height: 13px; vertical-align: -2px; background: #d5dde8; }
.path-card-body { padding: 19px; display: flex; flex-direction: column; flex: 1; }
.path-card h3 { font-size: 19px; margin: 12px 0 6px; }
.path-card p { font-size: 13.5px; line-height: 1.8; margin-bottom: 14px; }
.path-card .track-meta, .path-card .progress-line { font-size: 12px; }
.path-card .tag { font-size: 11px; letter-spacing: 0; }
