.svg-icon {
  width: 1em;
  height: 1em;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.svg-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root {
  color-scheme: light;
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  color: #18202f;
  background: #eef2f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button,
textarea {
  font: inherit;
}

input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.matrix-shell {
  min-height: 100vh;
  background: #f7d557;
}

.matrix-topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 12vw;
  background: #1f2022;
  color: #ffffff;
}

.matrix-topbar .brand-mark {
  background: #ffc83d;
  color: #151515;
}

.wing-brand {
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #ffca42 0%, #ffffff 52%, #2a3038 100%);
  color: #151515;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.matrix-topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.matrix-topbar a {
  color: #c8c8c8;
  text-decoration: none;
  font-weight: 800;
  position: relative;
}

.matrix-topbar a:hover,
.matrix-topbar a.active {
  color: #ffc83d;
}

.matrix-topbar a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -19px;
  height: 3px;
  border-radius: 999px;
  background: #ffc83d;
}

.join-planet {
  min-height: 40px;
  padding: 0 24px;
  border: 2px solid #ffc83d;
  border-radius: 999px;
  background: transparent;
  color: #ffc83d;
  font-weight: 900;
}

.matrix-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(420px, 1fr);
  gap: 54px;
  align-items: center;
  min-height: 690px;
  padding: 58px 12vw 128px;
  position: relative;
  overflow: hidden;
  background: #f7d557;
}

.matrix-hero::before,
.matrix-hero::after {
  content: "";
  position: absolute;
  border-radius: 34px;
  background: rgba(209, 159, 24, 0.18);
  transform: rotate(13deg);
}

.matrix-hero::before {
  width: 92px;
  height: 92px;
  left: 1vw;
  top: 38%;
}

.matrix-hero::after {
  width: 114px;
  height: 74px;
  right: 4vw;
  top: 26%;
  border-radius: 32px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-pills span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  border: 3px solid #1f2022;
  border-radius: 999px;
  background: #ffffff;
  font-weight: 900;
  box-shadow: 4px 4px 0 #1f2022;
}

.matrix-hero h2 {
  margin-bottom: 22px;
  max-width: 740px;
  font-size: clamp(3.2rem, 7vw, 5.7rem);
  line-height: 1.02;
  color: #101010;
}

.matrix-hero p {
  max-width: 650px;
  color: #604f17;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.75;
}

.hero-slogan {
  margin-bottom: 8px;
  color: #1f2022 !important;
  font-size: 1.45rem !important;
  font-weight: 900 !important;
}

.hero-copy {
  margin-bottom: 28px;
}

.hero-follow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  color: rgba(32, 32, 34, 0.58);
  font-weight: 900;
}

.hero-follow-row i {
  width: 28px;
  height: 1px;
  background: rgba(32, 32, 34, 0.28);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 34px;
}

.hero-tags span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 2px solid #1f2022;
  border-radius: 999px;
  background: #fffdf3;
  color: #151719;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-actions button {
  min-height: 62px;
  padding: 0 36px;
  border: 3px solid #1f2022;
  border-radius: 999px;
  background: #1f2022;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 900;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.22);
}

.hero-actions button.secondary {
  background: #ffffff;
  color: #1f2022;
}

.hero-progress {
  display: grid;
  gap: 14px;
  justify-items: stretch;
}

.hero-progress button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: #161719;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.22);
}

.hero-progress p {
  display: flex;
  justify-content: space-between;
  color: #101010;
}

.hero-universe {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.orbit-scene {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 1.16;
}

.space-window {
  position: absolute;
  inset: 6% 6% 16% 8%;
  overflow: hidden;
  border: 4px solid #1f2022;
  border-radius: 46% 54% 42% 58%;
  background: radial-gradient(circle at 58% 38%, #314150 0 8%, transparent 9%), radial-gradient(circle at 50% 50%, #202832 0 58%, #101419 59% 100%);
  box-shadow: 12px 16px 0 rgba(0, 0, 0, 0.22);
}

.orbit {
  position: absolute;
  border: 2px dashed rgba(255, 202, 66, 0.42);
  border-radius: 50%;
}

.orbit-one {
  width: 410px;
  height: 170px;
  left: 70px;
  top: 126px;
  transform: rotate(-16deg);
}

.orbit-two {
  width: 330px;
  height: 120px;
  left: 120px;
  top: 192px;
  transform: rotate(23deg);
}

.learner-avatar {
  position: absolute;
  left: 50%;
  top: 24%;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border: 4px solid #1f2022;
  border-radius: 50%;
  background: #ffcf54;
  color: #1f2022;
  font-size: 3.2rem;
  font-weight: 900;
  box-shadow: inset 0 -18px 0 rgba(255, 255, 255, 0.28);
}

.laptop-card {
  position: absolute;
  left: 36%;
  top: 52%;
  width: 172px;
  height: 92px;
  display: grid;
  place-items: center;
  transform: rotate(5deg);
  border: 4px solid #1f2022;
  border-radius: 10px;
  background: #d9e1df;
  color: #55606c;
  font-size: 2rem;
  font-weight: 900;
}

.signpost {
  position: absolute;
  left: 4%;
  top: 38%;
  display: grid;
  gap: 8px;
}

.signpost::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  bottom: -72px;
  width: 8px;
  transform: translateX(-50%);
  border: 3px solid #1f2022;
  background: #8a5a24;
}

.signpost b {
  position: relative;
  z-index: 1;
  width: 96px;
  padding: 6px 0;
  border: 3px solid #1f2022;
  border-radius: 6px;
  background: #b97a32;
  color: #1f2022;
  text-align: center;
  font-size: 0.82rem;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.24);
}

.planet {
  position: absolute;
  z-index: 2;
  display: block;
  border: 3px solid #1f2022;
  border-radius: 50%;
}

.planet-one {
  width: 82px;
  height: 82px;
  left: 7%;
  top: 12%;
  background: linear-gradient(155deg, #ff9c5c, #e46f39);
}

.planet-one::after {
  content: "";
  position: absolute;
  left: -22px;
  top: 30px;
  width: 124px;
  height: 18px;
  border: 3px solid #1f2022;
  border-radius: 50%;
  transform: rotate(-14deg);
}

.planet-two {
  width: 44px;
  height: 44px;
  right: 11%;
  top: 8%;
  background: #ffca42;
}

.star {
  position: absolute;
  z-index: 3;
  color: #ffca42;
  font-size: 2rem;
  font-weight: 900;
}

.star-one {
  right: 22%;
  top: 19%;
}

.star-two {
  left: 23%;
  top: 25%;
}

.book-stack {
  position: absolute;
  left: 22%;
  bottom: 1%;
  z-index: 4;
  display: grid;
  gap: 5px;
}

.book-stack span {
  width: 174px;
  padding: 9px 18px;
  border: 3px solid #1f2022;
  border-radius: 8px;
  background: #244455;
  color: #ffca42;
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.24);
}

.console-card {
  position: absolute;
  right: 3%;
  bottom: 18%;
  z-index: 4;
  width: 180px;
  min-height: 90px;
  padding: 16px;
  border: 4px solid #1f2022;
  border-radius: 10px;
  background: #151719;
  color: #ffca42;
  transform: rotate(6deg);
}

.console-card span {
  display: block;
  width: 42px;
  height: 7px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #e95b31;
  box-shadow: 14px 0 0 #ffca42, 28px 0 0 #5fd19c;
}

.console-card code {
  font-family: Consolas, Monaco, monospace;
  font-weight: 800;
}

.hero-stats {
  width: min(920px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: -82px auto 0;
  position: relative;
  z-index: 3;
  border: 3px solid #1f2022;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 8px 8px 0 #1f2022;
}

.hero-stats div {
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
}

.hero-stats div + div {
  border-left: 1px solid #ddd8cd;
}

.hero-stats strong {
  color: #101010;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
}

.hero-stats span {
  color: #85827a;
  font-weight: 900;
}

.knowledge-matrix {
  padding: 72px 8vw 64px;
}

.matrix-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 24px;
}

.matrix-heading span {
  flex: 0 0 auto;
  padding: 8px 18px;
  border: 3px solid #1f2022;
  border-radius: 999px;
  background: #ffc83d;
  font-weight: 900;
}

.matrix-heading h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

.matrix-heading p {
  margin-bottom: 0;
  color: #6a6254;
}

.section-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
}

.section-column {
  overflow: hidden;
  border: 4px solid #1f2022;
  border-radius: 8px;
  background: #ffffff;
}

.site-section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.site-section-heading span {
  width: fit-content;
  padding: 8px 18px;
  border: 3px solid #1f2022;
  border-radius: 999px;
  background: #ffc83d;
  color: #1f2022;
  font-weight: 900;
}

.site-section-heading h2 {
  margin: 0;
  color: #101010;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.15;
}

.site-section-heading p {
  max-width: 660px;
  margin: 0;
  color: #6a6254;
  font-weight: 700;
  line-height: 1.7;
}

.site-section-heading.compact {
  margin-bottom: 18px;
}

.featured-zone,
.latest-zone,
.tool-zone {
  padding: 54px 8vw 12px;
  background: #f7d557;
}

.featured-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}

.featured-course-card {
  min-height: 280px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  border: 4px solid #1f2022;
  border-radius: 10px;
  background: #fffdf3;
  color: #1f2022;
  text-align: left;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.22);
}

.featured-course-card::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 96px;
  height: 96px;
  border: 4px solid #1f2022;
  border-radius: 28px;
  background: rgba(255, 202, 66, 0.85);
  transform: rotate(11deg);
}

.featured-course-card.tone-2::before {
  background: rgba(95, 209, 156, 0.82);
}

.featured-course-card.tone-3::before {
  background: rgba(136, 166, 255, 0.78);
}

.course-cover-mark {
  width: fit-content;
  padding: 7px 12px;
  border: 2px solid #1f2022;
  border-radius: 999px;
  background: #1f2022;
  color: #ffc83d;
  font-size: 0.82rem;
  font-weight: 900;
}

.featured-course-card strong {
  max-width: 74%;
  font-size: 1.38rem;
  line-height: 1.25;
}

.featured-course-card p {
  margin: 0;
  color: #5e6878;
  font-weight: 700;
  line-height: 1.55;
}

.featured-course-card em {
  color: #7a6b3a;
  font-style: normal;
  font-weight: 900;
}

.latest-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}

.latest-card {
  min-height: 190px;
  padding: 22px;
  border: 3px solid #1f2022;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.18);
}

.latest-card small {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff0c7;
  color: #775f14;
  font-weight: 900;
}

.latest-card h3 {
  margin-bottom: 10px;
  color: #111827;
  font-size: 1.2rem;
}

.latest-card p {
  margin: 0;
  color: #5e6878;
  line-height: 1.7;
}

.tool-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  padding: 34px;
  border: 4px solid #1f2022;
  border-radius: 12px;
  background: #202124;
  color: #ffffff;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.24);
}

.tool-panel .site-section-heading h2,
.tool-panel .site-section-heading p {
  color: #ffffff;
}

.tool-list {
  display: grid;
  gap: 12px;
}

.tool-list article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.tool-list b {
  color: #ffc83d;
  font-size: 1.08rem;
}

.tool-list span {
  color: #d7dce5;
  line-height: 1.55;
}

.matrix-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding: 28px 8vw;
  background: #1f2022;
  color: #ffffff;
}

.matrix-footer strong {
  display: block;
  margin-bottom: 6px;
  color: #ffc83d;
  font-size: 1.2rem;
}

.matrix-footer p {
  margin: 0;
  color: #d7dce5;
}

.matrix-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.matrix-footer a {
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.section-column header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #171819;
  color: #ffffff;
}

.section-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffc83d;
  color: #171819;
}

.section-column strong,
.section-column small {
  display: block;
}

.section-column small {
  margin-top: 4px;
  color: #bcc3cf;
}

.section-column > p {
  margin: 0;
  padding: 14px 16px;
  color: #5e6878;
  line-height: 1.65;
  background: #f7f4ea;
  border-bottom: 1px solid #dcd6c8;
}

.matrix-course-list {
  display: grid;
}

.matrix-course-card {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid #dfe7e2;
  background: #f2fbf7;
  color: #17202d;
  text-align: left;
}

.matrix-course-card:hover {
  background: #e6f7ef;
}

.matrix-course-card strong {
  margin-bottom: 6px;
  color: #111827;
}

.matrix-course-card small {
  color: #7a8798;
  line-height: 1.45;
}

.matrix-course-card em {
  color: #6f7d92;
  font-style: normal;
  font-weight: 800;
}

.status-dot {
  color: #b4bbc6;
  margin-top: 2px;
}

.status-dot.done {
  color: #16b985;
}

.matrix-back-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  background: #ffc83d;
  color: #111827;
  font-weight: 900;
}

.app-shell {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #121722;
  color: #f7f9fc;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand-block,
.lesson-title,
.step-meta,
.outcome-block h3,
.step-list h3,
.primary-action,
.icon-button,
.step-button,
.command-list button {
  display: flex;
  align-items: center;
}

.brand-block {
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #31b37d;
  color: #07120d;
}

.eyebrow {
  margin: 0 0 6px;
  color: #6f7d92;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: #9aa7b8;
}

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

h1 {
  margin-bottom: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

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

.course-button {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: transparent;
  color: #dfe6ef;
  text-align: left;
}

.course-button.active,
.course-button:hover {
  background: #222a38;
}

.course-button strong,
.course-button small {
  display: block;
}

.course-button strong {
  margin-bottom: 6px;
  color: #ffffff;
}

.course-button small {
  color: #aeb8c7;
  line-height: 1.45;
}

.course-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #313b4b;
  color: #8be0ba;
}

.learning-panel {
  padding: 28px;
}

.course-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 22px;
  align-items: end;
  margin: 0 auto 22px;
  max-width: 1160px;
}

.course-header h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.course-header p:last-child {
  margin-bottom: 0;
  color: #516076;
  line-height: 1.65;
}

.progress-card {
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(25, 35, 55, 0.08);
}

.progress-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 1.8rem;
  font-weight: 800;
}

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

.progress-track div {
  height: 100%;
  border-radius: inherit;
  background: #31b37d;
  transition: width 180ms ease;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
}

.lesson-card,
.guide-panel section {
  border: 1px solid #dce3ed;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(25, 35, 55, 0.08);
}

.lesson-card {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.step-meta {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
  color: #6b7890;
  font-size: 0.92rem;
}

.step-meta span,
.outcome-block h3,
.step-list h3,
.primary-action,
.icon-button,
.step-button,
.command-list button {
  gap: 8px;
}

.lesson-content {
  flex: 1;
}

.lesson-title {
  gap: 14px;
  margin-bottom: 22px;
}

.lesson-title > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e6f7ef;
  color: #14724d;
}

.lesson-title h2 {
  margin-bottom: 0;
  font-size: 1.65rem;
}

.lesson-body {
  max-width: 760px;
  color: #3f4c60;
  font-size: 1.08rem;
  line-height: 1.8;
}

blockquote {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 4px solid #31b37d;
  border-radius: 0 8px 8px 0;
  background: #f1fbf6;
  color: #244d3e;
  line-height: 1.7;
}

.quiz-box,
.diagram-board,
.terminal-layout,
.reflection-list {
  margin-top: 26px;
}

.quiz-box {
  padding: 20px;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
}

.quiz-box h3 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-button {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #ffffff;
  color: #243044;
  text-align: left;
}

.choice-button:hover,
.choice-button.selected {
  border-color: #31b37d;
  background: #effaf5;
}

.feedback {
  margin: 14px 0 0;
  color: #ad3b3b;
  font-weight: 700;
}

.feedback.good {
  color: #14724d;
}

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

.diagram-column {
  min-height: 220px;
  padding: 18px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  background: #f8fafc;
}

.diagram-column strong,
.diagram-column span {
  display: block;
}

.diagram-column strong {
  margin-bottom: 14px;
}

.diagram-column span {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: #425067;
  box-shadow: inset 0 0 0 1px #e3e9f1;
}

.prompt-line {
  margin: 18px 0 0;
  color: #14724d;
  font-weight: 700;
}

.terminal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
}

.command-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.command-list button {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef3f8;
  color: #273347;
  text-align: left;
}

.command-list button.active,
.command-list button:hover {
  background: #18202f;
  color: #ffffff;
}

.terminal-window {
  overflow: hidden;
  border-radius: 8px;
  background: #10141d;
  color: #e8edf5;
}

.terminal-top {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: #1d2432;
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
}

.terminal-top span:nth-child(2) {
  background: #f7c948;
}

.terminal-top span:nth-child(3) {
  background: #31b37d;
}

pre {
  margin: 0;
  min-height: 180px;
  padding: 20px;
  white-space: pre-wrap;
  line-height: 1.7;
}

.terminal-window p {
  margin: 0;
  padding: 0 20px 20px;
  color: #9fb0c9;
}

.code-practice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  margin-top: 24px;
}

.code-editor-card {
  overflow: hidden;
  border-radius: 8px;
  background: #10141d;
  color: #e8edf5;
}

.code-editor-card pre {
  min-height: 260px;
}

.code-check-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  background: #f7f9fc;
}

.code-check-panel label {
  display: grid;
  gap: 8px;
  color: #506077;
  font-weight: 700;
}

.code-check-panel input {
  min-height: 44px;
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  padding: 0 12px;
  color: #18202f;
}

.code-check-panel .primary-action {
  width: 100%;
}

.code-check-panel section {
  padding: 12px;
  border-radius: 8px;
  background: #ffffff;
}

.code-check-panel section strong {
  display: block;
  margin-bottom: 6px;
  color: #14724d;
}

.code-check-panel section p {
  margin: 0;
  color: #506077;
  line-height: 1.65;
}

.code-check-panel section pre {
  min-height: 0;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #10141d;
  color: #e8edf5;
}

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

.reflection-list p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f2f6fb;
  color: #344258;
}

.major-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
  gap: 14px;
  margin: 22px 0 14px;
}

.major-tools label {
  display: grid;
  gap: 8px;
  color: #506077;
  font-weight: 700;
}

.major-tools input,
.major-tools select {
  min-height: 46px;
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  padding: 0 12px;
  color: #18202f;
  background: #ffffff;
}

.major-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f4f8fc;
  color: #5b6a82;
}

.major-summary strong {
  color: #14724d;
  font-size: 1.15rem;
}

.shortlist-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #d7eadf;
  border-radius: 8px;
  background: #f1fbf6;
}

.shortlist-strip button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: #ffffff;
  color: #14724d;
  box-shadow: inset 0 0 0 1px #b9dfca;
}

.major-grid {
  display: grid;
  gap: 14px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.major-card {
  padding: 16px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  background: #ffffff;
}

.major-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.major-card-head span {
  display: block;
  margin-bottom: 5px;
  color: #6f7d92;
  font-size: 0.84rem;
  font-weight: 700;
}

.major-card h3 {
  margin-bottom: 0;
  font-size: 1.18rem;
}

.major-card-head button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 12px;
  border-radius: 8px;
  background: #18202f;
  color: #ffffff;
  font-weight: 700;
}

.major-card > p {
  margin-bottom: 12px;
  color: #3f4c60;
  line-height: 1.7;
}

.major-pro-con {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.major-pro-con section {
  padding: 12px;
  border-radius: 8px;
  background: #f7f9fc;
}

.major-pro-con strong {
  display: block;
  margin-bottom: 6px;
  color: #14724d;
}

.major-pro-con p,
.empty-state {
  margin: 0;
  color: #506077;
  line-height: 1.65;
}

textarea {
  width: 100%;
  min-height: 170px;
  margin-top: 18px;
  padding: 16px;
  resize: vertical;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  color: #18202f;
  line-height: 1.65;
}

textarea:focus {
  outline: 3px solid rgba(49, 179, 125, 0.18);
  border-color: #31b37d;
}

.lesson-actions {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 12px;
  margin-top: 28px;
}

.icon-button,
.primary-action {
  min-height: 46px;
  justify-content: center;
  border-radius: 8px;
}

.icon-button {
  background: #eef3f8;
  color: #273347;
}

.primary-action {
  background: #31b37d;
  color: #07120d;
  font-weight: 800;
}

.guide-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.guide-panel section {
  padding: 18px;
}

.outcome-block h3,
.step-list h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.outcome-block p {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f8fc;
  color: #405068;
}

.outcome-block p:last-child {
  margin-bottom: 0;
}

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

.step-button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  color: #3d4b61;
  text-align: left;
}

.step-button.active,
.step-button:hover {
  background: #edf8f3;
  color: #14724d;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .matrix-topbar,
  .matrix-hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  .matrix-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 110px;
  }

  .matrix-topbar {
    padding-left: 22px;
    padding-right: 22px;
  }

  .matrix-topbar nav {
    gap: 16px;
  }

  .join-planet {
    margin-left: auto;
  }

  .hero-universe {
    min-height: 430px;
  }

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

  .hero-stats div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #ddd8cd;
  }

  .hero-stats div:nth-child(4) {
    border-top: 1px solid #ddd8cd;
  }

  .knowledge-matrix {
    padding-left: 22px;
    padding-right: 22px;
  }

  .section-board {
    grid-template-columns: 1fr;
  }

  .featured-course-grid,
  .latest-card-grid,
  .tool-panel {
    grid-template-columns: 1fr;
  }

  .featured-zone,
  .latest-zone,
  .tool-zone {
    padding-left: 22px;
    padding-right: 22px;
  }

  .sidebar {
    padding: 20px;
  }

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

  .workspace-grid,
  .course-header {
    grid-template-columns: 1fr;
  }

  .progress-card {
    max-width: 260px;
  }
}

@media (max-width: 680px) {
  .learning-panel {
    padding: 18px;
  }

  .matrix-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .matrix-topbar a.active::after {
    bottom: -6px;
  }

  .join-planet {
    margin-left: 0;
  }

  .matrix-hero {
    padding-top: 30px;
    padding-bottom: 92px;
  }

  .hero-actions button {
    width: 100%;
  }

  .hero-follow-row {
    gap: 10px;
  }

  .hero-universe {
    min-height: 330px;
  }

  .orbit-scene {
    width: min(360px, 100%);
  }

  .learner-avatar {
    width: 92px;
    height: 92px;
    font-size: 2.2rem;
  }

  .laptop-card {
    width: 120px;
    height: 68px;
    font-size: 1.35rem;
  }

  .signpost {
    transform: scale(0.78);
    transform-origin: left top;
  }

  .book-stack span {
    width: 118px;
    padding: 6px 12px;
  }

  .console-card {
    width: 128px;
    min-height: 70px;
    padding: 12px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: -62px;
  }

  .hero-stats div + div,
  .hero-stats div:nth-child(3),
  .hero-stats div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid #ddd8cd;
  }

  .matrix-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-course-card strong {
    max-width: 100%;
  }

  .tool-panel {
    padding: 22px;
  }

  .matrix-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-left: 22px;
    padding-right: 22px;
  }

  .course-list,
  .diagram-board,
  .terminal-layout,
  .code-practice,
  .major-tools,
  .major-pro-con {
    grid-template-columns: 1fr;
  }

  .lesson-card {
    min-height: auto;
    padding: 20px;
  }

  .course-header h2 {
    font-size: 1.65rem;
  }

  .lesson-title h2 {
    font-size: 1.35rem;
  }

  .step-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
