@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.7c87a648293f.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/inter.260c81a4759b.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("fonts/manrope.938c6e8019b6.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("fonts/outfit.fdf9c509a809.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display.ef05b30d6e5c.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.7660bd9909fb.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Sora;
  src: url("fonts/sora.fc575ebf6f7c.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.87c506d88b9f.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Urbanist;
  src: url("fonts/urbanist.aa575f0b6551.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("fonts/work-sans.97b33529e13b.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --site-body-font: Manrope, ui-sans-serif, system-ui, sans-serif;
  --site-heading-font: "Playfair Display", Georgia, serif;
  font-family: var(--site-body-font);
  color: #f5f1ff;
  background: #2d1b69;
  font-synthesis: none;
  --canvas: #2d1b69;
  --canvas-deep: #21134f;
  --panel: #382579;
  --panel-raised: #432d88;
  --line: #5945a0;
  --muted: #c3b9e4;
  --text: #f5f1ff;
  --accent: #c8ff3d;
  --accent-strong: #ddff82;
  --accent-ink: #21134f;
  --danger: #ff91a8;
  color-scheme: dark;
}

:root[data-font-theme="balanced"] {
  --site-body-font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --site-heading-font: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

:root[data-font-theme="friendly"] {
  --site-body-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --site-heading-font: Outfit, ui-sans-serif, system-ui, sans-serif;
}

:root[data-font-theme="editorial"] {
  --site-body-font: Manrope, ui-sans-serif, system-ui, sans-serif;
  --site-heading-font: "Playfair Display", Georgia, serif;
}

:root[data-font-theme="precise"] {
  --site-body-font: Inter, ui-sans-serif, system-ui, sans-serif;
  --site-heading-font: Sora, ui-sans-serif, system-ui, sans-serif;
}

:root[data-font-theme="open"] {
  --site-body-font: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  --site-heading-font: Urbanist, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body, #root { min-height: 100%; margin: 0; }
html { background: var(--canvas); }
body {
  color: var(--text);
  background:
    radial-gradient(ellipse at 78% 5%, rgba(200, 255, 61, .11), transparent 30rem),
    radial-gradient(ellipse at 8% 35%, rgba(112, 82, 202, .34), transparent 42rem),
    var(--canvas);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.font-preview-dock {
  position: fixed;
  z-index: 2000;
  right: 18px;
  bottom: 18px;
  width: min(340px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(45, 27, 105, .18);
  border-radius: 14px;
  color: #2d1b69;
  background: #fffdf7;
  box-shadow: 0 16px 44px rgba(33, 19, 79, .2);
}
.font-preview-dock summary {
  padding: 13px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}
.font-preview-dock summary::-webkit-details-marker { display: none; }
.font-preview-content {
  display: grid;
  gap: 11px;
  padding: 0 16px 16px;
}
.font-preview-content label {
  display: grid;
  gap: 5px;
  color: #6f6688;
  font-size: 11px;
  font-weight: 650;
}
.font-preview-content select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(45, 27, 105, .2);
  border-radius: 8px;
  color: #2d1b69;
  background: #fff;
  font-size: 12px;
}
.font-preview-sample {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 9px;
  background: #f3f0fa;
}
.font-preview-sample strong {
  font-family: var(--site-heading-font);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.1;
}
.font-preview-sample span {
  font-family: var(--site-body-font);
  color: #6f6688;
  font-size: 12px;
  line-height: 1.45;
}
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(226, 218, 255, .15);
  background: rgba(38, 22, 91, .86);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  min-height: 54px;
  flex: 0 0 auto;
  padding: 6px 8px;
}
.brand-wordmark {
  display: block;
  width: clamp(128px, 10vw, 180px);
  max-height: 44px;
  height: auto;
  object-fit: contain;
}
.brand strong { display: block; font-size: 15px; letter-spacing: .2px; }
.brand span { display: block; margin-top: 2px; color: #c3b9e4; font-size: 11px; }
.nav { display: flex; align-items: center; gap: 7px; }
.nav a, .nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #ded7f4;
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.nav a.active, .nav a:hover, .nav-btn:hover {
  border-color: rgba(200, 255, 61, .26);
  color: var(--accent);
  background: rgba(200, 255, 61, .08);
}
.nav-btn { font-size: 14px; }
.menu-btn { display: none; border: 0; color: var(--text); background: transparent; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 54px;
  padding: 86px 0 78px;
}
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.hero h1 {
  max-width: 730px;
  margin: 17px 0 18px;
  font-size: clamp(44px, 5vw, 66px);
  line-height: .99;
  letter-spacing: -2.7px;
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
}
.hero p, .page-header p {
  max-width: 700px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; margin: 28px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
  font-weight: 750;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { cursor: wait; opacity: .7; transform: none; }
.btn.primary {
  border-color: transparent;
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 10px 28px rgba(200, 255, 61, .17);
}
.btn.primary:hover { background: var(--accent-strong); box-shadow: 0 12px 34px rgba(200, 255, 61, .25); }
.btn.ghost { border-color: #705cb0; background: rgba(255, 255, 255, .035); }
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn.full { width: 100%; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pills span {
  padding: 8px 10px;
  border: 1px solid rgba(200, 255, 61, .2);
  border-radius: 999px;
  color: #e4def5;
  background: rgba(200, 255, 61, .055);
  font-size: 12px;
}
.hero-card {
  position: relative;
  display: grid;
  min-height: 380px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #6651aa;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(83, 59, 159, .72), rgba(36, 21, 83, .96)),
    var(--canvas-deep);
  box-shadow: 0 30px 80px rgba(18, 9, 47, .3);
}
.glow {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: rgba(200, 255, 61, .24);
  filter: blur(72px);
}
.mini-dashboard {
  position: relative;
  width: 78%;
  padding: 24px;
  border: 1px solid rgba(222, 215, 244, .18);
  border-radius: 22px;
  background: rgba(37, 22, 86, .9);
  box-shadow: 0 24px 60px rgba(17, 9, 44, .36);
}
.mini-top { display: flex; justify-content: space-between; color: #c3b9e4; font-size: 11px; letter-spacing: .12em; }
.live-dot { color: var(--accent); }
.mini-dashboard h3 { margin: 24px 0 6px; font-size: 25px; }
.mini-dashboard p { margin: 0; color: var(--muted); font-size: 13px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.mini-grid div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px;
  border: 1px solid rgba(220, 211, 247, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
}
.mini-grid span { color: #ded7f4; font-size: 12px; }
.section { padding: 32px 0 46px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.section h2, .page-header h1 { margin: 8px 0 0; font-size: 36px; letter-spacing: -1.2px; }
.text-link { color: var(--accent); font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card, .branch-card, .tool-card, .subject-card, .panel, .announcement, .resource, .skill-card {
  border: 1px solid rgba(220, 211, 247, .15);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(67, 45, 136, .8), rgba(43, 27, 99, .86));
  box-shadow: 0 12px 30px rgba(23, 12, 61, .12);
}
.feature-card {
  padding: 22px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature-card:hover, .branch-card:hover, .tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 255, 61, .58);
  background: linear-gradient(150deg, rgba(78, 55, 151, .9), rgba(48, 30, 109, .92));
}
.feature-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid rgba(200, 255, 61, .18);
  border-radius: 14px;
  background: rgba(200, 255, 61, .1);
  font-size: 24px;
}
.feature-card h3 { margin: 18px 0 8px; }
.feature-card p, .branch-card p, .tool-card p, .announcement p, .resource p, .skill-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.feature-card span { display: block; margin-top: 18px; color: var(--accent); font-size: 13px; font-weight: 700; }
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.branch-card { display: flex; gap: 13px; padding: 18px; transition: transform .2s ease, border-color .2s ease; }
.branch-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(200, 255, 61, .16);
  border-radius: 14px;
  background: rgba(200, 255, 61, .09);
  font-size: 23px;
}
.branch-icon.big { width: 70px; height: 70px; font-size: 32px; }
.branch-card strong { font-size: 15px; }
.branch-card small { display: inline-block; margin-left: 7px; color: #c3b9e4; font-size: 11px; }
.branch-card p { margin: 7px 0 0; }
.announcement-list, .resource-list { display: flex; flex-direction: column; gap: 10px; }
.announcement, .resource { display: flex; justify-content: space-between; gap: 20px; padding: 18px; }
.announcement h3, .resource h3 { margin: 8px 0 4px; }
.announcement time { color: #c3b9e4; font-size: 12px; }
.tag {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid rgba(200, 255, 61, .25);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(200, 255, 61, .075);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.empty {
  padding: 22px;
  border: 1px dashed #7968b1;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(33, 19, 79, .45);
}
.page-header { padding: 58px 0 24px; }
.page-header h1 { font-size: 48px; }
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.select-wrap { display: flex; min-width: 280px; flex-direction: column; gap: 8px; }
.select-wrap span { color: var(--muted); font-size: 12px; }
.select-wrap select, .search-box input, .form input, .form textarea, .form select, .simple-tool input {
  width: 100%;
  border: 1px solid #6854a5;
  border-radius: 11px;
  outline: 0;
  color: var(--text);
  background: rgba(34, 20, 81, .88);
  padding: 12px 13px;
}
input::placeholder, textarea::placeholder { color: #a99ccf; opacity: 1; }
select option { color: var(--text); background: var(--canvas-deep); }
.search-box {
  display: flex;
  min-width: 320px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #6854a5;
  border-radius: 11px;
  color: var(--accent);
  background: rgba(34, 20, 81, .88);
}
.search-box input { border: 0; padding-left: 2px; background: transparent; }
.search-box.big { padding-left: 12px; }
.branch-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 20px;
  padding: 18px;
  border: 1px solid rgba(200, 255, 61, .22);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(200, 255, 61, .09), rgba(67, 45, 136, .76));
}
.branch-hero h2 { margin: 7px 0 4px; }
.branch-hero p { margin: 0; color: var(--muted); }
.subject-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.subject-card { padding: 16px; }
.subject-top { display: flex; align-items: center; justify-content: space-between; color: var(--accent); }
.subject-card h3 { margin: 16px 0; font-size: 15px; }
.subject-links { display: flex; flex-wrap: wrap; gap: 6px; }
.subject-links a {
  padding: 6px 7px;
  border: 1px solid rgba(220, 211, 247, .2);
  border-radius: 8px;
  color: #ded7f4;
  font-size: 11px;
}
.subject-links a:hover { border-color: var(--accent); color: var(--accent); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool-card { display: flex; gap: 13px; padding: 16px; transition: transform .2s ease, border-color .2s ease; }
.tool-card strong { display: block; font-size: 15px; }
.tool-card p { margin: 5px 0; }
.tool-card small { color: #c3b9e4; font-size: 11px; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.panel { padding: 22px; }
.panel h2 { margin: 10px 0 16px; }
.form { display: flex; flex-direction: column; gap: 13px; }
.form label { display: flex; flex-direction: column; gap: 7px; color: #ded7f4; font-size: 12px; }
.form textarea { min-height: 110px; resize: vertical; }
.form.two { display: grid; grid-template-columns: 1fr 1fr; }
.span-2 { grid-column: span 2; }
.notice, .error { margin: 12px 0; padding: 11px 13px; border-radius: 12px; font-size: 13px; }
.notice { border: 1px solid rgba(200, 255, 61, .35); color: #e6ffc0; background: rgba(112, 148, 33, .18); }
.error { border: 1px solid #a0476b; color: #ffd0da; background: rgba(113, 28, 66, .36); }
.muted { color: #c3b9e4; font-size: 13px; }
.muted a { color: var(--accent); }
.skill-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.skill-card { display: flex; align-items: center; gap: 13px; padding: 14px; }
.skill-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(200, 255, 61, .22);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(200, 255, 61, .1);
}
.skill-card .btn { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px;
  border: 1px solid rgba(220, 211, 247, .15);
  border-radius: 16px;
  background: rgba(67, 45, 136, .7);
}
.stat span { font-size: 20px; }
.stat strong { font-size: 25px; color: var(--accent); }
.stat small { color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-wrap { display: grid; min-height: calc(100vh - 150px); place-items: center; padding: 48px 18px; }
.auth-card {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid rgba(220, 211, 247, .2);
  border-radius: 24px;
  background: linear-gradient(150deg, #432d88, #291a60);
  box-shadow: 0 30px 90px rgba(18, 9, 47, .28);
}
.auth-card.wide { width: min(720px, 100%); }
.auth-card h1 { margin: 11px 0 7px; font-size: 33px; }
.auth-card > p { color: var(--muted); line-height: 1.5; }
.auth-card .muted { margin-top: 16px; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .25; }
.tool-workspace { max-width: 850px; margin: 0 auto; }
.simple-tool {
  padding: 24px;
  border: 1px solid rgba(220, 211, 247, .17);
  border-radius: 22px;
  background: linear-gradient(145deg, #432d88, #291a60);
}
.simple-tool h2 { margin-top: 0; }
.three-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.three-inputs label { display: flex; flex-direction: column; gap: 7px; color: #ded7f4; font-size: 12px; }
.result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(200, 255, 61, .25);
  border-radius: 16px;
  background: rgba(200, 255, 61, .075);
}
.result span { color: var(--muted); }
.result strong { color: var(--accent); font-size: 24px; }
.logic-inputs { display: flex; gap: 20px; margin: 18px 0; }
.logic-results { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.logic-results span {
  padding: 13px;
  border: 1px solid rgba(220, 211, 247, .16);
  border-radius: 12px;
  color: #e4def5;
  background: rgba(255, 255, 255, .045);
  text-align: center;
}
.cmd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.cmd {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 211, 247, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
}
.cmd code { color: var(--accent); }
.cmd span { color: var(--muted); font-size: 12px; }
footer { margin-top: auto; padding: 28px; border-top: 1px solid rgba(226, 218, 255, .12); color: #b7acd9; font-size: 12px; text-align: center; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 52px; }
  .feature-grid, .branch-grid, .tool-grid { grid-template-columns: 1fr 1fr; }
  .subject-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .split, .admin-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 320px; }
}
@media (max-width: 720px) {
  .topbar { height: 70px; padding: 0 18px; }
  .menu-btn { display: block; }
  .nav {
    position: absolute;
    top: 70px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #291a60;
    box-shadow: 0 20px 40px rgba(18, 9, 47, .35);
  }
  .nav.open { display: flex; }
  .nav a, .nav-btn { justify-content: center; }
  .container { width: min(100% - 32px, 1160px); }
  .hero { gap: 32px; padding-top: 54px; }
  .hero h1 { font-size: clamp(40px, 11vw, 52px); letter-spacing: -1.8px; }
  .hero-actions { flex-direction: column; }
  .feature-grid, .branch-grid, .tool-grid, .subject-grid, .stats, .logic-results, .three-inputs, .form.two { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .select-wrap, .search-box { min-width: 0; }
  .page-header { padding-top: 44px; }
  .page-header h1 { font-size: 38px; }
  .mini-dashboard { width: 88%; padding: 19px; }
  .announcement, .resource { flex-direction: column; }
  .skill-card { align-items: flex-start; }
  .skill-card .btn { margin-left: 0; }
  .cmd-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
}

.nav a, .nav-btn { font-size: 13px; font-weight: 650; }
.menu-btn { padding: 8px 0 8px 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-intro {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 218, 255, .13);
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(226, 218, 255, .035) 50%, transparent 50.05%),
    linear-gradient(0deg, rgba(33, 19, 79, .15), rgba(67, 45, 136, .2));
}
.home-intro::before {
  position: absolute;
  top: 44px;
  right: max(32px, calc((100vw - 1240px) / 2));
  color: rgba(200, 255, 61, .12);
  content: "CZ / 01";
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.home-intro .hero { min-height: 590px; padding: 92px 0 84px; gap: 8%; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow-mark { width: 22px; height: 2px; background: var(--accent); }
.hero h1 { margin: 24px 0 22px; font-size: clamp(62px, 7vw, 94px); letter-spacing: -.065em; line-height: .92; }
.hero h1 em { color: var(--accent); }
.hero-copy > p { max-width: 530px; margin: 0; font-size: 16px; }
.hero-actions { margin: 30px 0 26px; }
.hero-actions .btn { min-height: 48px; padding-inline: 18px; border-radius: 8px; font-size: 13px; }
.button-arrow { margin-left: 16px; font-size: 18px; line-height: 1; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #b9addd; font-size: 11px; }
.hero-meta span + span::before { margin-right: 20px; color: var(--accent); content: "/"; }
.hero-card {
  display: block;
  min-height: 0;
  padding: 26px;
  border: 1px solid rgba(222, 215, 244, .2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(74, 51, 148, .88), rgba(38, 23, 88, .96));
  box-shadow: 0 24px 70px rgba(17, 9, 44, .24);
}
.hero-card::after {
  position: absolute;
  top: 0;
  right: 26px;
  width: 54px;
  height: 3px;
  background: var(--accent);
  content: "";
}
.hero-card-head { display: flex; justify-content: space-between; gap: 12px; color: #c7bee5; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.status-label { color: var(--accent); }
.hero-card h2 { max-width: 330px; margin: 32px 0 8px; font-size: 28px; letter-spacing: -.045em; line-height: 1.1; }
.hero-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dashboard-list { margin-top: 26px; border-top: 1px solid rgba(222, 215, 244, .15); }
.dashboard-list a {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(222, 215, 244, .15);
}
.dashboard-index, .module-number { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.dashboard-list strong, .dashboard-list small { display: block; }
.dashboard-list strong { font-size: 12px; }
.dashboard-list small { margin-top: 4px; color: #b9addd; font-size: 10px; }
.text-arrow { color: var(--accent); font-size: 15px; transition: transform .18s ease; }
.dashboard-list a:hover .text-arrow { transform: translate(2px, -2px); }
.hero-card-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 21px; color: #b9addd; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.module-section { padding-top: 76px; padding-bottom: 82px; }
.module-section .section-head { margin-bottom: 28px; }
.module-section .section h2, .module-section h2, .branch-section h2, .announcement-section h2 { font-size: 42px; letter-spacing: -.055em; }
.section-intro { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.module-list { border-top: 1px solid rgba(226, 218, 255, .19); }
.module-row {
  display: grid;
  grid-template-columns: 70px 1fr 110px 20px;
  align-items: center;
  gap: 18px;
  padding: 22px 16px;
  border-bottom: 1px solid rgba(226, 218, 255, .19);
  transition: background .2s ease, padding .2s ease;
}
.module-row:hover { padding-inline: 22px; background: rgba(200, 255, 61, .055); }
.module-number { font-size: 12px; }
.module-main strong, .module-main small { display: block; }
.module-main strong { font-size: 17px; letter-spacing: -.02em; }
.module-main small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.module-detail { color: #a99ccc; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.module-arrow { color: var(--accent); font-size: 18px; transition: transform .18s ease; }
.module-row:hover .module-arrow { transform: translate(3px, -3px); }
.branch-section { border-block: 1px solid rgba(226, 218, 255, .12); background: rgba(33, 19, 79, .35); }
.branch-section .section { padding-top: 72px; padding-bottom: 76px; }
.branch-section .section-head { margin-bottom: 26px; }
.branch-grid { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(226, 218, 255, .15); border-left: 1px solid rgba(226, 218, 255, .15); }
.branch-card {
  position: relative;
  min-height: 152px;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 0;
  border-right: 1px solid rgba(226, 218, 255, .15);
  border-bottom: 1px solid rgba(226, 218, 255, .15);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background .2s ease;
}
.branch-card:hover { transform: none; border-color: rgba(226, 218, 255, .15); background: rgba(200, 255, 61, .06); }
.branch-index { min-width: 26px; padding-top: 2px; color: #9486bf; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.branch-card > div { padding-right: 20px; }
.branch-code { display: block; margin-bottom: 8px; color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.branch-card strong { display: block; font-size: 15px; }
.branch-card p { max-width: 245px; margin: 8px 0 0; font-size: 11px; }
.branch-arrow { position: absolute; top: 18px; right: 18px; color: #b9addd; font-size: 14px; }
.branch-card:hover .branch-arrow { color: var(--accent); }
.announcement-section { padding-top: 76px; padding-bottom: 88px; }
.announcement-section .section-head { margin-bottom: 24px; }
.announcement { border-radius: 10px; }
.announcement-list .tag { border-radius: 4px; }
.search-label { flex: 0 0 auto; color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.search-box { gap: 10px; }
.branch-code-large {
  min-width: 94px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.06em;
}
.branch-hero { border-radius: 10px; }
.subject-card { border-radius: 10px; }
.subject-index { color: var(--accent); font-size: 11px; font-weight: 850; }
.tool-card { position: relative; display: block; min-height: 140px; padding: 19px; border-radius: 10px; }
.tool-card > div:last-child { margin-top: 18px; }
.tool-category { color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.tool-card small { display: inline-block; margin-top: 6px; color: var(--accent); }
.skill-card { border-radius: 10px; }
.skill-card h3 { margin: 8px 0 3px; }
.stat { border-radius: 10px; }
.panel, .auth-card, .simple-tool { border-radius: 12px; }
.feature-icon, .skill-avatar { display: none; }
.stats .stat > span { display: none; }
.feature-grid { gap: 0; border-top: 1px solid rgba(226, 218, 255, .15); border-left: 1px solid rgba(226, 218, 255, .15); }
.feature-card { border: 0; border-right: 1px solid rgba(226, 218, 255, .15); border-bottom: 1px solid rgba(226, 218, 255, .15); border-radius: 0; background: transparent; box-shadow: none; }
.feature-card:hover { transform: none; border-color: rgba(226, 218, 255, .15); background: rgba(200, 255, 61, .06); }
.feature-card h3 { margin: 0 0 9px; }
.feature-card p { margin: 0; }
.feature-card span { margin-top: 18px; }

@media (max-width: 960px) {
  .home-intro .hero { min-height: 0; padding: 78px 0; }
  .home-intro::before { right: 22px; }
  .branch-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .home-intro .hero { gap: 38px; padding: 74px 0 58px; }
  .hero h1 { font-size: clamp(58px, 14vw, 78px); }
  .home-intro::before { top: 20px; right: 18px; font-size: 9px; }
  .hero-card { padding: 22px; }
  .hero-card h2 { font-size: 25px; }
  .hero-meta { gap: 8px 12px; }
  .hero-meta span + span::before { margin-right: 12px; }
  .module-section, .announcement-section { padding-block: 54px; }
  .module-section .section h2, .module-section h2, .branch-section h2, .announcement-section h2 { font-size: 34px; }
  .module-section .section-head, .branch-section .section-head { align-items: flex-start; }
  .section-intro { display: none; }
  .module-row { grid-template-columns: 34px 1fr 18px; gap: 10px; padding: 18px 8px; }
  .module-row:hover { padding-inline: 12px; }
  .module-detail { display: none; }
  .module-main strong { font-size: 15px; }
  .module-main small { font-size: 11px; line-height: 1.45; }
  .branch-section .section { padding-block: 54px; }
  .branch-grid { grid-template-columns: 1fr; }
  .branch-card { min-height: 130px; }
  .branch-card > div { padding-right: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
}

:root {
  --canvas: #f5f3ec;
  --canvas-deep: #ece9df;
  --panel: #fffdf7;
  --panel-raised: #eeebf5;
  --line: #d9d5ca;
  --muted: #625d6b;
  --text: #2d1b69;
  --accent: #2d1b69;
  --accent-strong: #45317f;
  --accent-ink: #2d1b69;
  color: var(--text);
  background: var(--canvas);
  color-scheme: light;
}
html, body, #root { background: var(--canvas); }
body {
  color: var(--text);
  background:
    radial-gradient(ellipse at 12% 2%, rgba(200, 255, 61, .15), transparent 26rem),
    var(--canvas);
}
.topbar {
  position: relative;
  border-bottom: 1px solid #dedacf;
  background: rgba(245, 243, 236, .97);
  backdrop-filter: none;
}
.brand strong { color: var(--text); }
.brand span { color: #6f6877; }
.nav a, .nav-btn { color: #534b61; }
.nav a.active, .nav a:hover, .nav-btn:hover {
  border-color: #d8d2c5;
  color: var(--text);
  background: #ebe8df;
}
.menu-btn { color: var(--text); }
.eyebrow { color: #51427c; }
.home-intro {
  border-bottom-color: #dedacf;
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(45, 27, 105, .035) 50%, transparent 50.05%),
    transparent;
}
.home-intro::before { color: #766d80; }
.hero h1 { color: #33234f; }
.hero h1 em {
  position: relative;
  color: #33234f;
  white-space: nowrap;
}
.hero h1 em::after {
  position: absolute;
  right: 0;
  bottom: .02em;
  left: 0;
  z-index: -1;
  height: .28em;
  background: #c8ff3d;
  content: "";
}
.hero p, .page-header p { color: #625d6b; }
.btn { border-color: #d4d0c6; color: var(--text); background: #fffdf7; }
.btn.primary {
  border-color: #c8ff3d;
  color: #2d1b69;
  background: #c8ff3d;
  box-shadow: none;
}
.btn.primary:hover { background: #bbed32; box-shadow: none; }
.btn.ghost { border-color: #d4d0c6; background: transparent; }
.hero-meta { color: #6f6877; }
.hero-meta span + span::before { color: #7b718c; }
.hero-card {
  overflow: visible;
  border: 0;
  border-left: 2px solid #c8ff3d;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero-card::after { display: none; }
.hero-card-head { color: #665d72; }
.status-label { color: #51427c; }
.hero-card h2 { color: #33234f; }
.hero-card > p { color: #625d6b; }
.dashboard-list { border-top-color: #d8d3c8; }
.dashboard-list a { border-bottom-color: #d8d3c8; }
.dashboard-index, .module-number { color: #51427c; }
.dashboard-list small { color: #6f6877; }
.text-arrow { color: #51427c; }
.hero-card-foot { color: #766d80; }
.module-section .section h2, .module-section h2, .branch-section h2, .announcement-section h2,
.section h2, .page-header h1 { color: #33234f; }
.module-list { border-top-color: #d8d3c8; }
.module-row { border-bottom-color: #d8d3c8; }
.module-row:hover { background: rgba(200, 255, 61, .13); }
.module-main small { color: #625d6b; }
.module-detail { color: #766d80; }
.module-arrow { color: #51427c; }
.section-intro { color: #625d6b; }
.branch-section {
  border-block-color: #dedacf;
  background: #eeece4;
}
.branch-grid { border-color: #d8d3c8; }
.branch-card {
  border-right-color: #d8d3c8;
  border-bottom-color: #d8d3c8;
  color: #33234f;
}
.branch-card:hover {
  border-color: #d8d3c8;
  background: rgba(200, 255, 61, .18);
}
.branch-index, .branch-card p, .branch-arrow { color: #6f6877; }
.branch-code { color: #51427c; }
.branch-card:hover .branch-arrow { color: #2d1b69; }
.announcement, .resource, .skill-card, .panel, .subject-card, .tool-card, .auth-card, .simple-tool, .stat {
  border-color: #dedacf;
  color: #33234f;
  background: #fffdf7;
  box-shadow: none;
}
.announcement p, .resource p, .skill-card p, .feature-card p, .branch-card p, .tool-card p { color: #625d6b; }
.announcement time, .resource small { color: #6f6877; }
.tag { border-color: #ddd8ca; color: #51427c; background: #f2f0e9; }
.empty { border-color: #c9c3b7; color: #625d6b; background: #fffdf7; }
.text-link, .muted a { color: #51427c; }
.select-wrap span, .form label, .three-inputs label { color: #534b61; }
.select-wrap select, .search-box input, .form input, .form textarea, .form select, .simple-tool input, .search-box {
  border-color: #d4d0c6;
  color: #33234f;
  background: #fffdf7;
}
.search-box { color: #51427c; }
input::placeholder, textarea::placeholder { color: #898291; }
select option { color: #33234f; background: #fffdf7; }
.subject-links a { border-color: #dedacf; color: #534b61; }
.subject-links a:hover { border-color: #51427c; color: #2d1b69; }
.tool-card:hover { border-color: #c2bcad; background: #f1efe7; }
.tool-card small, .tool-category { color: #51427c; }
.branch-hero { border-color: #d9d5ca; background: #eeece4; }
.branch-hero p { color: #625d6b; }
.branch-code-large, .subject-index { color: #51427c; }
.notice { border-color: #b5c47e; color: #34451a; background: #f0f6df; }
.error { border-color: #d6a6ad; color: #773445; background: #fbebed; }
.muted { color: #6f6877; }
.skill-avatar { color: #51427c; background: #f2f0e9; }
.stat strong { color: #33234f; }
.stat small { color: #625d6b; }
.auth-card h1, .auth-card .muted, .auth-card > p { color: #33234f; }
.result { border-color: #d8d3c8; background: #f1efe7; }
.result span, .cmd span { color: #625d6b; }
.result strong, .cmd code { color: #51427c; }
.logic-results span, .cmd { border-color: #dedacf; color: #534b61; background: #fffdf7; }
footer { border-top-color: #dedacf; color: #756e7c; }

@media (max-width: 720px) {
  .topbar { background: rgba(245, 243, 236, .97); }
  .nav { border-color: #d9d5ca; background: #fffdf7; box-shadow: 0 16px 36px rgba(45, 27, 105, .1); }
  .hero h1 em { white-space: normal; }
  .hero-card { padding: 0 0 0 18px; }
}

/* CampuZHub editorial refresh */
.topbar {
  position: sticky;
  height: 74px;
  padding-inline: max(28px, calc((100vw - 1280px) / 2));
  border-bottom-color: rgba(45, 27, 105, .12);
  background: rgba(245, 243, 236, .9);
  backdrop-filter: blur(18px);
}
.nav { gap: 3px; }
.nav a, .nav-btn { padding-inline: 11px; }
main { flex: 1; }
.container { width: min(1220px, calc(100% - 64px)); }
.home-intro {
  isolation: isolate;
  border-bottom: 1px solid #dedacf;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(45, 27, 105, .07) 50%, transparent calc(50% + .5px)),
    radial-gradient(ellipse at 80% 30%, rgba(200, 255, 61, .16), transparent 26rem),
    #f5f3ec;
}
.home-intro::before { top: 32px; color: #6f6877; }
.home-intro .hero {
  min-height: 620px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr);
  gap: clamp(42px, 8vw, 112px);
  padding-block: 92px;
}
.hero h1 {
  max-width: 760px;
  margin-top: 25px;
  font-size: clamp(58px, 7.5vw, 96px);
  line-height: .96;
  letter-spacing: -.075em;
}
.hero h1 em { white-space: nowrap; }
.hero-copy > p { max-width: 500px; font-size: 16px; line-height: 1.8; }
.hero-actions { align-items: center; gap: 11px; margin-top: 32px; }
.hero-actions .btn { min-height: 50px; border-radius: 10px; }
.hero-meta { gap: 8px 15px; font-size: 10px; }
.hero-meta span + span::before { margin-right: 15px; }
.home-intro .hero-card {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 22px;
  border: 1px solid #493680;
  border-radius: 22px;
  color: #fffdf7;
  background:
    radial-gradient(ellipse at 90% 4%, rgba(200, 255, 61, .18), transparent 15rem),
    linear-gradient(145deg, #382579, #2d1b69 65%, #241656);
  box-shadow: 0 26px 60px rgba(45, 27, 105, .17);
}
.lab-window { display: flex; flex: 1; flex-direction: column; }
.lab-window-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 1px 18px;
  border-bottom: 1px solid rgba(255, 253, 247, .17);
  color: #d5cfee;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}
.lab-window-top span:last-child { color: #c8ff3d; }
.lab-code {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px 8px;
  padding: 28px 10px 24px;
  color: #a99ccc;
  font: 12px/1.6 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
.lab-code code { color: #fffdf7; }
.lab-code code:last-child { color: #d8ff8f; }
.lab-window-output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 253, 247, .14);
  border-radius: 12px;
  background: rgba(20, 13, 54, .48);
}
.lab-window-output span { color: #c6bddf; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.lab-window-output strong { color: #c8ff3d; font: 12px "Cascadia Code", Consolas, monospace; }
.lab-window-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 2px 1px;
  color: #fffdf7;
  font-size: 12px;
  font-weight: 700;
}
.lab-window-link span { color: #c8ff3d; font-size: 17px; transition: transform .2s ease; }
.lab-window-link:hover span { transform: translate(3px, -3px); }
.hero-card-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 253, 247, .17);
  color: #d5cfee;
  font-size: 9px;
  letter-spacing: .07em;
}
.hero-card-caption span:last-child { color: #c8ff3d; }
.section { padding-block: 66px; }
.section-head { align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.section-head h2, .section h2 { letter-spacing: -.055em; }
.module-section .section-head { margin-bottom: 34px; }
.module-list { border-top-color: #d3cebf; }
.module-row {
  grid-template-columns: 56px minmax(0, 1fr) 100px 20px;
  gap: 15px;
  padding: 22px 14px;
  border-bottom-color: #d3cebf;
}
.module-row:hover { padding-inline: 20px; }
.module-main strong { font-size: 18px; }
.module-main small { max-width: 600px; line-height: 1.55; }
.module-detail { color: #51427c; }
.module-arrow { font-size: 21px; }
.explore-section { padding-block: 70px 92px; }
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 0; gap: 13px; }
.explore-card {
  position: relative;
  display: flex;
  min-height: 248px;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px;
  overflow: hidden;
  border: 1px solid #dedacf;
  border-radius: 17px;
  color: #33234f;
  background: #fffdf7;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.explore-card:hover { transform: translateY(-4px); border-color: #aea4c6; box-shadow: 0 18px 35px rgba(45, 27, 105, .09); }
.explore-card-featured {
  border-color: #382579;
  color: #fffdf7;
  background:
    radial-gradient(circle at 90% 4%, rgba(200, 255, 61, .2), transparent 8rem),
    #2d1b69;
}
.explore-index { color: #51427c; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.explore-card-featured .explore-index { color: #c8ff3d; }
.explore-count { margin-top: 27px; color: #736c79; font-size: 10px; }
.explore-card-featured .explore-count { color: #d5cfee; }
.explore-card strong { margin-top: 9px; font-size: 20px; letter-spacing: -.04em; }
.explore-card p { margin: 9px 0 16px; color: #625d6b; font-size: 12px; line-height: 1.7; }
.explore-card-featured p { color: #d5cfee; }
.explore-link { margin-top: auto; color: #51427c; font-size: 11px; font-weight: 750; }
.explore-card-featured .explore-link { color: #c8ff3d; }
.branch-section {
  border: 0;
  color: #fffdf7;
  background:
    radial-gradient(ellipse at 92% 10%, rgba(200, 255, 61, .09), transparent 25rem),
    #2d1b69;
}
.branch-section .section { padding-block: 80px 90px; }
.branch-section .section-head h2 { color: #fffdf7; }
.branch-section .eyebrow { color: #c8ff3d; }
.branch-section .text-link { color: #c8ff3d; }
.branch-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 0;
}
.branch-card, .branch-card:hover {
  min-height: 172px;
  padding: 22px;
  border: 1px solid rgba(255, 253, 247, .16);
  border-radius: 16px;
  color: #fffdf7;
  background: rgba(255, 253, 247, .045);
}
.branch-card:hover { transform: translateY(-3px); border-color: rgba(200, 255, 61, .6); background: rgba(255, 253, 247, .075); }
.branch-index, .branch-arrow { color: #c8bfdc; }
.branch-code { color: #c8ff3d; }
.branch-card strong { font-size: 16px; }
.branch-card p { color: #d0c9e2; line-height: 1.65; }
.branch-card:hover .branch-arrow { color: #c8ff3d; }
.announcement-section { padding-block: 80px 96px; }
.announcement-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.announcement, .resource, .skill-card, .panel, .subject-card, .tool-card, .stat {
  border-color: #dedacf;
  border-radius: 16px;
  background: #fffdf7;
  box-shadow: 0 8px 28px rgba(45, 27, 105, .035);
}
.announcement { min-height: 140px; padding: 20px; }
.announcement h3, .resource h3 { color: #33234f; }
.announcement p, .resource p, .skill-card p, .tool-card p { color: #625d6b; }
.tag { border-radius: 5px; }
.empty { border-radius: 14px; }
.page-header {
  position: relative;
  width: min(1220px, calc(100% - 64px));
  margin-inline: auto;
  padding: 68px 0 30px;
}
.page-header::after {
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 26px;
  background: #c8ff3d;
  content: "";
}
.page-header h1 { max-width: 850px; margin-top: 13px; font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -.07em; }
.page-header p { max-width: 680px; margin: 15px 0 0; }
.toolbar { gap: 16px; margin-bottom: 26px; }
.search-box, .select-wrap select, .form input, .form textarea, .form select, .simple-tool input {
  border-radius: 10px;
}
.branch-hero { padding: 24px; border-radius: 16px; }
.branch-code-large { font-size: 34px; }
.subject-grid { gap: 13px; }
.subject-card { min-height: 155px; padding: 18px; border-radius: 14px; }
.subject-card h3 { font-size: 17px; }
.subject-links a { border-radius: 6px; }
.tool-grid { gap: 13px; }
.tool-card { min-height: 176px; padding: 20px; border-radius: 14px; }
.tool-card strong { font-size: 17px; }
.tool-card p { line-height: 1.65; }
.split { gap: 18px; }
.panel { padding: 25px; }
.skill-card { padding: 17px; }
.stats { gap: 12px; }
.stat { min-height: 94px; padding: 18px; }
.stat strong { font-size: 29px; }
.simple-tool { padding: 28px; border: 1px solid #dedacf; border-radius: 17px; background: #fffdf7; }
.result { border-radius: 12px; }
.compiler-page { display: grid; gap: 22px; }
.compiler-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 27px;
  border: 1px solid #d8cef1;
  border-radius: 18px;
  color: #33234f;
  background:
    radial-gradient(ellipse at 85% 5%, rgba(200, 255, 61, .24), transparent 17rem),
    #e8deff;
}
.compiler-intro .eyebrow { color: #51427c; }
.compiler-intro h2 { margin: 14px 0 10px; color: #33234f; font-size: clamp(34px, 5vw, 54px); line-height: .98; letter-spacing: -.065em; }
.compiler-intro h2 em { color: #5b3df5; font-style: normal; }
.compiler-intro p { max-width: 490px; margin: 0; color: #514b5c; font-size: 13px; line-height: 1.65; }
.compiler-language-count { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; color: #514b5c; font-size: 10px; }
.compiler-language-count strong { color: #33234f; font-size: 42px; letter-spacing: -.07em; }
.compiler-panel { overflow: hidden; border: 1px solid #dedacf; border-radius: 17px; background: #fffdf7; box-shadow: 0 12px 32px rgba(45, 27, 105, .06); }
.compiler-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 17px;
  border-bottom: 1px solid #ded7ed;
  color: #33234f;
  background: #f1ecfb;
}
.compiler-language { display: flex; align-items: center; gap: 12px; color: #514b5c; font-size: 11px; }
.compiler-language select {
  min-width: 148px;
  padding: 9px 30px 9px 11px;
  border: 1px solid #d8d2e5;
  border-radius: 8px;
  color: #33234f;
  background: #fffdf7;
}
.compiler-language select option { color: #33234f; background: #fffdf7; }
.compiler-toolbar-actions { display: flex; align-items: center; gap: 16px; }
.compiler-file { color: #514b5c; font: 11px "Cascadia Code", Consolas, monospace; }
.compiler-reset { padding: 7px 0; border: 0; color: #51427c; background: transparent; font-size: 10px; cursor: pointer; }
.compiler-reset:hover { color: #2d1b69; }
.compiler-run { min-width: 116px; min-height: 40px; border-radius: 8px; }
.compiler-editor { display: grid; min-height: 330px; grid-template-columns: 48px minmax(0, 1fr); background: #21194b; }
.compiler-gutter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  overflow: hidden;
  padding: 20px 12px;
  border-right: 1px solid rgba(255, 253, 247, .1);
  color: #8e84ae;
  font: 12px/1.7 "Cascadia Code", Consolas, monospace;
  user-select: none;
}
.compiler-editor textarea {
  width: 100%;
  min-height: 330px;
  padding: 20px;
  border: 0;
  outline: 0;
  resize: vertical;
  color: #f4f0ff;
  background: transparent;
  font: 13px/1.7 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  tab-size: 4;
  white-space: pre;
}
.compiler-editor textarea:focus-visible { outline: 2px solid #c8ff3d; outline-offset: -3px; }
.compiler-lower { display: grid; grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr); border-top: 1px solid #dedacf; }
.compiler-input { display: flex; min-height: 190px; flex-direction: column; gap: 11px; padding: 18px; color: #534b61; font-size: 11px; font-weight: 750; }
.compiler-input-hint { color: #726a7a; font-size: 10px; font-weight: 450; }
.compiler-input textarea {
  width: 100%;
  flex: 1;
  min-height: 118px;
  padding: 11px;
  border: 1px solid #dedacf;
  border-radius: 9px;
  outline-color: #51427c;
  color: #33234f;
  background: #f8f6ef;
  font: 12px/1.6 "Cascadia Code", Consolas, monospace;
  resize: vertical;
}
.compiler-live-input { gap: 12px; }
.compiler-live-input > strong { color: #33234f; font-size: 11px; }
.compiler-live-console {
  display: flex;
  min-height: 118px;
  flex: 1;
  align-items: center;
  padding: 12px;
  border: 1px solid #d9d2e7;
  border-radius: 9px;
  color: #726a7a;
  background: #f8f6ef;
  font: 11px/1.6 "Cascadia Code", Consolas, monospace;
}
.compiler-live-console form { width: 100%; }
.compiler-live-prompt { display: block; margin-bottom: 8px; color: #33234f; overflow-wrap: anywhere; }
.compiler-live-response-row { display: flex; gap: 8px; }
.compiler-live-response-row input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d9d2e7;
  border-radius: 7px;
  outline-color: #5b3df5;
  color: #33234f;
  background: #fffdf7;
  font: inherit;
}
.compiler-send { flex: 0 0 auto; padding: 8px 12px; font-size: 11px; }
.compiler-stop {
  min-width: 92px;
  min-height: 40px;
  border-color: #d6a6ad;
  color: #773445;
  background: #fbebed;
}
.compiler-stop:hover { border-color: #b95d70; background: #f7dfe3; }
.compiler-output { min-width: 0; min-height: 190px; border-left: 1px solid #dedacf; background: #f8f6ef; }
.compiler-output.has-error .compiler-output-head span { color: #92384b; }
.compiler-output-head { display: flex; justify-content: space-between; gap: 10px; padding: 18px 18px 12px; color: #33234f; font-size: 11px; }
.compiler-output-head span { color: #726a7a; font-size: 10px; font-weight: 500; }
.compiler-output pre {
  max-height: 280px;
  min-height: 120px;
  overflow: auto;
  margin: 0;
  padding: 0 18px 18px;
  color: #443d4f;
  font: 12px/1.7 "Cascadia Code", Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.compiler-footnote { display: flex; justify-content: space-between; gap: 16px; padding: 12px 17px; border-top: 1px solid #dedacf; color: #726a7a; font-size: 9px; line-height: 1.55; }
.idea-generator { display: grid; gap: 17px; }
.idea-controls { display: flex; align-items: flex-end; gap: 13px; padding: 18px; border: 1px solid #dedacf; border-radius: 15px; background: #fffdf7; }
.idea-controls label { display: flex; min-width: 160px; flex-direction: column; gap: 7px; color: #534b61; font-size: 11px; font-weight: 700; }
.idea-controls select { min-height: 43px; padding: 10px; border: 1px solid #d4d0c6; border-radius: 9px; color: #33234f; background: #fffdf7; }
.idea-controls .btn { min-height: 43px; margin-left: auto; }
.idea-card { padding: clamp(22px, 4vw, 38px); border: 1px solid #dedacf; border-radius: 18px; background: #fffdf7; box-shadow: 0 12px 32px rgba(45, 27, 105, .05); }
.idea-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #6f6877; font-size: 11px; }
.idea-card h2 { max-width: 720px; margin: 24px 0 10px; font-size: clamp(27px, 4vw, 42px); letter-spacing: -.06em; }
.idea-card > p { max-width: 730px; color: #625d6b; font-size: 14px; line-height: 1.75; }
.idea-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.idea-details > div { padding: 18px; border: 1px solid #e5e1d7; border-radius: 12px; background: #f8f6ef; }
.idea-details h3 { margin: 0 0 12px; color: #51427c; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.idea-details ul { display: grid; gap: 9px; margin: 0; padding-left: 18px; color: #4a4352; font-size: 12px; }
.idea-footnote { margin: 20px 0 0; font-size: 11px !important; }
footer { padding-block: 24px; }

@media (max-width: 1000px) {
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-intro .hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 40px; }
  .hero h1 { font-size: clamp(56px, 7vw, 76px); }
}
@media (max-width: 820px) {
  .topbar { height: 68px; padding-inline: 22px; }
  .menu-btn { display: block; }
  .nav {
    position: absolute;
    top: 68px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid #d9d5ca;
    border-radius: 14px;
    background: #fffdf7;
    box-shadow: 0 16px 36px rgba(45, 27, 105, .1);
  }
  .nav.open { display: flex; }
  .nav a, .nav-btn { justify-content: center; }
  .home-intro .hero { min-height: 0; grid-template-columns: 1fr; padding-block: 70px; }
  .home-intro .hero-card { width: min(100%, 540px); }
  .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .container, .page-header { width: calc(100% - 36px); }
  .home-intro { background: radial-gradient(ellipse at 95% 6%, rgba(200, 255, 61, .16), transparent 16rem), #f5f3ec; }
  .home-intro .hero { gap: 38px; padding-block: 58px; }
  .hero h1 { font-size: clamp(45px, 11.5vw, 67px); }
  .hero h1 em { white-space: normal; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-meta { line-height: 1.7; }
  .hero-card-caption { font-size: 8px; }
  .section { padding-block: 48px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .module-section .section-head { margin-bottom: 22px; }
  .module-row { grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 8px; padding: 17px 4px; }
  .module-row:hover { padding-inline: 8px; }
  .module-detail { display: none; }
  .module-main strong { font-size: 15px; }
  .explore-grid, .branch-grid, .announcement-list, .idea-details { grid-template-columns: 1fr; }
  .explore-card { min-height: 210px; }
  .branch-section .section { padding-block: 54px; }
  .branch-card { min-height: 145px; }
  .announcement-section { padding-block: 54px; }
  .page-header { padding-top: 48px; }
  .page-header h1 { font-size: clamp(36px, 10vw, 52px); }
  .toolbar, .resource, .announcement { align-items: stretch; }
  .compiler-intro { align-items: flex-start; flex-direction: column; padding: 22px; }
  .compiler-language-count { align-items: flex-start; }
  .compiler-language-count strong { font-size: 30px; }
  .compiler-toolbar { align-items: flex-start; flex-direction: column; }
  .compiler-toolbar-actions { width: 100%; justify-content: space-between; }
  .compiler-editor, .compiler-editor textarea { min-height: 280px; }
  .compiler-editor textarea { padding: 16px 12px; font-size: 12px; }
  .compiler-gutter { padding: 16px 8px; font-size: 11px; }
  .compiler-lower { grid-template-columns: 1fr; }
  .compiler-output { border-top: 1px solid #dedacf; border-left: 0; }
  .compiler-footnote { flex-direction: column; gap: 6px; }
  .idea-controls { align-items: stretch; flex-direction: column; }
  .idea-controls label { min-width: 0; }
  .idea-controls .btn { margin: 2px 0 0; }
}

/* Crisp CampuZHub surfaces with lively, reduced-motion-aware interactions. */
.topbar {
  border-bottom-color: #dedacf;
  background: #fffdf7;
  backdrop-filter: none;
}
.btn:not(.primary), .search-box, .select-wrap select,
.form input, .form textarea, .form select, .simple-tool input {
  background-color: #fffdf7;
  backdrop-filter: none;
}
.explore-card, .announcement, .resource, .skill-card, .panel,
.subject-card, .tool-card, .stat, .simple-tool, .idea-controls,
.idea-card, .branch-hero, .compiler-panel {
  border-color: #dedacf;
  background: #fffdf7;
  box-shadow: 0 5px 16px rgba(45, 27, 105, .035);
  backdrop-filter: none;
}
.btn, .nav a, .nav-btn, .explore-card, .feature-card,
.announcement, .resource, .skill-card, .subject-card, .tool-card,
.branch-card, .stat, .idea-card, .idea-controls, .compiler-panel,
.compiler-run, .compiler-reset, .lab-window-link, .module-arrow,
.branch-arrow, .text-arrow {
  transition:
    transform .22s cubic-bezier(.2, .75, .25, 1),
    border-color .22s ease,
    background-color .22s ease,
    box-shadow .22s ease,
    color .22s ease;
}
.btn { position: relative; overflow: hidden; }
.btn:not(.primary):hover {
  transform: translateY(-3px);
  border-color: #8b7ac2;
  color: #2d1b69;
  background: #f1ecfb;
  box-shadow: 0 10px 22px rgba(45, 27, 105, .1);
}
.btn.primary { box-shadow: 0 7px 0 #a6d52b; }
.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 0 #a6d52b, 0 16px 28px rgba(45, 27, 105, .13);
}
.btn:active, .btn.primary:active { transform: translateY(1px); box-shadow: none; }
.nav a, .nav-btn { position: relative; }
.nav a::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
  background: #c8ff3d;
  content: "";
  transition: transform .2s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.explore-card, .announcement, .resource, .skill-card, .subject-card,
.tool-card, .stat, .idea-card, .idea-controls, .compiler-panel {
  box-shadow: 0 5px 16px rgba(45, 27, 105, .035);
}
.explore-card:hover, .feature-card:hover, .announcement:hover,
.resource:hover, .skill-card:hover, .subject-card:hover, .tool-card:hover,
.stat:hover, .idea-card:hover {
  transform: translateY(-6px);
  border-color: #a99ccc;
  box-shadow: 0 18px 34px rgba(45, 27, 105, .12);
}
.explore-card::before, .idea-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: #c8ff3d;
  content: "";
  transition: transform .25s ease;
}
.explore-card:hover::before, .idea-card:hover::before { transform: scaleX(1); }
.explore-card-featured {
  border-color: #382579;
  background:
    radial-gradient(circle at 90% 4%, rgba(200, 255, 61, .16), transparent 8rem),
    #2d1b69;
  box-shadow: 0 10px 24px rgba(45, 27, 105, .14);
}
.explore-card-featured:hover {
  border-color: #5a4694;
  box-shadow: 0 20px 38px rgba(45, 27, 105, .23);
}
.branch-card {
  transition: transform .22s cubic-bezier(.2, .75, .25, 1), border-color .22s ease, background .22s ease;
}
.branch-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(200, 255, 61, .7);
  background: rgba(255, 253, 247, .11);
}
.home-intro .hero-card { box-shadow: 0 22px 48px rgba(45, 27, 105, .18); }
.lab-window-link:hover { transform: translateX(4px); }
.lab-window-link:hover span { transform: translate(3px, -3px); }
.module-row:hover .module-arrow, .branch-card:hover .branch-arrow { transform: translate(4px, -3px); }
.compiler-intro {
  border-color: #d8cef1;
  background:
    radial-gradient(ellipse at 90% 4%, rgba(200, 255, 61, .22), transparent 17rem),
    #e8deff;
  box-shadow: 0 10px 26px rgba(45, 27, 105, .07);
}
.compiler-panel { overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease; }
.compiler-panel:focus-within {
  border-color: #a99ccc;
  box-shadow: 0 14px 34px rgba(45, 27, 105, .1);
}
.compiler-toolbar { border-bottom-color: #ded7ed; background: #f1ecfb; }
.compiler-editor { background: #eee7fb; }
.compiler-gutter { border-right-color: rgba(81, 66, 124, .16); color: #72658e; }
.compiler-editor textarea { color: #2d1b69; caret-color: #5b3df5; }
.compiler-editor textarea::selection { color: #2d1b69; background: rgba(200, 255, 61, .55); }
.compiler-editor textarea:focus-visible { outline-color: #5b3df5; }
.compiler-lower { border-top-color: #dedacf; }
.compiler-input textarea { border-color: #d9d2e7; background: #f8f6ef; }
.compiler-input textarea:focus { border-color: #8b7ac2; box-shadow: 0 0 0 3px rgba(91, 61, 245, .1); }
.compiler-output { border-left-color: #dedacf; background: #f8f6ef; }
.compiler-output pre { color: #33234f; }
.compiler-footnote { border-top-color: #dedacf; }
.compiler-reset:hover { transform: translateY(-1px); text-decoration: underline; text-underline-offset: 3px; }
.compiler-run:hover { transform: translateY(-2px); }
.compiler-stop:hover { transform: translateY(-2px); }
.idea-controls, .idea-card { background: #fffdf7; }
.idea-card { position: relative; overflow: hidden; }
.idea-controls:focus-within { border-color: #a99ccc; box-shadow: 0 8px 24px rgba(45, 27, 105, .08); }
.idea-details > div { border-color: #e5e1d7; background: #f4f0fc; }
.nav.open { background: #fffdf7; }
.home-intro .hero-copy > *, .home-intro .hero-card, .compiler-intro, .compiler-panel, .idea-controls, .idea-card {
  animation: campus-rise-in .55s cubic-bezier(.2, .75, .25, 1) both;
}
.home-intro .hero-copy > :nth-child(2) { animation-delay: .07s; }
.home-intro .hero-copy > :nth-child(3) { animation-delay: .13s; }
.home-intro .hero-copy > :nth-child(4) { animation-delay: .19s; }
.home-intro .hero-card, .compiler-panel, .idea-card { animation-delay: .1s; }
@keyframes campus-rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 620px) {
  .compiler-output { border-top-color: #dedacf; border-left: 0; }
  .branch-card:hover { transform: translateY(-3px); }
}

.campus-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.planner-list { display: flex; flex-direction: column; gap: 12px; }
.planner-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.planner-item h3 { margin: 10px 0 6px; }
.planner-item p { margin: 0; }
.planner-item form { flex: 0 0 auto; }
.planner-item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.planner-event-details { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: var(--accent); font-size: 13px; }
.planner-item.is-complete { opacity: .72; }
.planner-forms { align-items: start; }
.branch-tools-catalog { margin: 34px 0 46px; }
.branch-tools-catalog > .section-intro { max-width: 720px; margin: -8px 0 28px; }
.branch-tool-group { margin: 28px 0 38px; }
.branch-tool-group-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.branch-tool-group-heading h3 { margin: 0; font-size: 20px; }
.branch-tool-group .subject-tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.branch-tool-panel { max-width: 760px; margin: 0 auto; }
.branch-tool-panel .back-link { display: inline-block; margin-bottom: 22px; }
.branch-practice-question { margin: 0 0 24px; }
.web-playground { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.web-playground-editors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.web-playground-editors label { display: flex; flex-direction: column; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 750; }
.web-playground-editors textarea { width: 100%; min-height: 210px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--canvas-deep); font: 12px/1.55 ui-monospace, monospace; resize: vertical; }
.web-playground-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0 18px 16px; }
.web-playground-actions span { color: var(--muted); font-size: 12px; }
.web-playground-preview { display: block; width: 100%; min-height: 320px; border: 0; border-top: 1px solid var(--line); background: #fff; }
@media (max-width: 820px) {
  .campus-board-grid { grid-template-columns: 1fr; }
  .branch-tool-group .subject-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-playground-editors { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .planner-item { flex-direction: column; }
  .branch-tool-group .subject-tools-grid { grid-template-columns: 1fr; }
}
